Issues with stopping/starting resources

Describe the bug

Steps to reproduce
Issue 1:  Failed to start resource in the stopped state.

Create a resource.
Stop the resource.
Start the resource.

Issue 2: Failed to stop an environment when some resources are in stopped state.

Create two resources in an environment.
Stop one of the resource.
Stop the environment.

Test Result:
Result

Issue 1:

2024-03-04T05:07:27.783Z	E	api	error requesting POST /v1/projects/502909006822567170/environments/502909598756302082/resources/503304090328034562/start: 1 error occurred:
	* cannot start resource "nginx": in "Stopped" status

github.com/seal-io/walrus/pkg/apis/runtime.erroring
	github.com/seal-io/walrus/pkg/apis/runtime/middleware_error.go:45
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/seal-io/walrus/pkg/apis/runtime.recovering
	github.com/seal-io/walrus/pkg/apis/runtime/middleware_recovery.go:39
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/seal-io/walrus/pkg/apis/runtime.observing
	github.com/seal-io/walrus/pkg/apis/runtime/middleware_observation.go:89
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	github.com/gin-gonic/gin@v1.9.1/gin.go:576
github.com/seal-io/walrus/pkg/apis/runtime.(*Router).ServeHTTP
	github.com/seal-io/walrus/pkg/apis/runtime/router.go:194
net/http.serverHandler.ServeHTTP
	net/http/server.go:2938
net/http.initALPNRequest.ServeHTTP
	net/http/server.go:3546
net/http.(*http2serverConn).runHandler
	net/http/h2_bundle.go:6193
2024-03-04T05:07:27.783Z	D	api	500 | HTTP/2.0 |        0 B |       94 B |    4.095194ms |   <IP_ADDRESS> | POST    /v1/projects/502909006822567170/environments/502909598756302082/resources/503304090328034562/start

Issue 2:

Failed to stop.

2024-03-04T05:11:53.733Z	E	api	error requesting POST /v1/projects/502909006822567170/environments/502909598756302082/stop: 1 error occurred:
	* cannot stop resource "nginx": in "Stopped" status

github.com/seal-io/walrus/pkg/apis/runtime.erroring
	github.com/seal-io/walrus/pkg/apis/runtime/middleware_error.go:45
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/seal-io/walrus/pkg/apis/runtime.recovering
	github.com/seal-io/walrus/pkg/apis/runtime/middleware_recovery.go:39
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/seal-io/walrus/pkg/apis/runtime.observing
	github.com/seal-io/walrus/pkg/apis/runtime/middleware_observation.go:89
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	github.com/gin-gonic/gin@v1.9.1/gin.go:576
github.com/seal-io/walrus/pkg/apis/runtime.(*Router).ServeHTTP
	github.com/seal-io/walrus/pkg/apis/runtime/router.go:194
net/http.serverHandler.ServeHTTP
	net/http/server.go:2938
net/http.initALPNRequest.ServeHTTP
	net/http/server.go:3546
net/http.(*http2serverConn).runHandler
	net/http/h2_bundle.go:6193
2024-03-04T05:11:53.733Z	D	api	500 | HTTP/2.0 |        0 B |       97 B |   95.064088ms |   <IP_ADDRESS> | POST    /v1/projects/502909006822567170/environments/502909598756302082/stop

Expected behavior

Issue 1: Stop successfully.
Issue 2: Refer to issue 2 in https://github.com/seal-io/walrus/issues/1491
Environment

Walrus version: main 30ceb5ac9dcaade04505b64a3f6e6ef3bc1c80b2
UI version: dev-1305100

Additional context
Add any other context about the problem here.

Environment

Walrus version: main<PHONE_NUMBER>7719a2d2fee2b81c546204ada026ca
UI version: dev-1be55ba

Test Result:
Issue 1: pass
Issue 2: pass
Issue 3: Stopping a resource without any components will result in the resource being deleted directly.
Steps:

Add a template with source https://github.com/unitong/test-selector.
Create a resource using the template above.
Stop the resource.

Result:
https://github.com/seal-io/walrus/assets/26084756/b15b89b9-e600-4e66-a1a1-999036556e50
Issue 4:
Steps:

Create two resources res-a and res-b, res-b depends on res-a.
Stop res-a and res-b in batch.
Start res-a and res-b in batch and check the deployment result.

Result:

res-b status stuck in progressing state and the latest run stuck in pending state.

Re-deploy res-b, failed.

Environment

Walrus version: main 59df6ecf375f04b1783c2c7023b246bb6d228aa3
UI version: dev-874ecc7

Test Result:
Issue 3: pass
Issue 4: Verify in the following main version. And the case shown as below need to be verified too.

res-b depends on res-a.
stop resource a and b.
start res-b

Environment

Walrus version: main 1f87819b63d844001b3353645ed96d110406783c
UI version: dev-71a5388

Test steps:

res-b depends on res-a.
stop res-a and res-b in batch.

Test Result:

res-a stuck in stopping status.

Check the execution status of  ResourceRelationshipCheck task.

2024-03-06T12:08:30.032Z	D	task	executed	{"createBy": "ResourceRelationshipCheckCronExpr", "duration": "28.196995ms"}
2024-03-06T12:09:00.059Z	D	task	executed	{"createBy": "ResourceRelationshipCheckCronExpr", "duration": "33.999253ms"}

Environment

Walrus version: main 96792e2d3b2c3b1eae368faeb3c2690f91fbffc5
UI version: dev-040e825

Test Result:
Issue 4: pass
Issue 5: https://github.com/seal-io/walrus/issues/2196

Issue 6: It didn't display the resource relationship in run during stopping.

Environment

Walrus version: main 54608149edeebd87ed53da7b8e51f384ae386650
UI version: dev-b0233e3

Test Result:
Issue 5: pass
Issue 6: pass


Create Hourly Emissions State Aggregation Endpoints

Definition of Ready

[x] Does this meet the INVEST criteria?
[x] Does this have a clearly defined user?
[x] Does this have an estimate?
[x] Does this have acceptance criteria?
[x] Does this have sufficient context for the specific functionality being developed (design, business rules, etc.)
[x] Does this have a dev link been provided in the design?
[x] Is this traceable to a feature, epic, or PI?

User Story
As a CAMPD user I want to aggregate hourly emissions data at the state level  So that I can conduct analysis
Acceptance Criteria
Given that a user has entered one or more valid values for all the parameters (see parameters below)
When API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more valid values for all the parameters in an upper case or lower case format
When API endpoint is executed
Then the system displays the records that match the criteria
Given that a user has entered one or more valid values for all the parameters without white space(s) before or after the delimiter
When API endpoint is executed
Then the system displays the records that match the criteria
Given that a user has entered one or more valid values for all the parameters with white space(s) before or after the delimiter
When API endpoint is executed
Then the system displays the records that match the criteria
Given that a user has made a GET request with the media type set to json or csv
When request is executed
Then the system displays the records that match the criteria in the appropriate format (json or csv)
Given that a user has entered one or more invalid values for a parameter
When the API endpoint is executed
Then the system displays the appropriate error message (see error message repo)
Development Notes
The scope of this ticket includes creating the following endpoints:
/emissions-mgmt/apportioned/hourly/state
/emissions-mgmt/apportioned/hourly/state/stream

will not have an exclude parameter
ensure that data labels and data descriptions adhere to the Master data dictionary

Does this Story require 508 Testing?

[ ] Implementing a new authoring tool that will produce code / content for the application
[ ] Implementing a 3rd party widget that will be part of the application
[ ] Adding new / updating custom functionality
[ ] Adding new / updating a page template
[ ] Adding new / replacing existing functionality (unless the replacement has already passed 508 testing)
[ ] Full Site Review prior to a scheduled EPA 508 review
[ ] Planning a video that will appear on the application
[ ] Producing a video that will appear on the application
[ ] Producing Training materials
[ ] Producing documents

Context
:custom data download key column
Error message repo

CAMPD Master Data Dictionary
Parameters
Begin Date: Required, single value, ISO standard format, 1995-LATEST REPORTING QUARTER
End Date: Required, single value, ISO standard format, 1995-LATEST REPORTING QUARTER
Facility: Optional, multiple values allowed
State: Optional, multiple values allowed, 2 letter postal abbreviation for the 50 states plus Puerto Rico.
Unit Type: Optional, multiple values allowed
Unit Fuel Type: Optional, multiple values allowed, query will filter on both primary and secondary fuel type
Control technologies: Optional, multiple values allowed
Program: Optional, multiple values allowed,
Operating hour only: true, false
Validations
Begin Date:
Validate that one and only one value exists for the parameter
Validate that the date range is valid: 1995- latest reporting quarter
Validate that the date is in the format: YYYY-MM-DD
Error Message 1: < insert property > should not be null or undefined FV-106
Error Message: Ensure that < insert property > is in the FV-108
Error Message: Update the < insert property > to < insert valid range > FV-104
End Date:
Validate that one and only one value exists for the parameter
Validate that the date range is valid: 1995- latest reporting quarter
Validate that the date is in the format: YYYY-MM-DD
Validate End date is equal to or greater than start date
Error Message 1: < insert property > should not be null or undefined FV-106
Error Message: Ensure that is in the FV-108
Error Message: Error Message: Update the < insert property > to < insert valid range > FV-104
Error Message Enter an < insert property > that is greater than or equal to the < constraint > FV-103
State:
Validate that the value matches a valid 2 letter postal abbreviation for at least 1 of the 50 states, PR, or DC
Error Message: One or more states codes are not valid. Use the two letter postal abbreviation (use TX, not Texas). FV-101
Facility ID (ORIS Code):
Validate that the value is a number
If the value is a number, validate that the format is correct
positive integer (no negative numbers, not 0)
whole numeric value (no letters or special characters)
no more than 6 digits
Error Message: One or more < insert property > are not valid. Refer to the list of available < insert property > for valid values [placeholder for link to endpoint] FV-100
Unit Type:
Validate that the value is a valid unit type.
Error Message: One or more < insert property > are not valid. Refer to the list of available < insert property > for valid values [placeholder for link to endpoint] FV-100
Unit Fuel Type:
Validate that the value is a valid fuel type.
Error Message: One or more < insert property > are not valid. Refer to the list of available < insert property > for valid values [placeholder for link to endpoint] FV-100
Control Technologies:
Validate that the value is a valid control technology.
Error Message: One or more < insert property > are not valid. Refer to the list of available < insert property > for valid values [placeholder for link to endpoint] FV-100
Program:
Validate that the value matches a valid program code
Error Message: One or more < insert property > are not valid. Refer to the list of available < insert property > for valid values [placeholder for link to endpoint] FV-100
Data Elements:
State Aggregation
When the system identifies at least one record that matches the criteria, then for each record the system will display ordered by: State> date > hour
stateCode
date
hour
grossLoad
steamLoad
so2Mass
co2Mass
noxMass
heatInput
Testing
Test Case: TC654
Tester: @JanellC
Definition of Done

[x] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[x] Has the code been unit tested and peer reviewed?
[x] Have the functional tests been executed?
[x] Have all defects been reviewed and dispositioned, resolved, or deferred?
[x] Is the user story ready to be deployed to the test/staging environments?

TC654 passed @tlageman-epa
https://api.epa.gov/easey/dev/emissions-mgmt/apportioned/hourly/state/?api_key=T8r7OW4f12XtWKLY7CPgKmKu1WoP3TVG0x4eqmlB&stateCode=md     |    AL&beginDate=2020-01-01&endDate=2020-01-01&page=1&perPage=100


HTTP PRI method in Traces

Describe the bug
This might be a Free5GC issue more than otel, but i am still hoping you can guide me in the right direction.
I'm using the Opentelemetry Operator with the Instrumentation CRD to instrument (get traces from) Free5GC.  When analysing the traces obtained via Otel, i see unusual traces (with long spans of >1second) with the HTTP PRI method:

These PRI traces are certainly unexpected to say the least. The HTTP PRI method "is never used by an actual client. This method will appear to be used when an HTTP/1.1 server or intermediary attempts to parse an HTTP/2 connection preface."  (based on https://webconcepts.info/concepts/http-method/PRI). So i imagine this means that the HTTP requests are send between a client and a server where there is an HTTP version mismatch?

View logs from the otel sidecar container or traces in Jaeger
Observe unusual traces with HTTP PRI method.

I'd love to get some input from you, to at least guide me in the right direction (is this a Free5GC related problem?)

@MA3CIN I'm not familiar with Free5GC. Is it expected to be an HTTP2 server? Is the client using HTTP2?
Currently, our tests do not cover instrumenting HTTP2.
You can use a packet sniffing tool to see what is being sent.


autoHeight not applying same heigth on each item

Issue description:
When I apply autoHeight on my slider, the height isn't the same on each item
Demo link/slider setting:

Slider Settings :

var slider = tns({
         container: `#${carouselID}`,
         items: 1,
         slideBy: 1,
         controls: false,
         autoHeight: true,
         controlsText: [
            'Précédent',
            'Suivant'
         ],
         nav: false,
         navPosition: 'bottom',
         loop: false,
         responsive: {
            540 : {
               items: 2,
               slideBy: 2,
               gutter: 20
            },
            880 : {
               items: 3,
               slideBy: 3,
            },
            1200 : {
               items: 4,
               slideBy: 4,
            }
         }
      });

Screenshot : https://ibb.co/SxkdBQj

Tiny-slider version:  2.9.2
Browser name && version:  Firefox 71.0 / Chrome 78.0.3904.108
OS name && version:   MacOS 10.15.1

@MKlblangenois, The height issn't suppose to be the same on each item.

autoHeight:
Height of slider container changes according to each slide's height.

So that means that your container will adapt to the height of the tallest visible item. However your items per say won't be equal height.
I can't seem to find an equal height option though, and it would be a nice feature to have.

Old thread, but for ref, you can set the height on each item to be the same with CSS:
.tns-slider {
display: flex;
}
.tns-item {
flex: 1;
}


Direct handling of func.call() and func.apply()

Currently .call() and .apply() cause a natively handled function call rather than an Ecmascript-to-Ecmascript call like ordinary function calls. This affects coroutine yield/resume behavior but also grows the native call stack for a case where that's unnecessary. Handling .call() and .apply() better is useful: while they're not very common in normal application code, they are frequently used in Promise implementations, transpiler generated code, etc.

ES2015 requires both .call() and .apply() to tailcall the target function (and therefore any solution here is likely to dovetail nicely with #1026):
http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.call
So this issue could probably be tagged compliance.

Agree, also matches V8 behavior (as visible via err.stack).

Avoiding the .call() or .apply() (or Reflect.construct()) on the call stack is relatively straightforward; did a quick prototype of that and it should only require a few lines of changes to call handling. That won't yet handle the direct ES-to-ES call part which needs a bit more changes, so maybe these two will be in separate pulls.

I definitely welcome this change, it means less call() and apply() noise in my debugger callstack listings :)

Another nice benefit if this is implemented is that these become tailcalls:
return fn.call(...);
return fn.apply(...);

whereas right now, .call() itself is tailcalled, but then leaves itself on the stack while the target function runs.

Conceptualyl yes, but tailcalls are implemented only for Ecmascript-to-Ecmascript calls at present., however. So depending a bit on how this is ultimately implemented, .call() and .apply() may be called as native functions, and even though they unwind themselves before making the actual call, the Ecmascript-to-Ecmascript call handling won't apply because the function itself is native.

This is now implemented and in master. The return fn.call() etc tailcalls also work now.


emails: Send emails asynchronously.

Right now the Forgot password email is being sent spontaneously. This doesn't allow the user to do anything else until the email is sent. So sending emails asynchronously using a distributed task queue like Celery.

Take a look at sendgrid.

PR #67 fixes this.


Consistent HCV API Access

Right now we just pass around an hvac object and use the native constructs. This will buy us cleaner interfaces, less code use (as exceptions and logging are handled only in one place), and flexibility to switch APIs. Hopefully we won't have to, but the hvac project has a lot of unhandled PR's currently 😿

This was cleaned up a bunch in 1.3.0 and I'm considering it close enough for science. Implemented by wrapping the hvac.v1.client class and decorating as needed. Also helped in fixing https://github.com/Autodesk/aomi/issues/108


README: Remove "hyper-converged", update messaging

Based on a recent conversation with @wattsteve .
Signed-off-by: Jose A. Rivera<EMAIL_ADDRESS>

This change is

@wattsteve, if you could have a look, as well, that would be appreciated. :)

LGTM


[BUG] Wrong ratio computation in PPO2

Line 183 in ppo2.py
ratio = tf.exp(self.old_neglog_pac_ph - neglogpac)
It computes policy_old(at|st)/policy(at|st), which is wrong. As Equ. (6) in the PPO paper indicates, the ratio is computed by policy(at|st)/policy_old(at|st), which is also adopted in the OpenAI baseline code.

I find that neglogpac is -log policy(at|st). so it's correct.


Programming exercises : Remove nested zip when only one participation

Checklist
General

[x] I tested all changes and their related features with all corresponding user types on a test server.
[X] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[X] I chose a title conforming to the naming conventions for pull requests.

Server

[ ] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[X] I followed the coding and design guidelines.
[ ] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[ ] I added pre-authorization annotations according to the guidelines and checked the course groups for all new REST Calls (security).
[X] I documented the Java code using JavaDoc style.

Motivation and Context

When manually assessing a programming exercise, there is a download button to download the student repository as zip file.
If only one repository is specified, the surrounding zip file is not needed, but it would be better to have the zip with the repo right away
Description

Steps for Testing

Programming exercise with manual assessment and at least one assessable submission.

Assess the submission.
Use the ‘Download Repo’ button above the online editor.
Open the ZIP file locally. It contains directly the contents of the repo

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance
[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[ ] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Exam Mode Test

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

Summary by CodeRabbit

New Features

Export functionality now allows for direct download of a single repository without zipping when only one repository is provided.

Enhancements

Improved test coverage for programming exercises by including additional test cases and assertions.

Bug Fixes

Adjusted the control flow in test scenarios to ensure consistent behavior during mock interactions.

Thanks for fixing the issue. Change makes sense.
Can you also add a test for the new behaviour?

will do!

In the case of multiple repositories, do we even need to zip them? Directories would be enough to structure the repos inside the enclosing zip, right?


WIP: feat(STONEINTG-891): add test_metadata task and pipeline

This example shows how the test metadata can be derived from the SNAPSHOT parameter as well as the PaC and Konflux/appstudio labels and annotations

/lgtm

/lgtm


Suppress invalid hook call warning for react 18

This applies the same fix from #3521 to the legacy-v5 branch.
References #3521
References #3394
References #3409

@eps1lon @probablyup this applies the same fix from the v6 branch (main) to the legacy-v5 branch. The hope is that this is a small enough change that a patch release can be pushed to resolve the issue.

Thanks @kitten! I'm happy to test this out if you can tag a new test release.

@lynndylanhurley Sure thing! I've created a new prerelease with the corresponding tag:

Package
Version

styled-components@pr3564
5.3.1-pr3564

@kitten been using this for the past couple of days with the latest version of react 18. the issue has been resolved for me.


Cannot create/start httpd_service on 2015.03 Amazon AMI Linux Node

I am trying to install onto an Amazon EC2 node running the 2015.03 version of the Amazon Linux AMI. I'm running into an issue where my webserver recipe fails because it cannot create the http_service[customers] resource:
================================================================================
Error executing action `create` on resource 'httpd_service[customers]'
================================================================================

NoMethodError
-------------
undefined method `each' for nil:NilClass

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/httpd/libraries/provider_httpd_service_rhel.rb:247:in `block in <class:HttpdServiceRhel>'

Resource Declaration:
---------------------

# In /var/chef/cache/cookbooks/awesome_customers/recipes/webserver.rb
  2: httpd_service 'customers' do
  3:   mpm 'prefork'
  4:   action [:create, :start]
  5: end
6:

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/awesome_customers/recipes/webserver.rb:2:in `from_file'

httpd_service("customers") do
  action [:create, :start]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :httpd_service
  cookbook_name "awesome_customers"
  recipe_name "webserver"
  mpm "prefork"
  instance "customers"
end

I can manually set the version to either 2.2 or 2.4 in the webserver.rb file, but then it appears to have an issue with my node's platform_version attribute, which doesn't appear to have a default configuration in this community cookbook:
================================================================================
Error executing action `start` on resource 'httpd_service[customers]'
================================================================================

Chef::Exceptions::FileNotFound
------------------------------
template[customers :create /etc/init.d/httpd-customers] (/var/chef/cache/cookbooks/httpd/libraries/provider_httpd_service_rhel_sysvinit.rb line 14) had an error: Chef::Exceptions::FileNotFound: Cookbook 'httpd' (0.2.18) does not contain a file at any of these locations:
  templates/amazon-2015.03/2.4/sysvinit/el-2015/httpd.erb
  templates/amazon/2.4/sysvinit/el-2015/httpd.erb
  templates/default/2.4/sysvinit/el-2015/httpd.erb
  templates/2.4/sysvinit/el-2015/httpd.erb

This cookbook _does_ contain: ['/var/chef/cache/cookbooks/httpd/templates/default/2.2/mods/mpm.conf.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.2/scripts/a2enmod.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.2/sysvinit/debian-7/apache2.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.2/sysvinit/el-6/httpd.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.2/sysvinit/ubuntu-10.04/apache2.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.2/sysvinit/ubuntu-12.04/apache2.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.4/mods/rhel/mpm.conf.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.4/scripts/a2enmod.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.4/sysvinit/el-6/httpd.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.4/sysvinit/ubuntu-14.04/apache2.erb','/var/chef/cache/cookbooks/httpd/templates/default/envvars.erb','/var/chef/cache/cookbooks/httpd/templates/default/httpd.conf.erb','/var/chef/cache/cookbooks/httpd/templates/default/module_load.erb','/var/chef/cache/cookbooks/httpd/templates/default/mpm.conf.erb','/var/chef/cache/cookbooks/httpd/templates/default/rhel/sysconfig/httpd-2.2.erb','/var/chef/cache/cookbooks/httpd/templates/default/rhel/sysconfig/httpd-2.4.erb','/var/chef/cache/cookbooks/httpd/templates/default/systemd/httpd.service.erb','/var/chef/cache/cookbooks/httpd/templates/default/magic.erb','/var/chef/cache/cookbooks/httpd/templates/default/2.2/sysvinit/el-5/httpd.erb']

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/awesome_customers/recipes/webserver.rb

  2: httpd_service 'customers' do
  3:   version '2.4'
  4:   mpm 'prefork'
  5:   action [:create, :start]
  6: end
  7:

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/awesome_customers/recipes/webserver.rb:2:in `from_file'

httpd_service("customers") do
  action [:create, :start]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :httpd_service
  cookbook_name "awesome_customers"
  recipe_name "webserver"
  version "2.4"
  mpm "prefork"
  instance "customers"
  timeout "400"
  log_level "warn"
  keepalive true
  maxkeepaliverequests "100"
  keepalivetimeout "5"
  hostname_lookups "off"
  listen_addresses ["<IP_ADDRESS>"]
  listen_ports ["80"]
end

I'm running chef-client 12.4.1 on both my workstation and the node:
Workstation:
Chef Development Kit Version: 0.7.0
chef-client version: 12.4.1
berks version: 3.2.4
kitchen version: 1.4.2

Node:
chef-client --version
Chef: 12.4.1

Does anyone have any suggestions for how i might resolve this issue?

I queued a potential fix here: https://github.com/chef-cookbooks/httpd/pull/47.

Looks like I have the same issue
192-168-10-98
192-168-10-98 Starting Chef Client, version 12.5.1
192-168-10-98 resolving cookbooks for run list: ["awesome_customers"]
192-168-10-98 Synchronizing Cookbooks:
192-168-10-98   - apt (2.8.2)
192-168-10-98   - httpd (0.3.0)
192-168-10-98   - compat_resource (12.5.9)
192-168-10-98   - awesome_customers (0.1.1)
192-168-10-98 Compiling Cookbooks...
192-168-10-98 Converging 16 resources
192-168-10-98 Recipe: apt::default
192-168-10-98   * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)
192-168-10-98   * directory[/etc/apt/apt.conf.d] action create (up to date)
192-168-10-98   * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date)
192-168-10-98   * execute[apt-get-update] action run (skipped due to not_if)
192-168-10-98   * execute[apt-get update] action nothing (skipped due to action :nothing)
192-168-10-98   * execute[apt-get autoremove] action nothing (skipped due to action :nothing)
192-168-10-98   * execute[apt-get autoclean] action nothing (skipped due to action :nothing)
192-168-10-98   * execute[apt-get-update-periodic] action run (skipped due to only_if)
192-168-10-98   * directory[/var/cache/local] action create (up to date)
192-168-10-98   * directory[/var/cache/local/preseeding] action create (up to date)
192-168-10-98 Recipe: awesome_customers::user
192-168-10-98   * group[web_admin] action create (up to date)
192-168-10-98   * user[web_admin] action create (up to date)
192-168-10-98 Recipe: awesome_customers::webserver
192-168-10-98   * httpd_service_debian_sysvinit[customers] action create
192-168-10-98
192-168-10-98     ================================================================================
192-168-10-98     Error executing action `create` on resource 'httpd_service_debian_sysvinit[customers]'
192-168-10-98     ================================================================================
192-168-10-98
192-168-10-98     NoMethodError
192-168-10-98     -------------
192-168-10-98     undefined method `each' for nil:NilClass
192-168-10-98
192-168-10-98     Cookbook Trace:
192-168-10-98     ---------------
192-168-10-98     /var/chef/cache/cookbooks/httpd/libraries/httpd_service_debian.rb:289:in `block in <class:HttpdServiceDebian>'
192-168-10-98
192-168-10-98     Resource Declaration:
192-168-10-98     ---------------------
192-168-10-98     # In /var/chef/cache/cookbooks/awesome_customers/recipes/webserver.rb
192-168-10-98
192-168-10-98       7: httpd_service 'customers' do
192-168-10-98       8:   mpm 'prefork'
192-168-10-98       9:   action [:create, :start]
192-168-10-98      10: end
192-168-10-98      11:
192-168-10-98
192-168-10-98     Compiled Resource:
192-168-10-98     ------------------
192-168-10-98     # Declared in /var/chef/cache/cookbooks/awesome_customers/recipes/webserver.rb:7:in `from_file'
192-168-10-98
192-168-10-98     httpd_service_debian_sysvinit("customers") do
192-168-10-98       action [:create, :start]
192-168-10-98       retries 0
192-168-10-98       retry_delay 2
192-168-10-98       default_guard_interpreter :default
192-168-10-98       declared_type :httpd_service
192-168-10-98       cookbook_name "awesome_customers"
192-168-10-98       recipe_name "webserver"
192-168-10-98       mpm "prefork"
192-168-10-98       instance "customers"
192-168-10-98       run_user "www-data"
192-168-10-98       run_group "www-data"
192-168-10-98       servername "192-168-10-98"
192-168-10-98     end
192-168-10-98
192-168-10-98
192-168-10-98 Running handlers:
192-168-10-98 [2015-10-12T16:34:35+00:00] ERROR: Running exception handlers
192-168-10-98 Running handlers complete
192-168-10-98 [2015-10-12T16:34:35+00:00] ERROR: Exception handlers complete
192-168-10-98 Chef Client failed. 0 resources updated in 03 seconds
192-168-10-98 [2015-10-12T16:34:36+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
192-168-10-98 [2015-10-12T16:34:36+00:00] ERROR: httpd_service_debian_sysvinit[customers] (awesome_customers::webserver line 7) had an error: NoMethodError: undefined method `each' for nil:NilClass
192-168-10-98 [2015-10-12T16:34:36+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

I tried to do this on my vm running Mint. To make it work I had to specify a version for httpd_service.
httpd_service 'customers' do
  mpm 'prefork'
  version '2.4'
  action [:create, :start]
end

Same problem here (followed the same tutorial)

This should be resolved in the current release.  Feel free to open this back up if you're still seeing the problem


Dead Project?

Is this a dead project?

Has been dead since mid last year. But I am currently getting it up-to-speed with the latest GrapheneOS changes. Give me a few weeks.

Is this a dead project?

I reconsidered. Maybe it is dead. But for the better in the long run. See #51.


Add a ViewCase property to NamedView

Codecov Report
Attention: Patch coverage is 88.23529% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 95.38%. Comparing base (393aaf3) to head (d7e1bf5).

Files
Patch %
Lines

Sources/AddPreviews/NamedView.swift
50.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   96.66%   95.38%   -1.29%
==========================================
  Files           1        2       +1
  Lines         120      130      +10
==========================================
+ Hits          116      124       +8
- Misses          4        6       +2

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


Add support for Whoops 2.0

This PR adds support for Whoops 2.0 as discussed in zendframework/zend-expressive-skeleton#115 and #383.
Falling back to 1.1 is no option since it doesn't support PHP 7.
It's not optimal but it adds support fro 2.0 while maintaining BC.

[x] Add whoops 2.0 support
[x] Suggest whoops 2.0
[x] Fix whoops tests

@michaelmoussa Could you review this code please. If this is a valid solution I'll fix the tests too. I don't want to spend time on the tests if the solution isn't good.

The tests are now compatible for Whoops 1.x and 2.x.
For Expressive version 2 I suggest to drop whoops 1.x support. All Whoops related tests can then be rewritten and properly use the Whoops\RunInterface (this isn't available in Whoops 1.x).
One more thing I discovered: The Zend\Expressive\WhoopsErrorHandler expects as the second parameter the PrettyPageHandler. However there is also a Whoops\Handler\HandlerInterface. This would allow to inject any error handler like the JsonResponseHandler without breaking BC.

Great! I'll see about merging and doing a patch release early next week, as I won't have access to a computer for a few days... unless @weierophinney or someone else wants to wrap things up.

@weierophinney this looks good to me, but I noticed that master is way ahead of the latest 1.0.0 tag for this repo. It seems to be mostly documentation and CI related commits, though. Do you see any issue with me merging this PR and releasing 1.0.1? (it's a bug fix and is BC, so I think a patch version is appropriate)

This is working well for me :) Would be good to see it merged.

Thanks, @xtreamwayz


Create dataset loader for IDK-MRC

https://indonlp.github.io/nusa-catalogue/card.html?idk_mrc

#self-assign


Fixed bug in coeffecient of variation calculator

Related Issue

Info about Issue or bug

fix #3838
Describe the changes you've made
A clear and concise description of what you have done to successfully close your assigned issue. Any new files? or anything you feel to let us know!
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.

Screenshots

Original
Updated

original screenshot
updated screenshot

@sairish2001 Actually covariance calculator was two time in the code with the function name of variation calculator so deleted one of it :)


Federate with PeerTube (support the ActivityPub protocol)

https://github.com/Chocobozzz/PeerTube

Absolutely I plan to support ActivityPub that's where the 'node' part of the name comes in. Thanks for the feedback.

Some info to get started with this issue:
PeerTube's official docs on ActivityPub:
https://docs.joinpeertube.org/#/api-activitypub
PeerTube's ActivityPub functions:
https://github.com/Chocobozzz/PeerTube/tree/develop/server/lib/activitypub
ActivityPub standard:
https://www.w3.org/TR/activitypub/
ActivityPub off website:
https://activitypub.rocks/

Hi. Has anyone experimented with this? Could it indeed be possible to inter-federate with PeerTube? That'd be amazing!

Any updates on this issue? I'm really interested in seeing this issue worked on. Thanks


Created common use passing data to and from elements

I probably need to go back and add explanation of the code the way the other use case does.  Just didn't have much time and wanted to jot this down because this is probably the number one thing I answer in the forums and SO.

Thanks a lot @munsterlander ! Looks great :)
We will add this when you've added the explanation or one of us could do it if you are short on time.

@munsterlander I meant to write a comment but accidentally merged :)

Ha!  No prob.  I will probably get an explanation in later today.  I im'd Fran regarding a good gui tool for github markdown.  Do you know of one?

@munsterlander I only know of online editors. I've used Dillinger before and it's pretty nice.

So in order to edit this file and to recommit, do I need to revert the PR, because at this time, the file is locked where I can't fork/edit?  Also, I stumbled on this editor and it is pretty slick: https://stackedit.io/editor

@munsterlander I've already reverted this PR so you can make a new PR with the same changes.

I have it now.  I didn't realize that I hadn't forked the tutorial branch and I wasn't able to find my file.  Woops!  Fixed now.  I am finishing up the explanation now and will be dropping a PR shortly.


Platform Detection in Grpc.Core For Unity Causes Assembly Load Attempt for UnityEngine.dll

What version of gRPC and what language are you using?
Grpc.Core 1.20 (latest as of this posting)
What operating system (Linux, Windows,...) and version?
Windows Server 2012
What runtime / compiler are you using (e.g. python version or version of gcc)
.Net 4.5 CSharp
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.

Using Visual Studio 2017/2019 and the latest Google Grpc Tools/Core runtimes generated a Grpc client proxy from a set of protobuff files. Everything works as expected when calling into these CSharp generated classes (generated using the Grpc.Tools protoc.exe). When attempting to run these client classes from an SSIS (MS SQL Server Integration Services) Script Task and due to a 'bug' in the SSIS Telemetry runtime regarding Assembly resolution (when .Net/Reflection is trying to resolve an assembly to load it). the GRPC client code fails.

What did you expect to see?
Same client that works in a standard .Net exe work from an SSIS Script task.
What did you see instead?
An exception thrown in the SSIS telemetry code due to UnityEngine.dll attempting to get loaded by ,Net to service the Type.GetType() call made from Grpc.Core!
I THINK what you want to do in Grpc.Core to detect Unity is just call Type.GetType("UnityEngine.Application") which will not cause .Net to try to load any additional assemblies. Let's say you are running a NON Unity .Net app on a machine that has the Unity Engine in the GAC, then isUnity would actually resolve to true and I suspect you would get undesirable results after that point as it is NOT a Unity application just because the Unity engine was available for .Net/Reflection to load.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?

I tried and the suggested fix Type.GetType("UnityEngine.Application") actually fails on Unity. We need a better solution for detecting we're actually running on unity.
This is only a problem if you have "UnityEngine.dll" in your GAC (which seems to be non-standard, why do you have it there?).

I am not using Unity at all in my solution. But it seemed your implementation for 'detecting' if this application was a Unity application seemed less than ideal. Just because the Unity dll can be loaded by .net does not necessarily mean its a unity application. I worked around this problem by running my GRPC code out of process from SSIS for now. Thanks..

@martysupple I agree that the way we detect unity could use an improvement, but I don't know a better solution myself, so I'm open to new suggestions. Until then, the current way seems acceptable.

If there is not a 100% reliable way to detect Unity, why not give the caller the option to override your auto-detection so we can avoid the .net assembly load attempt for the unity dll?

@martysupple  I'd be very surprised if there wasn't a 100% reliable way of detecting Unity - we just haven't figured it out yet. Maybe some of the Unity users can chime in and suggest a better approach?

Let's keep open.

I'm suffering from this problem too. I have a non-unity app that uses some Unity3D managed types and thus Unity3D.dll is part of the project.
While we wait for some novel idea on how to approach this, can't you catch that exception and asume it is not a unity app?
Please note that while this thread talks about an unwanted dll load, there are legit reasons to include the Unity3D.dll in a non-unity project (more in line with #23334 )

As a sometime Unity dev, my first thought is check for compilation symbols. I think something like below is actually sufficient:
bool isUnity = false;
#if UNITY_5_3_OR_NEWER
    isUnity = true;
#endif

Afaik preprocesor/compiler directives are only available at compilation time.
It work for those that compile their own Grpc.Core dlls along with their projects but not for rest that use precompiled (nuget) ones.

Afaik preprocesor/compiler directives are only available at compilation time.
It will work for those that compile their own Grpc.Core dlls along with their projects but not for rest that use precompiled (nuget) ones.

ty for the response I assumed there was some reason this wouldn't work, didn't fully think that through 👍


Setup Repo

@interstellartraveler77  we migrated this ledger repo per this forum post below.  Can you please setup access?  I cannot grant myself admin privileges.
https://forum.hypercore.one/t/migrate-ledger-repos-to-zenon-network-on-github/274/8?u=cryptofish

Also, znn_ledger_dart repo needs a setting set. The action workflow needs permission to commit on main. The workflow pushes binaries to the repo when they change.
You can find in under Settings -> Actions -> Workflow permissions

This repo has been moved to https://github.com/hypercore-one/znn_ledger_dart due to insufficient permissions


[script set -e] enable feature flag

Summary
How was it tested?

Current dependencies on/for this PR:

main

PR #1533   👈

This comment was auto-generated by Graphite.


Unifier marks fvars as Delta_equational too aggresively

I found this lying in an old branch of mine, this file should succeed:
module UnifyInterpreted

(* We had a unification bug here. This should succeed without any
 * need for SMT simply by unfolding `id` into its definition, but
 * that was not happening since `non_neg_inv` had a Delta_equational
 * qualifier, and the unifier was sending the constraint to the SMT
 * solver since it considered the symbol as "interpreted".
 *)
let id (x:'a) : 'a = x

assume val memory : Type

let non_neg_inv (r:int) : memory -> Type0 =
  (fun m -> exists v. r == v)

assume val lock : int -> (memory -> Type0) -> Type
assume val r : int
assume val f : lock r (non_neg_inv r) -> unit
assume val l : lock r (fun m -> id (non_neg_inv r m))

#set-options "--no_smt"

(* Requires proving that (non_neg_inv r) == (fun m -> id (non_neg_inv r m)) *)
let test () : Tot unit = f l

As you can gather from the comments, we know the fix, and it's here: https://github.com/FStarLang/FStar/commit/0c106653b3e53bca59c645522adb092b644771c6, but I believe it will bring some regressions (otherwise I would have merged this). In any case, filing this to get an issue number.

I suppose #1482 is related.


error TS5053: Option 'declaration' cannot be specified with option 'isolatedModules'

Hey!
Thank you for sharing the code.
I got an error when I upgraded the version of next to 9.0.
error TS5053: Option 'declaration' cannot be specified with option 'isolatedModules'

This should be due to the new feature zero-config typescript support of next 9.0.
Now, the absence of either declaration and isolatedModules will cause errors, and the two options conflict with each other.
Do you have similar problems? Is there a solution?
Thanks!

Do you need this option set for your server side code?

Do you need this option set for your server side code?

After I reinstalled the dependency, everything went well.


Undoing a paste leaves the cursor in the wrong place

Hitting p u leaves the cursor one position to the right.  If you keep hitting pu, the cursor eventually reaches the rightmost column of the line.
In vim, the cursor doesn't move at all.

Yes, undo in Atom currently puts the cursor in a different place than VIM
does. It's on my radar because it's been bugging me too. I think it's not
just undoing P.
Ooh, a quick thought that I cannot check right now - does vim-state fail to
move the cursor after undo to match the cursor move after other commands?

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


Add identifier to threats in json model

Store, Actor and Process entities are identified by a UUID in the json file, which can be used for integration with other security tools or to compare different versions of the threat model. Would it make sense to add a UUID to identify the Threat entities in the json file?
(...)
{
  "type": "tm.Store",
  "id": "7fffa841-aa9e-4a2a-8a3f-03a47d8a80ae",
  "hasOpenThreats": true,
  "threats": [
    {
      "status": "Open",
      "severity": "High",
      "title": "Component identity spoofing",
      "type": "Spoofing",
      "id" : "**SOME_UUID_HERE**",
      "mitigation": "N/A",
      "description": "Artifact repository is compromised, it contains build artifacts that are tampered with"
    }
  ],
    "text": {
      "text": "Artifact Storage"
    }
}
(...)

Hello @banzo - yes, this is a good enhancement to have.
The changes will probably be in the file src/services/threatengine.js in the threat dragon core repo: https://github.com/OWASP/threat-dragon-core
Is this something that you could make the changes for?

Relates to #187 - and will likely be addressed as part of that.  I will keep this open to ensure it makes it into whatever the threat engine looks like for v2 though. :smile:

Someone has suggested having a numeric value associated with threats for a given diagram (as part of the UI).  While this isn't a unique identifier, I think it makes sense to bundle the work together as part of this issue.
For example, the UI may display:

1: Unauthorized Access
2: Credential Theft

Then those individual threats will also have a unique ID (UUID) associated as well for integration with other systems.

I think these are linked but also have different uses. Certainly we need a UUID for the threats. We also need an easy way of referring to threats within a model, along the lines of "let us look at threat number 3, how is it different to threat number 42?"
So the threat number has to be associated with the UUID but not the same, and should probably be an incrementing number for each threat model, so that you could get 'threat number3' occurring in multiple (but separate) threat models
It would be good to display this threat  ID (not UUID) in the top right corner of the threat summary in the left hand pane

UUID can be obtained with:
import { v4 as uuidv4 } from 'uuid';
uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'


How to set radius on avatar

How can I set a radius on the avatarImage?

No worries I edited the BaseMessageCollectionViewCell avatarImage properties.


Nested Fn::ImportValue in Fn::Sub not working for SAM template

Description:
I am trying to define Serverless API resource. But having trouble in defining location of swagger specification file using function ImportValue.
Steps to reproduce the issue:
I am not able to define AWS::Serverless::Api resource having nested function ImportValue in Location. I have tried following three ways, none of them work.
Note: Stack parameters are defined properly and export value from other stack exists. Not showing them here for brevity reason.
ApiGatewayApi:
    Type: AWS::Serverless::Api
    Properties:
        Name: !Sub ${AWS::StackName}-API
        StageName: !Ref ApiGatewayStageName
        DefinitionBody:
          'Fn::Transform':
            Name: 'AWS::Include'
            Parameters:
              Location:
                Fn::Sub:
                - s3://${BucketName}/${SwaggerSpecificationS3Key}
                - BucketName:
                    Fn::ImportValue:
                      !Sub "${EnvironmentName}-dist-bucket-${AWS::Region}"

ApiGatewayApi:
    Type: AWS::Serverless::Api
    Properties:
        Name: !Sub ${AWS::StackName}-API
        StageName: !Ref ApiGatewayStageName
        DefinitionBody:
          'Fn::Transform':
            Name: 'AWS::Include'
            Parameters:
              Location:
                Fn::Sub:
                - s3://${BucketName}/${SwaggerSpecificationS3Key}
                - BucketName:
                    !ImportValue 'dev-dist-bucket-us-east-1'

ApiGatewayApi:
    Type: AWS::Serverless::Api
    Properties:
        Name: !Sub ${AWS::StackName}-API
        StageName: !Ref ApiGatewayStageName
        DefinitionBody:
          'Fn::Transform':
            Name: 'AWS::Include'
            Parameters:
              Location:
                Fn::Sub:
                - s3://${BucketName}/${SwaggerSpecificationS3Key}
                - BucketName:
                    Fn::ImportValue: 'dev-dist-bucket-us-east-1'

Cloudformation shows following error.
FAILED - The value of parameter Location under transform Include must resolve to a string, number, boolean or a list of any of these.
However, if I do not use ImportValue it works with a nested Fn::Sub
ApiGatewayApi:
    Type: AWS::Serverless::Api
    Properties:
        Name: !Sub ${AWS::StackName}-API
        StageName: !Ref ApiGatewayStageName
        DefinitionBody:
          'Fn::Transform':
            Name: 'AWS::Include'
            Parameters:
              Location:
                Fn::Sub:
                - s3://${BucketName}/${SwaggerSpecificationS3Key}
                - BucketName:
                    Fn::Sub: dist-bucket-${EnvironmentName}-${AWS::Region}

Is it function ImportValue that cannot be used under function Sub?
or
Is it yaml format that does not support ImportValue under a Sub?

This would be a CloudFormation question because SAM does not explicitly parse any of the ImportValue notations. My guess is that nesting import value might not work. I am not sure

I can create other resource types and output expected value in the output section of my template using nested import value. I even tried using Join function having nested Import value.

This is probably something specific to the Fn::Include, which is also a transform. Unfortunately we are focused on the SAM Transform here and don't have insights into Fn::Include.


latest

Hey Ricky. I trust that this was not your intention, but your pull request comes across as a bit offensive.
Daniel Alberski wrote this quiz engine, generously releasing it under an open-source license, allowing everyone to use it and create derivative works. I have added comparatively little to the fork that I created. I predominantly made minor UI improvements and productionized the application into an npm package, allowing others to easily install and use it.
Your pull request now tries to rebrand the application, giving it a different name, and having your own name displayed on the start page and in the browser tab. You have made changes to less than 1% of the code base. Your pull request suggests that I continue maintaining the application while keeping your name front and center, giving the impression that you are the author of it all.
As stated before, I trust that this is not the spirit/intention in which you created the pull request.
You are more than welcome to fork this repository and modify/rebrand it (in your fork) as you see fit. You're also welcome to publish your version on npm if you want to make it available to others.
If you believe that rebranding is a useful feature, I'm also happy to accept a pull request. However, the default name and branding need to remain unchanged. You could add configuration parameters to quiz-mate.cfg. There could be one parameter for the page title/message on the start page, and one where users can configure their preferred background image. The default configuration (that's created during the first start) would not contain these values. The parameters would be commented out. If so, the current/default Quiz Mate branding would apply. If people wish to customize the branding, they could do so by editing the configuration file.
If you want to pursue/discuss this further, feel free to open an issue in this repository or continue the conversation right here.
I'm closing this pull request now.

Hi David,
Indeed not my intention at all, I just wanted to give it a personal touch
to play it with my family and strictly personal only. And to be honest I
try to figure out how to code so I used this project as a bit of study
material, sorry if it let you think that I was stealing it. Trying to learn
how to code from scratch is a though learning path so I got my own Linux
VPS running docker containers, reverse proxies and stuff and so I came
across your Github project and found it interesting to pick it up. Anyways
I respect the policy and will not continue to change it.
With kind regards,
Rick
Sent from Gmail Mobile
Op za 6 jul 2024 om 08:44 schreef David Hofmann @.***>

Hey Ricky. I trust that this was not your intention, but your pull request
comes across as a bit offensive.
Daniel Alberski wrote this quiz engine, generously releasing it under an
open-source license, allowing everyone to use it and create derivative
works. I have added comparatively little to the fork that I created. I
predominantly made minor UI improvements and productionized the application
into an npm package, allowing others to easily install and use it.
Your pull request now tries to rebrand the application, giving it a
different name, and having your own name displayed on the start page and in
the browser tab. You have made changes to less than 1% of the code base.
Your pull request suggests that I continue maintaining the application
while keeping your name front and center, giving the impression that you
are the author of it all.
As stated before, I trust that this is not the spirit/intention in which
you created the pull request.
You are more than welcome to fork this repository and modify/rebrand it
(in your fork) as you see fit. You're also welcome to publish your version
on npm if you want to make it available to others.
If you believe that rebranding is a useful feature, I'm also happy to
accept a pull request. However, the default name and branding need to
remain unchanged. You could add configuration parameters to quiz-mate.cfg.
There could be one parameter for the page title/message on the start page,
and one where users can configure their preferred background image. The
default configuration (that's created during the first start) would not
contain these values. The parameters would be commented out. If so, the
current/default Quiz Mate branding would apply. If people wish to customize
the branding, they could do so by editing the configuration file.
If you want to pursue/discuss this further, feel free to open an issue in
this repository or continue the conversation right here.
I'm closing this pull request now.
—
Reply to this email directly, view it on GitHub
https://github.com/david-04/quiz-mate/pull/1#issuecomment-2211682604,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEH6F7PSGQUUVQ6FEOPNI3ZK6G3ZAVCNFSM6AAAAABKNKB7YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGY4DENRQGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

All good, Rick. No offense was taken. I would also like to apologize. In hindsight, I can see that my previous message probably came across somewhat intimidating. This was not my intention.
And to avoid any misunderstanding: All that you have done is perfectly in line with the license. You're welcome (and encouraged!) to fork the repository, customize it in whichever way you like, and also put your name on it. There's absolutely nothing wrong with that. The license does not impose any restrictions. You could even use your fork commercially and try to sell it for money. It would not breach the license.
When you make changes just for yourself, keep them in your own fork. A pull request is only needed when you have made changes that you want to contribute back to the main project, so that everyone can benefit from them.
Good luck with our journey to learn how to code!

Hey David!
Thanks, I think we understand each others point of view :) maybe we can
team-up to add some intresting features (if you like) BTW have you tried
the new www.websim.ai its a fun concept where you give prompts and AI makes
a simulation of it, its real cool.
Maybe a cool addon to Quiz-mate is adding a youtube video where the
attendees need to answer questions based on the attached video, dont know
if something like iframe is working with Json, Im trying to find out.
Cheers!
Rick
Sent from Gmail Mobile
Op ma 8 jul 2024 om 11:24 schreef David Hofmann @.***>

All good, Rick. No offense was taken. I would also like to apologize. In
hindsight, I can see that my previous message probably came across somewhat
intimidating. This was not my intention.
And to avoid any misunderstanding: All that you have done is perfectly in
line with the license. You're welcome (and encouraged!) to fork the
repository, customize it in whichever way you like, and also put your name
on it. There's absolutely nothing wrong with that. The license does not
impose any restrictions. You could even use your fork commercially and try
to sell it for money. It would not breach the license.
When you make changes just for yourself, keep them in your own fork. A
pull request is only needed when you have made changes that you want to
contribute back to the main project, so that everyone can benefit from them.
Good luck with our journey to learn how to code!
—
Reply to this email directly, view it on GitHub
https://github.com/david-04/quiz-mate/pull/1#issuecomment-2213499882,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEH6F2FNBKNDSSW7XT5JX3ZLJLDFAVCNFSM6AAAAABKNKB7YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGQ4TSOBYGI
.
You are receiving this because you authored the thread.Message ID:
@.***>


[#1445] Edit resource help message

Minor change. Fixed as specified in #1445

+1 @mauriel133 Merge after Jenkins checks are successful.


Migrate Account to use camelCase

See https://docs.openzeppelin.com/contracts-cairo/0.3.1/extensibility#function_names_and_coding_style

Link is broken or no public access to that link is provided

Link is broken or no public access to that link is provided

thanks, fixed


add stuf (like parenthacies) automagicly

like most ides

For parenthesis, there are various other solutions like smartparens etc.


ability to copy the characters in the "missing" row

it would be useful to be able to copy those glyphs to, for example, research / look more deeply into a character / ductus / particular orthography.  a workaround is for me to just add the glyphs and then copy them, but I probably want to look into it first so I would prefer not to

This is something I was thinking about, too. I think it would be nice to have a right-click context menu in the Languages list, which would show several functions like:

Look up [language name] on Wikipedia when only 1 language is selected
Look up missing character on Wikipedia

[missingChar1]
[missingChar2] etc

Copy selection as CSV
Copy entire table as CSV
Copy missing characters

Space Separated
One Per Line
Python List

Copy missing glyph names

Space Separated
One Per Line
Python List

Copy missing codepoints

Space Separated
One Per Line
Python List

that's far more comprehensive than what I had in mind - a context menu with these options would be very useful (though I can't imagine using the CSV function, personally)

I was thinking some users may want to copy rows from the languages table and paste them into an app that supports tables or spreadsheets. It might make more sense to call them Copy selected rows and Copy all rows, then put them in clipboard as tab-separated values, which most spreadsheet apps should be able to handle via paste.

You should be able to make the text cell selectable and then on can pick what to copy paste.

You should be able to make the text cell selectable and then on can pick what to copy paste.

I tried this but Vanilla doesn't seem to have an option for it. Cells in a List2 table can be editable, but not selectable. The cells are implemented as NSTextField, which can be selectable without being editable, but I tried that, and it doesn't seem to work when it's inside a table.
I might come back to it, but I have to be careful with anything that requires hacking out of Vanilla to pyobjc, because I'm not familiar with Apple's frameworks and pyobjc is made for developers who are, so any small thing can take a long time to figure out.
For now, I'm working on the context menu I mentioned above, so that will have an option to copy the whole row to clipboard, including the missing characters.

Context menus are now added as of 36b7e12


Share manager migration

This PR introduces new interfaces for dumpable and loadable share managers and implements dumping shares from the json and loading dumps into cs3 manager.

@butonic I have a branch which adds according migration commands to the ocis cli at https://github.com/aduffeck/ocis/commits/migrate-shares


Bug: SVG preview with Chafa not working

RTFM Checklist

[X] I have searched exisiting issues / discussions
[X] I have read the Wiki including the Advanced section
[X] I have read man fzf / I am well versed in shell fzf

Operating system
22.04.2-Ubuntu
Shell
bash
Neovim version (nvim --version)
sh -c "$(curl -s https://raw.githubusercontent.com/ibhagwan/fzf-lua/main/scripts/mini.sh)"
Fzf version (fzf --version)
0.36.0 (2023011)
Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))
nil
Is the problem reproducible with mini.sh?

[X] My issue is reproducible with mini.sh
[ ] My issue IS NOT reproducible with mini.sh
[ ] I have not tested with mini.sh (not relevant, requires LSP, Windows, etc)

Fzf-lua configuration
require('fzf-lua').setup({
})

Describe the bug / steps to reproduce
Firstly much love for you and this project, and big thank you!
I have chafa installed to be able to preview SVG's, I can run on the command line chafa /path/to/some.svg and it works. In Neovim I can run :!chafa -h and it works. So I have ruled that out the executable.
The wiki says here

To do so you will need to configure previewer.builtin.extensions with a shell command per extension, the shell command will then run in a neovim terminal buffer inside the preview window.

I am guessing the wiki is out of date because in the default configuration in the README.md it has the configuration already present:
previewers = {
   ...
    builtin = {
      ...
      extensions      = {
        -- neovim terminal only supports `viu` block output
        ["png"]       = { "viu", "-b" },
        -- by default the filename is added as last argument
        -- if required, use `{file}` for argument positioning
        ["svg"]       = { "chafa", "{file}" },
        ["jpg"]       = { "ueberzug" },
      },

We see that svg is already setup. I tried adding it to my setup just incase and it still did not work. When I preview a svg file, it previews the text of the svg not the chafa render.
On a site note ueberzug is archived, and has made it not trivial to install (pushed only a read me notice to the repo).
These features are just nice to haves, the cherry's on top of an amazing plugin, cheers!

Have you tried displaying an svg file in the term with chafa?
The README options are mere suggestions, I cannot guarantee how external tools are going to operate.

Have you tried displaying an svg file in the term with chafa?
The README options are mere suggestions, I cannot guarantee how external tools are going to operate, fzf-lua just runs the command, the output is out of my control.

Did you see this part of the issue I wrote:

I have chafa installed to be able to preview SVG's, I can run on the command line chafa /path/to/some.svg and it works. In Neovim I can run :!chafa -h and it works. So I have ruled that out the executable.

This is what it looks like from the terminal:

This is what it looks like in fzf-lua:

It's not the rendering of chafa, its that chafa is not used.
Further more did you see my point about the conflicting data in the wiki and README.md on how to set it up?

It's not the rendering of chafa, its that chafa is not used.

I’ll check.

On a site note ueberzug is archived, and has made it not trivial to install (pushed only a read me notice to the repo).

The README doesn’t point to the archived ueberzug but instead to jstkdng/ueberzugpp.

I am guessing the wiki is out of date because in the default configuration in the README.md it has the configuration already present:

I guess I could clarify the README is just suggesting a configuration when it comes to extensions, by default these aren’t defined.

Thanks for looking into it

The README doesn’t point to the archived ueberzug but instead to jstkdng/ueberzugpp.

I followed this link (shown in the image below) from the WIKI, I think it's a stray link to the old seebye repo that probably could be updated

I am guessing the wiki is out of date because in the default configuration in the README.md it has the configuration already present:

I guess I could clarify the README is just suggesting a configuration when it comes to extensions, by default these aren’t defined.
Okay I see, that would be great, "default settings" misleads one into thinking it's already setup, and one only needs to change it if one wish to have an alternate behavior.
Cheers!

svg extension with chafa works fine on my end, I suspect chafa isn't detected by your neovim env, can you run := vim.fn.executable("chafa") and post the output?

I followed this link (shown in the image below) from the WIKI, I think it's a stray link to the old seebye repo that probably could be updated

The Wiki is open edit, you could change it yourself if you wanted, anyways, the Wiki is now updated to ueberzugpp.

svg extension with chafa works fine on my end, I suspect chafa isn't detected by your neovim env, can you run := vim.fn.executable("chafa") and post the output?

It just outputs 1 (I did clear the history before running it, and checked with :mess to ensure there wasnt more.
And this test works inside of neovim:
:!chafa /home/michael/linkcube/src/core/pack/icon/static/icon/validation_tick.svg
^[[0m                      ^[[0m
                   ^[[38;2;0;81;0m▄^[[38;2;0;115;0;48;2;0;69;0m▅^[[0m^[[38;2;0;110;0m▅^[[0m
                 ^[[38;2;0;82;0m▄^[[38;2;0;64;0;48;2;0;112;0m▘^[[38;2;0;114;0;48;2;0;126;0m▘^[[38;2;0;128;0;48;2;0;127;0m┈^[[38;2;0;100;0;48;2;0;126;0m▂^[[0m
               ^[[38;2;0;84;0m▄^[[38;2;0;66;0;48;2;0;113;0m▘^[[38;2;0;114;0;48;2;0;126;0m▘^[[38;2;0;128;0;48;2;0;127;0m┈^[[38;2;0;101;0m▂^[[0m^[[7m^[[38;2;0;113;0m▄^[[0m^[[38;2;0;76;0m▘^[[0m

             ^[[38;2;0;85;0m▄^[[38;2;0;69;0;48;2;0;113;0m▘^[[38;2;0;114;0;48;2;0;126;0m▘^[[38;2;0;128;0;48;2;0;127;0m┈^[[38;2;0;102;0;48;2;0;126;0m▂^[[0m^[[7m^[[38;2;0;114;0m▄^[[0m^[[38;2;0;
73;0m▘^[[0m  ^[[0m
           ^[[38;2;0;86;0m▄^[[38;2;0;71;0;48;2;0;113;0m▘^[[38;2;0;114;0;48;2;0;126;0m▘^[[38;2;0;128;0;48;2;0;127;0m┈^[[38;2;0;94;0;48;2;0;124;0m▁^[[0m^[[7m^[[38;2;0;114;0m▄^[[0m^[[38;2;0;70;
0m▘^[[0m    ^[[0m
^[[38;2;0;86;0m▗^[[38;2;0;118;0;48;2;0;68;0m▄^[[38;2;0;115;0;48;2;0;70;0m▆^[[0m^[[38;2;0;90;0m▄^[[0m     ^[[38;2;0;87;0m▄^[[38;2;0;113;0;48;2;0;72;0m▆^[[38;2;0;126;0;48;2;0;115;0m▆^[[38;2;0;
128;0;48;2;0;127;0m┈^[[38;2;0;96;0;48;2;0;124;0m▁^[[0m^[[7m^[[38;2;0;114;0m▄^[[0m^[[38;2;0;68;0m▘^[[0m      ^[[0m
^[[7m^[[38;2;0;80;0m▃^[[0m^[[38;2;0;89;0;48;2;0;121;0m▃^[[38;2;0;128;0;48;2;0;126;0m┊^[[38;2;0;127;0;48;2;0;117;0m▆^[[38;2;0;74;0m▝^[[0m^[[38;2;0;90;0m▄^[[0m ^[[38;2;0;88;0m▄^[[38;2;0;114;0;
48;2;0;71;0m▆^[[38;2;0;126;0;48;2;0;115;0m▆^[[38;2;0;128;0;48;2;0;127;0m┈^[[38;2;0;103;0;48;2;0;126;0m▗^[[0m^[[7m^[[38;2;0;114;0m▄^[[38;2;0;66;0m▆^[[0m        ^[[0m
  ^[[7m^[[38;2;0;93;0m▄^[[0m^[[38;2;0;88;0;48;2;0;122;0m▃^[[38;2;0;128;0;48;2;0;126;0m┊^[[38;2;0;127;0;48;2;0;117;0m▆^[[48;2;0;97;0m▆^[[48;2;0;117;0m▆^[[38;2;0;128;0;48;2;0;127;0m┈^[[38;2;0;
100;0;48;2;0;126;0m▗^[[0m^[[7m^[[38;2;0;106;0m▃^[[38;2;0;67;0m▆^[[0m          ^[[0m
    ^[[7m^[[38;2;0;93;0m▄^[[0m^[[38;2;0;87;0;48;2;0;121;0m▃^[[38;2;0;119;0;48;2;0;127;0m▁^[[38;2;0;97;0;48;2;0;126;0m▗^[[0m^[[7m^[[38;2;0;105;0m▃^[[38;2;0;68;0m▆^[[0m            ^[[0m
      ^[[7m^[[38;2;0;85;0m▅^[[38;2;0;67;0m▆^[[0m              ^[[0m

Press ENTER or type command to continue

I followed this link (shown in the image below) from the WIKI, I think it's a stray link to the old seebye repo that probably could be updated

The Wiki is open edit, you could change it yourself if you wanted, anyways, the Wiki is now updated to ueberzugpp.
Sorry, I see now there is an edit button, I should have done it.

I use the nightly appimage, so I thought that might be the issue, so I tried using the latest stable appimage and got the same result (just returns 1 for the request command and does not show the preview):
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068

It just outputs 1

That’s the expected output, this means chafa is detected and should work if it’s configured properly.
As we already established, the README incorrectly suggests the default options, could this be a configuration issue on your end (missing/typo/incorrect tree)? Can you post a link to your config so I can take a look?

Okay great, thought 0 would mean success.
But anyways I tested with the none app image version, still same result. I forgot I had deleted the previewers config section after refering to the default settings in the readme. So I added it back, and it worked. I must have configured it wrong. So sorry to waste your time. I checked it many times against the wiki and the readme before opening but I must have had my config object wrong. Thank you for your help! Sorry I really tried (on multiple occasions) to get it working before opening this.

Okay great, thought 0 would mean success. But anyways I tested with the none app image version, still same result. I forgot I had deleted the previewers config section after refering to the default settings in the readme. So I added it back, and it worked. I must have configured it wrong. So sorry to waste your time. I checked it many times against the wiki and the readme before opening but I must have had my config object wrong. Thank you for your help! Sorry I really tried (on multiple occasions) to get it working before opening this.

No worries, Ty @mangelozzi 🙏


ADD: Make Chain selection alphabetical

Please make the Chain selection alphabetical and add a chain search like in the token selection .

This is already completed.


Force certificate rotation after creating the cluster

We currently need to wait 24h after creating the cluster before getting certificates valid for one month. We should have a way of forcing the rotation of the certificates without waiting for 24h
Experimenting with the commands below seemed to help:
# validity is 30 times the base
oc create -n openshift-config configmap unsupported-cert-rotation-config --from-literal='base=30s'

# forcing rotation
oc get secret -A -o json | jq -r '.items[] | select(.metadata.annotations."auth.openshift.io/certificate-not-after" | .!=null and fromdateiso8601<='$( date --date='+1year' +%s )') | "-n \(.metadata.namespace) \(.metadata.name)"' | xargs -n3 oc patch secret -p='{"metadata": {"annotations": {"auth.openshift.io/certificate-not-after": null}}}'

# Wait ~ 5-10 minutes

# Make sure at least the apiserver serving cert has 15 min validity (change your cluster name based on your kubeconfig)
openssl s_client -connect api.tnozicka-1.devcluster.openshift.com:6443 | openssl x509 -noout -dates

# go back to normal certrotation setting
oc delete -n openshift-config configmap unsupported-cert-rotation-config

I am all up for it if the resulted cluster is healthy, Conversation which I had sometime back with installer folks look like even when initial oc get co says required operator are in healthy state then also it need to give some time to reconcile the cluster before putting a workload, I am not sure how quickly that reconcile can happen when we are putting ~30sec limit to the cert. Looks like we need to test it before make it part of our bundle creation script.

After doing the above steps, how to check if the certificates were rotated?.. i waited around 30mins and checked the certificates in the master.. and found the same 1 day validity
[root@crc-l8gfp-master-0 pki]# openssl x509 -in kubelet-client-current.pem -noout -dates
notBefore=May 28 08:05:00 2019 GMT
notAfter=May 29 07:48:17 2019 GMT

$ ./oc get csr
NAME AGE REQUESTOR CONDITION
csr-4mp5f 113m system:node:crc-l8gfp-master-0 Approved,Issued
csr-b5jnq 113m system:serviceaccount:openshift-machine-config-operator:node-bootstrapper Approved,Issued

To force cert rotation, we have seen in BZ [1] and over slack channels, only the following command is required, however in my attempts i haven't been able to force the rotation using this.
# forcing rotation
oc get secret -A -o json | jq -r '.items[] | select(.metadata.annotations."auth.openshift.io/certificate-not-after" | .!=null and fromdateiso8601<='$( date --date='+1year' +%s )') | "-n \(.metadata.namespace) \(.metadata.name)"' | xargs -n3 oc patch secret -p='{"metadata": {"annotations": {"auth.openshift.io/certificate-not-after": null}}}'

https://bugzilla.redhat.com/show_bug.cgi?id=1736800#c9

Fixed using #124


SPIKE - Investigate automatically notifying the support desk whenever the banner goes up

In the support research effort, it was mentioned that sometimes when the banner goes up indicating a prod outage, the support folks aren't notified and are sometimes taken by surprise.
We have an existing GitHub action that we run, so it makes sense to extend that to some sort of notification system that notifies support. This ticket captures the effort to research what notifications make sense / are feasible. Options are (but aren't limited to)

Slack automation in some sort of shared channel with the support folks
Email to the support team
Teams message / automation

Acceptance criteria
Team understands pros and cons of different options
Ticket is created to implement one of the solutions

Spike ticket https://github.com/CDCgov/prime-simplereport/issues/5741


[paconn] Paconn Update Throws Error

Describe the bug
Recently (in the last 3 days) i am getting a weird error when trying to update the connectors via paconn-cli. Issue exists on both Mac OS and Linux Platform
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/projects/.venv/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/projects/.venv/lib/python3.6/site-packages/knack/invocation.py", line 188, in execute
    cmd_result = parsed_args.func(params)

  File "/projects/freelancing/azure-app/azure-fn-msflow-agent/plangrid-agent/swagger/fp/shared_plangrid-20-5fa1c41dcf6720de46-5f986c0f1bdfc46983/.venv/lib/python3.6/site-packages/paconn/apimanager/apimanager.py", line 115, in request
    response_content = json.loads(response.content)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

To Reproduce
Download any Connector using Paconn download and just try to update back using paconn update -s settings.json
Expected behavior
A clear and concise description of what you expected to happen.
Environment summary
Installed using pip install
On Linux
paconn --version
0.0.13
Python (Linux) 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0]
On Mac
0.0.13
Python (Darwin) 3.7.7 (default, Mar 21 2020, 14:41:45)
[Clang 9.0.0 (clang-9<IP_ADDRESS>)]
Additional context

I had a suspect that this happens due to a network latency. Then i created a VM in US Region and installed paconn and tried. To my surprise the same connector.json worked in just 20 seconds.
So, you need to check how to deal with the network latency due to geographical usage. I reside in India and i am decided not to use PACONN from my  terminal anymore.

I have exactly the same issue and I agree with you @nk-gears, it seems to be latency-based as I tried the same as you except with a proxy instead, and it worked fine within 20 seconds.

Hi,
I think I have some idea about the problem. I think the rest call is returning with an empty response due to latency most likely. The CLI is trying to parse the empty response and fails with JSON error. The resolution would be to not parse empty response and output to console saying that it encountered and empty response.
Since latency isn't an issue for me I can't reproduce. Would any of you be willing to help me test this fix? @maventis @nk-gears

@mmurshed I started using a VPN (TunnelBear) and then run the paconn update. Now  i no more have this error as the latency issue is resolved.
I can definitely test and send you the results related to the empty JSON fix. But that doesn't solves the actual problem which the users are facing on other side of the globe.
What i recommend is, when uploading the changes to the server via update, it will be great if you use some compression techniques while POSTing them to the PACONN server. This way we will have a huge benefit for users who have 400+ operations in a single swagger file.

@mmurshed Closing this as i am using VPN to paconn update to resolve latency.


Fixes/build services fixes

Prevents occasional build errors due to avalonia stats build task.

You can test this PR using the following package version. 11.0.999-cibuild0034921-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]


Allow usage of custom keystore and custom certificats with guacd/ssl

@ronansalmon As with your other pull request, this will need a Jira issue and to be tagged correctly.


Basic example throws an exception for ASP.NET 5 project

I've tried to run the very first example using version 4.2.0-beta in ASP.NET 5 (MVC 6.0) project and got the following error message:

Could not load type 'Microsoft.AspNet.Razor.Text.SourceLocation' from assembly 'Microsoft.AspNet.Razor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
at RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser(ParserBase incomingCodeParser)
.   .   .   .   .   .

Did you use the beta nuget packge?

Yes. The latest available one: 4.2.0-beta2

I have no Idea when I can look into this (And update RazorEngine), but I guess it has to do with the fact that you are using another version then the one RazorEngine has been compiled with...

And the version RazorEngine was compiled with is...?

4.0.0-beta1, see https://github.com/Antaris/RazorEngine/blob/master/src/nugetDependencies/razor4/packages.config

I've tried to compile RazorEngine with version 4.0.0-beta5 of Microsoft.AspNet.Razor but got the same error.
What I did:

Downloaded RazorEngine sources from master branch
Changed the version of reference Microsoft.AspNet.Razor package to "4.0.0-beta5"
Run build.cmd
Take RazorEngine.dll from src\source\RazorEngine.Core\obj\Razor4\Release\RazorEngine.dll  and referenced it in my project.
The project has compiled well but I still get the same error ("Could not load type...") when tried to run that simple example.

Changed the version of reference Microsoft.AspNet.Razor package to "4.0.0-beta5"

You would need to change the references in the *.csproj files as well (and just to be sure delete "-beta1" folder). I would suggest to just edit the HintPath by hand.
It shouldn't build with the latest version as we definitely use this class here and it has changed to another namespace.
If you happen to do these changes a pull request would be very welcome :+1:
Hope this helps


test: add initial tests

Mostly interested in

Getting some basic tests on paper
Making sure this works in more places than just my machine

Tests pass on my machine


Text composables: Android Basics with Compose

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-text-composables?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-text-composables#9
In which task and step of the codelab can this issue be found?
9.2
Describe the problem
Vertical Alignment not works
Steps to reproduce?

Run the example on emulator
Check that text is at Top

Versions
Android Studio Giraffe | 2022.3.1 Patch 2
Additional information

Adding fillMaxSize eto Column fixes the issue
Column(
        verticalArrangement = Arrangement.Center,
        modifier = modifier.fillMaxSize()
    )

Hi @bogoliy
Thank you for writing in and bringing this issue to our attention.
The lesson has been updated to address it and the revised lesson will be republished again in the near future.
Hope you are enjoying the course!
Regards.


'module' object has no attribute 'checkpw' when logging in.

Hello,
I'm having an issue logging into the PowerDNS-Admin panel. When using the correct credentials I get the error
'module' object has no attribute 'checkpw'
and cannot login at all.
I'm using the latest git commit version.
Thank you for your help.

Well I did a bit of debugging myself - it turns out I had an older version of bcrypt installed (pre 3.1.0) which didn't have the checkpw function included. This meant I had to upgrade this to the latest version.
However, bcrypt requires an older version of cffi (1.4.2) so I needed to manually install this (and overwrite the newer version I had installed) first.
I used the following commands to achieve this:
sudo pip install cffi==1.4.2
sudo pip install bcrypt==3.1.0
PowerDNS-Admin seems to be working normally again now!


Skip phantom when deriving codec once codec(skip) in parity-codec

in decl_module and decl_event
https://github.com/paritytech/parity-codec/pull/58

not sure you've seen it actually @bkchr

hmm interesting, we can't use #[derive(Encode, Decode)] for decl_module because we do derive it manually for empty enums. Which is forbidden in codec-derive https://github.com/paritytech/parity-codec/issues/51
implementing this derivation in codec-derive could be done, also #[compact] can be automatically expanded to #[codec(compact)]. But this is out of the scope of this issue.

though would be interested by @bkchr opinion on those opposed implementations


Add support for MinIO

I'm not sure if we can make https://min.io/ support drop-in because there are apparently incompatibilities with django-storages and minio, see https://github.com/jschneier/django-storages/issues/362 for more detail.

Here is an example of some JavaScript which uploads directly to MinIO in a production environment. This was adapted from isic-archive:
import S3 from 'aws-sdk/clients/s3';
// Fetch initUpload from Ajax
const s3Options = {
  apiVersion: '2006-03-01',
  accessKeyId: initUpload.accessKeyId,
  secretAccessKey: initUpload.secretAccessKey,
  sessionToken: initUpload.sessionToken,
};
if (process.env.NODE_ENV !== 'production') {
  Object.assign(s3Options, {
    endpoint: 'http://localhost:9000',
    s3ForcePathStyle: true,
    sessionToken: null,
  });
}
const s3 = new S3(s3Options);
await s3.upload({
  Bucket: initUpload.bucketName,
  Key: initUpload.objectKey,
  Body: this.zipFile,
});

Here is some server-side Python which configures Boto for use with MinIO in a development environment. This is adapted from isic-archive:
from boto3.session import Session

s3Kwargs = {}
if developmentMode:
    s3Kwargs = {
        'endpoint_url': 'http://minio:9000',
        'aws_access_key_id': 'accesskey',
        'aws_secret_access_key': 'secretkey'
    }
# In production mode (always deployed to EC2), AWS Instance Profiles provide the access key ID and secret

session = Session()
s3 = session.client('s3', **s3Kwargs)
sts = session.client('sts')

if developmentMode:
    def mockStsAssumeRole(*args, **kwargs):
        return {
            'Credentials':
                {
                    'AccessKeyId': 'accesskey',
                    'SecretAccessKey': 'secretkey',
                    'SessionToken': 'baz'
                }
        }
    sts.assume_role = mockStsAssumeRole

# Use `s3` and `stsassume_role` as usual....

Here's an example Docker Compose config for running MinIO in development (with credentials compatible with the previous server code). This is adapted from isic-archive](https://github.com/ImageMarkup/isic-archive/blob/a080224256b0371e3864317c29278ee32a6a99d6/docker-compose.yml#L74).
minio:
  image: minio/minio:latest
  restart: always
  entrypoint: sh
  command: -c 'mkdir -p /minio-data/test-upload-bucket && /usr/bin/minio server /minio-data'
  environment:
    MINIO_ACCESS_KEY: accesskey
    MINIO_SECRET_KEY: secretkey


Solr 9.0.171219 build fails to create TLS

The Solr build fails with the following error at step 7/25:
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure
channel.
At line:1 char:268
+ ... BUILD_ZIP); Invoke-WebRequest -Uri $url -OutFile 'ojdkbuild.zip'; Exp ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:Htt
   pWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
   ll.Commands.InvokeWebRequestCommand

The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; setx /M PATH ('{0}\bin;{1}' -f $env:JAVA_HOME, $env:PATH);     $url = ('https://github.com/ojdkbuild/ojdkbuild/releases/download/{0}/{1}' -f $env:JAVA_OJDKBUILD_VERSION, $env:JAVA_OJDKBUILD_ZIP);     Invoke-WebRequest -Uri $url -OutFile 'ojdkbuild.zip';
  Expand-Archive ojdkbuild.zip -DestinationPath C:\;     Move-Item -Path ('C:\{0}' -f ($env:JAVA_OJDKBUILD_ZIP -Replace '.zip$', '')) -Destination $env:JAVA_HOME;     Remove-Item ojdkbuild.zip -Force;' returned a non-zero code: 1

Running Docker for Windows version 18.03.0-ce-rc1-win54 (16164).

Hi, seems like a transient error, works from here. Can you reach https://github.com/ojdkbuild/ojdkbuild/releases/download/<IP_ADDRESS>-1/java-1.8.0-openjdk-<IP_ADDRESS>-1.b14.ojdkbuild.windows.x86_64.zip from your machine and from inside a container on the same host as where you tried?

TLS v1.2 was the issue: https://github.com/sitecoreops/sitecore-images/pull/2

Oh! makes sense due to the recent changes at github.com. Strange it didnt fail on my build server. Thanks for the pull request :)


Copy image on IPython not working

I made a plot in the IPython console and when I right click and select "Copy Image," I cannot then paste it into a Word doc.  I can work around it by saving the image and then placing it in the Word doc.
Code sample:
import matplotlib.pylab as plt
plt.plot([1,2,3,2])
System:
Windows 7
WinPython-64bit-<IP_ADDRESS>Qt5.exe
Spyder 3.0.0dev

We'll see what we can do about it

We'll see what we can do about it

I am using the latest winpython build (winpython-64bit-<IP_ADDRESS>Qt5_rc.exe on Oct 26th) and I can now copy and paste inline images.  I don't know if something back in IPython was fixed in the intermediate time...  In any case, it is working fine now.

I found that the error was fixed with Jupiter QtConsole 4.1 (https://github.com/jupyter/qtconsole/issues/48)


Fix component remove command and add a test for it.

Just the bare minimum test I'm afraid but it's getting late :sleepy:

Thanks @Diggsey


rng-tools: disable libjitterentropy due to cpu usage

Since updating to kirkstone from hardknott, after boot rngd maxes out my rpi4's processor for minutes initializing JITTER. The sustained CPU usage was triggering my resource monitoring alerts. Changing config to disable jitter with -x jitter stops the initialization process and uses just the pi's hardware rng source. Since that solved the problem I disabled building rng-tools with libjitterentropy enabled.
If this is a problem for other users devices I thought this simple change could be helpful.
- What I did
Disable libjitterentropy in rng-tools.
- How I did it
Set PACKAGECONFIG to override the default poky setting which is libjitterentropy.

Closing this PR as discussion is now on the oe-core mailing list.


use on insert/remove trigger to track changes.

So I've been poking at SQL:

[ ] first I added indexes to speed up queries. I don't know what I'm doing so @steff456 can you look at what I did and if it make sens or can be made better.
[ ] I don't know if we can make categorical columns to save us space / speed up queries, from what I can tell we can't in sqlite. If not that's ok.
[ ] Am I also correct that there is single type of index in sqlite ?

And finally: A long term project would be fast/efficient re-rendering of modified pages, for that I need a ways to track all rows that have been updated/created/removed since a specific time. For our purpose "time" is not wallclock time but a sort of "version" integer that is explicitly bumped.

[ ] Can we use trigger updates to have more tables that tracks which rows have been touched ? I'm thinking something like a 2 tables "documents_changes(Foreign key:int, version:int)" and "destinations_changes(Foreign key:int, version:int)" @steff456 is that something you could help me create ?

I see that you created the indexes, but I don't understand where are you using them. I don't find the queries in the code 😅

https://github.com/jupyter/papyri/blob/7c1bcdac9cdf22ac872afc81585d9004ca5c9654/papyri/graphstore.py#L244-L276
and
https://github.com/jupyter/papyri/blob/7c1bcdac9cdf22ac872afc81585d9004ca5c9654/papyri/graphstore.py#L290-L346
Yes I don't use upper case SELECT...

I'm not following this idea, which columns do you want to categorize?

https://github.com/jupyter/papyri/blob/7c1bcdac9cdf22ac872afc81585d9004ca5c9654/papyri/graphstore.py#L129-L137

    """
    CREATE TABLE documents(
    id INTEGER PRIMARY KEY,
    package TEXT NOT NULL,
    version TEXT NOT NULL,
    category TEXT NOT NULL,
    identifier TEXT NOT NULL, unique(package, version, category, identifier))
    """

the package, version, and tuple (package, version) only have a few values, and sometime we are querying only those two, so I don't know if we can make them smaller.

I'm not sure how are we going to deal with certain changes. I understand the idea, but I feel that it is really difficult to implement and maintain and the gain in performance will not be that much. So for instance if we have a clash in the information from one version to another, how are we going to handle the merge? Also storing all the differences will make the table just grow a lot over time, so maybe we will get performance issues if we want to search or go back to a previous version.

Ok, so I have to think about it, it would be fine to assume the tables or way to track if something is changed is regularly reseted. But as I said we can see that later.
Thanks !

Do you have a special package or way to test this that has a LOT of information to process? In that way I can do benchmarks to see if the index is actually helping us.

You can clone that https://github.com/Carreau/papyri-gen, and do papyri ingest <path/to/papyri-gen>/data/*, and the papyri render.
without index 46s/51s, with index 42s/52s, so it's indeed not helping a lot anymore. I've also profiled the relevant section and the SQL is only taking ~5% total time so it's not worth optimising for now. To be fair when I though about optimising it was doing a dozen queries per page, so that might have made a difference.


Menu should collapse on mobile device after selecting a page

On a mobile device, when I tap the hamburger button top expand the menu, then tap one of the menu entries, insipid opens the related page but does not automatically also collapse the menu. Which is irritating on a mobile device because the menu takes the whole screen width and thus hides the content. I need to tap the hamburger button again (so that the menu collapses) in order to get to my page.

Matthias pointed out that (1) the issue is only for pages with a single title and (2) even then I can tap a second time on the same title to make the menu collapse. That's indeed already a quite satisfying workaround.

Does #54 what you want?
It doesn't work on the main page if there are multiple links (like "Table of Contents" and the link in the logo), but on the other pages it should work as expected.

Yes, works perfectly for me! This is great!

OK, thanks for testing, I've just made a new release 0.2.7 which includes this change.


Add Spanish language

I have added a new language file (es-ES.json) to include Spanish in the list of available languages for using the tool.

We have had Spanish support for several months already - it looks like you forked the repo a long time ago and have been working against an old copy.


Update TS for Functional Programmers.md

As the comment suggests, snd should be just a more precise declaration of the preceding statement fst, isn't it ?

I agree /cc @sandersn just to triple check

We can!

"more precisely" implies you're not going to switch to a different function, the change + switching to fst sounds good.


[YUNIKORN-317] Cache removal and refactoring

Removes the cache from the scheduler and refactors the scheduler objects
into its own package under the scheduler.
Additional unit tests have been added for backward compatible behaviour
testing.
Documentation updates will be added as part of the website repo.
Decoupling the example from e2e test code. The example code has its own
version of the mock RM.

The failures that are logged are from existing issues. They are currently flagged as new ones because code has been moved from one file to another. Newly introduced lint issues have been fixed, some old ones have also been fixed as part of the refactor. They are spread out over a 4 commits from the unit test to the lint fix.
Currently the lint issues found are:

12 TODO (majority)
1 function length (existing test function)
2 functions unused (in changed code)
3 preemption related functions unused (existing unchanged code)
Based on that list I don't think we have a problem


Control Settings Management

At the moment, the script properly handles control constants. Nothing is done about control settings, however.
I'm not sure if this is something we really care much about or not. Once we get past the initial release it would be good to see if people actually want to view/touch control settings. If not, then the stubbed out code can be deleted.

Is it on purpose that the control constants page just has empty fields? I need to adjust some settings because my integrator is way out of whack at the moment. Problem is that I don't even know what the current values are.

Nope. Are you using an Uno or an ESP8266?

Uno

Thought so. I had a new Uno delivered yesterday to look at this exact issue, believe it or not. Should hopefully have a fix soon (right after I exploit its uninitialized eeprom to fix #245)

Super. I'll report back once I see some commits for this. Thanks!

@blottootto - The fix for control constants on Arduino-based devices is now live. Let me know if you have any further issues.

Works great. Thanks

I don't mean to hijack this issue so please let me know if I should open a new one. I experience the same empty control constants fields with my OEM BrewPi spark 3 (over WiFi).
For me, filling the fields with default/selected values is not very important as long as new values can be saved to the device. But if you could assist me with for example a screen shot or quick list that shows the default values I would very much appreciate that!

@NamelessCoder  - I've created a new issue #282 to track what you're looking for. The problem is that the control constants themselves changed dramatically between 0.2.x and 0.4.x/0.5.x controllers. You can't use the OldControlConstants model to manage modern controllers as most of the options no longer exist. There is already an (untested) NewControlConstants model in Fermentrack, but the code to use it doesn't exist yet.


Clean up old documentation

This content has been migrated to help.cleanlab.ai.

Thanks for doing this!


Fix build.sh typo in Python section

Fixed a copy paste typo in build.sh file in python section.

@mubaris This looks important, can you merge this?

Sorry, I didn't see this :+1: