Every hour previously justified issues become unjustified for two iam users

I noticed that every hour, all of the issues for two iam users in my account show back up under the "Aging Issues" dashboard.  When I click in on the items, all of the past justifications that I had added for the issues are gone.  I am able to add justifications again and then the issues will disappear off the "Aging Issues" dashboard until the next hour whereby my justifications will again be cleared out.   For some reason, this only seems to affect two iam users in my account, other resources seem to be fine.
This is using the code on the develop branch fetched 2-14.

Other IAM users with similar circumstances don't have this problem -- only these two?

Yeah, just these two users (other iam users are fine).  Both of these users only have two issues. One is "Found issue(s) in attached Managed Policy" and the other is "Informational: Active Key".  I justify each of these issues for both iam users and in the next hour when the scheduler runs, they lose these justifications.
I can't really tell what is special about these users.  They both use a managed policy (but not the same policy).  The policies that they relate to also have all their issues justified and are not losing their justifications (it appears just to affect the iam user). The policies also are not particularly complex, just mostly granting S3 access.
I have other iam users that are almost setup identically (use a similar managed policy) and are not affected by this bug, so it is definitely strange.

Hello @cswilliams Are you still experiencing this issue?

Hello,
I see the same issue but with multiple IAM roles.

In my case, I noticed that justified issues become unjustified only if an attached managed policy has an issues. I justified the issues in the attached managed policy but after running monkey audit_changes the issue in the role became unjustified again. I am wondering if the problem is in library_check_attached_managed_policies in security_monkey/auditors/iam/iam_policy.py:
https://github.com/Netflix/security_monkey/blob/b3ef821d0e9070569c4d70a7a6a234393de3750a/security_monkey/auditors/iam/iam_policy.py#L207
It check for issues in attached policy
for mp_item in mp_items or [] and not found:
                mp_arn = mp_item.config.get('arn', mp_item.config.get('Arn'))
                if mp_arn == item_mp_arn:
                    found = True
                    if mp_item.db_item.issues:
                        self.link_to_support_item_issues(iam_item, mp_item.db_item, None, "Found issue(s) in attached Managed Policy")

But it doesn't check if an issue in an attached policy are justified or not. Should it be something like the following?
diff --git a/security_monkey/auditors/iam/iam_policy.py b/security_monkey/auditors/iam/iam_policy.py
index 895cf2e..a8173fd 100644
--- a/security_monkey/auditors/iam/iam_policy.py
+++ b/security_monkey/auditors/iam/iam_policy.py
@@ -207,8 +207,11 @@ class IAMPolicyAuditor(Auditor):
             for mp_item in mp_items or [] and not found:
                 mp_arn = mp_item.config.get('arn', mp_item.config.get('Arn'))
                 if mp_arn == item_mp_arn:
-                    found = True
-                    if mp_item.db_item.issues:
+                    for issue in mp_item.db_item.issues:
+                        if issue.justified:
+                            found = True
+                            break
+                    if found:
                         self.link_to_support_item_issues(iam_item, mp_item.db_item, None, "Found issue(s) in attached Managed Policy")

             if not found:

The patch above seems to fix the problem I described although it generate many IAM Managed Policy defined but not found errors. I'll try to get rid of it and create a pull request.


Trailing text is not preserved

To Reproduce

Get sample project that demonstrates bug (2 files) from here: https://gist.github.com/IvanPizhenko/100c92f523a994fd425ff8f16420f12d
Run npm install
Run node index.js

Expected behavior
I expect trailing text Above is preserved, i.e. sanitized output should be:
Below
[image: image.png]
Above

Describe the bug
Trailing text Above is lost, i.e. I am getting:
Below
[image: image.png]

Details
Version of Node.js: v12.22.6
Server Operating System: Linux
Additional context:
I am trying to upgrade sanitize-html from version 1.21.1 to latest 2.5.2 (at the moment of submitting this issue) and getting the above described issue.  According to my research (I have tried multiple versions) bug has appeared in version 1.27.3.

Stumble upon the issue myself when upgraded to latest from 1.22.
It's a bug on transformTags on text property which replaces content. (fyi: @tomholub)

@alex-rantos Do you know how to fix this?

Not really I just narrowed down the repro steps a bit further and shared it here.
However, I will try to give it a go once I find some free time but I cannot promise anything - not familiar with transformTags flow.

It's a regression from this commit https://github.com/alex-rantos/sanitize-html/commit/b218a722a3706de54b1ddcca0377e131102ec8fd
@abea the following condition fails to append the trailing text as addedText = true in this case.
else if (!addedText) {
  result += escaped;
}

Works correctly in the version 2.6.1. Thank you for the fix!


Include sidebar list links style pattern

Current behavior

The orange related reports links in the sidebar of https://www.consumerfinance.gov/data-research/research-reports/no-fear-act-annual-report-fiscal-year-2015/ are a modified m-list__links that is a pattern not reflected in capital framework.

Expected behavior

Orange, bulleted link list pattern should be included in cf-typography.

This is a somewhat bigger issue. It falls under the discussion of what to do with tags, broadly speaking. The latest discussions about that can be found here: https://GHE/CFPB/hubcap/issues/90#issuecomment-186734
These are considered topic tags (see the final section of that comment).
In any case, this work should probably wait until the Design System rolls out.


Use different default port

Port 6666 is considered a "bad port" by a number of libraries, including the undici implementation in Node.js.

Fetch standard bad ports
Undici bad port list
Chrome blocked ports

When trying to use the .get() api with Weaviate embedded in Node on MacOS, I get a Fetch Failed: Bad Port error - which means the fetch request is blocked before it is even attempted. I've semi-worked around this by using Axios and constructing GraphQL queries manually, but I'd prefer to use the Weaviate JS library.
I've also tried specifying the port number when setting up Weaviate Embedded; for some reason that has not helped. I haven't debugged all the way through that - if there ends up being a bug there I can create a separate issue. This issue is just focused on the suggestion to use a different default port than one that is blocked in multiple libraries.

FYI, in case helpful. Here's my config:
weaviatePort = 7001;
  console.log(`Using port ${weaviatePort} for Weaviate`);
  weaviateHost = `<IP_ADDRESS>:${weaviatePort}`;
  console.log(weaviateHost)

  client = new WeaviateClient(
    new EmbeddedOptions({
      env: {
        ENABLE_MODULES: "text2vec-openai",
        DEFAULT_VECTORIZER_MODULE: "text2vec-openai",
        OPENAI_APIKEY: process.env.OPENAI_APIKEY,
      },
      persistence_data_path: DATA_PATH,
      port: weaviatePort
    },
    {
      scheme: 'http',
      host: weaviateHost
    })
  );

And some code that fails:
const client = await weaviate.getClient();
    const response = await client.graphql.get()
      .withClassName('Message').withFields('messageId')
      .do();

Facing this same issue, I don't think there's any update on this issue.
@mpdaugherty could you share the workaround queries to make this work, Thanks~!

@KrishnaManohar1997 I ended up monkey patching fetch:
// This monkey patch is for weaviate. Embedded weaviate's client always uses port 6666, which
// is blocked by Node's default fetch implementation, undici.
const nodeFetch = require('node-fetch');
global.fetch = nodeFetch;


[ENH, WIP] Adding CMI test

Towards: #5
Changes proposed in this pull request:

CMI based CI test

Before submitting

[ ] I've read and followed all steps in the Making a pull request
section of the CONTRIBUTING docs.
[ ] I've updated or added any relevant docstrings following the syntax described in the
Writing docstrings section of the CONTRIBUTING docs.
[ ] If this PR fixes a bug, I've added a test that will fail without my fix.
[ ] If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.
[ ] I have added a changelog entry succintly describing the change in this PR in the whats_new relevant version document.

After submitting

[ ] All GitHub Actions jobs for my pull request have passed.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@138539c). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #12   +/-   ##
=======================================
  Coverage        ?   22.08%
=======================================
  Files           ?        6
  Lines           ?      240
  Branches        ?       31
=======================================
  Hits            ?       53
  Misses          ?      186
  Partials        ?        1

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[OKD 4.12] Installation failed on User Provisioned Baremetal

Bootstrap machine failed to get created on baremetal node. Upon reviewing the logs of the Kube controller manager, it was trying to load configuration data but couldn't!
Describe the bug

Based on the Kube controller manager logs, it appears that the configmap object couldn't be loaded.
The configmap object had already been created when I reviewed it.
3.The Kube controller manager couldn't load it, so an error was thrown
dial tcp "[::1]:6443: connect: connection refused
Additionally, I reviewed the Kube schedule and found the same logs.

Log bundle
log-bundle-20230205171101.tar.gz
If you need any further information, please let me know.
Using dig utility, I have also verified the DNS rDNS works perfectly.

From the bootkube.log:
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Check if API and API-Int URLs are resolvable during bootstrap
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Checking validity of api.test.voereir.io of type API_URL
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Starting stage check-api-url
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Unable to resolve API_URL api.test.voereir.io
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Checking validity of api-int.test.voereir.io of type API_INT_URL
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Starting stage check-api-int-url
Feb 05 09:54:24 bootstrap.test.voereir.io bootkube.sh[2969]: Unable to resolve API_INT_URL api-int.test.voereir.io

Are you sure all DNS requirements are met? You can find more on DNS entries for a user-provisioned installation on this page in the OKD docs.

@melledouwsma Yes, I set it up properly, I looked through these logs and tried the manual nslookup and it was resolved. I don't know why this is happening!
However, I found another release of 4.12  ([4.12.0-0.okd-2023-02-04-212953]) and tried with this and it worked fine!
Thank you for the follow-up! we can close this bug!


Update doc.ddoc

Promoted Ali's book and the wiki to top level of the sidebar menu as discussed in the forum.
Removed "Change Log" from top level, as that is already available under "Downloads" and  there is no obvious reason to leave it at top level. (Also discussed at the link above.)

Note: This is my first real pull request here so let me know of any problems.

Looks like Andrei already pseudo-signed off on this change, and the code looks good so LGTM.

Looks like Andrei already pseudo-signed off on this change, and the code looks good so LGTM.

He did on the first. The second was suggested by someone else and I thought it made sense.

thanks!


feat: add new template for Bot to response base on Ces Wiki

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/Code-Engine-Studio/ces-semantic-release/blob/main/README.md
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #CU-86cu176fk
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Please sync with master branch.


KAFKA-12205: Delete snapshots less than the snapshot at the log start

More detailed description of your change
3 times to delete a snapshot:

When a follower completing fetch snapshot and truncate the log to the latest snapshot
When a controller pollCurrentState and delete old segment
When restarting the RaftClient.

Summary of testing strategy (including rationale)
Unit test
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@jsancio @hachikuji , Hello, this pr is ready for review.

ping @hachikuji .
retest this, please.

Rebase onto trunk, ping @hachikuji .


Readme updates

Description
Readme updates and where appropriate, associated minor code updates.

@sclaridge please could you take a look? thanks!


Can you give following information:

Environment information:

Maestro version
Device model and OS version: [e.g. Pixel 2 API level 30]
Simulator, emulator or physical device
Host [e.g. Mac M1, Windows, Linux, etc]

Since this is IOException seems like your emulator/device was not reachable can you check with adb devices command.

@amanjeetsingh150
Version

Device
Physical Device, Redmi A1 (Android 12 Go edition)
Host

I've also tried with a Pixel 4a - Android 11. Same result

Hey @theapache64, Can you help me send output of this command:
adb shell pm list packages --user 0 dev.mobile.maestro.test

@amanjeetsingh150
It returns nothing

Video
https://github.com/mobile-dev-inc/maestro/assets/9678279/6e0b5d33-7f0a-47bd-b8b5-aa7bddcf9ff1

@amanjeetsingh150 Any updates on this? :)

Hey, @theapache64 we will pick this up soon and keep you updated here. Meanwhile can you try some other android version or testing in emulator to see if it works

Real devices aren't fully supported by Maestro yet.


When the deadline start to make effect?

Recently, I really care about when the deadline start to count down. I know that if server doesn't return results before deadline, i.e., t_res is greater than D, the request is invalid, but I don't know whether t_res includes the duration that the args are marshaled and the request is waiting for being sent at the client. Does the deadline start to count down after the request is sent out?
I know that in grpc, the time taken for buffering in HTTP/2, TCP and the network is all part of deadline count down, but I think what deadline includes might be different in other RPC framworks. So I hope anyone can tell me when deadline starts to count down in brpc. Thanks!

The deadline timer in brpc starts when the user calls Channel::CallMethod() which includes request marshaling, buffering, sending (nearly all steps of a RPC). If the packet containing the response(which may not be parsed yet) comes back before the deadline, the timer is removed. Otherwise the RPC ends with ERPCTIMEDOUT error.


CORE: perform post-condition in algorithm_do_this() under all circumstances

When ossl_provider_query_operation() returned NULL, the post-condition
callback wasn't called, and could make algorithm_do_this() falsely
tell the caller that there was an error.  Because of this, a provider
that answered with NULL for a particular operation identity would
effectively block the same query on all following providers.
Fixes #12293

This pull request is ready to merge

Merged
dd76b90ef6cf9bd344c9a6cd0de536a734d1b6a3 CORE: perform post-condition in algorithm_do_this() under all circumstances


Unit testing for rules

Issue: https://github.com/prometheus/prometheus/issues/1695
Design Doc: Prometheus - Unit testing for Rules
Usage: ./promtool test rules test1.yml test2.yml test3.yml ...
Example for valid test file: Prometheus - Unit Testing for Rules - Example test files

@gouthamve All the reviews fixed. Learn few stuff about Golang :)

@brian-brazil PTAL when you get free. Also, where would the docs for this go in?

I won't get to look until next week. A new sibling page to Recording/Alerting rules is probably the right place.

Thanks!


Allow option to specify just 1 of user and pass in OpenVPN .up file

As per comment in https://redmine.pfsense.org/issues/3633 sometimes the server end only requires a password, no username. Usually 1 long string that serves as the hard-to-guess authentication. OpenVPN expects something to be on the first line of the ".up" file - traditionally called the username. It also insists on the second line being present, but is happy with it being empty - this is the authentication information traditionally called "password".
Let the user put the single piece of authentication information in either the Username or Password field on the web GUI - whichever they feel comfortable calling it. In the ".up" file it has to always be the first line to keep OpenVPN happy.

I guess this "feature" is being left for 2.2.1?

IMHO this should be good to go now for 2.2.1

Can we get this into 2.2.2?

@phil-davis looks like original fork/branch is gone, can you please re-submit?

Closed in favor of #1701


Scripting support

Adding support for device side scripting (Python 3.9)

Squash merged to develop manually


adding fio nodeselector and tolerations with docs

Changes:

Fio workloads will be able to add generic node selectors as well as generic tolerations
The pin_server arg will still be around, but is not compatible with the nodeselector arg. You can only use one or the other as pin_server is simply a pre-defined nodeselector (on the kubernetes.io/hostname label)

@whitleykeith I wonder if we should get rid of pin_server as we can achieve the same results with the your nodeSelector implementation.
@bengland2 @acalhounRH what do you think?

/rerun all

Results for ec2_jjb

Test
Result
Retries
Duration (HH:MM:SS)

test_fiod
Pass
0
00:18:10

Results for ec2_jjb

Test
Result
Retries
Duration (HH:MM:SS)

test_fiod
Pass
0
00:18:57

Hey @whitleykeith, mind you remove references to pin_server from the docs?

Hey @whitleykeith, mind you remove references to pin_server from the docs?

done

Results for ec2_jjb

Test
Result
Retries
Duration (HH:MM:SS)

test_fiod
Pass
0
00:18:59


New package: Scotch v1.0.0

Registering package: Scotch
Repository: https://github.com/Keluaa/Scotch.jl
Created by: @Keluaa
Version: v1.0.0
Commit: 4b7a87577083a02d9abe61f1d21f65690fe5eb55
Reviewed by: @Keluaa
Reference: https://github.com/Keluaa/Scotch.jl/issues/7
Description: Julia wrapper for the SCOTCH library

This package is a wrapper around a C library named SCOTCH. It would make sense to name the wrapper Scotch.jl, or SCOTCH.jl.


feat: iOS Picture in Picture support

PIP with texture API is only available since iOS 15+ so this is a must.
To enable PIP app needs to have audio background mode enabled in Info.plist:
	<key>UIBackgroundModes</key>
	<array>
		<string>audio</string>
	</array>

and that's pretty much it. New APIs:
controller.isPictureInPictureAvailable() -> only returns true on iOS15+ platform
controller.enablePictureInPicture()
controller.disablePictureInPicture()
controller.enableAutoPictureInPicture() -> when app goes into background, currently playing video will automatically go into PiP
controller.disableAutoPictureInPicture()
controller.enterPictureInPicture() -> requires PiP to be enabled first (or auto PIP)

I just tested it, awesome!
However, I have encountered some bugs:

sometimes the PIP displays a black screen, especially when I switch to network videos, but I have trouble reproducing
using software rendering when the app is unfocused causes colorimetry problems with HDR videos, but this problem also exists with non-PIP software rendering. @23doors are you sure there is no way to keep hardware rendering when the app is unfocused?

Finally, there is still some work to do before we can merge:

@alexmercerind needs to confirm that he's ok with adding this kind of API to the VideoController, maybe review the syntax
certainly review the VideoOutput.swift code, probably by moving it to a dedicated file…

Regarding 1. Does it fix itself or stays black? I can try to fix it if it is reproducable but as you know, I have near zero experience with MacOS/iOS and swift in general.
Regarding 2. Yes sadly this seems to be the case. Any kind of opengl calls when app is in background cause a bunch of warnings about app not having access to GPU. This is also consistent with what I found in docs about iOS background mode.
https://developer.apple.com/documentation/metal/gpu_devices_and_work_submission/preparing_your_metal_app_to_run_in_the_background

iOS and tvOS restrict a background app’s access to the GPU, to guarantee foreground app performance.

Regarding review.
Feel free to suggest whatever you feel is necessary. This is pretty much first time I touched swift. Separated VideoOutputPIP.swift for now

So, after 2 weeks of considerations, I'm not OK to merge this PR until a solution is found for HEVC videos rendering in PIP:

by finding a way to enable the GPU when the app is in background
or by fixing colors in software rendering

If we merge with this "bug", people will think this feature is ready, and will lead to countless issues about it…
@23doors sorry, that doesn't stop you from keeping your branch up to date, until we find a solution, or someone help us…
@alexmercerind I set this PR as draft with the help-wanted label if you agree.

Hi! I apologize for the delay.
I'm still thinking over the code style. Ideally, we'd land this after the first-stable 1.0.0 release, once it's well-tested & (hopefully) implemented for other platforms too.

Excuse me, everyone. Is this still going on

I really need this functionality, is there anything new?

yes, really need it

I really need this functionality, is there anything new?

@alexmercerind any update about this?


reject:file is too big

when the allure log file size is 395M，it occurs a problem，as below：

how to solve this problem？thanks

Please see

File to large to upload #52
Request entity too large Error #42
Configurable upload size #16

There are two parameters in the Spring settings:
spring:
servlet:
multipart.max-file-size: 100MB
multipart.max-request-size: 100MB
It can be specified via environment variables when you start the container:
spring_servlet_multipart_maxRequestSize=1000MB
spring_servlet_multipart_maxFileSize=1000MB
Try this ...
In Kubernetes you still need to enable the setting for nginx ingress :
annotations:
kubernetes.io/ingress.class: nginx
## deprecated
nginx.ingress.kubernetes.io/proxy-body-size: "100m"
## deprecated
nginx.ingress.kubernetes.io/client-max-body-size: "100m"
## new https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/
nginx.org/client-max-body-size: "100m"


Finetune using Keras

I have got the Keras' VGG 16 model from https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3. For fine tuning in caffe, we change the final layer's output to desired the number of classes and relearn the weights of the final layer.
How do I do the same in Keras?
For e.g: Instead of 1000 classes, I want now 47 classes.

imo if it's a sequential model the layers and params are just in a list. Simply pop() the last activation function and layer and sets of params, add the new one on top and recompile. Worked for me.

@lemuriandezapada how do you pop the layer?

You need to figure out what to pop, weights, activations and coresponding sets of params. But your model will have a model.layers and a model.params member. Then you can just model.layers.pop() and model.params.pop() a couple of times to remove your last entries. Add the new ones, recompile and you're set.

You can also just make a new model with the same structure up to the last layer, and set the same layers weights from your other model with the set_weights(), get_weights() functions.

Following this [link] (https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3) and your advice, I did the following while keeping everything else the same
...
model.add(Dense(4096, 1000, activation='softmax'))
if weights_path:
    model.load_weights(weights_path)

model.layers.pop()
model.params.pop()
model.add(Dense(4096, 47, activation='softmax'))
return model

I get the following error:
theano.gradient.DisconnectedInputError: grad method was asked to compute the gradient with respect to a variable that is not part of the computational graph of the cost, or is used only by a non-differentiable operator: <CudaNdarrayType(float32, matrix)>

What am I doing wrong?

if you list model.layers you'll see the last ones are one Dense and one Activation. Also the params has one matrix and one vector.
So 2 pops for each. Also I think the api changed and now you only pass layers the output size and they infer the input size by themselves.

If i'm not wrong it is not good to relearn the whole network, you should figure out a way to fix all the layers but the last one. Otherwise you will propagate the error due the random initialisation of the network to the other layers. There was a pull request for a flag to freeze the layers some days ago otherwise you need to remove the params from all the layers but the last one, something like that:
for i in range(len(model.param)-1):
        model.layers[i].params = []

My implementation is ugly and probably it doesn't work out of the box, i never tried it directly but i think you got the point.

If you actually want to be thorough you will can just set the weight matrix for the output to oldmatrix[:,item1,item2,item3....item47] so you keep the weights for the classes you already learned. Or make one with 48 outputs and the 48th averages all the other classes you no longer care about.
Of course bdonadiman is right, this would relearn the entire network.
Instead you can also just pop the last layers, recompile, compute the output of the next to last layer (or alternately make a theano function that just extracts it) and use that one as input to your new 0hiddenlayer classifier.

If i'm not wrong it is not good to relearn the whole network, you should figure out a way to fix all the layers but the last one.

Depends. If you have enough data, you'll generally get better results by retraining the entire network, with a very low learning rate. You want to move to the state of the parameter space (all network weights) that's optimal for your new dataset, under the assumption that you are already pretty close to that state, and therefore that you should be moving very slowly, at a small spatial scale.

@fchollet Can I use keras to set the learning rates of the last layer to higher than for other layers ?

Hi , I need to do what you are describing but I am not sure how.  I am using the VGG-16 pretrained net for KERAS
I would like to go from outputting 1000 labels to 15, but would like to use the pretrained weights of the given model.  What would be the best solution to do so? I am a beginner, so the more details the better :)
Essentially, I have this :
...
model.add(Dropout(0.5))
model.add(Dense(1000, activation='softmax'))

model.load_weights('vgg16_weights.h5')

but need to figure out how to change the last layer from output 1000, to 15.  Obviously, just replacing 1000 by 15 it will generate an error
Thanks,
J

@jerpint
load the entire model with weights, pop last 2 layers, add dropout + Dense(15) and compile.

@jerpint @grahamannett
In my case, I modify function load_weights in engine/topology.py to prevent error when trying to load weights into non-exist layers (your last layer) with try and except. Then you can directly modify network as
model.add(Dense(4096, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(15, activation='softmax'))
model.load_weights('vgg16_weights.h5')

Advantage is that you don't need to waste memory loading weights and remove them.

@joelthchao hmm are you referring to this? https://github.com/fchollet/keras/blob/master/keras/engine/topology.py#L2280
seem's like you will still be loading the weights but it's probably a more elegant solution.

@grahamannett Yes,
for k in range(nb_layers):
    try:
        g = f['layer_{}'.format(k)]
        weights = [g['param_{}'.format(p)] for p in range(g.attrs['nb_params'])]
        flattened_layers[k].set_weights(weights)
    except:
        print('Skip loading weight for layer_{}, ({})'.format(k, g))

Well, you're right. The weights from .h5 will be loaded into memory, but at least we save insert and pop operations.

@joelthchao , loading the weights is not a problem.  I have got the model running, what I am not sure now is how to fix weights.  I feel like if I run my code as it is now, it will just update the entire system and lose the pre trained network values.  Also, will fixing the weights decrease my run time?
Here is my code :
# input: 224x224 images with 3 channels -> (3, 224, 224) tensors.
# this applies 32 convolution filters of size 3x3 each.
model = Sequential()
model.add(ZeroPadding2D((1,1),input_shape=(3,224,224)))
model.add(Convolution2D(64, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(64, 3, 3, activation='relu'))
model.add(MaxPooling2D((2,2), strides=(2,2)))

model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(128, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(128, 3, 3, activation='relu'))
model.add(MaxPooling2D((2,2), strides=(2,2)))

model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(256, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(256, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(256, 3, 3, activation='relu'))
model.add(MaxPooling2D((2,2), strides=(2,2)))

model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(512, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(512, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(512, 3, 3, activation='relu'))
model.add(MaxPooling2D((2,2), strides=(2,2)))

model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(512, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(512, 3, 3, activation='relu'))
model.add(ZeroPadding2D((1,1)))
model.add(Convolution2D(512, 3, 3, activation='relu'))
model.add(MaxPooling2D((2,2), strides=(2,2)))

model.add(Flatten())
model.add(Dense(4096, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(4096, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(1000, activation='softmax'))

# load the weights
model.load_weights('vgg16_weights.h5')

# pop last layer, insert my own
model.layers.pop()
model.add(Dropout(0.5))
model.add(Dense(len(Y_train[1])))
model.add(Activation('softmax'))

sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
model.compile(loss='categorical_crossentropy', optimizer=sgd)
model.fit(X_train, Y_train, batch_size=32, nb_epoch=1
          ,show_accuracy=True)

When running this, my loss is decreasing with time quite heavily.  Granted, it is only for 1 epoch, but I would think it should converge rather quickly? I have 1500 training images over 15 labels (100 images per category)

@jerpint If you want to freeze weights of the model, you may need to check this issue #622. In my opinion, I think the phenomenon that loss decreasing heavily is quite normal, since your new Dense layer should be random initiated. In addition, 1500 is a relative small number for VGG16, you should do cross validation to prevent overfit.

I think when I had previously tried to use fine tuning, I did something like
for l in model.layers:
    l.trainable = False

and then added other layers.  fwiw, i don't think it results in very good results from my small experiments I did

As I understand, to change last layer, after uploading weight you can just pop it and replace by layer that you want. But let's say I want to change input layer? How may I do it?
For example if I would want smaller size images for faster prototyping?

This is something I struggled as well. After looking at keras code I used:
from keras.applications.vgg19 import VGG19
base_model = VGG19(include_top=False, weights='imagenet', input_tensor=Input((128,128,3)))
for layer in base_model.layers:
    layer.trainable = False
x = base_model.output
x = Flatten(name='flatten')(x)
x = Dense(16, activation='relu', name='fc1')(x)
x = Dense(1, activation='softmax', name='predictions')(x)

to get a vgg19 CNN layer with ready Convolution weights but with custom input and output layer to train

@kretes code worked for me however, to use this as a model one must then do the following:
model = Model(input=base_model.input, output=x)


RN-239 show error messages for join/delete channel and create dms

Ticket Link
https://mattermost.atlassian.net/browse/RN-239
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Includes text changes and localization file updates

Device Information
This PR was tested on:

IOS 10.3.1 iPhone 6s
Android 6.0.1 Samsung J5

@hmhealey ready for re-review


initial notifyicon implementation

I managed to figure out how to trigger the notifyicon API. TODO: dismiss popup when clicking away


clickhouse-jdbc driver did not support connection url parameters

Describe the bug
Clickhouse JDBC connection URL with parameters would be always uses default database, like this:
# the default database is NOT `my_db`, but the `default` db.
url: jdbc:clickhouse://<IP_ADDRESS>:8123/my_db?custom_http_params=async_insert=1,wait_for_async_insert=1

If cut the url parameter, that's OK, like this:
# the default database is `my_db`
url: jdbc:clickhouse://<IP_ADDRESS>:8123/my_db

I had test many version of clickhouse JDBC driver, 0.4.6, 0.5.0, 0.6.0 etc.
ClickHouse Server version: 24.1

Good day, @ldcsaa! Thank you for reporting the issue!
Am I correct that there are two problems:

when query parameters are set then wrong database is selected
you would like to pass some parameters thru JDBC url

for the last one - have you tried to url encode this part - async_insert=1,wait_for_async_insert=1 ?

Good day, @ldcsaa! Thank you for reporting the issue! Am I correct that there are two problems:

when query parameters are set then wrong database is selected
you would like to pass some parameters thru JDBC url

for the last one - have you tried to url encode this part - async_insert=1,wait_for_async_insert=1 ?

I did not tried to encode URL, just refer to this guide:
Asynchronous Inserts

Triage Report

Bug and should work as documented.

There is a version that solves this problem ?

Good day, @ldcsaa!
I've found the bug that causes the problem - , is used as delimiter for endpoints definitions (http://host1,host2,host3/my_db). This will be fixed in 0.7.0.
However, custom_settings should be used instead custom_http_params (should not be used because depends on protocol and actually is not working as expected.)


fix typo

@dontlaugh  - I fixed a merge error and now it's failing the build check. Any thoughts?

Maybe the build agent died. Try a rebuild, otherwise i'll check this evening.


Rank For Time

Is there is command that will give a player rank for 1 day (for example).

read the wiki

From: danik159<EMAIL_ADDRESS>Sent: Tuesday, August 13, 2019 7:38:15 AM
To: PEXPlugins/PermissionsEx<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [PEXPlugins/PermissionsEx] Rank For Time (#3024)
Is there is command that will give a player rank for 1 day (for example).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/PEXPlugins/PermissionsEx/issues/3024?email_source=notifications&email_token=AAEZSZC6UBRXUIWV73TPOATQELBNPA5CNFSM4ILLQBD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HE7GFQQ, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAEZSZCSED6ALKZXJUYMNMTQELBNPANCNFSM4ILLQBDQ.


wildcard path don't processed when you go to specific path

If i want to make some middleware that always check something (lets say auth) before any other route if i go to specific route - this general middleware is never called:
uWSApp.any(
		'/api/*',
		async (res, req): Promise<void | uWS.HttpResponse> => {
			const jwt = req.getHeader('authorization');

			console.log('api any check auth');

			try {
				await JWT.verifyToken<{ uid: string }>(jwt);
			} catch (ex) {
				logger.logError(`rest connection failed with token:`);
				return res.writeStatus('403').end('unauthorized');
			}

			req.setYield(true);
		}
	)
	.get('/api/users', res => {
		res.end('secure users');
	});

if i curl to wildcard path lets say /api/stam - then the any(/api/*) will executed and will check if this user is authorized
but if i go to a specific route like in the code above  get /api/users then the any will not occure.
is this intentional ? how can i make lets say function middleware like that check for auth (or whatever) ?

This other guy had the same question couple days ago, did you see this https://github.com/uNetworking/uWebSockets.js/issues/464 how to do middleware. I am using this method for all my routes

This behavior is very much intentional and the user manual covers this questionnaire

@alexhultman so I think its very unclear api - what is setYield for in that case ?
Can u send me also a link to the user manual ?
Thanks

@Adidi the manual is the first link on the ReadMe page. Did you review the issue I linked above to answer your question

There are plenty of discussions regarding middleware already. Look in Discussions


Slow performance of ExpressionStatementsMergeTransformer

Slow performance of ExpressionStatementsMergeTransformer .
The problem is many calls to NodeUtils.parentizeAst method for each expression

https://github.com/javascript-obfuscator/javascript-obfuscator/pull/776


AspnetCore 3.1 API giving UnsupportedApiVersion unexpectedly

I have set up what I think is a nice structure for creating multiple versions of an API. I have decided to support versioning strictly via URI sigment (ie: /api/v1/records). I am also generating swagger docs for the API versions. The doc generation seems to be working fine but for some reason I am only able to reach my v1 endpoints. When I try to hit those everything works fine, but when I try to hit a v2 endpoint I am getting:
"Error": {
    "Code": "UnsupportedApiVersion",
    "Message": "The HTTP resource that matches the request URI 'https://localhost:5001/api/v2/records' is not supported.",
    "InnerError": null
}

I have created a simple reproduction of the problem in this repo. If you navigate to the /swagger page and try v1 or v2 you will see that v1 works but v2 does not. Is this a bug or am I missing something?

I believe this question has been adequately answered and has reached its conclusion. Feel free to comment or reopen the issue if it's unresolved. Thanks


Conflict with Physics Mod Pro ocean physics

Ocean physics causes the player model and camera to move up and down, to work with the waves, which causes two conflicts because the camera will not move with the player model when this happens.
Issue 1: Player moving with waves while the camera doesn't
Issue 2: Because the camera isn't moving, it follows the vanilla water plane.
Physics Mod Pro is now free, which means you can download it from here

Physics is a closed source mod, so it's a bit troublesome to fix.
Anyway, I will try to fix it.


Taggging work feature

addressing to #3 new feature of tagging ones project and publication is added and option to minify the publication abstract is added.

new Tag model is added
the templates of projects and publication are updated to accommodate tagging feature.
could minify the publication abstract.

Hey! Thanks for the pull request 👍
I'll look more into it later.
Did you by any chance test it?

@AmmsA Tested the working of the features manually but didn't write any test case


Unknown exceptions handled by the ResourceController are not translated into Error Responses

Unknown exceptions handled by the ResourceController are not translated into Error Responses.

Hey @lgebhardt can you share a bit more info, there's not quite enough to be actionable.
(So many open issues on this project, just trying to get them a little more under control)


Remove Nth Node From End of List

Link: https://leetcode.com/problems/remove-nth-node-from-end-of-list/
Difficulty: Medium

Mention language

I ll do this for cpp or Python

hey, I will do this in java please assign

@lopeselio C++ @Aarushi11H Python

Yes surely @adityabisoi  C++

Hey, I had not noticed, the problem is from Leetcode. Currently the project aims to solve all problems from Hackerrank only. Closing the issue.

No problem. I will contribute to the problems from Hackerrank.


Loading unmanaged_hosts from data bag conditional is incorrect

https://github.com/schubergphilis/nagios/blob/master/recipes/_load_databag_config.rb#L146
I think it should be
next if item['environment'].nil? || item['environment'] != node.chef_environment
instead of
next unless item['environment'].nil? || item['environment'] == node.chef_environment
If that sounds good, I can create a pr and write a test case.

plus we might want to consider when multi_environment_monitoring is enabled

Noted the multi_environement issue here already https://github.com/schubergphilis/nagios/issues/427
Forgot I already opened an issue for that

You are right, this checking is indeed a bit strange and don't know what I was drinking when writing this ;)
If you create the PR, I will be more than happy to merge it for you...

Looks like you're already on it! Thanks for maintaining and being so active!
I blame Ruby's unless haha. I always have to double check

I have merged my PR because I didn't get any comment on it :)


Add support for the PATCH method

Right now the LXD API only supports GET, POST, PUT and DELETE. It would be very beneficial to support PATCH for all endpoints which support PUT today.

Someone willing to work on this should look at all existing Put actions in the API and for each of them define a new matching Patch action which when called will cause LXD to get the current state of the resource (similar to a GET), apply the changes sent by the client and then call the same code as a Put.


Monitoring users with formatted masks

Some users on Rizon have formatted masks from things like holiday events and such, and that is causing an issue with removing that user from the ircv3 monitoring. They can have things like bold and underline, and I believe other things.
PART ('#wednesday',) {}
NOTICE ('wednesday', 'Parting #wednesday.') {}
Failed to execute on_raw_part handler.
Traceback (most recent call last):
  File "/usr/home/wednesday/.local/lib/python3.7/site-packages/pydle/client.py", line 430, in on_raw
    await handler(message)
  File "/usr/home/wednesday/.local/lib/python3.7/site-packages/pydle/features/rfc1459/client.py", line 689, in on_raw_part
    self._destroy_channel(channel)
  File "/usr/home/wednesday/.local/lib/python3.7/site-packages/pydle/client.py", line 196, in _destroy_channel
    self._destroy_user(user, channel)
  File "/usr/home/wednesday/.local/lib/python3.7/site-packages/pydle/features/ircv3/monitor.py", line 34, in _destroy_user
    del self.users[nickname]
  File "/usr/home/wednesday/.local/lib/python3.7/site-packages/pydle/features/rfc1459/parsing.py", line 168, in __delitem__
    del self.storage[normalize(key, case_mapping=self.case_mapping)]
KeyError: '\x030winter.solstice\x03.\x02'

The user with said mask is greenbagels over on Rizon in #wednesday if you needed to see.

Please note that these hostmasks are strictly invalid under the RFC and IRCv3 specifications. Therefore, Pydle cannot offer proper support for them.
to cite from RFC 952 which defines host names,
1. A "name" (Net, Host, Gateway, or Domain name) is a text string up
   to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
   sign (-), and period (.).

Under this definition, hostmasks that contain non-alpha numeric characters (excluding - and .) are invalid.
Further, under RFC 1178 (page 4) hostmasks
      Don't use non-alphanumeric characters in a name.

         Your own computer may handle punctuation or control characters
         in a name, but most others do not.  If you ever expect to
         connect your computer to a heterogeneous network, you can count
         on a variety of interpretations of non-alphanumeric characters
         in names.  Network conventions on this are surprisingly

That being said, RFC 1459 (the IRC specification) leaves a note regarding IRC message handling that helps contribute to the fix:
    1) <SPACE> is consists only of SPACE character(s) (0x20).
     Specially notice that TABULATION, and all other control
     characters are considered NON-WHITE-SPACE.

As Pydle is erroneously splitting on these control characters, that bug will be fixed by #114 , which also appears to resolve the reported bug here.
Bottom line
Rizon's non-standard behavior is not officially supported by this library, as this Library strictly abides by the standards that be.
This issue can be resolved in a fashion that abides by the standards cited above, and the fix is applied in #114 .
Please apply #114 to your downstream Tagiabot and let me know if it resolves your issue.

On a unrelated note, for future reference PLEASE warn people that the channel they can observe an issue on is NSFW, or at the very least likely contain offensive material. 😒

I can confirm that this fixes the issue.


ocamlPackages.tcpip: 8.0.0 -> 8.0.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/mirage/mirage-tcpip/releases.
meta.description for ocamlPackages.tcpip is: OCaml TCP/IP networking stack, used in MirageOS
meta.homepage for ocamlPackages.tcpip is: https://github.com/mirage/mirage-tcpip
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.0.1 with grep in /nix/store/vn63znw8s82n5hyw7vya4rmbsdi5pqns-ocaml5.1.1-tcpip-8.0.1
found 8.0.1 in filename of file in /nix/store/vn63znw8s82n5hyw7vya4rmbsdi5pqns-ocaml5.1.1-tcpip-8.0.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/vn63znw8s82n5hyw7vya4rmbsdi5pqns-ocaml5.1.1-tcpip-8.0.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A ocamlPackages.tcpip https://github.com/r-ryantm/nixpkgs/archive/93482f95acc28b08b9084da7242460292001c2b7.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/93482f95acc28b08b9084da7242460292001c2b7#ocamlPackages.tcpip

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/vn63znw8s82n5hyw7vya4rmbsdi5pqns-ocaml5.1.1-tcpip-8.0.1
ls -la /nix/store/vn63znw8s82n5hyw7vya4rmbsdi5pqns-ocaml5.1.1-tcpip-8.0.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

6 packages failed to build:

ocamlPackages.git-unix
ocamlPackages.irmin-git
ocamlPackages.irmin-graphql
ocamlPackages.irmin-mirage-git
ocamlPackages.irmin-mirage-graphql
ocamlPackages.plotkicadsch

20 packages built:

ocamlPackages.cohttp-mirage
ocamlPackages.conduit-mirage
ocamlPackages.dns-certify
ocamlPackages.dns-cli
ocamlPackages.dns-client-mirage
ocamlPackages.dns-mirage
ocamlPackages.dns-resolver
ocamlPackages.dns-server
ocamlPackages.dns-stub
ocamlPackages.git-mirage
ocamlPackages.git-paf
ocamlPackages.happy-eyeballs-mirage
ocamlPackages.http-mirage-client
ocamlPackages.letsencrypt-mirage
ocamlPackages.mimic-happy-eyeballs
ocamlPackages.mirage-nat
ocamlPackages.mirage-protocols
ocamlPackages.paf
ocamlPackages.paf-cohttp
ocamlPackages.tcpip

Maintainer pings
cc @sternenseemann for testing.

Already on master.


Should I translate the route/url aswell? And how?

Just like in the docs routing example here: let's say I'd like to also translate the route from
/de/imprint to /de/impressum
How is this possible? I guess making an extra file impressum.vue alongside imprint.vue will surely lead to confusion and is unnecessary repitition.

I don't know why, but apparently I haven't read this docs page until the end... Since I'm apparently not allowed to delete this issue, I atleast answer the question myself:
Custom Paths is what you are looking for, as explained here. (They conveniently link to it in a paragraph that I have read .. and still didn't get it :D)


Re-add missing save resource button in the inspector

Fixes https://github.com/godotengine/godot/issues/21158

Thanks!


Database pool size in multi workers setup

Hi
I am trying to understand how the database connection pool work in a multi-workers configuration.
Let's say I have
database.yml
default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000

solid_queue.yml
default: &default
  dispatchers:
    - polling_interval: 1 # default 1
      batch_size: 500
      concurrency_maintenance_interval: 600 # wait in second for concurrency to be maintained (default 600)
    workers:
    - queues: [ real_time, default, background ]
      threads: 5
      processes: 1
      polling_interval: 0.1 # default 0.1
    - queues: [ batch_searches ]
      threads: 50
      processes: 1
      polling_interval: 0.1 # default 0.1

In the batch_searches queue I want to be able to execute 50 jobs in parallel and each job should have a database connection.
Is it the job of SolidQueue to handle the database connection pool ?
If it use the same database.yml configuration to generate a new active_record connection_pool I assume there will be 1 pool per SolidQueue Process shared among all threads ?
So If I need a pool size of 50 how can I archive this without modifying the PUMA worker pool size.
Thank you

Hey @pasl, sorry for the delay! I had somehow missed the notification for this issue 😳
With that configuration, you'll need a database pool size of at least 52, 50 for each thread + 1 for the worker itself + 1 for its heartbeat task.

So If I need a pool size of 50 how can I archive this without modifying the PUMA worker pool size.

I think you can just do this:
default: &default
  adapter: postgresql
  encoding: unicode
  pool: 52
  timeout: 5000

and that won't affect Puma's worker pool size in any way.

Going to close this one as I think the question is answered but please reopen if not, or if something is not working properly 🙏


Deploy multiple Helm Charts in a desired order

I am deploying multiple helm sub-charts in Kubernetes Cluster through Helm and tiller. How can I make sure that a particular chart completely installs its containers before starting to install other charts and their containers?
I looked into requirements.yaml and hooks, none of them look like can be the solution I am looking for.
I have multiple sub-charts, and want to make sure containers of App1 are up and ready before helm installs other charts.

There is a good explanation here

Some context on ordering also  in https://github.com/helm/helm/issues/1780

Ping @ameymehta.

This plugin is giving you all you want: ordering of sub-charts execution, plus a very interesting visibility of the deployment at sub-chart level instead of at the upper level.
https://github.com/gemalto/helm-spray

Closing as questions answered and no feedback after few months. We can re-open if need be.

+1
We have a few subcharts that we will ship to customers.  We would prefer not to ask them to install a third-party helm plugin (but thank you @pamiel).
Subchart1 installs an OAuth2 service. We do not control the docker image for this service, so we call a post-install job that calls the service to create some initial state (an OAuth2 clientId + secret).
Subchart2 installs a pod. That pod's application calls the service from subchart1, asking for that initial state (a client grant using that clientId + secret).
This setup will fail. The post-install job will never run, because subchart2 is waiting for the job to install that initial state.

I believe this warrants a re-open. "Deployments" may not be encompassed in a single chart... there's a lot that can go into a distributed app, esp through testing. We need reproducibility & testing across apps that are built from multiple charts.

Might not be the best forum for this but take a look at https://github.com/Azure/orkestra which is built exactly for that use case


Edit Templates

Description

[x] #219
[ ] #249
[ ] Edit CLI Template

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/issues/248


The lack of the component "tree" prevents me from quickly implementing this feature

Needs like this on the web:

Duplicate of https://github.com/flutter/flutter/issues/42332.


SVG Sprite Creation

Description:
Create an SVG sprite containing all project icons to optimize loading and improve performance.
Acceptance Criteria:

All individual SVG icons must be combined into a single SVG sprite.
The icons should be used via the <use> element referencing the sprite.
The sprite should include all icons used on the site, including those for navigation, social media, and other interface elements.

Technical Details:

Collect all individual SVG files used throughout the site.
Create one sprite file containing these SVG icons.
Ensure correct usage of the sprite and proper rendering of each icon in the project.

I would like to work on this
Please assign it to me
Thank you

Got it, assigned! Thank you

@Gauravtb2253 great work Gaurav!


Laravel 6.x compatibility

Will you be supporting the 6.x branch?

Dear nsbucky,
yes, we will plan to support a new version and we have upgraded some part of packages.
Let's keep in touch.
Best,
Yevhen

fantastic. i just found this project and am excited to try it for 6.x
On Sun, Nov 10, 2019 at 7:53 PM Yevhen L<EMAIL_ADDRESS>wrote:

Dear nsbucky,
yes, we will plan to support a new version and we have upgraded some part
of packages.
Let's keep in touch.
Best,
Yevhen
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awes-io/awes-io/issues/208?email_source=notifications&email_token=AACGATEX7DIVKZNPIOPN2LLQTBKAZA5CNFSM4JJ7XMT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDVD5MQ#issuecomment-552222386,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACGATHPFNEBH4SJGZQMRI3QTBKAZANCNFSM4JJ7XMTQ
.

Hello Yevhen,
Just thinking about using awes.io in a new project with laravel 6 o 7. Could you release this new version?
Thanks,
E.

Dear Esteban Acosta Villafañe,
I've answered to your email.
Best,
Yevhen


Fix: select2 fields styling

Hi there,
This PR aims to fix the styling issues with select2 fields as described in #740.
Looks like the select2-bootstrap-theme file was updated to use v0.1.0-beta.10 from cloudflare's CDN, but the update had only been made to the regular select2 field, but not its variants.
This fixes the problem by using the same css file for all of the field types.
Thanks!

This is great, thank you @jkudish !

Thanks for getting it merged 👍


Also log bookkeeper (and managed ledger) in tests

Root level is warn, so we need to explicitly set org.apache.bookkeeper
to info to see the logs.

retest this please // BrokerClientIntegrationTest.testUnsupportedBatchMessageConsumer

retest this please // c++ test timed out "Build timed out (after 200 minutes). Marking the build as aborted."


Create st.txt

Üsküdar Üniversitesi
Üsküdar University of Istanbul, Turkey

Url : https://uskudar.edu.tr

@hicranilze I am sorry, the domain st.uskudar.edu.tr is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Prevent failing in FastBoot

Follow-up to #24. This PR doesn't provide FastBoot compatibility, it merely prevents the content of the initializer to run, because the container that's required to access the service is not present in initializers. This means that assets being requested from the service in FastBoot are not correct, but at least the app won't fail to serve requests.

Closing in favor of #33
@mydea 👏


Structurally identical tree

Is your feature request related to a problem? Please describe.
Implement algorithm to find if two trees are structurally identical.
Describe the solution you'd like
A recursive function will be implemented to check whether data at each level of the tree is same at each node.

Kindly assign me this issue.

please assign it to me.


[FEATURE]: CPU/Hybrid Adafactor Supports

Describe the feature
I suggest adding CPU/Hybrid Adafactor supports for heterogeneous training.
Adafactor has less memory consumption than Adam, proposed in paper
Adafactor: Adaptive Learning Rates with Sublinear Memory Cost.
https://github.com/huggingface/transformers/blob/v4.17.0/src/transformers/optimization.py#L385
https://github.com/pytorch/fairseq/blob/main/fairseq/optim/adafactor.py

We have updated a lot. This issue was closed due to inactivity. Thanks.


operators ibm-spectrum-scale-csi-operator (2.4.0)

Signed-off-by: Abhishek Jain<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[x] Did you create a ci.yaml file according to the update instructions?
[x] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@J0zi Could you please help in retest this PR ?

/retest

/retest

/merge possible

/merge possible

@J0zi Could you please help in retest this PR ?

/merge possible


Incorrect behavior when on fullscreen from maximized window

Sorry if this issue has already been posted. I couldn't find anything related.
Environment
Windows build number: Microsoft Windows Version 10.0.18362.535
Windows Terminal version: 0.7.3451.0

Steps to reproduce

open terminal
maximize window (alt+space+x)
toggle fullscreen (alt+enter)

Expected behavior

taskbar hidden
window correctly displaying terminal's content

Actual behavior

taskbar showing
distorted content displayed on terminal

This only happens when toggling fullscreen from a maximized terminal window

I believe this is a /dup of #3709, which was fixed by #3721. Thanks for the report!


Pull Request body is not updated when updatecli updates the PR.

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Sequence of events

A PR was originally created by updatecli for updating localstack to 3.0.0
We never merged this PR (because it's a major upgrade) from 2.3.2
A new release of localstack is now available (3.0.1)
updatecli re-ran ( weekly schedule).

What is changed in the updated PR.

✅ -> the PR title changes to reflect the new update
✅ -> The commit history in the PR shows all the changes
✅ -> The workflow run link points to the latest execution (i.e. update 3.0.0 -> 3.0.1)

What is wrong in the updated PR

The PR body has not changed to reflect the new version in the targets.

Expected Behavior
Since you're editing everything else in the PR body; the PR body should reflect the latest change made.
Steps To Reproduce
No response
Environment
- OS: ubuntu-latest (github-action)
- updatecli: v0.67.0 (it ran before updatecli updated itself).

Anything else?
The updated PR body basically contains the changes from the original PR creation
localstack
Update setup-localstack action

key "$.inputs.version.default" updated from "2.3.2" to "3.0.0", in file ".github/actions/setup-localstack/action.yml"
Update localstack docker-compose default

key "$.services.localstack_http.image" updated from "localstack/localstack:2.3.2" to "localstack/localstack:3.0.0", in file "localstack/docker-compose.yml"

The workflow run log attached to the updated PR shows us that we are updating from 3.0.0 to 3.0.1
##############
# LOCALSTACK #
##############

SOURCES
=======

localstack-latest
-----------------
Searching for version matching pattern "*"
✔ value "3.0.1", found in file "https://pypi.org/pypi/localstack/json", for key ".releases.-"

CONDITIONS:
===========

localstack-docker
-----------------
✔ docker image docker.io/localstack/localstack:3.0.1 found

TARGETS
========

localstack-compose-update
-------------------------
⚠ - key "$.services.localstack_http.image" updated from "localstack/localstack:3.0.0" to "localstack/localstack:3.0.1", in file "localstack/docker-compose.yml"

localstack-action-update
------------------------
⚠ - key "$.inputs.version.default" updated from "3.0.0" to "3.0.1", in file ".github/actions/setup-localstack/action.yml"

This is largely a cosmetic bug in my opinion, the changes are hidden behind a expansion and the title/commit history shows the right thing.

Thanks for reporting, I thought that everything was updated.
I'll keep an eye on this issue when I merge long running pullrequest

c.f. https://github.com/quotidian-ennui/ubuntu-dpm/pull/24

title is updated to 0.30.4
new 0.30.4 release notes included in the PR
the "change detected" is not updated; it still sits at 0.29.x -> 0.30.0

Theoretically this issues should be fixed by https://github.com/updatecli/updatecli/pull/2021
And more specifically in https://github.com/updatecli/updatecli/blob/951bc936b8177ed559422a7ebd0d6a7636e97b73/pkg/plugins/scms/github/pullrequest.go#L571 where I revert the order of the merge action so the new report should take precedence over the old one

https://github.com/quotidian-ennui/interlok-build-parent/pull/114 still illuminates the issue (updatecli-0.7.4 execution); so lets see what happens when you release 0.75 & gradle-8.8 is released

Yep it's fixed by your recent changes, it changes the description from "original version" -> "latest version" so it's fixed in 0.75
Closing this ticket.


Cannot specify different SSH port for Static VM

Even when using the flag --ssh_options -p 2222, the SSH command used by PerfKit then has two -p flags as follows:
/usr/bin/ssh -A -p 22<EMAIL_ADDRESS>.... -p 2222 hostname'

But, first flag still takes precedence.

Please assign to me.
Should we add a parameter on the static_vm JSON definition to specify an SSH port?

Assigned - thanks for reporting this.  The port flag is specified a lot of places, unfortunately.
I think allowing the user to specify additional options to ssh would be preferable to adding a port - then it's more general.

Just to be clear.
Is the intended behavior that whenever something like ssh_options='-p 2222' is specified that it should overwrite any flags of the default flags (in this case -p 22 -> -p 2222)?

Generally I don't think that -p 22 should be specified unless the user explicitly provides it as an SSH option. The current behavior (always specifying -p) prevents overriding the default port in ~/.ssh/config as well.

Actually, so I added the host to the SSH config, and specify the port there. Using it that way, the SSH commands work.
Now, but then it hits another bug.
When it does the SCP, or the RemoteCopy() method, it reuses the same ssh_options, but now SCP doesn't take a -p flag but a -P for the port, and throws this stack trace

Carlos did you have a pull request for this?  Is this issue closed?

Pull request is #201


[Request] Can we get free credit if we wish to execute large batch of evaluations on VIBE-Eval?

We are executing model evaluation on VIBE-Eval, but found that it consumes around 5 USD (rough estimation) per evaluations. It's a little bit expensive compared with other evals using GPT4V/o.
Just wondering if there a giving away plan or something? like 100 USD credit, and require the author to cite or promote Reka AI product.

Hi,
yes we do offer credits for running vibe eval. I sent credits link on your email.
No strings attached, so there is no need to promote us, but ofc citations for vibe-eval and tech report are welcome :)

Pretty much thanks!


Remove dependency on nebulous in proof generation

Use the same recursive approach as in nmt.Root() to generate proof
Removes the dependency on Celestiaorg/merkletree in proof generation

[x] Passing full testing
[x] Fixes https://github.com/celestiaorg/nmt/issues/15

Whoops, keep on forgetting you can only request one review. Sorry

Poking @liamsi for re-review since changes requested.

bulld is failing due to codecov upload failure

Poking @liamsi for re-review since changes requested.

@liamsi bump

@adlerjohn can be merged now?


Mouse right-click in TextBox crashes the application

Describe the bug
Mouse right-click in TextBox crashes the application.
Steps to reproduce the bug

Create new WinUI 3 in Desktop project.
Add a TextBox to MainWindow.xaml

    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
        <TextBox/>
    </StackPanel>

Run the application
Right-click with the mouse pointer inside the TextBox

Expected behavior

Application doesn't crash.
Screenshots

Version Info

NuGet package version:

WinUI 3 - Project Reunion 0.5: 0.5.0

Windows app type:

UWP
Win32

Yes

Windows 10 version
Saw the problem?

Insider Build (xxxxx)

October 2020 Update (19042)
Yes

May 2020 Update (19041)

November 2019 Update (18363)

May 2019 Update (18362)

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Device form factor
Saw the problem?

Desktop
Yes

Xbox

Surface Hub

IoT

Additional context

Screenshot of where it crashes:

Just including the control is enough to cause the crash on a right click.

Having devs do all the unit testing results in problems like the one above.  Developers are too well behaved and scoped when evaluating their own work.

Is this another first chance exception that can be continued through?

@StephenLPeters , despite some of these exceptions being benign (you can continue), they are a performance drain and need to be stomped out.  They also contribute to a negative developer experience.

I agree.  I'm just trying to get information that might be useful for the team.  I suspect that a lot of these types of issues have similar  root causes.

@StephenLPeters , hopefully the next WinUI release will calm things down a little.  I've got a dozen other bugs I'll report when the next release is out.  It's best not to distract too much at this point.  Most of the bugs have existed in UWP for years.  I'm hoping both UWP and WinUI can get sorted out simultaneously.  These are all UI related.

I debugged this, and the caught exception comes from AcrylicBrush.

@codendone , thank you for the clarification.  Before you put out the next release, I suggest you run through these samples (release build, without VS attached):  https://github.com/Noemata/RosettaNavigation
UWP runs most of these indefinitely.  So should WinUI.  Presently, all except the WebView test end in a crash within a couple hours of runtime on a system with 16GB of ram.

Hi @Herdubreid, you should see a fix for this bug in the upcoming WinUI 3/Project Reunion 0.8 Preview, which you can expect soon. Thanks for filing this!

This is still an issue with the released version. I'm using the latest released windows app sdk and build tools that I could get working.

The only difference is the textbox needs to have text in it; it no longer repros when it starts empty.

This is still happening for me in the current release of the Windows App SDK (Nuget Package Microsoft.WindowsAppSDK 1.0.0)
Right clicking a text box (regardless of whether there is text in it causes a crash).
Exception thrown at 0x00007FFC30F54F69 in App1.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000E41B57C2B0.

This gets written to the output window:
mincore\com\oleaut32\dispatch\ups.cpp(2122)\OLEAUT32.dll!00007FFC31F29DD6: (caller: 00007FFC31F291E9) ReturnHr(1) tid(19b4) 8002801D Library not registered.
Exception thrown at 0x00007FFC30F54F69 (KernelBase.dll) in App1.exe: WinRT originate error - 0x80070490 : 'Element not found.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FFC3163C363: (caller: 00007FFC31646049) ReturnHr(1) tid(19b4) 8007007E The specified module could not be found.
Exception thrown at 0x00007FFC30F54F69 in App1.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000E41B57C2B0.

Same issue with RichTextBlock. Any news?

I am also experiencing this issue with the latest SDKs. As a beginner WinUI developer, experiences like this make us believe we've done something wrong when we haven't, which is quite frustrating.
Is there any way to re-open this issue?

This must be re-opened. The issue is still present in Microsoft.WindowsAppSdk version 1.0.0 that was released on Tuesday, November 16, 2021 (11/16/2021).

This is a noisy exception. F5 in the debugger will continue, or the debugger could be changed to not always break in on C++/WInRT exceptions.
The noisy exception is coming from CommandBarFlyoutCommandBar::UpdateVisualState(), which is calling ApplicationView::GetForCurrentView(). Some other places guard against causing an exception by only making this call "if (winrt::CoreWindow::GetForCurrentThread())" passes.

@llongley FYI

I had the TextBox/right click problem. "Magically" the problem disappeared when I did a repair of VS2022 due to another reason (an Extension update breaking it.)

I had the TextBox/right click problem. "Magically" the problem disappeared when I did a repair of VS2022 due to another reason (an Extension update breaking it.)

Maybe when it repairs, it also installed a newer version of SDK. Could you confirm your SDK version?
Cheers

this issue is fixed in wasdk 1.1.0 stable

this issue is fixed in wasdk 1.1.0 stable
Confirmed, I am no longer seeing this.

I'm still having this issue as of Saturday, July 17, 2022 (7/17/2022) in Microsoft.WindowsAppSDK version 1.1.2 that was released on Saturday, July 2, 2022 (7/2/2022)

Fixed internally... again.

:tada:Microsoft.WindowsAppSDK v1.3.0 has been released which fixes this issue.

Release Notes
Nuget


django all auth support multi site user accounts

replaced with https://github.com/miraculixx/django-allauth/pull/4


Currency DBField doesn't allow setting different thousands & decimals separators

Affected Version
3., 4.
Description
In some locales, currencies use different separators, eg in Dutch (Netherlands) we use '€1.000,00' (as opposed to '$1,000.00'). The Currency field internally uses number_format(), this allows setting both characters. Allowing config values for both on Currency class and feeding them as 3rd & 4th agument fixes this (PR on its way).
Notes

Silvershop has an implementation of the field which solves this problem - see ShopCurrency

We use the intl PHP library already for date and time formatting, so we should change it to use NumberFormatter to handle all of this.
Quick investigation:

We have a configurable currency symbol. This becomes irrelevant with NumberFormatter, because it adds its own symbol for the current locale, and also allows you to format as another currency and have that symbol be used instead. We should deprecate the currency_symbol prop, but we'd also have to add some hacks to ensure it's still honoured if used until 5.x
We format negative numbers as ($5.20) rather than -$5.20. The latter is what NumberFormatter would return, so we'll need to also handle that in custom code.

Any news on this issue?

I suggest to add a methods like NiceI18N() to all relevant classes for formatting the value with proper localisation. This can be deprecated for SS6 and become standard behaviour in SS6.
Relevant number formatting would be:

DBDecimal
DBCurrency (please make negative value configurable; in Europe we prefer -3,00 instead of (3,00)
DBPercentage
DBFloat with subclass DBDouble
DBInt

DBMoney already uses NumberFormatter, but calling Money's Amount is a plain DBDecimal without any localisation support.
For having (3.00) instead of -3.00 you can use https://www.php.net/manual/de/class.numberformatter.php#numberformatter.constants.currency-accounting
With a method for setting the formatter (e.g. currency vs currency-accounting) we could fine tune formatting in templates, like $MyValue.setFormatter('CURRENCY').Nice(), though I suggest to set this in a config value globally.
Related Issues: #8216


Feature: Support negation in list operators

API
Other
Description
Just tested in the latest nightly build (0.4.3dev41), and it seems like we do not support negation on the IN list operator.
Here's the query I want to run:
MATCH (e)-[r]->(t)
WHERE r.type NOT IN ["IsFrom"]
RETURN *;

This should return all paths whose relation type is not IsFrom, but it produces the following error:
The evaluation of this query failed with the following error:
Parser exception: Query must conclude with RETURN clause (line: 1, offset: 0)
"MATCH (e)-[r]->(t)"

The following query, which is the reverse (returning only those relationships that are of type "IsFrom"), works:
MATCH (e)-[r]->(t)
WHERE r.type IN ["IsFrom"]
RETURN *;

Can we also support negation on the IN operator?

@andyfengHKU feel free to reassign - I just wanted this to be documented for now. Thanks!

@prrao87
I think we should probably use NOT r.type IN instead of r.type NOT IN. The former one we should support already. Can u double check if Neo4j support the latter one?

Yup, their Cypher docs make this really hard to find, but it seems like Neo4j also only supports NOT r.type IN. Let's close this issue and the PR as you suggested.


Uncaught exception

Opening the latest version, I see in the Command Panel the following error:
Uncaught (in promise) Error: Failed to initialize alx-folder-note: Click here for more details
    at sr.get CoreApi [as CoreApi] (eval at <anonymous> (app.js:1), <anonymous>:46:20204)
    at Fi (eval at <anonymous> (app.js:1), <anonymous>:46:1524)
    at sr.eval (eval at <anonymous> (app.js:1), <anonymous>:47:83)
    at Generator.next (<anonymous>)
    at o (eval at <anonymous> (app.js:1), <anonymous>:6:972)

Is this a user error or something else?

should be a issue with this: #68

re-enable the plugin in the setting tab and/or upgrade to v0.16.1 should fix this issue