Several seconds delay after attaching with re-cycled IP address

Hi!
I'm experimenting with attaching/detaching docker containers with weave. It seems pretty consistent that when attaching to an IP that has previously been used (and detached) - even tho the attachment is immediately visible in weave ps - it takes quite a few seconds to actually connect. Attaching to new IPs is instant.
I was asked to open an issue on here by @rade.

re-cycling IPs should be fine, and any update delays should be quite small. If you have an easily reproducible example for when there is a long delay, please file an issue.

Here is my reproduction. The luisbebop/echo-server just echoes back what is sent to it, on port 8800. The tutum/curl image is an ubuntu with curl on it.
docker run --name echo -d luisbebop/echo-server
sudo weave launch
sudo weave attach <IP_ADDRESS>/16 echo
docker attach $(sudo weave run <IP_ADDRESS>/16 -tid tutum/curl)
curl <IP_ADDRESS>:8800

Now, outside of the curl container, detach then attach:
sudo weave detach <IP_ADDRESS>/16 echo
sudo weave attach <IP_ADDRESS>/16 echo
sudo weave ps

The ps shows that the attachment is in effect, but back inside the curl container:
curl <IP_ADDRESS>:8800

Takes quite a while. It eventually will work, tho. With a new IP there is no delay.
I am running this on a Ubuntu 14.04 LTS inside virtualbox, if that makes a difference.
The use case I'm looking at is seamless deploys, spinning up a new application container and switching over to it, without other services needing to be restarted/linked. It seems everything is going to be fine untill I run out of new IPs to assign to containers :)
My hope at this point is that it wont be a problem in practice when I cycle through 255 IP addresses. Otherwise I might be able to wait for the attachment to go fully into effect before detaching the old app.

Thanks, I can reproduce this.
It's due to the ARP (aka neighbour) cache.  In your example, when you do weave attach then weave detach, a fresh MAC address is allocated to the container.  On Linux, with the default value of /proc/sys/net/ipv4/neigh/*/base_reachable_time_ms, ARP mappings take up to 45 seconds to be marked stale.  So it can take a while for containers to realize they need to ARP for the new MAC address.  You can see this by doing ip -s neigh show in the curl container.
You can reduce that time by setting /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms (and then restarting the containers on the weave network).  That sysctl is a time in milliseconds; the kernel multiplies it by a random number in the range 0.5 to 1.5 to get the actual expiry time.  Its default value is 30000. When I set it to 5000, recovery becomes much quicker (i.e. below 10 seconds).
Reducing the reachable time will increase by ARP traffic, although not necessarily by a huge amount because receiving data on a TCP connection prevents the associated ARP mapping from going stale.
Changing /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms might be undesirable for other reasons, because it could affect network devices not associated with weave.  It should be straightforward to make the weave script adjust the setting only for the container ethwe devices it creates.  Would that work for you?  If it does, we can consider whether that kind of solution would be a good idea in general.
The ideal solution would be for weave to actively invalidate ARP mappings across the network when a container is detached, but that would be a much more substantial change.

Reducing base_reachable_ms on the ethwe interface in the container does sound like a good idea.
btw, when I looked at arp behaviour a while ago, I found this stackoverflow entry most informative. Based on that, it would seem that there is little risk in reducing base_reachable_ms; it should only increase ARP traffic in pathological (though far from impossible) cases, e.g. when the interaction with the remote is mostly unidirectional, i.e. no traffic is coming back or only sporadically or after some significant delay.

btw, when I looked at arp behaviour a while ago, I found this stackoverflow entry most informative.

I saw that, but I'm not sure it is entirely accurate, or at least not up to date.  In the current kernel source code, I haven't found a mechanism by which route cache entries pin arp/neighbour cache entries. And the statement that "the kernel will sometimes change timeout values based on positive feedback" is fairly vague when it seems to be the key mechanism that prevents arp entries going stale (search for dst_confirm to see where this occurs; there are quite a few, but the one on incoming TCP acks looks like the most significant).
So I think we'd need to confirm experimentally what effect changing base_reachable_time_ms.  Though the actual impact would be heavily workload-dependent, of course.

I'm having this exact issue trying to migrate a container and its IP to another host - anything that has spoken to it in the original location suffers the delay.
Can confirm that the moment I echo 5000 > /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms - the delay is removed to negligible.
A couple of points/questions:

Is there a way of lowering the base_reachable_time_ms for a certain interface/container?
I suppose this would need to be done on every host that might have routed to the moved IP.
Could it be useful to lower the value - wait n * 2 then up it again - as a kind of cache buster?

Thanks for this thread - gave me a huge boost to remove the delay and get on with the demo I'm doing :-)

Can confirm that the moment I echo 5000 > /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms - the delay is removed to negligible.

Thanks.  We're very likely to make the weave script set that for the ethwe interface on all containers started with weave run.

A couple of points/questions:

Is there a way of lowering the base_reachable_time_ms for a certain interface/container?

nsenter -n -t $(docker inspect --format='{{.State.Pid}}' $CONTAINER) -- sh -c 'echo 5 >/proc/sys/net/ipv4/neigh/ethwe/base_reachable_time'

where $CONTAINER is the container ID.

I suppose this would need to be done on every host that might have routed to the moved IP.

Yes.

Could it be useful to lower the value - wait n * 2 then up it again - as a kind of cache buster?

No, Linux doesn't actually evict entries from the ARP cache due to that value, it just marks them as stale.  So dropping the value then increasing it again won't have much of an effect.

After a lot of poking containers and looking at the impact on the ARP cache, and comparing the observed behaviour with the kernel code, I've convinced myself that setting base_reachable_time to 5 seconds is a safe and reasonable thing to do, as long as you also set delay_first_probe_time to 2 seconds (so that the delay_first_probe_time is always less than the effective reachable_time, which can be half  base_reachable_time).
I have almost finished writing a long explanation of why this is so, but I'm not going to get that done before the end of the day, and I want to get the PR out today.
The "tl;dr" is that the kernel has a intricate mechanism so that, if two IP hosts are communicating using TCP, they usually won't send ARP requests to each other, even if there are periods much longer than reachable_time  when they don't communicate.

Could it be useful to lower the value - wait n * 2 then up it again - as a kind of cache buster?

BTW, if you really want to flush the ARP cache, you can do it with
nsenter -n -t $(docker inspect --format='{{.State.Pid}}' $CONTAINER) ip neigh flush dev ethwe

or you can remove specific entries with
nsenter -n -t $(docker inspect --format='{{.State.Pid}}' $CONTAINER) ip neigh flush to $IP_ADDRESS

But you might need to do this for any container on the weave network.  Ideally, I think weave would do this for all containers on the network whenever a container is detached, but weave doesn't currently distribute such notifications so this is not a small change.

@dpw thank you so much this is really helpful
From my observations getting a demo of a migrating IP to work - setting a value of 5000 on the ethwe interface would be a great change to make.  I can't speak for performance under load but in terms of observable latency it works great.
Would this remove the need for busting the cache for specific containers?  Doing that across a cluster feels like a really hard thing to do.
Thanks again :-)

Oh great: "fix base_reachable_time(_ms) not effective immediatly when changed" https://github.com/torvalds/linux/commit/4bf6980dd032853


object didn't show up in AR scene

This is my code
    Object3D cola = new Object3D();
    cola.loadModel(Uri.parse("file:///android_asset/obj/Bread.obj"), Object3D.Type.OBJ, new AsyncObject3DListener() {
        public void onObject3DFailed(String error) {
            Log.w(TAG, "Failed to load the model");
        }
        public void onObject3DLoaded(Object3D object, Object3D.Type type) {
            Log.i(TAG, "Successfully loaded the model!");
        }
    });

    cola.setPosition(new Vector(0, 0, -1));
    cola.setScale(new Vector(10, 10, 10));
    rootNode.addChildNode(cola);

onObject3DLoaded method is executed, but is not showing
How do i use the object3D method?
my object something wrong?

dd


1.0.0 is failing on JitPack

As per here:
https://jitpack.io/#Ilhasoft/data-binding-validator
logs:
https://jitpack.io/com/github/Ilhasoft/data-binding-validator/1.0.0/build.log

The version 1.0.0 was rebuilt.
https://jitpack.io/com/github/Ilhasoft/data-binding-validator/1.0.0/build.log


Remove Xalan URLCheck import from excluded rulesets

We have been excluding the check_saml2meta.xsl and check_mdui.xsl rulesets because they contain the URLChecker which requires Xalan. The 0.10.0 branch in ukf-meta (239) removes the URLChecker from those XSL files, leaving the other tests. I will copy those versions over to the testbed so we can make progress on testing everything other than checks which require the URLChecker.

We are going to redo this change. Roughly:

Split check_mdui into 5 stages. The existing 3 XSLT stages, and 2 new stages that come from adding the URL checking beans. Comment out the 2 new stages, as for now we can not conditionally run stages, and so 2 of the validators would fail.
Split check_saml2meta into a composite stage composed of 3 stages.  The existing XSLT stage, and 2 new stages that come from adding the URL checking beans. Again, comment out the 2 new stages, otherwise 2 of the validators would fail.
Ian is going to look at conditionally running stages on the testbed, if that works, we can uncomment and use the new bean based stages from the non-xylan branches, and the XSLT extensions on the Xalan branches.

Looks like Ian already has a plan for that, see #78

Note. The Xalan branches are using the extra (to the core libs): serializer-2.11.0.jar, xalan-2.7.1.jar, ukf-mda-0.9.12, inc-mda-0.9.1.jar.

For check_saml2meta, the following new beans are used on the 0.10 branch:
<ref bean="check_saml2meta"/>
<ref bean="check_saml2meta_urlattrs"/>
<ref bean="check_saml2meta_urls"/>

To expand on the conversation we had a couple of days ago, on the 0.10/239 branch I have the following in:
                <ref bean="check_saml2meta"/>
                <ref bean="check_saml2meta_urlattrs"/>
                <ref bean="check_saml2meta_urls"/>

However, I think it would be better to rename the (cut down) XSL test as something like check_saml2meta_xsl and wrap those three in a composite stage. That will change the component IDs in the results (but see below) but we have a way of dealing with that now.
I'll note that the id property of a component is what dictates its component ID for purposes of reporting in errors. That's normally defaulted (by a bean factory post processor) to be the same as the Spring name for the bean. However, you can set it independently if you want to create other effects. For example, in the nested validator case I've done this in the new validate_url: <bean id="validate_url" p:id="url" parent="mda.AsURLStringValidator"> where the Spring ID for the bean is validate_url but the reported component ID is url. That will be decorated with the name of the calling stage to build a composite component ID.
One effect of this is that if we want, we can change the id of the bean from check_saml2int to check_saml2int_xsl but explicitly set its p:id so that the results don't change. Whether this is a good idea or not is probably worth a discussion.


Produce a dependency diagram

We need to check what classes depend on, whether it is on our own classes or on external ones.
For this a dependency diagram would help a lot

Pharo versions 8 and 9 allow from UML to give the different dependencies between the classes of a package.
An example with Kendrick's Core sub packages (tags).
![Dependency of the Core sub-package] (https://github.com/YvanGuifo/PhdThesisYvanGuifo_2019-2022/blob/master/notes-lectures/Package Kendrick/Package-Core.png)
But we note the following fact, when we select all the Kendrick sub packages, we cannot see the different dependencies between the sub packages because the representation that UML allows us to have is very minimal (this is due to the large number of classes).

We are not looking at class diagram, but more reference dependencies even if in a dynamic type language this is more difficult to be exhaustive about them. There is a dependency browser inside Pharo that allow you do browse them in the context of a package.


error  on mac

compile by Xcode ,use of undeclared identifier "make context"

These functions (makecontext,getcontext,swapcontext) doesn't provided by MAC OSX anymore, I will try to rewritten with POSIX threads. thanks for your feedback.

fix this issue based on
http://boost-users.boost.narkive.com/oBZ9TxFN/coroutine-bus-error-on-mac-os-x-10-5
please try again.


load_state_dict: _IncompatibleKeys(missing_keys=[], unexpected_keys=['temp', 'itm_head.weight', 'itm_head.bias'])

运行 InternVideo2_stage2_1B 的 demo.ipynb 时，intern_model, tokenizer = setup_internvideo2(config) 会报如下警告：
load_state_dict: _IncompatibleKeys(missing_keys=[], unexpected_keys=['temp', 'itm_head.weight', 'itm_head.bias'])
最终能够得到如下运行结果：
text: A man in a gray sweater plays fetch with his dog in the snowy yard, throwing a toy and watching it run. ~ prob: 0.7927
text: A playful dog and its owner wrestle in the snowy yard, chasing each other with joyous abandon. ~ prob: 0.1769
text: A pet dog excitedly runs through the snowy yard, chasing a toy thrown by its owner. ~ prob: 0.0291
text: A man in a gray hat and coat walks through the snowy yard, carefully navigating around the trees. ~ prob: 0.0006
text: A person dressed in a blue jacket shovels the snow-covered pavement outside their house. ~ prob: 0.0003
text: A person stands on the snowy floor, pushing a sled loaded with blankets, preparing for a fun-filled ride. ~ prob: 0.0002
text: A playful dog slides down a snowy hill, wagging its tail with delight. ~ prob: 0.0001
text: A person in a blue jacket walks their pet on a leash, enjoying a peaceful winter walk among the trees. ~ prob: 0.0001
text: A man in a gray coat walks through the snowy landscape, pulling a sleigh loaded with toys. ~ prob: 0.0000
text: A person bundled up in a blanket walks through the snowy landscape, enjoying the serene winter scenery. ~ prob: 0.0000
请问是否模型加载有什么问题？

这个警告是没有问题的，这几个权重只在训练时使用

运行 InternVideo2_stage2_1B 的 demo.ipynb 时，intern_model, tokenizer = setup_internvideo2(config) 会报如下警告： load_state_dict: _IncompatibleKeys(missing_keys=[], unexpected_keys=['temp', 'itm_head.weight', 'itm_head.bias'])
最终能够得到如下运行结果： text: A man in a gray sweater plays fetch with his dog in the snowy yard, throwing a toy and watching it run. ~ prob: 0.7927 text: A playful dog and its owner wrestle in the snowy yard, chasing each other with joyous abandon. ~ prob: 0.1769 text: A pet dog excitedly runs through the snowy yard, chasing a toy thrown by its owner. ~ prob: 0.0291 text: A man in a gray hat and coat walks through the snowy yard, carefully navigating around the trees. ~ prob: 0.0006 text: A person dressed in a blue jacket shovels the snow-covered pavement outside their house. ~ prob: 0.0003 text: A person stands on the snowy floor, pushing a sled loaded with blankets, preparing for a fun-filled ride. ~ prob: 0.0002 text: A playful dog slides down a snowy hill, wagging its tail with delight. ~ prob: 0.0001 text: A person in a blue jacket walks their pet on a leash, enjoying a peaceful winter walk among the trees. ~ prob: 0.0001 text: A man in a gray coat walks through the snowy landscape, pulling a sleigh loaded with toys. ~ prob: 0.0000 text: A person bundled up in a blanket walks through the snowy landscape, enjoying the serene winter scenery. ~ prob: 0.0000
请问是否模型加载有什么问题？

你好，请问这个排序结果应该是有点不对的，我的结果和你一摸一样，但是正确的结果应该是https://github.com/OpenGVLab/InternVideo/issues/107#issuecomment-2071771233这么多。请问你解决过这个问题了吗？


Unable to detect PhoneNumber in dataDetectorTypes={['phoneNumber']}

Hello we're using "react-native-webview": "^11.0.2", and our WebView is unable to detect Phone numbers even in iOS 14+ iPhones
Can someone kindly help?
<WebView
source={renderedOnce ? {uri: url} : reload}
dataDetectorTypes={['phoneNumber']}
/>

Just wanted to follow-up and see if this issue is fixed.

I'm interested too in this issue!

Still its an issue in the Android OS


fix(release): Fix package.json

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Research Solution for Circular Dependency Checking

Problem Statement
madge isn't great with Typescript circular dependencies. We use it right now to avoid the most egregious problems, but there's likely better solutions since the original build scripts were written.
Proposed Solution
This is a research task, which means no code is required (unless you want to do a PR). There's a set of questions we're hoping to answer, informing the project direction.

What value are we getting from madge? How could we introduce a circular dependency in DocMQ, and can we trust madge to catch it?
What alternatives to madge are out there? Are they better than what we currently have? I found two quickly googling, but this isn't an exhaustive list by any means: dpdm, eslint import rule
Is it worth keeping madge, swapping to an alternative, or removing the circular dependency checks altogether?

To help out whoever takes this on. For (1), the main value we get is to avoid circular dependencies when using import statements. It's really easy to forget a type keyword on an import statement and end up with code that doesn't build.
// a.js
import { BType } from "b.js" // <= should've been a type import

// 2
import { AType } from "a.js"" // <= should've been a type import

In this example, the ESM code will import BType and AType as objects instead of types. While Typescript can manage the circular dependency and sees these as types, node.js running in ESM mode will not and one of these modules will resolve to {} because it must be evaluated first.
This isn't an issue in CommonJS, which does all checks in a single pass (and lets us assign to module.exports after the fact).


RuntimeError: CUDA error: device-side assert triggered

Anyone else seeing this error when training?
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Same error, did you solve it?

same here

same error, were you able to solve it?

I was getting the this error with decapoda-research/llama-7b-hf but the error went away using huggyllama/llama-7b.


Don't working convert() method from class AssetConverter on hosting

Hi, all!
Please, anybody help me. I have compiled css files from .less on local computer - that's nice working. Local configuration - Ubuntu 14.04. Upload on remote hosting - less-files don't compiling :(
Hosting - FreeBSD. Lessc installed and working from bash. But yii app don't running converter.
I tried to write full path to lessc - same problem (not working), i tried to run lessc in php script in functions exec, also proc, which use in AssetConverter class, - it works! From application - don't working :( And at the same time debug log haven't no one mentions about AssetConverter and convert method.
Please hint me, where to look?

Does other assets, which have no less or other compllining involved, are published correctly?

Yes, exactly right.
Debug toolbar - Asset bundles 5, and in log: Total 5 asset bundles were loaded.
bootstrap.css, normalize css, etc are loaded correctly.
Don't working only convert method and only on hosting. More differences:
php 5.6 vs 5.5 on local comp
Can i try to run this method from app directly, not in web.php? For catch.

Trace you program, see if actually calls AssetConverter::runCommand().
If it does check the status code and target files existance just after that.

I found this mention very careful :)
On local comp it written, in logs on hosting - missing

So which status does proc_close() return?

Enable YII_DEBUG if haven't already.

YII_DEBUG enabled, i see logs.
protected function runCommand($command, $basePath, $asset, $result)
{
...
}
from yii\wev\AssetConverter don't running totally!
I tried specially write wrong command in web.php, as "'less' => ['css', 'lessc1234 {from} {to} --no-color']," and re-started application - don't show anyone errors or warning. But, if i write "'class' => 'yii\web\AssetConverter1234'," - app show error :)

Ok, i can just copy compiled css on the hosting... but really very interesting bug. May be close issue, if have not methods for catch this?

Trace AssetBundle::publish().
Does conditions (isset($this->basePath, $this->baseUrl) && ($converter = $am->getConverter()) !== null), Url::isRelative($css) are passing or not?

I'm sorry, please tell me, where i must write "AssetBundle::publish()" and trace it? Have not enough knowledges for this :(

It seems we are not going anywhere here.
I am closing this, unless more coherit information arrives.


python311Packages.caio: fix build on darwin

Description of changes
Closes #313602.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

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

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

8 packages built:

python311Packages.aiofile
python311Packages.aiofile.dist
python311Packages.caio
python311Packages.caio.dist
python312Packages.aiofile
python312Packages.aiofile.dist
python312Packages.caio
python312Packages.caio.dist


feat: menuitem: adds align icon prop and fixes list item rendering bug

SUMMARY:
This is a part of ENG-45561

Adds alignIcon prop in preparation for recursive dropdown menu support
maps IconSize to MenuSize, omits size from IconProps via MenuIconProps
Adds getIcon method to MenuItemButton and MenuItemLink
Ensure disabled from props is read by MenuItemLink
Adds wrap prop to MenuItem and RTL styles to enable menu item text wrapping
Ensures menuitem <li> content is focusable and take the full width and height possible for greater click target
Maps MenuSize and IconSize before the iconProps spread to ensure default size is the same as Menu
Fixes <li> rendering bug
Alphabetizes props
Reduces the size of the Dropdown border radius by 4px to better match systems design Figma
Fixes Dropdown drift into position bug caused by unnecessary transition property on .dropdown-wrapper
Add Jira identifier to TODO in .dropdown.module.scss
Adds Menu and Dropdown unit tests

Right aligned icon to enable sub menu visual cue:

JIRA TASK (Eightfold Employees Only):
ENG-45561
CHANGE TYPE:

[X] Bugfix Pull Request
[X] Feature Pull Request

TEST COVERAGE:

[] Tests for this change already exist
[X] I have added unittests for this change

TEST PLAN:
Pull the PR branch and run yarn and yarn storybook. Verify the Dropdown, Menu and Select stories behave as expected.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@e478915). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #563   +/-   ##
=======================================
  Coverage        ?   85.06%
=======================================
  Files           ?      791
  Lines           ?    16892
  Branches        ?     5936
=======================================
  Hits            ?    14369
  Misses          ?     2457
  Partials        ?       66

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Nixes the autodeploy stuff

We're in the middle of a bunch of stuff and doing an auto-deploy would
be not great. So I'm disabling it for now.
r?

Great job, @willkg! r+!


Alpha集群如何保证高可用？

目前Alpha Server 可以通过多实例（实例无状态）连接数据库集群的方式保证高可用。

@qcghdy Can you close the issue if you don't have any further question about it?

Hi,
we introduced a cluster service discovery management beside the Alpha Services,
So I close the issue,  please let us know if you have any other question about it.


[ORIGIN-PROPOSAL] Metaphytian

Origin Info
Name: Metaphytian
Description: The Metaphytians are an old race of plant-like humanoids.
Impact: High
Origin Inspiration
Literally plants
Origin Traits
Flammable: Takes a whole lotta burn damage
Photosynthesis: Feeds on sunlight instead of food
Weak Shoulders: Cannot wear armor heavier than Gold or Chainmail
Unhandy: Cannot use a shield
Frail Body: Low health (6 or 7 hearts)

Oh boy this is gonna take me a little while... thanks me


Question about action selection

In case of policy gradients, we try to approximate a softmax policy from which we sample actions based on probabilities stochastically.
How about in ES in case of discrete action space? Does the method follow greedy policy or softmax policy? From the code, I could see it is greedy policy, is it the right behavior?

It isn't necessary to use a stochastic policy during training for ES, as we don't need to take noisy actions to explore -- the exploration is solely done through noise on the weights.

Thanks for clearing this up, I also referred the paper again, it seems they are using deterministic policy as you said.


concat of CSR NDArrays on first dimension

Description
concat of CSR NDArrays on first dimension
cc @eric-haibin-lin
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

CI is failing

@haojin2 could you help review this? The stack op is no longer needed for csr

Anything remaining to address? @eric-haibin-lin @haojin2

LGTM, let's wait for @eric-haibin-lin to take a final look

good to merge? @eric-haibin-lin


Update layout-view-persister.blade.php

check if $persistEnabled is set

Hey @peter-mw
Thanks for your contribution!
Could you provide some context about this issue ? Because I don't quite understand how the $persistEnabled could not be set, unless called from somewhere else ? In other words, the issue may be from the place it is called from instead of the view.
https://github.com/Hydrat-Agency/filament-table-layout-toggle/blob/e1b39923091cdb39ece19ce506b785f16dadabde/src/Persisters/LocalStoragePersister.php#L64
Thanks !

We are using the plugin in Microweber Filament branch here https://github.com/microweber/microweber/blob/filament/app/Filament/Admin/Resources/ContentResource/Pages/ListContents.php#L18
and just use the trait
 use HasToggleableTable;

We are using the plugin in Microweber Filament branch here https://github.com/microweber/microweber/blob/filament/app/Filament/Admin/Resources/ContentResource/Pages/ListContents.php#L18
and just use the trait
 use HasToggleableTable;

Thanks for sharing your code.
I cannot understand how you are including the package and therefore cannot confirm you are indeed using v2.0.0.
I'm merging your changes but I would recommend having a look at the package include as it seems very strange to me that the variable is not sent to the view in here.

@peter-mw You can upgrade to v2.0.1

Thanks


Input type="number" validation doesn't work

Hi,
I've checked input of email type or with pattern, it works OK. But the validator doesn't catch error with input type="number" when I enter something other then number (with min, max attributes or without).

The same for me. Try to remote required attribute from input and in firefox it did not validate text as invalid number.
See this example: http://jsbin.com/fajemap/edit?html,output


Tracking an in meeting request from Sharmila - make the RFI link more prominent

Describe the bug
The RFI link is small and below the map. This could be improved.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
Kameron to think of something.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Adding note for @KameronKerger to think about how a link to EO 140008 with also at least use of "Justice40" could also go into the footer, which is one path to use being able to use "Justice40" and "140008" as SEO keywords


GlmpcaError: Numerical divergence

Greetings,
Thanks for crafting this alignment package. I'm attempting to run PASTE2 on two partial Starmap coronal slices that are 10um thick with roughly 500um z distance between the two slices.  When running, I receive the following error:
GlmpcaError: Numerical divergence (deviance no longer finite), try increasing the penalty to improve stability of optimization.

When increasing the penalty, the issue persists. Could this indicate too much variance between the two slices is preventing an alignment?

Hi,
If rerunning does not resolve the issue, you can try dissimilarity='pca' as it should always work. By default, PCA reduces the dimensionality of the top 2000 highly variable genes to 20, but you can change these numbers by passing different parameters on line 258 of PASTE2.py. For example, if you don't want to filter highly variable genes, you can do M = pca_distance(sliceA, sliceB, None, 20).


DATA INGESTION STAGE

[ ] CONFIG YAML FILE HAS TO BE ADDED
[ ] CONFIGURATION CODE ADDED
[ ] COMPONENT ADDED
[ ] PIPELINE ADDED
[ ] DATA INGESTION COMPLETED

1st Step Done

2nd Step Done


⚠ Bofrost.fr has degraded performance

In e7ad782, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1311 ms

Resolved: Bofrost.fr performance has improved in 05c8c3f after 1 hour, 26 minutes.


Develop a reusable list component for displaying previous scans.

The data to display as a list should be:

The title of scan
The avatar group of the thumbnails of taken images
The beginning of raw scanned data

@bryandino673 we have dependent tickets so I have to wait for your PR before working 🏃♂


Working with a PDF document encrypted with User Password

Hi @Hopding. Is it possible to perform any manipulations with a PDF document encrypted with User Password?
Now when trying to open a user password encrypted PDF the lib fails at node_modules/pdf-lib/lib/core/pdf-parser/parseDict.js:55 line:

var _a = parseName_1.default(remainder) || utils_1.error('Failed to parse dictionary key'), key = _a[0], r1 = _a[1];

pdf-lib doesn't currently have any special support for encryption/decryption of documents. However, I think it should still be able to parse the document (which, from the error you shared, is what is failing). If you're able to share a document that you are having trouble with, I can take a look at the issue.
I don't plan on adding encryption/decryption support in the near term. There are too many other things that are more pressing that I have to work on. But I am open to providing support for it eventually. It really depends upon how many users need encryption/decryption support.

I'm going to go ahead and close this issue for now. But please feel free to reopen it if you would still like some assistance!


fix unicode characters error locations

Closes #742

but what do you think about putting a regression test that previously returned a ? location? Not blocking, but I think it might be valuable 👌

@Xanewok Good idea. Added a test that previously panicked because of this!


Space-wide log forwarding

We have users that are very interested in the ability to have space-wide log/metric forwarding.
Ideally this should be possible using both currently-supported mechanisms: firehose and syslog forwarding:

for firehose, an additional endpoint should be provided for all events generated in a space; this space firehose should be accessible by space developers/auditors/managers
for syslog forwarding, there should be a way to bind a log forwarding service to a space (or, alternatively, to automatically bind a log forwarding service to any application created in that space)

Originally brought up on https://cloudfoundry.slack.com/archives/C02HCCXV5/p1520393914000081

Another great suggestion we have just completed and I just have had the time to post to cf-dev. You can give this a try using the cf-drain-cli.
It does not yet collect metrics from service instances but we are working to make that happen as well (it needs some upstream ingress changes).
I am closing this as well but feedback appreciated (post it on the cf-drain-cli repo).


nullability of getAttribute / setAttribute APIs in lib.d.ts

TypeScript Version:
nightly (1.9.0-dev.20160217)
Code
The following code does not typecheck
el1.setAttribute('foo', el2.getAttribute('foo'));

because getAttribute returns string | null, and setAttribute expects string. If would be convenient if lib.d.ts has a matching signature on the get/set pair, to avoid users having to write an explicit null check.
The two options are both types being string | null or both being string. I can see arguments for either.
According to https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-666EE0F9 correctly getAttribute returns empty string for missing attrs, which is a strong argument for string.
The spec does not talk about nullabilty in setAttribute, but my tests a few browsers show that also null is an accepted value by the runtime. This would be an argument in favor of string | null.

I think it needs to be the former since getAttribute will return null if there is no matching attribute.

Indeed, the spec says

The Attr value as a string, or the empty string if that attribute does not have a specified or default value.

but of course looks like all browsers just return null.

Interesting. It looks like the spec needs to be brought in line with reality.

PRs would be appreciated. i would make make them both accept null. seems conservative but still convenient.

You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

According to MDN, setAttribute method accept null. But, this isn't remove attribute. whereas this will coerce the null value to the string "null".  Isn't this confused developers?

@YuichiNukiyama It falls out from the string coercion rules as '' + null === 'null'.

pretty good argument for keeping it as is. Setting attributes to 'null' is probably not what developers want.


Validate a DNS Change Has Completed After PR Merge

User Need
As a Operations Engineer
I want to know if a PR merge results in a failure
so that we can investigate and fix any failures
Value
By validating whether or not a change has been successful, we as a team know if we a required to perform further work on a particular change. We can also communicate this information back to the user if necessary to keep them in the loop.
Functional Requirements (What):

[ ] We have an alert set up inform the operations engineering team as to whether a particular change has failed.
[ ] We have an agreed process on how to bring in this work to the sprint.

Non-Functional Requirements (How):

[ ] The OctoDNS workflow has the appropriate logic to alert the team whenever the change is unsuccessful.

Acceptance Criteria:

[ ] Operaitons Engineering are immediately informed of a DNS change failure.

Notes:
An assumption here is that we bring in any additional work into the sprint as 'unplanned' and work on it with reasonably high priority, as this may block the users who raised the request.

Duplicate of #4757


software: migrate away from bitarray dependency.

Fixes #179.

Still pending: testcases for bitarray, verification, docstrings.

FWIW, CI tests for 3.12 seem to be failing due to trying to build aiohttp from source:   ✖ Install aiohttp 3.8.6 failed, add aiohttp failed:.   My guess is one of the Python internal structures aiohttp was relying on has changed:
aiohttp/_websocket.c:3744:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
(Mentioning even though I see it's just been added to the merge queue while I write, because I'm unclear if it'll auto-merge with failing changes.)
Ewen

FWIW, CI tests for 3.12 seem to be failing due to trying to build aiohttp from source:  ✖ Install aiohttp 3.8.6 failed, add aiohttp failed:. My guess is one of the Python internal structures aiohttp was relying on has changed:
aiohttp/_websocket.c:3744:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
(Mentioning even though I see it's just been added to the merge queue while I write, because I'm unclear if it'll auto-merge with failing changes.)
Ewen

See #454 .

(Mentioning even though I see it's just been added to the merge queue while I write, because I'm unclear if it'll auto-merge with failing changes.)

We allow failures on >=3.12 for this exact reason. It's in the GitHub workflow. Confusingly, the reported status is a failure even though all the required checks pass.


Add page templates back into Prototype Kit

Depends on removing docs being done first.
What
Add page templates back into the prototype kit. Must be done in a way which can be served publicly, so people can browse the templates as part of the docs.
Why
The templates used to be part of the docs, which were removed in https://github.com/alphagov/govuk-prototype-kit/issues/866. We need to re add them so people can use templates to start prototyping faster.

@joelanman suggested we might need to publish the templates as a separate package, so that we can reduce duplication. I'd suggest that for now we keep the templates duplicated, in the same place as before, and then look at solutions. For instance, pulling them into the docs app from the prototype kit release archive.
So I'd like to do this after we've finished the split. I've updated the related tickets accordingly.


The server encountered an error. The incident has been reported to admins when generating payment links

I'm trying to generate a payment-link for a particular account , here's my code :
the function where I'm calling the razorpay service:

the razorpay service function

There's a lot of different documentations on payment link , old apis and new apis , each having different parameters .
The latest and most accurate one is : https://razorpay.com/docs/payment-links/api/v1/create/
Please use for reference, anyone else facing the same issues


README Question

Hello Sebastian,
why does it say
"Simply run"
pip install jira-history

instead of
pip install jira-cache

in your installation guide?
Am I missing something?
Best
Johannes

And bwt thanks for this little project - lifesaver!

That's a clear case of "Oops"


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 307, in recv_into
raise timeout('The read operation timed out')
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/telepot/loop.py", line 60, in run_forever
allowed_updates=allowed_updates)
File "/usr/local/lib/python3.7/dist-packages/telepot/init.py", line 1000, in getUpdates
return self._api_request('getUpdates', _rectify(p))
File "/usr/local/lib/python3.7/dist-packages/telepot/init.py", line 491, in _api_request
return api.request((self._token, method, params, files), **kwargs)
File "/usr/local/lib/python3.7/dist-packages/telepot/api.py", line 154, in request
r = fn(*args, **kwargs)  # fn must be thread-safe
File "/usr/lib/python3/dist-packages/urllib3/request.py", line 150, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 323, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
raise value
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 386, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 306, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=50)
ERROR.txt

same here


Fix fuse3 packages in dev image

Solely install fuse3-libs can't start alluxio fuse process successfully. It would return error something like "fusermount3 not found"

@ssz1997 can we update our 2.8 dev image on the dockerhub with this change? maybe sync with @Xenorith for that, otherwise we should have 2.8.1 sooner

alluxio-bot, merge this please


Strange Loss Curve

Hi, I am training Mamba-1.4B on a downstream NLP task (Dialogue generation). I load Mamba model with
from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel
model = MambaLMHeadModel.from_pretrained("state-spaces/mamba-1.4b")

and then I implement the optimizer and lr-scheduler as mentioned in the paper:
def configure_optimizers(self):
        betas = (self.exp_cfg.beta_1, self.exp_cfg.beta_2)
        optimizer = optim.Adam(
            self.model.parameters(),
            lr=self.exp_cfg.peak_lr,
            weight_decay=self.exp_cfg.weight_decay,
            betas=betas,
            eps=self.exp_cfg.eps
        )

        def get_scheduler(optimizer, num_training_steps, warmup_steps, peak_lr, last_lr):

            def lr_lambda(current_step):
                if current_step < warmup_steps:
                    return current_step / warmup_steps
                progress = (current_step - warmup_steps) / (num_training_steps - warmup_steps)
                cosine_decay = 0.5 * (1 + math.cos(math.pi * progress))
                lr = (last_lr + (peak_lr - last_lr) * cosine_decay)
                return lr / peak_lr

            return torch.optim.lr_scheduler.LambdaLR(optimizer, lr_lambda)

        scheduler = get_scheduler(optimizer, self.exp_cfg.num_training_steps, self.exp_cfg.warmup_steps, self.exp_cfg.peak_lr, self.exp_cfg.last_lr)

        lr_scheduler = {
            'scheduler': scheduler,
            'name': 'custom_scheduler',
            'interval': 'step',  # Ensure learning rate updates per step
            'frequency': 1,  # Optional: If you want to make sure it updates every step
        }

        return {
            "optimizer": optimizer,
            "lr_scheduler": lr_scheduler,
        }

where I set
num_training_steps: 20000
warmup_steps: 2000
peak_lr: 0.0002
last_lr: 0.00001
beta_1: 0.9
beta_2: 0.95
weight_decay: 0.1

However, the loss curve is strange:

I wonder, are the implementation of optimizer and lr-scheduler right?
And can you provide me any suggestion for fine-tuning Mamba-1.4B?

Does the same thing happen if you use a Transformer (.e.g Pythia 1.4B)?
You can also take a look at the Trouble shotting section of the README.

Does the same thing happen if you use a Transformer (.e.g Pythia 1.4B)? You can also take a look at the Troubleshooting section of the README.

Thx for replying, I am trying to figure out the issue within it.

This problem is fixed, THX

Hi, the training loss is more normal, but recently I have tried a few NLP generation tasks, and I have observed a phenomenon: although the loss on the training set is gradually decreasing, the loss on the validation set will show an increasing trend.
Specifically,  I continue to fine-tune on the pre-trained mamba-2.8B ckpt， and one loss curve is shown below (continual generation on Story Generation task).

I'm curious if other researchers who are training mamba are experiencing this when training other (non-synthetic) downstream tasks.
My guess is that this could be influenced by the Selection Mechanism in Mamba,  as this would make it easier for mamba to learn the distribution on the training set (overfitting) and not as easy to generalize to the development set.

Does the same thing happen if you use a Transformer (.e.g Pythia 2.8B)?


xacro to urdf: multiple robot motor and transmission additions

When creating a urdf from xacro (rosrun xacro xacro hydra.xacro > hydra.urdf), multi motors and transmissions are added for each joint

This was fixed in c1634e5562f70247a9daef56064c5a5cc0c824a3 with the removal of all Gazebo tags.


add workaround to tests

Description
Add workaround for https://github.com/terraform-ibm-modules/terraform-ibm-mas/issues/78
Release required?

[x] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

/run pipeline

Pipeline failed due to https://github.com/terraform-ibm-modules/terraform-ibm-mas/issues/83
Going to retry to see if it passes on retry

/run pipeline

Ahh I know whats wrong - I need to find another way to fix this..

/run pipeline

Pipeline failed due to another intermittent issue: https://github.com/terraform-ibm-modules/terraform-ibm-mas/issues/90

/run pipeline

/run pipeline

Pipeline hit this issue again: https://github.com/terraform-ibm-modules/terraform-ibm-mas/actions/runs/8946518936/job/24577343472
Will retry..

/run pipeline

This time pipeline failed with:
│ Detected the following failed task(s):
│ inst1-install-m5chh-cluster-monitoring
│ Exiting.

Retrying ..

/run pipeline

Closing in favour of https://github.com/terraform-ibm-modules/terraform-ibm-mas/pull/91


Source Code Has No License

Hi,
Are the authors open to adding an open-source license (Apache 2.0, BSD, MIT) to the project's source code? This would be a great help for people who want to use this code in their projects.
Thanks!

Resolved by e6da9c5


Documenting the new addPods behavior.

The testing we have done is to initiate a scale down, and then deleting all pods, to verify that all pods get recreated and the scale down can continue.

Updated.

Lgtm, though the upstream reviewers might different wording to match terms in fdb codebase

Lgtm, though the upstream reviewers might suggest different wording to match terms in fdb codebase

Sure - I'll let them figure out how they want it to be :grin:


Crash in iptables OUTPUT chain

Hi,
I'm writing a simple code to capture the packet, and print the packet, just as the example code which you give to us. It works fine as the INPUT chain of iptables, but when I change to capture the output packet with OUTPUT chain of iptables, it crash and show the 'segmentation fault'.
I'm working on Ubuntu 16.04

I ran into a similar issue with version 0.8 and 0.6 on Ubuntu 14.04; PREROUTE works fine, POSTROUTE crashes. Seems ok so far on 0.7

Problem is at line 65 of netfilterqueue.pyx:
        self.hw_addr = self._hw.hw_addr

When sending packets, self._hw is NULL so the copy crashes. I have no idea how to fix that in the PYX file (what should be the value of self.hw_addr when self._hw is NULL?), but as a workaround, you can just comment the following lines in netfilterqueue.c and compile/install the module again:
  __pyx_t_2 = __pyx_v_self->_hw->hw_addr;
  memcpy(&(__pyx_v_self->hw_addr[0]), __pyx_t_2, sizeof(__pyx_v_self->hw_addr[0]) * (8 - 0));

I ran into the same issue using OUTPUT. Thanks for the workaround.

Thanks for the details. I'll see if I can duplicate and fix within a few days.

The fix leaves calling and parsing of nfq_get_packet_hw data until the get_hw() call, and just returns None if nfq_get_packet_hw returns NULL. I believe hw_addr was private on Packet, so this should be compatible with 0.8.
I've uploaded 0.8.1 to Pypi but reviews and improvements are welcome. Thanks for reporting this, all.

Thanks @mattfox I experience no more crash with 0.8.1.


CoreAudioAPI extending with demo

Unfortunately can not check Windows Store assembly WACK.
Changes not break any functionality in existing NAudio code.

great, thanks for moving this over to GitHub. I'll try it through WACK, and also see what happens in Vista.

OK, works for me in Win 7 but quickly tested on Vista, and we get an access violation exception.
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at NAudio.CoreAudioApi.Interfaces.IAudioSessionManager.RegisterSessionNotification(IAudioSessionNotification sessionNotification)
   at NAudio.CoreAudioApi.AudioSessionManager.RefreshSessions() in d:\Code\github\NAudio\NAudio\CoreAudioApi\AudioSessionManager.cs:line 104
   at NAudio.CoreAudioApi.AudioSessionManager..ctor(IAudioSessionManager audioSessionManager) in d:\Code\github\NAudio\NAudio\CoreAudioApi\AudioSessionManager.cs:line 43
   at NAudio.CoreAudioApi.MMDevice.GetAudioSessionManager() in d:\Code\github\NAudio\NAudio\CoreAudioApi\MMDevice.cs:line 84
   at NAudio.CoreAudioApi.MMDevice.get_AudioSessionManager() in d:\Code\github\NAudio\NAudio\CoreAudioApi\MMDevice.cs:line 140
   at NAudioDemo.VolumeMixerDemo.VolumeMixerPanel.DeviceVolumePanel_DeviceChanged(Object sender, Object e) in d:\Code\github\NAudio\NAudioDemo\VolumeMixerDemo\VolumeMixerPanel.cs:line 56
   at NAudioDemo.VolumeMixerDemo.VolumePanel.cmbDevice_SelectedIndexChanged(Object sender, EventArgs e) in d:\Code\github\NAudio\NAudioDemo\VolumeMixerDemo\VolumePanel.cs:line 159
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at System.Windows.Forms.ComboBox.set_SelectedItem(Object value)
   at NAudioDemo.VolumeMixerDemo.VolumePanel.VolumePanel_Load(Object sender, EventArgs e) in d:\Code\github\NAudio\NAudioDemo\VolumeMixerDemo\VolumePanel.cs:line 97
   at System.Windows.Forms.UserControl.OnLoad(EventArgs e)

This may be a 32 bit vs 64 bit issue as when I try it on Windows 7 as 32 bit I also get an exception. This one is a bit of a weird one though as it comes from Process.MainModule:
System.ComponentModel.Win32Exception was unhandled
  Message=Only part of a ReadProcessMemory or WriteProcessMemory request was completed
  Source=System
  ErrorCode=-2147467259
  NativeErrorCode=299
  StackTrace:
       at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly)
       at System.Diagnostics.NtProcessManager.GetFirstModuleInfo(Int32 processId)
       at System.Diagnostics.Process.get_MainModule()
       at NAudioDemo.VolumeMixerDemo.VolumePanel..ctor(MMDevice device, AudioSessionControl session) in d:\Code\github\NAudio\NAudioDemo\VolumeMixerDemo\VolumePanel.cs:line 73

OK, the second exception was just that it didn't like a particular process running on my machine. May be worth protecting the demo against that as all it is trying to do is get hold of the icon.
And seems to work OK as 32 bit process in Win 7. So just need to work out what is going on in Vista

What it looks like you have put the methods from IAudioSessionManager2 into IAudioSessionManager. Ideally both interfaces should be defined in NAudio, and the features from the 2 interface should only be available on OS that supports it

Ok, I'll try to fix it.

the same issue will exist with IAudioSessionControl2. Note that inheriting interfaces is a real pain with COM. You usually have to redefine all the methods from the inherited interface (as it is all offset based). See IMFActivate as an example of how this works (basically cut and paste the old interface in and use new keyword on all the v1 methods).
But all looks good otherwise. This will be a really nice feature for NAudio.

just checking in, have you had a chance to look into this?

Yes, but unfortunately at present I have not free time to complete it.

OK, no problem, it's just that there is now another pull request relating to IAudioStreamVolume, but I'd like to get this one in first if possible, and then see if there is any additional behaviour we need from the other one

I think I may have got this working now on Vista. Hopefully will get my changes checked in soon.

OK, have merged this in now with fixes so it doesn't crash on Vista. Possibly not the most elegant solution, but seems to work. If you get the chance, please get latest and check that all the behaviour you wanted still works.

Ok, it's good. I'll check it. On first sight you forgot to check some warnings (Inherited member hiding. Correct way is using "new" keyword for appropriate members).

doh, forgot to check the warnings. Also had to do a fix-up to the Win8 project too.


start on reboot

do you know the best way to start homebridge on reboot on the raspberry pi. I tried using npm forever, but ran into stability issues

Can you be more specific about your stability issues? Are there any errors output by homebridge? PM2 is a good alternative but it can be a bit more complicated to setup. I think the issue is more likely to be network or hardware related than forever specific. I personally use forever to run several production servers for months at a time without issue.

if i simply use forever start app.js all is fine, but once i reboot the system the forever service is no longer running. I got it working by creating a bash script that executes on reboot
#!/bin/sh
#/etc/init.d/nodeup
export PATH=$PATH:/usr/local/bin
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
case "$1" in
start)
cd /home/pi/homebridge &&
#exec forever --sourceDir=/home/pi/homebridge -p /home/pi/pid app.js
forever start app.js
;;
stop)
#exec forever stop --sourceDir=/home/pi/homebridge app.js
forever stop app.js
;;
*)
echo "Usage: /etc/init.d/nodeup {start|stop}"
exit 1
;;
esac
exit 0
save the file as nodeup.sh
sudo chmod 755 /etc/init.d/nodeup.sh
sudo chmod +x nodeup.sh
sudo update-rc.d nodeup.sh defaults
and hombridge now starts on reboot

@nfarina maybe this startup script could be added to https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi , if it's working?


Request permission CAMERA,CALL_PHONE... on android 7.0

Can you tell me why my other project running on Android 7.0 must ask the user to grant dangerous permissions (like CAMERA, CALL_PHONE...) for the first time, but this project running on Android 7.0 automatically gets all permissions?

This app has a targetSdkVersion value that's less than 23, so runtime permissions aren't required.
It's best for new apps to target a newer version and prompt users for permissions, though -- it's a better experience for users overall.

Thank you very much, I understand.


WebPack,OIDC and Client Side Rendering -WebStorageStateStore

In my appcompnent.ts file, I am trying to authenticate my user by calling the following on page load:
export class AppComponent implements OnInit {

    constructor( private authService: AuthService) { }

    ngOnInit() {
        this.authService.startSigninMainWindow();

    }

I expect this to route me to the IdentityServer login page.
In my auth.service.ts file, I am loading WebStorageStateStore like below.
import { UserManager, Log, MetadataService, User, WebStorageStateStore} from 'oidc-client';
In auth.service.ts I have a const called settings. This is where I set the WebStorageStateStore.

....    filterProtocolClaims: true,
loadUserInfo: true,
userStore: new WebStorageStateStore({ store: window.localStorage })
}
I get an error saying window is not defined. How do I resolve this? Webpack seems to be trying to render this serverside when there is no window object serverside. What is the recommended way to work around the serverside rendering and the conflict with a nonexistent window object?
An unhandled exception occurred while processing the request.
Exception: Call to Node module failed with error: Prerendering failed because of error: ReferenceError: window is not defined
at Object.<anonymous> (main-server.js:617:65)

Any suggestions as to a work around? Does anyone know how to turn off serverside prerendering for this component? Can I tell Webpack to ignore this component somehow since the OIDC javascript library is clientside only and needs the window object?

Does it really make sense to do server-side prerendering if you are strictly dependent on an authentication technology that only works client-side? What server-side prerendering output do you want to get in this case anyway?
If you do want to keep doing server-side prerendering, you could use something like Angular's DI system to supply different authentication service objects depending on whether you're running on the client or on the server. On the server, it could return some dummy object that always says you're not authenticated, whereas on the client, it could take a dependency on oidc-client etc. and follow the logic you already have. There are some pointers about this here: https://github.com/aspnet/JavaScriptServices/issues/303#issuecomment-246620724, but for more info please consult Angular docs.
If you want to disable server-side prerendering, just remove the asp-prerender-module tag helper from your Index.cshtml (and optionally remove the server-side bundle stuff from your Webpack configs).

Thanks. I am learning Angular and IdentityServer at the same time so there is much to learn.
Trying to work out all of the various technologies that make up these two platforms.


Support onBeforeShow callback for content loaded via Ajax

I have a scenario where a form will be loaded via Ajax upon clicking on a button. I want to have a step to target on the first input field of the form. I've tried to load the form in onNext callback of the previous step. But it seems like the position of the next step's element is calculated before onNext is triggered and the next step is being skipped because the form has yet to be loaded at that time.
Is it possible to add onBeforeShow callback to allow loading of content via Ajax?

I need this enhancement as well.  In the meantime, thanks for the workaround!  It works great.

Yah I'd definitely rather use support for deferred/async to properly await showing.
I would prefer a full lifecycle mechanism, like:
{
  onBeforeShow: function () {
    // void
  },
  waitOnBeforeShow: function () {
    // return a deferred object here
  },
  onAfterShow: function () {
    // void
  },
  canGoNext: function () {
    return true; // return bool
  },
  canGoPrev: function () {
    return false; // return bool
  }
}

This would solve almost all issues regarding waiting for async stuff, doing things before/after showing, and preventing/canceling next/prev actions (even returning true/false for onNext and onPrev to cancel/allow would work).

@kamranayub +1
Vassilis

+1
I would love onBefore and onAfter events for all actions, next, back, etc.

Thank you @luksurious Your workaround saved me.

I achieved the desired behavior by returning false from my onNext() callback after it kicks off the async code I want to complete before proceeding to the next step.  (This could be an Ajax request, or whatever)
I also used a multipage tutorial so that I could resume the tutorial at the end of my async call, since returning false from onNext() ends the tour.
Something like this: (sorry if its messy - i dont work with JS that often)
var myTour = {
    id: "tour",
    steps: [
        {
            title: "Step1",
            content: "This is step1.",
            target: "something",
            multipage: true,
            onNext: function () {
                doSomethingAsyncWithOnCompleteCb(function() {
                    hopscotch.startTour(myTour);
                })
                return false;
            }
        },
        {
            title: "Step2",
            content: "Select a repo from the search results.",
            target: "somethingElse"
        }
    ]
};

I was able to get the desired effect by returning false from my onNext() callback, after it kicks off the async code to complete before proceeding to step2.  (This could be an Ajax request, or whatever)
I then resume the tutorial on step 2 at the end of my async call, since returning false from onNext() ends the tour.
Something like this: (sorry if its messy - i dont work with JS that often)
var myTour = {
    id: "tour",
    steps: [
        {
            title: "Step1",
            content: "This is step1.",
            target: "something",
            multipage: true,
            onNext: function () {
                doSomethingAsyncWithOnCompleteCb(function() {
                    // do some stuff
                    ...
                    // show step2 as soon as the async work concludes:
                    hopscotch.startTour(myTour, 1); // step[1] == "Step2"
                })
                return false;
            }
        },
        {
            title: "Step2",
            content: "Select a repo from the search results.",
            target: "somethingElse"
        }
    ]
};


Is Credential Guard supported on W10 Pro

The guidance on this doc appears to conflict with this with regard to Credential Guard.  Is CG available on Windows 10 Pro or only Enterprise?

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

ID: 0238a73f-da06-ae17-c61d-85ae54e0f7cb
Version Independent ID: e5bb4a25-a7c3-3a16-bd95-d6f2513402e0
Content: Windows Defender Credential Guard Requirements (Windows 10)
Content Source: windows/security/identity-protection/credential-guard/credential-guard-requirements.md
Product: w10
Technology: windows
GitHub Login: @DulceMontemayor
Microsoft Alias: dolmont

@officedocsbot assign @jvsam

@Jonzeolla on enterprise OS those feathers are  available.
Check the recommend requirements again

I'm pretty sure I have reviewed it properly.  I also see another issue which whose root cause may also be the unclear documenation.

@JonZeolla
just now i checked on system information .On my machine Credential Guard is running fine .
enable LSA.exe.
i attached  screenshots and  device guard registry settings with this reply

Desktop.zip
try to enable  device guard in group policy editor.
Note if  you enable device guard , then you wont be able u to use  virtualization technology  ,eventhough if you enable intel VT d VTx enaled in bios

Win 10 Pro?

Sir I am using enterprise . But pro edition I dont have. Check with group policy editor.

Okay.  I'm not concerned about Enterprise, it's whether or not Pro supports it that is my question

Sir did you Checked with group policy editor. Or add the registry key that I was mentioned. and then restart the Windows. and see credential gurad is running or Not .
Without trying any ways, then there is No point to answer

I don't have a Windows 10 Pro license to test any of this out.  I'm opening this ticket because someone who is looking to decide between Pro and Enterprise doesn't have a clear answer on this feature from Microsoft

Hi @JonZeolla we appreciate you taking the time to open this issue and ask your question. As you have indicated, in the Windows 10 Editions Comparison table, Windows 10 Pro supports Windows Defender Credential Guard (x64 version of Windows) and it should also reflect on related documentations to avoid confusion. Though I'd like to point out as well that the article states it applies to Windows 10 in general.
I will forward this issue to the Windows writing team for review and if the documentation needs to  be updated, then amendments will  be submitted (pending approval). Thank you and we appreciate your feedback. We want users to have the best Windows 10 experience by ensuring that contents of the Microsoft Docs are useful, accurate and up-to-date.

@JonZeolla , Today I confirmed that I enabled credential guard by gpo and working fine on windows 10 pro 1809 64bit.

Thank you for the clarification and testing!  Closing this ticket.

Hi @RAJU2529 thank you so much for your assistance. Keep up the good work!
@JonZeolla since you have closed this issue, then it's considered resolved. However, feel free to re-open if you have suggestions to improve the quality of this documentation and we will submit them for review. Thanks for being part of the Microsoft Docs community!

FYI this is related to https://github.com/MicrosoftDocs/windows-itpro-docs/commit/d34ec3dade35a269ded076d327ffc473873e76d8

Thanks for referencing that issue @JonZeolla, however, that documentation is for Windows Defender Application Control (WDAC) and looking at the comparison table, WDAC is not available for Windows 10 Pro, which is the same as the suggested update on #3255 (Although on #2430, the Intune team confirmed that WDAC policies will work on Windows 10 Pro).
As for this documentation, I missed this part before, but it does explicitly mention the baseline protection requirements for OS—Windows 10 Enterprise, Windows 10 Education, Windows Server 2016, or Windows 10 IoT Enterprise (and as of Windows 10, Version 1607, Credential Guard is an integrated enterprise feature). There goes your answer to your original question. Now the comparison table, which shows Windows Defender Credential Guard's availability on Windows 10 Pro, is not part of the docs and there is nothing that we can do to request amendments. Perhaps submitting it through the Feedback Hub may be your best option. Let me know if I have misunderstood your concern. Thanks.

Thank you, the pointer to the feedback hub was helpful.

You're welcome @JonZeolla. Thank you again for taking the time to share your feedback and for being part of the Microsoft Docs community!

based on my experience, Windows 10 PRO DOES NOT support credential guard, to the contrary of some of the things people wrote in this thread - we have tested this 2 years ago, and today again.
just checking the output of msinfo32 or regedit is not enough, yes it's correct it shows that CG is running. but you need to actually test the functionality of CG with hacking tools like mimikatz. here is the result:
win10 enterprise, 2004, patchlevel 2020-09, 10.0.19041

win10 pro, 2004, patchlevel 2020-09, 10.0.19041

as you can see,
in win10 enterprise the credentials are encrypted by credential guard and therefore not readable by mimikatz (LSA Isolated Data)
in win10 pro however the ntlm hash is not encrypted and can therefore be stolen and abused for lateral movement.
i do not know if this is a bug, or a misconfiguration on our end somewhere, but we specifically tested this already 2 years ago and made the decision to invest into the enterprise edition because of this finding. and i'm pretty sure back then the docs clearly said "enterprise only".
this may have been changed in the meantime, but then something isn't working correctly.

@tecxx . Which command did you entered  in mimikartz for getting Above screen shot result

gain debug rights
privilege::debug
read credentials
sekurlsa::logonpasswords
in case you run other protections like PPL as well additional steps might be necessary, but that's the very basic command to extract your secrets.

So Windows itself display the result wrong.
This should be fixed too!
Thanks for a real test @tecxx

@tecxx . @beerisgood . Even in my windows 10 os , even mimikatz cannot retrieve my logon passwords  . so my credentials are safe

can you post a screenshot of this? are you connected to a domain?

@Tecxx . IAM eating food

@tecxx . @beerisgood . Even in my windows 10 os , even mimikatz cannot retrieve my logon passwords . so my credentials are safe

Why ?

@tecxx . @beerisgood . Even in my windows 10 os , even mimikatz cannot retrieve my logon passwords . so my credentials are safe

Why ?

Because i  have certain settings by using group policy editor and by registry key.

@RAJU2529  is your computer connected to a domain?

@tecxx. @beerisgood , My windows 10 laptop does not connected to the domain, it's a  standard alone computer.
below are the screenshots of the mimikatz

you have abviously no idea what you are talking about.
credential guard protects DOMAIN CREDENTIALS only and has no effect on local credentials.
the screenshot error you posted is the error message when mimikatz can not open the lsass memory space, which can either be because you are not running mimikatz as admin, you have an AV/EDR blocking it, or you are running PPL protection, which, as i mentioned above, must first be removed with additional steps.
anyway. since your pc is not in a domain it does not matter what you test. your credentials will never be protected by CG.

@RAJU2529 alright, good we could clarify this, but again, with a standalone system making any statement about CG is pointless, as it only protects domain credentials (see limitations). thanks for following through though.

on friday i opened a case with microsoft, here is their response from today:

But even if Pro would be supported, it wouldn't work on non-domain PC right? @tecxx
So normal users like us can't benefit from that anyway.

@beerisgood correct (link) currently it's a feature designed to protect domain credentials.

I guess as per last conversations we are good to close this issue now. Correct @tecxx @beerisgood

Yeah everything is written, also thanks for the great help.
Now this research should be used in DG_Readiness_Tool too

Thank you

not sure i understand - the documentation still does not mention Enterprise SKU as a requirement (https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-requirements) ?

and this documentation still is unclear as well:
https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage

"Windows 10 >=1909" suggests any SKU works, which is not correct.

@nam31 don't get me wrong but why all this effort to test, and open tickets with MSRC, and stuff - when then the documentation is not updated accordingly. can you please reopen and have this changed for good?

Thank you for doing all the work to prove that only Enterprise & Education is covered by Credential Guard. I will open a Pull Request to have that text changed accordingly.
Please suggest additional changes or additional sections in need of this detail, besides the "Applies to" section.

Feel free to comment & add suggestions for further improvements in my pull requests #8435 & #8436 .


Fix CA & Metrics Server imagePullSecrets Schema

Issue #, if available:
Epic: https://github.com/aws/eks-anywhere/issues/3186
Description of changes:
The imagePullSecrets schema field was wrong before. It accepted an array of strings when it should have accepted an array of objects.
This PR resolves the issue.
There was another issue in the metrics-server helm chart where the imagePullSecrets key was under image instead of being a top-level key.
None of these things caused actual bugs because the controller overrides imagePullSecrets and injects it as a value to the helm chart. All the same, I'd like to make these changes to keep things tight.
I've manually verified the changes by generating a bundle locally and applying it to a cluster. With the dev bundle I've successfully applied package configs that specify imagePullSecrets keys with object lists.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/cherry-pick release-0.12


Setup.py error (ValueError: bad marshal data )

Hi, i installed pytorch from source and install requirements.txt, I use cuda 10.2 and  Cudnn 7.5, when i command setup.py, i get error. I spend 2 days for this problem. I downloaded seamseg repo and setup.py works. but in this repo i get problem. please help me.
==============================================================
zip_safe flag not set; analyzing archive contents...
Traceback (most recent call last):
File "setup.py", line 77, in
include_package_data=True,
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/command/install.py", line 74, in run
self.do_egg_install()
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/command/install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 213, in run
os.path.join(archive_root, 'EGG-INFO'), self.zip_safe()
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 266, in zip_safe
return analyze_egg(self.bdist_dir, self.stubs)
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 340, in analyze_egg
safe = scan_module(egg_dir, base, name, stubs) and safe
File "/home/enesdrk/.local/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 377, in scan_module
code = marshal.load(f)
ValueError: bad marshal data (unknown type code)

and i installed pytorch from source and support python why i insalled pytorch via pip again, i dont understand

it works.
Should add  zip_safe=False in setuptools_setup in setup.py
setuptools.setup(
# Meta-data
name="GraspDetSeg_CNN",
zip_safe=False,
author="Stefan Ainetter",
<EMAIL_ADDRESS>description="Grasp Detection and Segmentation for Pytorch, code based on Seamless Scene Segmentation (https://github.com/mapillary/seamseg).",
long_description_content_type="text/markdown",
url="",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],


Add OpenShift support

Purpose

This feature allows creating artifacts for OpenShift. BuildConfigs and Routes can be generated using ballerina artifacts. Fixes https://github.com/ballerinax/kubernetes/issues/164.

Goals

Support for OpenShift.

Codecov Report

Merging #284 into master will increase coverage by 1.19%.
The diff coverage is 78.64%.

@@             Coverage Diff              @@
##             master     #284      +/-   ##
============================================
+ Coverage     77.18%   78.38%   +1.19%
- Complexity      655      717      +62
============================================
  Files            56       64       +8
  Lines          2845     3104     +259
  Branches        290      319      +29
============================================
+ Hits           2196     2433     +237
- Misses          514      520       +6
- Partials        135      151      +16

Impacted Files
Coverage Δ
Complexity Δ

...bernetes/processors/SecretAnnotationProcessor.java
80.39% <ø> (+2.61%)
9 <0> (ø)
:arrow_down:

...rocessors/ResourceQuotaAnnotationPreprocessor.java
82.22% <ø> (+4.67%)
9 <0> (ø)
:arrow_down:

...org/ballerinax/kubernetes/KubernetesConstants.java
92.3% <ø> (ø)
0 <0> (ø)
:arrow_down:

...tes/processors/VolumeClaimAnnotationProcessor.java
88.37% <ø> (+3.58%)
9 <0> (ø)
:arrow_down:

.../ballerinax/kubernetes/models/KubernetesModel.java
70% <ø> (-3.92%)
10 <0> (-2)

.../kubernetes/processors/HPAAnnotationProcessor.java
20% <ø> (+1.81%)
2 <0> (ø)
:arrow_down:

...llerinax/kubernetes/handlers/ConfigMapHandler.java
84.84% <0%> (ø)
6 <0> (ø)
:arrow_down:

...ernetes/processors/IngressAnnotationProcessor.java
58.74% <0%> (+0.52%)
16 <0> (ø)
:arrow_down:

.../istio/IstioVirtualServiceAnnotationProcessor.java
81.08% <0%> (-0.31%)
40 <0> (-1)

...cessors/istio/IstioGatewayAnnotationProcessor.java
88.18% <0%> (-0.28%)
27 <0> (-1)

... and 34 more

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 c168448...31bd3a9. Read the comment docs.


teaser image

Hello everybody,
I was trying to uncomment the teaser field in the _config.yml file in order to have a big picture at the top of the main page and nothing appears in the page...
Did somebody try to do this or there is another trick?
Moreover in the tutorial I read that it works in the "related posts" section, while I just see the "recent posts" section...
Is this correlated to the above problem?
I use ubuntu16 and Git-Hub Pages, single layout
Thanks
Great theme tho!

The teaser field in _config.yml doesn't have anything to do with setting images in the posts or in archive listings. You'll need to customize the theme to do this.
See this issue #1717 for ideas and code.
Closing as this is a duplicate of that issue.


Missing a reference for how to set the extension attribute values on devices

The main example is to filter on SAW devices using extensionAttribute1 with a specific value.  But there's no reference for how to set such a value.  I believe MS Graph is the only method currently available to set it.  There should be a link to a doc that talks about setting the values.

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

ID: fcc79933-58e1-66d1-81ae-f43802d41223
Version Independent ID: 5be1fefc-356e-d1eb-ab97-8cbe5654ff43
Content: Filter for devices as a condition in Conditional Access policy - Azure Active Directory
Content Source: articles/active-directory/conditional-access/concept-condition-filters-for-devices.md
Service: active-directory
Sub-service: conditional-access
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@dloder0
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

https://docs.microsoft.com/en-us/graph/api/device-update?view=graph-rest-1.0&tabs=http#example-2--write-extensionattributes-on-a-device


How can i solve this bug?

Challenge Change the Color of Text has an issue.
User Agent is: Mozilla/5.0 (iPad; CPU OS 9_3_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/54.0.2840.91 Mobile/13F69 Safari/601.1.46.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Hi @karanveerprince
Thanks for the report.
The issue tracker is for reporting bugs only. Please use the help chat room or try looking through the forum for help with a specific challenge.
Happy Coding.


[SPARK-7500] DAG visualization: move cluster labeling to dagre-d3

This fixes the label bleeding issue described in the JIRA and pictured in the screenshots below. I also took the opportunity to move some code to the places that they belong more to. In particular:
(1) Drawing cluster labels is now implemented in my branch of dagre-d3 instead of in Spark
(2) All graph styling is now moved from Scala to JS
Note that these changes are related because our existing mechanism of "tacking on cluster labels" afterwards isn't flexible enough for us to fix issues like this one easily. For the other half of the changes, visit http://github.com/andrewor14/dagre-d3.

Before.

After.

Merged build triggered.

Merged build started.

Test build #32483 has started for   PR 6076 at commit a0da7c1.

Merged build triggered.

Merged build started.

Test build #32485 has started for   PR 6076 at commit 5858d7a.

Test build #32483 has finished for   PR 6076 at commit a0da7c1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32483/
Test PASSed.

Merged build finished. Test PASSed.

Test build #32485 has finished for   PR 6076 at commit 5858d7a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32485/
Test PASSed.

Merging into master 1.4.


Android TV support

I would love to use finamp for my home music streaming, any idea how difficult this would be?

Do you mean streaming to an Android TV or an Android TV app? Also, if you're looking for Fintunes, you're in the right repository, if you're looking for Finamp, I might have to redirect you elsewhere ;).


Map locking failures to 'dead' status

Also, add a specific exception for quota-exceeded errors. This will help us identify general OpenStack breakage sooner and more easily.
This is http://tracker.ceph.com/issues/14515

other than one comment, lgtm

Good catch! Repushed


nimble/ll: Adjust start time of the first anchor point of connection

Set the start_time of the first anchor point of new connection to
entry->end_time+1.
For the 32768 Hz crystal in nrf chip, 1 tick is 30.517us.
The connection state machine use anchor point to store the cpu
ticks and anchor_point_usec to store the remainder. Therefore,
to compensate the inaccuracy of the crystal, the ticks of
anchor_point will be add with 1 once the value of
anchor_point_usec exceed 31. If two connections have same
connection interval, the time difference between the two start
of schedule item will decreased 1, which lead to an overlap.
To prevent this from happenning, we set the start_time of sch
to 1 cpu tick after the end_time of entry.

@sada45 sorry, I've miss clicked on your original PR, will merge fix from here


Composer package

Hi,
This is a great control
What do you think about the idea of making this available as a composer package?
If you are not able to do it, I can try and submit a PR
Let me know
Regards

@ASL07 sure, you can make a PR for that, that's really useful to have it as a composer package.


pull request for e2e test at 01/15/2017 18:26:18

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[BUG] log.Fatal and panic in a TinyGo component just exits, no log or error message

Affected project(s)

[ ] documentation
[X] examples
[ ] wasmCloud host
[ ] wasmCloud CLI (wash)
[ ] wasmCloud dashboard UI (washboard)
[ ] capability providers
[ ] provider bindgen
[ ] control interface client
[ ] other / not sure

Describe the bug
I noticed that when our http-client-tinygo example has an unlinked error, there are no error logs when it runs log.Fatal
Steps to reproduce

Modify the http-client-tinygo example and change the link to the HTTP client to use a package foo instead of http
Run the http-client-tinygo example
curl the HTTP endpoint, see a hang & no response

I believe that the function panics at trying to handle the HTTP request, as I can't modify the code at all to return an HTTP error.
Expected behavior
I expect for a log.fatal/panic in TinyGo to send that output to the host stderr logs
Environment

OS: [e.g. Linux, MacOS]
Shell [e.g. bash, zsh, powershell]
wasmcloud Version [e.g. 0.81.0]

Screenshots / Logs / Additional context
The log that would be helpful is a debug log and I'm bumping that to a warning for now
2024-09-10T14:01:20.512775Z DEBUG send_request:invoke_outgoing_handle: wasmcloud_runtime::component::http: invoking `wrpc:http/outgoing-handler.handle`
2024-09-10T14:01:20.512811Z DEBUG send_request:invoke_outgoing_handle: wrpc_transport::invoke: invoking function
2024-09-10T14:01:20.512826Z DEBUG send_request:invoke_outgoing_handle: wasmcloud_host::wasmbus::handler: component is not linked to a lattice target for the given instance lin
ks={"default": {"wasi:app/outgoing-handler": "http_client_tinygo-httpclient"}}<EMAIL_ADDRESS>target_instance="wasi:http/outgoing-handler" self.co
mponent_id="http_client_tinygo-http_component"

Taking another look here, this might be a general component issue in 1.2, where invocations that panic don't actually display in the logs 🤔


chore: ensure the docs command will look good on later versions of markdownify

…rkdownify
as of markdownify 0.7.1 it now converts hr tags natively
however, what it converts to is not supported by discord markdown
to get around this, we just return an empty string, as per current behavior
Current behavior:

Newer version of markdownify

With the patch:

Offending diff:
https://github.com/matthewwithanm/python-markdownify/compare/0.7.0...0.7.1

Why is this necessary? The version of markdownify is pinned to exactly 0.6.1

I-
I think it would have been worth noticing that.


[Feature] Unit Tests Should Support ref & source statements when specifying rows with sql

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Was speaking to Roberto Zagni. He has a table with some sample rows he'd like to easily reference, something like this:
given:
      - input: ref('stg_tpch_customers')
        format: sql
        rows: |
          select customer_key from {{ target.database ~ '.' ~ target.schema }}.stg_tpch_customers where is_testing_row = true

would like to use the ref or perhaps source statement instead
Describe alternatives you've considered
{{ target.database ~ '.' ~ target.schema }}.<table_name>
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response

@RobMcZagBDS and @ernestoongaro thank you both for raising this issue 🤩
After discussing with @graciegoheen, this isn't something we’d prioritize anytime soon, but we will continue to listen for how many folks are asking for this.
A large reason for our prioritization is the complexity that would be involved in implementing this. Here is a summary of some of the obstacles identified by @gshank:

SQL fixtures: Each one would need to be compiled, requiring additional code and refactoring.
Extra fields: New fields like compiled_sql would need to be added.
Dependency handling: Handling dependencies (depends_on) would be difficult because fixture nodes are created dynamically and don’t exist during the initial parsing stage. The unit testing manifest might need separate depends_on structures for each fixture.
Additional unknowns: there may be remaining things that would be difficult to handle or that we'd have a hard time detecting.

Thank you Dough, Grace, Gerda and Ernesto for looking into it.
I understand the technical difficulties, and somehow we can cope with the current limitations even if it is not as elegant and maintainable as it would by being able to use a source() reference.
Maybe it is just my feeling, but I would prefer to have a "FIXTURES" schema with "TABLE_XXX" and "TABLE_XXX__EXPECTATION" (if the expectation it is not the same as next input in the pipeline "TABLE_YYY") and select the rows and columns with SQL than have a similar collection of CSV or SQL files in a folder inside the repository.
We can do that with the current SQL feature by hardcoding the DB & SCHEMA. Do we have variables in the context?
BTW in the docs it would be nice to have a better description of what you expect from a SQL file.
My gut feeling is a piece of SQL that when run returns the desired rows and columns, but not 100% sure and have not yet experimented with it.


async loading

Can you please explain proper way to async or defer loading fluidplayer.min.js
now we use such script to detect fluidPlayer method
var fluidPlayerPlugin0 = function() {
var myFP = fluidPlayer(
playerId,
options
);
};
(function defer() {
if (typeof(fluidPlayer) != 'undefined') {
fluidPlayerPlugin0();
} else {
setTimeout(defer, 50);
}
})();
usually it works good, but sometimes on a slow 3g connection poster image loading twice: first time when preload and second after load event

@ZentoDH Can you please provide feedback here? If you think an internal ticket should be created please let me know. Thank you!

@biguz Sorry for the late response.
I'm not able to reproduce your issue. I've used the slow 3g function in chrome dev tools. Could you reproduce it in codepen or something similar?
Thanks!

@biguz since there's no feedback on this issue I will close this ticket. If the problem still persists please let us know and open it again. Thank you!

in pure js onload
in jquery .on('load', function(){})
after that you can use async or defer when you attach script in HTML


Proof reading Upgrade from Open Distro to OpenSearch.

Signed-off-by: dblock<EMAIL_ADDRESS>Description
Blog post is great! Some proof-reading.
By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

@stockholmux it looks like your requested changes were addressed. Pls give approval if this looks good to you now.