Improve performance tests graph

Description
This PR improves performance graphs
Relevant Screenshots

Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Codecov Report

Merging #4170 (deae1b9) into master (2227a06) will decrease coverage by 7.73%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4170      +/-   ##
==========================================
- Coverage   26.91%   19.18%   -7.74%
==========================================
  Files          59       59
  Lines        5031     5031
==========================================
- Hits         1354      965     -389
- Misses       3262     3771     +509
+ Partials      415      295     -120

Flag
Coverage Δ

gointegrationtests
?

unittests
19.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/system/status.go
0.00% <0.00%> (-62.83%)
:arrow_down:

mesheryctl/internal/cli/root/system/start.go
0.99% <0.00%> (-53.98%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
0.85% <0.00%> (-36.76%)
:arrow_down:

mesheryctl/internal/cli/root/system/update.go
1.05% <0.00%> (-34.74%)
:arrow_down:

mesheryctl/internal/cli/root/system/restart.go
1.78% <0.00%> (-32.15%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.39% <0.00%> (-22.38%)
:arrow_down:

mesheryctl/internal/cli/root/system/logs.go
0.00% <0.00%> (-21.60%)
:arrow_down:

Continue to review full report at Codecov.

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

I wonder how the formatting carries forward to the comparison views.

Looks great!🔥


Update opengraph image

The image used as a preview on social media can be improved by making it more friendly to the 'first-class citizen'
Proposal:

Preview:

LGTM 👍

I think it would be good to do something similar to what Node.js does on its page and define 3 types of images (announcements, releases, and vulnerabilities). Although at the moment it might not be possible due to the use of Jekyll (I haven't seen a way to do it automatically), in the future, when we have switched to a different technology, there will surely be an easier way to implement it (In Next.js and Astro, this can be done easily)
I'm not sure if it's a good idea to implement it, but doing so would add a plus to improve both the blog and the documentation.


added my profile and bookmark

May i know the reason of not merging my pull request?
On Sat, 22 Oct, 2022, 3:10 pm Vijay Kumar Prajapati, <
@.***> wrote:

Closed #168
https://github.com/vijayyprajapati/Share-Your-Bookmarks/pull/168.
—
Reply to this email directly, view it on GitHub
https://github.com/vijayyprajapati/Share-Your-Bookmarks/pull/168#event-7645582576,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXXJTWJWHW23XD2JBYJWBVLWEOZBBANCNFSM6AAAAAARLONUVQ
.
You are receiving this because you authored the thread.Message ID:
<vijayyprajapati/Share-Your-Bookmarks/pull/168/issue_event/7645582576@
github.com>


Read Please Explain thanks

Before you start
Please take a look at the FAQ as well as the already opened issues! If nothing fits your problem, go ahead and fill out the following template:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Version:

OS w/ version: [e.g. iOS 12]
Browser w/ version [e.g. Chrome 70]
Node version: [e.g. 10.11.0]
npm version: [e.g. 6.4.1]

Is your issue related to the quality of image compression?
Please attach original and output images (you can drag & drop to attach).

Original image
Output image from Squoosh

Additional context, screenshots, screencasts
Add any other context about the problem here.

Did read. Got nothing to explain.


Run() for TLS istances

What about expand the Run function to TLS instances? i know i can just use http.ListenAndServeTLS
but integrating it in negroni should be nice

Hi @Nhoya,
This was discussed in #85 and #106, but we opted to just document better how to use negroni with http.Listen* functions. the Run method is primarily just provided as a convenience wrapper for testing out negroni.
Open to new thoughts though!

Hi @jszwedko and thanks for your reply,
i missed the PR but i still want to point out that at the end of the day people will just use the same function as Run but with ListenAndServeTLS instead of ListenAndServe so integrating in negroni should just be a way to avoid to create a function. I saw in a PR that someone just wanted to have a Run function that will be globally comprensive for ListenAndServe and ListenAndServeTLS what about that? Maybe add a new parameter to it?

We could do that, but I'd prefer to just have a separate method if we include this convenience wrapper. To clarify, adding this method wouldn't save any lines of code over just using http.ListenAndServeTLS:
n := negroni.New()
// ....
n.RunTLS(":3000", certFile, keyFile) //added method

vs.
n := negroni.New()
// ....
http.ListenAndServeTLS(":3000", certFile, keyFile, n)

The README generally discourages the use of Run. I'd like to remove it altogether, but this would, of course, be backwards incompatible. For that reason, I hesitate to add RunTLS.

Well but RunTLS also print info on the port where the server is running, thing that usually everyone will do, so is already a 2x1 line

Maybe, but one additional line doesn't seem worth it to me to add the helper method. Admittedly, again, I'm coming from the perspective that the Run method shouldn't even exist.

Closing this given it is relatively stale and I still believe that
n := negroni.New()
// ....
http.ListenAndServeTLS(":3000", certFile, keyFile, n)

is preferable to a Run method for TLS.


pkg/option: add option to configure BPF lbmap size

Add a command-line flag to cilium-agent to configure BPF lbmap size
with a user-provided value. This commit adds a new flag called
bpf-lb-map-max for this. The default value of max entries in BPF lbmap is 65536
that can be configured between a range of [1<<10, 1<<24].
FIxes #12815

Could you also add a note into the kube-proxy-free guide? Thx

Thanks!
Unrelated to your PR: shall the LB map size be a subject to the dynamic BPF resizing? /cc @tklauser

I don't think it makes sense. i) So far we haven't had complaints that the map is too small, but from a user experience it would be annoying after deploying thousands of services that you're hitting the limit here (that would be if we'd go <64k). And ii) Lets assume nodes of different size are deployed, so not all get the same auto-sizing configuration, yet all need to hold pretty much the same svc/backend mappings (w/ few exceptions like HostPort or externalTrafficPolicy=Local), but it would be annoying if one node had a much larger reserve and others a too small given their total RAM size - it's better if it's deterministic and would generally fail instead of failing to be deployed on some but not others.

Coverage increased (+0.003%) to 37.131% when pulling 3466e7157af1949f81fd4ad78f24a4a7817c77c4 on pr/fristonio/fix-12815 into 487313d5497ec2a4b2b0bb94aff9c80af2f81890 on master.

Thanks!
Unrelated to your PR: shall the LB map size be a subject to the dynamic BPF resizing? /cc @tklauser

I don't think it makes sense. i) So far we haven't had complaints that the map is too small, but from a user experience it would be annoying after deploying thousands of services that you're hitting the limit here (that would be if we'd go <64k). And ii) Lets assume nodes of different size are deployed, so not all get the same auto-sizing configuration, yet all need to hold pretty much the same svc/backend mappings (w/ few exceptions like HostPort or externalTrafficPolicy=Local), but it would be annoying if one node had a much larger reserve and others a too small given their total RAM size - it's better if it's deterministic and would generally fail instead of failing to be deployed on some but not others.

@borkmann @brb Also, we can't add more maps to the dynamic BPF resizing because of backwards compatibility. Adding a single map would make the resizing different for all other maps which would then break upgrades.

test-me-please


lulu link is down!

I think the lulu link has been down for days now, please fix!

!
Maybe!
Once a solution will be found!
!


Mod issue

Hi i'm making a modpack for fun on curseforge and i put the mods Create and create addition (this mod is at it's latest version 1.0.0), create innovations(this mod tells me i should have it in 20221219a or above wich when we look at where the dowload of this version is it's lower on the dowload pages so i don't know...), create diesel gens, create design and decor, create enchant industry, create deco, create confectionery, create central kitchen and some other mods... (yes i am in 1.18.2 forge for your info)
and here the logs:
latest.log

Hi! Create Innovations was built for a specific version of create, which is what is likely causing your crash. As of now, this mod is sadly abandonware. I don't really have time or patience to work on it.
You are welcome to use some of the recipes or various components of this mod in your modpack. You can recreate most of this mod's functionality using KubeJS and Custom Machinery.
I wish you luck on your modpack and I am sorry that this mod isn't compatible with your version.

Ohhhhh I would have used it but if I can’t use it with newer version of create I won’t…


[2.0] Performance improvements when counting inverse collections

This was previously handled in #1086 for 1.x, but can't be done in 2.0 for repository methods (they are expected to return a cursor which no longer offers triggering a count query).
While this performance improvement can lead to situations where counting gives one results and a subsequent iteration over the collection yields more results than previously counted, it is definitely not a good idea to read (and hydrate) all results just to count them.
A workaround may be to load data into memory but not hydrate it until iteration starts. This would eliminate the time penalty of hydration when counting a collection, but may still cause large memory consumption when counting a large collection.

Given repository method is to return an array of objects it might be hard to defer hydration. I'm inclined to move this into 2.x for now

In 1.x, repository method is expected to return a cursor, not an array of objects. The problem in 2.0 arises because a cursor can no longer be counted, so we'd have to take the cursor, get its query information and run the appropriate count query. Personally, the memory issue is a big problem, as the only other option to solve this is to manually keep track of the number of associated referenced items.

That actually should be doable, PersistentCollection would need to have its count() method tweaked.


derive instance id from pdf content hash

Blocked on https://github.com/typst/pdf-writer/pull/28. This won't compile until that is merged and the dependency is updated in this repo.
Fixes https://github.com/typst/typst/issues/2536

I have released pdf-writer 0.9.2 with Chunk::as_bytes.

Thank you!


Incognito theme has issues with transparency

Describe the bug
I'm running Supermium on Windows 10 v1709 with Glass8.eu for glassy titlebars and the theme Simple Silver Aero. Incognito mode somehow had the theme applied and had illegible text on the NTP, so I switched on #incognito-brand-consistency-for-desktop, but now the background tabs have a strange transparency titlebar bg colour applied to them:

Other relevant flags I have enabled:
#incognito-brand-consistency-for-desktop
#disable-windows-10-custom-titlebar
#force-xp-theme
#custom-tab-shapes

Expected behavior
I'm wondering if these background tabs are the default behaviour for Win10, but it doesn't fit very well with the custom tab shapes. Shouldn't they should be an unfocused gray, rather than the BG titlebar colour?

It is default behaviour on Windows 10, based off previous behaviour. I'll probably add a switch to remove the influence of the system colours on the tabs and ultimately move towards having all colour values being user-customizable.


Unable to setParams

 componentWillMount() {
        console.log('1', this.props.navigation.params);
        this.props.navigation.setParams({ realtebo: 2 });
        console.log('2', this.props.navigation.params);
    }

Output:
1 undefined
2 undefined

Why ?!
My environment
"expo": "^21.0.0",
"firebase": "^4.4.0",
"react": "16.0.0-alpha.12",
"react-native": "^0.48.4",
"react-navigation": "^1.0.0-beta.13",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"

Node 8.5
npm 4.61

Hi @realtebo - it's really hard to tell why you are getting those undefined without seening the code of the component and navigation.
That said I'm quite confident is not a bug of the library.

I think it's this.props.navigation.state.params not this.props.navigation.params


net: pkt: fix race condition in packet reference counting

It has been observed that some network drivers, f.ex. the SAM E70 GMAC,
call net_pkt_unref from inside the interrupt that signals the successful
transmission of a packet. This conflicts with the net_pkt_unref call made
by ethernet_send after the packet has been given to the driver.
We fix this by using an atomic_t to hold the reference count as there
might be other, difficult to find cases of net_pkt_(un)ref being used
across threads and interrupts.
The name of the element has been changed from "ref" to "atomic_ref" to
cause a compile error when code still has not been converted to use the
atomic_* functions.
Fixes #12708
Signed-off-by: Daniel Glöckner<EMAIL_ADDRESS>

@dgloeck, Thinking about your patch more, I wonder if we now should have net_pkt_get_refcount()? @jukkar, @tbursztyka: What do you think?

@pfalcon Do you believe we will have to touch the reference counting code again in the future? Then wrapping the access in a function would make sense.
But I don't think we should help people read the reference count. It might be outdated before they do something with the value. The only safe way to check if the refcount for a packet is zero is to look at the return value of net_pkt_ref. And if it was zero, net_pkt_ref will already have logged an error (if enabled).

@dgloeck

Do you believe we will have to touch the reference counting code again in the future?

Yes. The whole idea of reference count is to allow for optimizations. Basic and obvious optimization is to avoid cloning a packet, instead having refcount >1. But having such a refcount value precludes other interesting optimizations. But our current situation is that in many (?, some, for sure) places there's implicit assumption that refcount == 1. See for example my own cute code: https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/net/lib/sockets/sockets.c#L606 (yes, that destructively modifies a packet). Such cases need to be fixed of course.

It might be outdated before they do something with the value. The only safe way to check if the refcount for a packet is zero is to look at the return value of net_pkt_ref.

Per above, I'm interested in checking for refcount == 1. And surely, that would require some discipline. E.g., if a packet is destined for 2 separate processing pipelines, then refcount somehow needs to set to 2 before any of those pipelines "starts to run". That's why I'm consulting with you to detect possible issues beforehand.

Then wrapping the access in a function would make sense.

I'll prepare a patch.
@rveerama1: FYI, That's related to your comment https://github.com/zephyrproject-rtos/zephyr/pull/12564#discussion_r253480160 . I'm preparing a response to it too.


content blocking in wallet server

wallet server should have a configurable way of identifying blocked claims

information to block on: claim id, sd hash, and file hash.
simple but less-ideal solution: enter a URL that returns a JSON of blocked claim ids
better solution: something that uses the protocol itself (maybe a configurable channel to follow where publishes to that channel identify blocked claims).

new claim type: blocked content
{
	operation: add|remove,
	report_id: 866192843, # id of the report we received that prompted us to block this content
	claim_ids: ["2349a999b32","abc123",...],
}

when you set up what channel is blocked, you must pin it to a claim id so you don't worry about the name being taken over.

try to do anything we can to minimize the ways the blocklist can change

update resolve and search wallet server methods to return information about blocked claims. the information should include

the number of results that were blocked
how to find out more about why those results were blocked

Q&A

if a claim is blocked, can we still return the raw tx that contains that claim? the raw transaction may be necessary for downstream services. my guess is this is fine, but we need to check

we're taking the position that raw transactions are fine.

how do we handle the case where the winning claim is blocked but there are other claims for that name? do you return the second winning claim, or a blocked error?

return a blocked error

what if the first-place claim gets abandoned and the second-place claim is blocked?

its now blocked

more generally, what if you look up all claims for a name? do you hide the blocked claims from that list? how do you explain how to find out more about the blocked claims?
not returning claims can cause validation issues. if claims cant be returned, you may not be able to validate the claimtrie structure. in lbrycrd we should be safe because it does not know about metadata.
what happens if you spend a banned claim into a new claim for the same name with the same metadata? what if you do something similar but slightly more obfuscated (spend two banned claims into two new claims that swap the names and metadata)?
maybe its not a banned list, but a "only this channel has the rights to this stream hash" list?
what if you were gonna publish to a name that already had a claim that was blocked? for example, what would the app say is the minimum takeover amount necessary?
can a whole channel be blocked?

From Jeremy on Slack (about the API changes here):
 - Instead of a single list of channels to look at for filtering, allow a list-of-list structures that looks something like this:
{
  dmca : [@lbryincdmca#abc, @sonyincdmca#def]
  malicious: [@lbryincmalicious#abc, @mcaffeemalicious#123]
}
- For xxx_list calls, instead of a count_blocked property, return a filtered property that looks something like this:
...
filtered: {
  total: 50,
  dmca: 20,
  malicious: 30
  ...
}
- Ideally, allow these configuration values to be updated dynamically without a full restart of the server, but this isn't strictly necessary for a v1

(flexible on exact structures, names, etc. this is just a sketch, not an exact prescription)

re Jeremy's idea:
we like it. we're gonna do it as a next step after v1 is done.

we're also considering client-side filtering in addition to server-side:
client-side filtering (for the future)

add --filtering-channels= flag to claim_search so client can add additional filtering channels to the search
also allow filtering out single claims?
performance issues? what if you add 10 giant filtering channels? does that make the query slow?

farther down the line, we'd like a nice UI for wallet server operators to see/add/remove what channels are blocked

blocked by https://github.com/lbryio/lbry-sdk/issues/2666


Dragging Chat Offscreen

Describe the Bug
Dragging the chat off screen increases the client window size.
Steps to Reproduce
Drag the chat off screen in game. Follow the steps in the readme to setup a client and server.
Expected behavior
Dragging the chat off screen shouldn't be allowed.
Suggestions
If the chat is getting in the users way, perhaps add a minimize button?
Screenshots

https://editor.p5js.org/aferriss/sketches/r101Sc2_f
This may make things easier for mouse detection on a minimize window button.

You could also clamp the x and y values to window.offsetHeight and window.offsetWidth. You will have to do something about the chat position on resize of the window however. I can create a PR tonight as an example.


Add a dark mode toggle button

I would like to add a dark mode toggle button. Please assign me under gssoc-ext and hacktoberfest.

can you elaborate your usecase? as it's cli based and no user interface we're providing. what you want to say?

@pavitraag

Currently this background is in bright color , I want to add a feature to add a black background so that its user choice to switch the background they want and helps in reducing the stress of eye.

ahh that's pypi package website!
where every python package has been listed
we have explaianbleai python package only


Make rly st also subscribe to NewBlock events

@sorawit this is great! A few questions/thoughts:

Have you tested this and is it working OK? Last time I tried this I was getting errors for having multiple listeners.
Ideally, we also use the new block events to generate the headers which is something I've been meaning to do as well. I was going to write a UpdatedHeader type that kept a map[string]*tmclient.Header up to date with the latest but this could be adopted for that as well.

Yes. I tested with two BandChains communicating with each other. Unfortunately, I don't have a specific docker setup at the moment. But here's is an example of block info with packet broadcasted: http://<IP_ADDRESS>:26657/block_results?height=7891
{
  "end_block_events": [
    {
      "type": "send_packet",
      "attributes": [
        {
          "key": "cGFja2V0X2RhdGE=",
          "value": "eyJ0eXBlIjoiem9yYWNsZS9PcmFjbGVSZXNwb25zZVBhY2tldERhdGEiLCJ2YWx1ZSI6eyJyZXN1bHQiOiIwMDAwMDAwMDAwMGFmZGY3In19"
        },
        {
          "key": "cGFja2V0X3RpbWVvdXQ=",
          "value": "MTAwMDAwMDAwMA=="
        },
       ...

The packet has been relayed successfully to another chain: http://<IP_ADDRESS>:1317/txs/055934CCF0EA3B9E7595D941E1B7F3387397972F8DCE3438AF9B26D850B8DA98
Here's the log from rly st
I[2020-04-08|07:23:04.024] - listening to tx events from bibc1...
I[2020-04-08|07:23:04.024] - listening to block events from bibc1...
I[2020-04-08|07:23:04.097] - listening to tx events from bibc2...
I[2020-04-08|07:23:04.097] - listening to block events from bibc2...
...
I[2020-04-08|07:24:28.592] ✔ [bibc1]@{8164} - msg(0:update_client,1:ics04/opaque) hash(055934CCF0EA3B9E7595D941E1B7F3387397972F8DCE3438AF9B26D850B8DA98)
I[2020-04-08|07:24:28.627] • [bibc1]@{8164} - actions(0:update_client,1:ics04/opaque) hash(055934CCF0EA3B9E7595D941E1B7F3387397972F8DCE3438AF9B26D850B8DA98)```

For 2. I think that's interesting, but let's save that for a separate PR?


Workshop - 0.2 to 0.3 code transform of examples

@shaileshgrowisto, thanks for the pull request. Regarding comments, we have moved to double semicolon for comments instead of single semicolons. Can you use that and update the PR?

@shaileshgrowisto is this done? Should I merge it?

@shaileshgrowisto is this done? Should I merge it?

I have added the double semicolons, you can merge the code.
Also, for the Link feature, i updated with new release done by arpita but does not seem to work

@amitu @shaileshgrowisto I merging this PR for now, please create a new PR.


Update repairnator readme and launcher scripts.

I don't agree with your changes there.

I'm using almost everywhere the hierarchy with a /scripts folder containing all the scripts to launch repairnator

You cannot specify that REPAIRNATOR_GH_REPO_PATH will be github/repairnator because it will be, at least, github/repairnator/repairnator (there is a subfolder in this repo called repairnator) And most importantly I'm still using directory named github/librepair where I execute repairnator...

Ok. You can just close this pr then. I just can't run repairnator following the readme, but I already set up this to work for me, so...


What header files are necessary?

Hello!
I am working on a project where I have to deploy an inference engine in a very minimal environment where even the math library is not present. While compiling (onnxconf.h) for the platform I found out that the math.h header file was missing in the platform libraries. Here are some of the headers being used in that header file - onnxconf.h:
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <malloc.h>
#include <float.h>
#include <math.h>
#include <list.h>
#include <hmap.h>

Also I have found that in this header file no math function has been used - I hope I am write on this! Correct me if I am wrong
So I was wondering if I could just remove this inclusion of math.h and still have a functional inference engine?
Just to make things simple compiling a math library would not be desirable but is possible.

Oh I did not look in to that!
Thank you.


How i can add callback to Undo and Redo events?

Hi, i want use this project for made collaborating painting on web page,
I want for this understand how i can add callback to Undo and Redo events, and how i can drawing to the canvas from js code.

@Levhav Hi, thanks for proposal, we will need to add it. Pretty easy, but requires to arrange some time. Btw you could do it by yourself, you just need to find events in code and trigger callbacks.

@Levhav callbacks are added in 0.2.69. Please check readme
To drow on Painterro canvas you can use ctx property of painterro instance, for example:
  window.p = Painterro({ }).show()
  const ctx = window.p.ctx;

  ctx.beginPath();
  ctx.moveTo(0,0);
  ctx.lineTo(300,150);
  ctx.strokeStyle="#FF0000";
  ctx.stroke();


[stable/concourse] Unable to install concourse on minikube

Is this a request for help?:
Erm... well, it's a bug report, which is also asking for help. I guess.
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
With minikube, running
helm install --name concourse stable/concourse

fails.
Version of Helm and Kubernetes:
 ~  helm install --name concourse stable/concourse
Error: error validating "": error validating data: field spec.dataSource for v1.PersistentVolumeClaimSpec is required
 ✘  ~  minikube version
minikube version: v0.35.0
 ~  k version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.4", GitCommit:"c27b913fddd1a6c480c229191a087698aa92f0b1", GitTreeState:"clean", BuildDate:"2019-02-28T13:37:52Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.4", GitCommit:"c27b913fddd1a6c480c229191a087698aa92f0b1", GitTreeState:"clean", BuildDate:"2019-02-28T13:30:26Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
 ~  helm version
Client: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}
 ~ 

(k is my alias for kubectl).
Which chart:
stable/concourse
What happened:
Fails with
Error: error validating "": error validating data: field spec.dataSource for v1.PersistentVolumeClaimSpec is required

What you expected to happen:
For concourse to be installed.
How to reproduce it (as minimally and precisely as possible):
Specified above.
Anything else we need to know:
I'm running this on archlinux with docker version:
 ~  docker version
Client:
 Version:           18.09.3-ce
 API version:       1.39
 Go version:        go1.12
 Git commit:        774a1f4eee
 Built:             Thu Feb 28 20:38:40 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.3-ce
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.12
  Git commit:       774a1f4eee
  Built:            Thu Feb 28 20:37:49 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Minikube is using the default VirtualBox instance it creates.
 ✘  ~  VBoxManage --version
6.0.4r128164

Hello @ashic! You are using a older version of helm. Try using a newer version (v2.13.0).
This release adds, among other features, kubernetes 1.13.0 client libraries updates. I was having the same problem with other repositories and after upgrading to helm 2.13.0, the problem is gone.

Hmm.. updated stuff, but now get:
 ~  helm install --name concourse stable/concourse
Error: error validating "": error validating data: the server could not find the requested resource
 ✘  ~  k version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:53:57Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:45:25Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
 ~  helm version
Client: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}

@ashic You're still using on old version of helm (v2.5.0). You need to update your local helm client binary (https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz) and using this one, do a helm init --upgrade or --force-upgrade to force the server component of helm (tiller) version on Kubernetes. You'll be fine after this.

Hmm.. updated stuff, but now get:
 ~  helm install --name concourse stable/concourse
Error: error validating "": error validating data: the server could not find the requested resource
 ✘  ~  k version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:53:57Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:45:25Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
 ~  helm version
Client: &version.Version**{SemVer:"v2.5.0",** GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}
Server: &version.Version**{SemVer:"v2.5.0",** GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}


Removes manual gateway start starts gateway in node

Should be GTG @asutula

actually, hold off one sec, i'm testing on device to be 100% sure


Fixes broken footer links

Twitter user reported these footer links were broken so this PR fixes the issue

@bradygaster,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@bradygaster : Thanks for your contribution to the Azure documentation! The author, @ggailey777, has been notified to review your proposed change.

Looks good to me. #sign-off


"Target frameworks in SDK-style projects" appears out of date for older versions of .NET Core

With .NET 5.0 installed it doesn't appear I can use target frameworks older than netcoreapp3.1. I get an invalid parameter error when trying any of the older version listed as options.
$ dotnet new webapi -f netcoreapp3.0
Couldn't find an installed template that matches the input, searching online for one that does...
Error: Invalid parameter(s):
-f netcoreapp3.0
    'netcoreapp3.0' is not a valid value for -f (Framework).

net5.0 and netcoreapp3.1 work, but I get the same error for all of these:
netcoreapp1.0
netcoreapp1.1
netcoreapp2.0
netcoreapp2.1
netcoreapp2.2
netcoreapp3.0

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

ID: 49205137-dcec-a120-e5e7-1b9c79cdafbb
Version Independent ID: 4352856b-5ccf-8e62-48b4-3151340cac56
Content: Target frameworks in SDK-style projects - .NET
Content Source: docs/standard/frameworks.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @gewarren
Microsoft Alias: gewarren

@vlada-shubina To use dotnet new to create a project that targets an older unsupported version is there a template that you can install?

@vlada-shubina To use dotnet new to create a project that targets an older unsupported version is there a template that you can install?

Yes, the web project templates are shipped in per SDK packages.
https://www.nuget.org/packages/Microsoft.DotNet.Web.ProjectTemplates.3.0/ - example package for netcoreapp3.0
It is possible to install it manually. For 2.1 user can also install .NET SDK 2.1 - then the netcoreapp2.1 TFM will be available.

@vlada-shubina Thanks!  I'm adding this information to the dotnet-new-sdk-templates article.

@brnhensley Thanks or reporting this -- the explanation will be in a different article -- https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new-sdk-templates

Thanks for looking into this @tdykstra


pkg/helm/traverse.go needs a clean-up

That file currently has an odd mixture of exported and unexported things, and doesn't really make sense as it is. As the comments in that file suggest, it should probably be moved to pkg/chart.

LOL... for example, running make test-style shows these lines:
/Users/mattbutcher/Code/Go/src/github.com/kubernetes/helm/pkg/helm/traverse.go:57:44: exported func WalkChartFile returns unexported type *helm.chartObj, which can be annoying to use
/Users/mattbutcher/Code/Go/src/github.com/kubernetes/helm/pkg/helm/traverse.go:74:1: receiver name chs should be consistent with previous receiver name chd for chartObj

consolidating into pkg/helm refactor.


MQTT_16BITNUM_TO_BYTE_SEQ should assert that the value of the size_t fits into uint16_t

Used in this situation.
struct binary_property_ref {
    binary_property_ref(property::id id, string_view sv)
        :id_(id),
         length_{MQTT_16BITNUM_TO_BYTE_SEQ(sv.size())},
         buf_(sv.data(), sv.size()) {
             if (sv.size() > 0xffff) throw property_length_error();
         }

The macro should provide some confirmation that the size is compatible.
Then all of the other places where this is manually verified can be removed in favor of the check provided by the macro.
One way to handle this is to have a generic "safe_cast" function that automatically does the appropriate size checks based on the template parameter.
Then the use of the macro can be re-written as MQTT_16BITNUM_TO_BYTE_SEQ(mqtt::safe_caststd::uint16_t(sv.size()))

For what it's worth, I'd also recommend making MQTT_16BITNUM_TO_BYTE_SEQ into a normal function that returns an std::array<std::uint8_t, 2>, but that's not really directly related to this issue.

For what it's worth, I'd also recommend making MQTT_16BITNUM_TO_BYTE_SEQ into a normal function that returns an std::array<std::uint8_t, 2>, but that's not really directly related to this issue.

It was for the following code:
std::string s { 1, 2, 3, MQTT_16BITNUM_TO_BYTE_SEQ(9876), 5, 6, };

I needed to the way to get a flatten sequence but C++ container doesn't fit to the purpose.
Now, I grep-ed all MQTT_16BITNUM_TO_BYTE_SEQ. And I noticed that all targets are boost::container::static_vector<char, 2>.
I also grep-ed all MQTT_32BITNUM_TO_BYTE_SEQ. And I noticed that all targets are boost::container::static_vector<char, 4>.
https://wandbox.org/permlink/o1xzCkImqbKHLdez
#include <boost/container/static_vector.hpp>

namespace mqtt {

inline boost::container::static_vector<char, 2> num_to_2bytes(std::uint16_t val) {
    return {
        static_cast<char>(static_cast<std::uint16_t>(val) >> 8),
        static_cast<char>((val) & 0xff)
    };
}

inline boost::container::static_vector<char, 4> num_to_4bytes(std::uint32_t val) {
    return {
        static_cast<char>(static_cast<std::uint32_t>(val) >> 24),
        static_cast<char>(static_cast<std::uint32_t>(val) >> 16),
        static_cast<char>(static_cast<std::uint32_t>(val) >>  8),
        static_cast<char>((val) & 0xff)
    };
}

} // namespace mqtt

int main() {
    boost::container::static_vector<char, 2> length1(mqtt::num_to_2bytes(1234));
    boost::container::static_vector<char, 4> length2(mqtt::num_to_4bytes(1234));
}

So we can replace it as above.
In this approach, parameter type and static_vector's size work for checking automatically on compile time.
What do you think?

I like this approach.
I have a question about num_to_2_bytes:
        static_cast<char>(static_cast<std::uint16_t>(val) >> 8),
        static_cast<char>((val) & 0xff)

Why the static cast to std::uint16_t ?

Why the static cast to std::uint16_t ?
Ah, cast to the same type. It is meaningless.

So the code should be updated as follows:
https://wandbox.org/permlink/zofTQwV02AtTlGVL
#include <boost/container/static_vector.hpp>

namespace mqtt {

inline boost::container::static_vector<char, 2> num_to_2bytes(std::uint16_t val) {
    return {
        static_cast<char>(val >> 8),
        static_cast<char>(val & 0xff)
    };
}

inline boost::container::static_vector<char, 4> num_to_4bytes(std::uint32_t val) {
    return {
        static_cast<char>(val >> 24),
        static_cast<char>(val >> 16),
        static_cast<char>(val >>  8),
        static_cast<char>(val & 0xff)
    };
}

} // namespace mqtt

int main() {
    boost::container::static_vector<char, 2> length1(mqtt::num_to_2bytes(1234));
    boost::container::static_vector<char, 4> length2(mqtt::num_to_4bytes(1234));
}


Add Ruby on Rails

Adding a language

[x] The code displays "Hello World"
[x] I have updated the readme to include the new language
[x] I have incremented the language count in the readme
[x] I have no association with the language
[x] There are no copyright issues with this code

Link to programming language:
https://rubyonrails.org
Attrib: guide https://guides.rubyonrails.org/getting_started.html under Creative Commons Attribution-ShareAlike 4.0,only modification is changing the task from article list to hello world. Add this attribution at the bottom of the readme

It should only be Ruby on Rails.

@MrBrain295 Thanks, request @Richienb to review

Isn't Rails more of a framework based on Ruby?
https://stackoverflow.com/questions/1237372/what-is-the-difference-between-ruby-and-ruby-on-rails/26759107

Isn't Rails more of a framework based on Ruby? https://stackoverflow.com/questions/1237372/what-is-the-difference-between-ruby-and-ruby-on-rails/26759107

It is but be also accept things like libraries and frameworks (that's why we have things like React).


AssertionError: ..vocab

Nuitka version, full Python version, flavor, OS, etc. as output by this
command (it does more than you think, and we are adding more all the time):
<IP_ADDRESS>
Commercial: None
Python: 3.7.11 (default, Jul 27 2021, 14:32:16)
Flavor: Anaconda Python
OS: Linux
Arch: x86_64
Distribution: Debian bullseye/sid

How did you install Nuitka and Python
installed via pip on anaconda

Provide in your issue the Nuitka options used
python -m nuitka --follow-imports --standalone --onefile --warn-implicit-exceptions --assume-yes-for-downloads --follow-stdlib --enable-plugin=torch --enable-plugin=gevent --enable-plugin=multiprocessing --enable-plugin=numpy --enable-plugin=pkg-resources --enable-plugin=tensorflow --output-dir=~/build/Lemma/ LemmaSrv2.py

Error
Nuitka-Plugins:INFO: implicit-imports: Implicit dependencies of module 'spacy.strings' added 'pathlib'.
PASS 1:  99%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 4716/4753, spacy.tokens.morphanalysisTraceback (most recent call last):
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/main.py", line 142, in
main()
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/main.py", line 128, in main
MainControl.main()
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/MainControl.py", line 906, in main
main_module = _createNodeTree(filename=filename)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/MainControl.py", line 193, in _createNodeTree
optimizeModules(main_module.getOutputFilename())
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 350, in optimizeModules
finished = makeOptimizationPass()
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 312, in makeOptimizationPass
changed = optimizeModule(current_module)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 204, in optimizeModule
optimizeShlibModule(module)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 194, in optimizeShlibModule
Plugins.considerImplicitImports(module=module, signal_change=signalChange)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/plugins/Plugins.py", line 344, in considerImplicitImports
cls._considerImplicitImports(plugin=plugin, module=module)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/plugins/Plugins.py", line 268, in _considerImplicitImports
full_name = ModuleName(full_name)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/nuitka/utils/ModuleNames.py", line 31, in init
assert ".." not in str(value), value
AssertionError: ..vocab

There is no reproducer though.

Sorry, to reproduce:
import spacy
when spacy is installed:
pip install spacy
pip install -U spacy[cuda]
pip install spacy-transformers
python3 -m spacy download en_core_web_trf

I don't have CUDA, but it wasn't necessary. The problematic line is in a .pyi file, which makes relative imports:
from ..vocab import Vocab
The pyi parsing unlike the normal parsing doesn't yet consider the package name to resolve those. Apparently we have not yet come across this, but it needs to be added of course. The code has this:
# TODO: Might want to add full relative import handling.

So the fix is on the factory branch, I was compiling the module though, and encountering implicit imports, which I am adding to Nuitka handling for them. So you might want to wait a bit:  https://nuitka.net/doc/factory.html

thank you for the quick response!
any ETA for for a full support for spacy?

@omrivm for anything not part of https://nuitka.net/doc/commercial.html the ETA thing does not exist, but rather it's done when it's done.

The pyi parsing bug is on develop now and will be in the 0.6.19 release. Spacy itself will take longer.

Thank you!

Part of the 0.6.19 release I just made.


Add missing contract unit tests

Add unit tests
Add more tests for NFT bridge
Description

Remove unused parts of contracts
Add unit tests for missing coverages

How to Test

Run both ganache-cli
Run the integration tests

Case 1

Go to bridge directory

$~ cd bridge

Run the first ganache-cli

$~ npm run ganache

Open another shell and run the ganache mirror

$~ npm run ganache-mirror

Deploy the contracts to both chains

$~ npm run deployIntegrationTest

Go to the federator directory

$~ cd ../federator

Run the Integration tests

$~ npm run integrationTest

Expected Result

It should pass the test

Checklist
Bridge Directory cd bridge

[x] Lint is clean npm run lint
[x] Test is passing npm run test
[x] Contracts are compiling npm run compile

Federator Directory cd federator

[x] Lint is clean npm run lint
[x] Test is passing npm run test
[x] Typescript is compiling npm run build

Coverage increased (+5.2%) to 97.497% when pulling 01ee81c68a605632cb3c26f278aed4b0b87b933c on feature/add-missing-contract-unit-tests into 94a87ba395a2482146bfc1c859ae81b011bfd0c4 on nftbridge.


update seed data and add a patch fix

Add ticket reference to Pull Request title: e.g. 'FS-123: Add content', if there is no ticket prefix with BAU
Change description
https://digital.dclg.gov.uk/jira/browse/FS-2500
Currently, the add-another component output is not consumable (going forward) by the assessment service, this is because the keys are dictated by the field name in the form builder. This form builder context is not known by assessment when extracting the information (by key) from the application payload. Instead we should use consistent keys such as "name" and "value" as below.
For now a patch has been put in place to handle the temporary "add-another" output.

Superseded by https://github.com/communitiesuk/funding-service-design-assessment-store/pull/172


Add storage abstractions for list and snapshots

Add Azure Blob Storage enumeration and snapshot APIs.
This allows applications using the gallery-based storage abstractions to take snapshots of blobs if they one does not exist, which is a behavior supported by the V3 (NuGet.Services.Metadata) storage abstractions.
In particular, I am working on rewriting Catalog2Registration and I am aligning on the gallery storage abstractions. Current Catalog2Registration uses the V3 storage abstractions and ensures every blob has at least one snapshot to mitigate accidental deletion. In general the NuGetGallery.Core storage abstractions (ISimpleCloudBlob and friends) are better for mocking because they more closely match the shape of the underlying Azure Storage APIs. Many non-gallery jobs already use the gallery storage abstractions: Azure Search, validation pipeline.
Until we have aligned all of the code on a single set of storage abstractions we're going to have this situation where capabilities are added lazily/piecemeal.

In general the NuGetGallery.Core storage abstractions (ISimpleCloudBlob and friends) are better for mocking because they more closely match the shape of the underlying Azure Storage APIs. Many non-gallery jobs already use the gallery storage abstractions: Azure Search, validation pipeline.
Until we have aligned all of the code on a single set of storage abstractions we're going to have this situation where capabilities are added lazily/piecemeal.

I wonder if we should align our code to Azure.Storage.Blobs SDK once that's released, as these are mockable.

I wonder if we should align our code to Azure.Storage.Blobs SDK once that's released, as these are mockable.

Yeah, I think that would be a good north star. I haven't looked at the API delta to understand what it would take to move. Like I don't know if we'd still want a concept of a storage abstraction at the ISimpleCloudBlob level. The file storage stuff in gallery probably would stay as-is but is too high level for many cases like V3/Azure Search.
I guess it's something to keep in the back of our mind.


#32 Built: Static and Error checking of Go code

Signed-off-by: gunjanmimo<EMAIL_ADDRESS>

@leecalcote @girishranganathan sir all the errors are resolved now, am i right?


Inconsistent UI for RSS feeds

When you click on a RSS feed (after Read or Listen) sometimes you get the list of followers on the left column, sometimes not.
Case 1 without followers:

Case 2 with followers:

This is actually due to some feeds being "featured" and having a different UI layout - behaving as expected right now.

Changed from bug to regular issue (it still looks very weird)


(todo-databinding) Build failed of DataBinding in todo-databinding branch after upgrade android studio 2.3 and gradle 3.3-all

symbol:   variable BR
location: class TasksViewModel
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksViewModel.java:103: error: cannot find symbol
notifyPropertyChanged(BR.notEmpty);
^
symbol:   variable BR
location: class TasksViewModel
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksViewModel.java:104: error: cannot find symbol
notifyPropertyChanged(BR.tasksAddViewVisible);
^
symbol:   variable BR
location: class TasksViewModel
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFragment.java:90: error: cannot find symbol
TasksFragBinding tasksFragBinding = TasksFragBinding.inflate(inflater, container, false);
^
symbol:   class TasksFragBinding
location: class TasksFragment
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFragment.java:90: error: cannot find symbol
TasksFragBinding tasksFragBinding = TasksFragBinding.inflate(inflater, container, false);
^
symbol:   variable TasksFragBinding
location: class TasksFragment
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFragment.java:291: error: cannot find symbol
TaskItemBinding binding;
^
symbol:   class TaskItemBinding
location: class TasksAdapter
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFragment.java:297: error: cannot find symbol
binding = TaskItemBinding.inflate(inflater, viewGroup, false);
^
symbol:   variable TaskItemBinding
location: class TasksAdapter
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailFragment.java:87: error: cannot find symbol
mViewDataBinding = TaskdetailFragBinding.bind(view);
^
symbol:   variable TaskdetailFragBinding
location: class TaskDetailFragment
/home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskFragment.java:93: error: cannot find symbol
mViewDataBinding = AddtaskFragBinding.inflate(inflater, container, false);
^
symbol:   variable AddtaskFragBinding
location: class AddEditTaskFragment
Note: /home/javan/Projects/Github/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksViewModel.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
20 errors
:app:compileMockDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileMockDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 1.472 secs

can't build success after upgrade android studio 2.3 android gradle 3.3-all. I didn't change anything.  How could I solve it ?

Have you rebuilt? looks like the bindings weren't generated.

Hi @JoseAlcerreca , ./gradlew clean assembleDebug ./gradlew assembleDebug I have tried, but also build failed.
Run git diff :
diff --git a/todoapp/build.gradle b/todoapp/build.gradle
index 780b95d..f745aea 100644
--- a/todoapp/build.gradle
+++ b/todoapp/build.gradle
@@ -4,7 +4,7 @@ buildscript {

     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.2.3'
+        classpath 'com.android.tools.build:gradle:2.3.0'

         // Plugin to help with annotation processing
         classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
@@ -31,7 +31,7 @@ ext {
     minSdkVersion = 10
     targetSdkVersion = 24
     compileSdkVersion = 24
-    buildToolsVersion = '24.0.2'
+    buildToolsVersion = '25.0.0'

     // App dependencies
     supportLibraryVersion = '24.2.0'
diff --git a/todoapp/gradle/wrapper/gradle-wrapper.properties b/todoapp/gradle/wrapper/gradle-wrapper.properties
index 8f3357b..958f361 100644
--- a/todoapp/gradle/wrapper/gradle-wrapper.properties
+++ b/todoapp/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Mon Feb 15 18:30:34 GMT 2016
+#Mon Mar 06 09:13:12 CST 2017
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

After Add    apt 'com.android.databinding:compiler:2.3.0' to build.gradle(app), Builded success. the reason why I build failed is the version of databinding compiler?

Yes, that makes sense!


Remove vendor directory

Vendoring in Go is not generally safe for libraries to use.
In this particular case, vendoring grpc results in vendoring
x/net/trace, which has a non-idempotent init() function, which panics
on invocations after the first. The result is that importers of this
package which also import x/net/trace will panic on init.
@djspoons

Given the frequency with which gRPC makes breaking changes, it pains me a little that we can't vendor it. (Though acknowledged that we shouldn't include x/net/trace for the reason you state.)

How about this:
https://github.com/lightstep/lightstep-tracer-go/pull/61

#61 seems to unblock us for the moment, but I would still insist that vendoring in a library is fragile and that you guys should avoid it.

We're coming around to sharing this point of view, but we also feel that
not vendoring gRPC is fragile and want to isolate our customers from broken
builds.
ᐧ
On Mon, Nov 7, 2016 at 1:18 PM, Tamir Duberstein<EMAIL_ADDRESS>wrote:

#61 https://github.com/lightstep/lightstep-tracer-go/pull/61 seems to
unblock us for the moment, but I would still insist that vendoring in a
library is fragile and that you guys should avoid it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lightstep/lightstep-tracer-go/pull/60#issuecomment-258965627,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADdiiZVgn1j9J-XtWkdOxd91Nbo__Q6yks5q75WwgaJpZM4KrsD5
.

Done in https://github.com/lightstep/lightstep-tracer-go/pull/70


Scoping - Search for Applicants

Description
We want to provide Managers with the ability to search for Applicants that meet various criteria.
This task is to discuss various ways of providing that functionality, including the specifics of search criteria and the backend technology used, and to (roughly) estimate the effort involved in each feature or approach.
These estimates are for creating an API endpoint that provides search results, and not for any UI associated with making or displaying the search results.
Search Features we could support
NOTE Seems like each (basic) feature we want to search on will be worth 2-3 points, and combining them all together may be worth 5-8 points at the end.
Note that each of these features also require a way to order or rank the filtered results.
Feature: Decide on API format
Estimate: 2
Description: Decide how search parameters to API, and how results should be returned.
Feature: Filter by Skills
Estimate: 3
Description: Managers select skills from our lookup table. We filter out Applicants who don't have experience linked to ALL of the selected skills.
Comments: might be easier to write as a raw SQL query.
Feature: Search by Work Preferences
Estimate: 3
Description: Filter by fields that are directly part of the Applicant model, but which don't exist yet.
Feature: Search by Applicant Language
Estimate: 3
Description: Filter by fields that are directly part of the Applicant model, but which don't exist yet.
Comments:
Feature: Search by Proferred Location
Estimate: 3
Description: Filter by Province and city values that are part of the Applicant model, but which don't exist yet. This could include ranking a City match higher than just a Province match?
Feature: Search by Classification and Level
Estimate: 3
Description: Filter by values directly associated with Applicant model. We have lookup tables for classification and level, but they aren't yet associated with Applicants. We could allow lower-ranked partial matches (ie classification but not level).
Feature: Search by Skill Keyword
Estimate: 8
Description: We could curate our own list of keywords for each skill, and then match keywords to skills to enable a roundabout Search by Skill.
Feature: Skill description Full-Text search
Estimate: 13
Description: Use full-text search to match arbitrary text to our skill descriptions to enable a roundabout Search by Skill.
Feature: Experience Title Full-Text search
Estimate: 8
Description: Search by text that appears in Experience titles.
Feature: Experience Full-Text search
Estimate: 13
Description: Use full-text search to match arbitrary text to any text fields in Applicant Experiences.
Feature: Semantic Search for Skills
Estimate: 21
Description: Match the intent of arbitrary text to the most similar skills in our database to enable a roundabout Search by Skill.
Feature: Semantic Search for Experience
Estimate: 21
Description: Match the intent of arbitrary text to the similar terms in any text fields of Applicant Experiences.
Feature: Rank applicant results
Estimate: 8
Description: Rank search results that meet more criteria, or meet criteria better. Especially complicated if there are multiple criteria that can be evaluated.
Potential methods of search

basic SQL queries
SQL full-text search functions
Elasticsearch

Other things to consider

If we allow searching/filtering by multiple features at a time, how do we rank overall results?
How do we test speed and quality of different features/techniques? Will require a production-like environment with many applicants.
How do we evaluate quality of search results?
Allowing applicants to hide their profile
Allowing applicants to reveal their profile to specific Managers

Elasticsearch - I asked my partner about Elasticsearch, as she specializes in natural language processing and her company uses it.
Elasticsearch sounds great in a lot of ways. It's open source, and considered basically the best large-scale search solution in industry. Its designed to consume free-form text documents, and magically turn them into more structured data (eg extracting dates, titles, etc) but can also start from database data (as in our case). It can be queried with an SQL-like syntax and can do very fast full-text searches.
Elasticsearch runs as its own search engine server. It takes the data provided to it and constructs its own data index, which it runs searches on. In our case, it means it would need to run on its own server (or on our Nginx server with its own endpoint) and we would set it up to periodically query the database server to update its index. The web app would query the Elasticsearch server for search results, and the data used in these searches would always be slightly out-of-date with the database.

Those Postgres text search functions are pretty cool, TIL


Username cache

Would allow for quick mentioning of known people but also automatically forwarding posts to fed.brid.gy when some person is marked as "this is a fediverse identity"


encryption failed."Unable to open a realm at path ....."

i have updated xcode to 7.2,and realmswift 0.97.0
but when i do encryption on a existed realm with data ( may generated before 0.97.0), like
    try! realmOld.writeCopyToPath(newRealm,encryptionKey: getKey())

when i open the new realm using getKey() , i will always get
"Error Domain=io.realm Code=2 "Unable to open a realm at path ....."
seems the key is not right, but i am sure that i am using the same key.
i donot know why. the encryption seems ok before i update to realmswift 0.97.0.

I seem to be having a similar problem.

RLMRealmConfiguration *configuration = [RLMRealmConfiguration defaultConfiguration];

configuration.encryptionKey = [self convertUUIDTo64ByteKey:@"83E28D0C-589F-4248-BB38-14C165D8D5AA"];

DDLogInfo(@"%@", configuration.encryptionKey);
[RLMRealmConfiguration setDefaultConfiguration:configuration];
RLMRealm *defaultRealm = [RLMRealm defaultRealm];

I am able to open the realm file the first time I create the file. If I stop the program, and re-run the exact same code, the app crashes with the exception "Unable to open a realm at path ". If I comment out the encryption key process and re-run the test, I am able to successfully open realm. I am also on XCode 7.2 and realm objective-c 0.97.0

As of version 0.97.0, you can use encryption while debugging. We used to recommend adding the environment variable REALM_DISABLE_ENCRYPTION to the scheme, you run for debugging your app. This will forcefully disable encryption as feature. Please make sure that you have removed this flag after updating. Realm files, which were generated with previous versions while this flag was enabled, are still unencrypted. You can write an encrypted copy instead as a workaround or just start all over by deleting the file.

yes，i have create a new realm file ,but when the file has little data, the encryption is ok , if has more data like 3M , the same situation appears again. i am not use REALM_DISABLE_ENCRYPTION, and when i archive to app store for test , the problem remain the same.i can not open the new encrypted realm with the key.

i have did some more test, I am quite sure this is a problem, may be a bug...
the test is done in swift-2.1.1/RealmExamples/Encryption.
I have a object called
class MediaSentence: Object {
    dynamic var id :Int = 0
    dynamic var movieId : String = ""
    dynamic var movieType : String = ""
    dynamic var sentenceIdx : Int = 0
    dynamic var subtitle : String = ""
    dynamic var subtitleChi : String = ""
    dynamic var timeStartMS : Int = 0
    dynamic var timeEndMS : Int = 0
    override class func primaryKey() -> String {
        return "id"
    }
    override class func indexedProperties() -> [String] {
        return ["movieId","sentenceIdx","timeStartMS"]
    }
}

and a json file has data, I first use the default.realm, import some data, then encrypt to a new realm file , at last open the encrypted file.
        let realm = try! Realm()
        importDataFromJsonFile()

        let newRealmPath = getRealPath(["cache.temp.realm"])
        try! realm.writeCopyToPath(newRealmPath, encryptionKey: getKey())

        let config2 = Realm.Configuration(
            path: newRealmPath,
            encryptionKey: getKey()
        )
        print("before open")
        try! Realm(configuration: config2) // this may throw exception "Unable to open a realm at path..."
        print("after open")

the result is :
when the json table resords is less than 600( the realm file is less than 150kb), everything going fine.
when the json table resords is more than 1000( the realm file is more than 250kb), the problem appears. when i open the encrypted file with key, it throws :
         fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=2 "Unable to open a realm at path '

so i am sure the exception appears or not , depends on the size of realm file.
before i update to realmswift 0.97.0, everything is ok. and this problem has annoyed me several days, and also took some time to deal with it. I hope you guys can help me to find a solution . with this problem , i cannot archive new app version to app store at all.

:pray:

Could you share the JSON file with us? (privately to<EMAIL_ADDRESS>Then we could try to reproduce the issue.

yes,of course, i will send the test project.

Thanks, just confirming that we received the files.

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

@mrackwitz i have send the data to<EMAIL_ADDRESS>you can check it when you have time, if there is any problem please let me know, thanks very much!

Thanks for the repro case. There's a bug in the underlying core library which I've now made a PR to fix (for certain sizes of encrypted files the opening logic looks in the wrong place for the file footer). I don't think there's a reasonable workaround other than using a version older than 0.96.3 until we can ship a fix.

Ok,i see.i will use older version for now, and wait for the fix, thanks.

for swiftrealm 0.96.3，there is error too
Error Domain=io.realm Code=2 "Bad Realm file header (#1)
for swiftrealm 0.96.2，everything ok！

A fix for this was merged in #3015.


Is the inclusion of the AZURE_HTTP_USER_AGENT env var in requests a supported feature?

I have a separate command line tool that launches the Azure CLI and wanted to include my user agent string in calls made from the Azure CLI. I found the AZURE_HTTP_USER_AGENT variable which seems to fit the bill, but I only found it by browsing through the source code (link)
I found a document for what I believe is the predecessor to the Azure CLI (https://github.com/Azure/azure-xplat-cli/wiki/Environment-Variables) but I just wanted to confirm that this was still considered an official feature of the current CLI.

@jiasli for awareness

@richardpark-msft,

I just wanted to confirm that this was still considered an official feature of the current CLI.

Yes, it is, but it is not officially documented.

Are there plans to change it in some way that I should be cautious of?

@yonzhan @jiasli have there been any changes to this environment variable?


enqueued metadata are used, if supplied, to fill in state fields.

This allows radios to replace artist and stream info.
And it no longer replaces track fields if they are not part of the item
I made the expi that in these cases:
data['r:enqueuedtransporturi'].val === currenttrackmetadata.title

Is streaminfo the name of the channel? I think in the old version, that we re-used fields for this, like artist and title, to simplify handling of different media. That way, it sort of makes sense, either way you render it.

I would love to do some more testing, but i must confess, I have yet to find out how to convert a stream to just show me the content as a string, so I could look at the raw XML. using Wireshark and "Follow stream" is fine, but ... well ... not very convenient.
Im not quite sure what gone into witch property. It seems to depend on which radio station you're listening:
this shows the structure: https://github.com/monsur/sonos-now-playing/issues/35
as you can see, the current tile contains the enqueuedTransportURI and the enqueuedTransportURIMetaData contains the real title. but the other informations are contained in the radioShowMd and streamContent.
I user your old mapping: https://github.com/jishi/node-sonos-discovery/blob/legacy/lib/player.js#L31-33
also there seems to be weird content in the radioShowMd and streamContent.
https://github.com/jishi/node-sonos-discovery/issues/70#issuecomment-228055417
The strange thing is, that the enqueuedTransportURIMetaData.title contains the title of the radio station. I would call that the artist, and the title would be in the radioShowMd but some informations are also in the streamContent, so the whole thing is mixed up. I'm not sure if its a good idea to overwrite the attributes a i would find them fit.?

Hi,. I just pushed some changes that I think would resolve this. I used a little different approach, I realized that AVTransportURIMetaData contained the same info as EnqueuedURIMetadata when it was a radio station, but seemed to be empty if it was queue playback. That gave me a good trigger for knowing if I should parse it or not.
I populate station name as artist, and r:streamContent as title, with my limited testing, that seemed to be working properly. Please give it a test and give feedback!

This has been fixed in another way, closing


chore: Update pr-title to remove deprecation warning

Resolves deprecation warnings like the following: https://github.com/antonbabenko/pre-commit-terraform/actions/runs/3550048303

This PR is included in version 1.77.1 :tada:


A "health check" endpoint to enable deploying on cloud servers

Is your feature request related to a problem? Please describe.
To deploy to cloud servers, for example Amazon Web Services (AWS), a load balancer requires an endpoint on the application server that it can ping at regular intervals.
Describe the solution you'd like
As a developer and administrator, I want a simple health check endpoint, for example /uPortal/health-check, that I can provide to an AWS load balancer that it can ping every few seconds. It should be outside the uPortal security filters and other filter chains so it returns a result quickly and isn't dependent on authentication or authorization. It should just respond to HTTP GET requests and return an HTTP 200 status (OK), nothing else.
Describe alternatives you've considered
I considered using an existing uPortal REST API endpoint like the /api/session.json which returns a result with HTTP 200 status even if not logged in. Unfortunately, because it returns JSON, it's much more complicated to configure with the load balancer. More importantly, because it's in a filter chain, several other things must get loaded before it returns a result, which can take a lot of time (10 seconds or more) on the first ping. I tried this and the load balancer never achieved a "healthy" status because of the amount of time it took for that first ping. For these reasons, a simple JSP page would also be impractical. I looked at the health check strategy for the approved Docker container in the uPortal-start project but it would not work for this.
Additional context
I'm only familiar with AWS, but a health check is a common need for load balancers in general. It seems this would be beneficial for others who want to deploy a cluster of Tomcat servers running uPortal, hosted on their own servers or on cloud servers. The health check facilitates automatically spinning up new servers if there is a problem with an existing one, simplifying administration of the servers.

Added in #1333, will be a part of uPortal 5.3.0


chore: multisig pallet name should not be CamelCase

Signed-off-by: Gregory Hill<EMAIL_ADDRESS>

Storage value keys are derived from the pallet name (+ field name), so did you check that there are no storage items we need to migrate?

Storage value keys are derived from the pallet name (+ field name), so did you check that there are no storage items we need to migrate?

There are two storage items (Multisigs and Calls) both are cleared here on execution. So providing that there are no ongoing calls we should be okay to change the pallet name without a migration.


Disabled Dark Reader : Issue 1

sure mate, well deserved. sorry, my bad for not assigning

next time you mention the issue name, mention them with a #. Like #6

!bounty 30


iOS not supported in the podspec

When trying to use the BlueRSA pod for iOS I get the following error:
The platform of the target `CocoapodsTest` (iOS 12.0) is not compatible with `BlueRSA (1.0.17)`, which does not support `ios`

when comparing the podspec of BlueRSA to BlueCryptor I saw that:
s.ios.deployment_target = "10.0"

Was missing. In the readme it states the BlueRSA runs on iOS 10 or higher so I would expect this to work.
There is not a reference to the BlueRSA pod but I assume it is intended to support this?

+1

for now you can use
pod 'BlueRSA', :git => 'https://github.com/peterpaulis/BlueRSA.git'

Fixed in version 1.0.19.

Need to provide a framework target.  Re-opening.

Fixed in version 1.0.20.

for now you can use
pod 'BlueRSA', :git => 'https://github.com/peterpaulis/BlueRSA.git'

We can't update our minimum deployment target yet, so this is what I did for now. Thanks for this!


It would be also nice for construction to automatically go through each step and take your mats/tools

construction menu needs cleanup tbh realistically the only things that are being made are walls, airlocks, tables, chairs, crates, pipes, spears, and shotguns like realistically who is making a jonkbot or bone armor


Validate tokens can be cancelled

These components use the cancellation token to clean up the resources they provide. We expect all callers to provide a token that will be cancelled at some point.
This change adds validation that the tokens are actually cancelable, protecting against the case that a caller indavertently passes CancellationToken.None or default(CancellationToken).
Microsoft Reviewers: Open in CodeFlow

/azp run


⚠ Roblox Devforum has degraded performance

In 49e3fd3, Roblox Devforum (https://devforum.roblox.com) experienced degraded performance:

HTTP code: 200
Response time: 1993 ms

Resolved: Roblox Devforum performance has improved in 100e583 after 12 minutes.


⚠ ClamAV has degraded performance

In b5e8cd5, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 52 ms

Resolved: ClamAV performance has improved in b0a857d.


Allow running PS nodes on spark driver

My understanding is that the PS nodes are started on one of the spark executors. This could potentially waste the GPU occupied by the PS node executor. It would be nice if one can start the PS node on the driver (in client mode.)
I have submitted a PR https://github.com/yahoo/TensorFlowOnSpark/pull/183

Sorry, I've been in a conference this past week...
For Hadoop/YARN installations, client mode means that the driver is running on the Hadoop gateways, which are shared across all grid users.  For this reason, we generally don't recommend running heavy processes in client mode within our clusters, since it only takes a few "abusers" to effectively deny service to others.  Also, in cluster mode, it's fairly simple to request more than one PS node (albeit on GPU boxes at the moment), whereas this seems to just run multiple PS nodes as threads.  And, finally, have you seen any issues with running the GPU version of TF (required by executors) on a client/gateway w/o CUDA drivers?

It could be abused but one with access to the hadoop master can write any codes to abuse it. That's why this feature should be controlled by an option and is off by default. I think the PS nodes are actually not heavy weight process? (though I couldn't find much details about exactly what it will do and its performance characteristics.)
In environment such as AWS EMR, I can configure the master as a regular non-GPU instance and the slave nodes are GPU instances. I tried to configure more executors than the number of slaves but they will then waiting for GPU forever.
(Not sure what you mean by "have you seen any issues with running the GPU version of TF (required by executors) on a client/gateway w/o CUDA drivers?" I think TF would fall back to CPU automatically? But in my above config, I would configure the master as a non-GPU host.)

I guess the difference is that in cluster mode, if you abuse the master/driver, only your container is affected, whereas in client mode, if you abuse the driver/gateway, then other hadoop users can be affected.
As for the last bit, for TF, you generally need to install either the CPU version or the GPU version (compiled against CUDA) for your env/hardware.   So, for instance, if you run the GPU version of TF on a non-GPU machine, you usually get errors like libcuda.so or libcudnn.so is missing.  So, I'm curious if this is an issue for the PS node in this setup.  (It's entirely possible that it's not an issue, since I haven't tried this out yet).

Moving this discussion to the PR


How to remove the _version field from my schema and code?

Amplify CLI Version
12.12.2
Question
A looooot time ago we had DataStore running within our app until I ripped it out and burned it with fire. One of the left overs of that is I had _version fields on every model type and my mutations all needed to include the latest version every time.
Lately I've been questioning about how we can strip out the _version fields. As far as I know without DataStore being in the mix nothing else uses them of note but AppSync will honour the mutations only if the latest _version is included.
How can I go about safely removing the _version field from all my models and telling AppSync to not worry about it in my mutations?

Found this doc https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html which mentions the "tombstone" fields we use for deleted content (I like being able to pull back deleted content if needed).
Wonder if there is a way to keep that without needing the _version field?
Could be I could live without the _delete field too, just like that safety net!
Is it as simple as just unchecking this toggle per table? I suspect its not...

Hey @PeteDuncanson, thanks for raising this. You may try amplify update api and select disable conflict detection and see if it resolves your issue. Please test in the lower env before trying it in production environment.

To add onto @AnilMaktala's answer, if you're working on a Gen 1 app I would recommend against making changes to Amplify generated/managed resources in the console. Best to make those changes using the Amplify CLI to avoid stack drift which can get quite difficult to resolve depending on the changes made.