Facilitate ease of use around plotman being run as a service

from #177

My imagination is that plotman plot would end up being used as a service and you would systemctl start plotman and systemctl stop plotman etc.  You could enable it to start on boot.  When it crashed it would be restarted.  I presume that would handle log rolling of our output, etc.  I don't know a specific reason you couldn't set this up now, but I also haven't actually done it or heard of anyone doing it.  This would be significantly more useful with a monitoring version of interactive mode.  Or at least a plotman interactive --monitor cli option.

if I run plotman plot as command inside systemd service and later stop the service with sudo service plotman stop it stops! ALL the plotting jobs!!! started by this command. It was a big surprise for me when plotman status didn't show me 20+ started earlier jobs by this service. Any way to run plotman as a service and not to stop plotting jobs if the service is stopped?
plotman version used:  0.3.1
service config:
[Unit] Description=Plotman Service  After=network.target [Service] ExecStart=/home/chia/plotman/plotman.sh  WorkingDirectory=/home/chia/plotman StandardOutput=inherit StandardError=inherit Restart=always User=chia [Install] WantedBy=multi-user.target

@andrew-kratik, that sounds like a bug to me.  Feel free to open a dedicated ticket.  Efforts are already made to disassociate the plotting processes from the plotman processes.  If that's not working then it should be addressed directly.  Maybe you could check if there is a difference between when plotman plot is run directly and then killed as opposed to run by systemd and then killed?
In general, yes, plotman is already somewhat broken up into pieces, but there are lots of pointy corners in that usage.  plotman plot doesn't archive.  plotman interactive plots.  etc...  And we'll have to deal with a user mindset shift away from plotman interactive does everything, or make it so it still does.


Registration docs update for UsageReporting and MarketplaceSyndication parameters

changes already merged as part of this PR: https://github.com/Azure/AzureStack-Tools/pull/567


Apply magical ros2 conversion tool

Used this tool to get the "low hanging fruit"
https://github.com/DLu/roscompile/tree/main/magical_ros2_conversion_tool

Will merge to continue development. Have another PR where part of the code already compiles


Array flattening in deserializer loses previously de-serialized attributes

Referencing the following:
https://github.com/Azure/ms-rest-js/blob/ef37d563d7f604cab8a151c8cc50f064bddfc1b4/lib/serializer.ts#L738
This code blows away any previously deseriaized attributes on the instance. This causes a loss of information such as the odata.* attributes in the following model.
    var PolicyEventsQueryResults = {
        serializedName: "PolicyEventsQueryResults",
        type: {
            name: "Composite",
            className: "PolicyEventsQueryResults",
            modelProperties: {
                odatacontext: {
                    serializedName<EMAIL_ADDRESS>                    type: {
                        name: "String"
                    }
                },
                odatacount: {
                    serializedName<EMAIL_ADDRESS>                    constraints: {
                        InclusiveMinimum: 0
                    },
                    type: {
                        name: "Number"
                    }
                },
                odatanextLink: {
                    serializedName<EMAIL_ADDRESS>                    type: {
                        name: "String"
                    }
                },
                value: {
                    serializedName: "",
                    type: {
                        name: "Sequence",
                        element: {
                            type: {
                                name: "Composite",
                                className: "PolicyEvent",
                                additionalProperties: {
                                    type: {
                                        name: "Object"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

A short-term work-around is to move the value property to the start of the model, but a proper fix would be to either sort the order of properties being parsed to do the array generation first, or to save and re-apply any existing attributes.

Thanks for reporting @mgranell and for the PR!
@jeremymeng, Please take a look

@mgranell Thank you for your contribution! @azure/ms-rest-js 2.5.1 is now on npmjs.


Use the chrome timeline?

https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html#profiling-components-with-chrome-timeline
https://developer.mozilla.org/en-US/docs/Web/API/User_Timing_API

This is probably lower priority than most other things, and seems like a lot of work.


Pnsr and SSIM

Hello,@cchen156,I used the cpkt file you provided to test PNSR and SSIM, but the measured value is still lower than the original text, PNSR=28.639, SSIM=0.7682, is it different from the method I used to test pnsr and ssim? Can you provide the method or code for testing pnsr and ssim?

I save the results and test them in MATLAB with the default parameters.


fix: color picker error message fix

Description
Quick style bug fix of error message of the ColorPicker component.

Deploy Preview
Include a direct link to your changes in this PR's deploy preview here (e.g., a specific component page).

Merge Checklist

[ ] If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Netlify deploy preview, if applicable.
[ ] Does your change adhere to the documented style conventions?
[ ] Do any prop types have missing descriptions in the Props API tables in the documentation site (check deploy preview)?
[ ] Were your changes tested using all available themes (see theme switcher in the header of the deploy preview, under the "Settings" icon)?
[ ] Were your changes tested in the example app?
[ ] Is there adequate test coverage for your changes?
[ ] Consider whether this change needs to reviewed/QA'ed for accessibility (a11y). If so, please add wittjeff and adamstankiewicz as reviewers on this PR.

Post-merge Checklist

[ ] Verify your changes were released to NPM at the expected version.
[ ] If you'd like, share your contribution in #show-and-tell.
[ ] 🎉 🙌 Celebrate! Thanks for your contribution.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Is there a reason why all 3 checks are in 1 job?

When one of the jobs fail, it is hard to see immediately which one. Should these be 3 separate jobs in a matrix?

Unit tests
PEP 8
Doc build

Trying to reduce ecological footprint from having to spin up 3 VMs for such a small package :) But seriously though, feel free to split.

Now that you guilt trip me like that, I am not sure how to respond. Haha. 🤔

Sorry for the 🇬🇧 reply :wink: - actually I don't know if it really matters if we split it or not in terms of build time/energy, I wasn't really being serious above.

Do you wanna try out Azure here? 🤔

I am thinking... if we going to split the job anyway, it is not too much more work to just do it in azure-pipelines.yml. (Not a 🇬🇧 reply.)


[Model] Remove intermediate states copying in Mllama

Mllama model - This PR changes the way intermediate hidden states are kept inside encoder part of the model. Appending a tuple with tensors and stacking them at the end can cause memcopying on different devices. This sollution avoids using tuple and uses pre-located tensor instead.
That can help to improve encoder speed by avoiding tensors stacking (which triggers memcopy)

Do you have benchmark result on this optimization? I think we still need a copy operation here:
encoder_states.index_copy_(0, hidden_states_idx, hidden_states.unsqueeze(0))

Do you have benchmark result on this optimization? I think we still need a copy operation here:
encoder_states.index_copy_(0, hidden_states_idx, hidden_states.unsqueeze(0))

@heheda12345 I observe stable improve in prompt time when using Gaudi devices. Depends on hidden states size, but always getting a few ms boost with this change.

Can you show how did you do the benchmarking and your exact number here?


Fix manual locale/language set problem, SDK29  / Q+

Fixing locale problems.

Is it working? @norkator have you tested this?

Is it working? @norkator have you tested this?

Work in progress, I open draft PR's to connect issues to it.

Weird that main activity works now but other activities doesn't, trying to find what is causing that.

Is the change also in Application class?

Is the change also in Application class?

If you mean "PaketinSeurantaApp" class -> no, if I put it there, then whole app is again same locale as OS.

I need to still later do more testing with different Android versions to see should I exclude this setApplicationLanguage from some specific OS versions.

Can you summarize what did you to to get it working? 😃

Can you summarize what did you to to get it working? 😃

Added updateResourcesLocaleQ function on localeutils, after this MainActivity started to work with set language at settings.
Then to get rest of the activities to work:
Dumped localeUtils.setApplicationLanguage(this); to every onCreate after super.onCreate(savedInstanceState);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
localeUtils.setApplicationLanguage(this);
setApplicationLanguage function is found from stackoverflow 🤣
This feels like big hack again.

@developerfromjokela by the way, I have been digging that preference system you changed earlier, very great work with this so got rid of that old fnp material preference junk.

Can you summarize what did you to to get it working? smiley

Added updateResourcesLocaleQ function on localeutils, after this MainActivity started to work with set language at settings.
Then to get rest of the activities to work:
Dumped localeUtils.setApplicationLanguage(this); to every onCreate after super.onCreate(savedInstanceState);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
localeUtils.setApplicationLanguage(this);
setApplicationLanguage function is found from stackoverflow rofl
This feels like big hack again.

Wouldn't it be better to make one activity class containing all locale utilities and extending others to that class?
Saving some code from duplicating is always great

Can you summarize what did you to to get it working? smiley

Added updateResourcesLocaleQ function on localeutils, after this MainActivity started to work with set language at settings.
Then to get rest of the activities to work:
Dumped localeUtils.setApplicationLanguage(this); to every onCreate after super.onCreate(savedInstanceState);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
localeUtils.setApplicationLanguage(this);
setApplicationLanguage function is found from stackoverflow rofl
This feels like big hack again.

Wouldn't it be better to make one activity class containing all locale utilities and extending others to that class?
Saving some code from duplicating is always great

Yeah, true.

@developerfromjokela I made class LocaleClass which extends AppCompatActivity having attachBaseContext as usual then onCreate because localeUtils.setApplicationLanguage(this); needs to be run after super.onCreate(savedInstanceState); buut whole thing now crashing. I leave this like it is now, someone else can improve if wants.

I confirm now it works perfectly. Language is right all the time

I confirm now it works perfectly. Language is right all the time

Great, what about that class extending idea, can you show some light how to do it right?


Expose Object structures so we can subclass them

To be able to subclass GObject, the exposed GObject structure need to have the right size, so also include the private fields. It is the case with basically any class but I hit the problem trying to create a GObject subclass
Basically with that stupid patch it works:
diff --git a/gobject-sys/src/lib.rs b/gobject-sys/src/lib.rs
index b3bc4e1..51f4af4 100644
--- a/gobject-sys/src/lib.rs
+++ b/gobject-sys/src/lib.rs
@@ -438,7 +438,12 @@ pub struct GBinding(c_void);
 #[repr(C)]
 pub struct GInitiallyUnowned(c_void);
 #[repr(C)]
-pub struct GObject(c_void);
+pub struct GObject {
+    pub g_type_instance: GTypeInstance,
+    ref_count: c_uint,
+    qdata: *mut glib::GData,
+
+}

I know everything is generated, but I can't build ( as I am getting rustc: /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:1304: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed. while compiling git2 ) thus I can't really play with it right now.
I will try to make some time to do it the right way but I would like to first have you opinion about it and maybe get some pointers about how that should happen.

Possible related PR: https://github.com/gtk-rs/gir/pull/276

It generated
#[repr(C)]
pub struct GObject {
    pub g_type_instance: GTypeInstance,
    ref_count: Volatile<c_uint>,
    qdata: *mut glib::GData,
}

But it also can be bad as we have https://github.com/gtk-rs/sys/issues/25 (it's old issue and I don't understand it)

Possible related PR: gtk-rs/gir#276

Yes that sounds very  related, looks like it is quite ready to merge isn't it?

But it also can be bad as we have #25 (it's old issue and I don't understand it)

Well, at least for all derivable GObject you will need to expose the class structures otherwise it will not be possible to subclass.

@thiblahute, subclassing from GObject in https://github.com/gtk-rs/sys/issues/34#issuecomment-265565086 is work's despite it have private fields?

@thiblahute, subclassing from GObject in #34 (comment) is work's despite it have private fields?
@EPashkin With that definition it does work yes.

(not sure what was the question tbh :))

@thiblahute we have option to make all fields in classes structs public, but if it not really needed IMHO better don't do that.

@thiblahute we have option to make all fields in classes structs public, but if it not really needed IMHO better don't do that.

Well, if you are using GObject you probably want to subclass objects, and in that case you need to have access to the actual Object structure, thing is that in GObject land we usually put private fields after a /*< private >*/ delimiter, those fields should ideally be all private.
My goal is to write GStreamer elements in pure rust, so I will need to be able to subclass :)


Weird forced gas limit on getData

https://github.com/ERC725Alliance/erc725.js/blob/9f1b5fdd0cb4eceab4396fb2d4b7fd02a8a17d2a/src/constants/constants.ts#L69
This hard codes the gas limit to 2M for retrieving a data item (or various other flavors of the ERC725Y methods). This seems arbitrary and unreasonable, especially as some contracts might want to dynamically generate data items. Unless there's some very good reason, would it be possible to remove that limitation?

Hey hi @karalabe @CJ42 ! Thanks for opening the issue!
It is indeed, this is arbitrary. It is not needed and should be changed. I believe this was set like this a while ago and we never updated it.
Similarly, the gasPrice is also hardcoded.
We should think about a way to make this dynamic / configurable by the user.

@Hugoo This could be an option in the ERC725 class.


Website security alert

antivirus is blocking access to http://pdfkit.org/

Not sure there is much I can do about that. There are no viruses on the website 😉


repo sync

This is an automated pull request to sync changes between the public and private repos.
:robot: This pull request should be merged (not squashed) to preserve continuity across repos, so please let a bot do the merging!

Dne 13. 11. 2020 6:49 napsal uživatel "github-actions[bot]"<EMAIL_ADDRESS>@github-actions[bot] approved this pull request.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

[Tcb](tcb)


Generate mock data for tests from specific repositories

Closes #7.
Fetches the last PR status for the repos specified in test/repos.json, determines the expected test results, and saves the responses to test/mocks.json. Added fetch-mocks script to fetch those responses for the first time. On subsequent runs, the evaluation subroutine can be tested against those responses.

I will be jumping into this as well but there is one mock that's going to be hard to generate which are the watch mocks. Should I do everything else and skip that one?

Sure, let’s start with that :-)

So currently, we fetch from GitHub api and run the relevant tests on those responses.

Get the latest pull request from 5 separate repositories.
Compare evaluatePullRequest to statusCheckRollUp.state on those responses and if they're the same then evaluatePullReqest passes.
Run the other tests such as filterPullRequest, parsePullRequest, evaluateCommitStatus on those responses.

Some issues I have with this implementation:

We don't have full control on the statuses. For example, we won't be able to test for all possible pull request statuses i.e. since only the latest PR is being returned from the 5 repositories we have chosen.
We are getting the response and then checking it with our own implementation. So essentially we don't know the actual status and only check when its returned. Maybe something better would be to know the actual status (as you see on github.com) before and then running our tests on that so that we will know whether our implementation is actually valid.

Which is why I would like to propose that we can set up a dummy repo with  set statuses (hopefully as much as possible) which we can test against. Also this will help validate our implementation because we already know beforehand what the status is - instead of checking it only when the response is returned.

I think a dummy repo makes perfect sense. Want to make it and set it up, and then later you can transfer it to me so it can live alongside this one?

Awesome that sounds like a plan!

One thing I came across which may be a non-issue is that if the user doesn't have an internet connection they may not be able to fetch the mocks and run the tests.
Maybe we should leave the current mocks in as default and then if the user wants to fetch the latest they can do so?
We could also have a script or action that can periodically update the mocks as well on GitHub Actions or something

Or maybe it can just be left as is because the tool is reliant on having an internet connection?

My expectation is that the mocks should be committed to git, and updateable only manually by an explicit command; that way, no internet connection is required to run tests.


[5.2] Removed accidently left in method

putMultiple appears nowhere in the code apart from there. It appears this was left in by mistake after the pullMany refactor.

It's a public method :expressionless:

It was just left any by accident and has never been mentioned or documented anywhere.


south america cultures

--
I don't think that south andean culture should be the region of upper peru, maybe make it so that it is split by area instead?
the Tucuman areas and the Chaco areas should be platinean.
Also, the Northern Chile, Central Chile, and Southern Chile areas should be south andean, since the chilean culture is different than la plata "argentina and uruguay."
This would make it match up more to vanilla and hpm culture mappings as well.
If you don't agree with this change, how would i change it so that it would be like how I mentioned?
Please take this into consideration.
--

The Latin American culture splits should be based on vanilla

done via #579


Get user orgs

Related to https://github.com/Sage-Bionetworks/rocc-schemas/pull/173

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
100 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.4%) to 43.401%

Files with Coverage Reduction
New Missed Lines
%

openapi_server/controllers/user_controller.py
100
13.27%

Totals

Change from base Build<PHONE_NUMBER>:
-0.4%

Covered Lines:
1345

Relevant Lines:
3099

💛  - Coveralls


Change tools hadoop version to 3.3.4

Update to hadoop 3.3.4 so we pick up latest hadoop fixes. It really doesn't matter much since we just rely on the API which hasn't changed, and we don't ship Hadoop itself, but allows the scans to use newer versions.
Ran through tools tests.
Signed-off-by: Thomas Graves<EMAIL_ADDRESS>

build


Update sites.yml

This PR is:

[ ] Adding a new domain
[ ] Updating existing domain
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (darktheme.club site)
[ ] Other not listed

[ ] The domain is in the correct alphabetical order
[ ] The following information is filled identical to the data file

I confirm that I have read the FAQ page, particularly the red section about inappropriate content, and I attest that this site is appropriate based on those criteria.

[ ] Check to confirm

- domain: tecroxy.com
  url: https://tecroxy.com/ (Make sure you keep the trailing slash)
  method: javascript
  last_checked: 2022-12-11 (YYYY-MM-DD)

Thanks for adding your site!


IOS 14 click the link button to crash

IOS 14 click here to crash
ios11 is ok
my plist is ok

It's according to the document https://developers.livechat.com/docs/getting-started/installing-livechat/ios-widget/#introduction Constructed
Inconvenient screenshot video
Click the red area button and the black screen will pop up
At present, only ios14 will be tested. Please test ios14

Click the red button and the screen will go black
Then exit to the main interface

@xiadao2014 could you please provide us with a minimal sample project reproducing this issue? We are not able to reproduce the issue on our end, on iOS 14 as well.

Closed due to inactivity.


Update asset_picker_viewer_builder_delegate.dart

If you select the same amount as maxAssets, you cannot select it again after unselecting it.
#607 #646 problems in android

Please make correction so the PR only fixes #607.


Create Docker and Compose files for active development

User forks and clones element-lab, element-animal, element-session, element-array-ephys, and workflow-array-ephys packages to their host machine.
These packages are then installed within the Docker image.
These packages can be modified on the host machine, and the updates will be reflected within the Docker container.
In the future we should possibly consolidate these sets of Docker and Compose files.

Hi @CBroz1 @tdincer @davidgodinez @GeetikaSi, this pull request includes the updates we discussed this morning.  Thanks.

I really like this as a standard moving forward. My only reservation is how many files this adds to the root workflow directory. We're asking the workflows to do double duty: (a) run integration tests/function as dev environment, (b) instruct users on how to use our tools. Can we migrate the docker files to a subdirectory to provide novice users with a clearer delineation between dev and didactic materials?

Hi @CBroz1, that's a good idea.  I am looking for best practices and examples on how to organize these files.


adapter reload?

Hi, I'm trying to reload just as the animation example demo.
I get the following error:
TypeError: $scope.adapterContainer.adapter.reload is not a function
v1.3.3
$scope.refresh = function () {
return $scope.adapterContainer.adapter.reload();
};
Wondering if it is different in 1.3.3?

No it is not different. What did you call your adapter?
Michael Feingold, President
401 Huehl RD, Suite 2A,
Northbrook, IL 60062
Email<EMAIL_ADDRESS>Web: hill30.com http://www.hill30.com
On Tue, Mar 8, 2016 at 1:20 PM, Marty<EMAIL_ADDRESS>wrote:

Hi, I'm trying to reload just as the animation example demo.
I get the following error:
TypeError: $scope.adapterContainer.adapter.reload is not a function
v1.3.3
$scope.refresh = function () {
return $scope.adapterContainer.adapter.reload();
};
Wondering if it is different in 1.3.3?
—
Reply to this email directly or view it on GitHub
https://github.com/angular-ui/ui-scroll/issues/60.

Hi Michael, my bust, you made me realize I was calling parent scope controller.
Thanks, I got it now.


"Check failed: delegates_.empty()" in DelegateSimpleThreadPool destructor

The DelegateSimpleThreadPool destructor frequently aborts (causing core dump) with the following message:
simple_thread.cc:95] Check failed: delegates_.empty()
Does it mean that the thread pool contains uncompleted tasks? However, DelegateSimpleThreadPool::JoinAll() is called before the destructor runs.

Are there any other errors? There's a same CHECK on emptiness of delegates_ at line 120 just inside JoinAll, the check should be failed before the one reported by you. If no other errors are reported, the memory is probably corrupted, consider running it with asan first.

Consider using bthread to launch jobs in parallel instead of the pool which is only kept for unittests.


Add bundlesizeOptimizations options to docs

we export options around automating tree shaking but don't document them at the moment. We should add the options to the documentation generation script.

Was added here: https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/582/files#diff-5cae8150c6ef04a7e9356e37f46c0d36edc662f5a028861874a82ce1534b5e43


structural changes: uniy sorting_key and observable

The file pool_model.py has the function sorting_key(x) and in the file src/solving.py, we have to supply the observable which is often simply given by one of the predefined functions convert_S_matrix_to....
Additionally the function calculate_Fischer_observable in file src/solving.py needs to be adjusted such that all arguments times, Q_arr, P, Const, S are given to the observable function.
The file src/optimization.py uses this sorting_key function which is pointless since we always want to sort by the observable itself (which is simply a number).

Does it mean that we want in the functions convert_S_matrix_to... already divide determinant or other observable with effort? And save already this function, right?

Since commit 7b47808078238febd21c6b146a41c2f599602342, sorting key is now a model-specific (to pool_model.py) quantity and not part of the abstraction.


We should be able to cumulated metadata types

e.g. pkt and file
this would allow to know for example that a segment file from the mp4 starts with a RAP

No real use-case. We can forward as much information as we want with the File metadata.


Updates vyper versions to supported versions

Changes introduced in this PR:

Updates configuration to supported vyper versions based on releases found here.

@kailash-manasarovar the @matterlabs/hardhat-zksync-vyper will be used to deploy vyper contracts rather than solidity. You cannot make use of the Greeter.sol. I can start on a "How to" for compiling vyper contracts with a fuller example.
To test:
Install:
yarn add @nomiclabs/hardhat-vyper;
yarn add @matterlabs/hardhat-zksync-vyper;

To test you can make use of the following Greeter.vy contract:
# @version ^0.3.3
# vim: ft=python

owner: public(address)
greeting: public(String[100])

# __init__ is not called when deployed from create_forwarder_to
@external
def __init__():
  self.owner = msg.sender
  self.greeting = "Hola mundo"

# call once after create_forwarder_to
@external
def setup(_greeting: String[100]):
  assert self.owner == ZERO_ADDRESS, "owner != zero address"
  self.owner = msg.sender
  self.greeting = _greeting

@external
@view
def greet() -> String[100]:
    return self.greeting

Hardhat config:
import { HardhatUserConfig } from "hardhat/config";

import "@matterlabs/hardhat-zksync-deploy";
import "@nomiclabs/hardhat-vyper";
import "@matterlabs/hardhat-zksync-vyper";

const config: HardhatUserConfig = {
  zkvyper: {
    version: "1.3.7",
    compilerSource: "binary",  // binary or docker
    settings: {
      // compilerPath: "zkvyper",  // ignored for compilerSource: "docker"
      libraries:{} // optional. References to non-inlinable libraries
    }
  },
  defaultNetwork: "zkSyncTestnet",
  networks: {
    hardhat: {
      zksync: true  // enables zksync in hardhat local network
    },
   zkSyncTestnet: {
    url: "https://zksync2-testnet.zksync.dev",
    ethNetwork: "goerli",
    zksync: true,
  }
  },
  // Currently, only Vyper ^0.3.3 is supported.
  vyper: {
    version: '0.3.3',
  },
};

export default config;

@kailash-manasarovar the @matterlabs/hardhat-zksync-vyper is used to deploy vyper contracts rather than solidity. You cannot make use of the Greeter.sol. I will update the docs here with a fuller example but for reference:
To test:
Install:
yarn add @nomiclabs/hardhat-vyper;
yarn add @matterlabs/hardhat-zksync-vyper;

To test you can make use of the following Greeter.vy contract:
# @version ^0.3.3
# vim: ft=python

owner: public(address)
greeting: public(String[100])

# __init__ is not called when deployed from create_forwarder_to
@external
def __init__():
  self.owner = msg.sender
  self.greeting = "Hola mundo"

# call once after create_forwarder_to
@external
def setup(_greeting: String[100]):
  assert self.owner == ZERO_ADDRESS, "owner != zero address"
  self.owner = msg.sender
  self.greeting = _greeting

@external
@view
def greet() -> String[100]:
    return self.greeting

Hardhat config:
import { HardhatUserConfig } from "hardhat/config";

import "@matterlabs/hardhat-zksync-deploy";
import "@nomiclabs/hardhat-vyper";
import "@matterlabs/hardhat-zksync-vyper";

const config: HardhatUserConfig = {
  zkvyper: {
    version: "1.3.7",
    compilerSource: "binary",  // binary or docker
    settings: {
      // compilerPath: "zkvyper",  // ignored for compilerSource: "docker"
      libraries:{} // optional. References to non-inlinable libraries
    }
  },
  defaultNetwork: "zkSyncTestnet",
  networks: {
    hardhat: {
      zksync: true  // enables zksync in hardhat local network
    },
   zkSyncTestnet: {
    url: "https://zksync2-testnet.zksync.dev",
    ethNetwork: "goerli",
    zksync: true,
  }
  },
  // Currently, only Vyper ^0.3.3 is supported.
  vyper: {
    version: '0.3.3',
  },
};

export default config;

great, I'm unfamiliar with Vyper.. thank you.. I can do the update if you like?

@kailash-manasarovar I just made the update to provide a fuller example. Hopefully its improved 🙂!


loot tracker: track Agility dispenser

Type
Other
Operating System
None
OS Version
No response
Bug description
In today's update, Jagex added the Agility dispenser, which can among others dispense loot after paying the 150k fee. Currently, loot tracker does not track this loot.
When implementing this, one should probably keep in mind:

What happens if the user has an open looting bag? Do the items go straight into it? If yes, that makes tracking more complicated. Reliably turning the chat message into a loot event could be tough.
It looks like it just add the items to your inventory when you use the tag option. I'm uncertain what happens if your inventory is (partially) full.

Getting items from the dispenser does create a chat message as can be seen here:

Note: I recommend using QSR worlds to prevent being interrupted by pkers (e.g. DS2 -> buy alch runes in e.g. yanille -> alch some gear -> teleport to Ghorrock).
Screenshots or videos
No response
RuneLite version
RL master commit f457f1f91314bf78508bb81a82357c99974ea327
Logs
No response

What happens if the user has an open looting bag? Do the items go straight into it?

Unsurprisingly but probably expected, the items do go directly into the looting bag.

I'm uncertain what happens if your inventory is (partially) full.

This is only information while the setting Looting bag - Ignore supplies is enabled, but I started with a full inventory, so the noted items automatically went into my looting bag(including food which was noted), after I ate food, those inventory slots would be replaced with unnoted food/restores.


Update spring-context, spring-core to 6.1.12

About this PR
📦 Updates

org.springframework:spring-context
org.springframework:spring-core

from 5.3.39 to 6.1.12 ⚠
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.springframework" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.springframework" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.43%. Comparing base (c04d33c) to head (9e35d77).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1727      +/-   ##
==========================================
+ Coverage   79.35%   79.43%   +0.07%
==========================================
  Files         144      144
  Lines        5008     5008
  Branches      670      670
==========================================
+ Hits         3974     3978       +4
+ Misses       1034     1030       -4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml]

2018/11/05 06:33:09 [ERROR] CatalogController library [catalog] failed with : Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml], did not respond in 30s
2018/11/05 06:33:49 [ERROR] CatalogController library [catalog] failed with : Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml], did not respond in 30s
2018/11/05 06:34:29 [ERROR] CatalogController library [catalog] failed with : Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml], did not respond in 30s

can not find this yaml

2018/11/05 07:12:10 [INFO] Rancher version v2.1.1 is starting,
2018/11/05 07:12:10 [INFO] Rancher arguments {ACMEDomains:[] AddLocal:auto Embedded:false KubeConfig: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false NoCACerts:false ListenConfig: AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:3},
2018/11/05 07:12:10 [INFO] Listening on /tmp/log.sock,
2018/11/05 07:12:10 [INFO] Running etcd --peer-client-cert-auth --client-cert-auth --initial-cluster-token=etcd-cluster-1 --initial-advertise-peer-urls=https://<IP_ADDRESS>:2380 --initial-cluster=etcd-master=https://<IP_ADDRESS>:2380 --cert-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1.pem --election-timeout=5000 --name=etcd-master --listen-peer-urls=https://<IP_ADDRESS>:2380 --initial-cluster-state=new --heartbeat-interval=500 --listen-client-urls=https://<IP_ADDRESS>:2379 --peer-trusted-ca-file=/etc/kubernetes/ssl/kube-ca.pem --key-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1-key.pem --peer-key-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1-key.pem --data-dir=/var/lib/rancher/etcd/ --advertise-client-urls=https://<IP_ADDRESS>:2379,https://<IP_ADDRESS>:4001 --trusted-ca-file=/etc/kubernetes/ssl/kube-ca.pem --peer-cert-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1.pem,
2018-11-05 07:12:10.453969 I | etcdmain: etcd Version: 3.2.13,
2018-11-05 07:12:10.453984 I | etcdmain: Git SHA: Not provided (use ./build instead of go build),
2018-11-05 07:12:10.453990 I | etcdmain: Go Version: go1.11,
2018-11-05 07:12:10.453996 I | etcdmain: Go OS/Arch: linux/amd64,
2018-11-05 07:12:10.454005 I | etcdmain: setting maximum number of CPUs to 1, total number of available CPUs is 1,
2018-11-05 07:12:10.454309 N | etcdmain: the server is already initialized as member before, starting as etcd member...,
2018-11-05 07:12:10.454349 I | embed: peerTLS: cert = /etc/kubernetes/ssl/kube-etcd-127-0-0-1.pem, key = /etc/kubernetes/ssl/kube-etcd-127-0-0-1-key.pem, ca = , trusted-ca = /etc/kubernetes/ssl/kube-ca.pem, client-cert-auth = true,
2018-11-05 07:12:10.455168 I | embed: listening for peers on https://<IP_ADDRESS>:2380,
2018-11-05 07:12:10.455252 I | embed: listening for client requests on <IP_ADDRESS>:2379,
2018-11-05 07:12:10.458174 I | etcdserver: name = etcd-master,
2018-11-05 07:12:10.458192 I | etcdserver: data dir = /var/lib/rancher/etcd/,
2018-11-05 07:12:10.458199 I | etcdserver: member dir = /var/lib/rancher/etcd/member,
2018-11-05 07:12:10.458204 I | etcdserver: heartbeat = 500ms,
2018-11-05 07:12:10.458209 I | etcdserver: election = 5000ms,
2018-11-05 07:12:10.458217 I | etcdserver: snapshot count = 100000,
2018-11-05 07:12:10.458230 I | etcdserver: advertise client URLs = https://<IP_ADDRESS>:2379,https://<IP_ADDRESS>:4001,
2018-11-05 07:12:10.491041 I | etcdserver: restarting member e92d66acd89ecf29 in cluster 7581d6eb2d25405b at commit index 3571,
2018-11-05 07:12:10.491205 I | raft: e92d66acd89ecf29 became follower at term 4,
2018-11-05 07:12:10.491221 I | raft: newRaft e92d66acd89ecf29 [peers: [], term: 4, commit: 3571, applied: 0, lastindex: 3571, lastterm: 4],
2018-11-05 07:12:10.596131 I | mvcc: restore compact to 2395,
2018-11-05 07:12:10.598212 W | auth: simple token is not cryptographically signed,
2018-11-05 07:12:10.680997 I | etcdserver: starting server... [version: 3.2.13, cluster version: to_be_decided],
2018-11-05 07:12:10.681909 I | embed: ClientTLS: cert = /etc/kubernetes/ssl/kube-etcd-127-0-0-1.pem, key = /etc/kubernetes/ssl/kube-etcd-127-0-0-1-key.pem, ca = , trusted-ca = /etc/kubernetes/ssl/kube-ca.pem, client-cert-auth = true,
2018-11-05 07:12:10.684459 I | etcdserver/membership: added member e92d66acd89ecf29 [https://<IP_ADDRESS>:2380] to cluster 7581d6eb2d25405b,
2018-11-05 07:12:10.684643 N | etcdserver/membership: set the initial cluster version to 3.2,
2018-11-05 07:12:10.684703 I | etcdserver/api: enabled capabilities for version 3.2,
2018-11-05 07:12:15.492215 I | raft: e92d66acd89ecf29 is starting a new election at term 4,
2018-11-05 07:12:15.492368 I | raft: e92d66acd89ecf29 became candidate at term 5,
2018-11-05 07:12:15.492396 I | raft: e92d66acd89ecf29 received MsgVoteResp from e92d66acd89ecf29 at term 5,
2018-11-05 07:12:15.492423 I | raft: e92d66acd89ecf29 became leader at term 5,
2018-11-05 07:12:15.492445 I | raft: raft.node: e92d66acd89ecf29 elected leader e92d66acd89ecf29 at term 5,
2018-11-05 07:12:15.493351 I | etcdserver: published {Name:etcd-master ClientURLs:[https://<IP_ADDRESS>:2379 https://<IP_ADDRESS>:4001]} to cluster 7581d6eb2d25405b,
2018-11-05 07:12:15.493427 I | embed: ready to serve client requests,
2018-11-05 07:12:15.494028 I | embed: serving client requests on [::]:2379,
2018/11/05 07:12:15 [INFO] Activating driver eks,
2018/11/05 07:12:15 [INFO] Activating driver eks done,
2018/11/05 07:12:15 [INFO] Activating driver import,
2018/11/05 07:12:15 [INFO] Activating driver import done,
2018/11/05 07:12:15 [INFO] Activating driver rke,
2018/11/05 07:12:15 [INFO] Activating driver rke done,
2018/11/05 07:12:15 [INFO] Activating driver gke,
2018/11/05 07:12:15 [INFO] Activating driver gke done,
2018/11/05 07:12:15 [INFO] Activating driver aks,
2018/11/05 07:12:15 [INFO] Activating driver aks done,
I1105 07:12:15.549895       6 http.go:108] HTTP2 has been explicitly disabled,
2018/11/05 07:12:15 [INFO] Running kube-apiserver --allow-privileged=true --storage-backend=etcd3 --service-cluster-ip-range=<IP_ADDRESS>/16 --requestheader-group-headers= --etcd-certfile=/etc/kubernetes/ssl/kube-node.pem --etcd-keyfile=/etc/kubernetes/ssl/kube-node-key.pem --etcd-prefix=/registry --requestheader-client-ca-file= --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 --insecure-bind-address=<IP_ADDRESS> --proxy-client-key-file= --proxy-client-cert-file= --requestheader-username-headers= --cloud-provider= --enable-admission-plugins=ServiceAccount,NamespaceLifecycle,LimitRanger,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota,DefaultTolerationSeconds --authorization-mode=Node,RBAC --advertise-address=<IP_ADDRESS> --insecure-port=0 --secure-port=6443 --requestheader-allowed-names= --tls-cert-file=/etc/kubernetes/ssl/kube-apiserver.pem --kubelet-client-certificate=/etc/kubernetes/ssl/kube-apiserver.pem --etcd-cafile=/etc/kubernetes/ssl/kube-ca.pem --bind-address=<IP_ADDRESS> --service-node-port-range=30000-32767 --client-ca-file=/etc/kubernetes/ssl/kube-ca.pem --tls-private-key-file=/etc/kubernetes/ssl/kube-apiserver-key.pem --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname --requestheader-extra-headers-prefix= --kubelet-client-key=/etc/kubernetes/ssl/kube-apiserver-key.pem --service-account-key-file=/etc/kubernetes/ssl/kube-apiserver-key.pem --endpoint-reconciler-type=lease --etcd-servers=https://<IP_ADDRESS>:2379 -v=1 --logtostderr=false --alsologtostderr=false,
2018/11/05 07:12:15 [INFO] Waiting for server to become available: Get https://<IP_ADDRESS>:6443/version?timeout=30s: dial tcp <IP_ADDRESS>:6443: connect: connection refused,
[restful] 2018/11/05 07:12:17 log.go:33: [restful/swagger] listing is available at https://<IP_ADDRESS>:6443/swaggerapi,
[restful] 2018/11/05 07:12:17 log.go:33: [restful/swagger] https://<IP_ADDRESS>:6443/swaggerui/ is mapped to folder /swagger-ui/,
[restful] 2018/11/05 07:12:19 log.go:33: [restful/swagger] listing is available at https://<IP_ADDRESS>:6443/swaggerapi,
[restful] 2018/11/05 07:12:19 log.go:33: [restful/swagger] https://<IP_ADDRESS>:6443/swaggerui/ is mapped to folder /swagger-ui/,
2018/11/05 07:12:22 [INFO] Running kube-controller-manager --allow-untagged-cloud=true --pod-eviction-timeout=5m0s --service-account-private-key-file=/etc/kubernetes/ssl/kube-apiserver-key.pem --enable-hostpath-provisioner=false --node-monitor-grace-period=40s --cloud-provider= --root-ca-file=/etc/kubernetes/ssl/kube-ca.pem --address=<IP_ADDRESS> --cluster-cidr=<IP_ADDRESS>/16 --service-cluster-ip-range=<IP_ADDRESS>/16 --kubeconfig=/etc/kubernetes/ssl/kubecfg-kube-controller-manager.yaml --configure-cloud-routes=false --leader-elect=true --v=2 --allocate-node-cidrs=true --use-service-account-credentials=true -v=1 --logtostderr=false --alsologtostderr=false --controllers * --controllers -resourcequota --controllers -service,
2018/11/05 07:12:22 [INFO] Running in single server mode, will not peer connections,
2018/11/05 07:12:23 [INFO] Starting API controllers,
2018/11/05 07:12:23 [INFO] Listening on :443,
2018/11/05 07:12:23 [INFO] Listening on :80,
2018/11/05 07:12:40 [INFO] Starting catalog controller,
2018/11/05 07:12:40 [INFO] Starting management controllers,
2018/11/05 07:12:41 [INFO] Reconciling GlobalRoles,
2018/11/05 07:12:41 [INFO] Reconciling RoleTemplates,
2018/11/05 07:12:41 [INFO] Rancher startup complete,
2018/11/05 07:13:21 [ERROR] CatalogController library [catalog] failed with : Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml], did not respond in 30s,
2018-11-05 07:13:44.000417 W | etcdserver: apply entries took too long [116.315841ms for 1 entries],
2018-11-05 07:13:44.000444 W | etcdserver: avoid queries with large range/delete range!,
2018/11/05 07:14:02 [ERROR] CatalogController library [catalog] failed with : Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml], did not respond in 30s,

Please see the reply from @loganhz , it uses git ls-remote to check the repository and then uses git clone to get the contents. If git ls-remote fails, it falls back to HTTP server where there should be an index.yaml file.

I use Gitea in order to obtain a mirror of this repo with a minimal number of outside connections.
I can not follow your request.

Opening this https://git.rancher.io/charts/index.yaml on browser gives 404 error. This file does not exist. Can we please have clear instructions on how to resolve this step by step? This seems to be very basic functionality which should get a beginner up and running on the tool.

As described in https://github.com/rancher/rancher/issues/16449#issuecomment-435777340, its a Git repository.  Running git ls-remote https://git.rancher.io/charts inside the container will show if it's reachable or not.
There is an open issue to host charts via HTTP here: https://github.com/rancher/rancher/issues/16672

This issue should be reopened - fresh rancher server installed, got the same problem. There is no helm repository working

Hi, I have the same problem too
Hello community, recently I am in the world of kuberenetes in 3 nodes, I have deployed rancher v.2.2.2 with docker without problem. I have a proxy but before I worked with rancher V1.6 the catalog but now with the latest version I get error loading   Timeout in HTTP GET to [https://git.rancher.io/charts/index.yaml], did not respond in 30s . (image capture)
I tried to follow the same steps as rajha-korithrien but I still have no solution,
thank you very much to all!

OK I just realize that, for weird reasons, I didn't have internet access from docker container. I fixed that with iptables rules to allow traffic from docker0 interface to outside. It now works.

OK I just realize that, for weird reasons, I didn't have internet access from docker container. I fixed that with iptables rules to allow traffic from docker0 interface to outside. It now works.

could you provide these rules please? I meet the same issue with rancher 2.2.3

OK I just realize that, for weird reasons, I didn't have internet access from docker container. I fixed that with iptables rules to allow traffic from docker0 interface to outside. It now works.

Hi @metal3d!
Please, could you give me more details of how you managed to solve this issue?
What should I do inside the container so it has internet access?

OK I just realize that, for weird reasons, I didn't have internet access from docker container. I fixed that with iptables rules to allow traffic from docker0 interface to outside. It now works.

Hi @metal3d!
Please, could you give me more details of how you managed to solve this issue?
What should I do inside the container so it has internet access?

I solved this by removing the cluster and throwing everything with proxy rancher instructions.
docker run -d --restart=unless-stopped
-p 80:80 -p 443:443
-e HTTP_PROXY="http://<IP_ADDRESS>:3128"
-e HTTPS_PROXY="http://<IP_ADDRESS>:3128"
-e NO_PROXY="localhost,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>/24,example.com"
rancher/rancher:latest
https://rancher.com/docs/rancher/v2.x/en/installation/single-node/proxy/
Regards!

@Estebanor, my proxy is running on the same server where docker is installed and where I'm trying to install Rancher.
My server ip address is <IP_ADDRESS> and my proxy is listening at port 40080.
When I try to install Rancher, the following occurs:

2019/06/05 17:59:05 [ERROR] CatalogController system-library [catalog] failed with : Error in HTTP GET to [https://git.rancher.io/system-charts/index.yaml], error: Get https://git.rancher.io/system-charts/index.yaml: proxyconnect tcp: dial tcp <IP_ADDRESS>:40080: connect: connection refused
2019/06/05 17:59:05 [ERROR] CatalogController library [catalog] failed with : Error in HTTP GET to [https://git.rancher.io/charts/index.yaml], error: Get https://git.rancher.io/charts/index.yaml: proxyconnect tcp: dial tcp <IP_ADDRESS>:40080: connect: connection refused

It seems like the container cannot reach the ip address <IP_ADDRESS>...
If I try to change the ip to localhost (or <IP_ADDRESS>) in the docker run command line, it will try to access locally in the container, no the server ip address as I would like.
Any idea how to get around this problem?

I have the same problem too.  I  solved this by add --net="host" to start the single node rancher.
docker ps -a
CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS              PORTS                                      NAMES
9fa10df4e4ae        rancher/rancher:v2.2.4   "entrypoint.sh"     12 hours ago        Up 12 hours         <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp   loving_bardeen

docker stop loving_bardeen
docker create --volumes-from mystifying_hawking --name rancher-data rancher/rancher:v2.2.4
docker run -d --volumes-from rancher-data --restart=unless-stopped --net="host" rancher/rancher:v2.2.4


chore: link to documentation from config directory

.. with direct link to docs

@zwave-js-bot rename commit

@zwave-js-bot rename commit


Implement an example of Deep Residual Networks

ResNet(Deep Residual Network) is the most powerful deep learning algorithm for image classification and semantic segment, which gets the 1st places in the following competitions in 2015: ImageNet Classification, ImageNet Detection, ImageNet Localization, COCO Detection, COCO Segmentation.
Here I implemented several ResNet architectures. However, ResNet doesn't get excellent performance in MNIST, even compared with the CNN. Both ResNet-18(98.58%) and ResNet-50(98.24%) cannot achieve the performance of CNN(99.25%) while ResNet-101 and ResNet-152 are much worse. The reason is that the MNIST task is too simple compared with ImageNet(60, 000 samples and 10 classes v.s. 1, 280, 000 samples and 1000 classes) so that the a much more complicated model such as ResNet may not help to improve. ResNet will get excellent experiments results on ImageNet, CIFAR or COCO.
This implementation is based on Raghavendra Kotikalapudi's keras-resnet repository.
Please refer to the following papers and slides for more details:

Deep Residual Networks. Kaiming He. ICML2016 Tutorial
Deep Residual Learning for Image Recognition. Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun.
Identify Mappings in Deep Residual Networks. Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun.

Both ResNet-18(98.58%) and ResNet-50(98.24%) cannot achieve the performance of CNN(99.25%) while ResNet-101 and ResNet-152 are much worse.

There are obvious reasons for this. But I should point out that a 2-layer FC network can get better performance.
There is already a ResNet example in Keras: see applications/resnet50.py.

@kemaswill if you made improvements to keras-resnet can you put those in a pull request there?


Title overline too short with accented characters (windows only)

Environment

[ ] Operating System version: Windows 10
[ ] Python version: 3.8.2 64bit
[ ] rstcheck version:  3.3.1

Expected behavior
The following code should not trigger a warning.
====================
Chaînes de caractère
====================

Actual behavior
The linter triggers "Title overline too short" warning.
When I add an equal sign for each accented character, the warning is no more triggered.
======================
Chaînes de caractère
======================

I'm guessing this would be an upstream issue in docutils. Can you check? Thanks!

This is actually a problem with all kinds of unicode/non-ascii characters. Eg
A∞B
===

Infinity sign in heading.

A—B
---

em-dash in heading (en-dash also yields warning)

The files do, however, parse without problems in sphinx. (Same with tables and special chars – no problem for sphinx).
Is it possible that this gets transformed to bytes at some point and is then longer on special chars that take 2 bytes or more?

I have the same problem as @lgarcin - "(WARNING/2) Title overline too short." linter warning in VS Code (coming from lextudio.restructuredtext extension that uses rstcheck for linting) when the overline is okay and parses well. For me it is the en-dash that breaks it; I suspect as @lcnittl does that the subsequent byte in UTF-8 is parsed wrongly as another character. I would appreciate if this could be fixed to count non-ASCII characters properly.

I cannot reproduce this issue with any of the above examples with rstcheck 4.0.
But I am on linux. Tested with py3.8.10.
Can you confirm the issue is gone?

I cannot reproduce this issue with any of the above examples with rstcheck 4.0.
But I am on linux. Tested with py3.8.10.
Can you confirm the issue is gone?

Tested with v4.0.0: Can confirm that it is no problem on Linux (tested on Ubuntu 20.04) - but remains a problem on Windows (Windows 11), unfortunately.

I'm guessing this would be an upstream issue in docutils. Can you check? Thanks!

I strongly think that this is an upstream issue with docutils. To my understanding rstcheck only passes the code to docutils which in turn uses the code and returns the errors.

I cannot reproduce this issue with any of the above examples with rstcheck 4.0.
But I am on linux. Tested with py3.8.10.
Can you confirm the issue is gone?

Tested with v4.0.0: Can confirm that it is no problem on Linux (tested on Ubuntu 20.04) - but remains a problem on Windows (Windows 11), unfortunately.

Thanks for the confirmation.

After some more looking and thinking I am sure this is an upstream issue with docutils we can do nothing about.
Because I do not have an windows system at hand to test this I can only assume that the issue lies at the aforementioned place:

docutils.utils.__init__:column_width

I think this simple change could prove my assumption:
def column_width(text):
    """Return the column width of text.

    Correct ``len(text)`` for wide East Asian and combining Unicode chars.
    """
+        return len(text)
    if isinstance(text, str) and sys.version_info < (3, 0):
        return len(text)
    width = sum([east_asian_widths[unicodedata.east_asian_width(c)]
                 for c in text])
    # correction for combining chars:
    width -= len(find_combining_chars(text))
    return width

Therefore I am closing this issue. If you think there is something to be done here please reopen this issue.
If there is a bug report over at docutils it would be nice if someone could link it here then.

I reopen this issue for tracking.


Properties in path that are on the model schema should be excluded from model schema

This is mostly going to affect vNext but this affects me because I've fixed the broken model binding in my Web API project.

When request models are composed from the Route / Query String, and Body into a single request object. This results in Swashbuckle displaying duplicate properties.
The actual expectation is:

My temporary work around, since I have an isolated issue and know I'll never have 2 objects on my method signature. Is:

public class SchemaFixFilter : IDocumentFilter
{
    private static readonly string[] Verbs = {"get", "put", "post", "delete", "partial", "patch"};

    public void Apply(SwaggerDocument swaggerDoc, SchemaRegistry schemaRegistry, IApiExplorer apiExplorer)
    {
        foreach (var path in swaggerDoc.paths)
        {
            foreach (var verb in Verbs)
            {
                var operation = (Operation) path.Value.GetType().GetField(verb).GetValue(path.Value);

                if (operation.parameters.Any(x => x.@in == "path"))
                {
                    var body = operation.parameters.FirstOrDefault(x => x.@in == "body");

                    if (body != null)
                    {
                        var bodySchema = schemaRegistry.Definitions[body.schema.@ref.Replace("#/definitions/", "")];

                        foreach (var urlPath in operation.parameters.Where(x => x.@in == "path"))
                        {
                            bodySchema.properties.Remove(urlPath.name);
                        }
                    }
                }
            }
        }
    }
}

With vNext, MVC will now do model binding across all 3 bits of data instead of just 1.

I have already ported Swashbuckle to vNext and thankfully, the model binding you've described is actually accounted for by WebApi's built-in metadata layer (which SB uses). So this shouldn't be an issue for vNext.
The ported version is currently in the following working repo:
https://github.com/domaindrivendev/Ahoy
It's also available as a beta version on the existing Swashbuckle Nuget feed.

@domaindrivendev so it wont work for Web API 2, just vNext? I can live with that. I've solved the issue for my scenario, but good to know its not an issue in vNext. :heart:


Export C7 Game Should Fail if Project Fails to Build

See https://github.com/C7-Game/Prototype/runs/7297094073?check_suite_focus=true, open the Windows Build section (or Linux, or probably Mac), expand the logs, and you'll see:
ERROR: Failed to export project: Failed to build project
   at: godot_icall_GD_pusherror (modules/mono/glue/gd_glue.cpp:249)

This is a real failure, but the build succeeds.  It should fail.
To reproduce this, you can set your .NET version so something that the build server doesn't support.  Right now it supports net472 but not net6.0, but if it later supports that, try setting it to something like net9.7 to cause this error again.

Confirmed that Godot sets an error code of 1 if it fails to succeed; you can check this on Windows by running echo %errorlevel% after running godot.exe -v --export "Windows Desktop" OutputFolder/C7.exe; if it succeeds, it sets it to 0.
It looks like echo $? does the same thing in Bash, which is probably what our build server is running, so in theory we should be able to check $? to see whether we succeeded, and if not then we just have to figure out how to fail.  We have some code that sort of looks like that for the file-copying step, but I'm not sure if that actually causes a failure either, or just prints out a scary warning in the logs.
Gonna self-assign this and move it to in-progress, it looks solveable with some sleep and a few tests of it running in its native environment.

Also adding to Carthage, as #308 already is in Carthage and while it might not technically require this, it's a whole lot more useful if this one is done first and it isn't just saying it succeeded all the time whether it actually did or not.

I'm giving up on this.  I created two branches to try to fix this:
https://github.com/C7-Game/Prototype/tree/306-Failing-to-Fail
https://github.com/C7-Game/Prototype/tree/306-II-Failing-to-Fail
But in neither case could I get it to consistently fail when it should fail, and succeed when it should succeed.  E.g. workflow https://github.com/C7-Game/Prototype/actions/runs/3062333231 uses the latest commit on 306-II-Failing-to-Fail, and even though the logs say the build failed, the return value still winds up being 0.
Testing manually on Ubuntu, the return value is 1 when it fails, which matches what I see on Windows.  So it's something weird about the build server I guess.  Or maybe bash (is the build server not really running bash maybe?).  Either way it's too tedious to test and check and my Linux/Bash expertise is not high enough to resolve it.  I'm much better at coding things than bash scripts/infrastructure things, thought this would be quick but it clearly isn't.

Thanks!


FC023 can be kinda idiotic sometimes

This code triggers FC023:
unless windows?
  powershell_script "foo" do
    code <<-EOH
    stuff
    EOH
  end
end

It is, however, better code than this:
powershell_script "foo" do
  code <<-EOH
  stuff
  EOH
 only_if { windows? }
end

In Chef 12.2.0-12.7.0 (at a minimum) the latter code won't actually work if you're not on windows, since the dynamic resource resolver won't be able to lookup powershell_script at all since its provides line is:
      provides :powershell_script, os: "windows"

So, if you run the "FC023-approved" codeblock on a (e.g.) solaris box, it'll explode with an exception.
Its also not useful to have a powershell_script resource in the resource collection at all on a solaris box.  You can't ever notify it without it throwing an exception anyway, so its value on the resource collection is zero at best, and negative at worst.
Of course fixing this problem in foodcritic would be pretty hard since it requires semantic information about exactly what kind of guard is being applied around the resource.  The argument could be made that users which hit this should just know to write an exception to FC023.  At the same time if a relatively novice user runs foodcritic they'll get back FC023 and could 'fix' the problem and wind up breaking their cookbook on every O/S other than windows--which is precisely what they're trying to avoid.
We also may reconsider the provides line in the powershell_script resource.  But I think this issue stands even if we wind up working around that, in that the powershell_script resource in the resource collection on a solaris box has exactly zero value.
At the same time, the vastly more common use cases where FC023 gets triggered is probably useful to users.  New users won't necessarily understand that they can't notify a resource if its not put on the resource collection and the proper use of guards is definitely more idiomatic chef.  I don't think it has no value, but it isn't a universal rule that should always be followed with no exceptions.
Perhaps we just need a good documentation update...

This is more of a discussion about how chef handles providers, and I started thinking about this when I was writing the apt_update provider.
Right now, many resources are abstract - ie, they provide a generic package resource, and then we have a concrete package implementation per-platform. But for certain resources, like apt_update and like powershell_script, this isn't the case.
But now, users have to understand that they can't simply have apt_update in a recipe and have it be compiled away on a windows box; they have to specifically guard it every time, and they have to deal with notifications properly. We're pushing a lot of complexity that we could easily deal with down to our users.

Technically, all we have now for the package resource is a DSL shim that picks out the correct provider.  The base class does not provide the package DSL at all and there's no way to instantiate the base class from the DSL.
I can definitely see the argument that the apt_update and powershell_script resources should be available everywhere.  I can see the argument for the apt_update provider that on the backend it should wire up to a no-op provider.  I'm less sure that powershell_script should.

so another issue is that if a node attribute isn't defined and it isn't legal to construct the resource then the two aren't equivalent:
# this protects the resource so it never gets created with `must_not_be_nil` set to nil which will fail validation
if node['thingy']
  my_resource "do stuff" do
    must_not_be_nil node['thingy']
  end
end

# this is going to try to create a resource with `must_not_be_nil` set to nil which will fail validation
  my_resource "do stuff" do
    must_not_be_nil node['thingy']
    only_if { node['thingy'] }
  end

closed by #523


Adds state to project options per github's docs

State was missing, useful for updating projects per:
https://developer.github.com/v3/projects/#update-a-project
Adds the ability to open/close projects based on ProjectOptions with ProjectUpdate

Any updates on this?

Merged. Thanks @seemethere!


Add SSL error page to handle SSL certificate error

When SSL certificate error occurs, show an Interstitial Page to give user a chance to choose to proceed or just close the App.
Add "xwalk::SSLErrorPage" as a child class of "content::InterstitialPageDelegate" with these methods overridden:
(1) Show()
Creates the instance of "content::InterstitialPage" and show it.
(2) GetHTMLContents()
Provides the html for the interstitial page. The web page includes a link to allow user to ignore the SSL error and proceed the network request.
(3)  OnProceed()
When user chooses to proceed, this function will be invoked to call the "callback" provided by "content".
BUG=https://crosswalk-project.org/jira/browse/XWALK-3668

Below is the snapshot of the SSL error page.

@halton @pozdnyakov @rakuco @kenchris
The patch has been updated, please help to review, thank you very much.

@halton
The patch has been updated according to the comments, please have a look. Thank you.

Much much better, thanks for rework, LGTM with above nit comment.

lgtm, ping @darktears @kenchris

lgtm


[RFC] setupPolly method for jest

Hi team! First of all, thanks a lot for this library, great work 👏
This issue is a proposal and request for comments on adding a setupPolly helper for jest environments. After having a discussion with @offirgolan in https://github.com/Netflix/pollyjs/pull/115#discussion_r222127410 I decided to investigate is it possible to make the same hook support with automated name generation for jest/jasmine environments as the one implemented for Mocha and QUnit in the core of this library.
There are two main differences that I spotted between those two mentioned above and jest/jasmine:

this is not commonly used in jest, so access to polly instance should be handled differently
there is no "normal" way to acces the current test name in hooks

Trying to address those issues led me to the solution that can be considered hacky, so instead of going with the PR right away, I created setup-polly-jest library as a proof of concept (but it works and covered with tests)
During my investigation I found out that you can get access to the full test name, but to do this, you'll need a return value from {test,it} call in the test suite.
The solution is to proxy jasmine.Env.it and jasmine.Env.dit methods to get the access to test case instance, get the full name and also hook into before and after hooks of the test case, overriding another jasmine method.
To address the this issue I decided on a little bit different approach, where setupPolly will return context with polly instance as a property (as a bonus, it will also have clearPolly method to disable polly at any moment in the test workflow)
You can find repository here: https://github.com/gribnoysup/setup-polly-jest and it is even published as @gribnoysup/setup-polly-jest so it should be easy for you to test how it works. Repo contains documentation, unit tests and an "integration" test suite that uses the library itself to setup polly in jest test environment
If you think that this approach is acceptable, I'll be glad to integrate this solution into @pollyjs/corepackage 👍

@gribnoysup this is something that has been constantly on my mind so thank you for taking this on. The solution you currently have implemented feels really nice but I'm thinking we can get it closer to parity with a couple of changes:
Formatting Test Name
With your current implementation, the following test:
describe('Module', () => {
 it('Test', async () => {})
});

Will generate a recording name of Module-Test where the expected would be Module/Test. Mocha and Qunit do this so all test recordings are organized under their appropriate module. Would it be possible to build the full test name with / instead of -?
Scoping setupPolly to a module
To achieve even closer parity with Mocha and QUnit, would it be possible to scope setupPolly to a module?
describe('Module', () => {
 const context = setupPolly();

 it('Test', async () => {})
});

This can allow for something like:
describe('Module 1', () => {
  describe('Module a', () => {
    const context = setupPolly({ /* config a */ });

    it('Test 1a', async () => {})
  });

  describe('Module b', () => {
    const context = setupPolly({ /* config b */ });

    it('Test 1b', async () => {})
  });
});

This one isn't all that important since you can do context.polly.configure in each module to configure polly for that specific module.

Hi @offirgolan! Thank you so much for the feedback 🙌
I did an investigation for both cases that you mentioned and the results are applied to the library and released for testing purposes as<EMAIL_ADDRESS>Formatting Test Name
This one took a while 😅Basically it seems that jest/jasmine are hiding as much internals from the users of the library as possible, making it pretty hard to get the parent suites (modules) when you only have a spec. I found the solution but it requires traversing the tree of the "registered" suites to figure out who is the parent of the spec we are interested in, and then we need to do the same thing again for another spec. In general, I don't expect this operation to be slow enough to be even barely noticeable.
You can find commit with implementation here: https://github.com/gribnoysup/setup-polly-jest/pull/1/commits/dc1c73eba2c8b687de0d38f97db5c3892ce0023f
Scoping setupPolly to a module
I checked this one and it works as you expect it to work. My implementation uses afterAll hook to remove proxies from the {it,fit} methods and afterAll methods are "scoped" to the suites (modules). I added new test case to confirm that this behavior is there: https://github.com/gribnoysup/setup-polly-jest/pull/1/commits/53640307d1960dee6f8e8c21dd0238ba34615310

I was doing some investigation for other ways to achieve behaviour parity between jest and mocha/qunit in an easier way and found jest-circus which seems to be new, work in progress test runner for jest (https://github.com/facebook/jest/issues/6295). That means that overriding jasmine environment will stop working with some future major release of jest 🙀
This information made me think that maybe this helper method can be called setupJasmine, to highlight that this solution is specific to jasmine environments, but will work for jest as long as jest-jasmine/runner is used. Upon further investigation, I noticed that jest-jasmine and the latest version of jasmine behave a little bit differently, which breaks scoping part of setupPolly behaviour
I have some ideas on how to solve this, but I guess I'll need some more time to figure out completely how to make this work in both environments 😅

I updated the repo and now everything is working both for jasmine and jest-jasmine and also matching Mocha/QUnit as close as possible: scoping, naming with folders, setupPolly method API 👍
@offirgolan if you are still okay with the selected approach, I'm still happy to port it to @pollyjs/core 😸

@offirgolan haha, no worries about the delay and thanks for the feedback 🙌I opened a work-in-progress PR for this feature, I think we can continue the discussion there 👍

@gribnoysup Thanks for bringing this up, I am looking for support for JEST with polly.

After the discussion in PR, the decision was to keep the proposed implementation out of the Polly core. If someone is interested, setupPolly for jest/jasmine is published as a separate library: setup-polly-jest
Big thanks to the Polly team for support and feedback 🙌


Harrison/sagemaker

@nimimeht i cleaned up the lint issues - but dont actually know how to test it. could you be able to (1) test that it works, (2) add an example notebook?

Hi @hwchase17, yes, the previous PR was rather premature, thank you for fixing lint issues!
I am planning to spend some time early next week on figuring out the TODO I left in there, cleaning up the code a bit and add an example notebook.
But it does work, as I used this for a small project yesterday :)

@nimimeht awesome :) if you want to add your changes to this this branch, ill hold off on merging in until then!

@hwchase17 and @nimimeht there are a few of us from AWS that can dive in and help to review and work on this.

@hwchase17 - I updated this branch locally, but I don't have permissions to push to this branch directly.
`ERROR: Permission to hwchase17/langchain.git denied to nimimeht.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.`
Can you tell me how to push my changes?
Also, I tested the changes on my ipynb notebook, but what is the right location in this repository to add that as an example?
@ellisonbg - thank you!

@hwchase17
@sanjams2 from SageMaker team will be help to review the changes. Are you planning to merge @nimimeht's changes here so we can review, or should we look at his branch separately? Let us know how we can help move this forward.

@3coins @sanjams2 - thank you for the review. I addressed your comments in -> 3c627cd

@nimimeht if you open up a pr against this branch ill merge it in and then merge it into master!
thanks @nimimeht and @3coins

https://github.com/hwchase17/langchain/pull/1217
@hwchase17

Thanks everyone for helping with this one!

was going to open a PR for this, you beat me to it:
how can I contribute to this PR ?
i have a few improvement that can make this easier, using predictors

@nimimeht
It might be better to combine the input/output transformers as per @sanjams2's comments into one class, here is an example.
from abc import ABC, abstractmethod
import json
from typing import Dict, Optional

class ContentHandler(ABC):

    content_type: Optional[str] = "application/json"

    @abstractmethod
    def transform_input(prompt: str, model_kwargs: Dict) -> bytes:
        """Transforms the input to a format that model can accept
        as the request Body. Should return bytes or seekable file
        like object in the format specified in the content_type request
        header.
        """

    @abstractmethod
    def transform_output(output: bytes) -> str:
        """Transforms the output from the model to string that
        the LLM class expects.
        """

class CustomContentHandler(ContentHandler):

    content_type = "application/json"

    def transform_input(prompt: str, model_kwargs: Dict) -> bytes:
        input_str = json.dumps({prompt: prompt, **model_kwargs})
        return input_str.encode('utf-8')

    def transform_output(output: bytes) -> str:
        response_json = json.loads(output.read().decode("utf-8"))
        return response_json[0]["generated_text"]

@nimimeht
Let me know if my suggestion from last week makes sense, or I can help incorporate this directly into the PR.

@hwchase17
There hasn't been any activity on this PR and it has diverged from the current code base. I have submitted a new PR here: #1686 with a rebase from master, and changes for content handler. Can you help review this. Thanks.

@nimimeht  @hwchase17
Made some updates on PR #1686, rebasing from master, and fixed linting errors. Would appreciate your feedback. Thanks.

@hwchase17
This can be closed in lieu of #1686. Thanks.

@3coins - thanks for picking this up, I was not able to get to it earlier. Appreciate it!


KG incompleteness experiments for MateQA-3

In your paper, you obtained good results on the incomplete datasets of Webqsp and MateQA-3. Can you provide the incomplete data you used in your experiment on MateQA-3? THX

Hi,
We randomly drop 50% of the edges during dataloading.
We do not have a preprocessed dataset for this.
Best,
Costas

thank you for your reply.

Hi,
As an alternative, you can select specific edges to drop. This section  loads each edge one-by-one, so you could potentially set:
for i, tpl in enumerate(sample['subgraph']['tuples']):
    if i % 2 == 0: continue

and skip the first edge that appears in every two edges.

I see. Thank you for your reply.

How to set up a 50KG metaqa? is for i, tpl in enumerate(sample['subgraph']['tuples']):
if i % 2 == 0: continue
or
--fact_drop=0.5?
or both？please！


No data showing in Application Insights

I followed the steps and set everything up.  In my test APIM instance I configured the echo api with all options to enable App Insights logging.  I then used the Test panel within APIM to invoke the echo api 5 times.  I went to the App Insights portal and queried the Requests table and there is no data there.  I have waited several minutes and still no data.  Any ideas?

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

ID: c26c1996-853e-9a55-5802-8c4095d545b9
Version Independent ID: 437f5553-6914-c0ef-9370-bb11d3a0fa4b
Content: How to integrate Azure API Management with Azure Application Insights
Content Source: articles/api-management/api-management-howto-app-insights.md
Service: api-management
GitHub Login: @mikebudzynski
Microsoft Alias: apimpm

What is your sampling % setting in the API settings?
Can you try importing the Conference API first and then plugging it into App Insights?

Hello,
Thanks for the response.  After reviewing the steps again I found I missed one.  It's working fine.

#close

@smappes Glad to hear that everything is working out!
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Validate hostname is correct while creating spark context to fix #532

This PR addresses a configuration issue in Spark <= 2.0.1, while not a problem in sparklyr, several sparklyr users have reported this problem.
For instance, using EC2+R+Conda+sparklyr triggers this problem:

The logs show that tachyon.hadoop.TFS could not be initialized:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class tachyon.hadoop.TFS
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at java.lang.Class.newInstance(Class.java:383)
	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)
	... 72 more
”Warning message in create_hive_context_v1(sc):

However, one can configure sparklyr with:
spark_install(version = "1.6.2, logging = "TRACE")

which will increase logging, and spark_log(sc) will show a full stack trace that looks more like:
Error: java.net.UnknownHostException: ip-172-30-0-220: ip-172-30-0-220: Name or service not known
        at java.net.InetAddress.getLocalHost(InetAddress.java:1496)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sparklyr.Invoke$.invoke(invoke.scala:94)
        at sparklyr.StreamHandler$.handleMethodCall(stream.scala:89)
        at sparklyr.StreamHandler$.read(stream.scala:55)
        at sparklyr.BackendHandler.channelRead0(handler.scala:49)
        at sparklyr.BackendHandler.channelRead0(handler.scala:14)

This problem even triggers while running spark-shell. However, given that so many users have reported this, is worth to at least warn about by checking this ourselves.
The change introduces a call to java.net.InetAddress.getLocalHost which is also used by Spark, Hadoop, and many others pieces of the stack which will fail under this configurations.
The fix is usually to get the hostname say, by running hostname and then adding this entry in the /etc/hosts file.

Should we add that specific prescription to the error message as well, just so users who see this error have a chance of immediately resolving it?
Consider running `hostname` and then adding that entry to your `/etc/hosts` file.


And see that CredHub produces a bbr config json that looks like (where the host is an IP address):

{
  "username": "credhub",
  "password": "xxxx",
  "database": "credhub",
  "adapter": "postgres",
  "host": "<IP_ADDRESS>",
  "port": 5432,
  "tls": {
    "cert": {
      "ca": "-----BEGIN CERTIFICATE-----xxxxE-----\n"
    }
  }
}

Diagnosis

The internal postgres server will be deployed with a certificate generated by the config specified in cluster/operations/secure-internal-postgres.yml. We verified that the generated server cert will have the DNS address as its Common Name and SAN:

Common Name: q-s0.db.infra.concourse-colocated.bosh
Subject Alternative Names: q-s0.db.infra.concourse-colocated.bosh

CredHub BBR job is generating the bbr config json by accessing a bosh link of type database provided by the internal postgres job. CredHub BBR job accesses it via DATABASE-LINK.instances[0].address.
Depending on the bosh director version, this DATABASE-LINK.instances[0].address may return an IP address (eg: <IP_ADDRESS>) or a DNS address (eg: q-s0.db.concourse.concourse.bosh) (See bosh link doc and DNS link). In this case, DATABASE-LINK.instances[0].address returns an IP address.
BBR receives a bbr config json that has the DB IP address, and reaches out to the IP address with hostname verification turned on (see psql doc's explanation of the verify-full sslmode). But since the postgres server cert only has the DNS address (q-s0.db.infra.concourse-colocated.bosh) as its Common Name & SAN. The hostname verification fails.

Related
Related issue reported by other here
Potential Fixes:

Integrate or document the features.use_dns_addresses deployment manifest property (see doc) so that SOME-DB-LINK.instances[0].address returns a DNS address.
(If possible) configure BBR to disable hostname verification when talking to an internal postgres server. See psql doc's explanation that the verify-full sslmode, which includes the hostname verification, is not required when using a local CA or self-signed certs
Update cluster/operations/secure-internal-postgres.yml such that the internal postgres server's cert would have both its DNS address and its IP address as the cert's SAN, then the hostname verification will work regardless if BRR is talking to the postgres server using DNS address or IP address.

cc: @bruce-ricard

Hey @peterhaochen47 ,
I was able to find a Workaround, see my notes below on Potential Fix 1) and 2).
Potential Fix 1)
This suggestion did not work for me. After adding
features:
   use_dns_addresses: true

to my concourse manifest, re-deploying, and performing the backup - I received the following error:

In the above screenshot, the BOSH DNS Name is used. However, the Full DNS name is returned. Unfortunately, it still does not match the Common Name that is used on the postgres server certificate.
There is another property in the bosh docs for features.use_short_dns_addresses that states this property is used for certificate common names, so I tried that. However, this also did not work.
When adding this property to the manifest and re-deploying Concourse, the deployment fails when it starting the uaa Job on the Web VM with the following error:

Potential Fix 2)
I was able to get Potential Fix 2) working using the bbr-postgres-db Job from the postgres bosh release
The bbr-postgres-db job has a property to disable SSL Hostname Verfication:

It appears there is no option that exists for this in the bbr-credhubdb job, which is why the backup fails with the hostname verification error when consuming this job from the credhub release
Below are the steps I implemented:

Created a new operations file called backup-postgres.yml with the following config:

# Add release for backup-and-restore-sdk
- type: replace
  path: /releases/name=backup-and-restore-sdk?
  value:
    name: backup-and-restore-sdk
    version: ((bbr_sdk_version))
    url: https://bosh.io/d/github.com/cloudfoundry-incubator/backup-and-restore-sdk-release?v=((bbr_sdk_version))

# Add the database-backup-restore job to the db VM
- type: replace
  path: /instance_groups/name=db/jobs/-
  value:
    release: backup-and-restore-sdk
    name: database-backup-restorer

# Add the bbr-postgres-db job to enable BBR backups for the postgres db
# NOTE: When TLS is enabled for postgres, the BBR backup fails with a hostname verification error
#       Therefore, we must set the ssl_verify_hostname property to FALSE (Sets to TRUE by default)
#---------------------------------
- type: replace
  path: /instance_groups/name=db/jobs/-
  value:
    name: bbr-postgres-db
    release: postgres
    properties:
      postgres:
        databases:
          - credhub
          - atc
          - uaa
        ssl_verify_hostname: false

Removed the backup-atc.yml from my deploy script and added my newly created backup-postgres.yml ops file:

#!/bin/bash

bosh deploy \
  -d concourse ./cluster/concourse.yml \
  -l vars.yml \
  -l versions.yml \
  -o ./cluster/operations/basic-auth.yml \
  -o ./cluster/operations/privileged-https.yml \
  -o ./cluster/operations/tls.yml \
  -o ./cluster/operations/encryption.yml \
  -o ./cluster/operations/uaa.yml \
  -o ./cluster/operations/credhub-colocated.yml \
  -o ./cluster/operations/secure-internal-postgres.yml \
  -o ./cluster/operations/secure-internal-postgres-bbr.yml \
  -o ./cluster/operations/secure-internal-postgres-uaa.yml \
  -o ./cluster/operations/secure-internal-postgres-credhub.yml \
  -o ./backup-postgres.yml

Re-deployed Concourse

Once Concourse re-deployed, I ran my backup-concourse Job and was able to successfully take a backup of the postgres database containing the ATC, CredHub, and UAA databases:

After taking the backup, I untarred the tgz/tar file and I could see the .sql files for each database.
root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100# ls -l backup/
total 160
drwx------ 1 root root      0 Feb 26 04:50 concourse_20210226T045031Z
-rw-r--r-- 1 root root 163236 Feb 26 04:50 product_concourse_2021-02-26-04-50-54.tgz

root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100# cd backup/
root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100/backup# tar -xvf product_concourse_2021-02-26-04-50-54.tgz
concourse_20210226T045031Z/db-0-bbr-postgres-db.tar
concourse_20210226T045031Z/manifest.yml
concourse_20210226T045031Z/metadata

root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100/backup# ls -l concourse_20210226T045031Z/
total 368
-rw-r--r-- 1 root root 358400 Feb 26 04:50 db-0-bbr-postgres-db.tar
-rw-r--r-- 1 root root   8276 Feb 26 04:50 manifest.yml
-rw-r--r-- 1 root root    460 Feb 26 04:50 metadata

root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100/backup# cd concourse_20210226T045031Z/
root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100/backup/concourse_20210226T045031Z# tar -xvf db-0-bbr-postgres-db.tar
./
./postgres_uaa.sql
./postgres_credhub.sql
./postgres_atc.sql

root@3333a357-0504-458c-51f0-a1c4dac8a6f1:/tmp/build/c03f8100/backup/concourse_20210226T045031Z# ls -l
total 712
-rw-r--r-- 1 root root 358400 Feb 26 04:50 db-0-bbr-postgres-db.tar
-rw-r--r-- 1 root root   8276 Feb 26 04:50 manifest.yml
-rw-r--r-- 1 root root    460 Feb 26 04:50 metadata
-rw-r--r-- 1 root root 261771 Feb 26 04:50 postgres_atc.sql
-rw-r--r-- 1 root root  30200 Feb 26 04:50 postgres_credhub.sql
-rw-r--r-- 1 root root  53704 Feb 26 04:50 postgres_uaa.sql

Let me know if you have any questions on this workaround. I hope this helps!

After speaking with Bosh team, solution#3 is not feasible as bosh links doesn't support returning IP and DNS hostname at the same time.
So it seems @mjenk664 's potential solution#2 is the best so far. At least you can keep  the backup-postgres.yml for next re-deployment.


registerDispatcher function added to router

OK, this is an interesting problem :)
Recent update to Zig here https://github.com/ziglang/zig/pull/21817 - removes anon struct types from the language
(you can still use anon structs of course, but storing them in a local var, they no longer magically coerce into a matching type)
Side effect of this is ....
I have an App that has a variety of different dispatchers, and LOTS of routes
Prior to this change, I was able to define various RouteConfig values in a set of local values like so :
fn addRoutes(router: anytype) !void {
   const protected = .{ .dispatcher = middleware.protected };
   const public = .{ .dispatcher = middleware.open };
   const anonSession = .{ .dispatcher = middleware.anonSession };

   // then apply those configs to lots of routes
   router.get("/",  App.index, anonSession);
   router.get("/invoices", App.invoices, protected);
   ....   LOTS of routes

Now, that won't compile anymore
A correct solution would now use something like this
replace all my route definitions with this longer form
   router.get("/",  App.index, .{ .dispatcher = middleware.anonSession });
   router.get("/invoices", App.invoices, .{ .dispatcher = middleware.protected });
   .... LOTS of routes

(yuk !)
  Its also really difficult to make this work, since RouteConfig() is private,   the types Handler and Action are unknown at this point in my app code, and any attempt to export the RouteConfig type from inside the router instance in https ends up enforcing comptime-knowness to parts of my app code.
Simple solution for my one-off use case is to add this registerDispatcher() to the Router struct.  This is easy, because RC is already comptime known inside the router code.
End result is my app code looks like this :
fn addRoutes(router: anytype) !void {
   const protected = router.registerDispatcher(middleware.protected);
   const public = router.registerDispatcher(middleware.open);
   const anonSession = router.registerDispatcher(middleware.anonSession };

   // then apply those consts, as before
   router.get("/",  App.index, anonSession);
   router.get("/invoices", App.invoices, protected);
   ....   LOTS of routes

Works great with this patch - even if its just really specific to my one-off problem here

A more general solution would be to have registerConfig() that took a struct like
   struct {
        data: ?*const anyopaque = null,
        handler: ?Handler = null,
        dispatcher: ?Dispatcher = null,
        middlewares: ?[]const httpz.Middleware(Handler) = null,
        middleware_strategy: ?MiddlewareStrategy = null,
    };

and returned a value of type RC - which is easily computable inside the httpz.router code
... but that's not simple either, because again the app that would be using this doesnt necessarily have access to the 'Handler' type, which is needed at comptime to determine some of these values.
Not a fun problem :)
Im just going to run with my branch with this registerDispatcher() for now, because that solves my particular problem

I've also had to adjust to this change in Zig.
Wouldn't this work and be more general:
pub fn routeConfig(_: *Self, config: RC) RC {
    return config;
}

Then in code, you can do:
const protected = router.routeConfig(.{.dispatcher = middleware.protected});
...

?

Yep, that’s better … good thinking
it will coerce anon struct params .. it’s just the bit about trying to store an anon struct in a var that fails.
Will test that out and update my branch. Cheers

Updated - that works in my environment


Lualine bar is disappearing when resizing tmux window or unsuspending vim.

Reproducing problem:
Tmux

Open vim in tmux (lualine bar is present)

Split tmux horizontally (lualine bar is disappeared)

Vim

Open vim (lualine bar is present)
Press Ctrl-z combination to suspend vim
Run command fg to unsuspend vim (lualine bar is disappeared)

And how is this related to nui.nvim? 🤔

Oh, sorry, this issue refers to folke/noice.nvim.

In that case closing it...

Yes, thanks.


Fix off by one error

Fix the off-by-one error in retrieving YouTube stats
Commit scripts used to test stats
Commit scrip for pulling historical stats

I'm going to self approve this one because I want the off by one error to be fixed before tomorrow morning


Select 2 options not working

Django 1.11 django-select2 latest
Hi i using ModelSelect2Widget:
class MyWidget(ModelSelect2Widget):
	model = Customers
	#queryset = Customers.objects.all()
	max_results = 10
	search_fields = [
        'name__icontains',
    ]

class CarsForm(forms.ModelForm):
	class Meta:
		model = Cars
		fields = '__all__'
		widgets = {
			'customer': MyWidget(attrs={'data-placeholder': 'Search for MyModel values', 'data-width': '100%', 'class':'form-control m-select2'}),
        }

That way working but when i add script:
<script>$('.django-select2').djangoSelect2({placeholder: 'Select an option'});
</script>

placeholder not hanging even if i remove attrs from widget.

Hi @pidzej I am using Django 1.11 in my projects, I can not recreate you issue. We also have tests that cover this behavior.
That being said, maybe I am missing something. If you can provide me with a test or with a more detailed description of the error, I would be happy to take another look at it.
Thanks
-Joe

There may be something here.. I have a similar issue (trying to modify width), however looking at the chrome debugger, the
var init = function ($element, options) {
    $element.select2(options)
  }

is actually getting called twice, first time with the options and second with no options.
The first time is triggered by loading our own scripts, but the second time appears to be from within django_select2.js? Specifically coming from here (looks like a document ready callback):
  $(function () {
    $('.django-select2').djangoSelect2()
  })

If I take this out, then my options = { width: '1000px' } works...
(Although strangely placeholder text still doesn't work)
I'm not a web frontend dev, so I could also just be doing something wrong (accounting for the fact that no one has complained before).

@marco9999 ok, this seems to be Select2 related. I think you should take that to their community. This is merely the Django implementation. Select2 is maintained separately.


[TFLite] Remove deprecated gen_lut function

Hi
During the LUT refactoring in https://github.com/tensorflow/tensorflow/pull/54390 gen_lut was marked as deprecated but temporarily kept to keep backward compatibility with TFLite Micro. Its usage has now been replaced in TFLM by https://github.com/tensorflow/tflite-micro/pull/1523 and it can be safely removed from TFL codebase to avoid any potential confusion.
Thibaut

Hi @MeghnaNatraj Can you please review this PR ? Thank you!


Rework kubernetes settings

Fixed with merge of #98 - commit b6fd227 with a tweak fix in commit 0c0deea


swift build --no-static-swift-stdlib fails after running swift build --static-swift-stdlib

Description
When switching between different linking modes on Linux, the build state is apparently not cleaned up correctly, which causes build errors.
Expected behavior
Running swift build --no-static-swift-stdlib after swift build --static-swift-stdlib should rebuild the project with correct linker settings with no errors.
Actual behavior
Build fails with this error message
error: link command failed with exit code 1 (use -v to see invocation)
/usr/bin/ld.gold: error: cannot find -lDispatchStubs
/usr/bin/ld.gold: error: cannot find -lCoreFoundation
/usr/bin/ld.gold: error: cannot find -luuid
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

Steps to reproduce

Generate a new project with swift package init --type executable
Build it with swift build --static-swift-stdlib
Build it again, now with swift build --no-static-swift-stdlib

Swift Package Manager version/commit hash
5.7.0
Swift & OS version (output of swift --version && uname -a)
Swift version 5.7 (swift-5.7-RELEASE)
Target: aarch64-unknown-linux-gnu
Linux 2e60786449d5 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Sooo.... what's up with this?

No longer reproducible with Swift 5.7.3, 5.8.1, or 5.9 development snapshots on Ubuntu Jammy.

🥳

I currently have this problem on any (I mean any) Swift version on Ubuntu 22.04, when building a shared library with --static-swift-stdlib.