Restore terminal sessions between restarts

Forking off from https://github.com/Microsoft/vscode/issues/20013, this issue is about restoring the terminal process shell, args, env and layout (dropdown/splits).

I'm posting my thoughts about this, since I've tackled this issue with my Terminals extension.

this issue is about restoring the terminal process shell, args, env and layout

Restoring shell, args and env: I might be wrong on this but I think one can't even set these variables on a per-terminal basis when creating terminals manually, so we would be either restoring terminals with default shell, args and env (nothing to restore basically), or terminals created by extensions, which are going to get recreated by those extensions anyway (there's no way of getting a list of opened terminals, so those extensions can't re-use restored terminals even if they wanted to).
Restoring layout: this is certainly useful, but I personally don't like if throwaway/temporary terminals get restored. And there's no way of knowing which terminal is important and which isn't without providing some kind of configuration.

it would be good to have some basic restoring if it won't get in the way, we certainly wouldn't want to add the complexity that this extension allows.

IMHO the real value comes from restoring commands as well as the layout, and possibly outputs too. Given the relatively low value of a restored layout without commands/output and the problem with duplicated terminals that get recreated by extensions I think it's not worth implementing this into the core.

I need to do some thinking about it, how it interacts with tasks and debug

I personally don't use tasks at all, and I'm not sure how terminals have anything to do with debug, what do you mean exactly?
While we're at it, these are a few API suggestions that would allow me to provide a more powerful/complete extension:

Output restoration: It would be cool if we could restore the output of the terminals, for doing so I think a couple of APIs for reading and replacing a terminal's content are necessary.
Splits restoration: As mentioned here an API for splitting terminals would be necessary in order to add this functionality.
Listing all the terminals: Providing an array of all the opened terminals could be useful.

I personally don't use tasks at all, and I'm not sure how terminals have anything to do with debug, what do you mean exactly?

You can have debuggers run their processes inside the terminal, I think the main benefit here is you get to see the stdout of the process.

Output restoration

While possible to do, I'm not convinced this would be useful if the process needs to be recreated?

Splits restoration

I think we need this https://github.com/Microsoft/vscode/issues/45407

Listing all the terminals

https://github.com/Microsoft/vscode/issues/13267

I'm not convinced this would be useful if the process needs to be recreated?

I think it depends on the output, for my use cases this wouldn't be particularly valuable either, but maybe it would be useful for all those times one finds himself scrolling back the terminal.

Other than my 👍 , the only thing I would want to ask for is to extend this from just restarts into having configurations associated with workspaces/folders
Which of course, @fabiospampinato's extension does wonderfully, but if we end up with an "official" api for this, it could enable core and/or other extensions to hook into the functionality.

The result of the investigation this iteration is:

There are developments for serializing and restoring state in various UI components, we may use the same model as that for the terminal
We may want to defer this behavior to extensions as the most compelling restore behavior comes when you can automate the creation of terminals that run commands like https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-terminals
We should wait until after grid layout https://github.com/Microsoft/vscode/issues/14909 for the splitting API https://github.com/Microsoft/vscode/issues/45407

@Tyriar my biggest use case is to reconnect to a running "npm run watch", is that covered here or should I file a new issue? This is to get rid of tmux finally...

@bpasero that's this one https://github.com/Microsoft/vscode/issues/20013, the current thinking there is might be a lot of work to re-architect where the terminal process lives for not much payoff (QoL for team and people who change extensions a lot).

@Tyriar the payoff is that the VS Code team could selfhost on the integrated terminal without tmux (which brakes basically everything), so I would give it a shot :)

I'm planning on removing the experimentalRestore setting in August.

I removed the experimentalRestore setting as I don't think it's the direction we're going to go in and I'm concerned about bugs/stability issues it could be causing.

Confirming that if I have a Java process running in the terminal, after a window reload (e.g. installed an extension) the Java process remains running but now in the background, and a new blank terminal loads in the window.
// @hexiaokai @Matthew-Dong

@brunoborges please create an issue with repro steps and OS/vscode version details.

Isn't the issue the same?

@brunoborges aren't you pointing out this:

Java process remains running but now in the background

The process should be killed?
This issue is a feature request about retaining terminal processes across window reload, currently the expected behavior is to kill all terminal processes.

The process should not be killed. And the terminal should be retained.

@brunoborges for that behavior is this feature request. Until this issue is handled, all the processes are meant to be killed when you close VS Code, you indicated that this is not the case currently.

@Tyriar That is correct. But I'd rather see this feature implemented than that bug fixed. Priorities :)

@Tyriar So what's the status on this 🙂 Still split terminals don't get restored on restart.

We have no plans on restoring sessions like this as the experiment I built earlier ended up revealing it would be a lot of code/config to get this right. Instead we're opting for extensions like Terminals Manager to take up this role which will be able to cater to complex setups better. Currently the API is limited in this area around splitting, vote on https://github.com/microsoft/vscode/issues/45407 to help bump that up.

I made an extension to do just this https://marketplace.visualstudio.com/items?itemName=EthanSK.restore-terminals

All the extensions proposed as solutions expect me to decide in advance which terminals I want opened with a workspace. What I want is that terminals I have started are restarted the next time I open the workspace. Basically I would like the terminals to be a part of the workspace state just like opened files.

@artm they should be now? See https://code.visualstudio.com/docs/terminal/advanced#_persistent-sessions

Hmm, doesn't seem to do much for me:(I use WSL terminals, after restart one of them might have contents of the last session restored, but I never get multiple terminals back

@artm it's working for me in both local and wsl windows. Do you input in them when you're testing? Because they only get restored if they had some interaction. Please create another issue with this info as you might be referring to a new bug.


Does not work after recent update

I tried it a day before wipe and it worked fine but as soon as the update happened, the trainer doesn't load.  I press RightAlt and nothing happens and the commands don't work either. I tried looking at the EFT instance and couldn't find anything out of ordinary. Installer works fine but I'm not sure what's wrong.

^Playing on live tarkov btw

Having this issue as well

A) The project is not meant for use on live, and will get you banned neigh immediately.
B) The project this code is meant to be used on does not even support patch 0.13 yet, why would you expect this to be updated for said patch?

A) no shit I can read the README
B) idk nobody else commented on it other than me so I asked

A > ive read the documentation
B > Dont know

Thanks @solareon
I did not had the time to check but I exactly thought of that when I saw this issue.

We can probably find a way to write a spt-aki module like discussed here initialy.
It's now probably different given they moved to BepInEx during 3.x, but that's a way to load the trainer easily, instead of IL patching assemblies.


Issue with pixel_map.py

After the update on 25/04/2019, I am receiving the following error on all the bots I have created which have worked previously:

File "%APPDATA%\Roaming\Python\Python37\site-packages\sc2\pixel_map.py", line 10, in init
assert self.bits_per_pixel % 8 == 0, "Unsupported pixel density"

It seems like self.bits_per_pixel is equal to 1.

Yeah with the new SC2 client version 4.8.5, new things were added to the API and some things were broken without backwards compatibility.
Most things have been fixed on the develop branch of this library / repository.
You can install it with command the
pip install --upgrade --force-reinstall  https://github.com/Dentosal/python-sc2/archive/develop.zip
or instead of pip you can go into the python folder and use python -m pip instead, if it does not work for you.

good


Great job, but where are the scripts?

Messed around with this a bit tonight, was going ot use it as a landing zone for my world I was building... Seems to be missing some scripts though and such... Is not loading into unity fully from a new project... Tested several times unless I am missing something stupid...
I did get it to work by changing a few things without your scripts but the room doesn't do the cool lighting effect and I can't seem to get full textures on the doors if I copy one...??? a bit confused....
But great work!!!! Me and you may need to talk :) big plans

cool, I'll check it out from the store then...

btw, Can't seem to find your asset on the store.  And yes the theater is what I am talking about of course :)
The "video panel" scene loads and works just fine, but has no ambient lighting as we were discussing.
The "Stream Panel" scene which I assume is the working good one from the current public world is not working. Shows 2 missing scripts and the texture is missing for the screen.
I tried replacing the texture and it will not play, where as the video in the other scene will play...

I feel like I am missing a base SDK script, Was the SDK updated or something...

ya it looks like your sdk might not be up to date.
vrchat sdk should be.

YUP!!! LOL!!! AWESOME!
and frustrating... It's working fine now, /sigh. I was runing on the 6/10 SDk now I am on 6/21
Glad to see someone that responds too :) We'll be chattin


Add support for targeting services for scraping

An increasing number of providers are placing their metrics endpoints behind a service rather than digesting them directly from a deployment. Kyverno and ArgoCD are notable examples. Other implementations of Prometheus collectors have a CRD that allows you to scrape metrics by targeting a service.
https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/crds/crd-servicemonitors.yaml
The only way to target these endpoints currently is to ignore the service, parse the deployment that's generating metrics for a label you can use, and construct a PodMonitoring resource for each deployment that generates metrics. It sucks because it makes what should be a single simple monitoring resource into multiple monitoring resources that are generally more brittle.

There might be some way to use the podMonitoring resource to listen on a service that I'm just not aware of. Here's an example yaml based on the prom-example example in GCP's documentation here that includes a service. I feel like this should work, but it doesn't...
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prom-example
  namespace: gmp-test
  labels:
    app: prom-example
spec:
  selector:
    matchLabels:
      app: prom-example
  replicas: 3
  template:
    metadata:
      labels:
        app: prom-example
    spec:
      containers:
        - image: nilebox/prometheus-example-app@sha256:dab60d038c5d6915af5bcbe5f0279a22b95a8c8be254153e22d7cd81b21b84c5
          name: prom-example
          ports:
            - name: metrics
              containerPort: 1234
          command:
            - "/main"
            - "--process-metrics"
            - "--go-metrics"
---
apiVersion: v1
kind: Service
metadata:
  name: gmp-test-service
  namespace: gmp-test
spec:
  ports:
    - port: 5678
      protocol: TCP
      targetPort: metrics
  selector:
    app: prom-example
  sessionAffinity: None
  type: ClusterIP
---
apiVersion: monitoring.googleapis.com/v1alpha1
kind: PodMonitoring
metadata:
  name: prom-example
  namespace: gmp-test
spec:
  selector:
    matchLabels:
      app: prom-example
  endpoints:
    - port: 5678
      interval: 5s

Hello,
We currently support Pod scraping only due to potential scalability concerns with monitoring services and endpoints on larger clusters.
What about using the label selector defined on the Service's .spec.selector in your PodMonitoring's .spec.selector.matchLabels and specifying the underlying deployment's container port in .endpoints?

Gotcha. That makes sense.
For the time being, we don't plan on supporting ServiceMonitoring mainly due to the scalability concerns I mentioned earlier. Also PodMonitoring generally fits most use-cases, albeit occasionally using workarounds, as you stated.
If you would like to leverage the prometheus-operator ServiceMonitor CRD, another option is to replace the OSS image with the gke.gcr.io/prometheus-engine/prometheus image in the prometheus-operator or kube-prometheus stack.

If I have N pods running behind my service, does a matching PodMonitoring scrape all of them at the same time? I have some metrics I don't want to get scraped in parallel, and for this, I think I'll need ServiceMonitoring.

@reith - Prometheus does not scrape targets at the same time, but uses an offset algorithm to spread the load amongst the targets found in a job.
Can you describe more what you're trying to scrape behind your service?

@pintohutch The metric I'm trying to push is directly read from a DB; it's not a per-pod metric and I don't need to calculate the metric - run the query - for each pod.
I know it doesn't sound perfect to push these metrics from pods but they fit my architecture best. Ideally, I'd prefer GCP Monitoring to make a chart from the data that is also replicated to the Bigquery but it doesn't seem viable. I could also create another single-pod deployment but it brings some overhead.

The metric I'm trying to push is directly read from a DB; it's not a per-pod metric and I don't need to calculate the metric - run the query - for each pod.

IIUC you have N pods, each with essentially the same set of metrics you're trying to scrape (i.e. foo_total=1 on all N pods?) And you don't want to have to write N copies of the data to GMP?

I know it doesn't sound perfect to push these metrics from pods but they fit my architecture best. Ideally, I'd prefer GCP Monitoring to make a chart from the data that is also replicated to the Bigquery but it doesn't seem viable. I could also create another single-pod deployment but it brings some overhead.

@lyanco may be able to answer any questions you have around gaps in Google Cloud Monitoring, but I think we'd need a little more detail.

The metric I'm trying to push is directly read from a DB; it's not a per-pod metric and I don't need to calculate the metric - run the query - for each pod.

IIUC you have N pods, each with essentially the same set of metrics you're trying to scrape (i.e. foo_total=1 on all N pods?) And you don't want to have to write N copies of the data to GMP?

That's right. I think a ServiceMonitor would let me do this but I haven't worked with other implementations of Prometheus operators.

I think you can do this with PodMonitoring by adding a specific label to one of the pods and then adding that label to the selector field in the PodMonitoring.

Yea - if there's a particular pod that is, say leader: true or something, that could work.

It could also work if you have a special label on your metrics from one of the pods using metricRelabeling to drop the time series from other pods.
The fundamental reason we haven't supported service-based monitoring is due to scaling concerns when running Prometheus as a DaemonSet. Having every pod in a 1000 node cluster watching K8s endpoints stresses the api server.

I think you can do this with PodMonitoring by adding a specific label to one of the pods and then adding that label to the selector field in the PodMonitoring.

The pods are part of a Deployment and have the same set of labels. I think it's an anti-pattern to treat specific pods of Deployments differently. I don't want to bother myself with relabeling pods once a pod crashes or the number of replicas decreases.

It could also work if you have a special label on your metrics from one of the pods using metricRelabeling to drop the time series from other pods.

I'd also like to decrease the number of redundant readings, not just the number of samples pushed to GMP.

The fundamental reason we haven't supported service-based monitoring is due to scaling concerns when running Prometheus as a DaemonSet. Having every pod in a 1000 node cluster watching K8s endpoints stresses the api server.

I don't understand why it'd need to watch endpoints. The operator could watch services and configure Prometheus to scrape cluster IPs, couldn't it?

I don't understand why it'd need to watch endpoints.

If we wanted service-monitoring, it may be preferable to watch endpoints so we can get the service labels in addition to the pod or node (via __meta_kubernetes_endpoint_address_target_kind ) hosting the service to enrich the target relabeling we do (this is what prometheus-operator does for example).

The operator could watch services and configure Prometheus to scrape cluster IPs, couldn't it?

Indeed, but this would essentially be folding in features of Prometheus service discovery to the operator, which would be a pretty big expansion in concerns and complexity. Not to mention the risk of OOMing the operator in larger clusters with dozens or hundreds of services (which is bad for a lot of reasons, not the least of which it being our webhook server).
This is not to say it's impossible or that we won't some day pursue this feature, but it just hasn't been high-enough priority to warrant feature development for, as most can get by with pod-level monitoring.

I had a discussion with @pintohutch regarding how to watch endpoints efficiently. Although it's more of a general discussion than GMP-specific, we both think others may find it helpful. So I'll post it here:

@simonpasquier @ArthurSens Please check my comment above. For more details please check my (just submitted) proposal.


Error on player join.

Stacktrace: https://gist.github.com/64bitjava/402eb4c9c42e45b142454c45f1cc23bb
config.yml: https://gist.github.com/64bitjava/c6fa7f4a73703a70e9320d1f3fbc9e83
waterfall.yml: https://gist.github.com/64bitjava/72ba497c493f7794edadd81b46140cbb
Plugins: AlwaysOnline, nuvotifier-universal-2.3.3, SlashServer, UltimateBungee and ServerSelectorBungee.
EDIT
Version: http://i.imgur.com/EzSSCVy.png

Interesting... I'll take a look at this when I get back ;)

Anyone able to confirm if this is still an issue?

Yes that is still an issue on player join. Tested it without any plugin on the latest waterfall build.

And it doesn't happen on BungeeCord?

Never happened, even with plugins installed.

Travertine with Paper 1.8.8: http://i.imgur.com/WCPNBiC.png (no plugins, everything default)
Waterfall with Paper 1.8.8: http://i.imgur.com/LRZCh2l.png (no plugins, everything default)
Waterfall latest build with Paper latest: http://i.imgur.com/EmkHoYo.png (no plugins, everything default)
Bungeecord latest with Paper latest: http://i.imgur.com/YQbzR6U.png (no plugins, everything default)

This issue is no real issue, more a notification:
java.lang.Throwable: Using a io.netty.buffer.PooledUnsafeHeapByteBuf, not a direct byte buf!
We are looking only for the second issue of the original stack trace:
Cannot get ID for packet class net.md_5.bungee.protocol.packet.Kick

Haven't seen it in a while.

I've got it when using waterfall latest

The Cannot get ID for packet class net.md_5.bungee.protocol.packet.Kick part or the Using a io.netty.buffer.PooledUnsafeHeapByteBuf, not a direct byte buf! part?

The

Using a io.netty.buffer.PooledUnsafeHeapByteBuf, not a direct byte buf!

Using a io.netty.buffer.PooledUnsafeHeapByteBuf, not a direct byte buf! is not a bug, rather a stacktrace added by us to get more debug information.

So... you're saying this debug information system administrators need to live with?

Bungee also had a message, we just provide a stack trace for extra information. Honestly by this point it cause more harm than good - I'll be revisiting this.

It's one thing to print stack traces but it's another classifying them as SEVERE using those log levels.

I revisited printing the stack trace a while back and decided against it, reverted back to Bungeecord behavior - the false issues it was causing were far greater than the good it was doing.
https://github.com/WaterfallMC/Waterfall/commit/b5d048b57a7837cbb0a4801764ec5d4d698b8fa3


Broken Medium Link

In the main README.md we have links to different resources.
One of them is our blog. Now it appears to be broken, we need to change it to the following URL: https://qbeast.io/academy-courses-index/ for the moment.

Fixed on #203


New draft

Description

Checklist:

[ ] I have tested my changes. No regression in existing tests.
[ ] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

CBMC_RETRY

CBMC_RETRY

/cbmc run checks


Convert the model (checkpoints) to .pb and .pbtxt for OpenCV use

Hi,
I managed to train a model with my own data. Now I want to use the model in OpenCV. OpenCV requires both .pb and .pbtxt as a tensorflow model. I didn't find a way to do it. Any suggestion?
I tried convert the trained model to onnx, but OpenCV failed to load it.
Thanks!

Hi,
I managed to train a model with my own data. Now I want to use the model in OpenCV. OpenCV requires both .pb and .pbtxt as a tensorflow model. I didn't find a way to do it. Any suggestion?
I tried convert the trained model to onnx, but OpenCV failed to load it.
Thanks!

It will fail loading it even if its a .pb file, this is because openCV doesn't have the implementation of alot of the layers.
So unless you feel like implementing them in OpenCv which is very much doable as they have an abstract class you can inherit from (I dont recommend this though). What i will recommend you is install the Tensorflow_C API if you are trying to implement it on a C/C++ platform (look for CppFlow for ease of use).

Thanks. I will look into CppFlow and Tensorflow C API.

I changed in train.py to
callbacks = [
            ReduceLROnPlateau(verbose=1),
            EarlyStopping(patience=5, verbose=1),
            ModelCheckpoint('checkpoints',
                            verbose=1, save_best_only=True),
            TensorBoard(log_dir='logs')
        ]

to avoid filling disk with unnecessary restart files and only saving the best model as *.pb


Tiers should be a "minimum" value

For gulp, we've created a Monthly subscription tier that is $25/month that will result in a donor getting a t-shirt.  We've had someone sign up for that tier so they can receive a t-shirt; however, they had previously said to @piamancini that they wanted to up their donation amount to $100/month.
The current implementation doesn't allow that donor to both join the t-shirt tier AND donate $100 per month.  Tiers should allow donors to adjust their amount higher (with the defined amount being the minimum that can be contributed).

Fixed in https://github.com/opencollective/frontend/pull/444


Poor performance on GTX 670 w/ i5 3570K @ 4.5 GHz

Each frame takes about 22 ms to render and my CPU usage is through the roof. 100% of 1 core at all times. GPU usage is also very high (98%)

Hi zouloum.
The sample is currently using a single core, this is going to be updated in the next few days, but 100% CPU sounds wrong. I am running this now and it shows 3% which is what it should be. As for the GPU render time, that also seems quite high, it should be around a quarter of that. Cad Scene Threaded and Bk3d show  good examples of multi-threaded rendering, you should look at these ones as well.
I will update you when chopper has been updated with multi threaded features.
Can you send me a screen shot of your CPU usage monitoring so I can investigate this?
Many Thanks
Chris Hebert
NVIDIA

Good morning.
There is now an update to vk_gl_chopper. The update really just involves a rework of the chopper geometry which was very high resolution. I now get ~3ms per frame on the GPU with 64 choppers. Please can you let me know how this runs for you.
Many Thanks
Chris Hebert
NVIDIA

Good afternoon
There is now another update to gl_vk_chopper. The synchronisation has been improved which should free the CPU up some more.
Many Thanks
Chris Hebert

Good evening.
Have you had a chance to retest the latest source? Please could you let me know if this has improved things for you so I can close the issue.
Many Thanks
Chris Hebert
NVIDIA

Running fast across Windows, Linux and Tegra.


custom source,  why ctx.GetRuleId() return empty?

in my custom mqtt source
func subscribe(ms *MQTTSource, client MQTT.Client, ctx api.StreamContext, consumer chan<- api.SourceTuple) {
......
log.Infof("[topicArray] Successfully subscribe to topic: %s, ruleId: %s, opId: %s, instanceId: %s, rootPath: %s",
topicArray[i], ctx.GetRuleId(), ctx.GetOpId(), ctx.GetInstanceId(), ctx.GetRootPath())
......
}
I  want to print ruleId, but ctx.GetRuleId(), ctx.GetOpId() return empty
My usage is wrong?

func (ms *MQTTSource) Close(ctx api.StreamContext) error {
ctx.GetLogger().Infof("Mqtt Source instance %d Done, ruleId:%s, opId:%s",
	ctx.GetInstanceId(), ctx.GetRuleId(), ctx.GetOpId())
if ms.conn != nil && ms.conn.IsConnected() && ms.conSel == "" {
	ms.conn.Disconnect(5000)
}
if ms.conSel != "" {
	ctx.ReleaseConnection(ms.conSel)
}
return nil

}
time="2022-02-09 17:36:52" level=info msg="Mqtt Source instance 0 Done, ruleId:, opId:" file="source/mqtt_source.go:355" source_pool=mqtt.pressure_0119_TwoAttrAgg

Hi @nickscut, I think you are using shared source. Thus, the source itself does not bind to a single rule/op, so that the return ruleId and opId are empty. What do you want to do with ruleId/opId in your source?

I want to try to solve this problem，https://github.com/lf-edge/ekuiper/issues/1166
I want to record the correspondence of topic, ruleId, consume

We will assign a ruleId and opId for shared source instance to be able to identify the source instance.


Extension launching fails: Failed to resolve env

Type: Bug
I am using several devcontainers and the python extenstion inside them.
Inside my container, I fail to launch the python extension because the env used in another one cannot be found in this one:

i am using poetry to generate a venv in my actual container, it is working fine and is located at /app/workspace/.venv/bin/python
my other container uses another python env located at /home/airflow/.local/bin/python, and inside my first container the loading of the extension fails. The entire logs is given at the end.

However, i can fix this issue by setting the python locator to "js" in my settings: "python.locator": "js", but need to rebuild each one of my containers with this option...
2024-12-20 08:57:45.334 [info] Native locator: Refresh started
2024-12-20 08:57:45.339 [info] Poetry environment manager found at: /app/.local/bin/poetry
2024-12-20 08:57:45.357 [info] Native locator: Refresh finished in 662 ms
2024-12-20 08:57:45.371 [error] Python Extension: interpreterManager.refresh [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined
}
2024-12-20 08:57:45.663 [info] > pyenv which python
2024-12-20 08:57:45.663 [info] cwd: .
2024-12-20 08:57:45.868 [error] [
'getActivatedEnvironmentVariables, Class name = M, completed in 1ms, has a falsy return value, Arg 1: Uri:/app/workspace, Arg 2: undefined, Arg 3: undefined, Arg 4: "/bin/zsh"',
[l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
]
2024-12-20 08:57:45.868 [error] Failed to apply terminal env vars undefined [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2024-12-20 08:57:45.869 [error] [
'Failed to activate a workspace, Class name = v, completed in 1006ms, has a falsy return value, Arg 1: Uri:/app/workspace, Arg 2: {"started":1734685064672}, Return Value: undefined',
[l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
]
2024-12-20 08:57:45.869 [error] Failure during activation. [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2024-12-20 08:57:45.869 [error] sendStartupTelemetry() failed. [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2024-12-20 08:57:46.929 [info] > conda info --json
2024-12-20 08:57:47.443 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/python_files/printEnvVariables.py
2024-12-20 08:57:47.443 [info] shell: bash
2024-12-20 08:57:47.447 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/python_files/printEnvVariables.py
2024-12-20 08:57:47.447 [info] shell: bash
2024-12-20 08:57:59.446 [info] Native locator: Refresh started
2024-12-20 08:57:59.473 [info] Poetry environment manager found at: /app/.local/bin/poetry
2024-12-20 08:57:59.532 [info] Native locator: Refresh finished in 86 ms
Extension version: 2024.22.0
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Linux x64 6.8.0-50-generic
Modes:
Remote OS version: Linux x64 6.8.0-50-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 3697)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_offwebnn: disabled_off

Load (avg)
1, 1, 1

Memory (System)
15.29GB (10.01GB free)

Process Argv
--new-window --crash-reporter-id 6b607d21-2d23-466f-b0cf-8b5b57ece824

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

Item
Value

Remote
Dev Container:  Some-name Dev Env

OS
Linux x64 6.8.0-50-generic

CPUs
Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 3647)

Memory (System)
15.29GB (10.00GB free)

VM
0%

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

Can you try running the command “Python: clear cache and reload” from the container to see if it behaves better?
Please also share the logs from: Output > Python Locator


Glsl is horrific !

Issue details
In the default shader, we declare directional light like that:
struct DirectionalLight
{
	vec3 color;
	vec3 direction;
};
uniform DirectionalLight u_dirLights[numDirectionalLights];

In the DefaultShader.java, we access it by u_dirLights[0].color .
Here the amazing compilation:

if numDirectionalLights > 1 : No problem!
if numDirectionalLights == 1 : Oh my g** u_dirLights[0].color is inexistant (location = -1).

WHY ??
Because if there is only one element in the array (numDirectionalLights == 1),
uniform DirectionalLight u_dirLights[numDirectionalLights]; becomes uniform DirectionalLight u_dirLights. You must use u_dirLights.color and not u_dirLights[0].color to access this element.
Sadly DefaultShader doesn't handle this exception, so you can't have only one directional light.
@xoppa Have you got an idea ?

I've never really worked with GLSL (or direct OpenGL at all, really),
but isn't this something you can handle with macros? If
numDirectionalLights is 1, just set the array size to 2, and ignore the
second element.

On 5/2/2016 14:24, js78 wrote:

    Issue details

In the default shader, we declare directional light like that:
|struct DirectionalLight { vec3 color; vec3 direction; }; uniform
DirectionalLight u_dirLights[numDirectionalLights]; |
In the DefaultShader.java, we access it by |u_dirLights[0].color| .
Here the amazing compilation:

if |numDirectionalLights > 1| : No problem!

if |numDirectionalLights == 1| : Oh my g** |u_dirLights[0].color|
is inexistant (location = -1).
WHY ??

Because if there is only one element in the array
(numDirectionalLights == 1),
|uniform DirectionalLight u_dirLights[numDirectionalLights];| becomes
|uniform DirectionalLight u_dirLights|. You must use
|u_dirLights.color| and not |u_dirLights[0].color| to access this element.
Sadly DefaultShader doesn't handle this exception, so you can't have
only one directional light.
@xoppa https://github.com/xoppa Have you got an idea ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/libgdx/libgdx/issues/4063

Guess you mean u_dirLights[1].color. I can't remember ever having an issue with a single light and I'm pretty I accounted for that. Can you provide your sscce?

No I really mean u_dirLights[0].color to get the location.
I will provide an sscce.

I tested on another computer and I don't have the problem. Maybe a driver fault... Do you think a driver could do such black magic @xoppa ?

Probably. It is very unlikely that the spec defines a different introspection based on the size of an array. It seems like the reserve is true though: "Note that the array index can be removed in these cases. Thus the query-by-name APIs will accept either anArray or anArray[0]. But if you query the name, you will always get the "[0]" version." So it might be possible to always omit the [0], to work around your issue. But can't say that for sure though, I haven't tested it. It also might be different for glsl es or expose other driver issues. And it sure does not make it more readable. So I'm reticent for such "fix", especially if it fixes a very scarce driver issue.

Ok I tested again and again and indeed it a driver bug!I close this.


Example not updated for Transaction_subscription in rust

Steps to Reproduce Issue
transaction_subscription.rs is not updated according to the latest changes.
Copy and run the program.
Expected Result
Successful subscription
Actual Result
Error: Subscription error : Subscription only supported by WebSocket client.

Thanks! WS is not supported on public full nodes operated by Mysten anymore, so I will remove the example.


jax.Array tutorial

Done. Added it to advanced tutorial section!

Also, there are a few errors in the readthedocs build that should be addressed here.

It looks like notebook execution failed... if you want to avoid doctest execution you can add it to the list here: https://github.com/google/jax/blob/726b2bc2ee1bbc5690ad2b6ab0e2b77aa88eb868/docs/conf.py#L111


fix: add kolorist to dependencies

We added the log to show workbox-build using kolorist, was there for the examples...

closing this since it is inlined, there is a  problem  in pwa sveltekit plugin...


(Bug) (Medium/Hard) Browser freezes every so often

If I leave shin running while surfing the web in another tab then after a while the browser will freeze for a minute and sometimes crash on me. Not sure if this is common for others or not.
Using chrome on a windows xp.

I've had it freeze up on me, using Chrome Version 68.0.3440.106 (Official Build) (64-bit) under linux
Didn't respond to any mouse input and no error message.


Cherry pick some missing commits from release/6.1

This branch was not cut in sync with stablle/20240723,  which contains patches that depend on the missing commits being cherry-picked here.

@swift-ci test


cmd/compile: remove badgerbadgerbadger optimization?

From walk.go:
func walkcompareString(n *Node, init *Nodes) *Node {
	// s + "badgerbadgerbadger" == "badgerbadgerbadger"
	if (n.Op == OEQ || n.Op == ONE) && Isconst(n.Right, CTSTR) && n.Left.Op == OADDSTR && n.Left.List.Len() == 2 && Isconst(n.Left.List.Second(), CTSTR) && strlit(n.Right) == strlit(n.Left.List.Second()) {
		r := nod(n.Op, nod(OLEN, n.Left.List.First(), nil), nodintconst(0))
		return finishcompare(n, r, init)
	}

	// cont...

I've always been skeptical that anyone writes code that matches this pattern; I'd like to remove it.
Thoughts/objections?
cc @mdempsky @randall77

Fine by me. Might want to double-check that the stdlib doesn't have any (except a possible test for this optimization).

That is a very common pattern... in bourne shell. Where the idiom is test "x$foo" != "x" as a workaround to handle cases where $foo might contain something that would be interpreted as a flag by the test command's option parser. I've also seen it in Makefiles, I think. I agree that it seems vanishingly unlikely to show up in go.
Also why is the function not called walkCompareString with a capital C?

Also why is the function not called walkCompareString with a capital C?

It's a subroutine of the vestigially-named walkcompare function. We try to toe a balance between adopting current Go conventions and staying consistent with the current archaic code base.
See also #27167.

For the record, this was here because of https://groups.google.com/g/golang-nuts/c/7Ks1iq2s7FA/m/rS60bS4aMi4J.


Fine-tune a pre-sparsified YOLOv5l6 1280 model

Reciepe for Yolov5l6 is not currently available for reproducing, so how I can use transfer laearning on my custom data? I use this CLI:
sparseml.yolov5.train
--cfg yolov5l.yaml
--weights zoo:cv/detection/yolov5-l6/pytorch/ultralytics/coco/pruned75_quant-none?recipe_type=transfer_learn
--recipe zoo:cv/detection/yolov5-l6/pytorch/ultralytics/coco/pruned75_quant-none?recipe_type=transfer_learn
--data my-custom-data.yaml
--patience 0
--hyp hyps/hyp.finetune.yaml
I used it before on a yolov5s model, with the corresponding changes to the recipe, weights ,and the model arch it works fine.
However it produces a yaml loading error when I tried it for my large model (yolov5l6 1280), after doing some checking I see that you say that the recipe for reproducing the results for this model(you mean training) it is not currently available.
https://sparsezoo.neuralmagic.com/models/yolov5-l6-coco-pruned75_quantized?comparison=yolov5-l6-coco-base&tab=1
My question is : how I can fine-tuning a pre-sparsified YOLOv5l6model ?

Hi @omaralnasier. I have pushed a transfer learning recipe to YOLOv5l6 pruned75_quant. You can use the command you mentioned above to do the transfer learning (please use --cfg yolov5l6.yaml).
Also, please feel free to experiment w/ hyper-parameters for your specific use case. For instance, you can change the number of epochs and quantization learning rate by using:
--recipe_args '{"num_epochs":30,"quantization_lr":5e-5}'


Create form

Using google docs, create a form with the following:

[ ] Urgency scale
[ ] Location in house: list of items
[ ] Categories: list of items
[ ] Description
[ ] What have you tried

INSTEAD OF GOOGLE DOCS
create a new form in HTML

create a .html page
create a CSS file and link it
create a form with values listed above


Azure Storage picker is slow and UX could be improved

Version
<IP_ADDRESS>327
Describe the bug
Azure Storage explorer picker does not let me
a. pick my tenant
b. pick my subscription
c. pick my storage account.
The more important you are as a customer the more likely you are to have multiple accounts to pick.

Enumerating all resources is NOT acceptable
Showing me a giant blob of storage accounts is NOT acceptable

To Reproduce
Steps to reproduce the behavior:

Add Storage accounts as ME
WAIT FOR EVER
Scroll through a list of 1000s of storage accounts.
Delete the software, quit your juob  and go start a coconut shack on the beach, cause life isn't worth it.

Expected behavior

drop down with tenant. Let me pick. Make the selection sticky.
Drop down with subscriptions.  They should alphabetically sorted.  Let me pick.  Make the selection sticky.
Drop down with Resource Groups. They should be alphabetically sorted. Let me pick. Make the selection sticky.
Drop down with Resources.  They should be alphabetically sorted. let me pick.

Screenshots

[bug]

@tomlm -
This was a placeholder widget until a more robust solution could be implemented. Azure storage accounts for a substantial user also takes 600+ api calls to retrieve which is the reason for the long delay. I brought this concern up very early on in the design and it was determined that we either needed to pull this feature altogether or leave it as-is until we could dedicate more design cycles for a permanent solution that addresses this.

Merging in other 2 related issues that fall under the same category of Azure Storage Picker UX improvements: (#1491, #1492)

Layout needs improvement

Layout doesn't have consistent spacing
Scroll bar / word wrap / ellipsis truncation is missing for long entries


routeActions.push vs history.push

I'd like to know what is the benefit of using dispatch(routeActions.push('/foo')) instead of react-router/browserHistory.push or this.context.router.push? I thought it's because we can pass some additional arguments into the action creator dispatch(routeActions.push('/foo', {test: 'test'})) and receive them in reducer case UPDATE_LOCATION: console.log(action.test); but that's not the case.

It's so you can track the action via middleware (such as analytics) and respond to those actions before history has a chance to touch them.
Support for more args is being tracked in #187

I think it's implicit that using this library indicates you want to interact with the router using redux as much as possible. There are other benefits, but I think the primary one is good code patterns. I don't think that needs to be stated, but feel free to add a PR if you have something compelling in mind :smile:


Active color for view frame

Add support for using different color for frame of currentView by new Attribute called ActiveColor.
The behavior is similar to BgColor in Gui and View struct. By default the ActiveColor is set to ColorWhite so that everything looks same as without setting it.
For coloring frames without breaking the current API I added SetRuneWIthColor function which takes also the BG and FG colors as parameters. To fully benefit from this feature I added SetCurrentViewOnTop function which combines SetCurrentView and SetViewOnTop functions so that we don't need to loop views through twice. This is related to use case where the views are combined in tmux style, with shared frame lines.
_examples/activation.go demonstrates the usage of setting ActiveColor for Gui and View.

I applied some changes and pushed them to branch heppu-active. The most relevant ones are:

I merged *Gui.SetRuneWithColor with *Gui.SetRune. I know it breaks the API, but we are in v0.3 and I feel it's better to put consistency first. For instance, this change makes *Gui.SetRune consistent with *View.setRune.
I removed *Gui.SetCurrentViewOnTop. It forces you to loop twice over the views, but the performance penalty shouldn't be a problem (won't be called continuously) and it keeps the API simple.
*Gui.SetCurrentView returns (*View, error), just like *Gui.SetViewOnTop.
Minor style changes.
I updated _examples/dynamic.go to use ActiveColor (I like it :D).

What do you think?
Thanks a lot for your contribution!

I thought the same but was afraid that you might nor feel the same about breaking the current API.
Makes sense and simplifies the API like you said.
I was thinking exactly the same thing when going through the source.

Everything looks good to me. =)

@jroimartin I applied the changes to this merge request so that it can be merged.

@heppu I've merged the branch heppu-active because I had already squashed your commits and it was easier to do fast-forward. I hope you don't mind.

Not at all thanks for great library =)

Cool! Could you give a look at #63? It's kinda related :)

I've just realized that the original behaviour of *Gui.{FgColor,BgColor} was modified. Originally, these fields were used to define the color of the GUI (frames), but with these changes it stopped working.
So, I pushed the following change c0ae0719314996cfc7f888f87896b35b748aa3e2:

Use *Gui.{FgColor,BgColor} to set GUI's color.
Use *Gui.{SelFgColor,SelBgColor} to set current view's color.
Drop *Gui.ActiveColor and *View.ActiveColor.

I think that using *Gui.{SelFgColor,SelBgColor} to set current view's color is more consistent with *View.{SelFgColor,SelBgColor}, which is used for line highlighting.


Volumetric Fog problem #1

Terasology Alpha 64
Linux Mint 17-3
Java JDK 8
Installed using the launcher
I played a bit with the graphics, and recognized the following issues.
If you open the graphic-setting while in a server/map, your unpicked/dropped items will not show any texture.
The way to fix is to reload the map, reconnect to the server.
Screenshot
Mirror2
If you allow Volumetric Fog, the following happens, even after game restart it do not work.
Screenshot
Mirror2

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32064230-volumetric-fog-problem-1?utm_campaign=plugin&utm_content=tracker%2F5279&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F5279&utm_medium=issues&utm_source=github).

The issue with the untextured objects seems to be the same as in #966.
The issue with the Volumetric Fog is a new one, as until recently we had no graphic option for Volumetric Fog.
@Translator5: can you please:

add your screenshot in a comment to issue #966.
edit this issue, title included so that it's only about the Volumetric Fog problem.

@Cervator: please assign this issue to me for the time being. As I'm not going to work on it for a while at least, what do you think we should do? Remove the Volumetric Fog option altogether or leave there but perhaps label it as broken?

@emanuele3d assigned the issue to you. Are you able to reproduce the issue/track it down to the option?

@skaldarnar, I am able to reproduce. I'm not sure what you mean with "track it down to the option". =?

eh, I shouldn't write comments when in a hurry :laughing: my thought was to find the spot where it breaks, i.e., why does the new option break the game. Here's a reference to the PR: https://github.com/MovingBlocks/Terasology/pull/2211

By my understanding @tdgunes has enabled the turning on/off of a setting he found in the Rendering config. However, this doesn't mean the underlying effect, volumetric fog, is currently functional. Hence my question: assuming it can't be easily fixed, do we leave the option there, perhaps labeling it as "broken" or do we hide it from the video settings?

Well, the option is already in the experimental section and defaulted to off, so I'm not losing sleep over it :-) We still even have an Oculus Rift toggle in there which has been broken for ages.
I think we should keep the options but if something is broken 100% maybe we should ghost out the checkbox to indicate "broken" entirely? Although I'm not sure we can inactivate a checkbox?

@Cervator  I believe I resolve this in pull #2256

@pollend the volumetric fog is still an issue in dev. build #1.681 alpha 2016-03-30T05:13:51Z!
The dropped-items are fixed!

@Translator5 I think we should keep this open as volumetric fog is indeed broken. The other fix was covered by #966 which is now closed. I'll rename this a bit for clarity
I've also submitted #2268 to get the UI support for disabling the volumetric fog checkbox until it is working again.


Support passing rootProps to resolveData

Summary
This PR adds support for passing rootProps from newData.root.props into resolveData to enable dynamic configuration based on root-level properties.
Changes

Modified useResolvedData to extract rootProps from newData.root.props.
Updated resolveComponentData to accept and pass rootProps into resolveData.
Enhanced Hero component to demonstrate usage of rootProps.
Updated type definitions in Config.tsx to include rootProps.

Testing

Verified that rootProps are correctly passed to components.
Ensured backward compatibility with existing workflows.

Apologies for delay in reviewing your PRs @haidv1992 - I've clocked them but have some catching up to do. Watch this space!


Multipliers..?

Is there any way to change the multipliers in the .br or bet roll as I think the current multipliers are *2 *4 and *10...
(hopefully this is suitable for github don't kill me kyousei ^^;)

@ChiiTachii, if you're hosting the bot, you can edit the database to adjust those multipliers.

On that note, @Kwoth, should those values be added to being able to be modified by .bce?


Cannot run network client code

Hello,
I am trying to use your technique to package a minimal container for my application but I run into an issue: application uses wreq as a client to connect to various services and when running in a minimal container, I got the following error:
getProtocolByName: does not exist (no such protocol name: tcp)

This looks very similar to https://github.com/bos/wreq/issues/5 : Some file is probably missing, however I added the missing /etc/protocols and /etc/services files from netbase package which apparently could be causing that issue. And I am still encountering same problem.
Any clues?

I actually ran into that exact issue myself, and don't know what caused it. I'll ping someone at work who may know something about this.

Great, thanks! I will keep on trying to solve it too...

FWIW, Here is the list of opened files (removing not found) when it successfully connects to the outside world:
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
open("events.dat", O_RDWR|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 11
open(".server.key", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 12
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 13
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 13
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 13
open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 13
open("/etc/protocols", O_RDONLY|O_CLOEXEC) = 13
open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 14
open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 14
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 14
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 14
open("/lib/x86_64-linux-gnu/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 14
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 14
open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 14
open("/dev/random", O_RDONLY|O_NONBLOCK) = 15
open("/dev/urandom", O_RDONLY|O_NONBLOCK) = 15
open("/dev/random", O_RDONLY|O_NONBLOCK) = 15
open("/dev/urandom", O_RDONLY|O_NONBLOCK) = 15

Looks like some of those files are missing in your manifest, I will try to copy them and see how it goes.

OK, apparently adding all libnss_XXX files solves my issue: Application can connect to outside world.

That's cool. How much extra space does that take in the image?  WDYT?

LGTM, thanks!

@abailly @snoyberg I had to add a complete libc & ca-certificates from ubuntu to make outbound https work.

I ran into another issue: The /etc/hosts file in the container is empty when it starts: http://stackoverflow.com/questions/30874184/why-is-etc-hosts-file-empty-in-my-docker-container

@dysinger do you have an example of how you managed to make it find the certificates?

I got this same error in one of my Docker images that was attempting to run a Snap app inside of a Ubuntu 16.04 image. Installing these packages in the image fixed the issue:
libnss3 libnss-lwres libnss-mdns

Thanks for the tip in the right direction! (Note: I don't know if all three are required but the issue is now resolved)

getProtocolByName: does not exist (no such protocol name: tcp)

Is still happening to me when accessing hackage over http concurrently.


Dummy demo issue

uid: dummy_demo_dataset
type: primary
description:

name: The Dummy Demo Dataset
description:
homepage: http://domain.org/dummy
validated: False

#self-assign

#help

#help

#self-assign

#self-assign


Fix Golang client setting of cache-control max-age

What does this PR (Pull Request) do?

[x] This PR fixes #3550

Which Traffic Control components are affected by this PR?

Traffic Control Client (Golang)

What is the best way to verify this PR?
Import and use golang client, POST to TC API using an appropriate struct to apply a cache response header for cache-control max-age, it should now set the parameter in the header correctly. Currently no solid test harness exists for most of this functionality, a separate issue will need to be established for better testing the Golang client
If this is a bug fix, what versions of Traffic Ops are affected?

ALL versions including Golang client

The following criteria are ALL met by this PR

[x] This PR includes tests OR I have explained why tests are unnecessary
[x] This PR includes documentation OR I have explained why documentation is unnecessary
[x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Can one of the admins verify this patch?

ok to test
thanks for the contribution!    Can you change the title of the PR to describe the fix rather than the issue number?   That helps when we look back at the history when we are ready for a release.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3647/
Test PASSed.

Done! Yeah I just got a little lazy and direct linked the issue instead of doing the right thing :)

we should merge this @ocket8888 . @rapenchukd can you fix the merge conflict??

no need, I got this


Bucket Sort

🚀 Feature
Add Bucket Sort Algorithm.
Have you read the [Contributing Guidelines on Pull Requests]
yes
Motivation
This algorithm deals with much lesser amount of elements at each step than the original so is easy to execute.
Pitch
Elements are divided in different buckets and each bucket is sorted indivitually at a time.

I want to work on this issue in C++.

I want to work on this issue in C

Sure @Anjali2001saxena and @avinashkranjan you people can work on this :)

I would like to take this issue in Java.

@Kajol-Kumari I would like to work on this issue in Python

@Kajol-Kumari I would like to work on this issue in Python

@santushtisharma10 Go Ahead with Python

I would like to work on this issue in C++ as part of HaikinCodes Contributor's Hack 2020

I would like to work on this issue in C++ as part of HaikinCodes Contributor's Hack 2020

Already assigned to @Anjali2001saxena for C++.

I would like to work on this issue in Python as part of HaikinCodes Contributor's Hack 2020

I would like to work on this issue in Python as part of HaikinCodes Contributor's Hack 2020

Hey @Adityanagraj we have already assigned @santushtisharma10 for python. Also please look at the comments and assignments first before commenting to avoid unnecessary comments :)

Please assign this to me in Golang.


More details in clickhouse output plugin

Could you provide more details in clickhouse output plugin? i.e, the authentiation config.

Out of curiosity, @sliontc are you shipping logs to ClickHouse?  Or metrics?  Or something else?


JSON.parse: unexpected character at line 1 column 1 of the JSON data

CREATE TABLE t
(
    `account_id` UInt64,
    `_is_deleted` UInt8,
    `_version` UInt64
)
ENGINE = ReplacingMergeTree(_version, _is_deleted)
ORDER BY (account_id);

vs + ` around _is_deleted
CREATE TABLE t
(
    `account_id` UInt64,
    `_is_deleted` UInt8,
    `_version` UInt64
)
ENGINE = ReplacingMergeTree(_version, `_is_deleted`)
ORDER BY (account_id);

https://fiddle.clickhouse.com/464ef3b7-7475-42e6-b5a3-5cf015b921d6

select coalesce(1,1)

vs
select "coalesce"(1,1)

https://fiddle.clickhouse.com/464ef3b7-7475-42e6-b5a3-5cf015b921d6

Спасибо за репорт. WAF решил, что в запросе SQL injection 😁 Поправим

create table test(
    foo String,
    ts SimpleAggregateFunction(min, DateTime)
)engine = SummingMergeTree() Partition by (toYYYYMMDD(ts))
order by (foo);

JSON.parse: unexpected character at line 1 column 1 of the JSON data

I will ask website owners to disable CloudFlare WAF SQL injections for Fiddle.

WAS has been disabled. Now it works!


Keybind overlap issue/Scale tool bug

Presently, the Scale tool shortcut (S) overlaps with the basic movement keys (WASD) in the 3D editor. It is very easy to accidentally hit S while trying to move the camera, which can often result in objects being unintentionally scaled without notice as there is currently no obvious visualization of an object's scale in the 3D editor (many objects are still represented as fixed cubes). Perhaps rebinding the tool shortcuts to also require Shift to be held down would remedy this.
Additionally, there is a legitimate bug present. The scale tool will still be active while moving the camera which you can see occur in the attached gif:

Currently, Shift is used while moving to increase movement speed, so that would need to be taken into consideration.

Currently, Shift is used while moving to increase movement speed, so that would need to be taken into consideration.

It is true, however that movement speed increase is only applied when you move the camera when you drag right click (as a matter of fact, WASD movement only work if you right click), meaning that this specific key can overlap without problems.
I think the main issue is that it's too easy to misinput S before you move the camera, triggering the scale tool and causing that issue shown above.

This will be addressed by cancelling all gizmo operations when you right click


Problem with save

Hello,
I tried to save a xls document in the folder C:windows\temp + some folder without success so far.
When I put a filename in parameter of the save function it works but when I tried to save the document in a specific path it does not work.
How can I handle this issue.
Thanks for your reply.

I think you have a problem with the path name C:windows\temp?
or check the permission :)
can you paste che code maybe someone would help

I have a variable named $documentToEdit with the path and the document name like this :
C:\Windows\TEMP/someUniqueFolder/Some document name.xls
then the code to save is this:
$writer->save($documentToEdit);
But with this I received the following error :
Warning: fopen(C:\Windows\TEMP/SomeUniqueFolder/Some document name.xls): failed to open stream: No such file or directory.
What I did and work so far is to write this :
$writer->save('test.xls);
who create and save a xls document in the web folder of my projet and then copy it with the filesystem of symfony in my unique folder on the temp folder of window and delete the test.xls document save with the $writer with the same filesystem.

On windows you should use only "" in the path

i tried with only  "" but the problem is still the same

I closed this issue is not related to this bundle, the bundle is only a factory doesn't handle fs or path
I suggest to use the sys_get_temp_dir


How to install rss-bridge in linux server (not docker)

Here is how to install rss-bridge on your linux server. Tested on Debian 11.
apt update
apt install nginx php-fpm php-mbstring php-simplexml php-curl
rm /etc/nginx/sites-enabled/default
cd /var/www
git clone https://github.com/RSS-Bridge/rss-bridge.git
chown -R www-data:www-data ./

Create /etc/nginx/sites-enabled/rssbridge:
server {
    listen 80 default_server;
    root /var/www/rss-bridge;
    access_log /var/log/nginx/rssbridge.access.log;
    error_log /var/log/nginx/rssbridge.error.log;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php-fpm.sock;
    }
}

systemctl reload nginx

The application is now browsable at its ip address and port 80.
You might want to add a server_name to the nginx config and remove
it as a default server.

Will move this to wiki later.

@dvikan you may want to alter the nginx config slightly
try_files $uri $uri/ /index.php$is_args$args; can result in a 403 error 'directory index of  is forbidden'. At least for the bandcamp bridge and I suspect for others as well.
you can simplify to:
try_files $uri /index.php$is_args$args;

Create /etc/nginx/sites-enabled/rssbridge:

Hello!
Please tell me how to configure the apache configuration?

Create /etc/nginx/sites-enabled/rssbridge:

Hello! Please tell me how to configure the apache configuration?

join #rssbridge on libera irc network

join #rssbridge on libera irc network

I don't understand this issue at all. Can I have more details, please?

the setup on apache is pretty much the same but simpler. most importantly is e.g. apt install libapache2-mod-php8.2 on debian 12.
which step are you stuck on?
see https://www.cyberciti.biz/faq/install-php-8-2-with-apache-on-debian-11-linux/

which step are you stuck on?

I copied the repository to /var/www/rss-bridge
Checked the installation php
php --version
PHP 7.3.31-1~deb10u4 (cli) (built: Jun 19 2023 19:10:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.31-1~deb10u4, Copyright (c) 1999-2018, by Zend Technologies
I don't know what to do next))

can you join #rssbridge on Libera? it's an IRC channel.
https://web.libera.chat/

can you join #rssbridge on Libera? it's an IRC channel.

Joined


Add support to set and test stx balance

For contracts using stx-transfer, units tests require to set stx balances for addresses as well as to get and verify them.

Duplicate to https://github.com/blockstack/stacks-blockchain/issues/1589


Automate installation of Atlantis using Flux CD

I am not using Terraform enough to make it worth the effort to setup Atlantis. At least not for the moment.


⚠ Bofrost.de has degraded performance

In 8ffb2c7, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 6430 ms

Resolved: Bofrost.de performance has improved in 9bfdd15 after 13 minutes.


About the GLIP install

I wonder the which pytorch version should be used. I install python 1.12.1 + cu113，but it fail in GLIP install. Error is: fatal error: THC/THC.h: No such file or directory; Any suggetions? Thanks in advance.

I see. I noticed you did not use GLIP, so I give up to install GLIP finally. By the way, pytorch 1.12.1 is also support the BLIP and CLIP.  So far, I can use your code normally. Thanks for you nice job!

By the way, why not use Grounding DINO as a detector?

Karine-Huang/T2I-CompBench#4
We try multi-modal models, such as miniGPT4, mPlug-Owl, MultiModal-GPT, InternChat, BLIP, may not perform well in spatial understanding. Therefore, a more accurate and intuitive approach like object detection is selected. UniDet is more suitable for the current task because of its strong performance on standard object detection benchmarks, like COCO and PASCAL VOC, makes it a suitable choice for tasks that require accurately detecting a wide range of objects. Other object detection might also be able to accomplish this task.

Thank you! But I'm curious about recent developments, such as whether GroundingDINO would yield better results?


Ignore or Allow only specific translation file in sync command?

Thank you for this great package,
Just wondering, would it be possible for an enhancement to ignore/allow specific translation file when we run sync command?
Let say i dont want to include laravel's default translations file.
Maybe add configuration to specify it which file to include or ignore in sync command?
Feel free to drop / discuss this issue, thanks!

If you are okay, i will draft a PR.

Thank you very much. I'll hold off on this one for now as I don't want to have to many functionalities in the translation manager for now. I


make the root file system read only and run as non-root user [K8SSAND-954][K8SSAND-962][K8SSAND-801]

What this PR does:
Make the root file system read-only and the user non-root for all containers that cass-operator deploys by default.
The goal is to adopt the principle of least privilege so that there shouldn't be any need for users to override the default pod security context or container level security contexts (unless they want less security).
Changes have been made to support both Cassandra and DSE.
I have added a new init container, base-config-init, which copies base config files onto a config volume. The config files generated by the server-config-init init container are copied onto this volume. It is worth noting that we can have server-config-init write directly to the new config volume. I held off on doing that though we should update the management-api entrypoint script. Coordinating those changing will make things a bit tricky so I held off for now.
The default PodSecurityContext is now configure with RunAsNonRoot: true. I have also added a default SecurityContext for all of the containers to keep things locked down.
Which issue(s) this PR fixes:
Fixes #196, #199, #210, #211
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
[ ] Documentation added/updated
[x] CHANGELOG.md updated (not required for documentation PRs)
[x] CLA Signed:  DataStax CLA

@burmanm, this is a fairly old PR. Is it still relevant?

Probably not at this point, the use-case/scenario itself is still not implemented, but there have been other changes to the cass-operator and other parts that this PR wouldn't be mergeable in any case.

ok, I'll close the PR then and we can revisit this at some point.


Test Jenkins integrasjon

A picture tells a thousand words
Before this PR
After this PR

Coverage increased (+0.08%) to 46.106% when pulling d202aaf8a6c2976c5eebee04a2c7bbe31794b8d7 on bjornreppen:color into 4f84147fff87231b00db62f3bfcd03a268feea3d on Artsdatabanken:master.


Hiding sidebar if on tablet, as well as phone?

I'd like the sidebar to hide (as it does on mobile devices) if it's smaller than a specified size. Any advice greatly appreciated.

You'll need to customize the @screen-* variables in the bootsrap.less file.


panic on parse-duration when no duration given

I recently wanted to listen to some SID (C64 Music) files and downloaded the whole library here. MPD can decode them by compiling with --enable-sidplay with the liblibsidplayfp package (on Arch Linux), and enabling the decoder in the conf:
decoder {
	plugin			"sidplay"
	songlength_database	"/home/stephen/Music/C64Music/DOCUMENTS/Songlengths.txt"
	default_songlength	"120"
	filter 			"true"
}

When running mpd-mpris when playing a sid file, the following error occurs:
panic: Parse duration: strconv.ParseFloat: parsing "": invalid syntax

goroutine 1 [running]:
github.com/natsukagami/mpd-mpris.(*Player).properties(0xc420098120, 0xc42014e000)
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/player.go:208 +0x14be
github.com/natsukagami/mpd-mpris.NewInstance(0xc4200a41e0, 0x3, 0xc420094240, 0xe)
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/instance.go:50 +0x25c
main.main()
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/cmd/mpd-mpris/main.go:43 +0x14e

When playing stops and mpd-mpris is run, this error occurs:
2018/08/18 18:49:01 strconv.Atoi: parsing "": invalid syntax
github.com/natsukagami/mpd-mpris/mpd.StatusFromAttrs
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/mpd/status.go:40
github.com/natsukagami/mpd-mpris/mpd.(*Client).Status
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/mpd/client.go:156
github.com/natsukagami/mpd-mpris.(*Player).properties
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/player.go:183
github.com/natsukagami/mpd-mpris.NewInstance
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/instance.go:50
main.main
        /tmp/yaytmp-1000/mpd-mpris/src/build/src/github.com/natsukagami/mpd-mpris/cmd/mpd-mpris/main.go:43
runtime.main
        /usr/lib/go/src/runtime/proc.go:198
runtime.goexit
        /usr/lib/go/src/runtime/asm_amd64.s:2361

When switching to a SID file, this error repeats:
2018/08/18 18:44:09 Parse duration: strconv.ParseFloat: parsing "": invalid syntax

I believe this is due to SID files not having a built in length, rather mpd parses the lengths from Songlengths.txt and prints "-:--" as its time.

I see, let me work on it.

Clearly, I did not expect mpd would play files with no length information!
Please try running on the latest commit (834e23150419e197f0571ef8be7c288d8838797f) to see if the problem has been fixed!

It words, but now when the playlist is clear or playback is over it spits out
2018/08/18 18:44:09 Parse duration: strconv.ParseFloat: parsing "": invalid syntax

over and over.
Starting it from the cleared state gives a panic:
2018/08/21 01:32:52 strconv.Atoi: parsing "": invalid syntax
github.com/natsukagami/mpd-mpris/mpd.StatusFromAttrs
        /home/stephen/go/src/github.com/natsukagami/mpd-mpris/mpd/status.go:43
github.com/natsukagami/mpd-mpris/mpd.(*Client).Status
        /home/stephen/go/src/github.com/natsukagami/mpd-mpris/mpd/client.go:156
github.com/natsukagami/mpd-mpris.(*Player).properties
        /home/stephen/go/src/github.com/natsukagami/mpd-mpris/player.go:186
github.com/natsukagami/mpd-mpris.NewInstance
        /home/stephen/go/src/github.com/natsukagami/mpd-mpris/instance.go:50
main.main
        /home/stephen/go/src/github.com/natsukagami/mpd-mpris/cmd/mpd-mpris/main.go:43
runtime.main
        /usr/lib/go/src/runtime/proc.go:198
runtime.goexit
        /usr/lib/go/src/runtime/asm_amd64.s:2361

I guess it is better to just ignore the parse errors, although they are weird!
I ruled the empty string case out yet the error still happens. I guess it is some invalid characters not showing up?

I'm getting the strconv.Atoi: parsing "": invalid syntax error on a paused state with an MP3 track. This is before I've unpaused MPD at any point since it started up.

Hi! May I get your mp3's metadata?

This seems to be true for any track on further testing so I don't think metadata will help. If the player is in a paused state when mpd-mpris starts, it won't work.

I see. Let me see what I can do
On Thu, Nov 22, 2018 at 1:10 PM Jake Stanger<EMAIL_ADDRESS>wrote:

This seems to be true for any track on further testing so I don't think
metadata will help. If the player is in a paused state when mpd-mpris
starts, it won't work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/natsukagami/mpd-mpris/issues/2#issuecomment-441097673,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIpFaUnaQziRQXIwupe-_bcZG_y0rp8_ks5uxuiXgaJpZM4WCfhs
.

It seems that there's some problem regarding the mpd library I am using or my wrapper around it.
Unfortunately, it is currently exam season for me now, I cannot focus on this. It is on top of my to-do list after examinations now

What sort of timescale are we looking at? I might be able to look into it and have a play around.

@JakeStanger sorry for the late reply. It seems that sometimes mpd status in paused state would not send information about volumes.
I took volume to be a must-have value, hence the parsing panic. I will work on a fix, and this time I will be reading the mpd specs to make sure I do things correctly.

@The-King-of-Toasters @JakeStanger Please give the latest changes on master a try.

@natsukagami Not the original poster, but the changes are working great for me.  I stream alot of SomaFM and a lot of the tracks don't provide length information which was causing the current release to crash for me.

Cool! I might pack a release tomorrow.

Closing this since it seems to be solved in 0.2.1

Sorry I didn't have time to test, thanks for the update!


Add missing custom fields to categories

Not sure if this is the only thing required, but it looked like it. Solves https://github.com/commercetools/commercetools-dotnet-sdk/issues/116 if that's the case.

Could you add the custom field also directly to the CategoryDraft please? But yeah this should be sufficient

Ah one thing may be missing is the respective update actions else you can't update the custom field

Like here:
https://github.com/commercetools/commercetools-dotnet-sdk/blob/master/commercetools.NET/Customers/UpdateActions/SetCustomFieldAction.cs
https://github.com/commercetools/commercetools-dotnet-sdk/blob/master/commercetools.NET/Customers/UpdateActions/SetCustomTypeAction.cs

That already seems to exist:
https://github.com/commercetools/commercetools-dotnet-sdk/blob/master/commercetools.NET/Categories/CategoryDraft.cs#L79
https://github.com/commercetools/commercetools-dotnet-sdk/blob/master/commercetools.NET/Categories/UpdateActions/SetCustomTypeAction.cs

Ah perfect 👍


Cannot to destroy the light in code while destroying the node2d.

Operating system or device - Godot version:
Godot official 2.1 stable version and Windows 10 Pro.
Issue description (what happened, and what was expected):
I wanted to remove the loaded node2D which had the light2d in it by code and the light did not remove. There are two scenes (Levels) and I change them in my main screen scene by removing the last scene from the node2d and loading, adding new scene from next level.
Steps to reproduce:
Create scene with Node2D as the first node with name "World" and then create light in it. After that create another scene with Node and attach a script to this node and create node2d in it with name "Level". In the script, if the "Level" has the "World" node then get_node("Level/World").queue_free() and load the "World" from another scene.
Link to minimal example project (optional but very welcome):

Uhm, I can't really understand what you mean, can you either put up a minimal example project or explain it better? Thanks.

I could not reproduce this in master

Thanks for testing, closing.


interpolate method from the Grid class raises IndexError

When trying to interpolate an array over a Grid using the interpolate method, an error is returned if the interpolation point is beyond the upper bounds.
Expected behavior
Extrapolate away the data array to interpolate when point lies outside boundaries
Actual behavior
Raises an IndexError
Steps to reproduce the behavior
The following example code shows the issue
import hj_reachability as hj
import numpy as np

bl = np.array((0., 0.))
tr = np.array((1., 1.))
grid = hj.Grid.from_lattice_parameters_and_boundary_conditions(hj.sets.Box(bl, tr), (10, 10))
values = np.random.random((10, 10))

grid.interpolate(values, np.array((1., 1.)))

Sorry for the delayed response -- thanks for finding this! Actually for grid values that are of type jax.Array instead of np.ndarray (the typical use case, at least for me) it seems that JAX's out-of-bounds indexing behavior has been masking the problem and making the buggy jnp.clip superfluous. Upon reflection, extrapolation probably shouldn't be allowed (or at least should be explicitly controlled by the user) so in addition to fixing the jnp.clip bounds I've changed the extrapolation behavior to return nans in #9.


[Application Refactoring / Bug] COD 229 - GetSalesDocTypeUsage

Please provide fix on next BC14 cumulative update if possible.
If 'S.Invoice Draft' is used for non-posted invoices (Invoice), then it should be used for non-posted credit-memo's (Credit Memo) too. Usage 'S.Cr.Memo' is to be used for posted documents.
So please change ...

CASE SalesHeader."Document Type" OF
  SalesHeader."Document Type"::Quote:
    EXIT(ReportSelections.Usage::"S.Quote");
  SalesHeader."Document Type"::"Blanket Order":
    EXIT(ReportSelections.Usage::"S.Blanket");
  SalesHeader."Document Type"::Order:
    EXIT(ReportSelections.Usage::"S.Order");
  SalesHeader."Document Type"::"Return Order":
    EXIT(ReportSelections.Usage::"S.Return");
  SalesHeader."Document Type"::Invoice:
    EXIT(ReportSelections.Usage::"S.Invoice Draft");
  SalesHeader."Document Type"::"Credit Memo":
    EXIT(ReportSelections.Usage::"S.Cr.Memo");

to

CASE SalesHeader."Document Type" OF
  SalesHeader."Document Type"::Quote:
    EXIT(ReportSelections.Usage::"S.Quote");
  SalesHeader."Document Type"::"Blanket Order":
    EXIT(ReportSelections.Usage::"S.Blanket");
  SalesHeader."Document Type"::Order:
    EXIT(ReportSelections.Usage::"S.Order");
  SalesHeader."Document Type"::"Return Order":
    EXIT(ReportSelections.Usage::"S.Return");
  SalesHeader."Document Type"::Invoice:
    EXIT(ReportSelections.Usage::"S.Invoice Draft");
  SalesHeader."Document Type"::"Credit Memo":
    EXIT(ReportSelections.Usage::"S.Invoice Draft"); // <<<<<<

[x]  Available in BC 15.1

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Extended documentation

Added some examples of using TinyMCE setup method as well as adding custom plugins. English is not my native language so you are welcome to correct it.

Thanks.


Resolution on screenshots is 2 high

See title

Hey @bquast, happy to help, which screenshots?

Hi @darioalessandro, I meant the resolution of the monitors that took the two screenshots in README.md are too high, making the content too small.
If you just lower the resolution while taking the screenshots, then the content will be larger in the image.
Does that make sense?

yes

This is done


Json Format

Adds json graph format as a first step to resolve #32.
Note that options like showConflicts and showDuplicates have no effect on the output. The json always contains all information,  because it is considered that the consumer of the json files will filter the data as needed.
For the same reason, the aggregated graph contains all dependencies, including conflicts.

Coverage increased (+0.9%) to 82.419% when pulling be63d95e0fe40f4aa1023101efee69521a979612 on ibirrer:master into 21bc00e6f9188eb57d27a8378e79c6fa1fc223ca on ferstl:master.

@ibirrer
Thanks for the PR! Before merging, I'd like to discuss the showConflicts/showDuplicates options in the aggregated graph:

Note that options like showConflicts and showDuplicates have no effect on the output. The json always contains all information, because it is considered that the consumer of the json files will filter the data as needed.

I don't think this is a good idea. As I explained in the FAQ entry "Why can't I show duplicates and conflicts in the aggregated graph?" (at the bottom of the page), this could lead to very confusing results.
The reason is that the aggregated graph is the "sum" of all modules' individual graphs and each module might see the same dependency from A to B in different resolutions (included/duplicate/conflict). So in the graphical representation there might be two nodes with three arrows between them. But you won't see which module caused the duplicate or conflict.
Note, that the aggregated graph is not a dependency tree. If several modules have a dependency (direct or transitive) to X, the graph will show all different paths to that dependency.

Coverage increased (+0.9%) to 82.489% when pulling f5e599c29f41bf6d5581f28a4e588dc44c2c21c5 on ibirrer:master into 2358103fa4109c460560c7c5521cc7e39e7ac908 on ferstl:master.

Coverage increased (+0.9%) to 82.489% when pulling 3f9070c47e31e8f5e9b53cc8c30ad46863686372 on ibirrer:master into 2358103fa4109c460560c7c5521cc7e39e7ac908 on ferstl:master.

Thanks for the comment. I understand your points about the aggregated graph. I reverted the change in the AggregatingDependencyGraphMojo (and also rebased to your latest master). I still think that the json should always show group id, version, conflict and duplicates for the normal graph and changed DependencyGraphMojo accordingly.
The output of mvn depgraph:graph -DgraphFormat=json of module-3 now looks as follows:
{ "artifacts":
  [ { "id": 0
    , "artifactId": "module-1"
    , "groupId": "com.github.ferstl"
    , "version": "1.0.0-SNAPSHOT"
    }
  , { "id": 1
    , "artifactId": "commons-codec"
    , "groupId": "commons-codec"
    , "version": "1.10"
    }
  , { "id": 2
    , "artifactId": "commons-lang3"
    , "groupId": "org.apache.commons"
    , "version": "3.1"
    }
  , { "id": 3
    , "artifactId": "module-3"
    , "groupId": "com.github.ferstl"
    , "version": "1.0.0-SNAPSHOT"
    }
  , { "id": 4
    , "artifactId": "module-2"
    , "groupId": "com.github.ferstl"
    , "version": "1.0.0-SNAPSHOT"
    }
  , { "id": 5
    , "artifactId": "guava"
    , "groupId": "com.google.guava"
    , "version": "21.0"
    }
  , { "id": 6
    , "artifactId": "commons-lang3"
    , "groupId": "org.apache.commons"
    , "version": "3.0"
    }
  , { "id": 7
    , "artifactId": "querydsl-core"
    , "groupId": "com.mysema.querydsl"
    , "version": "3.7.4"
    }
  , { "id": 8
    , "artifactId": "jsr305"
    , "groupId": "com.google.code.findbugs"
    , "version": "1.3.9"
    }
  , { "id": 9
    , "artifactId": "mysema-commons-lang"
    , "groupId": "com.mysema.commons"
    , "version": "0.2.4"
    }
  , { "id": 10
    , "artifactId": "bridge-method-annotation"
    , "groupId": "com.infradna.tool"
    , "version": "1.13"
    }
  ]
, "dependencies":
  [ { "from": 0
    , "to": 1
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 0
    , "to": 2
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 3
    , "to": 0
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 4
    , "to": 0
    , "resolution": "OMITTED_FOR_DUPLICATE"
    , "scopes": [ "compile" ]
    }
  , { "from": 4
    , "to": 5
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 4
    , "to": 1
    , "resolution": "OMITTED_FOR_DUPLICATE"
    , "scopes": [ "compile" ]
    }
  , { "from": 4
    , "to": 6
    , "resolution": "OMITTED_FOR_CONFLICT"
    , "scopes": [ "compile" ]
    }
  , { "from": 3
    , "to": 4
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 7
    , "to": 5
    , "resolution": "OMITTED_FOR_DUPLICATE"
    , "scopes": [ "compile" ]
    }
  , { "from": 7
    , "to": 8
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 7
    , "to": 9
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 7
    , "to": 10
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  , { "from": 3
    , "to": 7
    , "resolution": "INCLUDED"
    , "scopes": [ "compile" ]
    }
  ]
}

I polished the implementation a bit and made some slight adjustments to the JSON format:
https://github.com/ferstl/depgraph-maven-plugin/pull/47
OK?


holoviews bokeh backend broken with latest bokeh==0.12.4

I installed holoviews and bokeh through pip, which delivers the latest versions (1.6.2, and 0.12.4 respectively).
When holoviews is loaded with the bokeh backend, a simple sine-curve example from the docs crashes.
I have included the code and Jupyter notebook output below.
The fix: when I force pip to install bokeh==0.12.3, everything works as expected.
Bokeh mentions that their API may have breaking changes as they approach v1.0. It seems that you may be aware of the change (through #1036), and because the Travis build environment has fixed the version (in the conda create command) to bokeh=0.12.3.
I just wanted to make you aware of an issue that is apparent through current pip installs.
Perhaps a warning to users of holoviews could be added on hv.notebook_extension('bokeh')? Or perhaps a minor version bump to PyPI is imminent that includes #1036 (I believe this actually addresses the root cause of the problem)?
--
MWE:
import holoviews as hv
hv.notebook_extension('bokeh')

>>> HoloViewsJS, BokehJS successfully loaded in this cell.

points = [(0.1*i, np.sin(0.1*i)) for i in range(100)]
hv.Curve(points)

>>> AttributeError [Call holoviews.ipython.show_traceback() for details]
'Line' object has no attribute 'set'

Checking the traceback for more detail, I get:
hv.ipython.show_traceback()

Traceback (most recent call last):

  File "~/.virtualenvs/py34/lib/python3.4/site-packages/holoviews/plotting/bokeh/element.py", line 511, in initialize_plot
    with abbreviated_exception():

  File "~/.virtualenvs/py34/lib/python3.4/site-packages/holoviews/plotting/bokeh/element.py", line 468, in _update_glyph
    print("Glyph Type: ", type(glyph))

AttributeError: 'Line' object has no attribute 'set'

We fixed this issue on master a while back. I'd suggest either downgrading to bokeh 0.12.3 for now or upgrading to holoviews master or one of the recent dev releases. We're also hoping to have a holoviews 1.7 release later this month.

Going to close this, since it is fixed in master.


Unable to use library with external builds -  zeebe.proto file path passed to proto.path

When library is used in  applications which uses external builds , direct references to files example: https://github.com/camunda-community-hub/zeebe-client-node-js/blob/master/src/zb/ZBClient.ts#L1292 throwing errors.
Current Behavior
Error: ENOENT: no such file or directory, open '/Users/myUser/proto/zeebe.proto'
    at Object.openSync (node:fs:600:3)
    at Object.readFileSync (node:fs:468:35)
    at fetch (/Users/myUser/camunda-zrpc-test/dist/out.js:31582:30)
    at Root.load (/Users/myUser/camunda-zrpc-test/dist/out.js:31611:11)
    at Root.loadSync (/Users/myUser/camunda-zrpc-test/dist/out.js:31621:19)
    at loadProtosWithOptionsSync (/Users/myUser/camunda-zrpc-test/dist/out.js:35023:31)
    at loadSync (/Users/myUser/camunda-zrpc-test/dist/out.js:36043:63)
    at new GrpcClient (/Users/myUser/camunda-zrpc-test/dist/out.js:44115:62)
    at GrpcMiddleware.createInterceptedGrpcClient (/Users/myUser/camunda-zrpc-test/dist/out.js:44455:28)
    at new GrpcMiddleware (/Users/myUser/camunda-zrpc-test/dist/out.js:44452:32) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/Users/myUser/proto/zeebe.proto'
}

Possible solutions
Rather than directly referencing a path to a file. we could use require/import the file and use it.
Steps to Reproduce
Sample Repo https://github.com/BaluVyamajala/camunda-zrpc-esbuild-test
npm run build
node dist/out.js

Just out of curiosity, what's the motivation for using ESBuild on Node?

Just out of curiosity, what's the motivation for using ESBuild on Node?

Currently we are building a lambda function in AWS and to make these efficient, we build a minified file making it super small and without including entire node_modules folder. For example https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_nodejs-readme.html library uses esbuild behind the scenes.

OK. I've done this before. From memory: you need to add a build step to move the proto file. Since it is dynamically loaded and is not a .js asset, the builder needs to be made aware of it.

See, for example:
https://github.com/open-telemetry/opentelemetry-js/issues/2786#issuecomment-1088796793
https://github.com/open-telemetry/opentelemetry-js/issues/2887

I'm going to close this for now. If you figure out a way to do this, let me know.