Can not load data from transport.opendata.ch

Home Assistant release with the issue:
~% hass --version
0.90.2

Last working Home Assistant release (if known):
0.90.2

Operating environment (Hass.io/Docker/Windows/etc.):

FreeBSD 12.0-RELEASE-p3
python 3.6.7: ~% pip install homeassistant

Component/platform:

Swiss Public Transport
https://www.home-assistant.io/components/sensor.swiss_public_transport/

Description of problem:
In 9 out of 10 cases I get this error message:
2019-03-28 14:10:27 ERROR (MainThread) [opendata_transport] Can not load data from transport.opendata.ch
2019-03-28 14:10:27 ERROR (MainThread) [homeassistant.components.sensor.swiss_public_transport] Check at http://transport.opendata.ch/examples/stationboard.html if your station names are valid

I'm 100 percent sure they're right.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
sensor:
  - platform: swiss_public_transport
    from: "Winterthur"
    to: "St.Gallen"

Of course you can also use the "id" here:
"id":"8506000","name":"Winterthur"
"id":"8506302","name":"St. Gallen"

Additional information:
API queries with "curl" are always working:
curl "transport.opendata.ch/v1/connections?from=8506001&to=8506302"

When I delete the sqlite file, it works:
home-assistant_v2.db

But exactly once.

Over the night, the log file has been filled with the following errors:
2019-03-29 03:42:12 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'
2019-03-29 03:43:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'
2019-03-29 03:45:14 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'
2019-03-29 03:46:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'
2019-03-29 03:48:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'
2019-03-29 03:49:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'
2019-03-29 03:51:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    device_attr = self.device_state_attributes
  File "/usr/home/sysadmin/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/swiss_public_transport.py", line 108, in device_state_attributes
    ATTR_TRAIN_NUMBER: self._opendata.connections[0]['number'],
KeyError: 'number'

Having exactly the same issue here.

Same issue

@fabaff Any progress?

@dR3b, do you have only one train sensor or many?
OpenData has a limit of 1000 requests / day per IP, this sensor was converted to limit the usage to query trains by only querying it after the previous train left the station.
You could still hit the limit if you have too many train sensors, too many trains which are in your connection or if you have more than just one home assistant querying opendata.

@vikramgorla
Only one.

I'm having this issue as well, right after setting up the sensor, so shouldn't be affected by limit, and with only one sensor set up.

I followed this https://forum.loverpi.com/discussion/555/how-to-fix-dkms-error-bin-sh-1-scripts-basic-fixdep-exec-format-error and have a working respeaker now.


Readme > Steam Mini has a broken link to the Forum

Like the tilte says: the readme of PlayniteScriptsExtensions Github has a broken link under the section: Steam Mini.
Cheers

That extension is no longer being worked on since it was replaced by this other extension that has the same functionality https://playnite.link/forum/thread-659.html
The readme has not been updated for some time, I'll be updating all information when the work for the Playnite 9 extension releases is ready.


Texture missing on 1.19.2

did not caused by rubidium or any performance mod

Can you provide a detailed mod list so we could check?
I just check with Minecraft 1.19.2/Forge 43.1.47/Create 0.5.0.f/Create: Enchantment Industry 1.0.0 and no other mods in both develop and production environment and things worked fine.

I was using Forge 43.1.1 on the screenshot above
Create Jetpack
Kotlin For Forge
Create Enchantment Industry
Create
Rubidium

Solved by changing forge to a higher version than 43.1.1

i just checked again with Minecraft 1.19.2/Forge 43.1.47/Create 0.5.0.f/Create: Enchantment Industry 1.0.0, and the issue is still there

Same environment. Cannot reproduce.

the issue still occurs on version 1.1.0, is it because of OpenGL, or any kind of Driver i currently having?

hope this helps

 hope this helps

Thanks for information provided. We've received 4 reports in total now. We are still not sound what's the possible cause.

i think the issue only occurs in Flat World type, i tried in Default world type and it completely working fine!

and it got the issue again not for long after

create_enchantment_industry-1.19.2-for-create-0.5.0.f-1.1.0-render-fix.zip
Would you mind testing if this fix from commit 53041a2 works?
The mod jar is in the zip (as Github doesn't support .jar in attachment).

i will

i tested it and it worked!


Anonymous blocking option not available for steering delivery services in portal

When anonymous blocking is enabled, all DS types should have the option to be set to block anonymous connections.  It has been observed that steering delivery services do not.

When anonymous blocking is enabled

How is it enabled? Is it via a global parameter or something?

@dg4prez - Currently in TP, you can set the value of anonymousBlockingEnabled for HTTP* delivery services but not for DNS, ANY_MAP or STEERING.
I can add it to STEERING but do you think it needs to be added to DNS as well?

This will require a TR enhancement to support anonymous blocking on steering* delivery services. It is currently only support in TR for HTTP* delivery services.

It'll never work for ANY_MAP Delivery Services, and I'm not even sure it'll ever make much sense on DNS Delivery Services either. The IP that makes DNS requests will nearly always be a downstream LDNS server used by the client, and not the client itself. You likely would never see an IP that corresponds to a known proxy or TOR exit node etc. even if that's what the client actually is behind the scenes.
This could possibly be accomplished as an extension to ATS or the configuration file generation process, but it's pretty involved.
AFAIK, though, STEERING is routed via HTTP, so it should be totally possible to implement within Traffic Router.

This can be closed as fixed.  I added the code in portal and TR to allow Anonymous proxy blocking to be set and enforced for Steering DSs.
As for DNS DSs, I can see an argument that if you have eDNS0 client subnet extension support enabled then you would know the client IP and can therefore geo block them.  I don't think that we should go through the trouble of adding that support until we have a real use case for it.

@dneuman64 - do you know which PR added this for steering ds's?


iframe embed doesn't work on IE 11

https://gcalmettes.github.io/reveal.js-d3/demo/#/ - The demo works well on Chrome & Firefox but for some reason the iframe embed doesn't display on IE 11

It looks like this is a known issue with certain version of IE11.
I have added a <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"> tag in the html of the demo. Could you try again and see if this work now? (I have only access to a mac).
Another solution would be to run IE11 in compatibility mode (see the official instructions).

Still doesn't work. Should something be tweaked in lib/js/head.min.js ?

Well, the head.min.js is provided by reveal.js so I wouldn't mess around this. Not sure how to go around this if the <meta> tag above doesn't work, as it seems to be IE11 specific.


get/setRadians misleading

Some minor notes, which I stumbled over when parsing the turn angle from json response in the java client:

getRadians should be renamed to getTurnAngle otherwise this is misleading naming. E.g. setRadian(getRadian()) should leave radian unchanged.
why are there two methods? .setRadian(deltaInOut).setDirOfRotation(deltaOut)
instead of 'double tmpRadian = Math.PI - clockwise * radian; tmpRadian *= clockwise;' shouldn't we do 'double tmpRadian = Math.PI * clockwise - radian;'
avoid encoder.K_ROUNDABOUT and use FlagEncoder.K_ROUNDABOUT

assigned @jansoe but of course I also can do this :)

I will do it.
[] rename getRadians to getTurnAngle is important!
[] refactor double tmpRadian = Math.PI * clockwise - radian
[] avoid encoder.K_ROUNDABOUT and use FlagEncoder.K_ROUNDABOUT
[] better documentation

why are there two methods? .setRadian(deltaInOut).setDirOfRotation(deltaOut)

set Radian just determines the radian (clockwise) between entrance (in) and exit (out).
setDirOfRotation determines the driving direction. Thus they need different input.

@jansoe do you agree with my changes?


RDP Wrapper not working in Windows 11 24H2 update

I have tried the RDP wrapper for the new windows 24H2 update and the server state is stopped.

No RDPConf diagnostics screenshot => not a valid ticket.


Feature request: cell encoder from cats.Show?

Hi, many thanks for an excellent library! I wonder if in the CSV part of this project there'd be interest in adding a small convenience helper -- the capability to build a CellEncoder instance for a type based on the presence of a cats.Show instance for the same type. Maybe just to the CellEncoder companion object, to complement fromToString[A]? So something like:
object CellEncoder:
    ...
    def fromShow[T : Show]: CellEncoder[T] = instance(summon[Show[T]].show)
    ...

Any chance to add this as a helper for building encoders?

Sounds like a reasonable addition! Want to give it a try and open a PR?

Yes, I'll give it a shot :)


Fix: Duplicate network requests in Patient Details page

Proposed Changes

Fixes #9269

Removed Duplicate calls of policy

Removed Duplicate calls of consultation details

Removed Duplicate calls of notes

@ohcnetwork/care-fe-code-reviewers
Merge Checklist

[ ] Add specs that demonstrate bug / test a new feature.
[ ] Update product documentation.
[ ] Ensure that UI text is kept in I18n files.
[ ] Prep screenshot or demo video for changelog entry, and attach it to issue.
[ ] Request for Peer Reviews
[ ] Completion of QA

Summary by CodeRabbit
Release Notes

New Features

Enhanced data refetching capabilities across patient-related components.

Improvements

Streamlined data fetching logic in PatientNotesList, EncounterHistory, and Notes components, reducing unnecessary state management.
Updated the PatientProps interface to include a refetch method, allowing for more dynamic data handling.
Improved data fetching strategy in the Demography component to refresh insurance details based on patient ID changes.
Added a user autocomplete field in the ConfirmDialog for assigning volunteers, enhancing interactivity.

Bug Fixes

Removed redundant loading state checks that could lead to confusion during data retrieval.

@rithviknishad triggerGoal is already implemented in PatientHome.tsx so i removed it from EncounterHistory.tsx which will be redundant if used again.
Are any further changes required?

Hey @rithviknishad can you please update the review

Hi @rithviknishad with the latest changes in useQuery.ts , the issues related to demograpgy tab seems to be got fixed.
Here are the screenshots of tabs network calls

Could replace the Button/Chip with Shad Button/Badge. But, can do that later. Lgtm.

I will get it done in PR #9377 as you mentioned earlier in that PR

LGTM


2.6-head has ui-dashboard-index set to latest, should be 2.6.4-release

Setup

Rancher version: v2.6-head (b7c9b89)
Browser type & version: any

Describe the bug
us-dashboard-index should be set to https://releases.rancher.com/dashboard/release-2.6.4/index.html but is currently set to ...latest/index.html on 2.6-head
To Reproduce

deploy rancher using 2.6-head

Result
currently set to ...latest/index.html on 2.6-head
Expected Result
since we've split the branches, we should update the dashboard-index for the new branch.
Context
affects ui for 2.6.4 release/testing.

@richard-cox It seems like another change is needed to reset the default UI index

@catherineluse There's a PR already open for this, just waiting on someone rancher/rancher side to review and merge (see release channel in slack).
https://github.com/rancher/rancher/pull/37011

To Validate

Once this build is complete, deploy rancher 2.6-head
Navigate to Global Settings --> ui-dashboard-index is set to https://releases.rancher.com/dashboard/release-2.6.4/index.html

Ticket #5496 - Test Results
Reproduced on v2.6-b7c9b893bfd8fb5c2a3e16ae0836d92f98ecc22d-head:

Fresh install of rancher v2.6-head
As admin, navigate to Global Settings
Reproduced - ui-dashboard-index is set to https://releases.rancher.com/dashboard/latest/index.html

Screenshot:

Verified on v2.6-85d692518525d2a1f9eb740833145b242608632e-head:

Fresh install of rancher v2.6-head
As admin, navigate to Global Settings
Verified - ui-dashboard-index is set to https://releases.rancher.com/dashboard/release-2.6.4/index.html

Screenshot:


Live view docker compose up error

bambu-liveview-myprinter1-1  | [tcp @ 0x5592ac9aee40] Connection to tcp://<IP_ADDRESS>:322?timeout=30000000 failed: Connection refused
bambu-liveview-myprinter1-1  | [in#0 @ 0x5592ac9abd40] Error opening input: Connection refused
bambu-liveview-myprinter1-1  | Error opening input file rtsps://bblp:9fb060c3@<IP_ADDRESS>:322/streaming/live/1.
bambu-liveview-myprinter1-1  | Error opening input files: Connection refused
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/c/Users/chris/Downloads/bambu-farm-main/bambu-farm-main/docker/bambu-liveview/bambu-web-1.2.0-runner.jar" to rootfs at "/bambu-web-runner.jar": mount /run/desktop/mnt/host/c/Users/chris/Downloads/bambu-farm-main/bambu-farm-main/docker/bambu-liveview/bambu-web-1.2.0-runner.jar:/bambu-web-runner.jar (via /proc/self/fd/9), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

Please add a resolution so that future users can benefit from the opened issue, thx 😄

This one was weird.  I just kept retrying docker-compose up and finally worked.  Maybe old instance still running?


Deploy hung waiting for slugbuilder pod exit

Placeholder issue, will see if this comes back.
Deploy hung, slugbuilder pod also appeared hung. had to manually delete the pod for the deploy to continue.
[master 8e9380f] Bump
Counting objects: 520, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (515/515), done.
Writing objects: 100% (520/520), 53.75 KiB | 0 bytes/s, done.
Total 520 (delta 473), reused 0 (delta 0)
Starting build... but first, coffee!
-----> Go app detected

-----> Checking Godeps/Godeps.json file.
-----> Installing go1.4.2... done
-----> Running: godep go install -tags heroku ./...
-----> Discovering process types
       Procfile declares types -> web
-----> Compiled slug size is 1.7M
Build complete.
Launching app.
Launching...
Done, earthy-instinct:v209 deployed to Deis

Use 'deis open' to view this application in your browser

To learn more, use 'deis help' or visit http://deis.io

To ssh://git@deis.beef.slack.io:2222/earthy-instinct.git
 * [new branch]      master -> master

real	39m19.671s
user	0m0.050s
sys	0m0.054s

k:beef ~ $ kd get po
NAME                                          READY     STATUS    RESTARTS   AGE
deis-builder-fp4d8                            1/1       Running   0          2d
deis-database-z0j7q                           1/1       Running   0          3d
deis-logger-fluentd-ug070                     1/1       Running   0          3d
deis-logger-fluentd-yl5wi                     1/1       Running   0          3d
deis-logger-l6ajn                             1/1       Running   0          3d
deis-minio-r15ow                              1/1       Running   0          3d
deis-registry-rccnn                           1/1       Running   0          3d
deis-router-0t5gf                             1/1       Running   0          3d
deis-workflow-c2a3i                           1/1       Running   0          20h
slugbuild-earthy-instinct-8e9380f2-87440faf   1/1       Running   0          37m
k:beef ~ $ kd logs slugbuild-earthy-instinct-8e9380f2-87440faf
-----> Go app detected
-----> Checking Godeps/Godeps.json file.
k:beef ~ $ kd delete po slugbuild-earthy-instinct-8e9380f2-87440faf
pod "slugbuild-earthy-instinct-8e9380f2-87440faf" deleted

@slack This is super old and has probably been fixed, is this still a problem?

Old bug is old.


Pass Attributes when Initiating an outbound Call

Is there any way to pass attributes/parameters when making an outbound call ?(connect.agent ).
We have a use case where the customer agents are a part of multiple queues all of which have a different caller ID (multi Organizations support). The business wants to ensure the agent calls to customers always carry the correct caller ID based on the queue the agent selects. I can get the agent queue real time selection work and pass it to my outbound function but any contact/custom attributes are not passed making it impossible to set the caller id in real time based on queue selection.
Is there any other way to achieve this ? I know the startOutboundcontactAPI is there but that does not ensure the call gets back to the same agent who initiated it ? Any help is appreciated.

I think this particular case can be solved by assigning the number as the default outbound number of the queue, and then supplying the queue ARN when making the outbound call with connect.agent.  That's how we're doing it now, however we answer for many different numbers that all go into a few inbound queues, so we have had to create separate queues for each number that we answer for. This is time consuming and error-prone, but the main issue is that we recently hit our service limit for queues per instance. It would be great to be able to assign a caller ID to the outbound call through Streams API the way that we can with the startOutboundcontactAPI.

This is still an issue...

Facing same issue.
@seiyako any plans to add this?


Preserve specified time offsets from YAML

This change causes parse_time function to return a Ruby Time object with an offset specified in the parsed YAML. I've been playing with Jekyll which leverages Pysch for parsing YAML data in posts and it would be nice to have Time objects extracted from posts respect the offset specified in the YAML front matter. Then, I could either display it with the specified time offset, convert it to utc with the Time::utc, or convert it to local time with Time::getlocal. This seems to me to be a little bit better behavior, but there may be a good reason not to do this that I'm not aware of.

@chrisperelstein sorry to take so long (2 years :frowning:) to get back on this.  I just looked at your repro script.  It looks like you're calling Psych.load against a value that Psych didn't generate.  Time#to_s doesn't produce a sting that's in the YAML format spec.
If this is still an issue, can you please give me a test for it?

@tenderlove My turn to take so long. I seem to have deleted the gist I was using as an example (sorry!) so I'm going to try to recreate something. Don't remember where the snippet of yaml came from that I used but I think it was something I was manually doing in order to fix a time zone changing issue I noticed when using octopress. The functional punchline of the pull request is to simply preserve time offset when specified regardless of where the time came from. My opinion is that Pysch shouldn't discard original offset info by automatically converting to local time offset, especially since the Time object includes the convenient getlocal method.


optimizationLevel 0 Error in file

Hi I am testing and comparing all plugins and I am wondering if this is the correct behavior.
From the readme

optimizationLevel
Type: number
Default: 3
Select an optimization level between 0 and 7.

with optimizationLevel: 0 I got the following error:
{ Error: Error in file: images/imagemin.png

** Processing: /var/folders/vc/g0g62cj15vg3vwyn3pdbp6bc0000gp/T/cce3c2b8-f207-44d9-8190-b364455560ed
Warning: Extraneous data found after IEND
400x400 pixels, 4x8 bits/pixel, RGB+alpha
Recoverable errors found in input. Fixing...
IDAT recoding is necessary, but is disabled by the user.
Error: Can't continue

** Status report
1 file(s) have been processed.
1 error(s) have been encountered.

    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: '/Users/me/project/node_modules/optipng-bin/vendor/optipng -strip all -clobber -force -fix -o 0 -out /var/folders/vc/g0g62cj15vg3vwyn3pdbp6bc0000gp/T/401ab274-d280-49f7-b6f3-2f3bd0d558bb /var/folders/vc/g0g62cj15vg3vwyn3pdbp6bc0000gp/T/cce3c2b8-f207-44d9-8190-b364455560ed',
  stdout: '',
  stderr: '** Processing: /var/folders/vc/g0g62cj15vg3vwyn3pdbp6bc0000gp/T/cce3c2b8-f207-44d9-8190-b364455560ed\nWarning: Extraneous data found after IEND\n400x400 pixels, 4x8 bits/pixel, RGB+alpha\nRecoverable errors found in input. Fixing...\nIDAT recoding is necessary, but is disabled by the user.\nError: Can\'t continue\n\n** Status report\n1 file(s) have been processed.\n1 error(s) have been encountered.\n' }

test
const imagemin = require('imagemin');
const imageminOptipng = require('imagemin-optipng');

imagemin(['images/*.png'], 'build', {
  use: [imageminOptipng({
    optimizationLevel: 0
  })]
})
.then(() => {
  console.log('Images optimized');
})
.catch(err => {
  console.log(err)
});

That's how optipng should work (according to the source code).

perfect and sorry for opening so many issues.

No problem :).

Maybe you should remove the option with 0? Or is it supposed to return an error?


Integrate dapr runtime v1.8.0 release

Description
Remove the dap runtime version selector to select the default stable 1.8.0 release.
Azure DevOps PBI/Task reference

AB#10569
Checklist - Manual tasks

[x] Examples are executing successfully
[ ] Created/updated unit tests. Code Coverage percentage on new code shall be >= 80%.
[ ] Created/updated integration tests.
[x] Devcontainer can be opened successfully
[ ] Devcontainer can be opened successfully behind a corporate proxy
[x] Devcontainer can be re-built successfully
[ ] Extended the documentation (e.g. README.md, CONTRIBUTING.md, Velocitas)

As discussed we should pin the version to a specific one. If that is 1.8.0 now instead of the RC3 then we should take that one.
Btw, have you found a way to not only specify the runtime version but also the version for the CLI?


Fix enum tags

The following enums should be ALL CAPS:
MessageDialogButton.CANCEL
MessageDialogButton.CONTINUE
LinearLayout.Alignment.END

Hi Martin,
Thank you for accepting my PR.
I have a question about how GlobalPlatformPro works.
/library/src/main/java/module-info.java refers to package
pro.javacard.capfile.  Can you point me to where this is coming from?  I
think this is from your capfile
https://github.com/martinpaljak/capfile/tree/master project, but that one
only defines package pro.javacard.
When I change all references in GlobalPlatformPro from pro.javacard.capfile
--> pro.javacard, it compiles correctly.  But, I'd like to know how I can
compile GPPro without having to alter the source code.  AIUI there's no way
to change imports in Java, so I think I'm missing something?
-Steve
On Thu, Dec 21, 2023 at 12:43 AM Martin Paljak @.***>
wrote:

Merged #87 https://github.com/martinpaljak/apdu4j/pull/87 into master.
—
Reply to this email directly, view it on GitHub
https://github.com/martinpaljak/apdu4j/pull/87#event-11312111350, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2RIMT6N2I37PFDRWUPA3LYKPYRZAVCNFSM6AAAAABA5SCJMKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGMYTEMJRGEZTKMA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Custom Functions Runtime article has incorrect dialog API name

The API name in the dialog API sample in Custom Functions Runtime is incorrect.
The code shows to call OfficeRuntime.displayWebDialogOptions.
Correct call is OfficeRuntime.displayWebDialog.

Fixed in a recent PR!


docs: Updated supported_platforms.md

Signed-off-by: chaitanya1731<EMAIL_ADDRESS>

Looks good to me.


feat: support CMD/Ctrl+Enter for assertion flyout submission

It's a standard convention to allow CMD/Ctrl+Enter to submit forms (try it on GitHub). In order to close things like the Assertion Drawer, we need to click the enter button.
People who favor the economics of keeping hands on the keyboard will enjoy skipping that click if we add support for this.

We aren't going to use the flyout to control assertions anymore.


Deleting index of array

Hi there,
I'm using an array to display charts,
<vue-draggable-resizable  v-for="(component,keyComp) in dropedItems" ...>
I'm experiencing an odd behaviour once I remove an element from the array.
I'm adding the components as I drop them (create a new object in the array).
If I do this to 2 components A and B and added to the array by that order A first and B second.
Then If I delete A the B component will assume A's position, but if I delete B instead of A, A continues in the same position.

Same problem for me...

I have this problem, too

Can you post some code so I can take a look?

same problem here. Did you fixed it?

I'm really sry but I haven't had the time to create a small sample for mauricius. I'd apreeciate if someone else could post one.

`
`
``

See https://github.com/mauricius/vue-draggable-resizable/issues/84#issuecomment-390474756


InvalidTemplateLibrary when running coltrane build in example_standalone

I'm not sure where this is coming from, but it seems to be related to loading template tags from the templatetags directory.
❯ coltrane build
Module  templatetags.__init__ does not have a variable named 'register'
Traceback (most recent call last):
  File "/Users/tobi/Library/Caches/pypoetry/virtualenvs/coltrane-nNxGrMSQ-py3.10/lib/python3.10/site-packages/django/template/library.py", line 324, in import_library
    return module.register
AttributeError: module 'templatetags.__init__' has no attribute 'register'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tobi/Builds/coltrane/coltrane/__init__.py", line 101, in _get_default_template_settings
    module_name = _get_template_tag_module_name(
  File "/Users/tobi/Builds/coltrane/coltrane/__init__.py", line 83, in _get_template_tag_module_name
    import_library(module_name)
  File "/Users/tobi/Library/Caches/pypoetry/virtualenvs/coltrane-nNxGrMSQ-py3.10/lib/python3.10/site-packages/django/template/library.py", line 326, in import_library
    raise InvalidTemplateLibrary(
django.template.library.InvalidTemplateLibrary: Module  templatetags.__init__ does not have a variable named 'register'

Start generating the static site...

✔ Use output directory of /Users/tobi/Builds/coltrane/example_standalone/output
✔ Load manifest
✔ Copy 0 static files, 2 unmodified
✔ Create 1 HTML files, 1 unmodified, 0 updated
✔ Update sitemap.xml
✔ Update rss.xml
✔ Update output.json manifest

Static site output completed in 0.6806s

the culprit
def _get_template_tag_module_name(base_dir: Path, file: Path) -> str:
    """
    Get a dot notation module name if a particular file path is a template tag.
    """

    # TODO: Cleaner way to convert a string path to a module dot notation?
    module_name = str(file)

    if str(base_dir) != ".":
        module_name = module_name.replace(str(base_dir), "")

    module_name = module_name.replace("/", ".")

    if module_name.startswith("."):
        module_name = module_name[1:]

    if module_name.endswith(".py"):
        module_name = module_name[:-3]
    else:
        raise InvalidTemplateLibrary()

    import_library(module_name)

    return module_name

Building the static site works well except for this small error, already fixed in my fork but perhaps it was intentional?
✔ Use output directory of /Users/tobi/Builds/coltrane/example_standalone/output
✔ Load manifest
✔ Copy 2 static files
✔ Create 2 HTML files, 0 unmodified, 0 updated
✔ Update sitemap.xml
✔ Update rss.xml
✔ Update output.json manifest
✖ Rendering /Users/tobi/Builds/coltrane/example_standalone/content/index.md failed. 'debug' does not exist in template context. Available top level variables: False, None, STATIC_URL, True, csrf_token, data, h1, now, number, numbers, request, slug, template, test_string, toc

just a debug variable missing in the context, I add it in the frontmatter to fix the error

I wonder if debug was missing because you didn't have a .env file in that directory? I just committed one in 665fb4021abadd5b4eb95513ffba8b8b88b0a594. I also changed the logging for invalid templatetags in 54d6c8e988c23c81671ac2839ca9297a52a7f748 to prevent that error from showing up normally. Closing for now, but feel free to re-open if needed.

I wonder if debug was missing because you didn't have a .env file in that directory?

I had a .env but it made no difference, I just pulled your changes and still the same issue with the debug variable but the other error is gone.

debug should get added to the template context based on Django setting and the local IP being in ALLOWED_IPS.


WIP: Snapshot tree

See https://github.com/rancher/longhorn/wiki/Snapshot-design for design.
It's not completed. Coalescing and test cases hasn't added back yet.

One remaining issue need to be fixed, as well as need clean code.


How can I get the media sound on scrcpy to play on my computer's speaker rather than that on the phone?

Is it possible to say play Youtube, Spotify on scrcpy when the phone is attached to the computer via cable but play its sound on the computer? I hope it is, that would be great..
Thank you

https://github.com/Genymobile/scrcpy#audio-forwarding

Thank you, I ve read it. Im not programmer. How can I integrate it to scrcpy so that whenever I run scrcpy it will also run sndcpy automatically? Is it possible?
Bluetooth audio receiver has little delay, so I thought with cable it would be possible to forward audio in real time?
Thank you

Use this method.
https://www.youtube.com/watch?v=sJv2OUBl8po&t=4s

Hello
Is there a similar app that plays pc audio on android? Reason Im looking
for is that, Id like to find a solution to use one bluetooth headset that
is connected to android, connect it also to pc without unpairing and
repairing each time so that I could listen to participants in the zoom
meetings with no delay/lag/latency as if the headsets are directly
connected to PC without having to unpair/pair. Do you know or can hin at
how this could be done to eliminate purchase of a 2nd bluetooth headset if
ever?
Thank you
On Sun, 15 May 2022 at 01:23, Mr.Pacha @.***> wrote:

Use this method.
https://www.youtube.com/watch?v=sJv2OUBl8po&t=4s
—
Reply to this email directly, view it on GitHub
https://github.com/Genymobile/scrcpy/issues/2084#issuecomment-1126820531,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APJUQDNBI36NPL2ZF7ONN4TVKARWZANCNFSM4XCZQSFA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Cutscene skip button

Describe the feature you'd like to see added
with all the custom keybinds we can do now i think a custom cutscene skip button would be nice as the only way doing it is through the .ini

huh? You can do this already.. Press esc on keyboard or start button on controller. Works for me. Vanilla .

i know we can already skip them but im saying that we can replace the "esc" key bind to another key
Example: instead of pressing ESC we can press F to skip cutscenes

oh.. There's a couple of ways you can already do that. I think you can do this in your input.ini file located in the BIO4 folder. I haven't looked at it in a while but there is a section of the file called ###KEYBOARD. Try changing the KEY_OPTION = ESCAPE value.
Another easy fix is to simply use AutoHotKey which replaces key strokes easily. You can make simple scripts to hotswap any keys,


ee uninstall option

There should be an option if someone wants to completly remove ee from the system.
You might want to warn them but let the user have an option to remove ee completely.

+1

+1 (including all stacks ee installed)
On Apr 23, 2015 11:35 AM, "Joseph Jalbert"<EMAIL_ADDRESS>wrote:

+1
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/488#issuecomment-95647530.

Can anyone please write synopsis for uninstall process?
Some questions we need to answer:

What will happen to mysql (data) when we install mysql server?
What will happen to website files if we need to delete /var/www?
What will happen to nginx, php, mysql and other config files?
If all sites' files and database need to be deleted then why not recreate/format VPS/dedicated server?

Basically, I want to know what a user expects afte easyengine is uninstalled. Since I never need to uninstall easyengine, I find this case harder to imagine.
Uninstall coding is not big deal. We already have commands like ee stack purge and also ee site update-all to deal with all sites. We can reuse there code to remove everything from server. But again need to be removed and what need to left behind?

I think it's unethical to not provide an easy way for a program to be uninstalled, having provided an easy way for it to be installed in the first place. Only malware act like that :-(

@ugommirikwe Thanks for comparing EasyEngine to malware. BTW EE codes are open source so can you please care to point out what it malware like activity EE does?
Also, did you care to check my comment above your comment? https://github.com/rtCamp/easyengine/issues/488#issuecomment-95834528
If you can't answer questions I asked in my comment, do not expect us to work on this.
We have more important things to take care. So anyone who needs this badly can send pull-request or atleast answer https://github.com/rtCamp/easyengine/issues/488#issuecomment-95834528
Sorry but I need to know what people expect when they wish to run ee uninstall!

@anantshri as you started this, please answer https://github.com/rtCamp/easyengine/issues/488#issuecomment-95834528

@joseph-jalbert ee system remove will remove all packages like nginx, php, mysql EE installs. EE code remains on server itself.

@MattyLB if EE install removes all stacks installed, what will happen to sites? They should simply become unreachable or deleted as well?

OPTION 1:
as long as we could have all of our site-specific config files,
certificates and content reside within the /var/www/example.com/...
directory tree, those files wouldn't need to be touched.
upon re-installing ee (to fix an issue caused by upgrade, corrupted main
config, file or otherwise) those would be replaced independently of any
existing sites.
when the reinstall of ee is completed satisfactorily, I believe the best
way to "reactivate" the site(s) in /var/www/... is to run a script like "ee
site discover --enable --prompt --etc" so we can choose to reactivate all
existing sites or be prompted to choose which ones to enable. Each site
could have a simple manifest file that tells ee exactly what needs to be
configured for the site, eg. db user & pw, hhvm, nginx, pagespeed, etc.

OPTION 2:
if that can't be done, a simple warning to backup our site data would
suffice - because in all honestly - our only alternative when we run into a
major malfunction is to create a new instance or refresh the server anyway.
:)
On Fri, May 1, 2015 at 10:16 AM, Rahul Bansal<EMAIL_ADDRESS>wrote:

@MattyLB https://github.com/MattyLB if EE install removes all stacks
installed, what will happen to sites? They should simply become unreachable
or deleted as well?
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/488#issuecomment-98154993.

@MattyLB Uninstalling and reinstalling are different things. EE installation expects a clean system. Not even traces of old EE system are handled as of now. So Option 1 will be a lot of work.
About option 2: we have some other plan in pipeline which might help here. There will be a command to move all EE sites from one EE server to another EE server seamlessly.

+1 - that would be a big help.  In my particular case, I use AWS and while
it's easy enough to simply create a new EC2 instance, there is a lot of
work to the get my sites back up and certificates placed, etc. so the
migration method you speak of would be a great help! :)
On Fri, May 1, 2015 at 11:07 AM, Rahul Bansal<EMAIL_ADDRESS>wrote:

@MattyLB https://github.com/MattyLB Uninstalling and reinstalling are
different things. EE installation expects a clean system. Not even traces
of old EE system are handled as of now. So Option 1 will be a lot of work.
About option 2: we have some other plan in pipeline which might help
here. There will be a command to move all EE sites from one EE server to
another EE server seamlessly.
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/488#issuecomment-98167403.

One of the reasons this is of interest to me is when issue like this most
recent one occur that happened after upgrading from 3.1.0 to 3.1.2...

ee site create xxxxxx.com --wpfc --hhvm --pagespeed

Adding repository for MySQL, please wait...

Updating apt-cache, please wait...
Installing packages, please wait...
Reload : mysql     [Failed]
Setting up NGINX configuration  [Done]
Setting up webroot              [Done]
Downloading Wordpress           [Done]
Setting up database             (2003, "Can't connect to MySQL server on
'localhost' (111)")

so I tried this ...

root@ip-172-31-27-174:~# ee stack install
Nginx already installed
PHP already installed
HHVM already installed
Postfix is already installed
WP-CLI is already installed
Adding repository for MySQL, please wait...
Updating apt-cache, please wait...
Installing packages, please wait...
Downloading phpMyAdmin           [Done]
Downloading Adminer              [Done]
Downloading phpMemcachedAdmin    [Done]
Downloading clean.php            [Done]
Downloading opcache.php          [Done]
Downloading Opgui                [Done]
Downloading OCP.php              [Done]
Downloading Webgrind             [Done]
Downloading pt-query-advisor     [Done]
Downloading Anemometer           [Done]
Reload : mysql     [Failed]
(2003, "Can't connect to MySQL server on 'localhost' (111)")

now my only solution is to go into AWS, create a new EC2 instance and
"hope" this doesn't happen again. It becomes a pain, which is why a method
to start from scratch (eg. uninstall EE and any stacks installed by EE
might be an easier way for people facing the same issues).
On Fri, May 1, 2015 at 11:15 AM, Matt Brummett<EMAIL_ADDRESS>wrote:

+1 - that would be a big help.  In my particular case, I use AWS and while
it's easy enough to simply create a new EC2 instance, there is a lot of
work to the get my sites back up and certificates placed, etc. so the
migration method you speak of would be a great help! :)
On Fri, May 1, 2015 at 11:07 AM, Rahul Bansal<EMAIL_ADDRESS>wrote:

@MattyLB https://github.com/MattyLB Uninstalling and reinstalling are
different things. EE installation expects a clean system. Not even traces
of old EE system are handled as of now. So Option 1 will be a lot of work.
About option 2: we have some other plan in pipeline which might help
here. There will be a command to move all EE sites from one EE server to
another EE server seamlessly.
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/488#issuecomment-98167403.

hey @rahul286, kept delaying this message coz i thought this need more consideration then my initial comment.

Considering EE as just yet another software, just like we have an installation option, we should have uninstall option. one case in consideration. a user installed ee as per instructions but due to one or the other reason (in my case https://github.com/rtCamp/easyengine/issues/489) so he is stopped in mid way or rather at the start. What is the safe way to remove all traces of ee as user has not even started using it but decided not to use it anymore.

Consider at one point in usage the user decides that they don't want this tool. removing stacks is one thing what about custom config's added by ee how can we ensure all those config based on say a user input is either nuked or retained. may be we are already doing it or we need to do a backup of old config and restore when person say remove ee.

as for the question why not a new instance why remove it. Multiple reason's including the fact that ee might be part of hybrid environment where other configurations would take time even if that means running a vagrant + ansible job list but still time taken to rebuild stack.

However i agree with you that its not easy to decide what to keep and what to remove. Here i would suggest we make backup of all configuration file that we touch during the life cycle of ee at the time of installation and if asked to uninstall ask user if they want config to be reverted. However an edge case would be if user has tampered with config but still want to retain his custom stuff. in that case i would suggest (if we are not doing that already) to mark sections added by ee as seperate may be how wordpress keeps sections in .htaccess. with a warning don't tempare here it will be overwritten. and use that as pointers to the section to be nuked.
I hope this long rand makes some sense.

In regards to the second paragraph of @Anant's point #3, this is what I
meant by creating a manifest for each site that keeps track of site
specific services, config changes, WP settings, DB settings, certificate
locations etc, and it would reside in the /var/www site folder that
wouldn't need to be deleted by the ee uninstaller. It could then be
referenced if we installed ee again to bring the site(s) back up with
current ee features, stacks and base configs.
On Friday, May 1, 2015, Anant Shrivastava<EMAIL_ADDRESS>wrote:

hey @rahul286 https://github.com/rahul286, kept delaying this message
coz i thought this need more consideration then my initial comment.

Considering EE as just yet another software, just like we have an
installation option, we should have uninstall option. one case in
consideration. a user installed ee as per instructions but due to one or
the other reason (in my case #489
https://github.com/rtCamp/easyengine/issues/489) so he is stopped in
mid way or rather at the start. What is the safe way to remove all traces
of ee as user has not even started using it but decided not to use it
anymore.

Consider at one point in usage the user decides that they don't want
this tool. removing stacks is one thing what about custom config's added by
ee how can we ensure all those config based on say a user input is either
nuked or retained. may be we are already doing it or we need to do a backup
of old config and restore when person say remove ee.

as for the question why not a new instance why remove it. Multiple
reason's including the fact that ee might be part of hybrid environment
where other configurations would take time even if that means running a
vagrant + ansible job list but still time taken to rebuild stack.

However i agree with you that its not easy to decide what to keep and what
to remove. Here i would suggest we make backup of all configuration file
that we touch during the life cycle of ee at the time of installation and
if asked to uninstall ask user if they want config to be reverted. However
an edge case would be if user has tampered with config but still want to
retain his custom stuff. in that case i would suggest (if we are not doing
that already) to mark sections added by ee as seperate may be how wordpress
keeps sections in .htaccess. with a warning don't tempare here it will be
overwritten. and use that as pointers to the section to be nuked.
I hope this long rand makes some sense.
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/488#issuecomment-98300435.

It could then be referenced if we installed ee again to bring the site(s) back up with current ee features, stacks and base configs.

Anything in this direction will take huge amount of time. Currently we do not have a big team to purse something like this. Specially for uninstallation process.
@ALL
Here is what we are thinking as of now:
-[ ] ee uninstall => display contextual help
-[ ] ee uninstall --stack => removes EE + all packages installed
-[ ] ee uninstall --site => removes EE + all sites created (files + db)
-[ ] ee uninstall --site --stack => removes EE + all packages installed + all sites created (files + db)
-[ ] ee uninstall --all => alias to ee uninstall --site --stack
ee uninstall will need some sort of security. I am thinking of few way like:

Forcing ee config to have a line like uninstall = true
Prompting for confirmation (remote uninstall will not work unless we provide command line --force switch)
Using some ASCII generation logic to emulate CAPTCHA like thing.

A different option we are thinking of is to maintain an external shell script. If anybody want to uninstall easyengine they can download and run that script on EE server.
By the way, WordPress and many other softwares do not provide any "uninstaller" and that doesn't make them malware. So "uninstaller" is must is not enough reason to code one.
I am concerned that if a server gets hacked, attacker can wipe everything out very easily by running ee uninstall command! I am aware, attacker can do same damage in absence of this command as well.
Overall, this issue has lowest priority for us. So unless I am 100% sure that ee uninstall won't result in accidental data loss, we won't add it.

Right now is there any way to reinstall ee script?
I am afraid ee not working as expected after upgrading it. For example I can not access admin tools anymore. Later I found out ee didnt add nginx configuration for 22222 though created the web directory in /var/www. Also I can not create new site anymore. It throws error in database creation part.

@rahul286 I'm sorry my comment came out the way it did - the malware thing. Didn't intend to denigrate you or your effort in providing this tool. Indeed, it is an awesome tool.
Just that non-expert *nix users have come to rely on commands like "apt-get remove" or "apt-get purge" to get rid of installations they no longer need, so as to prevent it from messing up other stuffs on their servers. The frustration of not having that with a tool like EE, which seems to perform a lotta "magic" behind the scenes, completely ticked me off. My installation using EE was mangled originally, so needed to remove it and be sure I can start all over again with or without EE. Maybe you can appreciate the frustration.
In any case, I'm sorry; EE is in no way a malware :-) as far as I can tell. Keep up the effort.

i want to reinstall whole thing because i can't get nginx to run. it failed at site create.

+1
Reason(s):

Easy; UX (prevent an entire server wipe to get rid of it - Had a few clients insisting on it).
ee system remove hasn't been supported for many versions ago

usage: ee (sub-commands ...) [options ...] {arguments ...}  ee: error: unrecognized arguments: system remove

@CelticParser ee system is replaced by ee stack. Try that.

@rahul286
See above comment:220208797

ee system remove hasn't been supported for many versions ago
usage: ee (sub-commands ...) [options ...] {arguments ...} ee: error: unrecognized arguments: system remove

Hi there @rahul286
I am bit confused here.
I already had LEMP setup on my machine.
Then I came across EasyEngine found it really useful :+1:
But I already had LEMP setup. So I wanted to uninstall it.
Will ee uninstall --stack remove all my pre-installed LEMP stacks.

@suniel
You'll have to uninstall everything yourself and ee has its own configs for the LEMP apps. For this reason it is a good idea to start with a fresh install of Ubuntu

I have this issue now.
I already had a LEMP stack installed
Then I installed ee using the recommended method: wget -qO ee rt.cx/ee && sudo bash ee
Now I wanted to remove ee from my system, but keep my previously instelled LEMP stack
So I ran sudo ee stack remove
Got error: Cannot Remove! Nginx Stable version not found.
Run sudo ee stack status
Got: Nginx is not installed HHVM is not installed php5.6-fpm:  Running php7.0-fpm:  Running mysql     :  Running postfix   :  Running
Problem is, This is not what I wanted, I need my nginx and HVVM back, but I do not want the ee file on my system anymore.
which ee
/usr/local/bin/ee
ee is still on my system
dpkg and apt does not show EasyEngine or ee as being installed
I think I need to do a whole reinstallation of linux, what the hell???
Please can you list all files and folders created by EasyEngine so I can remove them manually.
This is quite frustrating!
Regards
Angel Of Death

I found this page:
http://www.galih.us/2014/12/cara-uninstall-easyengine.html
But I do not know what language it is... Anyway
So this seems to be what they suggest:
First:
sudo ee system purge
Then:
sudo rm -rf /etc/easyengine/
sudo rm -rf /etc/bash_completion.d/ee
sudo rm -rf /usr/local/sbin/ee
sudo rm -rf /usr/local/sbin/easyengine
sudo rm -rf /usr/share/easyengine
sudo rm -rf /var/www/*
sudo rm -rf /etc/nginx
sudo rm -rf /etc/php5
sudo rm -rf /etc/mysql
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/postfix
And finally:
sudo apt-get autoremove
Hope this helps someone

We are cleaning up issue tracker and closing this one because we couldn't reach an agreement as what exactly needs to be removed when EasyEngine needs to uninstalled.
The best way for users is to start a fresh VPS, move content (source + files + DB) to the new system and just destroy the old machine.
We would be happy to review this topic again if somebody sends a detailed proposal which outlines all practical scenarios.

Update: We have added this option in v4 https://github.com/EasyEngine/easyengine/issues/1125
Since v4 is docker based, its very easy to do a clean uninstall.

Update: We have added this option in v4 #1125
Since v4 is docker based, its very easy to do a clean uninstall.

Great. Can you tell me how?

@jonathanhatch https://easyengine.io/commands/cli/self-uninstall

@jonathanhatch https://easyengine.io/commands/cli/self-uninstall

You're the best. Thank you, sir!

@anantshri as you started this, please answer #488 (comment)

"Oops! That page can’t be found."


layer.conf: set LAYERSERIES_COMPAT with honister

Set LAYERSERIES_COMPAT with honister and remove old codenames.
Signed-off-by: Kai Kang<EMAIL_ADDRESS>

Why remove the old releases?

Hi @schnitzeltony,
The original problem is that the value of LAYERSERIES_COMPAT is too long which causes layer index complains:
WARNING: YPCompatibleVersion.name: dunfell gatesgarth hardknott: length 28 exceeds maximum (25), truncating
Then I think it should align with oe-core which has only honister in layer.conf because it has branch hardknott too in meta-qt5.
I did the same thing for meta-opemembedded. But Martin comments just now that it is too early to claim honister support.  And I'll withdraw this commit for now.
What's policy for meta-qt5? Would it be ok to claim to support the latest 2 releases(hardknott and honister for this case)?
Regards,
Kai

The original problem is that the value of LAYERSERIES_COMPAT is too long which causes layer index complains:
WARNING: YPCompatibleVersion.name: dunfell gatesgarth hardknott: length 28 exceeds maximum (25), truncating

I think this is something to be fixed at layerindex

What's policy for meta-qt5? Would it be ok to claim to support the latest 2 releases(hardknott and honister for this case)?

Don't know anything about policies but meta-qt5 master (and hardknott) are somewhat special because they have the last Qt5 5.15 versions in. And at least few weeks ago meta-qt5's master worked perfectly fine in dunfell environment e.g https://github.com/meta-qt5/meta-qt5/commit/08550c223c4528ed76d45a981aff65c8857b9195 was created in such environment

Got it. Thanks a lot.


can't see the last element in the array (php), but it exists.

PHP version:  7.2.2
XDebug version:  2.6.0
Adapter version:  1.12.3

VSCode Version: 1.24.1
Theme: Monokai (fontSize:14)
OS Version: Windows 10 Pro 64-bit (resolution 1600x900)
PHP Debug extension (XDebug)
ThinkPad T440

Steps to Reproduce:
(launch currently open script [local])

I have a PHP code ( my gist )
When I start this code width PHP Debug extension and stoped (at line 73), $array have 33 elements but in VIEW show only 32 elements (without last) screenshot1 , but screenshot2 if I get value from last key in this $array, value exist (as it should be)

Does this issue occur when all extensions are disabled?: No

Thanks!
Solution:  in launch.json add
"xdebugSettings": {"max_data": 10, "max_children": 100}


Error: $interpolate:interr #540

Replacing name() with label() resolves the issue

Thanks for this PR, but I don't think this is the correct way to fix it. For instance, if I have a field named last_update and I want to label it as Last update date, then I would have strange id: row-Last update date.

It is an Angular 1.4 issue. Some clues about this error: http://stackoverflow.com/questions/24492062/how-to-resolve-all-the-interpolation-errors
Closing this PR as it is not the good way to fix it, as explained above. :)


Honour to application access URLs for callback url regex pattern in recovery scenarios

Is your suggestion related to an experience ? Please describe.
At the moment we have callback URL regex patterns configured at the tenant level to validate the redirected URLs after completing the below scenarios.

Self Registration
Account Recovery

However, since this is a tenant level config, if there are a lot of applications, its not feasible to configure a regex pattern to honour to all the applications. This callback URL shouldn't be a tenant level config, but rather a application level config.
https://github.com/wso2/product-is/assets/1332991/c081376d-df27-4664-bf88-f62a02456335
Please ignore the difference in the UIs.
Describe the improvement
Application already has the access URL configuration which is the place that should be the ideal place for the user to redirect. Hence we should first honour to the application access URL and then fallback to the configured regex pattern.
Additional context

Tested the User self registration email verification resend flow as well. It is working as expected.
(Tested Artifacts: https://wso2.org/jenkins/job/products/job/product-is/5016/)
Hence closing the issue.


[3.0] fix dubbo:monitor protocol bug after 8477

What is the purpose of the change
PR #8477 带来一个bug，即未配置dubbo:monitor，ConfigValidationUtils#loadMonitor返回了dubbo协议的URL的错误。
感谢 @guohao
Brief changelog
当未配置dubbo:monitor，monitorUrl返回null，也就不会触发monitorFilter

Checklist

[ ] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[x] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #8549 (b812e11) into 3.0 (8739374) will decrease coverage by 0.14%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                3.0    #8549      +/-   ##
============================================
- Coverage     62.94%   62.79%   -0.15%
- Complexity      310      311       +1
============================================
  Files          1117     1117
  Lines         46735    46689      -46
  Branches       7010     6998      -12
============================================
- Hits          29416    29320      -96
- Misses        14057    14103      +46
- Partials       3262     3266       +4

Impacted Files
Coverage Δ

...ache/dubbo/config/utils/ConfigValidationUtils.java
77.08% <100.00%> (+0.59%)
:arrow_up:

...rg/apache/dubbo/monitor/support/MonitorFilter.java
66.66% <0.00%> (-25.50%)
:arrow_down:

...ng/transport/dispatcher/WrappedChannelHandler.java
43.47% <0.00%> (-15.22%)
:arrow_down:

...ng/transport/dispatcher/all/AllChannelHandler.java
68.96% <0.00%> (-13.80%)
:arrow_down:

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
:arrow_down:

...in/java/org/apache/dubbo/common/utils/JVMUtil.java
81.13% <0.00%> (-11.33%)
:arrow_down:

...mmon/threadpool/support/fixed/FixedThreadPool.java
80.00% <0.00%> (-7.50%)
:arrow_down:

.../remoting/transport/netty4/NettyClientHandler.java
62.06% <0.00%> (-6.90%)
:arrow_down:

...moting/transport/netty4/NettyEventLoopFactory.java
30.00% <0.00%> (-6.37%)
:arrow_down:

...pache/dubbo/remoting/transport/AbstractServer.java
57.14% <0.00%> (-5.72%)
:arrow_down:

... and 43 more

Continue to review full report at Codecov.

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

LGTM


Docker: Speed up dev image builds

Pass the build context as a shallow git clone. This reduces the build
context from >500MB to ~25MB and shaves more than a minute from the
total build time, with the downside that only changes committed to git
will be compiled. To mitigate against omissions the output of 'git
status' is shown if working tree is not clean.
Use DOCKER_BUILDKIT cache feature to make dev image builds more
incremental. This should result in a build time of about 45 seconds
for the consecutive builds after the first one (which takes about 2.5
minutes). Caching can be disabled by defining the environment variable
DOCKER_DEV_NOCACHE to a non-empty value (e.g., DOCKER_DEV_NOCACHE=1).
Add support for environment variable DOCKER_DEV_ACCOUNT that defaults
to "cilium". This makes it easier for devs to push experimental images
to personal docker hub repos.

test-me-please

Coverage decreased (-0.004%) to 37.87% when pulling 275bf3eb551329875fd68a0207b47c5239fa2045 on pr/jrajahalme/speed-up-dev-image-builds into 78739a12e64286d6f41941ec629935812436f0b8 on master.

test-me-please

test-me-please


Added __jvp() syntax intended to invoke the derivative version of functions.

Note that the pass/logic to compute the derivative (or even the derivative type) is not there yet. __jvp doesn't actually modify the function yet, it just yields the inner function when lowered to IR.
(The AST/Checking part seems to work correctly, but the IR part hasn't been tested yet)

Making a new pull request with fixes and more progress


Update thrift to v0.20.0

Also add a test for 00f31e521d4e1975074a187f1851354d0532146d.

Putting this on hold for now. I need to think more on how to handle the deprecation and the switching to slog.


Create Pull Request Template

Fixes #2754
Changes
Created a PR template.
Checklist

test? Don't apply b/c I didn't touch code.
changelog? see above
authors.txt? See above

Thanks! 🚀


Why is ModalDialog tagged as Deprecated?

@JerryNixon - I was about to make a PR on ModalDialog control (IsModalChanged event) and just noticed that you tagged it as Deprecated. Did I miss any background on this? Is there an equivalent control in the offing with new UWP version?
I find ModalDialog very useful indeed. Any clarification on the suggested deprecation would be appreciated.

Yes, ModalDialog is deprecated because of a new control @darenm is working on. There's a possibility we won't be able to work out the new control, so we haven't talked about the new control yet.

@dg2k you can add me to Skype if you want more info "mr.jerrynixon"


Unable to debug request and response header

Hey Maurício, first of all congrats in building such easy to use API. I've been looking for it for years! 😄
I'm still on testing phase and one things that I'm having hard time it to send ImageMessages to my phone number using the test number provided by Facebook. I will figured out what is going on but it will be much easier if I could turn on and off debug modes.
I have it working locally in a hackie way, once I have time I will send you a PR with the required changes.
Obrigado

Hello @tmoreira2020 ,
I'm glad that you're using this SDK. I'm looking for a way to create a log for API requests. If you have any suggestions, I would appreciate it.
Regarding image sending, here's a brief tutorial:
There are 3 ways to send an image through the WhatsApp Business API:

Uploading an image and then sending the message with the ID of that image:

        WhatsappApiFactory factory = WhatsappApiFactory.newInstance(TOKEN);
        WhatsappBusinessCloudApi whatsappBusinessCloudApi = factory.newBusinessCloudApi();

        var fileName = "starwars.png";
        // reading the image
        byte[] fileContent = Files.readAllBytes(Paths.get("src/test/resources/" + fileName));

        //uploading to whatsapp api
        var uploadResponse = whatsappBusinessCloudApi.uploadMedia(PHONE_NUMBER_ID, fileName, FileType.PNG, fileContent);

        System.out.println(uploadResponse);

        //sending the message with the image id returned after upload
        var imageMessage = new ImageMessage()//
                .setId(uploadResponse.id())// media id (uploaded before)
                .setCaption("See this image, please");

        var message = MessageBuilder.builder()//
                .setTo(PHONE_NUMBER_1)//
                .buildImageMessage(imageMessage);

        MessageResponse messageResponse = whatsappBusinessCloudApi.sendMessage(PHONE_NUMBER_ID, message);

        System.out.println(messageResponse);

Sending a web link that points directly to the image.

        WhatsappApiFactory factory = WhatsappApiFactory.newInstance(TOKEN);

        WhatsappBusinessCloudApi whatsappBusinessCloudApi = factory.newBusinessCloudApi();

        var imageMessage = new ImageMessage()//
                .setLink("https://upload.wikimedia.org/wikipedia/pt/4/45/Yoda.jpg").setCaption("See this image, please");

        var message = MessageBuilder.builder()//
                .setTo(PHONE_NUMBER_1)//
                .buildImageMessage(imageMessage);

        MessageResponse messageResponse = whatsappBusinessCloudApi.sendMessage(PHONE_NUMBER_ID, message);

        System.out.println(messageResponse);

Sending via Message Template. Message templates are required when your business is responsible for initiating the first interaction with the customer. Within a 24-hour period from the customer's first interaction, you don't need to use a template. However, if it's been more than 24 hours, you will need a template.

See also media object and Media
If you have any questions, please comment on this issue.


Enabling fatfs on Longan Nano microcontroller

Hi,
I need to access files on a SD card on the Sipeed Longan Nano micro-controller. I see in the examples provided by sipeed that they use fatfs and I am interested in doing the same thing in rust.
Can you clarify what needs to be done to enable it on the platform? Provide a struct that implements Read + Write + Seek traits? Something else? Is there already an implementation for another micro-controller platform that I can get inspiration from maybe?
Thanks,

Can you clarify what needs to be done to enable it on the platform? Provide a struct that implements Read + Write + Seek traits? Something else?
Yes, implementation for Read + Write + Seek is obligatory. Please keep in mind fatfs does not implement any kind of caching/buffering layer so you must implement it yourself to get a good performance. There are also additional traits OemCpConverter and TimeProvider that you may want to implement depending on your use case (they are optional).

Implementing traits and disabling default features (especially std) should let you use this crate in embedded environment.

Is there already an implementation for another micro-controller platform that I can get inspiration from maybe?
Some crates depends on fatfs (see https://crates.io/crates/fatfs/reverse_dependencies) most of them look like no_std stuff, maybe you will find something useful in them.

Thanks for your response. I will give it a go. I will try to implement the driver for embedded-hal to maximize its chances of portability.

When trying to integrate fatfs version="0.3.5" in my crate with default features disabled, compilation fails with:
error[E0463]: can't find crate for `core_io`
  --> /home/jeancf/.cargo/registry/src/github.com-1ecc6299db9ec823/fatfs-0.3.5/src/lib.rs:80:1
   |
80 | extern crate core_io;
   | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

I see that the dependency has disappeared from master HEAD. Are you replacing it with something else?

I have written my driver for fatfs 0.4.0 as it is more convenient and self contained in the no-std use case.
I have implemented the fatfs::Read and fatfs::Seek traits and I need a clarification on how things work because they don't :-)
I see fatfs calling read() a lot but never seek() which in my implementation means that the beginning of the user area keeps being read over and over again. Eventually, my attempt to read a file fails with Error opening file system Corrupted file system.
Question: when a read() has been performed, is the driver expected  to move the cursor forward by how many bytes have been read?

Question: when a read() has been performed, is the driver expected to move the cursor forward by how many bytes have been read?

fatfs::{Read, Write, Seek} traits work in a similar way as std::io::{Read, Write, Seek} traits from Rust standard library. Yes, you have to update position after every read or write operation.

When trying to integrate fatfs version="0.3.5" in my crate with default features disabled, compilation fails with:

You have to enable core_io feature and it should work I believe. I removed that dependency from master because it is badly maintained and doesn't support stable compiler nor current nightly versions of Rust compiler. It also prevented me from returning custom errors which is possible when I use my own IO traits. Feel free to choose version that you feel more comfortable with.
I don't want to promise anything about 0.4 release. I am a little busy lastly so it may take some time.

No, I created this library from scratch using FAT specification and Wikipedia pages as a starting point :) If you don't have any more questions I'd like to close this issue.


Curve3d editing is wrong (coordinates are messed) with 'half-resolution' enabled

Godot version
3.3.4 stable, 3.4-rc3, etc.
System information
windows 10, Gles2, Gles3, etc.
Issue description
with Half Resolution enabled editing Path (Curve3d) in editor makes points appear far off

Steps to reproduce

change view to Half Resolution
add Path node
add or edit point

Minimal reproduction project
path_wrong_points.zip

Possible duplicate of #41586

Duplicate of https://github.com/godotengine/godot/issues/41586 (same cause).


Karpenter fails to reinstall after an uninstall

Version

Karpenter Version: v0.16.3

Kubernetes Version: v1.22
Expected Behavior
Install karpenter, uninstall karpenter, then reinstall karpenter.
Actual Behavior
Karpenter deploys first time without any issues, but then fails to install after an uninstall. Issue is specific to the webhook container.
Steps to Reproduce the Problem
Create cluster and deploy Karpenter v0.16.3 using Helm 3.8.2 with the following command:
helm repo add karpenter "https://charts.karpenter.sh/"
helm repo update
helm upgrade --install karpenter karpenter/karpenter \
--namespace karpenter \
--create-namespace \
--version "v0.16.3" \
--set serviceAccount.annotations."eks.amazonaws.com/role-arn=arn:aws:iam:::role/eks/test/karpenter-test" \
--set serviceAccount.name=karpenter \
--set clusterName="test" \
--set clusterEndpoint="https://.gr7.us-east-1.eks.amazonaws.com" \
--set aws.defaultInstanceProfile="eks-node-test"
Uninstall the karpenter release: helm uninstall karpenter
Reinstall the karpenter release using same command as above
Resource Specs and Logs
WARN    webhook server key missing
TLS handshake error from <IP_ADDRESS>:43408: tls: no certificates configured
Note: The IP address corresponds to the primary Private IP of the node where pod is deployed.
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Looks like the problem that was described here
https://github.com/aws/karpenter/issues/2562

Agree. I also have v0.18.1 running now, so less of a concern. Tks!


Add possibility to see logs of  handler run

I can use codesandbox, run code and see terminal
Here I want to see logs of handler run too. I do not want to just collect logs to array and return it at least because debug library has also add colors which is useful for seeing logs in console

While this is not implemented we should use this https://github.com/deep-foundation/documentation/wiki/CheatSheet#log-in-handler as workaround

@FreePhoenix888 this can be done using https://github.com/deep-foundation/js-docker-isolation-provider/issues/35

To do this issue, we will have to introduce a new link. Something like this: (PromiseResult ExecutionLogs SyncTextFile). The structure of links types should be discussed with @ivansglazunov


rancheros-operator-chart.tgz missing in image 0.1.0

It looks like the file is copied as /usr/share/rancher/os2 and indeed the culprint seems to be  Dockerfile#L61 if the os2 dir does not exists beforehand.
file /usr/share/rancher/os2
/usr/share/rancher/os2: gzip compressed data, extra field, has comment

zcat /usr/share/rancher/os2 | head
rancheros-operator/Chart.yaml0000644000000000000000000000074314227743072015022 0ustar0000000000000000annotations:
  catalog.cattle.io/certified: rancher
  catalog.cattle.io/experimental: "true"
  catalog.cattle.io/namespace: cattle-rancheros-operator-system
  catalog.cattle.io/os: linux
  catalog.cattle.io/provides-gvr: managedoses.rancheros.cattle.io/v1
  catalog.cattle.io/release-name: rancheros-operator
apiVersion: v2
appVersion: v0.1.0
description: RancherOS Operator

Please use rancheros-operator from https://github.com/rancher-sandbox/rancheros-operator
(or use the rpm package from the build service if you're running on (open)SUSE)

Not valid anymore, operator is now at github.com/rancher/elemental-operator


Fix a broken link in README

https://build.sawtooth.me/job/Sawtooth-Hyperledger/job/sawtooth-core/job/PR-2274/2/
Hmm... I'm not sure why the job fails. 🤔💦

Your name is not whitelisted in the build machine. It will be taken care.


config option to only prevent detach for pinned tabs

I don't want to detach pinned tabs (so find this exension valuable), I also don't want to accidentally detach regular tabs, but I do want the ability to detach these regular tabs from time to time.  I'm not sure how to this could work with a reasonable UI though.
for pinned tabs only that seems to be a configuration checkbox: only prevent pinned tab detachment
for enabling easy recovery of non pinned tabs while still enabling them to be moved, perhaps if the same tab is detached twice in quick succession?  One could also ask a Q with a pop up, but that seems more intrusive for preventing accidental detachment, the point would be to prevent accidental detachment, while providing a UI mechanism to allow purposeful detachment.
thoughts?

Checkbox context menu item on tabs to enable detach?

was thinking as global extension configuration option (in the extension screen).
i.e.
[ ] only prevent pinned tab detachment
[ ] don't revert tab to old position if detached twice within 15s
perhaps as a sub option of the 2nd one, "always prevent pinned tab detachment".
Just trying to think through the use cases that make this useful.  Personally, I like firefox pinned tabs over chrome's, as firefox doesn't let you accidentally close them while chrome does, this addons (for me at least) adds another level of accident prevention.

I think the 15s detach thing sounds a bit clunky, it'd be better as a context item on a per-tab basis. That avoids the need for the sub-option, since you have to explicit about detaching a tab. Other options sound fine on an options page.
Options page:

[ ] Only disable pinned tab detach

Tab context:

[ ] Enable detach for this tab

I agree the 15s thing is clunky, was just trying to think of some way that would be transparent to the user.
a less clunky thing thing would be not a time limit, but based on browser interaction, i.e. 2 interactions in a row that are detach of the same tab, the 2nd detach should be allowed.  but I have no idea if/how that can be done efficiently, a time window is easy as one can just record the time of the previous detach.
having to set a flag on the tab is also a bit clunky as have to do that, then detach the tab, perhaps one can override the "move tab" listing, but I have my doubts that is possible.
mostly thinking out loud.


[SPARK-34503][CORE] Use zstd for spark.eventLog.compression.codec by default

What changes were proposed in this pull request?
Apache Spark 3.0 introduced spark.eventLog.compression.codec configuration.
For Apache Spark 3.2, this PR aims to set zstd as the default value for spark.eventLog.compression.codec configuration.
This only affects creating a new log file.
Why are the changes needed?
The main purpose of event logs is archiving. Many logs are generated and occupy the storage, but most of them are never accessed by users.
1. Save storage resources (and money)
In general, ZSTD is much smaller than LZ4.
For example, in case of TPCDS (Scale 200) log, ZSTD generates about 3 times smaller log files than LZ4.

CODEC
SIZE (bytes)

LZ4
184001434

ZSTD
64522396

And, the plain file is 17.6 times bigger.
-rw-r--r--    1 dongjoon  staff<PHONE_NUMBER> Feb 21 22:31 spark-a1843ead29834f46b1125a03eca32679
-rw-r--r--    1 dongjoon  staff    64522396 Feb 21 22:31 spark-a1843ead29834f46b1125a03eca32679.zstd

2. Better Usability
We cannot decompress Spark-generated LZ4 event log files via CLI while we can for ZSTD event log files. Spark's LZ4 event log files are inconvenient to some users who want to uncompress and access them.
$ lz4 -d spark-d3deba027bd34435ba849e14fc2c42ef.lz4
Decoding file spark-d3deba027bd34435ba849e14fc2c42ef
Error 44 : Unrecognized header : file cannot be decoded

$ zstd -d spark-a1843ead29834f46b1125a03eca32679.zstd
spark-a1843ead29834f46b1125a03eca32679.zstd:<PHONE_NUMBER> bytes

3. Speed
The following results are collected by running lzbench on the above Spark event log. Note that

This is not a direct comparison of Spark compression/decompression codec.
lzbench is an in-memory benchmark. So, it doesn't show the benefit of the reduced network traffic due to the small size of ZSTD.

Here,

To get ZSTD 1.4.8-1 result, lzbench master branch is used because Spark is using ZSTD 1.4.8.
To get LZ4 1.7.5 result, lzbench v1.7 branch is used because Spark is using LZ4 1.7.1.

Compressor name      Compress. Decompress. Compr. size  Ratio Filename
memcpy               7393 MB/s  7166 MB/s<PHONE_NUMBER> 100.00 spark-a1843ead29834f46b1125a03eca32679
zstd 1.4.8 -1        1344 MB/s  3351 MB/s    56665767   4.99 spark-a1843ead29834f46b1125a03eca32679
lz4 1.7.5            1385 MB/s  4782 MB/s   127662168  11.24 spark-a1843ead29834f46b1125a03eca32679

Does this PR introduce any user-facing change?

No for the apps which doesn't use spark.eventLog.compress because spark.eventLog.compress is disabled by default.
No for the apps using spark.eventLog.compression.codec explicitly because this is a change of the default value.
Yes for the apps using spark.eventLog.compress without setting spark.eventLog.compression.codec. In this case, previously spark.io.compression.codec value was used whose default is lz4.

So this JIRA issue, SPARK-34503, is labeled with releasenotes.
How was this patch tested?
Pass the updated UT.

Test build #135365 has started for PR 31618 at commit 6ceea1f.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39945/

Test build #135366 has started for PR 31618 at commit 54f14cc.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39946/

No~ This only decides write codec for new logs.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39946/

I updated the indirect benchmark result by using lzbench.

Test build #135365 has finished for PR 31618 at commit 6ceea1f.

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

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39945/

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

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

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

Thank you, @viirya !

I think it's not an obvious win though .. Zstd looks more for archiving purpose with less throughput with high compression ratio vs lz4 is for more throughput with less compression.

The main purpose of event logs is archiving. Many logs are generated and occupy the storage, but most of them are never accessed by users.

But I tend to agree with this. cc @HeartSaVioR or @tgravescs too FYI in case you guys have different thoughts on this.

Test build #135366 has finished for PR 31618 at commit 54f14cc.

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

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

Hi, @HyukjinKwon . Why do you think so?

I think it's not an obvious win though .. Zstd looks more for archiving purpose with less throughput with high compression ratio vs lz4 is for more throughput with less compression.

According to the benchmark,

LZ4 1.7.5 compression time is not a winner. If you consider the upload time to the remote storage, ZSTD can be the winner.
LZ4 1.7.5 decompression time might be your reason. However, this is an event log.

When you download a log from Spark History Server, ZSTD log file will be downloaded 2~3x faster.
Also, when you view the log via Spark History Server, Spark History Server also do the download it from the remote storage like S3 and decompress it. 2~3x faster download will compensate the decompression downgrade slowdown.

In addition, for the storage cost saving, ZSTD is a clear winner.

I agree with the statement the event log directory is most likely placed in remote storage in practice, and for that case reducing size would affect the overall latency. It would be really appreciated if we could see direct benchmark (compress and send to S3 & receive from S3 and decompress) - probably run 10~100 times for each and takes median?, but that's optional and I'd tend to agree small difference from compression/decompression could be caught with reduced network cost.
Btw,
$ lz4 -d spark-d3deba027bd34435ba849e14fc2c42ef.lz4
Decoding file spark-d3deba027bd34435ba849e14fc2c42ef
Error 44 : Unrecognized header : file cannot be decoded

makes me feel Spark does something wrong with lz4, or lz4 has varient which aren't compatible. Anyone knows why this doesn't work?

Test build #135390 has started for PR 31618 at commit 0e88652.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39970/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39970/

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

Okie. I'm good with this change.

Thank you, @HeartSaVioR and @HyukjinKwon .
BTW, for lz4, it looks like some header issues. Apache Parquet community also is having some interesting discussion during last two weeks.

https://lists.apache.org/thread.html/r03cf7d1c57feaf556a5d7bfd8d440d96f694114a88bc7d7ed1e51d12%40<dev.parquet.apache.org> (Request deprecation / removal of LZ4 compression)

Merged to master for Apache Spark 3.2.0!

Test build #135390 has finished for PR 31618 at commit 0e88652.

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

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


Bug: .editorconfig breaks TableOutputFormatterTest

[*.php]
trim_trailing_whitespace = true

breaks TableOutputFormatterTest since it will remove trailing whitespace from the expected output string.

I can't confirm this issue. Can you maybe add a diff what your editor changes?
This is how I tried to reproduce this:

Tests currently pass, so I assume the file was not changed according to this rule.
I opened the file in PhpStorm and ran "Reformat Code"

Expected Behavior: PhpStorm reformats according to editorconfig and removes trailing whitespaces and tests now fail.
Actual Behavior: PhpStorm reports "No lines changed", file is the same according to git diff and tests still pass.
If you still have the problem, I suggest adding this section right after [*.php]:
[*Test.php]
trim_trailing_whitespace = false

For me, this occurs when I change anything in the file and then just click outside of the file. PHPStorm autosaves and reformates the code. All trailing whitespaces from multiline test strings are truncated.

https://streamable.com/5836ej

Yes, when I change something in the file it will be reformatted for me as well. I updated editorconfig and that solved it for me.
An alternative solution would probably be to replace multiline strings with HEREDOC, but I can live with some unwanted trailing whitespaces in tests.


How to change Yii2 assets directory to AWS S3

This is my current assets setting.
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
    //...

I also have an account on AWS S3. I could upload/download files to S3 successful by using this extension. Because I'm using heroku.com to run my website, all assets files will be removed when heroku's dynno is stopped restart. So I want to change assets directory to other server like S3.
How to change yii2 assets directory to AWS S3 ?
Thanks!

Same problem

@nagaokashi @mastershaig
I think this is more a Yii question. You can provide a CDN server like this:
class CdnAsset extends AssetBundle
{
    public $css = [
        '//fonts.googleapis.com/css?family=Roboto:300,400,500,700',
        '//fonts.googleapis.com/icon?family=Material+Icons',
    ];
}


Inquiry About YOLOv10 on Qualcomm NPU

Hi,
I noticed that you mentioned only YOLO v9 and NAS can utilize the Qualcomm NPU (HTP), while other YOLO series models are unsupported, potentially failing to compile or crashing upon execution.
I would like to ask if you have encountered similar issues with the GatherElements operator or other validation mismatches. How did you diagnose and conclude that this issue was due to a lack of official support? If this is a complex issue requiring updates from Qualcomm and ONNX, I might need to consider using other models.
I am currently attempting to quantize the official YOLOv10 ONNX model to a Qualcomm QNN model. During this process, I encountered a warning related to the cast layer, indicating that only specific data type conversions are supported. Although there were no other significant errors during the quantization process, I faced a validation mismatch error with the GatherElements layer when running qnn-net-run.
Thank you for your time and assistance.

您好,
我注意到，您提到目前只有YOLO v9和NAS可以利用高通NPU（HTP），而其他YOLO系列模型不受支持，可能会在编译时失败或执行时崩溃。
我想请问您遇到的是否也是类似的GatherElements算子或其他验证不匹配的问题，您是如何定位和得出该问题是官方不支持而导致的？如果这是一个复杂的问题，需要等待高通和ONNX的更新，我可能需要考虑使用其他模型。
我目前正在尝试将官方的YOLOv10 ONNX模型量化为高通的QNN模型。在这个过程中，我遇到了一个与cast层相关的警告，该警告提示只支持特定的数据类型转换。虽然量化过程中没有其他明显的错误，但在运行qnn-net-run时，我遇到了GatherElements层验证不匹配的错误。

Received your feedback. After a closer look, I'll get back to you. Tested on v8 and v10, no crashes during compilation (with USE_QNN) and both launched fine, with FPS similar to v9. However, the critical issue is incorrect detection outputs and scrambled inference data in v8 and v10. Preliminary speculation suggests possible compatibility issues between the Qualcomm platform and ONNX model. Further investigation into the exact cause was not pursued at the time.
已收到问题反馈, 细查看看后再回复您。我在v8和v10版本上测试时，它们在编译阶段（USE_QNN）未发生崩溃，并能正常启动，且帧率（FPS）与v9相近。但关键问题是，v8和v10的检测输出结果错误，模型推理数据混乱。初步推测这可能是高通平台与ONNX模型算子的问题，当时未深入调查具体原因。

目前官方文档说高通HTP普遍不支持int64的数据类型, (只看到最近更新的Cast能用int64). 然而v10里面有很多使用到int64的操作，TopK，GatherElement，Div…等，应该是这样导致的输出推理结果不对. 您可以考虑一下NAS或v9了.
The official documentation currently states that Qualcomm HTP generally does not support the int64 data type (except for the recently updated Cast operation). Many operations in v10, such as TopK, GatherElement, Div, and more, rely on int64, which likely leads to incorrect inference outputs. You might want to consider NAS or v9 instead.

谢谢你的指导，我也向高通QNN的官方Discord求助了，确实是GatherElement等算子的支持程度不够的原因。
Thank you for your guidance. I also sought help from Qualcomm QNN's official Discord, and it turns out that the issue is indeed due to the insufficient support for operators like GatherElement.


A more strict semver policy

It happened already a couple of times in the 5.x.x series that our build broke because of a new minor release. I know we all make mistakes, but I love depending on standard using ^. Problems like this almost never happened in the 4.x.x series.
I know these are changing times with all the evolution of core, so let me know how I can help making this a little more reliable across versions.

Sorry for complaining about this, but one of the main selling point of standard is being frictionless. Broken builds create friction :(.

The amount of times this has come up in conversation over the last few days with several project owners whom I had referred standard.
They love it, but the build breaking was very frustrating for them, and its only been realized a few weeks later.
Most of it has been in regards to the fixes applied in https://github.com/feross/standard/issues/170.
We were technically adhering to semver, its just everyone had become reliant on the broken behaviour of it not throwing.

ping @arnold-almeida

I can't help but think this entire situation smells of:

I am proposing a slightly stricter semver: if anything would break users builds, we bump the major. If we made a mistake and we do break user builds (and that's fine!) we just remove that release, and re-release on a bumped major.

@mcollina
For a linter, any change, even in dependencies, has a decent potential to break someone's tests.
For example, eslint publishes patch versions when they improve a rule to detect some case that was being missed before. This makes sense to be a patch from their perspective, since it's a bugfix – the rule wasn't working correctly before.
But to end users, that patch version could cause eslint to start failing on code that passed before. This isn't theoretical – they release changes like this in every patch version.
This bit from the jscs project is relevant: https://github.com/jscs-dev/node-jscs/blob/master/OVERVIEW.md#versioning--semver Note that they introduce bug fixes that cause more errors to be reported in minor versions.
So, to be safe, literally every time we bump a dep, we would need to publish a major version. I don't think this is realistic. (I propose continuing as before with regards to updating dependencies).
There's also another question: What should we do when we intended to catch certain cases but weren't, for whatever reason. When we add a new rule or make a rule change to catch that case – what semver should that be? We've been publishing these as minor, which is what has caused all this recent pain. (I propose these should be major version bumps going forward).
It seems that in practice the source of build breakage has been our intentional rule changes, not the eslint bugfixes.

Thanks @feross for the long response, and for the willingness to discuss such a delicate topic :+1:.
I know doing a project where the simplicity of usage is major value proposition is extremely hard as soon as its gets adopted. Balancing stability and innovation is really hard.
As you mentioned, depending with ^ was suddenly causing a lot of instability. Just to clarify, I am not speaking about OSS projects here, but more about continuos deployment scenarios that I face in my day to day work. I was not aware of JSCS readme definitions, and I think that is a good rule, so we should probably add it to README in this project as well. Moreover, we should add a FAQ that explains it clearly, like "What to do if your building are suddenly failing? If you are in a continuous deployment setup, you should depend on it using ~". I can send a PR if you want.
Regarding dependencies, another completely different solution to this problem is to use shrinkwrap. I fear that might cause too much work to keep everything updated. What do you think?
On a side note, the README is quite long, what about adding an index at the top like levelup?


[BUG] Title bar and pop-over status message show black on black (invisible text)

Describe the bug
The title bar of the Obsidian application does not have visible text, and the toast pop-over with status message that is shown when something is updated has the same issue (looks like a black bar).
To Reproduce
Steps to reproduce the behavior:

Open Obsidian.
Look at the title bar.
See nothing.
Same when on an Android device and the vault for example finishes scanning (also see screenshot).

Expected behavior
Visible text :)
Screenshots
See comment.
Desktop (please complete the following information):

OS: Linux desktop, Android phone.
Obsidian Version: 0.12.19

Thanks for this great-looking theme!

Oh, I just realised the titlebar does not show any text at all, because of the 'display: none' on .titlebar-text: https://github.com/Braweria/Spectrum/blob/main/obsidian.css#L761
Any reason you are doing this, apart from it looking more clean? I kinda like the clean look without the text, but I have multiple vaults, so having a title is helpful.
Not sure if this is related to that pop-over status message though, might still be an issue.

@aquatix
They are not related to each other. I hid the titlebar, so that plugins that use that space can work with that space better, example:

I can release a snippet, though, where you can choose it yourself. I believe that would be a good workaround. What do you think?

I was not aware of plugins using the titlebar, that sounds useful indeed. A snippet would certainly help me, making better use of the Obsidian GUI sounds good :)
Thanks in advance for fixing the Snackbox!

Snippet now exists in the Snippet folder.

Nice, I saw the snippet, thanks!
How exactly would that work? Do I need to manually add the content of the snippet to the final .css file, or is it preferred to compile the project using the snippet somehow? Just thinking about how to use it :)

Also, which plugins do you use that make use of that space? Sounds useful.

You save the snippet css in the snippet folder of Obsidian.  You can open the right folder from the appearance tab.

The Plugin is also the Quick Explorer, you can see the GitHub here: https://github.com/pjeby/quick-explorer

Oh, I totally overlooked that "CSS snippets" config option, thanks.
Quick Explorer looks useful, but I don't have nested directories in my vaults, so I don't think I'll use it. Maybe I can use the title bar for something else though :)
Anyways, thanks for the changes and fixes, I love this theme!


Added kernel upgrade workflow documentation

@ddysher PTAL
@multilinear FYI re:  #5044

Depends on #4585

PTAL


bosh-lite ops file

Adding a bosh cli v2 ops file to be used with bosh-lite

I'm now part of the emcpcf team and covered under the enterprise cla. Please close and reopen the pull request.

@vchrisb You need to publicize your membership in one of the allowed Github Orgs, see the instructions from the bot.

Thx @rosenhouse, it is now public.

This PR has a couple things:

It removes the explicit nats properties under route_registrar since that job consumes them as a link.  This change is good in its own right, and should be reflected in any other ops files designed to add c2c networking to another deployment.
It switches c2c networking from using mysql to using postgres.  It actually has nothing to do with bosh-lite, aside from the fact that the current ops file in cf-deployment for deployment to bosh-lite also happens to switch from mysql to postgres.

The nats properties removal should probably move into whatever ops file is going to be the common denominator for anyone adding c2c, and then this repo should provide an additional ops file to switch c2c from using mysql to postgres.
cf-deployment should have its own standalone ops file for switching databases too.

Thanks @vchrisb. We actually prefer to use our existing ops-file for bosh-lite (creating a separate postgres ops-file to make it compatible), so we will likely remove that addition. The documentation is great. Let me know if you have any questions.

@chinangela thank you!