Child Transform Components not moving relative to parent's one.

Child Transform Components not moving relative to parent's one if parent's transform was calculated before ( UpdateGlobalTransformationCache() was called on parent first, then on child).
To replicate use following:
tc2.SetParent(&tc1);
    tc1.SetLocalTranslation(v1);
    tc1.GetGlobalTransformationMatrix();
    REQUIRE(tc2.GetGlobalTranslation() == v1);
    REQUIRE(tc2.GetGlobalTransformationMatrix().Data[3] == v1.X);

Workz!!
Thanks!


Fix 'multiple definition' linker error

When spdlog_setup is included in multiple files the functions is_valid_char() and render() in the file template_impl.h cause a multiple definition linker error.

/test

/test

Thanks for the PR for the linking fix!
No problems with it, but just to make the code formatting more seamless (and objective), I have added https://github.com/guangie88/spdlog_setup/blob/master/run-clang-format.sh (this branch is merged with the change), so you can just run ./run-clang-format.sh (hopefully you are on Linux / OSX) and commit the formatting changes to fix the issue.

/test


Adding support for MediaMTX

Hi, would it be possible to add support for MediaMTX, a free and opensource multi-purpose and format streaming server
https://github.com/aler9/mediamtx
Thanks a lot

Does it have a way to read streams and see the bitrate?

I sadly don't think so
The API is documented here https://aler9.github.io/mediamtx/
but after a quick look, all endpoint we need are here, they just dont return the bitrate

Hi @tompointexe ,
Looks like it's possible to grab the bytesReceived, I'll have to calculate the bitrate from that.


TODO - Mapping: Verify condition code annotations

Set-up meeting to get condition code annotations verified.

Redundant.


SPARKC-91: Fixes in metrics

enabling/disabling Codahale metrics via metric.properties file
changed locking to LongAdder in output metrics (dozens times faster)
removed one useless metric
added several unit tests and some integration tests
updated docs and changes

Code style: in multiple places, lines are too long. We should try to stay within 100-105 chars (GitHub width), unless we have a really valid reason to exceed that.

I haven't finished reviewing yet, but this ticket certainly needs better documentation at the class level. It is hard to analyze the dependency graph, as often mutable shared state is involved and dependencies are hidden. You need to document role of each class - what is its responsibility and why it is there.

Many links in ScalaDoc are not found because of a limitation of ScalaDoc: https://issues.scala-lang.org/browse/SI-8734

+1
Overall looks good. You can fix the things I found and move to testing / merging.


Feature: Implement landing page, travel info, and about page with navigation.

Features added:
Landing Page, About Page, Travel Info Page.
Components added:
Header, Footer

travelinfoPage.php line 22


x1162 (core)—As ARA (Harriet) I want the dual index operation to use bio state "Library pre-clean" instead of Library, to align the with the correct biological state

Done in sql repo: https://github.com/sanger/stan-sql/commit/7db6ea7e32732c587ca073b907726e2be2f111bf


The hands on tutorial on Katacoda isn't working correctly

Myself and a teammate tried installing version 1.4 a kubeinvaders.  In both our cases we could not switch between namespaces.  We just got switched to namespace undefined when trying to switch namespaces.  We both correctly configured target_namespace to point to one or more namespaces already ready with multiple pods.  Therefore we ran the hands on demo on katacoda and had the same issue.  You may want to fix the walk through and would be interested in how it was resolved since running into the same issue when installing it.  I installed the legacy version and that one seems to more properly set up the target namespaces as I can switch between the target namespaces configured and do not get undefined namespace.  However with Legacy version I still do not see the pods in the namespace to shoot at

Hi @mel-splunk Thank you very much for using KubeInvaders. I tried right now installing whith this params:
helm install kubeinvaders ./helm-charts/kubeinvaders
--set image.tag=v1.4
--namespace kubeinvaders
--set service.type=NodePort
--set ingress.enabled=false
--set target_namespace="default,more-apps"
--set ingress.hostName=2886795302-30016-ollie08.environments.katacoda.com
It works correctly. Can you please try using my example and changing your ingress.hostName? Please do not forget the fix for NodePort described into the scenario.
Regards,
Eugenio

Thanks @mel-splunk!
I just tried the scenario without modifications and I was able to flip between namespaces and saw the pods and not seeing "undefined" namespace.  I'm switching between the two namespaces just fine, with no undefined namespace.  You must add an escape slash in the set command before each comma that separates the namespaces.  No whitespace.  Other than that, I'm not clear on your specific reproducible steps.
@lucky-sideburn
Based on your proposed changes:

The image.tag=v1.4 is the current default for the chart so that is not needed.
The ingress hostname is different for each Katacoda instance, and it should not be hardcoded, the numbers there were for your specific ephemeral instance. The actual values are calculated when the instance starts using this template:  --set ingress.hostName=[[HOST_SUBDOMAIN]]-30016-[[KATACODA_HOST]].environments.katacoda.com
If you remove the slash in the namespace list setting:

--set target_namespace="default,more-apps"
The chart will not install with this error:

Error: failed parsing --set data: key "more-apps" has no value

So it must be with escaping slash before comma(s):
--set target_namespace="default\,more-apps"
This is an old known issue with helm --set parameters described here.
This points to the real underlying issue. In the chart settings, the namespaces list should be an array type, not a string type. See this article in the Arrays section.
I just bumped the Katacoda instance from K8s v 1.18 to 1.21 and updated the game plan keys in the text.

Hi @javajon thank you!

@mel-splunk can I close the issue?

@mel-splunk - are you still having an issue? I didn't fix anything related to your finding as I was not able to reproduce what you reported. I tried to clarify the settings. If you are continuing to experience a problem just provide some exact steps to reproduce.

Hi @javajon
Here are steps that I am following and getting the error @mel-splunk mentioned:

kubectl version --short && \ kubectl get componentstatus && \ kubectl get nodes && \ kubectl cluster-info

Output:
Client Version: v1.14.0
Server Version: v1.14.0
NAME                 STATUS    MESSAGE             ERROR
controller-manager   Healthy   ok
scheduler            Healthy   ok
etcd-0               Healthy   {"health":"true"}
NAME           STATUS   ROLES    AGE   VERSION
controlplane   Ready    master   63m   v1.14.0
node01         Ready    <none>   62m   v1.14.0
Kubernetes master is running at https://<IP_ADDRESS>:6443
KubeDNS is running at https://<IP_ADDRESS>:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

helm version --short
Output: v3.1.2+gd878d4d

kubectl create namespace kubeinvaders

git clone https://github.com/lucky-sideburn/KubeInvaders && cd KubeInvaders

helm install kubeinvaders ./helm-charts/kubeinvaders \ --version 0.1.1 \ --namespace kubeinvaders \ --set service.type=NodePort \ --set ingress.enabled=false \ --set target_namespace="default\,more-apps" \ --set route_host=2886795301-30016-ollie09.environments.katacoda.com

kubectl patch service kubeinvaders -n kubeinvaders --type='json' --patch='[{"op": "replace", "path": "/spec/ports/0/nodePort", "value":30016}]'

kubectl create deployment nginx --image=nginx

kubectl scale deployment/nginx --replicas=8

kubectl create namespace more-apps

kubectl create deployment ghost --namespace more-apps --image=ghost:3.11.0-alpine

kubectl scale deployment/ghost --namespace more-apps --replicas=4

kubectl label deployment,pod app-purpose=chaos -l app=nginx --namespace default

kubectl label deployment,pod app-purpose=chaos -l app=ghost --namespace more-apps

watch kubectl get deployments,pods --all-namespaces -l app-purpose=chaos

output:
Every 2.0s: kubectl get deployments,pods --all-namespaces -l app-purpose=chaos                                    Wed Jul  7 17:06:29 2021

NAMESPACE   NAME                          READY   UP-TO-DATE   AVAILABLE   AGE
default     deployment.extensions/nginx   8/8     8            8           7m23s
more-apps   deployment.extensions/ghost   4/4     4            4           6m53s

NAMESPACE   NAME                         READY   STATUS    RESTARTS   AGE
default     pod/nginx-65f88748fd-6w5dv   1/1     Running   0          7m12s
default     pod/nginx-65f88748fd-cx5xl   1/1     Running   0          7m12s
default     pod/nginx-65f88748fd-fzfz8   1/1     Running   0          7m12s
default     pod/nginx-65f88748fd-gh59g   1/1     Running   0          7m12s
default     pod/nginx-65f88748fd-h4k4g   1/1     Running   0          7m12s
default     pod/nginx-65f88748fd-ntt42   1/1     Running   0          7m23s
default     pod/nginx-65f88748fd-tr2fx   1/1     Running   0          7m12s
default     pod/nginx-65f88748fd-wvd2s   1/1     Running   0          7m12s
more-apps   pod/ghost-577f44b678-kv7td   1/1     Running   0          6m53s
more-apps   pod/ghost-577f44b678-m4q2m   1/1     Running   0          6m44s
more-apps   pod/ghost-577f44b678-rfb84   1/1     Running   0          6m44s
more-apps   pod/ghost-577f44b678-wstqb   1/1     Running   0          6m44s

Error:

Hi @maulikp-splunk I am sorry I found the problem. It is route_host that I don't use anymore... I will fix it

@maulikp-splunk can you please try with ingress.hostName insted of route_host?

Thanks @lucky-sideburn ! Replacing route_host with ingress.hostName during helm installation worked!

I am also seeing the same issue of undefined namespaces when installing on OpenShift 4.6
helm install kubeinvaders --set target_namespace="default\,bookinfo" \
-n kubeinvaders kubeinvaders/kubeinvaders --set ingress.hostName=subdomain.domain.com --set image.tag=v1.4

Hi @SionArtingstall can you please show to me from the web developer tools for your browser which are the http requests that are failing?
Thanks
E

@lucky-sideburn - I am trying to run this demo on my docker-desktop kubernetes instance and seems like it's failing because SSL API calls are failing due to cert error (ERR_CERT_AUTHORITY_INVALID). Is there anyway that I can update kubeinvaders.js to ignore SSL errors?

@lucky-sideburn looks like a cors issue
kubeinvaders.js:199 GET https://kuebinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud/kube/nodes net::ERR_FAILED
getNodes @ kubeinvaders.js:199
getKubeItems @ kubeinvaders.js:207
kubeinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud/:1 Access to XMLHttpRequest at 'https://kuebinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud/kube/pods?action=list&namespace=undefined' from origin 'https://kubeinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
kubeinvaders.js:180 GET https://kuebinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud/kube/pods?action=list&namespace=undefined net::ERR_FAILED
getPods @ kubeinvaders.js:180
getKubeItems @ kubeinvaders.js:208
kubeinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud/:1 Access to XMLHttpRequest at 'https://kuebinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud/kube/nodes' from origin 'https://kubeinvaders-kubeinvaders.redhaterchaos-ecf58268eb10995f067698dffc82d2a7-0000.eu-gb.containers.appdomain.cloud' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Please try with the latest helm chart. Below how to proceed.
When you use K8s with Ingress Controller
helm repo add kubeinvaders https://lucky-sideburn.github.io/helm-charts/
kubectl create namespace kubeinvaders
helm install kubeinvaders --set-string target_namespace="namespace1\,namespace2" \
-n kubeinvaders kubeinvaders/kubeinvaders --set ingress.hostName=kubeinvaders.io --set image.tag=v1.7

@SionArtingstall I have no tested yet KubeInvaders on Openshift 4.x :) Please try with this new version and check if there is some url different from  subdomain.domain.com that the game calls. From the logs you sent me it seems ok, the host are the same. Check also https://docs.openshift.com/container-platform/4.7/security/allowing-javascript-access-api-server.html
@maulikp-splunk you should to add an exception for the self signed certificate exposed by the game or add you certificate into the ingress (you can customize the values.yaml for example writing attributes into the tls section of the ingress definition). I am using firefox and I have no problems


Fixing nested configuration problems

I encountered an issue in a PR after checking the comments from @deepfire - https://github.com/input-output-hk/cardano-shell/pull/232#pullrequestreview-265450795
It turns out that there is an issue when you want to override nested configuration from CLI.
For example, when you have a structure like this:
data FullConfiguration = FullConfiguration
    { version   :: !Int
    , subConfig :: !(Last SubConfiguration)
    } deriving (Eq, Show, Semigroup, Monoid)

data SubConfiguration = SubConfiguration
    { name      :: !(Last Text)
    , age       :: !(Last Int)
    } deriving (Eq, Show, Semigroup, Monoid)

If you override the field name then the field age is overridden with the value Nothing since the top level SubConfiguration overrides both fields.
Some people suggested the use of mempty here - https://github.com/input-output-hk/cardano-node/pull/60#discussion_r307697007 which is nice but it's also kind of tricky for me since I can't easily reason about the code anymore but have to write it down and go through it.
A simpler way is to flatten the configuration to have only a single level and then it all works correctly!

Concretely, my suggestion is this:
- subConfig :: !(Last SubConfiguration)
+ subConfig :: !SubConfiguration

All the monoid derivation still works fine, because SubConfiguration is a monoid (a product of monoids). But now the monoid operation "descends" into the nested structure!

Additional example found here - https://github.com/haskell/cabal/blob/master/cabal-install/Distribution/Client/ProjectConfig/Types.hs
Switching to the pattern from @dcoutts using monoidal structures.


Add dockerfile

Here's the dockerfile

Thank you for your contribution! Seems like this pull request conflicts with #8, so I close this one.

Awesome!


UTF-8 decoding in streamlit

Premise: I'm not a developer and I can't code
I've noticed that Streamlit doesn't correctly decode the video.json characters, eg. "è" gets displayed as "Ã¨". This behavior results in both subtitles and pronunciation being wrong in the generated video.
I've managed to fix this by changing the following code in app.py line 199:
Old code:
 st.write("JSON file with the videos")
        video_json = st.json(json.load(open("video.json")), expanded=False)

New code:
st.write("JSON file with the videos")
        with open('video.json', encoding='utf-8') as fh:
            video_json = st.json(json.load(fh), expanded=False)

Thought of sharing in case you wanted to include this in a official release and/or find a fancier way to solve the problem.

Hi,
Thx for the fix. Since you already changed the line causing the issue you can open a pull request forking the repository and applying your fix. In this way I can automatically merge your code updates into the main branch of the production code.
Really appreciate this kind of fixes (even for small issues like this)
Thanks!

Matteo


ADD: main.py

https://www.youtube.com/watch?v=CRlGDDprdOQ&t=635s&ab_channel=Academind
On Sat, Apr 3, 2021 at 3:50 PM Bidisha @.***> wrote:

@.**** approved this pull request.
/approved
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bidisha-majhi/Cryptography-Project/pull/1#pullrequestreview-627447882,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMOMI3LBTUQQOISWIITDRETTG3TWRANCNFSM42KC4JMA
.


Unsafe declaration of resolve function in Promise constructor

TypeScript Version<EMAIL_ADDRESS>
Search Terms:
Promise, resolve
Code
function f(): Promise<number> {
    return new Promise((resolve) => {
        resolve();
    });
}

tsconfig.json:
{
    "compilerOptions": {
        "module": "commonjs",
        "moduleResolution": "node",
        "target": "es2017",
        "lib": ["es2017"],
        "alwaysStrict": true,
        "noEmitOnError": true,
        "pretty": true,
        "strict": true
    }
}

Expected behavior:
Compile error: undefined is not assignable to number.
Actual behavior:
No errors.
Playground Link: http://www.typescriptlang.org/play/index.html#src=function f()%3A Promise<number> {
    return new Promise((resolve) %3D> {
        resolve()%3B
    })%3B%0A%7D
Looks like this happens, because resolve() function in Promise executor takes optional argument https://github.com/Microsoft/TypeScript/blob/b3edc8f9f4d9cf4203c4c4493e4f0f3dc96c845d/lib/lib.es2015.promise.d.ts#L33
The provided example is correctly checked by Flow: https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVUCuA7AxgFwEs5swoAKASgC4wAFAJzgFtCBnAUwB5tNmAjDgwB8YAN6owUsAw75MDUtg5JGLdh3LlZbODABuHSmAC8oidMsyOug5soBuSdIC+j1C9RA

I trying to change declaration (i.e. make value parameter of resolve function is required) and the following code stop working:
function bar(): Promise<void> {
    return new Promise((resolve) => {
        resolve(); // Expected 1 arguments, but got 0.
    });
}

In Flow this code also works without error https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVUCuA7AxgFwEs5swAjAQwCcAKASgC4wAFKuAW0IGcBTAHgBucQgBMAfGADeqMLLBUe+TFVLYeSVh248aNBVzgwBPOmAC8E6XOvyeBozroBuGXIC+z1G6A

We have already tried to address this, but unfortunately this resulted in either Promise no longer being extensible or other breaks.

@mhegazy @rbuckton Can you provide more detailed description why this is Design Limitation? From my point of view need ad-hoc solution to allow call resolve() without undefined argument for Promise<void> type.

@ikokostya https://github.com/Microsoft/TypeScript/pull/22772#issuecomment-382831962 goes into a fair bit of detail on thi


Add a "Deploy to DigitalOcean" Button

The Deploy to DigitalOcean Button allows users to launch an application onto App Platform. It can be embedded in the README file, allowing users who are browsing your repository to deploy project in one click.

Interested to contribute in this issue.


shouldDisableDate does not work when using "Year picker"

When using DatePicker to select an year shouldDisableDate does not work.
<DatePicker
    views={['year']}
    shouldDisableDate={day => true}

still displays all years from 1900 to 20100

If you want to disable years you must use minDate or maxDate.

Because of performance issues. If we will run 365 times the function for each day :(

If you want to disable years you must use minDate or maxDate.

But this way is not possible to have as options [2000, 2005, 2010, 2015] for example.

Because of performance issues. If we will run 365 times the function for each day :(

What about passing as prop the valid dates instead?

Please provide a full reproduction test case with the latest version (v4.0.0-alpha.5 as we are writing). This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

I understand the issue. We need to consider a proper approach shouldDisableDate can disable any day, but year and month view will not reflect the disabled state.

Actually the main reason for not adding this behavior is performance. Because in order to make sure that we need to disable the year we need to call this function 365 times. This is too slow, we can see it on our current behavior for an autoselecting closest enabled date. So in order to show the list of 100 years in year selection, we need to run this function 365 000 times.
I can propose the following algorithm to speedup the checking

Break the year in 2 parts
Check the first and last day of each part
If all days disabled – break each of part in 2 parts
Go to 2

This can help to speedup checking years, but will not help if there is only one day in year enabled. We need to make possible to choose this year 🤯
Only one thing I can imagine is providing shouldDisableYear function, but another problem that these 2 functions are not linked so it will be possible to make different logic for them.

+1 for a shouldDisableYear prop.

What about disabling months within a year for year-month pickers?

The same. Well need also shouldDisableMonth`

@dmtrKovalenko Maybe we should have this API?
shouldDisableDate?: (date, view?: 'day' | 'month' | 'year');

I think it will only make it easier to lost that you will disable a whole year by disabling the  just the first day.
Moreover it will introduce a weird and easy-to-loose breaking change

I'm using @material-ui/pickers 3.2.10 and I do not see shouldDisableYear or shouldDisableMonth in my DatePickerProps definition. Am I doing something wrong or perhaps have the TS definitions not been updated?


New version: Prometheus.WMIExporter version 0.16.0

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

/azp run


"Role of the desktop app" blog post

@seanyesmunt commented on Mon Aug 06 2018

@seanyesmunt You gonna write this Sean? I'd love to be an editor

Just saw your comment @jamesbiller. Yes I've done a little bit on this so far. Planning on finish a rough draft this week. I'll let you know when it's done!

@jamesbiller I created the PR with a rough draft.
https://github.com/lbryio/lbry.io/pull/745


weird PPL result with the branch fastest-inference-4bit

Amazing 4bit inference speed!
I happened to see a new branch fastest-inference-4bit, so I did a test:

LLaMA-13B
branch
Bits
group-size
memory(MiB)
PPL(c4)
Median(s/token)

FP16
fastest-inference-4bit
16
-
26634
6.96
0.0383

GPTQ
triton
4
128
8590
6.97
0.0551

GPTQ
fastest-inference-4bit
4
128
8699
19069
0.0344

But why the value of PPL is so large?

update result:

The act-order parameter is consistent in build compressed model and the benchmark
with groupsize = -1 and act-order = false:

LLaMA-13B
branch
Bits
group-size
memory(MiB)
PPL(c4)
Median(s/token)
act-order
speed up

FP16
fastest-inference-4bit
16
-
26634
6.96
0.0383
-
1x

GPTQ
triton
4
128
8590
6.97
0.0551
-
0.69x

GPTQ
fastest-inference-4bit
4
128
8699
6.97
0.0429
true
0.89x

GPTQ
fastest-inference-4bit
4
128
8699
7.03
0.0287
false
1.33x

GPTQ
fastest-inference-4bit
4
-1
8448
7.12
0.0284
false
1.44x

Thanks, I'll try it

Updated results and found that act-order does have an impact on performance

@alanxmay  Can you also do a perf test with groupsize -1 + act-order=false? There may be more speedup with no group-size.  It will be good to know so others can see if they want speed vs quality vs memory usage.

@diegomontoya Ok, I will do a test later

@diegomontoya Done and saw a slight performance improvement

So act order without groupsize won't work like before?

@alanxmay Maybe a noob question but qhy is it that GPTQ is slower (.89x) than FP16? With lower memory consumption, I would have figured it'd be much faster.

@joshlevy89 I guess inference speed is more closely related to computational optimization. The GPTQ algorithm is only used to improve the accuracy of the quant model.

@joshlevy89  I did not yet find the time to look at the GPTQ algorithm in depth, but from what I understand it compresses the weights (rather obviously). At inference time, some additional computation will have to be performed to retrieve the (near) original information. Hence, the slowdown.

@Dhaladom thanks! it makes sense to me that there'd be some additional overhead...on the other hand, I would have expected that the benefits of working with 4bit vs 16bit would far outweigh that. Guess not though!


Element observation styling not accepting number datatype

I'm submitting a bug report

Library Version:
1.0.6

Browser:
all

Language:
all

Current behavior:
@khenderick https://github.com/aurelia/templating-resources/issues/251#issuecomment-250991098
Numbers aren't supported in style binding.
The following code
css.bind="{opacity: !output.inUse ? 0.65 : 1}"
Results in the error
TypeError: value.indexOf is not a function
Expected/desired behavior:
Styling should support numbers as well as strings.
The specified opacity number should be applied to the element.

Technically, all values in the current CSSOM are strings, I believe. @jdanyow Can you check on this?

@z-brooks I think this might be a quick fix here: https://github.com/aurelia/binding/blob/master/src/element-observation.js#L66

@jdanyow There's already an open pull request.

Heads up, this merged PR doesn't actually always fix the problem. I encountered this same issue and for null/undefined values, this will fail as indexOf does not exist. The better way seems to check if the value exists and then do the check.

Can you PR the fix? Ping @jdanyow so he can review and we can get a patch release out.


OpenGL vertex buffer setup/rendering problem

The problem is here:
https://github.com/bkaradzic/bgfx/blob/master/src/renderer_gl.cpp#L4784
If there are two consecutive drawcalls with the same vertex buffer but the first has nonzero m_startVertex and the next has a zero m_startVertex at the second call the program.bindAttributes isn't called with zero m_startVertex, so the second call uses wrong vertex data.
this part of the code ( https://github.com/bkaradzic/bgfx/blob/master/src/renderer_gl.cpp#L4833 ) should run if baseVertex != draw.m_startVertex.
Here is a repro(modified cubes.cpp) : https://gist.github.com/attilaz/25e71ebda916dd2732ae
Only the left-bottom cube should me missing. It works well on d3d9 and d3d11.

There is bug here (allocating buffer without copying anything inside):
https://gist.github.com/attilaz/25e71ebda916dd2732ae#file-gistfile1-txt-L97
Need to check why this works with DX11 and DX9.

Ok both DX9 and DX11 don't display that cube either.

Yeah, possibly I oversimplified the repro. But on d3d9 and d3d11 bgfx uses 'vbh2' for only one cube(as it is expected), on OpenGL it uses for all cubes.
https://gist.github.com/attilaz/25e71ebda916dd2732ae#file-gistfile1-txt-L186

But you just upload garbage into vbh2.
Change line 97 from:
 bgfx::alloc(sizeof(s_cubeVertices))

to:
 bgfx::makeRef(s_cubeVertices, sizeof(s_cubeVertices) )

And it will start working.

Also if you have this problem in more complex case, try disabling VAO support. Just make this 'false':
https://github.com/bkaradzic/bgfx/blob/master/src/renderer_gl.cpp#L1226

Here is a better repro: https://gist.github.com/attilaz/f079dd520b6eb1681f9e
If you update both dynamic vb with the same date you cannot see the problem.
VAO disable solves the problem.

That fixed the problem in our game. Thanks.


statsd and prometheus Metrics with route tags

kong plugin statsd with routes or service tags?

I'm not sure to understand your issue.  Is it a specific problem when associating the plugin with a route or service?  or is it a feature request to export route and service names as metrics?

prometheus metrics 指标中现在有基于service和route的,是否可以带上tag呢

I'm not sure to understand your issue. Is it a specific problem when associating the plugin with a route or service? or is it a feature request to export route and service names as metrics?

I think he is asking for this: https://github.com/Kong/kong-plugin-prometheus/issues/126

closing because lack of feedback


Engine wide way to save states.

Proposed Features
The engine currently allows for developers to do basic save systems, but this should be integrated into the engine to allow this to be more seamless throughout the engine.

Will not be as urgent once #22 is merged as it adds support for detecting game suspension and resuming (most important for UWP). So this is closed.


fix(genycloud): update Genymotion SaaS URLs

Description
:wave: Hi, I'm Gilles, Genymotion SaaS frontend developer.

there is no issue on your side, only on Genymotion SaaS, where old links to instances do not redirect to new URL at the moment. Will be fixed soon.
Do you want me to open an issue on your repository anyway?

Since January 25th, Genymotion SaaS interface has been updated.
This update changed many URLs including direct links to instances and
recipes.
The new webapp provides automatic redirect from legacy URLs to the new
ones but will only support it temporarily.
This PR updates links to Genymotion SaaS instances and recipes.
See: https://cloud.geny.io/update/22-01_1

For features/enhancements:

[ ] I have added/updated the relevant references in the documentation files.

For API changes:

[ ] I have made the necessary changes in the types index file.

cc @thomascarpentier :slightly_smiling_face:

I assume we can close this, right? @d4vidi
I've merged https://github.com/wix/Detox/pull/3211


make direnv output buffer more discoverable

i used a hidden buffer because it seems the right approach for ‘unintrusive’ buffers, but in practice it's just causing confusion, since people actually do care about that buffer quite often.

i'd happily accept a pull request that removes the space and updates the readme :wink:

https://github.com/wbolster/emacs-direnv/pull/34#issuecomment-471036284

closed via #38


Error: EPERM: operation not permitted, lstat

"gatsby-source-strapi": "^1.0.2",

Thanks for your interest in this project. This plugin is moving into the Gatsby User Collective and this repo will be archived. Please open an issue in that repository, submit a PR if you'd like to see this implemented, or join us on Discord if you have questions!


Doesnt seem to generate a config for me?

Cant generate a config, was able to for my old modpack on the same version, so I copy and pasted that config and disabled sticks and pebbles, for them to just keep spawning in the new modpack?

I need to cutback on the sticks, and so forth, as it contributes to worldgen too much


Pass extraParameters to editable components. Closes #200

Looking into creating a test now.

Current coverage is 94.60% (diff: 100%)

Merging #201 into master will not change coverage

@@             master       #201   diff @@
==========================================
  Files            72         72
  Lines          1852       1852
  Methods         433        433
  Messages          0          0
  Branches        161        161
==========================================
  Hits           1752       1752
  Misses          100        100
  Partials          0          0

Powered by Codecov. Last update 9c85991...0de3519

I'm not familiar with CodeCov but it looks like it wants the tests to be tested :)

Yeah, looking good.
I may have to tweak the coverage setup to exclude tests. But that's my problem.
I'll try to get this and the other one merged early next week while getting that Redux example done. Thanks!


Hyperkit driver is not supported on Apple M1 computers

Is it possible to still run the web version of Karavan on minikube?

Does qemu work?

On Apple Mx I use --driver=docker


class activation map

Hello, after reading through your dissertation, I saw the class activation map, but I do n’t know how to get it, can you share this visual code? Thank you very much

Hello,
i need the activation map code too if it is possible please.
thank you

Hello, I try te reproduce the paper results and visualize the activation maps. Can you share your visualization code please ? Thank you


Remove functions to create new nodes from context?

@esteve proposed to remove the Context::create_node() function and its siblings, since the other major client libraries don't have such a function.

Duplicate of #161


Add inframap as a hook to auto-update diagrams from HCL

https://github.com/cycloidio/inframap
It can work from HCL so no need to have *.tfstate or perform a terrform plan.
Happy to contribute; any good starting points/references?

Hi @dennisroche
We can start from this section
Clone this repo, add your script, and try to debug it on any other repo.
If you need any help - feel free to ask. (I will be on vacation next 2 weeks, but after that, I will help as I can)


Go Support

Hi guys,
I've tried to add support for Golang but maybe I am doing something wrong.
I've installed the go-langserver but it looks like is not working.
Here is my config:
{
  "clients":
  {
    "golsp":
    {
      "command": ["go-langserver"],
      "scopes": ["source.go"],
      "syntaxes": ["Packages/Go/Go.sublime-syntax"],
      "languageId": "go"
    }
  },
}

Thanks,
George

Does running the command LSP: Restart Servers work?

Hi George,
I pasted your settings in to my config, and the language server started up right away, so those appear to be correct!
Could you update your LSP Settings to set "log_debug": true and share the contents of your console on a fresh start after opening the go file?
Does running go-langserver on the command line work?

Hi @tomv564 and @rwols,
Thanks for your comments!
I've managed to solved the problem. Actually there was a conflict between the LSP package and the GoSublime package.
I've attached a screenshot too with the problem resolved!
Thank you very much for the amazing plugin!
George
ps: Shall I open a pull request including the Go config or you guys plan to do it?

Great work!
A PR adding this client to docs/index.md and the default sublime-settings would be a good service to future go users.
Feel free to close the issue, and please create a new issue if you discover further problems.

I've just tried to start using LSP with Go support, but I am not getting anything except the default Sublime symbol completion. I've enabled debug mode and it seems go-langserver is reporting errors?
LSP: notify: textDocument/didChange
LSP: checking for clients on on  /Users/justin/src/go/src/github.com/justinfx/gofileseq
LSP: request 2: textDocument/hover
LSP: got json:  {"id":2,"error":{"code":0,"message":"failed to find doc object for /usr/local/Cellar/go/1.9/libexec/src/regexp/regexp.go:237:6","data":null},"jsonrpc":"2.0"}
LSP: got error:  {'data': None, 'code': 0, 'message': 'failed to find doc object for /usr/local/Cellar/go/1.9/libexec/src/regexp/regexp.go:237:6'}

Using this on a go 1.9 install, via homebrew on OSX Sierra. Any idea why this doesn't work? There doesn't seem to be much else in the way of available settings that I could change.

Thanks for reporting!
We have the same configuration (go 1.9 via homebrew on Sierra, with go-langserver installed via go get), so we must be able to get hover and go-to-definition working at least.
I opened regexp.go and found the same results, MustCompile doesn't have hover results, but quote and strconv.CanBackquote do.
It could be this issue: https://github.com/sourcegraph/go-langserver/issues/174
Completion and diagnostics are not supported yet by this server (see http://langserver.org/#implementations-server).

[ ] Document this as users likely consider these critical features.

The language server reported some "position out of bounds" errors after some edits. Would be ideal if someone working with this language server volunteered to narrow down a repro.

Oh I see now. It is a limitation of the Go language server. I'm new to LSP so I didn't realize the separation until reading those links.

I added a note about this, referring users to the GoSublime package instead. I've found Sourcegraph pretty receptive about contributions to their servers, so it would be awesome if someone helped them out with these features!


update SI_LULC_pipeline example due to changed import

Codecov Report
Patch and project coverage have no change.

Comparison is base (1d5cd9c) 92.41% compared to head (1d5cd9c) 92.41%.
 Consider uploading reports for the commit 7d89ee5 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #747   +/-   ##
========================================
  Coverage    92.41%   92.41%
========================================
  Files           41       41
  Lines         4270     4270
========================================
  Hits          3946     3946
  Misses         324      324

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


Windows 7

I'm not sure if MarkdownPreview is currently intended to support Windows 7, but I would like to report that I did manage to get this working in Windows 7, but I had to manually edit the registry. I had initially run the install.bat months ago, and after many restarts, it never took effect. Today, I really wanted to see some markdown files in the explorer preview pane, so I went digging in regedit and found HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\MarkdownPreview.MarkdownPreviewHandler which is referenced via CLSID within HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\md.1 in the registry and copied the ...\md.1\ShellEx into the registry keys for the markdown file extensions. I'm not sure if the CLSID values generated when the DLL is registered by ServerRegistrationManager.exe are expected to be consistent across systems, YMMV.
ApplyMarkdownPreviewHandlerToMdExts.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.md]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.md\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.md\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{c92d20dd-1eb5-3256-ac0b-33d142a28a64}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mkd]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mkd\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mkd\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{c92d20dd-1eb5-3256-ac0b-33d142a28a64}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mmd]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mmd\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mmd\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{c92d20dd-1eb5-3256-ac0b-33d142a28a64}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mdown]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mdown\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mdown\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{c92d20dd-1eb5-3256-ac0b-33d142a28a64}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.markdown]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.markdown\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.markdown\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{c92d20dd-1eb5-3256-ac0b-33d142a28a64}"

So if anyone is stubbornly still running Windows 7, like me, and can't get MarkdownPreview to show up, and is comfortable messing with the windows registry, give the above a try. (You may want to check that the CLSIDs match up, though.)
Also, it would be pretty cool, if this could be automated into the install.bat
[Edit: removed extra "m" in one of the extensions.]

Hi @BenMarolt , +1 for your perseverance!
I have abandoned this project, as I found the underlying initialization too unreliable and hard to debug.
I have switched to MS powertoys.
I you would know how to adjust the install.bat, I would gladly update it or accept a pull request.
Thanks for sharing your solution!


Test for space-after-colon-less

Addresses issue #280.

A test for that issue has been added somewhen in dev branch. Thank you 🐙


init() got an unexpected keyword argument 'use_linear_in_transformer'

I have installed stable-diffusion v2 and run following commands:
python scripts/img2img.py --prompt "A fantasy landscape, trending on artstation" --init-img test.jpeg --strength 0.8 --ckpt 768-v-ema.ckpt
but i got a error:
TypeError: init() got an unexpected keyword argument 'use_linear_in_transformer'
How to solve it?

You can try updating the version of stable-diffusion to the latest version, as this issue may have been addressed in a newer version. You can also try specifying the use_linear_in_transformer argument when calling init().
Let me know if that helps!
Got this from Clerkie (ai code debugger bot) - https://bit.ly/3EFAV8A


ISPN-16662 Stream Cache Command Docs

https://issues.redhat.com/browse/ISPN-16662

Ignore the first commit as it is coming from https://github.com/infinispan/infinispan/pull/12964

Thanks, @wburns!


Scheduling timing issue

Hi everyone, my teammates and I are having a scheduling issue with our implementation. We have 3 K_ESSENTIAL threads with different priorities.
The highest priority thread (Thigh) has the numerical priority 2.
The middle priority thread (Tmid) has the numerical priority 7.
The lowest priority thread (Tlow) has the numerical priority 12.
The only thread that is allowed to do blocking calls is Tlow since the other ones can preempt it. The threads use QP with individual queues for messages. When there are no messages, the threads wait/sleep using a semaphore.
We have a function on Tlow that wakes up Tmid by giving the semaphore and then it spins on a while loop while waiting for Tmid to finish its execution and set the flag that Tlow is waiting on. Once Tmid finishes, it goes back to wait/sleep by taking the semaphore. Thus, this should preempt Tlow once again since it is spinning.
Tlow

wakes Tmed
spins waiting for the flag from Tmed

Tmed

does work
sets the flag when done
waits on semaphore

This process should take approx 300 microseconds. When we call this function 1 time, it works perfectly and takes the mentioned time. However, if we loop 100 times this goes from an expected ~0.05 seconds execution to a ~3 seconds execution. After an exhausting investigation, we figure out that using the k_yield() before spinning on Tlow gives us the expected result. As per the scheduling documentation (Link), we should obtain the same functionality by using a semaphore. Or, is expected to use the k_yield() in this type of scenario?

Hi.
What you mean "spins waiting for the flag from Tmed"?
Is this flag is kernel object or global variable?
What is QP?  It's kernel object?
Better part of code.

Sorry, just now noticing this had been submitted here.  What you describe should definitely work, can you trim it down and submit code that exercises it?  If I had to guess, what's happening is that there is confusion about what the thread priorities are (e.g. the low priority thread might be cooperative, or as @peter-mitsis suggested in discord might have had its priority boosted by the use of k_mutex).

Hi,
@DariusBabrauskas, It is a global flag that is only controlled/modified by Tmed. Tlow only reads it spinning on a while loop.
QP is Quantum Leaps. I should have been more specific with this. The only reason why I mentioned this is because the system uses QP for its Active Objects and peripheral HSMs and the ideology of using messages to communicate between them.
@andyross, I am sorry if I should have not created the ticket. I started the conversation on Slack and I thought that I needed to create a more official request over here. I am still getting used to the open-source community. So, I am not sure what is the expected procedure for discussing encountered problems.
I will try to replicate the issue in a smaller scenario that I can upload here. If it also fails, I will share it over here; if not, I will close the ticket and take a closer look at our implementation. Thank you for your suggestion.

Creating bugs is fine!  But if you do that, you're sort of honor-bound to help us out with exerciser code, etc...  No reason not to leave this open for a bit, just keep us updated.

cc @peter-mitsis

Maybe need try to replace flag global variable with binary semaphore.

@DariusBabrauskas thank you for the suggestion. We did try that approach and it worked by providing the expected timing result. However, this solution will be a bandage and it doesn't tell us if we are having a scheduling issue with our implementation and that's why we are still digging into it.

@aralex1 - Would you happen to have a version that replicates the problem that you can share? Even a stripped down version would be welcome. It would greatly help to narrow down the set of possible errors.

@mmahadevan108, Apologize for the late response. 3 weeks ago, I was working on creating a smaller sample to try to recreate the issue, so I could share it here. However, I haven't been able to reproduce it, apart from our actual project. I was pulled 2 weeks ago to work on another project due to a higher priority and that's why I haven't had the chance to continue researching this issue.

@aralex1 any support you can give on this issue will be most helpful.

@mmahadevan108 Like I mentioned, I haven't been able to go back to this research. But, here is what I tried to recreate the issue.
TestCode.zip
The idea is to have 2 threads running (Tight and Tlow). Thigh waits for Tlow on a semaphore. Once Tlow gives the semaphore to Thigh, Thigh does "some work" and then sleeps for 100ms. The sleeping is to allow Tlow to actually spin. This process repeats 100 times.
If I remove the sleeping part, the code executes on 10 seconds. On the other hand, if I run it with sleep, it executes in 30 seconds. Since, I set CONFIG_SYS_CLOCK_TICKS_PER_SEC=10, K_MSEC(1) adds 100ms per turn. Thus, 10 seconds are added because of sleep, and switching between Tlow and Thigh is adding another 10 seconds. This tells me that the switching from spinning to Thigh takes an entire tick to actually happens.
Note, I also have another test case in this sample code "TEST_SEM_FLAG" which changes the spinning for a semaphore. I didn't notice a difference in the timing by using the semaphore instead. This means that the semaphore also waits for the next tick to switch to Thigh.
I used an nRF52840 DK board to execute this sample code.

I'm not able to reproduce, I don't think.  I built your sample code[1] with the only modification being to undefine TEST_SEM_FLAG, which I think is the failure case you're seeing.  And it's running in exactly 30s on all of the uniprocessor emulation environments I tried.
And some added printks shows that the two preemption points are working as expected:

When Tlow gives the semaphore, Thigh becomes runnable and immediately preempts Tlow as expected.
When Thigh becomes runnable again at the end of its sleep, the interrupt correctly returns into Thigh and not Tlow which was preempted.

Everything looks fine, basically.  Can you check again, and maybe share your .config file to see if there's anything else weird going on?
[1] Windows line endings and all.  Heh, which editor are you using that still does this?

does not seem to be high priority bug, can't be reproduced, not even by the original author.

@aralex1 Please reopen if you can reproduce the failure.


Allow specifying multiple areas and areas by % using -a option

From commandline, currently we can only specify one area at a time. I want to specify multiple areas as well as areas using top, left, bottom, right as % of height and width of the page for my use case.
Multiple areas are helpful when trying to extract tables from multiple parts of the page using commandline
Specifying areas using % of height and width is useful when I don't want to calculate absolute value of top/left/bottom/right points to define areas.
I will be happy to do the changes and create pull request myself if such a change is acceptable.

Hi @asheeshrana,
That's a good suggestion, and should be pretty easy to implement. My only concern is keeping the command line options consistent, and easy to understand.
BTW, we'd love to get a pull request for this feature :)

Thanks for the response.
I propose to change the behavior of "-a" option as follows:
-a top,left,bottom,right,top,left,bottom,right...
Each group of 4 parameters would define an area that could be used to extract the table
If the value of parameters top, left, bottom, right is between 0-1 (inclusive), we can consider it as a fractions of height and width... e.g. the below parameters
-a 0,0,1,0.5,0,0.5,1,1 would define two areas such that
area 1 = (top = 0height, left = 0width, bottom = 1height, right = 0.5width)
area 2 = (top = 0height, left = 0.5width, bottom = 1height, right = 1width)
Basically it is defining areas that split page into two areas right at the middle.
And update the description for -a option as
-a/--area = Portion of the page to analyze. Accepts sets of (top,left,bottom,right). Example: --area 269.875,12.75,790.5,561,300,570,500,700. Additionally, if all values are between 0-1 (inclusive), input will be taken as fraction of actual height or width of the page. Example: --area %0,0,1,0.5,0,0.5,1,1. Default is entire page
Let me know if you have any concerns... Expect a pull request soon :).

I have concerns about the between-0-and-1 overloading of --area, for me a parameter should not accept ambiguous formats.
I would rather go by explicitly specifying that you want percent/fractions.
I would suggest using a prefix, in example % and / (fraction): --area %0,0,100,50,50,100,100 and --area /0,0,1,0.5,0.5,1,1.
--fraction and --percent(-age) might also be possible, but -p is already --pages, don't know for -f. :D

I would suggest using a prefix, in example % and / (fraction): --area %0,0,100,50,50,100,100 and --area /0,0,1,0.5,0.5,1,1.

@criztovyl
I will take your suggestion and use / to explicitly indicate that it is a fraction. Using both / and % seems redundant so I will only allow "/".
New description
-a/--area = Portion of the page to analyze. Accepts sets of (top,left,bottom,right). Example: --area 269.875,12.75,790.5,561,300,570,500,700. Additionally, if all values are between 0-1 (inclusive) and preceded by "/", input will be taken as fraction of actual height or width of the page. Example: --area /0,0,1,0.5,0,0.5,1,1. Default is entire page
PS: -f is being used for format (JSON, CSV etc...)

+1 to the prefix.
BTW, let's make sure that we're validating the input.
Usability-wise, percentages (0-100) strike me better than 0-1 fractional values. What do you think?

I don't have preference for either. I will do % then.
New description
-a/--area = Portion of the page to analyze. Accepts sets of (top,left,bottom,right). Example: --area 269.875,12.75,790.5,561,300,570,500,700. Additionally, if all values are between 0-100 (inclusive) and preceded by "%", input will be taken as % of actual height or width of the page. Example: --area %0,0,100,50,50,100,100. Default is entire page

BTW, I'm not sure of extending the valid inputs for -a so it accepts sets of rectangular areas.
What about changing CommandLineApp so it allows repeated appearances of the -a argument? Your example would be something like:
-a 269.875,12.75,790.5,561 - a 300,570,500,700.

I agree multiple occurrences of-a is much cleaner.
Updated description...
-a/--area = Portion of the page to analyze. Accepts top,left,bottom,right . Example: --area 269.875,12.75,790.5,561. If all values are between 0-100 (inclusive) and preceded by "%", input will be taken as % of actual height or width of the page. Example: --area %0,0,100,50. To specify multiple areas, -a option should be repeated. Default is entire page

Created the pull request... tabula-java allow specifying multiple areas

The PR was merged and hence closing this issue.


Yes, that sounds very good. Also, code reviews within the group, as you suggested (part of general git practices)?

Yeah for sure that can all get wrapped up in there.

would definitely recommend: https://learngitbranching.js.org/

@fjebaker I won't be here next week I'm afraid, happy to do another Friday though

29 March is Good Friday!  University closed.

@hstewart93 19th of April okay?


Arizen log in error, nothing happens

Hello,
I am using Arizen version 1.1.7 and I cannot log in. Back in January I had a log a similar log in error and luckily gsfakianakis was able to guide me through it (hoping you can help me again gsfakianakis).
I tried to log in with my correct user and password and literally nothing happens. No error message, nothing. It just allows me to press the log in button and absolutely nothing.  Should I upgrade to the latest version. I truely am starting to hate Arizen Wallet and I want to switch to another wallet, assuming I can get my Horizen from the Arizen wallet first. Thank you very much.

Hi @BigMank,
Please download the latest version from here:
https://github.com/ZencashOfficial/arizen/releases
Unistall the previous version and install the new.
Then tr again and let us know what happens.

So upon rechecking I am already using version 1.2.
I did not un-install it yet. SHould I un-install and try to log in again?

Yes please.

I have the same problem in Ubuntu 18.04.1. The wallet is not working, it always gave me errors like "socket hang up". Seems like API servers are unresponsive.

Hi @javajox ,
We are fixing this problem and it will be included in the next arizen release. You can move your wallet in a windows PC or a mac. There it works fine.

Just try to install Arizen agaiin, without uninstall. It will be uninstalled (if not yet).

Hi, i have the same issue. Using arizen wallet version 1.2.0 on Windows 10 and have already uninstalled and reinstalled the wallet again. If i try to log in nothing happens. If I type a wrong username it shows wrong username but if i type the right or a wrong password nothing happens. Is there any solution despite reinstalling the wallet?

I would encourage you to try yesterdays maintenance release
https://github.com/ZencashOfficial/arizen/releases/tag/v1.2.3
If you still see the same issue, this is likely related to missing special characters from your password.
If this is the case please open a ticket on the 24/7 support desk and we can give you some more interactive support. https://support.horizen.global


Move porn sites extractors to a separate branch or repo or simple way to delete them

some way to make the presence of this type of extractors optional and not installed by default.

I don't see much sense in this since this will result in additional headache and bogus bugreports. There is a --age-limit option that can disable sites for adults.

i know about --age-limit.
but i think it's better to get them in a seperate place and not shipped by default.

No. Not shipping them by default will definitely result in tons of bogus reports for "unsupported" URLs, that are actually supported but not included in default package.

i don't mean remove them all, i mean if someone want them he can get them from a separate place(for example in separate repo).
and may be let the issue open for discusion as feature request.
may be others have ideas about better way to do this.

Once again. An average user will never ever bother doing anything more complex than grabbing the binary or copy pasting the install command needless to say of some additional actions. Especially now when adult sites are incorporated in youtube-dl for a bunch of years already imagine what will happen if we stop shipping them by default - we will drown in bogus bugreports (same as gentoo no-offensive-sites package but on much larger scale). Probably it make some sense to make a non-default lite-version but it still does not resolve aforementioned problem since one may mistakenly grab wrong package.

simple way to delete them
than what about ship a small script to remove them, if someone don't need them just execute it.

I don't know if this will work for py2exe binary.

if it is possible to add it also as a compiling flag? so it is possible to make version with and without this type of sites.
but i can't test it, i'm working in linux.

i created this script to remove the uneeded extractors(it's not complete i need to change also the generic extractor):
from youtube_dl.extractor import *
import re
import os

def list_non_suitable_extractors(age_limit):
    """
    Return a list of extractors that are suitable for the given age,
    sorted by extractor ID.
    """

    return sorted(
        filter(lambda ie: not ie.is_suitable(age_limit), gen_extractors()),
        key=lambda ie: ie.IE_NAME.lower())

non_suitable_extractors = list_non_suitable_extractors(0)

extractors_dir = 'youtube_dl/extractor/'

with open(extractors_dir + '__init__.py') as f:
    content = f.read()
    for extractor in non_suitable_extractors:
        content = re.sub(r'from \.' + extractor.__module__.split('.')[-1] + r' import (?:[A-Za-z0-9,\s]+|\([^\)]+\))\n', '', content)

with open(extractors_dir + '__init__.py', 'w') as f:
    f.write(content)

for extractor in non_suitable_extractors:
    extractor_filename = extractors_dir + extractor.__module__.split('.')[-1] + '.py'
    if os.path.isfile(extractor_filename):
        os.remove(extractor_filename)


Update driver.py

adding to constructor a name input

@DoronFried kudos on your first contribution to @qualisystems/shellfoundry-tosca-compute-template 👍


When programs no longer need riders

This screenshot was taken at 6:30 pm, well after these campaigns are over. Ideally, campaigns would be considered full at their start time for the purposes of this call out.
P.S. in this case, it is because deliveries were left in the campaign that were not needed this week so may not be a HUGE issue once leads do not leave folks in the campaign.

I will look into this, It's possible I built this so that the "next 48 hours" literally checks from the top of the current day to 48 hours from then, rather than 48 hours from now.


I have created Webview2 in MFC C++ in background and when i Open that tab in that Webview is not showing anything.

I have created Webview2 in MFC C++ in background and when i Open that tab in that Webview is not showing anything.
Looks like if we create Webview in background then we try to see it it does not show anything. But when i call m_webView->OpenDevToolsWindow(); it is properly showing the code and everything. Just page is not visible in view.

Thanks for reporting this issue. Could you please report it on this specific WebView2 feedback repository instead though? https://github.com/MicrosoftEdge/WebView2Feedback
This will give you much higher chances of getting the right answer to your question. Thanks a lot for your understanding.


Duplicate file attachments in emails if they were sent as test emails

Tested on Shopware 6.5.x
Currently we have the issue that files are attached two times to an email if they were sent as test mail. This behaviour is only in the test mail mode reproducible and works in production or if the mail was sent regular through a flow.
!Bildschirmfoto vom 2024-06-24 15-54-49.png|width=470,height=355,alt="Bildschirmfoto vom 2024-06-24 15-54-49.png"!

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-36922.
[created from NEXT-36922, comment 486481]


Removed redundant alt-texts from FAQ and fixed a typo in community_de

@svengabr Okay, I will add a useful alt-text there!


Strip out BOM's in response bodies

From<EMAIL_ADDRESS>on May 31, 2012 21:08:42
It should be possible to strip the BOM from an XML:
733
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/ "
xmlns:xsd=" http://www.w3.org/2001/XMLSchema "
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance ">
...
...
</soapenv:Envelope>
0
See http://stackoverflow.com/questions/1835430/byte-order-mark-screws-up-file-reading-in-java
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=178

From<EMAIL_ADDRESS>on May 31, 2012 23:21:27
Cannot reproduce with UTF-8 BOM

From<EMAIL_ADDRESS>on June 02, 2012 15:03:40
It works
Status: Invalid


irregular stop of the function

Thank you for your great development work. The GO tool is doing a great job, but it seems to crash after a while.
This often takes several days. After ending and restarting the process, it runs again for some time. Have you already noticed similar behavior? Thank you for your support.

Dear @fucide , yes you're right. I have been able to reproduce the error. It looks like it occurs exactly after 4 days of uptime.
It looks at first view as if the error occurs in the MQTT module.
@400000006273a58739f0b9bc During handling of the above exception, another exception occurred: @400000006273a58739f0c574 @400000006273a58739f0c95c Traceback (most recent call last): @400000006273a58739f47e94   File "/opt/victronenergy/dbus-mqtt/dbus_mqtt.py", line 602, in <module> @400000006273a5873a1e2a8c     main() @400000006273a5873a1fa18c   File "/opt/victronenergy/dbus-mqtt/dbus_mqtt.py", line 584, in main @400000006273a5873a46924c     handler = DbusMqtt( @400000006273a5873a47e624   File "/opt/victronenergy/dbus-mqtt/dbus_mqtt.py", line 217, in __init__ @400000006273a5873a5e5454     self._scan_dbus_service(service) @400000006273a5873a5fc76c   File "/opt/victronenergy/dbus-mqtt/dbus_mqtt.py", line 401, in _scan_dbus_service @400000006273a5873a7f3a34     self._introspect(service, device_instance, '/', publish) @400000006273a5873a80dc2c   File "/opt/victronenergy/dbus-mqtt/dbus_mqtt.py", line 441, in _introspect @400000006273a5873aa16834     self._introspect(service, device_instance, p, publish=publish) @400000006273a5873aa36404   File "/opt/victronenergy/dbus-mqtt/dbus_mqtt.py", line 423, in _introspect @400000006273a5873adf8a74     value = self._dbus_conn.call_blocking(service, path, None, 'Introspect', '', []) @400000006273a5873adfb184   File "/usr/lib/python3.8/site-packages/dbus/connection.py", line 652, in call_blocking @400000006273a5873afd6ae4     reply_message = self.send_message_with_reply_and_block( @400000006273a5873aff0124 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Unknown / invalid method @400000006273a58814030624 *** starting dbus-mqtt ***
A reboot of the Venus device helps as a first workaround. I am not sure how to debug this?

Hi @fucide, I've added a workaround for that. The bride will noch extit if the connection is lost. Please keep an eye on the startup.sh script in the bin folder and adapt it to your needs.


Title: Tic-Tac-Toe online multiplayers

Is your feature request related to a problem? Please describe.
I am adding a backend enabled project. That's a multiplayer game of tic tac toe, but it can be used for any multiplayer game further.
Describe the solution you'd like.
Using sockets we can build communications between clients.
Describe alternatives you've considered.
Developed a basic 2 player game, hosted on a Nodejs server. Bound socket endpoints in the server to connect different clients through the node-express server. Handled the socket connection on the frontend side with the help
of JS DOM. Broadcasted deltas instead of the whole state of a player to optimize the use of bandwidth up to 90%.
Add any other context or screenshots about the feature request here.

@swapnilsparsh please assign me this issue

Already there on the website here


Unable to load sqljdbc_auth in Mac OS

Driver version
mssql-jdbc_auth-8.2.0
SQL Server version
SQL Server 2016
Client Operating System
Mac OS 10.15.7
JAVA/JVM version
java 11
Problem description
I used the DBeaver 21 to connect to SQL server with Windows Authentication method.  It loaded with the
The .dll does not work in Mac Environment.  Do you have a jar version for the mssql-jdbc_auth-8.2.0.x64 library?  I copy all the .dll in the given folder.  It has the same issue
Error message:
This driver is not configured for integrated authentication.
no mssql-jdbc_auth-8.2.0.x64 in java.library.path: [/Users/bdie/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]

hi @felixatwork,
A Dynamic-link library (DLL) is Microsoft's implementation of a shared library in Windows. As such, they do not work in Mac OS. If you would like to use integrated authentication in a Mac environment you will need to configure Kerberos. You can find information on how to use Kerberos integrated authentication to connect to SQL Server here.

closing due to inactivity


Upgrade odh-elyra 3.16.7 for run_url update

Upgrade odh-elyra 3.16.7 for run_url update
https://github.com/opendatahub-io/elyra/releases/tag/3.16.7
Description

Set the run_url with experiment info included
The run_url is set in the format of: {experiment_id}/runs/{run_id}
Example:
https://rhods-dashboard-redhat-ods-applications.apps.datahub.redhat.com/experiments/experiment/024e260b-75e9-407e-9e8d-3974320c06dc/runs/b6c920a2-a3de-452c-bf58-88d46f3da65b

Related-to: https://issues.redhat.com/browse/RHOAIENG-8398
How Has This Been Tested?

This PR needs to be run with the compliment of the Dashboard Image:
Use the following image: quay.io/opendatahub/odh-dashboard:main-a8d2118

Set up a DS project
Create a Data connection
Create Pipeline configuration
Use data-science notebook image create by this PR.
Execute a Pipeline
and check the RUN Details pointing to right pipeline run executed

Expected:
URL should be of the form: https://rhods-dashboard-redhat-ods-applications.apps.datahub.redhat.com/experiments/experiment/024e260b-75e9-407e-9e8d-3974320c06dc/runs/b6c920a2-a3de-452c-bf58-88d46f3da65b
Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

/lgtm
I could reproduce this
..../experiments/experiment/ae910d56-bdd9-482b-b6a1-5c1f1ae25402

I believe we should start to offboard the UBI8 runtimes since we don't use them at all in the project. They introduce a lot of unnecessary maintenance.

Thank you for the review.
i will move forward with merging.


loadLegacyLibrary_0 FAILED in Test_openjdk11_hs_sanity.functional_x86-64_mac

Test Info
Test Name: loadLegacyLibrary_0
Test Duration: 457 ms
Machine: test-macstadium-macos1014-x64-2
TRSS link for the test output: https://trss.adoptopenjdk.net/output/test?id=5ffa90152bad785066088aeb
Build Info
Build Name: Test_openjdk11_hs_sanity.functional_x86-64_mac
Jenkins Build start time: Jan 09 2021, 01:08 pm
Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_sanity.functional_x86-64_mac/68/
TRSS link for the build: https://trss.adoptopenjdk.net/allTestsInfo?buildId=5ffa8e8b2bad785066088338
This test has been failed 16 times since Dec 24 2020, 07:06 pm
Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_sanity.functional_x86-64_mac/53/
The test failed on machine test-macstadium-macos1014-x64-2 3 times
The test failed on machine test-macstadium-macos1013-x64-1 5 times
The test failed on machine test-macstadium-macos1014-x64-1 2 times
The test failed on machine test-macstadium-macos1012-x64-1 2 times
The test failed on machine test-macincloud-macos1010-x64-2 3 times
The test failed on machine test-macstadium-macos1014-x64-3 1 times
Console output:
[2021-01-09T23:53:44.908Z] loadLegacyLibrary_0 Start Time: Sat Jan  9 23:53:44 2021 Epoch Time (ms):<PHONE_NUMBER>796
[2021-01-09T23:53:44.908Z] Nothing to be done for setup.
[2021-01-09T23:53:44.908Z] variation: NoOptions
[2021-01-09T23:53:44.908Z] JVM_OPTIONS:
[2021-01-09T23:53:44.908Z] { itercnt=1; \
[2021-01-09T23:53:44.908Z] 	mkdir -p "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../TKG/test_output_16102364247455/loadLegacyLibrary_0"; \
[2021-01-09T23:53:44.908Z] 	cd "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../TKG/test_output_16102364247455/loadLegacyLibrary_0"; \
[2021-01-09T23:53:44.908Z] 	 "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/..//bin/java"   \
[2021-01-09T23:53:44.908Z] 			-cp "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../../jvmtest/TestConfig/resources:/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../TKG/lib/testng.jar:/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../TKG/lib/jcommander.jar:/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../../jvmtest/functional/Java8andUp/GeneralTest.jar" \
[2021-01-09T23:53:44.908Z] 			org.testng.TestNG -d "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../TKG/test_output_16102364247455/loadLegacyLibrary_0" "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../../jvmtest/functional/Java8andUp/testng.xml" \
[2021-01-09T23:53:44.908Z] 			-testnames loadLegacyLibrary \
[2021-01-09T23:53:44.908Z] 			-groups level.sanity \
[2021-01-09T23:53:44.908Z] 			-excludegroups d.*.osx_x86-64_cmprssptrs,d.*.arch.x86,d.*.os.osx,d.*.bits.64,d.*.generic-all; \
[2021-01-09T23:53:44.908Z] 			if [ $? -eq 0 ] ; then echo ""; echo "loadLegacyLibrary_0""_PASSED"; echo ""; cd /Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/..;  else echo ""; echo "loadLegacyLibrary_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/openjdk-tests/TKG/../TKG/test_output_16102364247455/TestTargetResult";
[2021-01-09T23:53:45.262Z] java.io.FileNotFoundException: /Users/jenkins/workspace/Test_openjdk11_hs_sanity.functional_x86-64_mac/jvmtest/functional/Java8andUp/testng.xml (No such file or directory)
[2021-01-09T23:53:45.262Z] 	at java.base/java.io.FileInputStream.open0(Native Method)
[2021-01-09T23:53:45.262Z] 	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
[2021-01-09T23:53:45.262Z] 	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
[2021-01-09T23:53:45.262Z] 	at org.testng.xml.Parser.parse(Parser.java:148)
[2021-01-09T23:53:45.262Z] 	at org.testng.xml.Parser.parse(Parser.java:233)
[2021-01-09T23:53:45.262Z] 	at org.testng.TestNG.parseSuite(TestNG.java:295)
[2021-01-09T23:53:45.262Z] 	at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:348)
[2021-01-09T23:53:45.262Z] 	at org.testng.TestNG.initializeEverything(TestNG.java:995)
[2021-01-09T23:53:45.262Z] 	at org.testng.TestNG.run(TestNG.java:1009)
[2021-01-09T23:53:45.262Z] 	at org.testng.TestNG.privateMain(TestNG.java:1354)
[2021-01-09T23:53:45.262Z] 	at org.testng.TestNG.main(TestNG.java:1323)
[2021-01-09T23:53:45.262Z] [TestNG] [ERROR] No test suite found. Nothing to run

Presume that we need to exclude this target against hotspot on mac (its skipped on xlinux), but need to confirm.

Test is openj9 native test, should be excluded for hotspot

Test is openj9 native test, should be excluded for hotspot

Java8andUp build.xml is limited to impl to ibm and openj9 only. Any testcases under this directory will need to be limited to openj9 and IBM only.

Java8andUp build.xml is limited to impl to ibm and openj9 only. Any testcases under this directory will need to be limited to openj9 and IBM only.

eclipse/openj9/11657 is now merged which addresses this item

eclipse/openj9/11657 is now merged which addresses this item


ARG003 does not seem to respect Protocols

The ruff ruleARG003: unused-class-method-argument does not seem to understand that unused arguments sometimes are necessary in order to implement a protocol. See example below:
from abc import abstractmethod
from typing import Protocol

class A(Protocol):
    @classmethod
    @abstractmethod
    def foo(cls, bar: str) -> str:
        raise NotImplementedError

class B(A):
    @classmethod
    def foo(cls, bar: object) -> str:
        return "foo"

https://play.ruff.rs/204c57b4-a35e-48d5-8f92-ca2e109dd2cd
This problem appears in ruff 0.6.9

All Ruff rules don't understand Protocols, or class inheritance (with few hardcoded exceptions) because Ruff doesn't support multifile analysis (it doesn't understand the Protocol type nor can it resolve the class A if it is defined in another file).
For now, I suggest that you add a @typing.override decorator to B.foo. It let's Ruff know that this is an overridden method and that extra arguments are intentional.

I appreciate your clear explanation of the current limitations of ruff. Also appreciate the advice on @typing.override. Thanks!
I understand that there is a significant backlog of features hinging on type inference and multi-file analysis, so I wish you guys all the best in working towards those. Ruff is already really great, but would undoubtedly be even better with those capabilities implemented.

Same issue with inherited methods, such as:
class Foobar(IntEnum):
    A = 1
    B = 2
    UNKNOWN = 255

    @classmethod
    def _missing_(cls, value: object) -> Foobar:  # ruff reports ARG003 error on value
        return cls.UNKNOWN


No sound output on external devices

Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-1
Distro Version
No response
Other Software
No response
Repro Steps
My laptop's screen is broken so i connected my pc to a TV with hdmi, but now i can't reproduce audio and video gets very laggy after i installed wsl2
Expected Behavior
The only solution i've found is uninstalling WSL but that's not the greatest option considering that i want to learn linux and use Ubuntu on windows
Actual Behavior
I need help, i googled already but i can't find solutions to it, used chatGPT's solution and it didn't work
Diagnostic Logs
No response

Sorry, this is my first time making a question so i just filled the empty fields i was asked to fill, i now see how messy the question has become, Sorry once again


CI

CI should be prepared for headnode_notifier after #4 is addressed.

Travis CI allows setting secure variables which in turn did not require modifications in the password handling in headnode_notifier itself


pyarrow and tensorflow results segfault when used together

Describe the bug
When both tensorflow and pyarrow are imported in a python script (in this order) any serialization attempt in pyarrow results Segmentation fault.
This happens in the unstable nix channel.
Steps To Reproduce
Create shell.nix:
{ pkgs ? import <nixos-unstable> {} }:

pkgs.mkShell {
  buildInputs = with pkgs.python3Packages; [
    tensorflow
    pyarrow
  ];
}

(nixos-unstable points to the https://nixos.org/channels/nixos-unstable channel)
Create example.py:
import tensorflow
import pyarrow.flight as fl

command = fl.FlightDescriptor.for_command(b"{}")
command.serialize()

Run the example in nix-shell: python3 example.py.
Expected behavior
Script exits without segfault with 0 exit status.
Additional context
It seems that the root cause of the problem is the different version of protobuf library used. Pyarrow uses the system's protobuf library (3.19), while tensorflow uses a bundled protobuf library (3.9).
This seems to be confirmed by gdb:
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007fffd5df6613 in google::protobuf::Message::MergeFrom(google::protobuf::Message const&) () from /nix/store/yi1wv7l1p49h8gf1lapb1gi199r94k8s-protobuf-3.19.0/lib/libprotobuf.so.30
#2  0x00007fffd9e638d0 in google::protobuf::MessageLite::AppendPartialToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const ()
   from /nix/store/rn3gphncqpi605rs3i6jzvnmvfclz4vj-python3.9-tensorflow-2.7.0/lib/python3.9/site-packages/tensorflow/python/../libtensorflow_framework.so.2
[...]

(see that #2 frame uses google::protobuf::MessageLite::AppendPartialToString from tensorflow)
If pyarrow is imported first, the problem disappears. I think that in this case the correct symbol (from pyarrow) is loaded first.
In tensorflow the using of the bundled protobuf was introduced when it was updated to 2.4.0 in the commit 69d1e62b36bf1b65754acfd3a6f343b6b919dd25.
The flight feature flag (which is necessary to run the example) was added to arrow-cpp in the commit ac4188fe579f0c1f2121848771a372cc13200c8c.
Notify maintainers
@ndl
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[zsolt@skylake:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.14.21, NixOS, 21.05.4470.3b422991781 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20211006_53e4794`
 - channels(zsolt): `""`
 - channels(root): `"nixos-21.05.4481.c5f1ee98224, nixos-unstable-22.05pre338278.b0bf5f888d3"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

In tensorflow the using of the bundled protobuf was introduced when it was updated to 2.4.0 in the commit 69d1e62.

Small clarification: that's not what that commit has done :-) Before that commit TF was using none of system dependencies from the TF_SYSTEM_LIBS list because that variable was reset during configuration. In that commit TF_SYSTEM_LIBS usage was fixed to actually start influencing the build - and it turned out that some of the dependencies provided by the system are not compatible with TF, protobuf being one of them - hence I had to comment it out, but the net effect was that we went from "no system libs are used" to "some system libs are used".
Having said that - looks like switching to system protobuf is not as difficult as it appeared at first, I've created the corresponding pull request. When TF is built with that pull request, your example.py runs successfully.

Cool, thanks for the quick PR! :)
I'm sorry for the commit suspecting, one of the previous versions of tensorflow did not cause this issue (I don't know the exact version but it does not matter) and I thought that this commit introduced the error.


Where should I do the net request?

Hi dmilicic:
I read an article about your Clean Architecture(They call so). I have read "Android-Clean-Boilerplate" and "android-clean-sample-app" source wrote by you.
I wonder where should I do the net request?

I know I can get data from database via the "Interactor". But the third part net request library such as AsyncHttpTask has already do work at a new thread. So if I put MVP in the outer layer, may I put the net request at M of the MVP?

 Answer from a AndroidRookies. THKS a lot if get your help~

Hey!
You can check out how to do network requests here. This part of the code implements all Retrofit  needs to make network requests. Retrofit is a 3rd party library for network requests.
You can see how the actual network requests are called here. Take a look from line 115. where the actual request happens. The SyncAdapter always runs in a background thread so I am allowed to make a blocking request.
You are correct. Since MVP is the outer layer, you can put net request code there without breaking clean principles! However, I usually don't have networking code in my MVP models. They serve only as ViewModels.  But you are allowed to do whatever you think works best for your project.
I hope this helps!


Can't import the named export '...' from non EcmaScript module (only default export is available)

I am trying to use  @urql/core library only  on a SPA created using vue-service-cli.
I am using urql version 2.0.0 and graphql version 15.5.0
I have tried with node 12 and node 14 and the result is the same:
Steps to reproduce
import { createClient, gql } from '@urql/core';

const client = createClient({
  url: process.env.VUE_APP_GRAPH_QL_URL,
});

const echo = gql`
  query {
    echo(text: "text to echo back")
  }
`;

client
  .query(echo)
  .toPromise()
  .then(result => {
    console.log(result); // { data: ... }
  });

This is part of  my main.js file which is the first thing that is loaded after running npm run serve (which calls vue-cli-service serve)
Expected behavior
I expected my app to run but instead I got
Actual behavior
 ERROR  Failed to compile with 65 errors                                                                                3:04:39 PM

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'filter' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'fromValue' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'fromValue' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'make' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'make' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'makeSubject' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'makeSubject' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'map' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'map' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'map' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'map' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'map' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'map' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'mergeMap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'mergeMap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'onEnd' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'onPush' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'onStart' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'onStart' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'publish' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'share' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'share' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'share' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'share' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'share' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'subscribe' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'subscribe' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'switchMap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'take' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'take' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'take' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'takeUntil' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'takeUntil' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'takeUntil' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'tap' from non EcmaScript module (only default export is available)

 error  in<EMAIL_ADDRESS>
Can't import the named export 'toPromise' from non EcmaScript module (only default export is available)

I must be doing something horribly wrong that is simple to fix.  Right?
Here  is part of package-json  for reference:
{
  "scripts": {
    "serve": "vue-cli-service serve",
    "build:development": "NODE_ENV=production vue-cli-service build --mode development && npx serve dist",
    "build:staging": "NODE_ENV=production vue-cli-service build --mode staging",
    "build:production": "NODE_ENV=production vue-cli-service build --mode production",
    "lint": "NODE_ENV=production vue-cli-service lint --no-fix",
    "lint:fix": "NODE_ENV=production vue-cli-service lint --fix",
    "test:unit": "vue-cli-service test:unit",
    "test:watch": "vue-cli-service test:unit --watchAll --runInBand",
    "test:debug": "node --inspect-brk node_modules/.bin/vue-cli-service test:unit --watchAll --runInBand",
    "test:e2e": "vue-cli-service test:e2e --mode production"
  },
  "dependencies": {
    "@datadog/browser-rum": "^2.6.2",
    "@fullstory/browser": "^1.4.5",
    "@popperjs/core": "^2.9.0",
    "@sentry/integrations": "^5.28.0",
    "@sentry/vue": "^5.28.0",
    "@unbabel/smartcheck-client": "0.0.3",
    "@unbabel/ui": "^4.13.6",
    "@urql/core": "^2.0.0",
    "cookies-js": "^1.2.3",
    "graphql": "^15.5.0",
    "just-extend": "^4.1.1",
    "jwt-simple": "^0.5.6",
    "lzutf8": "^0.5.6",
    "mitt": "^2.1.0",
    "mixpanel-browser": "^2.39.0",
    "msw": "^0.27.0",
    "platform": "^1.3.5",
    "pusher-js": "^7.0.1",
    "register-service-worker": "^1.5.2",
    "scroll-into-view-if-needed": "^2.2.20",
    "smooth-scroll-into-view-if-needed": "^1.1.29",
    "vue": "^2.6.11",
    "vue-flash-message": "^0.7.2",
    "vue-router": "^3.0.1",
    "vuex": "^3.0.1",
    "vuex-persistedstate": "^2.5.4",
    "webpack": "^4.44.2"
  },
  "devDependencies": {
    "@cypress/webpack-preprocessor": "^3.0.0",
    "@sheerun/mutationobserver-shim": "^0.3.3",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/user-event": "^12.8.3",
    "@testing-library/vue": "^5.1.0",
    "@vue/cli-plugin-babel": "^3.1.1",
    "@vue/cli-plugin-e2e-cypress": "^4.5.6",
    "@vue/cli-plugin-eslint": "^3.1.1",
    "@vue/cli-plugin-pwa": "^4.5.6",
    "@vue/cli-plugin-unit-jest": "^3.5.0",
    "@vue/cli-service": "^3.1.1",
    "@vue/eslint-config-airbnb": "^4.0.0",
    "@vue/test-utils": "^1.0.0-beta.20",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "^10.0.1",
    "babel-jest": "^23.6.0",
    "eslint": "^5.8.0",
    "eslint-plugin-testing-library": "^3.10.1",
    "eslint-plugin-vue": "^5.0.0-0",
    "html-loader": "1.3.2",
    "identity-obj-proxy": "^3.0.0",
    "isomorphic-fetch": "^3.0.0",
    "node-sass": "^4.14.1",
    "sass-loader": "^7.0.1",
    "svg-url-loader": "^7.1.1",
    "vue-svg-loader": "^0.16.0",
    "vue-template-compiler": "^2.6.11",
    "worker-loader": "^3.0.5"
  },
  "msw": {
    "workerDirectory": "public"
  }
}

I assume this is an issue with the build tool you're using. These imports are from the wonka module, which does have mjs and ESM files available. So, I'm not sure what tool is building this and running into these issues, but it'll be mostly up to that tool

its good ol' webpack basically. do i need to do some additional configuration I wonder.

https://github.com/kitten/wonka/issues/97 i found this but i switched to node 10.21.0 and still  nothing..

Would you mind trying to add this as a plugin: https://github.com/lukeed/webpack-modules that way we can see where your issue actually comes from. It could be that your resolve.extensions config is set to not accept .mjs or your loaders are set to ignore .mjs.
(example) - Set a loader for mjs: https://github.com/JoviDeCroock/POC-ModularLegacyBuild/blob/master/webpack.config.js#L80

I dont want  celebrate yet but: https://github.com/vuejs/vue-cli/issues/2626
I  added this line to my vue.config.js
    config.resolve.extensions.prepend('.mjs');

and stuff seems to be compiling now :D
Let me just check if I can ping my graphQL server and I  will close the still today if this fixes the problem.
Thank you so much!

Its working. Just have to fight CORS but at least the requests  are happening.
Thank  you so much  for your help :)

For those of you that have this error, install webpack-modules since it will make .mjs files work. For some reason certain versions of webpack don't like .mjs files. With that plugin it will be solved.
Do: yarn add webpack-modules
Then import it at the top of your webpack config file with:
const WebpackModules = require('webpack-modules')

And add it to your plugins section at root level like so:
plugins: [
    new WebpackModules()
]

More info in the official repo here: https://github.com/lukeed/webpack-modules
It worked for me.


compile contracts with bytecode "0x"

Bug report!
Machine node12, solc0.5.10, ubuntu19/windows10, tronbox2.7.12
When I compile the code i get in build .json this result for bytecode
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",

My contract
pragma solidity ^0.5.8;

import "../../../contracts/tokens/trc20/TRC20.sol";
import "../../../contracts/tokens/trc20/TRC20Mintable.sol";
import "../../../contracts/tokens/trc20/TRC20Detailed.sol";
import "../../../contracts/tokens/trc20/TRC20Freezable.sol";

/**
* @title Token contract for deploy
*/
contract Token is TRC20Detailed, TRC20Mintable, TRC20Freezable {}

Error on migration:
$ tronbox migrate
Using network 'development'.

Running migration: 3_deploy_token.js
  Deploying Token...
ERROR: Invalid bytecode provided

All this contracts have import file, but files without imports has normal bytecode

If I try pure compile have this errors
$ solcjs --bin ./contracts/tokens/trc20/Token.sol -o "build/contracts"
./contracts/tokens/trc20/Token.sol:3:1: ParserError: Source "./contracts/tokens/trc20/TRC20.sol" not found: File import callback not supported
import "../../../contracts/tokens/trc20/TRC20.sol";
^-------------------------------------------------^

./contracts/tokens/trc20/Token.sol:4:1: ParserError: Source "./contracts/tokens/trc20/TRC20Mintable.sol" not found: File import callback not supported
import "../../../contracts/tokens/trc20/TRC20Mintable.sol";
^---------------------------------------------------------^

./contracts/tokens/trc20/Token.sol:5:1: ParserError: Source "./contracts/tokens/trc20/TRC20Detailed.sol" not found: File import callback not supported
import "../../../contracts/tokens/trc20/TRC20Detailed.sol";
^---------------------------------------------------------^

./contracts/tokens/trc20/Token.sol:6:1: ParserError: Source "./contracts/tokens/trc20/TRC20Freezable.sol" not found: File import callback not supported
import "../../../contracts/tokens/trc20/TRC20Freezable.sol";

Even if I add manually bytecode to json after deploy I have empty fields.
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",

let see this contract inculudes trcToken, msg.tokenid, msg.tokenvalue. Maybe problem with it?

It looks like it cannot find the imported contracts.

It looks like it cannot find the imported contracts. Are you sure that the path
import "../../../contract...

is the right one?

Anything ok with path. Bug with bytecode. Its  empty string.

Source Code, check yourself:
https://github.com/pironmind/swap_trc10-to-20/tree/master

I am not working in Tron, but I think that when the bytecode is empty, it means that the compiler was unable to compile and, typically, this happens when in your code there is some unsupported peace of code. If some day I have time — and willing — I will try the code. In the meantime...
@shenyongri110 Are you still at Tron? If so, would you take a look?


Check @param names in JSDoc method documentation

JSDoc applied to methods tend to age. Typically method parameters are added / removed / changed but their documentation remain unchanged.
Typescript compiler should check the @param names and should write an error, if they are not found in the method signature. Maybe this check should be optional, by a compiler flag.
TypeScript Version:  (2.0.3)
Code
class TestValidateJSDocParams {
    /** Calculate the sum of the given numbers
     * @param x     first summand
     * @param y     second summand
     * @param z     third summand
     */
    public sum (a: number, b: number) : number {
        return a + b;
    }
}

Expected behavior:
Should log an tsc compiler error for unknown methods parameters: x, y, z
Actual behavior:
Compiles without an error.

My personal opinion is that this would be a great linter feature in something like tslint.

@kitsonk, while i agree with you in a .ts file, in a .js file we already use the JSDoc comments for type information. the function in the OP, would not be typed correctly as we did not find the documentation for parameter a; so seems like a nice error to show to avoid such situations.
@RyanCavanaugh, we should consider doing this as part of https://github.com/Microsoft/TypeScript/issues/6802. make JSDoc errors a category by their own. we today swallow all these errors.

Did #18777 address this? If not, should #15852 subsume this issue?

@brettz9 #18777 fixes this bug, but only for Javascript, where we use jsdoc for typing. It still feels like a lint feature in Typescript.

Now that we have info-level diagnostics with codefixes, we could do it that way. Accepting PRs for this one.
This one is a good bit of work, but it's all based on existing code. You'll just have to

Give the jsdoc-mismatch error in TS as well, but as an info.
Copy the structure of an existing codefix to change the param name.
Decide how to fix the error. Do you match by position? Do you default to changing the jsdoc? The parameter?

Make sure the codefix works in JS too!

I'd like to have a try on it

OK, I assigned you to the issue, @Kingwl. Unassign yourself if you decide not to do this.

Oh. Sorry. I forget this one.