security.hideProcessInformation prevents systemctl reboot issued by a regular user from working

Issue description
When security.hideProcessInformation = true, a regular user logged in locally (as the only seat) cannot run systemctl reboot, poweroff, suspend, halt, hibernate etc.
This ability is a convenience for desktop systemd users. E.g. this issue prevents GNOME’s power buttons (restart, power off, hibernate) from working.
Steps to reproduce

Set security.hideProcessInformation = true.
As a regular user logged in locally (i.e. not over SSH), run systemctl reboot (or just reboot, it’s the same).
You’ll get:Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to start reboot.target: Interactive authentication required.
See system logs and 'systemctl status reboot.target' for details.

Without hideProcessInformation, the machine would reboot correctly.

Technical details

System: 16.09.1149.e360c72 (Flounder)
Nix version: nix-env (Nix) 1.11.4
Nixpkgs version: "16.09.1149.e360c72"

logind runs with root privileges. It has the information about all processes. It should not matter that a regular user that wants to reboot doesn’t have it all.

Also related: with hideProcessInformation set, one cannot change screen brightness in GNOME:
Dec 06 17:35:32 nixos pkexec[2315]: mikolaj: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/home/mikolaj] [COMMAND=/nix/store/llny1hmxjbjk3j24ws7bnkh4ghrw8qch-gnome-settings-daemon-3.20.1/libexec/gsd-backlight-helper --set-brightness 891]
Dec 06 17:35:32 nixos gnome-settings-daemon.desktop[1452]: Error executing command as another user: Not authorized
Dec 06 17:35:32 nixos gnome-settings-daemon.desktop[1452]: This incident has been reported.

Side note: with this option enabled, changing brightness and rebooting works fine in Xfce.

I have a pending patch for some issues I had. I'll do some testing and push it if it turns out to resolve this problem as well.

I looked at the implementation of hidepid in the kernel. The logic does not take superuser into account; the task must be in the proc gid or have the sys_ptrace capability to access process information owned by other users. systemd-logind lacks that capability. (It would have worked out if we didn't use a designated proc group, it'd default to 0). The other problem you noted has to do with polkit arbitration, which is also broken.

Awesome, thank you! :heart_eyes_cat:


VTC in one Docker Container

Patch making a new dockerfile creating one container for both the dashboard and the pfring module

test this please

test this please

test this please

test this please


[QA] Test and certify mysql aurora

Test mysql-flavored aurora on aws.
Certify this.
Dave to add this to support matrix in next iteration.

Validated as per our db certification matrix
k3s version v1.19.5+k3s1.
Aurora(Mysql 5.7) 2.09.0


Allow Hadoop to be configured with FileSystem implementations not using the 'hdfs://' scheme.

Pull Request Test Coverage Report for Build 6030

28 of 30 (93.33%)  changed or added relevant lines in 5 files are covered.
26 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.07%) to 43.47%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

azkaban-common/src/main/java/azkaban/HadoopModule.java
11
13
84.62%

Files with Coverage Reduction
New Missed Lines
%

azkaban-common/src/main/java/azkaban/jobExecutor/AbstractJob.java
2
37.93%

azkaban-common/src/main/java/azkaban/jobExecutor/AbstractProcessJob.java
3
54.64%

azkaban-exec-server/src/main/java/azkaban/execapp/event/JobCallbackRequestMaker.java
21
56.25%

Totals

Change from base Build 6028:
-0.07%

Covered Lines:
16365

Relevant Lines:
37647

💛  - Coveralls


build_pip_package is broken

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): RHEL 8.5
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a
TensorFlow installed from (source or binary): source
TensorFlow version: git HEAD
Python version: 3.6.8
Installed using virtualenv? pip? conda?: n/a
Bazel version (if compiling from source): 3.7.2
GCC/Compiler version (if compiling from source): 10.3.0
CUDA/cuDNN version: n/a
GPU model and memory: n/a

Describe the problem
build fails with
ERROR: /home/andrew/src/tensorflow/WORKSPACE:23:14: error loading package '@com_github_grpc_grpc//src/compiler': in /home/andrew/.cache/bazel/_bazel_andrew/c61c5f84d239689cb19a72cfde16be9f/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl: in /home/andrew/.cache/bazel/_bazel_andrew/c61c5f84d239689cb19a72cfde16be9f/external/build_bazel_rules_apple/apple/ios.bzl: in /home/andrew/.cache/bazel/_bazel_andrew/c61c5f84d239689cb19a72cfde16be9f/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl: in /home/andrew/.cache/bazel/_bazel_andrew/c61c5f84d239689cb19a72cfde16be9f/external/build_bazel_rules_swift/swift/swift.bzl: in /home/andrew/.cache/bazel/_bazel_andrew/c61c5f84d239689cb19a72cfde16be9f/external/build_bazel_rules_swift/swift/internal/swift_proto_library.bzl: Extension 'swift/internal/swift_protoc_gen_aspect.bzl' has errors and referenced by '//external:grpc_python_plugin'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed
INFO: Elapsed time: 60.334s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (194 packages loaded, 3623 targets configured)
Provide the exact sequence of commands / steps that you executed before running into the problem
bazel build --config=nonccl //tensorflow/tools/pip_package:build_pip_package --verbose_failures
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@cfRod @nSircombe

I just confirmed this issue with bazel 4.2.2 as well.

OK, works with bazel 5.0.0, sorry for the noise.


Include with relative path does not work

I use version 0.0.12 and in this version including a skin via a relative path does not work anymore.
Example:
@startuml

!include ../clean.skin

class Person {
}

@enduml

The error message I get is:
Cannot include C:\Users\username\AppData\Local\Temp\okazukiplantuml\..\clean.skin

ah...
It is very difficult problem. Realtime preview step to, copy file to temp, execute command to temp folder file. Temp folder file dosen't have relative files.
I 'll try to think of a solution .

I released v0.0.13.
Limited support include with relative path.

Open all included file and preview.
Open and edit file.

Thanks. Now it works!


ClassCastException while using heterogenous spring boot versions

Using spring-cloud-sleuth 2.0.1-RELEASE with gpc PubSub in an environment where some services are still using spring boot 1.5 results in this ClassCastException:
An exception happened when we tried to retrieve the [x-cloud-trace-context] from message java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
	at org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.doGet(MessageHeaderPropagation.java:123)
	at org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.get(MessageHeaderPropagation.java:94)
	at org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.get(MessageHeaderPropagation.java:38)
	at zipkin2.propagation.stackdriver.XCloudTraceContextExtractor.extract(XCloudTraceContextExtractor.java:49)
	at zipkin2.propagation.stackdriver.CompositeExtractor.extract(CompositeExtractor.java:37)
	at org.springframework.cloud.sleuth.instrument.messaging.TracingChannelInterceptor.preSend(TracingChannelInterceptor.java:133)
	at org.springframework.integration.channel.AbstractMessageChannel$ChannelInterceptorList.preSend(AbstractMessageChannel.java:589)
	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:435)
	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:394)
	at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:181)
	at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:160)
	at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47)
	at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:108)
	at org.springframework.integration.endpoint.MessageProducerSupport.sendMessage(MessageProducerSupport.java:203)
	at org.springframework.cloud.gcp.pubsub.integration.inbound.PubSubInboundChannelAdapter.receiveMessage(PubSubInboundChannelAdapter.java:79)
	at com.google.cloud.pubsub.v1.MessageDispatcher$4.run(MessageDispatcher.java:403)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

Spring Cloud Sleuth is not intended to be used with Spring Boot 1.5.
You're saying that the messages are not compatible with each other?
x-cloud-trace-context seems to be Stackdriver specific. I guess they should ensure the compatibility cc @saturnism

sorry maybe obvious but is this coming from the 2.0 side?
On Fri, 31 Aug 2018, 17:07 Andreas Berger<EMAIL_ADDRESS>wrote:

Using spring-cloud-sleuth 2.0.1-RELEASE with gpc PubSub in an environment
where some services are still using spring boot 1.5 results in this
ClassCastException:
An exception happened when we tried to retrieve the [x-cloud-trace-context] from message java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
at org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.doGet(MessageHeaderPropagation.java:123)
at org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.get(MessageHeaderPropagation.java:94)
at org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.get(MessageHeaderPropagation.java:38)
at zipkin2.propagation.stackdriver.XCloudTraceContextExtractor.extract(XCloudTraceContextExtractor.java:49)
at zipkin2.propagation.stackdriver.CompositeExtractor.extract(CompositeExtractor.java:37)
at org.springframework.cloud.sleuth.instrument.messaging.TracingChannelInterceptor.preSend(TracingChannelInterceptor.java:133)
at org.springframework.integration.channel.AbstractMessageChannel$ChannelInterceptorList.preSend(AbstractMessageChannel.java:589)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:435)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:394)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:181)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:160)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:108)
at org.springframework.integration.endpoint.MessageProducerSupport.sendMessage(MessageProducerSupport.java:203)
at org.springframework.cloud.gcp.pubsub.integration.inbound.PubSubInboundChannelAdapter.receiveMessage(PubSubInboundChannelAdapter.java:79)
at com.google.cloud.pubsub.v1.MessageDispatcher$4.run(MessageDispatcher.java:403)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/spring-cloud/spring-cloud-sleuth/issues/1081, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD61xY3yvBO4MqEYxWoJU-QZWUBL8J9ks5uWPzkgaJpZM4WU3Sw
.

@adriancole yes the issue occur in spring boot 2.0
@marcingrzejszczak the old services uses spring-cloud-sleuth 1.3.1.RELEASE which is using spring-boot 1.5.9.RELEASE.
After applying the fix of #1082 the old messages from the pub/sub could be consumed by spring-cloud-stream. The new messages are having the headers in the right format.

I understand that the fix solves the problem for you, but from our knowledge you're the first ones to have such a problem. Also, you haven't upgraded the other service to the latest Sleuth and Boot versions.
Another thing is that you own the way you send the x-cloud-trace-context. So either you've changed the format, or we have in Sleuth 2.x. Can you ensure that it's not the first case?

I have added 3 tests that reflect the current problem. The old messages have a JSON String under the key nativeHeaders.
I've updated all services, but there were old messages in the pub/sub not beeing delivered before the upgrade.

Cool, thanks.
Now coming back to the original question. Which component is sending those headers. Is it us or SC-GCP ? Cause like I mentioned - x-cloud-trace-context is a custom, GCP thing.

@marcingrzejszczak spring-sleuth was used by a down-ported spring-cloud-gcp-starter-trace (1.0.0.RC1). I don't know if the google guys did some adjustments for the header you mentioned. In our services there was no adjustment.

That's why we should fix the root problem which seems to be there in spring-cloud-gcp-starter-trace

Yes but also casting without instanceOf check is bad parctice.

my guess is that the deep structure serialisation was broken by the version we used:
https://github.com/kiwigrid/spring-cloud-gcp/blob/spring-boot-1.5-support/spring-cloud-gcp-pubsub/src/main/java/org/springframework/cloud/gcp/pubsub/integration/outbound/PubSubMessageHandler.java#L96


Bulk Added Servers

Mapping Properties:
Please ensure that you check the following boxes that apply to your submission. If you are unsure about any of these, refer to the example-metadata.json.
Required
The following properties are required for your submission, if you do not have them, update your Pull Request with the correct information or your submission will be rejected:

id: A unique identifier for the server. It should be a string. (ex. "ExampleServer")

addresses: An array of strings representing the IP addresses or domain names of the server. (ex. ["mc.example.com", "play.example.com", "play.example.net"])

primaryAddress: The primary address that people connect to with. It should be a string. (ex. "mc.example.com")

port: The port number of the server. It should be an integer. If not specified, by in the connection address it will most-likely be 25565.

versions: An array of strings representing the supported Minecraft versions. (ex.["1.8", "1.16.5", "1.17"])

primaryVersion: The primary Minecraft version supported by the server. It should be a string. (ex. "1.20.4")

tags: An array of strings describing the server's features or game modes. (ex. ["minigames", "pvp", "survival"])

primaryRegion: The primary region where the server operates and or where the majority of your playbase is located. It should be a string. (ex. "NA")

regions: An array of strings representing all regions where the server has presence. (ex. ["NA", "EU", "AS"])

crossplay: A boolean indicating whether the server supports crossplay with Bedrock Edition players. (ex. true or false)

primaryColor: A hexadecimal color code that best fits the server's branding or theme. (ex. "#FFFFFF")

secondaryColor: A hexadecimal color code that accompanies the primary color. (ex. "#00000F")

Optional
Social Media

twitter (optional): The username of the Twitter account without the @ symbol. (ex. "MyServer")

discord (optional): The invite link to the Discord server. (ex. "https://discord.gg/MyServer")

youtube (optional): The slug or username of the YouTube channel. (ex. "MyServerChannel")

instagram (optional): The username of the Instagram account. (ex. "MyServerOfficial")

twitch (optional): The username of the Twitch account. (ex. "MyServerStreams")

telegram (optional): The slug of the Telegram group. (ex. "MyServerGroup")

reddit (optional): The slug of the subreddit (start with 'r/'). (ex. "r/MyServerSubreddit")

tiktok (optional): The username of the TikTok account. (ex. "MyServerTikTok")

facebook (optional): The slug of the Facebook page. (ex. "MyServerPage")

Compliance

privacyPolicy (optional): The URL to the Privacy Policy of the server. (ex. "https://www.example.com/privacy")

tos (optional): The URL to the Terms of Service of the server. (ex. "https://www.example.com/tos")

rules (optional): The URL to the rules of the server. (ex. "https://www.example.com/rules")

support (optional): The URL to the support site of the server. (ex. "https://www.example.com/support")

Additional Information:
Logo

My logo is a PNG file with a transparent background and a square aspect ratio (1:1). (ex. Upload logo.png to server folder)

The dimensions of the logo are 512x512 pixels. (ex. Width: 512px, Height: 512px)

Background

My background is a PNG file with an aspect ratio of 16:9. (ex. Upload background.png to server folder)

The dimensions of the background are at least 1920x1080 pixels. (ex. Width: 1920px, Height: 1080px)

All of the servers put in this PR comply with those regulations

looks gud


fix: skip kapeta files w/o kind or name [CORE-2577]

Adds validation of kind and metadata.name fields in all kapeta.yml files.
Any yaml documents that don't have the required fields will be skipped, and added to an errors property. The errors can be read by the cluster-service and forwarded to the UI.

npm publish

npm publish

npm publish

npm publish


PHOENIX-5895: Leverage WALCellFilter in the SystemCatalogWALEntryFilter to replicate system catalog table

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 34s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s
The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ 4.x Compile Tests _

+1 :green_heart:
mvninstall
11m 12s
4.x passed

+1 :green_heart:
compile
0m 58s
4.x passed

+1 :green_heart:
checkstyle
0m 30s
4.x passed

+1 :green_heart:
javadoc
0m 43s
4.x passed

+0 :ok:
spotbugs
2m 56s
phoenix-core in 4.x has 950 extant spotbugs warnings.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
5m 21s
the patch passed

+1 :green_heart:
compile
0m 57s
the patch passed

+1 :green_heart:
javac
0m 57s
the patch passed

-1 :x:
checkstyle
0m 30s
phoenix-core: The patch generated 2 new + 9 unchanged - 8 fixed = 11 total (was 17)

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
javadoc
0m 44s
the patch passed

+1 :green_heart:
spotbugs
3m  3s
the patch passed

_ Other Tests _

-1 :x:
unit
135m 40s
phoenix-core in the patch failed.

+1 :green_heart:
asflicense
0m 38s
The patch does not generate ASF License warnings.

166m 28s

Reason
Tests

Failed junit tests
phoenix.end2end.AlterTableWithViewsIT

phoenix.end2end.index.GlobalImmutableTxIndexIT

phoenix.end2end.IndexToolForNonTxGlobalIndexIT

phoenix.end2end.UpsertSelectIT

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-981/2/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/phoenix/pull/981

JIRA Issue
PHOENIX-5895

Optional Tests
dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile

uname
Linux d88c550027f4 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev/phoenix-personality.sh

git revision
4.x / e57fcc8

Default Java
Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08

checkstyle
https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-981/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt

unit
https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-981/2/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt

Test Results
https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-981/2/testReport/

Max. process+thread count
6332 (vs. ulimit of 30000)

modules
C: phoenix-core U: phoenix-core

Console output
https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-981/2/console

versions
git=2.7.4 maven=3.3.9 spotbugs=4.1.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@sandeepvinayak - the test failures look like environmental minicluster issues, but could you please rerun the failed tests locally to confirm that they pass?

@ChinmaySKulkarni @gjacoby126 All the failing tests are good locally.


FixJob repaly logic error

Proposed changes
revert this one

run buildall

run buildall

run external

run external

run buildall


Rename file name to adequately describes the content (Recent Edits)

Summary

Rename file name to adequately describes the content.
The following workshop contents are not "Recently changed files" but "Recent edits", so I renamed the files appropriately.

01-Navigation\3-Navigate_to_somewhere_youve_already_been\3.3-Recently_changed_files.cs
  -> 3.3-Recent_edits.cs

This topic is touched upon in the following discussion:
https://github.com/JetBrains/resharper-rider-samples/pull/28#issuecomment-831797780
Issue
https://github.com/JetBrains/resharper-rider-samples/issues/20
Proposal for creating a Japanese localized version
How did I test it?

I have only conducted self-verification using a translation tool.
If you have a reliable Japanese person, I would like to ask for a third-party review.

Good days!

@sun-flat-yamada Would you mind making the change in the English version, too? That way we keep things consistent from the start.

@ sun-flat-yamada英語版も変更していただけませんか。そうすれば、最初から一貫性を保つことができます。

Hi, @maartenba .
OK, of course. I'll set up an Issue and tie this PR to it.
I should have started an Issue first. I'm sorry about that.
Here is an issue :
#30
I will update this PR (and I'll update English version soon).

@maartenba , I'm done.
Could you please check?

Thanks @sun-flat-yamada !


docker.timezone.mount - replace with UTC

this issue meant as discussion / decision thread.
current deployments always mount local timezone into docker containers.
local timezone is currently hard-coded to "America/New_York"
I'd like to argue that this be changed to UTC for the following reasons:

in the past this might have been convenient for developers in NY but with going open-source we can no longer make that assumption.
neither our servers nor all of our developers are located in that timezone. once more regions are added it will become even more confusing
log analysers like kibana expect UTC and convert it to local time of the user. so if a user selects a time frame e.g. "last 5 hours", the log timestamps should also reflect that. if they were UTC, you would only have to add/subtract your local timezone. currently, you have to add/subtract from NY timezone.
it is good practise to use UTC everywhere in logs / tools to make times comparable. e.g. error message output from tests should be searchable in logs.

AFAIK, our core (Scala) components log time in UTC already. They all (should) use Logging.scala. See this.
I'm fine with your proposal, specially that I don't think we'll notice a difference wrt logs.

Is this fixed?

the mount still remains but it is set to UTC. since the image itself has UTC as default timezone, I'd propose we remove the mount as well. Any objections?

tz mount is no longer used with ansible deployments. so closing this as obsolete since we want to move away from ant anyway. we can open a new issue, should we run into any tz difficulties on ansible.


Updated JSON formatting for sample-config.json

Mix of tabs and spaces was confusing, especially when reading on github.

This is debatable. The reason it's spaced like that is to separate the sections.
Eg the switch section and the service section, if it is not tabbed it's hard to see. Happy to have a look at changing it but still would like it to look similar to before

I understand what you're saying. My personal experience was that I looked at it and had to look pretty closely to understand what was going on. Rather than helping me understand the fields, it made me think harder to figure out the structure.
I would argue that most people who read JSON expect the tab structure to reflect the object structure. But I wouldn't argue it passionately, because it's just not that important.
Also, I had never tried making a pull request before, so I figured I'd try it with something fairly innocuous. Either way, thanks for your consideration.

Thanks for your explanation and it makes sense. I am glad you didn't take offence to my question as based on your theory I would think I would be in the minority.


Cluster Documentation for 0.10.0

There are a number of cluster documentation changes related to the config file for 0.10.0.  See https://github.com/influxdata/influxdb/issues/5168#issuecomment-172064348 for some of the changes.
This PR https://github.com/influxdata/influxdb/pull/5132 is the actual change to be merged.

@jackzampolin, for config.md.

Fixed by https://github.com/influxdata/docs.influxdata.com/pull/190


Mention specific user/channel on error/fatal?

I'd like Slacker to shout to everyone on the channel (or at least to me) when an error happens. Is that possible?

Oh, for some reason I didn't see this in my feed when you posted it 20 days ago.
I'll see if I have time to test your PRs and merge after work today.

Thanks for the PRs @d33tah. I merged both and modified #23 to allow for a list of users instead of just one.
Things seemed to work as expected when I tested it, so I put it up on pypi as v1.7.0.
Please test it yourself and let me know if something doesn't work as expected.

Note to self: remember to add documentation for these new options later.


Remove install instructions for Laravel

Now with auto-discovery, all of this is done for you :)

Codecov Report

Merging #61 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #61   +/-   ##
=======================================
  Coverage   93.86%   93.86%
=======================================
  Files           5        5
  Lines         212      212
=======================================
  Hits          199      199
  Misses         13       13

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 06e3f7b...1649f28. Read the comment docs.

Thanks buddy


"The editor has crashed" - windows 10

Hi,
"The editor has crashed": This occurs quite often on windows 10 (no specific action or context)

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

Which version of Atom are you using?
What OS and version are you running?
Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

just checked atom --safe still crashes for me.
After a clean install (deleted .atom, Roamin\atom, and local\atom and version 1.4.3), it only crashes when opening a folder.

I will investigate this a bit more as it really frustrates me.

I think I also have this issue. Atom crashed with a number of files open. When I tried to enter safe mode atom was still frozen so I was unable to debug. I found this thread and tried opening another file atom --safe randomfile.txt which appears to have resolved the issue so I can now continue using atom as I was. I am using windows 7 x64.

I have the same symptoms as @3nk. It is happening 2 to 3 times a day while interacting but at no specific action. (And -> Reload does not work; pressing it turns the dark part of the editor black)
I am on Atom 1.6.2 on Windows 10.0.10586 Pro with the only non-core packages being latextools and language-latex. crash log .txt files
How can I gather further information that may help to resolve this problem?

i have some on few hours ago !
windows 10 x64

This is happening CONSTANTLY on my computer.
I haven't had any crashes while running it in safemode, which makes me think that's it's probably a package. The crash log doesn't seem to display anything meaningful. How can you tell which package is causing the issue?
I currently have:

language-babel
linter
linter-eslint
react
atom-material-syntax
atom-material-ui

...installed.

@kevinhikaruevans It most likely isn't language-babel or the two themes you have installed, so I'd try going in alphabetical order - first disable linter and linter-eslint for a while, and if that doesn't work, then try disabling react.

@3nk Are you still running into this problem?
For the others on this Issue, please file a new Issue with all the relevant information. If Atom is crashing, give us crash logs too. This Issue will be closed if @3nk is not experiencing it anymore.

I have a hunch that it might have something to do with packages using git diff on projects with a large/old .git directory. I just disabled git-diff and minimap-git-diff and stopped getting the crashes when typing; re-enabling brought the crashes back very soon.
I have two instances of Atom open, one with an old rep from ~2014, 75 megs and 3047 commits and the other one with a bunch of different git projects with < 100 commits combined and the former one keeps on crashing.

@HaykoKoryun The Atom repo dates back to 2011 and has over 28k commits. Since git-diff is a default-installed package, I would expect that our Windows maintainers would have reported something like this.

@3nk Do you have any updates? If we don't hear back from you, we'll have to close this.

Closing due to lack of response. If anyone else is having a similar problem, please file a new Issue.


Implement basic UI streaming

This implements basic UI "streaming" with Next and replicates the Recipe example via "arch 3".
Some caveats:

<AI.JSX> nested within <AI.React> is not yet supported (which means that there's no way to have text streaming in "inside" a React component delivered by the API
Components need to be registered in a ComponentMap that is used both by the API to serialize and the client to rehydrate.

Let's make sure the docs for this are updated before you're OOO. (Maybe I'll push to this branch to do it.)

I'm getting some of this when I run locally:
AIJSXError: The model did not produce a valid JSON object, even after 3 attempts.

So @hessamb / @farzadab it would be great to get OpenAI functions working to see if that helps with this.

This implements basic UI "streaming"

heh, I see now why 'streaming' was in quotes.

@NickHeiner re:

AIJSXError: The model did not produce a valid JSON object, even after 3 attempts.

I went and switched this back to ChatCompletion, empirically it is much more reliable. (At least with gpt-3.5)


Fixes application crashes

Could you provide some context please, which issue is this addressing and how does it solve it?

@vikeri https://github.com/vikeri/react-native-background-job/pull/21 basically same idea. I get crashes because service runs on foreground when it's not suppose to I guess. Not sure how it happens. If you add this option from that PR allowInForeground, it would give users some flexibility. Also I'd like my service to run in foreground in general. Why not have it? Yes, not recommended, yes, better not to do any intensive work in it, but still more flexibility and fixes some app crashes as well.

Other than that, @vikeri thanks for this library, well done.

This has been solved by the new flag allowExecutionInForeground in 2.0.0, see docs


Column names are not being properly escaped in the postgreSQL dialect

Column names are not being properly escaped in the postgreSQL dialect. This allow SQL Injection.
If I do:
var query = knex.select('id","name').from('test')
console.log(query.toSQL())

I get
{ method: 'select',
  options: undefined,
  bindings: [],
  sql: 'select "id","name" from "test"' }

Thanks for finding this, patched and released in 0.6.23 and 0.7.6 - also if you see any other injection issues feel free to ping me at the email on my github so the info is a little less public.


Add examples for functional options

Cool PR. Maybe we can add the examples for both httpclient and hystrixclient on a examples directory?

@sohamkamani Can we also add examples for hystrix client plz ?

@sohamkamani Can we also add examples for hystrix client plz ?

Yes, added them :)

@sohamkamani Hey does it make sense to put these examples in its own folder, instead of in tests ?

The suggested way to do it in Go is with test examples. These will appear in the docs, and be tested in CI automatically. Any reason you prefer the example folder?

If we decide to put it in the tests we should probably do it in a separate file, as suggested here, wdyt?

@sohamkamani Can we move it to a separate file maybe ? Tests and examples in the same file feels a bit confusing

@sohamkamani Can you help fix the above plz ?


Double free with OpenSSL_add_all_algorithms() call

I am using openssl version 1.0.2k-fips. In my application, in initialization code, I have this to init my AES key.
    AESData::AESData(const uint8_t *aInKey,
                     const uint8_t *aInIv,
                     const uint32_t aInBitLen)
    {
        keyBitLen = aInBitLen;
        byteLength = aInBitLen/8;
        memcpy(aesKey, aInKey, byteLength);
        memcpy(iVec, aInIv, byteLength);
        memcpy(iVCbc, aInIv, byteLength);
        /* Initialise the library */
        ERR_load_crypto_strings();
        OpenSSL_add_all_algorithms();
    }

But appears to cause double free.
#2  0x000074f556c11590 in DoLiveCoreDump (cause=0x74f556c197e2 "DoubleFree") at src/[heap-profiler.cc:732](https://heap-profiler.cc:732/)
#3  0x000074f556bf8d31 in (anonymous namespace)::do_free_with_callback (ptr=ptr@entry=0x5e0b0ad7fa58,
    invalid_free_fn=0x74f556bf7270 <(anonymous namespace)::InvalidFree(void*)>) at src/[tcmalloc.cc:1299](https://tcmalloc.cc:1299/)
#4  0x000074f556c17467 in do_free (ptr=0x5e0b0ad7fa58) at src/[tcmalloc.cc:1376](https://tcmalloc.cc:1376/)
#5  tc_free (ptr=0x5e0b0ad7fa58) at src/[tcmalloc.cc:1761](https://tcmalloc.cc:1761/)
#6  0x000074f5522319fd in CRYPTO_free () from /usr/lib64/libcrypto.so.10
#7  0x000074f5522359d7 in OBJ_NAME_add () from /usr/lib64/libcrypto.so.10
#8  0x000074f5522f5a50 in OpenSSL_add_all_ciphers () from /usr/lib64/libcrypto.so.10
#9  0x000074f5522f596e in OPENSSL_add_all_algorithms_noconf () from /usr/lib64/libcrypto.so.10

I want to know the reason what could be causing this and how to get out of this issue?
Thanks

OpenSSL 1.0.2 is no longer supported.

sburnwal wrote:

I am using openssl version 1.0.2k-fips. In my application, in initialization code, I have this to init my AES key.
     ...
         /* Initialise the library */
         ERR_load_crypto_strings();
         OpenSSL_add_all_algorithms();
     }

But appears to cause double free.
Load of error strings is optional. Try a) without error strings b) load errors later c) ensure initialisation only once.

Roumen

Marking as inactive, to be closed when 3.4 dev cycle ends, barring further input


Add PeekABook contract

Support

[x] advertise(pair, sell_or_buy, amount, peerID) => advertisementID.
[x] remove(advertisementID)

Closed by #9


fix the flutter widget in order to display the Setting view

Problem
Our Setting View is not showing a very nice UI because is developed in the wrong way!
Backgbround
This task required reworking the Setting View by wrapping the UI inside a SafeArea and building the component with the Row/Colum + Expanded or Flexible

Goal
Make the setting view responsive and nicer to use.
Object of this tasks

Show that you are able to understand how Flutter, and not just make some code that works
Show that you are able to work with git, and follow the contributor guideline https://github.com/dart-lightning/lndart.clnapp/blob/main/docs/dev/MAINTAINERS.md
Show that you can propose and improve the application with your own idea from a general one

@vincenzopalazzo  please assign this issue to me.


hc/63-addLandingPageAndPrimaryCategories

PR Add Landing Page + Primary Categories Page
Issue Number(s): #63 #64
What does this PR change and why?
Adds a landing page that has 3 building types that are clickable and take you to another new page that has the primary categories associated with that building type.
Clicking one of those primary categories should take you to a library page with only the cards relevant to that category.
Schemas are created for both PrimaryCategories and BuildingType (the data on the categories page and the index respectively).
Creates createDefaultBuildingTypes method for creating building types with existing sample data (for creating dummy data for testing).
Checklist

[x] Created a schema called BuildingType with the following properties:
- Name
- Array of PrimaryCategories
[x] Created a schema called PrimaryCategory with the following properties:
- Name
- Array of Cards
[ ] Created Three Building Type documents (multifamily, singleFamily, commercial)
[x] In each of those Building Types, created an array of eight PrimaryCategories:
- Site Planning (SP)
- Resource Efficiency (RE)
- Durability and Moisture Management (DU)
- High-Performance Building Envelope (BE)
- Energy Efficient HVAC Systems (ES)
- Indoor Air Quality (IAQ)
- Plumbing and Irrigation (PI)
- Efficient Lighting and Appliances (LA)
- Education and Operations (EO)
[ ] Displays accurate cards for each building type + primary categories (see other notes)

Initial Landing Page (/)

[x] Three building types (multifamily, singleFamily, commercial) displayed + respective logos
[x] Created a general building type card component which is used to render the three categories
[x] Landing page is shown in the root URL (/)
[x] OnClick of a building type redirects to the primary categoires page

Primary Categories Page (/categories)

[x] Nine primary categories displayed
- Site Planning (SP)
- Resource Efficiency (RE)
- Durability and Moisture Management (DU)
- High Performance Building Envelope (BE)
- Energy Efficient HVAC Systems (ES)
- Indoor Air Quality (IAQ)
- Plumbing and Irrigation (PI)
- Efficient Lighting and Appliances (LA)
- Education and Operations (EO)
[x] General primary category component created to render the eight  primary categories
[x] Primary category page is shown in the /categories URL
[x] OnClick of a primary category redirects to the library page

How to Test

Navigate to /
Click on a building type
Check that it moves to /categories with the right categories ascribed to that building type
Click on a category
Check that it moves to /library with the right cards ascribed to that category

Other notes
I have a few questions about frontend and backend implementation.

Should padding/margin on pages be consistent? What should I make it?
How should categories resize with screen size? I'm currently just keeping the same height/width and wrapping.
Should the size of the building type images change with screen size?
Should the acronym in the parenthesis on the name of the primary category be parsed to get the top text?
How do I know which cards are assigned to each primary category?
How should the selected category/type be saved for reloading the page? Query string? Dynamic url? Cookies?

I wrote a function to check if the categories exist and create them if they don't. Should I keep it in? It doesn't work properly yet lol.
I edited the next.config.js to remove the automatic redirect from /, but it had weird caching issues and took a lot of cache clearing and rebuilding to fix. If it won't let you go to the page, try clearing the cache and rebuilding the prod version.

Okay, I just talked with @tawsifkamal about this and I can answer your question about which cards to show for which categories. The idea is for each card to have a property of category and building type. I think the previous plan was for each card to reference a document from the Categories and BuildingTypes collections, but it might be easier to just use a string instead.
This is my suggestion: add the property category and buildingType to the card schema (both of type String). Use enum validators to limit their possible values. You could then get to making the library view filter based on which category was selected. Personally, I think dynamic URL would be the best way, but this is your call.

Yeah Nabeel's approach makes more sense than having a schema for BuildingType and PrimaryCategory. Most likely there won't be changes/additions so the three building types and 9 categories will be hardcoded values. So you can actually scratch building out the schemas for building type and category and have each card reference one of the building types and categories. that was my bad.

Yeah Nabeel's approach makes more sense than having a schema for BuildingType and PrimaryCategory. Most likely there won't be changes/additions so the three building types and 9 categories will be hardcoded values. So you can actually scratch building out the schemas for building type and category and have each card reference one of the building types and categories. that was my bad.

You can take out your createDefaultBuildingTypes function and then after this sprint I'll work on setting up the postman with pre-populated data when the categoryType and BuildType properties are added to the card schema.

For some reason, the deploy previous images don't load. Must be a caching thing because their URLs are right. Also, I removed the library URL and set the old library page to be a child of the primaryCategory selector page. Category-specific cards aren't loaded yet (because those cards don't have the category data they need yet).

Blocking bug right now, getServerSideProps was used, but now that getInitialProps is used the database code runs on the client and crashes the page. Somehow, refreshing the page seems to fix that problem, so right now I'm trying to figure out why it gets around it.

Weird mongodb error aside, it looks like it's working fine. I'll be looking into this later today

I looked into the issue a little bit and think it had to do with getInitialProps running both client and server-side. I referred to this to try to fix it. In order for a total fix, we'd need an equivalent frontend action for getCardsPagination(), but currently it uses getCards() instead. This seems to not error out, so I think it's a step in the right direction if nothing else

Also, btw, top level index page gives a 404. Might not be important after being merged, but I'll mention it just in case


ControlNetworkGuru does not take into account custom CIDR when assigning System VM link local IP address

ISSUE TYPE

Bug Report

COMPONENT NAME
Management, Network, SystemVM

CLOUDSTACK VERSION
4.16.1

CONFIGURATION
In database:
MariaDB [cloud]> select name,value from configuration where name = 'control.cidr';
+--------------+------------------+
| name         | value            |
+--------------+------------------+
| control.cidr | <IP_ADDRESS>/20 |
+--------------+------------------+
MariaDB [cloud]> select name,value from configuration where name = 'control.gateway';
+-----------------+---------------+
| name            | value         |
+-----------------+---------------+
| control.gateway | <IP_ADDRESS> |
+-----------------+---------------+
MariaDB [cloud]> select count(*) from op_dc_link_local_ip_address_alloc;
+----------+
| count(*) |
+----------+
|    65533 |
+----------+

On agent:
root@hv-04-02-21:~# grep control.cidr /etc/cloudstack/agent/agent.properties
control.cidr=<IP_ADDRESS>/20

SUMMARY
When having set a control.cidr different from the norm (<IP_ADDRESS>/16) and the database table op_dc_link_local_ip_address_alloc is already populated with all the addresses in the default CIDR, then allocating an IP to a System VM does not take into account the requested CIDR, thus allocating an IP address in the wrong range.
https://github.com/apache/cloudstack/blob/main/engine/schema/src/main/java/com/cloud/dc/dao/DataCenterLinkLocalIpAddressDaoImpl.java#L52 should take this into account. This function is called in https://github.com/apache/cloudstack/blob/main/server/src/main/java/com/cloud/network/guru/ControlNetworkGuru.java#L134
STEPS TO REPRODUCE

Install new management server
After kickstart, disable the zone to prevent any system vm deploys
In mysql database: select count(*) from op_dc_link_local_ip_address_alloc;, it would return 65533
Connect agents
Configure control.cidr on the manager and agents, and control.gateway on the manager, ie:

control.cidr=<IP_ADDRESS>/20
control.gateway=<IP_ADDRESS>

Enable the zone, check the system vm link local address

EXPECTED RESULTS

The System VMs should receive an IP address in the configured CIDR.
Additional expected: In mysql database: select count(*) from op_dc_link_local_ip_address_alloc;, it should return 4093

ACTUAL RESULTS

System VMs receive an IP address in the default <IP_ADDRESS>/16 range

2022-09-07 22:45:35,338 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Work-Job-Executor-3:ctx-b1c76634 job-149/job-150 ctx-224681ec) (logid:32608415) Network id=201 is already implemented
2022-09-07 22:45:35,524 DEBUG [c.c.n.g.ControlNetworkGuru] (Work-Job-Executor-3:ctx-b1c76634 job-149/job-150 ctx-224681ec) (logid:32608415) Reserved NIC for v-18-VM [ipv4:<IP_ADDRESS> netmask:<IP_ADDRESS> gateway:<IP_ADDRESS>]

this seems to be related to https://github.com/apache/cloudstack/pull/7580


Problem with InvalidHtmlHandler

I keep getting invalid html errors on pages that are rendering successfully, in fact on EVERY path. Here's what the data result is on the report:

uninitialized constant HTML::Document

Sure enough is I head into invalid_html_handler.rb and comment out lines 8-13 it runs without issue. (And presumably without checking any html syntax.)
Couldn't find the reason why HTML::Document wasn't being loaded....ideas?

Mark McSpadden

HTML::Document comes from activesupport. Works fine for activesupport 3.0.x. What version of AS were you using?

Closing. Feel free to reopen if still an issue.


Error while deleting pod. (Guad can_connect is not enough)

Bug Description
Let's say we need to emulate the dead of a POD that uses LokiPushApiConsumer (grafana-agent-k8s)
To do that we will delete the pod running kubectl delete pod...
Juju will re-create the POD, but we will get an stack trace in the log, that will produce an error in some integration tests.
To Reproduce

juju add model paka
charmcraft pack (grafana-agent-k8s-operator with the last version of LokiPushApi lib)
juju deploy ./grafana-agent-k8s_ubuntu-20.04-amd64.charm --resource agent-image=grafana/agent:v0.20.1
microk8s.kubectl delete pod -n paka grafana-agent-k8s-0
Check juju debug-log

Environment
juju: 2.9.29
microk8s: microk8s.kubectl delete pod -n paka grafana-agent-k8s-0
grafana-agent: https://github.com/canonical/grafana-agent-k8s-operator/pull/44
Relevant log output
unit-grafana-agent-k8s-0: 09:56:31 ERROR unit.grafana-agent-k8s/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1315, in _request_raw
    response = self.opener.open(request, timeout=self.timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/model.py", line 1152, in restart
    self._pebble.restart_services(service_names)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1462, in restart_services
    return self._services_action('restart', services, timeout, delay)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1475, in _services_action
    resp = self._request('POST', '/v1/services', body=body)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1281, in _request
    response = self._request_raw(method, path, query, headers, data)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1326, in _request_raw
    raise APIError(body, code, status, message)
ops.pebble.APIError: cannot restart services: service "agent" does not exist

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1315, in _request_raw
    response = self.opener.open(request, timeout=self.timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./src/charm.py", line 361, in <module>
    main(GrafanaAgentOperatorCharm)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/main.py", line 431, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/main.py", line 142, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 283, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 743, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 790, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/lib/charms/loki_k8s/v0/loki_push_api.py", line 1705, in _on_lifecycle_event
    self.on.loki_push_api_endpoint_joined.emit()
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 283, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 743, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 790, in _reemit
    custom_handler(event)
  File "./src/charm.py", line 117, in _on_loki_push_api_endpoint_joined
    self._update_config(event)
  File "./src/charm.py", line 192, in _update_config
    self._container.restart(self._name)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/model.py", line 1162, in restart
    self._pebble.start_services(service_names)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1422, in start_services
    return self._services_action('start', services, timeout, delay)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1475, in _services_action
    resp = self._request('POST', '/v1/services', body=body)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1281, in _request
    response = self._request_raw(method, path, query, headers, data)
  File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1326, in _request_raw
    raise APIError(body, code, status, message)
ops.pebble.APIError: cannot start services: service "agent" does not exist
unit-grafana-agent-k8s-0: 09:56:31 ERROR juju.worker.uniter.operation hook "upgrade-charm" (via hook dispatching script: dispatch) failed: exit status 1

Additional context
As far as I understand the problem starts in the method _on_lifecycle_event when we execute: self.on.loki_push_api_endpoint_joined.emit(). This method is executed on upgrade_charm.
This event is observed in the charm with the method: _on_loki_push_api_endpoint_joined. This method executes self._update_config(event):
    def _update_config(self, event=None):
        if not self._container.can_connect():
            # Pebble is not ready yet so no need to update config
            self.unit.status = WaitingStatus("waiting for agent container to start")
            return

        config = self._config_file()
        old_config = None

        try:
            old_config = yaml.safe_load(self._container.pull(CONFIG_PATH))
        except (FileNotFoundError, PathError):
            # If the file does not yet exist, pebble_ready has not run yet,
            # and we may be processing a deferred event
            pass

        try:
            if config != old_config:
                self._container.push(CONFIG_PATH, yaml.dump(config), make_dirs=True)
                # FIXME: change this to self._reload_config when #19 is fixed
                # Restart the service to pick up the new config
                self._container.restart(self._name)
                self.unit.status = ActiveStatus()
        except GrafanaAgentReloadError as e:
            self.unit.status = BlockedStatus(str(e))

We can avoid the stacktrace by catching the APIError exception:
...
        try:
            if config != old_config:
                self._container.push(CONFIG_PATH, yaml.dump(config), make_dirs=True)
                # FIXME: change this to self._reload_config when #19 is fixed
                # Restart the service to pick up the new config
                self._container.restart(self._name)
                self.unit.status = ActiveStatus()
        except GrafanaAgentReloadError as e:
            self.unit.status = BlockedStatus(str(e))
        except APIError as e:
            self.unit.status = WaitingStatus(str(e))

But the question is: Should we emit loki_push_api_endpoint_joined on upgrade_charm event?

We can see this error in https://github.com/canonical/grafana-agent-k8s-operator/pull/44
And the log: https://github.com/canonical/grafana-agent-k8s-operator/runs/6328555492?check_suite_focus=true

Sounds like we're missing (the equivalent of) a pass through _configure, which makes sure services are running.

This is no longer reproducable.


Add ExecutionInfo to RequestTracker callbacks

Trying to implement enhancements as commented here: https://github.com/apache/cassandra-java-driver/pull/1640#issuecomment-2135352720

Did you have a chance to take a look Andrew? We would love to merge you PR to C* driver soon.

H Andrew, gentle reminder.

Hi Andrew, any comments to the PR? I would love to hear your opinion.


Use cargo for builds

Hey all,
I moved some stuff around so that now all the examples can be built using cargo! This should close #18.
I also added a few quick changes to get the builds working with the beta channel. (e.g. removing all the feature flags, which was rough :smile:)
I'd love to get some feedback. Obviously the current examples aren't the most efficient or succinct code, (e.g. the lowercase methods) but I'm thinking once this lands we can focus on rewriting the examples to be more clear.
Thanks

Whew. I messed up the shebang for Travis CI, all should be well now.
If someone could give the _tests/check_exercises.sh script a thorough looking over, that would be super helpful. I'm not exactly fluent in bash...

Can't say I'm terribly good at bash, but I'd change it to this, which uses a subshell to avoid "cd forward; cd back":
#!/bin/bash

set -e
tmp=${TMPDIR:-/tmp/}

# An exercise worth testing is defined here as any top level directory with
# a 'tests' directory
for exercise in */tests; do
    # This assumes that exercises are only one directory deep
    # and that the primary module is named the same as the directory
    directory=$(dirname "${exercise}");

    workdir=$(mktemp -d "${tmp}${directory}.XXXXXXXXXX")

    cp -R -T $directory $workdir

    # Run in subshell to change workdir without affecting current workdir.
    (
        cd $workdir
        cp example.rs "${directory}.rs"

        # Forcibly strip all "ignore" statements from the testing files
        for test in tests/*.rs; do
            sed -i '/\[ignore\]/d' $test
        done

        # Run the test and get the status
        cargo test
    )

    status=$?

    if [ $status -ne 0 ]
    then
        echo "Failed";
        return 1;
    fi
done

Oh, that's clever. I'll update.

So what's the status on this PR?

That's a great question. I suspect that it fell off the radar. @pminten @etrepum -- is this ready to go in your opinion?

@kytrinyx Negative, when running the tests with rust 1.0.0 I get compile failures at the robot-name exercise (when running cargo test):
  Compiling libc v0.1.5
   Compiling log v0.3.1
   Compiling rand v0.3.7
/home/peter/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.7/src/distributions/mod.rs:20:16: 20:21 error: unresolved import `std::num::Float`. There is no `Float` in `std::num`
/home/peter/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.7/src/distributions/mod.rs:20 use std::num::{Float, Int};
                                                                                ^~~~~
/home/peter/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.7/src/distributions/mod.rs:20:23: 20:26 error: unresolved import `std::num::Int`. There is no `Int` in `std::num`
/home/peter/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.7/src/distributions/mod.rs:20 use std::num::{Float, Int}

Seems to come from the extern crate rand in the robot-name example.
That said, I don't see any reason not to push this to live once the tests are green.

I can go through these commits, cherry-pick the ones that I believe still work, and open a new PR.  This is blocking some issues from closing.

These changes were included in #27 and I also got it to work on Rust 1.0.0

This can be closed @etrepum since the other PR got merged.

:tada: :dancers::dancers::dancers::dancers: :tada:

Thanks so much @EduardoBautista!


Casting to nvarchar(max) returns nil results.

Environment

Elixir version (elixir -v): 1.12.3
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): mcr.microsoft.com/mssql/server:2017-latest-ubuntu
Ecto version (mix deps):
Database adapter and version (mix deps):
    {:ecto_sql, "~> 3.4"},     {:tds, "~> 2.2"},     {:tds_encoding, "~> 1.1"},
Operating system: elixir:1.12.3 Dockerfile

Current behavior
We have a very large query that is building a sentence. The sentence being built is a varchar(499) which causes nil results to be returned. When attempting to cast to nvarchar(max) the same nil results are returned.
We ended up storing the casted output of the query into a table that explicitly defines the top_pick_sentence as nvarchar(max) then we are able to successfully query that table for the data.
query = "select cast(top_pick_sentence as nvarchar(max)) as top_pick_sentence from ..."
MyApp.Repo.query(query, [])

# {:ok, %Tds.Result{columns: nil, num_rows: 1, rows: nil}}

Expected behavior
Casting a varchar(499) to nvarchar(max) should work just the same as casting and then storing the data to be retrieved later.

Hi @CaldwellYSR ,
I tried to reproduce your problem, but in my example it seems to work.
I tried the following:
iex> Repo.query("CREATE TABLE varchar_test (top_pick_sentence varchar(499))")
{:ok, %Tds.Result{columns: nil, num_rows: 0, rows: nil}}

iex> Repo.query("INSERT INTO varchar_test VALUES ('some veeeeeeeeeeeeeeeeeeeeeeeeerrrrrrrrrrrrrrrrrrryyyyyyyyyyyyyyyyyyyyy long string')")
{:ok, %Tds.Result{columns: nil, num_rows: 1, rows: nil}}

iex> Repo.query("select cast(top_pick_sentence as nvarchar(max)) as top_pick_sentence from varchar_test", [])
{:ok,
 %Tds.Result{
   columns: ["top_pick_sentence"],
   num_rows: 1,
   rows: [
     ["some veeeeeeeeeeeeeeeeeeeeeeeeerrrrrrrrrrrrrrrrrrryyyyyyyyyyyyyyyyyyyyy long string"]
   ]
 }}

Could you try the example above in your environment and maybe enable debug output for the queries, which are problematic, so I can take a look at the raw SQL queries?

Sorry, I was going back and forth with the guy the wrote the SQL in question and I think we were wrong about the problem. We tested with another couple queries that had similar casting but they didn't give the same issue. We are thinking the issue might be coming from something weird he is doing with the date variable that's being passed into the query. Unfortunately the query is 1500+ lines long so debugging it is a bit outside my scope.
I will get back to you if we get anywhere with it.

@moogle19 I guess I'm going to close this issue because it's clearly incorrect. The SQL guy has given me a new query that works even when casting to nvarchar so clearly the casting isn't the issue. He believes the issue was related to that query using a ton of unions but he doesn't know that for sure.
If we find out what broke it I will create another issue.


Controller not working on custom post type with underscores

Controllers don't work when dealing with CPT that has underscores.
My CPT is cnm_yacht
template:
single-cnm_yacht.blade.php works!
Controller:
SingleCnmYacht Controller doesn't work

Temporary solution is adding $template var to controller
but.. is there a better alternative?
if not... can we add this to instructions?
class SingleCnmYacht extends Controller {
  protected $template = "single-cnm_yacht";

  public function ok() {
    return "hola";
  }

}

This line is also a good helper to find out hierarchy:
put this one in your template:
$hierarchy = new Brain\Hierarchy\Hierarchy();
var_export( $hierarchy->getTemplates($wp_query) );

@eduardoarandah I believe that is the best solution. https://github.com/soberwp/controller/issues/49#issuecomment-343627895

CPT with underscores is pretty standard, is there a reason for this not to be automatic ?
Can I help?

Agreed that this is at least a minor bug that should be fixed. I don't have time right now to get to the bottom of it, but I tracked it to here:
https://github.com/soberwp/controller/blob/76a4181e2ceb47232cb5fe0062512ce97b543bf5/src/Controller.php#L63-L66
This seems backwards to me. Instead using the class name to determine the correct template, we should use the names of the current template and its ancestors to generate a list of classes to load. Such a list of templates is already being generated in Loader.php:
https://github.com/soberwp/controller/blob/76a4181e2ceb47232cb5fe0062512ce97b543bf5/src/Loader.php#L137


Issue after upgrade to 0.26.2

I got the following error when I run npm start -- --reset-cache:

ENOENT: no such file or directory, open 'ReactComponentTreeDevtool.js'

After I upgrade to react 0.26.2. My package.json:

"react": "15.0.2",
"react-native": "^0.26.2",

What could be the reason?

@zh-wowtv Update react to 15.1.0 and RN to 0.27

Got another issue when I upgrade to 15.1.0 and 0.27. Please refer to: https://github.com/fbsamples/f8app/issues/66

Did you run react-native upgrade?

Fixed

@zh-wowtv Seems I am running into the same problems :-).  Do you happen to have a fork?  Or would you be up for posting your package.json and other changes?


Chore/dates

Coverage decreased (-17.1%) to 82.883% when pulling d44226ad3e3c20879d7c3de752a36bbe92896d46 on Fliplet:chore/dates into f5760495208c2ffdf90614c278f9d2a058b0bad9 on crcn:master.

Sorry. Wrong target repo.


[ENG-1677] style: update styles, reset with Chakra removed.

Summary
With Chakra removed, many styles are broken with padding no longer consistent. We remove padding/margin in out components in our css reset. We also make changes to

combobox
checkbox
buttons
divider
Salesforce Domain Entry

Screenshot

Tested this out locally, basic flow with Salesforce looks good:


Console dimensions are never set using createTerminal(options: ExtensionTerminalOptions)

Version: 1.49.1 (user setup)
Commit: 58bb7b2331731bf72587010e943852e13e6fd3cf
Date: 2020-09-16T23:27:51.792Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.20215
Steps to Reproduce:
Have an extension create a terminal.
        this.terminal = vscode.window.createTerminal({
            name: this.terminalName,
            pty: {
                    onDidWrite: this.razzleOutputStringEmitter.event,
                    close: this.onTerminalClosed.bind(this),
                    open: this.onTerminalOpened.bind(this),
                    setDimensions: this.onSetTerminalDimensions.bind(this)
            }
        });```

    private onTerminalOpened(initialDimensions: vscode.TerminalDimensions | undefined) : void {
        this.terminaldDimensions = initialDimensions || DefaultPseudoConsoleDimensions;
    }

    private onSetTerminalDimensions(dimensions: vscode.TerminalDimensions): void {
        this.terminaldDimensions = dimensions;

When the terminal is shown (either programmatically or via UI) the terminal dimensions on both callbacks come in as undefined.
Due to this, we cannot set the proper dimensions on the Windows CON-PTY conhost.exe and that results in corrupted output.

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

@vscode-triage-bot  - No, this is not a duplicate

to verify:

clone https://github.com/microsoft/vscode-extension-samples/
create a symlink to vscode-extension-samples/extension-terminal-sample within your .vscode-oss-dev directory.
open a vscode window -> open folder -> open the symlink pointing to vscode-extension-samples/extension-terminal-sample
run npm install
add the following code to extension.ts within the vscode-extension-samples/extension-terminal-sample folder:

	context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.createAndResize', async () => {
		const dimensionsEmitter = new vscode.EventEmitter<any>();
		const pty = {
			onDidWrite: writeEmitter.event,
			onDidOverrideDimensions: dimensionsEmitter.event,
			open: () => {
				dimensionsEmitter.fire({
					columns: 20,
					rows: 10
				});
			},
			setDimensions: d => console.log('setDimensions updated', d)
		};
		const terminal = (<any>vscode.window).createTerminal({ name: 'My terminal', pty });
		terminal.creationOptions.cwd;
		terminal.show();
	}));

	function delay(ms: number) {
		return new Promise(resolve => setTimeout(resolve, ms));
	}

	context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.clear', () => {
		writeEmitter.fire('\x1b[2J\x1b[3J\x1b[;H');
	}));
}

build and launch VS Code
in OSS, open Dev tools to reveal the console
open the command palette in OSS.
if your symlink worked, you will see the create and resize command in the command pallette. run this.
in the console of chrome dev tools, confirm that setDimensions is logged with the dimensions immediately when the terminal is created.

to verify:

clone https://github.com/microsoft/vscode-extension-samples/
create a symlink to vscode-extension-samples/extension-terminal-sample within your .vscode-oss-dev directory.
open a vscode window -> open folder -> open the symlink pointing to vscode-extension-samples/extension-terminal-sample
run npm install
add the following code to extension.ts within the vscode-extension-samples/extension-terminal-sample folder:

	context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.createAndResize', async () => {
		const dimensionsEmitter = new vscode.EventEmitter<any>();
		const pty = {
			onDidWrite: writeEmitter.event,
			onDidOverrideDimensions: dimensionsEmitter.event,
			open: () => {
				dimensionsEmitter.fire({
					columns: 20,
					rows: 10
				});
			},
			setDimensions: d => console.log('setDimensions updated', d)
		};
		const terminal = (<any>vscode.window).createTerminal({ name: 'My terminal', pty });
		terminal.creationOptions.cwd;
		terminal.show();
	}));

	function delay(ms: number) {
		return new Promise(resolve => setTimeout(resolve, ms));
	}

	context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.clear', () => {
		writeEmitter.fire('\x1b[2J\x1b[3J\x1b[;H');
	}));
}

build and launch VS Code
in OSS, open Dev tools to reveal the console
open the command palette in OSS.
if your symlink worked, you will see the create and resize command in the command pallette. run this.
in the console of chrome dev tools, confirm that setDimensions is logged with the dimensions immediately when the terminal is created.

Not sure this is fixed. I have extension code (added to the terminal sample extension):
	context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.create', async () => {
		const dimensionsEmitter = new vscode.EventEmitter<any>();
		const writeEmitter = new vscode.EventEmitter<string>();

		const pty: vscode.Pseudoterminal = {
			onDidWrite: writeEmitter.event,
			onDidOverrideDimensions: dimensionsEmitter.event,
			close: () => { },
			open: (dimensions) => {
				console.log('open', dimensions)
				dimensionsEmitter.fire({
					columns: 20,
					rows: 10
				});
			},
			setDimensions: d => console.log('setDimensions updated', d)
		};
		const terminal = vscode.window.createTerminal({ name: 'My terminal', pty });
		terminal.show();
	}));

When I run this...
In Stable I get
[Extension Host] Terminal opened. Total count: 1 (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:29:17)
console.ts:137 [Extension Host] open undefined (at Object.open (/Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:16:25))
console.ts:137 [Extension Host] Active terminal changed, name=My terminal (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:36:17)
console.ts:137 [Extension Host] setDimensions updated {columns: 50, rows: 22} (at Object.setDimensions (/Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:22:41))

And in Insiders I get
[Extension Host] Terminal opened. Total count: 1 (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/src/extension.ts:33:11)
workbench.desktop.main.js:60 [Extension Host] Active terminal changed, name=My terminal (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/src/extension.ts:41:11)
workbench.desktop.main.js:60 [Extension Host] open undefined (at Object.open (/Users/jkearl/Developer/vscode-extension-samples/terminal-sample/src/extension.ts:19:13))

So in Insiders the setDimensions hook isn't called on startup, and in both the open hook doesn't get passed any dimensions. I think the open hook not receiving dimensions may be intentional, not sure. But I believe setDimensions ought to be called at startup?
Note: I just verified this by building the extension as normal, is the whole symlink setup really required? Standard extensions should see the correct behaviour too yes?

Not sure this is fixed. I have extension code (added to the terminal sample extension):
	context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.create', async () => {
		const dimensionsEmitter = new vscode.EventEmitter<any>();
		const writeEmitter = new vscode.EventEmitter<string>();

		const pty: vscode.Pseudoterminal = {
			onDidWrite: writeEmitter.event,
			onDidOverrideDimensions: dimensionsEmitter.event,
			close: () => { },
			open: (dimensions) => {
				console.log('open', dimensions)
				dimensionsEmitter.fire({
					columns: 20,
					rows: 10
				});
			},
			setDimensions: d => console.log('setDimensions updated', d)
		};
		const terminal = vscode.window.createTerminal({ name: 'My terminal', pty });
		terminal.show();
	}));

When I run this...
In Stable I get
[Extension Host] Terminal opened. Total count: 1 (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:29:17)
console.ts:137 [Extension Host] open undefined (at Object.open (/Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:16:25))
console.ts:137 [Extension Host] Active terminal changed, name=My terminal (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:36:17)
console.ts:137 [Extension Host] setDimensions updated {columns: 50, rows: 22} (at Object.setDimensions (/Users/jkearl/Developer/vscode-extension-samples/terminal-sample/out/extension.js:22:41))

And in Insiders I get
[Extension Host] Terminal opened. Total count: 1 (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/src/extension.ts:33:11)
workbench.desktop.main.js:60 [Extension Host] Active terminal changed, name=My terminal (at /Users/jkearl/Developer/vscode-extension-samples/terminal-sample/src/extension.ts:41:11)
workbench.desktop.main.js:60 [Extension Host] open undefined (at Object.open (/Users/jkearl/Developer/vscode-extension-samples/terminal-sample/src/extension.ts:19:13))

So in Insiders the setDimensions hook isn't called on startup, and in both the open hook doesn't get passed any dimensions. I think the open hook not receiving dimensions may be intentional, not sure. But I believe setDimensions ought to be called at startup?
Note: I just verified this by building the extension as normal, is the whole symlink setup really required? Standard extensions should see the correct behaviour too yes?

The symlink setup was needed for running out of sources, regular ext debug should work when the fix is in insiders.

The symlink setup was needed for running out of sources, regular ext debug should work when the fix is in insiders.

Okay that's what I suspected. Verification-found still in effect.

Okay that's what I suspected. Verification-found still in effect.

@JacksonKearl are you not seeing this?

@JacksonKearl are you not seeing this?

Hm, it's sporadic. About half the time I don't get the initial setDimensions call. See here:

Hm, it's sporadic. About half the time I don't get the initial setDimensions call. See here:

Yes it seems to only work on terminal creation when it's:

the first terminal tab
a split tab

Yes it seems to only work on terminal creation when it's:

the first terminal tab
a split tab

It looks like there's a regression related to the terminal reconnect work related to these lines

This now works for all terminals that get created.

Closing as fixed by 1d1b902c11a661184326f4ec8dd123e2e5726aea


Crash Fabric, Koroworld-lib is missing 1.19.2

I can't find Koroworld-lib for 1.19.2, koro utils don't work

Cyclonite is the only mod I added, I've use curseforge launcher to do it.

you need the library Koroworld-lib also installed

https://www.mcmod.cn/class/6865.html

Sorry but I dont understand Chinese and I just found the lib version for 1.19.1 on the website . Can someone give me the 1.19.2 version please :(!

koroworld-lib-2.0.1.jar.zip
@ziaobank


Typing error

There is an typing error in /exampleSite/content/post/markdown-syntax.md in line 59.
You wrote the word supports twice.
The rest works perfectly fine for me and I really like it.

Corrected in 59d3e71. thanks.


Helper function - construct a transaction output with mimimun lovelace

Write an era-generic function
minLovelaceFixedPoint :: Core.PParams era -> Core.TxOut era ->  -> Coin

perhaps with a better name, such that:
for all pp :: Core.PParams era and out :: Core.TxOut era, if minLovelaceFixedPoint pp out = x, then:

evaluateMinLovelaceOutput pp (setLovelace x out) = x.

In other words, minLovelaceFixedPoint computes the fixed point of f z = evaluateMinLovelaceOutput pp (setLovelace z out). Note that evaluateMinLovelaceOutput is defined here (and minLovelaceFixedPoint should probably also be a class member of CLI).

Resolved according to previous comment


multiple %  values?

hi, any way to show multiple % values?
ie 50% / 20% / 30%?
thanks!

HI, do you mean that sum of the multiple values equals 100%?  Maybe you could choose some other pie chart.


Feat: Bring the star us on github button below the tag line

Describe the feature
place the button below the tagline "a way to share stories anonymously".
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSOC'24 contributor
[ ] I want to work on this issue

@Sayak-Bhunia  would love to work on this!!


How to pass additional TypeORM find options like 'cache'

Is there a way to pass other find options? For example I'd like to use 'cache'.

would need to be added as feature using query builder

thanks, it works with query builder!

however please consider adding this to main syntax for simplicity


wip

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Unit Testing for Data Scientists - Hanna Torrence

Unit Testing for Data Scientists - Hanna Torrence
On Feb 1, 2019

01:10   Outline  of testing
02:05 Benefits of unit Testing
03:20 Why people do not write unit test
05:25 Data Science Theory workflow and practice
09:05 Pytest Framework with example
12:10 Pytest Fixtures
16:15 Built-in Fixtures
18:10 Flexibility of Fixture
22:15 Mocks

watching this video now...what's the plan for getting these timestamps added?

Riffing on @mrtushartiwari's info above, here's some clickable links
Created with this Google Sheet, in case anyone wants to steal the formulas: https://docs.google.com/spreadsheets/d/1iCyqvh964ZP-iun6WEBg1zOaDhodoKGLAcXmGZMpZr0/edit?usp=sharing
01:10 Outline of testing
02:05 Benefits of unit Testing
03:20 Why people do not write unit test
05:25 Data Science Theory workflow and practice
09:05 Pytest Framework with example
12:10 Pytest Fixtures
16:15 Built-in Fixtures
18:10 Flexibility of Fixture
22:15 Mocks
29:15 Mock returns
33:50 Mock asserts
38:00 Running over due to time constraints


Branden Hancock (Ghent)

https://www.defcon.org/html/links/dc-goon-hof.html
Ghent aka Branden Hancock
1977-2003
Ghent aka Branden Hancock died of injuries sustained in a motorcycle accident.
He is survived by his mother and younger sister.
Ghent was 26 years old.


elmerfem: 9.0 → unstable-2022-08-30

upstream released important features and fixed bugs i needed
patches for
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Does 9.0 have problems (or is the release cadence really slow)? If not, I would prefer two versions similar to how super-slicer and super-slicer-latest are packaged.

roughly 1 per year although the software develops. i'd deem it slow.

Result of nixpkgs-review pr 189014 run on x86_64-linux 1

1 package built:

elmerfem

Is there a main application in this package for meta.mainProgram? (to run in nix run .#elmerfem)

I'd name bin/ElmerGUI  for that purpose

I'd name bin/ElmerGUI for that purpose

Then, please add it to meta.
And test it with nix run .#elmerfem.

nix run .#elmerfem

leads to
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
nix --extra-experimental-features nix-command run .#elmerfem

leads to
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override
how am i supposed to do this?

nix run .#elmerfem

leads to
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
nix --extra-experimental-features nix-command run .#elmerfem

leads to
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override
how am i supposed to do this? and why does it complain about flakes? i'm not using flakes here

Sorry. It is a flakes command.

Result of nixpkgs-review pr 189014 run on x86_64-linux 1

1 package built:

elmerfem

I'd name bin/ElmerGUI for that purpose

bin/ElmerGUI did not run for me. Complains of missing: libSM, libtiff, etc. (Which you can add to the package, but I have not checked how far this rabbit hole goes.)

I have added mainProgram. Feel free to pull and squash it (if you can).
Also reorder attributes per phases order (unpack => patch => configure => build => test => install)

done :)

Result of nixpkgs-review pr 189014 run on x86_64-linux 1

1 package built:

elmerfem

done :)

Did you check the matter of missing libraries when running bin/ElmerGUI?

Also, feel free to pull changes and squash.

every itch should have been scratched, let ofborg do the thing!


MiqSearch.seed doesn't remove filter when it's removed from yaml file

When miq_searches.yml is udpated and MiqSearch.seed is run, the deleted queries don't get removed from the DB

@h-kataria

I don't think the miq_searches has a "system" flag to tell apart the OOtB searches from those added by a user.  We can't do delete unless we have that field.


Long version numbers aren't displayed correctly.

See WordPress on my 1600x1200 screen: https://apps.sandstorm.io/app/aax9j672p6z8n7nyupzvj2nmumeqd4upa0f7mgu8gprwmy53x04h

A long version tag should probably truncate, but hovering over it should display the full version? Though at least in this view, it seems like there's enough space to the left for this field to be wider.


Introduce SyntaxText  - light weight string representation

(Part of #512)
'SyntaxText' represent a string, but without owning the data. In future, this will be used in Syntax tree as string representation.
Provides basic String-like functionalities including:

Hashable and Equatable
Collection of UInt8
Slicing
Prefix/Postfix check
Interconvertible with Swift.String

@swift-ci Please test

@swift-ci Please test

@swift-ci Please test

@swift-ci Please test

Added a commit to fix an assertion failure case

@swift-ci Please test


Multiple choice BiDAF

Finally got this working.

Well, the multiple choice BiDAF test passes now (on tensorflow, at least), but the tensorboard logs test is crashing.  Any idea what's going on?

Finally passing CI...  =)


[VL] Handle try_subtract, try_multiply, try_divide

What changes were proposed in this pull request?
Follow up https://github.com/apache/incubator-gluten/pull/5356
How was this patch tested?
UT.

cc @rui-mo and @PHILO-HE , thanks.

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_5985_time.csv
log/native_master_06_05_2024_54aeb010d_time.csv
difference
percentage

q1
35.32
34.06
-1.266
96.42%

q2
23.73
23.10
-0.627
97.36%

q3
37.62
36.59
-1.033
97.25%

q4
31.56
34.70
3.138
109.94%

q5
69.91
69.24
-0.676
99.03%

q6
7.53
7.84
0.307
104.08%

q7
82.50
81.42
-1.082
98.69%

q8
87.04
87.21
0.163
100.19%

q9
124.78
119.35
-5.429
95.65%

q10
45.74
45.23
-0.509
98.89%

q11
20.38
22.65
2.267
111.12%

q12
25.56
25.04
-0.520
97.97%

q13
40.29
36.70
-3.595
91.08%

q14
17.81
17.35
-0.464
97.40%

q15
31.24
29.97
-1.270
95.94%

q16
14.42
15.12
0.692
104.80%

q17
104.54
104.42
-0.114
99.89%

q18
145.45
144.82
-0.629
99.57%

q19
13.48
14.62
1.143
108.48%

q20
26.73
26.48
-0.250
99.06%

q21
260.73
266.79
6.061
102.32%

q22
14.62
12.29
-2.333
84.04%

total
1260.98
1254.96
-6.025
99.52%


Revert "fixed dockerignore (#46)"

This reverts commit 08402cd1a028359c4255b7c09c40ae18ee8be22e.
Description
this is a PR reverting commit #
9e6affed64a883b58ef4897dcea6207db21c0c4b
back to
08402cd1a028359c4255b7c09c40ae18ee8be22e
as it shows the following message upon accepting and merging @ssuish  's pr

you may choose to reject this PR if this is already fixed.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Test Configuration:

Firmware version:
Hardware:
Toolchain:
SDK:

Checklist:

[x] My code follows the style guidelines of this project
[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Fixed typo on repo secrets


docs(main_page): enrich front page

Description
update front page
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The Reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Other parts LGTM.


How should we inject config file to a Sensu plugin?

I have encountered this exception:
/usr/local/lib/ruby/gems/2.1/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:80:in `api_request': api.json settings not found. (RuntimeError)
    from /usr/local/lib/ruby/gems/2.1/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:123:in `stash_exists?'
    from /usr/local/lib/ruby/gems/2.1/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:135:in `block (2 levels) in filter_silenced'
    from /usr/local/lib/ruby/2.1/timeout.rb:90:in `block in timeout'
    from /usr/local/lib/ruby/2.1/timeout.rb:33:in `block in catch'
    from /usr/local/lib/ruby/2.1/timeout.rb:33:in `catch'
    from /usr/local/lib/ruby/2.1/timeout.rb:33:in `catch'

I have figured that it is because sensu-plugin doesn't read the configuration, and I've found this line: https://github.com/sensu-plugins/sensu-plugin/blob/master/lib/sensu-plugin/utils.rb#L5
I wonder what the best way is to inject the config files to sensu-plugin.
Please note that, if I manually run the handler with the correct env var, it works. Here's how I do it:
cat test2.json | SENSU_CONFIG_FILES=conf.d/api.json:conf.d/logstash.conf /usr/local/bin/handler-logstash.rb

Thanks!

Hi @tanin47, I apologize that your issue has gone unanswered for so long. By default a plugin using this library should have access to the @settings instance variable, containing the local Sensu configuration loaded from disk. In your case, I believe you're falling afoul of one or two bugs that are addressed in today's 1.4.0 release of this library.
First, due to the issue described in https://github.com/sensu-plugins/sensu-plugin/pull/141 plugins which do not explicitly require 'json' may silently fail to load Sensu settings from disk.
Second, versions of sensu-plugin prior to 1.4.0 do not provide default values for api host and port configuration, so failing to load Sensu config can cause this error (with misleading reference to api.json) raised by api_request method.
I believe that updating any custom plugins to use version 1.4.0 of this library should resolve either or both of these cases. If you are still seeing a problem, please let us know.


feat: migrate to @nexus/schema

BREAKING CHANGE:

You need to install @nexus/schema instead of nexus in your project

Blocked by #632


Ranks from inheritance being displayed

Describe the bug
if a player or staff has a rank different then the default rank (such as admin, mod etc.) and inherits from a different rank (such as member) both ranks are displayed.
To Reproduce
Steps to reproduce the behavior:

make a rank with a prefix which inherits a prefix from a different rank
log into the server (or run the lp update command if you use the web editor)
Result

Expected behavior
what i expect to happen is that the highest rank gets displayed
Screenshots
this is what you get with an inherited rank

this is what you get without an inherited rank

Desktop (please complete the following information):

Windows 10
i dont know the server OS, sorry. i do know it runs off Pterodactyl

Smartphone (please complete the following information):
Non appliacable
Additional context
it could be a feature, but if so maybe make it a configurable option.

Did you use lp group <group> meta setprefix <prefix> or lp group <group> meta addprefix <prefix> to change the prefix? The addprefix commands makes the prefixes stack on one another, even if they have the same priority.

i've asked the people who set up the database for us. i'll let you know when i get an answer

any updates on this issue?


✨ [Feature request]: Hackathon: ReactPlay Landing page banner update

The idea of this feature is to create a code-level switch to show the ongoing activity banner on reactplay landing page.
Usually, the reactplay.io home page will render a predefined banner related to the community. However when the community goes into a very specific activity, a switch will be flipped and the banner will be replaced with the event one,
To put it into context, reactplay is going to co-host a hackathon very soon. To emphasize the event, the home page banner should be replaced with hackathon-related image. Upon clicking this, the page will redirect to https://hustles.reactplay.io/
Here goes the current home page banner that appears in the first fold of the page view.

We want to get rid of the video
Want to have a clear communication that we will be hosting a Hackathon(Call it ReactPlay Hackathon for now)
Should have the button to go to the register page.
Should have the button to "share about it"
Should have exciting graphics for users to relate it is a Hackathon
Should have the way to project the sponsor who is sponsoring the hackathon
The banner should match the theme of the rest of the app.
We still want to retain the app heading, browse, and the GitHub button.

Hi @Ceesco, updated the description.

Hello Everyone. Great to be a part of the team. Much appreciated

Hello Everyone. Great to be a part of the team. Much appreciated

Great to have you here, let's go .....

Hey @Deepak8717 , @Ceesco is looking into the design. Once he completes the first iteration and we review, we can guess by when we can start the coding.
Just for both of your info: We are targeting to merge it by 13th Sept 2022.
Looking forward to it.

....Hey everyone. I'm done with the banner design and delivered it to @Deepak8717 . Glad i could contribute to the growth of the platform. Much appreciated and cheers to y'all

Closing it as done.


Implement Lens directly on a pair

I see no reason not to implement it directly :shrug: and it feels more intuitive

Maybe we should implement Lens for other tuples as well.

@derekdreery does this make sense to you? I think so, but curious if you had a more specific need that required Tuple2 to be a named type?
I've run into this before; I think it does make sense to have lenses on the tuples, maybe from rank 1-8? I think an 8-tuple is a horrible idea but I think it's okay as an upper-bound..

@cmyr @derekdreery can we get this done?

@Maan2003 Just noticed this doesn't have a matching changelog entry. Just want to make sure you have the chance if you forgot.


Re: Waypoint: Sift through Text with Regular Expressions

I suspect there is some text missing from this (it makes no sense):
"We can do this by replacing the . part of our regular expression with the current regular expression with the word and."
My suggested verbiage would be:
"We can do this by replacing the . in our regular expression with the string we wish to match (the word 'and')."
Secondly, let me suggest "g means that we want to search the entire string for this pattern instead of just the first match." should be reworded to "g stands for 'global' and means that we want to search the entire string for this pattern instead of just the first match."
This will be a great aid to students in remembering the parameter.

Likewise, in "Waypoint: Find Numbers with Regular Expressions" it should be mentioned that \d represents a digit.  The proper association goes a long way in retention of new concepts and ideas.


Fix to try running on Windows with npm i and npm start.

User cross-env to set en var on start script.

Hey @fabriciorsf can you help me out with only submitting the 'fix to try running on windows'/ca02217d7409aee5b29df210ac7ee873c5f5ebc6 commit.
The merge from master to windows is redundant totally & unless there is a reason to seperate windows branch, I would say lets have one only branch since cross-env is anyway cross platform.
So can you probably merge into your master first, give a test go, and re submit this?
Otherwise, I can check this on windows by weekend.

I submit another commit to my windows branch with the last updates from your master.
The only files diff from this pull are here:
https://github.com/beyondszine/camerasdiscovery/pull/20/files