Timer decorators on multiple functions send the same time values

This might be a bug, or by design and just my understanding of the docs that's bugged:
I have a script (just a single thread) that is using decorators to apply timers to various functions so that I can see how long is spent in those functions on each run.
However it seems that all timers, despite being different instances with different names, all send the same time value. (On my script, some functions take several seconds to run, yet all statsd timer values were showing up as around 66ms)
For example, a test script to demonstrate this:
import time
import statsd

sd=statsd.StatsClient('statsdhost', 8125, prefix='test')

@sd.timer('wait_1')
@sd.timer('wait_2')

def wait_1():
        time.sleep(1)

def wait_2():
        time.sleep(10)

wait_2()
wait_1()
with sd.timer('test2'):
        wait_2()

sends the following values (captured from tcpdump between the machine the script is running on and the statsd host):
test.wait_2:1001|ms
test.wait_1:1002|ms
test.test2:10010|ms

The values aren't quite the same (1001 vs 1002), so it presumably isn't just using the same timer value, but test.wait_2 clearly isn't ~10,000ms either.  Changing the order that wait_1 and wait_2 are called does not change the value that is sent for both functions.
So, is this an issue, or is it my understanding of the code, and you can simply only have one timer running on a decorated function?  The docs don't say you can have more than one, but they don't say you can't either!

The tcpdump output here looks exactly correct to me. Where did the 66ms come from?
@sd.timer('wait_1')
@sd.timer('wait_2')

def wait_1():
        time.sleep(1)

This decorates the function wait_1 with two timers. The "inner" one is test.wait_2, so it completes first, then test.wait_1 finishes. (That's why test.wait_2 is 1001ms and test.wait_1 is 1002ms.)
The function wait_2 sleeps for 10s, and is not decorated at all, so
wait_2()
wait_1()

causes the script to sleep for 10s, reporting nothing, then sleep for 1s and report two timers. Then finally
with sd.timer('test2'):
        wait_2()

sleeps for 10 seconds within a timed block, and submits test.test2 with a value of ~10s.
If you want to decorate the wait_2 function, you'd need to do something like this:
@sd.timer('wait_1')
def wait_1():
    time.sleep(1)

@sd.timer('wait_2')
def wait_2():
    time.sleep(10)

the 66ms was what I was getting from all functions in my real world script.
OK, I understand now - it was my understanding that was broken - i.e., I assumed that the @sd.timer() definitions were just defining (at the top of the script) all of the decorators and the functions that they applied to - not that they then all applied to the first function and the rest of the functions had no timers attached...
Many thanks for clearing that up!


Disable Android animations for all emulators

[x] This is a small change
[ ] This change has been discussed in issue #<?> and the solution has been agreed upon with maintainers.

Description:
Addressing this has long-overdued, and its been recently incentivised for upon coming across related problems in internal apps. After making numerous futile attempts at creating an idling-resource that would fill in the missing gap*, it is now clear that the only option is to go with Google's recommendation and turn off animations across the board.

* System components such as RenderThread and the centralized (though thread-based) AnimationHandler (method getAnimationCount()) are all hidden and inaccessible even via reflection on actual devices.

Pull Request Test Coverage Report for Build 2174

4 of 4 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 77.025%

Totals

Change from base Build 1193:
0.02%

Covered Lines:
3214

Relevant Lines:
3884

💛  - Coveralls


toggle.state.switched   !=  toggle.isToggled() (bug hardly to reproduce)

on some weird condition hardly to reproduce...   the input checkbox is checked but the state of the component is false.
toggle.state.switched -> https://github.com/callemall/material-ui/blob/master/src/toggle.jsx#L26
toogle.isToggled() -> https://github.com/callemall/material-ui/blob/master/src/toggle.jsx#L167
isToggled uses the state of the DOM element and maybe is should use the state of the component.
im am using webpack to create a bundle of my application and when is unpack the app works fine but when is bundled this behaviour appear.
with only one callback "onToggle" you dont know what is the state of the component so i suggest creating to new props called "onEnable" "onDisable"  or something like that to avoid checking the state of the component.

@mercuriete of course, there's been some changes to the source for Checkbox. Could you retest again today and see if you encounter the same issue?

yes, I met the same problem with you.
It is quite strange official web page does not provide any info about isToggled().
under my test : toggle.state.switched will get the previous state! not the new state.
which means : you toggled, and toggle.state.switched return last state you toggled.


[Minor] Adding a PR Template

Added a pull request template like Spark's to help new Livy devs

@jerryshao do you think this would be useful? If it looks good to you I'll use this to test my new committer privileges.

Yes, it looks good to me. Sorry for late response, I was off last week.

I think you need to add this file to rat exclude.

I noticed you were off sometime around Thursday >.< and I'll add the rat exclude then push this after it passes tests

Codecov Report

Merging #54 into master will increase coverage by 0.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master      #54      +/-   ##
============================================
+ Coverage     70.13%   70.72%   +0.59%
  Complexity      790      790
============================================
  Files            97       97
  Lines          5384     5384
  Branches        798      798
============================================
+ Hits           3776     3808      +32
+ Misses         1069     1039      -30
+ Partials        539      537       -2

Impacted Files
Coverage Δ
Complexity Δ

...in/java/org/apache/livy/rsc/rpc/RpcDispatcher.java
64% <0%> (-2%)
19% <0%> (-1%)

...in/java/org/apache/livy/rsc/driver/JobWrapper.java
80.64% <0%> (ø)
8% <0%> (+1%)
:arrow_up:

...main/java/org/apache/livy/rsc/ContextLauncher.java
81.18% <0%> (+0.49%)
17% <0%> (ø)
:arrow_down:

...ava/org/apache/livy/client/http/JobHandleImpl.java
75.22% <0%> (+0.91%)
13% <0%> (ø)
:arrow_down:

...c/main/java/org/apache/livy/LivyClientBuilder.java
83.33% <0%> (+1.66%)
17% <0%> (ø)
:arrow_down:

...ain/java/org/apache/livy/client/http/HttpConf.java
76.92% <0%> (+1.92%)
5% <0%> (ø)
:arrow_down:

...ain/java/org/apache/livy/rsc/driver/RSCDriver.java
77.87% <0%> (+2.12%)
40% <0%> (-1%)
:arrow_down:

...java/org/apache/livy/client/common/ClientConf.java
99.06% <0%> (+2.8%)
44% <0%> (ø)
:arrow_down:

...n/java/org/apache/livy/client/http/HttpClient.java
82.81% <0%> (+3.12%)
15% <0%> (ø)
:arrow_down:

...java/org/apache/livy/rsc/rpc/KryoMessageCodec.java
98.21% <0%> (+3.57%)
19% <0%> (+1%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

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


Animation problem with 64 bits architecture

I'm having problems with animation in 64 bits devices (iPhone 5s +)
I think the problems is in the RCTAnimationManager.m:155
[fromValue getValue:fromFields];

This code is trying to store a float into a CGFloat
And CGFloat is defined as double for 64 bits architecture
CGBase.h:228
#if defined(__LP64__) && __LP64__
# define CGFLOAT_TYPE double
# define CGFLOAT_IS_DOUBLE 1
# define CGFLOAT_MIN DBL_MIN
# define CGFLOAT_MAX DBL_MAX
#else
# define CGFLOAT_TYPE float
# define CGFLOAT_IS_DOUBLE 0
# define CGFLOAT_MIN FLT_MIN
# define CGFLOAT_MAX FLT_MAX
#endif

/* Definition of the `CGFloat' type and `CGFLOAT_DEFINED'. */

typedef CGFLOAT_TYPE CGFloat;
```

cc @a2

Everything you're saying seems valid, but I don't see why that line is the problem? CoreAnimation uses CGFloat values (and CGFloat-based structs like CGPoint, CGSize, CGRect) for all FP values.

It's worth noting that LP64 is set and means "Leopard 64bit (and greater)".
This apple code works across all recent Apple  systems without a hitch.
JG
301.785.6030 :: @moduscreate
:: sent from my mobile device ::

On Mar 29, 2015, at 12:43, Axel Hernández Ferrera<EMAIL_ADDRESS>wrote:
I'm having problems with animation in 64 bits devices (iPhone 5s +)
I think the problems is in the RCTAnimationManager.m:155
[fromValue getValue:fromFields];
This code is trying to store a float into a CGFloat
And CGFloat is defined as double for 64 bits architecture
CGBase.h:228
#if defined(LP64) && LP64
define CGFLOAT_TYPE double
define CGFLOAT_IS_DOUBLE 1
define CGFLOAT_MIN DBL_MIN
define CGFLOAT_MAX DBL_MAX
#else
define CGFLOAT_TYPE float
define CGFLOAT_IS_DOUBLE 0
define CGFLOAT_MIN FLT_MIN
define CGFLOAT_MAX FLT_MAX
#endif
/* Definition of the CGFloat' type and CGFLOAT_DEFINED'. */
typedef CGFLOAT_TYPE CGFloat;
—
Reply to this email directly or view it on GitHub.

Yes, using CGFloat to do animations is the right thing to do.
The problem is to copy a float to a CGFloat. It doesn't get the right value and the animations doesn't work.
I can make an example to illustrate the problem if you want.

@axelhzf An example project with a repro case would help immensely. Thanks!

This is the code
https://github.com/axelhzf/AnimationProblem/blob/master/index.ios.js
The animation works on iPhone 5 simulator, but not on iPhone 5s simulator

The animation module has been renamed to RCTAnimationExperimentalManager and is on its way out, it's suggested that you use an existing React library like react-tween-state for animations in the meantime, as it is likely that you will have many issues with RCTAnimationExperimentalManager.


extensions option is confusing

In most rollup plugins, extensions is used as a filter option to process or not the file.
In this plugin, extensions refers to the extensions that be resolved by the node resolver.
Having it inside customResolveOptions would help making this distinction clearer IMO.

Any ideas? I think it can be closed now.

I am personally wasn't confused with it
We already introduce mainFields that was breaking change and I think introduce yat another breaking change without big reasons is a bad idea.


Possible fix to issue #1951

BugFixanalysisforissue1951.docx
When two instances of Torque3D are running on the same network, one as a
hosted server and the other as a client, the client is unable to connect
to the server. The program now can open a socket. This was obviously a
typo. To find the error I just searched for keywords containing socket,
open, open socket, and opensocket till I found the correct file. The
other error was in how the program processed “non fatal” errors. I just
outputed the error to the main console and devised that the socket
should not be closed for a WSAEWOULDBLOCK error 10035 "It is normal for
WSAEWOULDBLOCK to be reported as the result from calling connect on a
nonblocking SOCK_STREAM socket, since some time must elapse for the
connection to be established."
Read about the WouldBlock error:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx
Use of dbgSetParameters ( port , password ):
http://docs.garagegames.com/tge/official/content/documentation/Reference/Console Functions/TorqueScript_Console_Functions_2.html#dbgSetParameters_.28_port_.2C_password_.29
Use this commit: db3ffab8325b83c1b183fa4f9b31029c3fa2cfaa
Lines:  812, 829-837

@Areloch & @dottools
I made the fixes.

Looks good, however our coding style guidelines dictate that comments should be a line above code statements, not on the same line after them. And when commenting them you really should be careful what you state in them. Because the error code meaning for Windows doesn't mean the same thing for Linux as it has different conditions that cause those errors. Such as EWOULDBLOCK doesn't mean temporary resource unavailable, it means thread process would block until operation completed.

@dottools alright. Formatted. :)

thanks @killsap, although I thinks requires a revision, here is the code style guidelines: http://wiki.torque3d.org/coder:code-style-guidelines

@John3 Anything standing out to you at the moment?
Looking it over, it seems like he's got it all cleaned up as far as I can tell.

I mean about the code style guidelines :) the PR looks good.

Oooooh, I gotcha :)

@John3 okay.
What do I need to do? I'm not sure what issues need correcting according to the guidelines. LMK :)

@killsap Nah, he was just pointing you at the guidelines for reference, while making a mention they may be due for a review. Your code is fine as far as we can see. I'll review it later today and try to get it merged in :)

@Areloch okay, cool!

yep as areloch said 👍 sorry for the misunderstanding.

@John3 no worries :)

This bug was only recently introduced I think, since having multiple instances open in multiplayer was never a problem before.

@Areloch , hope you had a good weekend. Any updates on getting this fix rolled in?

Had a busier weekend than anticipated, but she's rolled in now. Thanks!


Add scan_duration in JSON output

Description
We want to be able to retrieve the scan duration from the analysis and output it in the JSON output.
Example
{
	"summary": {
		"total_resources": 6,
		"total_changed": 2,
		"total_unmanaged": 2,
		"total_missing": 2,
		"total_managed": 2
	},
        // Add this new field
	"scan_duration": 300 // In seconds
}

This issue has been referenced in the latest release v0.23.0.


[BUG]: [UAT|Current date is taking while generating the issue notice for an Order]

The hearing date is 10-Oct but as per epoch time it is taking as 09-Oct

hi @rajeshcherukumalli this is fixed. please test in QA. cc: @Ramu-kandimalla

This has been fixed and looks as expected,


Travis CI - docker based broker container for client tests

Because client tests needed some running broker, this solution should be easiest way how to do it.

ActiveMQ Artemis broker

Do not use that AMQ 7.0.0 image. The broker there is buggy. I had the same problem rh-messaging/cli-java#6, see the failed Travis build on the first commit. For me, the client was dying, not getting stuck.


Assert that Component DSL and Endpoint DSL work for AtlasMap

I do not think this PR impacts the documentation in any way. I do not see any meaningful message in the log that would explain what's wrong. Any idea what's wrong @djencks ?

Someone broke the user manual by using an unescaped ${body}, it has nothing to do with your PR. The current way of doing partial
site builds is not maintainable, I hope to start some discussion on alternatives soon.
Sent from my iPhone

On Nov 1, 2021, at 9:49 AM, Peter Palaga @.***> wrote:

I do not think this PR impacts the documentation in any way. I do not see any meaningful message in the log that would explain what's wrong. Any idea what's wrong @djencks ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Trying to fix that weird antora xref error about ${body}
https://github.com/apache/camel/commit/ff147620a0ff99f8efd67be9c9a7a47c4dd2d760

If what is inside the {}follows asciidoc syntax for an attribute Asciidoctor will interpret it as one, so an ${} expression will need escaping. If there's a '.' It can't be an attribute name so no escaping is needed.


Add hex messages as such when signing

📝 Description
Messages-to-sign are potentially hex. However, they are always passed as ASCII.
This adds an appropriate check to determine whether a message is hex, passing it as such if it is. The length of the message is also determined in a similar way.
❓ Context

JIRA or GitHub link:

Feature:

✅ Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.

[ ] Covered by automatic tests
[ ] Changeset is provided
[ ] Impact of the changes:

list of the changes

🧐 Checklist for the PR Reviewers

[ ] The code aligns with the requirements described in the linked JIRA or GitHub issue.
[ ] The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
[ ] There are no undocumented trade-offs, technical debt, or maintainability issues.
[ ] The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
[ ] Any new dependencies have been justified and documented.

Superseeded by https://github.com/LedgerHQ/device-sdk-ts/pull/476.


How can I play only part of the audio？

In my code, I want to play part of the audio depending on some conditions.
The oalOpen() function returns an object and I don't know how to do the slice operation on it.
@Zuzu-Typ

Hi @1994cxy ,
unfortunately this isn't trivially possible, because openAL does not have a dedicated function for this purpose.
It would be required to do something like this: http://lebagage.free.fr/en/indexe9c7.html?Welcome:OpenAL_-start_track_not_at_origin(seek_pos)
This is C code though and not Python code.
Sadly I don't have enough time to work on this project myself :(

Hi @1994cxy ,
unfortunately this isn't trivially possible, because openAL does not have a dedicated function for this purpose.
It would be required to do something like this: http://lebagage.free.fr/en/indexe9c7.html?Welcome:OpenAL_-start_track_not_at_origin(seek_pos)
This is C code though and not Python code.
Sadly I don't have enough time to work on this project myself :(

Thanks for your answer~
I write a new WaveFile class to slice the buffer according to the sampwidth from the wave lib. I don't know if I am right, but this part of the code works fine right now.
However, I encountered another error in my code.
In fact, I want to implement an API that can put an audio source in front of the listener and rotate another source around the same listener.
I implemented my code base on PyOpenAL-HRTF which is a fork of this project. Here is my code:
def stereo_play(attended_path, unattended_path, hrtf_type=None):
    if hrtf_type:
        hrtf_name = hrtf_type
    else:
        hrtf_name = None

    # Initialize PyOpenAL
    oalInit()

    # Initialize HRTFs
    oalInitHRTF(requested_hrtf=hrtf_name)

    # Create a listener at (0,0,0)
    listener = Listener()
    listener.set_position((0, 0, 0))

    # Create sources to play sound with
    source_att = oalOpen(attended_path)
    # source_unatt = oalOpen(unattended_path)

    source_att, nframes = create_source(attended_path, None)
    source_unatt, _ = create_source(unattended_path, nframes)

    # Set position of source always relative to the listener
    source_att.relative = True
    source_unatt.relative = True

    # Set position of source
    source_att.set_position((0., 1., 0))
    source_unatt.set_position((0., 0., -1.))

    # Start playing source until it finishes
    source_att.play()
    source_unatt.play()

    angle = 0
    while source_att.get_state() == al.AL_PLAYING or source_unatt.get_state() == al.AL_PLAYING:
        time.sleep(0.05)

        # Rotate the source around the lsitener
        # (Taken almost verbatim from alhrtf.c)
        angle += 0.01 * np.pi * 0.5
        if angle > np.pi:
            angle -= np.pi * 2.0

        # Update source position
        source_unatt.set_position((np.sin(angle), 0., -np.cos(angle)))

        # Try to alter stereo angles
        source_unatt.set_stereo_angles((np.pi / 6.0 - angle, -np.pi / 6.0 - angle))

    # Clear up everything
    oalQuit()

When I use the function above in a for-loop, I get the error:
Traceback (most recent call last):
  File "XXX\.conda\envs\py39\lib\site-packages\pyopenal_hrtf-0.7.11a1-py3.9.egg\openal\__init__.py", line 877, in oalQuit
    buffer.destroy()
  File "XXX\.conda\envs\py39\lib\site-packages\pyopenal_hrtf-0.7.11a1-py3.9.egg\openal\__init__.py", line 417, in destroy
    alDeleteBuffers(1, ctypes.pointer(self.id))
  File "XXX\.conda\envs\py39\lib\site-packages\pyopenal_hrtf-0.7.11a1-py3.9.egg\openal\al.py", line 96, in al_check_error
    raise ALError(al_enums[err][0])
openal.al.ALError: AL_INVALID_OPERATION

Here is my definition of the create_source function which uses the new WaveFile class (MyWaveFile) to slice the wav file
def create_source(path, length=None):
    file_ = MyWaveFile(path, length)
    buffer_ = Buffer(file_)
    source = Source(buffer_, True)

    return source, file_.nframes

Hmm.. From just looking at your code, everything seems to be in order. At least I didn't spot any potential problems. Then again it's been years since I've last worked on this library 😅
Does the same issue occur when using the built-in WaveFile class?
I believe this error only occurs if a buffer is destroyed more than once, or a buffer is queued for deletion that doesn't actually exist.
Because I didn't know better at the time, I didn't install any safeguards to prevent this from happening.

I already solve this problem and your advice is very helpful~ Thanks~


Add bpf types

A few things-
Can you rebase the pre-April commits onto master and get rid of the merge commits?
Can you make the submodule point exactly to the v0.0.7 tag? I want this lib to track libbpf versions exactly. If there are unreleased things in master, we can cut another release as v0.0.8-pre1 or something.
Then, if you want to bump the version in Cargo.toml to 0.0.7-1, I can merge this and publish the build.

My bad, I didn't realize that the PR got updated with those commits I made after I created the PR. I meant that to be seperate.

Closing to do a clean PR for just the BPF types.


Add support for external cluster with kubeconfig

This allows you to configure a path for a kubeconfig to communicate with an external Kubernetes cluster.
.:53 {
    k8s_gateway example.org {
        kubeconfig /config
    }
}

Probably needs some tests, but works just fine.
Fixes #12

seems to be working fine for me. Thanks @p3lim


deploy: update templates to 3.8.0

updating templates to 3.8.0 for new v3.8.0 release.
fixes: #3336
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

https://github.com/ceph/ceph-csi/blob/release-v3.6/charts/ceph-csi-cephfs/values.yaml#L91 https://github.com/ceph/ceph-csi/blob/release-v3.6/charts/ceph-csi-rbd/values.yaml#L114
here too please, We missed these changes in 3.7 release
But were made for 3.6 release https://github.com/ceph/ceph-csi/pull/2985/files

Is this missing in 3.8 release branch?


Change /std:latest to /std:c++20 for c++ 20 topics

16.10 Preview 3 introduces the /std:c++20 switch.

Completed for 16.11, since it was backed out of 16.10.


Update centos.md

Fixing typo in syntax for systemctl command to start docker service.

Proposed changes

Unreleased project version (optional)

Related issues (optional)

I think this is a duplicate of #1523. Thanks for reporting it!


Group 82 revised PR: 2312517_2310886_2311614_2311548_2312365

Policy Overview
This pull request introduces two algorithms, Genetic Algorithm (GA) and Stock Filled Ratio Heuristic, designed to optimize material waste reduction and computational efficiency for the 2D Irregular Cutting Stock Problem.

####Team commitment:

Team Member
ID
Responsibility

Nguyễn Đăng Khoa
2311614
Implemented Stock filled_rate optimize heuristic

Nguyễn Lê Nguyên
2312365
Implemented Genetic Algorithm

Hồ Minh Nhiên
2312517
Revised code

Trịnh Vũ Đức Hải
2310886
Revised code

Lê Quang Khải
2311548
Revised code

Workflow of the Algorithms
Genetic Algorithm (GA):

Utilizes evolutionary techniques such as crossover and mutation to optimize material placement.
Scored solutions with a fitness function that balances maximizing filled ratio and minimizing trim loss.
While powerful, it suffers from premature convergence and high computational costs.

Stock Filled Ratio Heuristic:

Employs a deterministic approach to prioritize larger items and efficiently pack remaining space with smaller items.
Focuses on minimizing trim loss while ensuring faster execution for small to medium datasets.

Results
Based on the dataset of seed 42 used for testing, the following results were obtained in comparison with Greedy and Random policies:

Policy
Filled Ratio
Trim Loss
Runtime (s)

Genetic Algorithm
0.23
0.4141
~224.00

Stock Filled Heuristic
0.27
0.3036
45.19

Conclusion
The Stock Filled Ratio Heuristic demonstrates efficient and effective performance in reducing trim loss and improving material utilization, with reasonable computational cost. The Genetic Algorithm, while less efficient in runtime, provides insight into the potential of metaheuristic approaches but requires further refinement to overcome premature convergence and excessive runtime.
Kindly review and provide feedback!

Last chance to revise the PR until the end of Dec 17.

Last chance to revise the PR until the end of Dec 17.

I have revised the PR. Thank you for giving us chances.

@martinakaduc I'm sorry because all of my oll PR was deleted by myself. When I clone new repositoy it includes submited folders off all groups. I have deleted these redundant folder so that the PR only includes my folder. Please forgive me and merge my PR.

@martinakaduc  I have revise the PR. Please check and merge our PR. Thank you so much.


Please add clarity to code

so Phil - I love your work - I wish you could go extra few steps to help out users.
I found this class by François-Guillaume @frgfm - which adds in clear math coments.
I want to merge it but there's a bit of code drift don't want to introduce any bugs.
I beseech you to go extra step to help users bridge  from papers to code.
https://github.com/frgfm/Holocron/blob/bcc3ea19a477e4b28dc5973cdbe92a9b05c690bb/holocron/nn/modules/lambda_layer.py
eg.
please articulate return types
def forward(self, x: torch.Tensor) -> torch.Tensor:
Please give any clarity in arguments.
# Project input and context to get queries, keys & values
Throw in some maths as a comment / this is great as it bridges the paper to the code.
B x (num_heads * dim_k) * H * W -> B x num_heads x dim_k x (H * W)
import torch
from torch import nn, einsum
import torch.nn.functional as F
from typing import Optional

__all__ = ['LambdaLayer']

class LambdaLayer(nn.Module):
    """Lambda layer from `"LambdaNetworks: Modeling long-range interactions without attention"
    <https://openreview.net/pdf?id=xTJEN-ggl1b>`_. The implementation was adapted from `lucidrains'
    <https://github.com/lucidrains/lambda-networks/blob/main/lambda_networks/lambda_networks.py>`.
    Args:
        in_channels (int): input channels
        out_channels (int, optional): output channels
        dim_k (int): key dimension
        n (int, optional): number of input pixels
        r (int, optional): receptive field for relative positional encoding
        num_heads (int, optional): number of attention heads
        dim_u (int, optional): intra-depth dimension
    """
    def __init__(
        self,
        in_channels: int,
        out_channels: int,
        dim_k: int,
        n: Optional[int] = None,
        r: Optional[int] = None,
        num_heads: int = 4,
        dim_u: int = 1
    ) -> None:
        super().__init__()
        self.u = dim_u
        self.num_heads = num_heads

        if out_channels % num_heads != 0:
            raise AssertionError('values dimension must be divisible by number of heads for multi-head query')
        dim_v = out_channels // num_heads

        # Project input and context to get queries, keys & values
        self.to_q = nn.Conv2d(in_channels, dim_k * num_heads, 1, bias=False)
        self.to_k = nn.Conv2d(in_channels, dim_k * dim_u, 1, bias=False)
        self.to_v = nn.Conv2d(in_channels, dim_v * dim_u, 1, bias=False)

        self.norm_q = nn.BatchNorm2d(dim_k * num_heads)
        self.norm_v = nn.BatchNorm2d(dim_v * dim_u)

        self.local_contexts = r is not None
        if r is not None:
            if r % 2 != 1:
                raise AssertionError('Receptive kernel size should be odd')
            self.padding = r // 2
            self.R = nn.Parameter(torch.randn(dim_k, dim_u, 1, r, r))
        else:
            if n is None:
                raise AssertionError('You must specify the total sequence length (h x w)')
            self.pos_emb = nn.Parameter(torch.randn(n, n, dim_k, dim_u))

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        b, c, h, w = x.shape

        # Project inputs & context to retrieve queries, keys and values
        q = self.to_q(x)
        k = self.to_k(x)
        v = self.to_v(x)

        # Normalize queries & values
        q = self.norm_q(q)
        v = self.norm_v(v)

        # B x (num_heads * dim_k) * H * W -> B x num_heads x dim_k x (H * W)
        q = q.reshape(b, self.num_heads, -1, h * w)
        # B x (dim_k * dim_u) * H * W -> B x dim_u x dim_k x (H * W)
        k = k.reshape(b, -1, self.u, h * w).permute(0, 2, 1, 3)
        # B x (dim_v * dim_u) * H * W -> B x dim_u x dim_v x (H * W)
        v = v.reshape(b, -1, self.u, h * w).permute(0, 2, 1, 3)

        # Normalized keys
        k = k.softmax(dim=-1)

        # Content function
        λc = einsum('b u k m, b u v m -> b k v', k, v)
        Yc = einsum('b h k n, b k v -> b n h v', q, λc)

        # Position function
        if self.local_contexts:
            # B x dim_u x dim_v x (H * W) -> B x dim_u x dim_v x H x W
            v = v.reshape(b, self.u, v.shape[2], h, w)
            λp = F.conv3d(v, self.R, padding=(0, self.padding, self.padding))
            Yp = einsum('b h k n, b k v n -> b n h v', q, λp.flatten(3))
        else:
            λp = einsum('n m k u, b u v m -> b n k v', self.pos_emb, v)
            Yp = einsum('b h k n, b n k v -> b n h v', q, λp)

        Y = Yc + Yp
        # B x (H * W) x num_heads x dim_v -> B x (num_heads * dim_v) x H x W
        out = Y.permute(0, 2, 3, 1).reshape(b, self.num_heads * v.shape[2], h, w)
        return out

sure, submit a PR!


Mapmaker crashing with 'Head' reference error

Mapmaker v1.5.5-b.2 crashes with ERROR: Ref 'Head' did not resolve to an object. The output is copied below. The sources used are at the head of the main branch of the rat flatmap repo.
FYI, when testing out the documentation, Mabelle also experienced this bug.
2023-01-20 15:45:26,672 INFO: Mapmaker 1.5.5-b.2
2023-01-20 15:45:26,765 ERROR: Ref 'Head' did not resolve to an object
Traceback (most recent call last):
  File "/home/keeran/flatmap-maker/mapmaker/__main__.py", line 101, in main
    mapmaker = MapMaker(vars(args))
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 329, in __init__
    self.__manifest = Manifest(options['source'], single_file=options.get('singleFile'), id=options.get('id'))
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 144, in __init__
    self.__repo = MapRepository(pathlib.Path(manifest_path).parent)
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 82, in __init__
    self.__staged_items = [ item.a_path for item in self.__repo.index.diff('Head') ]
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/index/base.py", line 1386, in diff
    other = self.repo.rev_parse(other)
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/repo/fun.py", line 377, in rev_parse
    obj = cast(Commit_ish, name_to_object(repo, rev))
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/repo/fun.py", line 183, in name_to_object
    raise BadName(name)
gitdb.exc.BadName: Ref 'Head' did not resolve to an object

What does git status show in your map source working directory?

On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

@keeran97 could you please test this using the HEAD of the v1.5 branch. Thanks.

@dbrnz i am unable to poetry update or spawn a shell. I am getting Invalid PEP 440 version: '1.5.5-devel'

Thanks! Please git pull and try again.
BTW, you could copy-and-paste error messages from your console window rather than taking screenshots...

@dbrnz ran into this bug. source is still the head of the main branch of rat flatmap. command line is python runmaker.py --source ../flatmap-sources/new-rat/manifest.json --output ../flatmaps --debug
Traceback (most recent call last):
  File "/home/keeran/flatmap-maker/runmaker.py", line 21, in <module>
    from mapmaker.__main__ import main
  File "/home/keeran/flatmap-maker/mapmaker/__init__.py", line 36, in <module>
    from .maker import MapMaker
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 52, in <module>
    from .output.tilemaker import RasterTileMaker
  File "/home/keeran/flatmap-maker/mapmaker/output/tilemaker.py", line 37, in <module>
    from mapmaker.sources import add_alpha, blank_image, mask_image, not_empty
  File "/home/keeran/flatmap-maker/mapmaker/sources/__init__.py", line 264, in <module>
    from .fc_powerpoint import FCPowerpoint
  File "/home/keeran/flatmap-maker/mapmaker/sources/fc_powerpoint/__init__.py", line 48
    from .json_annotator import JsonAnnotator
    ^^^^
SyntaxError: invalid syntax

Hmm, my unreleased, WIP code getting in the way... Please test again, but using HEAD of the main branch (instead of v1.5).

I am getting the 'HEAD' error again.
2023-01-23 10:56:37,604 INFO: Mapmaker 1.5.5-dev0
2023-01-23 10:56:37,697 ERROR: Ref 'Head' did not resolve to an object
Traceback (most recent call last):
  File "/home/keeran/flatmap-maker/mapmaker/__main__.py", line 101, in main
    mapmaker = MapMaker(vars(args))
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 336, in __init__
    self.__manifest = Manifest(options['source'], single_file=options.get('singleFile'), id=options.get('id'))
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 147, in __init__
    self.__repo = MapRepository(pathlib.Path(manifest_path).parent)
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 82, in __init__
    self.__staged_items = [ item.a_path for item in self.__repo.index.diff('Head') ]
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/index/base.py", line 1386, in diff
    other = self.repo.rev_parse(other)
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/repo/fun.py", line 377, in rev_parse
    obj = cast(Commit_ish, name_to_object(repo, rev))
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/repo/fun.py", line 183, in name_to_object
    raise BadName(name)
gitdb.exc.BadName: Ref 'Head' did not resolve to an object

Would you run Python (in mapmaker's virtual environment) and:
import git
print(git.__version__)

Thanks.

Also could you checkout the issue-32 branch and try that. It will print out a line of information before failing.

output of the git version is 3.1.30
output of using branch issue-32  is below
2023-01-23 12:52:16,945 INFO: Mapmaker 1.5.5-dev0
WD: ../flatmap-sources/new-rat, /home/keeran/flatmap-sources/new-rat
2023-01-23 12:52:17,041 ERROR: Ref 'Head' did not resolve to an object
Traceback (most recent call last):
  File "/home/keeran/flatmap-maker/mapmaker/__main__.py", line 101, in main
    mapmaker = MapMaker(vars(args))
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 342, in __init__
    self.__manifest = Manifest(options['source'], single_file=options.get('singleFile'), id=options.get('id'))
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 153, in __init__
    self.__repo = MapRepository(pathlib.Path(manifest_path).parent)
  File "/home/keeran/flatmap-maker/mapmaker/maker.py", line 85, in __init__
    self.__staged_items = [ item.a_path for item in self.__repo.index.diff('Head') ]
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/index/base.py", line 1386, in diff
    other = self.repo.rev_parse(other)
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/repo/fun.py", line 377, in rev_parse
    obj = cast(Commit_ish, name_to_object(repo, rev))
  File "/home/keeran/.cache/pypoetry/virtualenvs/mapmaker-NDtPvMnW-py3.10/lib/python3.10/site-packages/git/repo/fun.py", line 183, in name_to_object
    raise BadName(name)
gitdb.exc.BadName: Ref 'Head' did not resolve to an object

Could you try:

Changing Head to HEAD in line 85 of ./mapmaker/maker.py and seeing if things work.
In /home/keeran/flatmap-sources/new-rat do both get diff Head and git diff HEAD.

Thanks.

yup, changing Head to HEAD fixed things. I've successfully generated the map now.
output of git diff Head is below. git diff HEAD has no output
fatal: ambiguous argument 'Head': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Fixed with commit 7c4b550 in main.


a

finally its good

I just found out this exploit kind of existed. It's the last closed issue in the Issues tab


MNT: Created pre-commit hook

Resolves #16.

Codecov Report

Merging #17 (9b84b18) into main (9251ef2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   87.50%   87.50%
=======================================
  Files           2        2
  Lines          16       16
=======================================
  Hits           14       14
  Misses          2        2

Continue to review full report at Codecov.

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


Add initial version of the test subcommand

This PR adds an initial version of the test subcommand discussed in #318. Adding a Testsuite type which represents a given config and a set of tests to be run against that. In addition, the server now accepts a oneshot sender that is used to indicate when the server is ready to start receiving packets, this removes the need to sleep or wait.
Closes #318 as while this currently this only does basic string equality testing, we can add to it and replace tests incrementally, and I think will make more sense to split things up into feature specific issues.

@googlebot I consent.

I want to get back to this, but I'm going to do so as a new PR, as I'm more focused on the xDS and Quilkin API right now, and the conflicts will continue to pile up.


Docker-TypeScript unbound breakpoint

took your project as is, and breakpoint never get hit while debugging.
vscode June 2020 (version 1.47)

+1 , same here

+1, same here

Does it make a difference if you disable our new js-debugger by adding a "debug.javascript.usePreview": false to your settings?

Nope,  but i now know that the problem is, when you open the window to show
all the folders, and then try to debug.
On Tue, Jul 28, 2020 at 11:22 AM Andre Weinand<EMAIL_ADDRESS>wrote:

Does it make a difference if you disable our new js-debugger by adding a "debug.javascript.usePreview":
false to your settings?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-recipes/issues/266#issuecomment-664853849,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM37UTLL3BJ62TXZP5BRM4DR52DCRANCNFSM4O2HJBQA
.

also it doesn't work with workspace.
On Tue, Jul 28, 2020 at 12:52 PM Rotem Levi<EMAIL_ADDRESS>wrote:

Nope,  but i now know that the problem is, when you open the window to
show all the folders, and then try to debug.
On Tue, Jul 28, 2020 at 11:22 AM Andre Weinand<EMAIL_ADDRESS>wrote:

Does it make a difference if you disable our new js-debugger by adding a "debug.javascript.usePreview":
false to your settings?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-recipes/issues/266#issuecomment-664853849,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM37UTLL3BJ62TXZP5BRM4DR52DCRANCNFSM4O2HJBQA
.

Yes, make sure to only open the Docker-TypeScript folder in VS Code and not the enclosing recipes folder.
BTW, the Docker-TypeScript is outdated (and obsolete).  It was created in a time when VS Code did not have universal remote development capabilities and only its Node.js debugger was able to debug remotely.
Today we recommend to use VS Code's excellent container development support.
With this, TypeScript development in a Docker container is not different than TypeScript development in a local setup.

i need a way to debug in workspace, i want to able to debug multiple
services inside the docker from one window.
is it possible?
On Tue, Jul 28, 2020 at 3:24 PM Andre Weinand<EMAIL_ADDRESS>wrote:

Yes, make sure to only open the Docker-TypeScript folder in VS Code and
not the enclosing recipes folder.
BTW, the Docker-TypeScript is outdated (and obsolete). It was created in
a time when VS Code did not have universal remote development capabilities
https://code.visualstudio.com/docs/remote/remote-overview and only its
Node.js debugger was able to debug remotely.
Today we recommend to use VS Code's excellent container development
support https://code.visualstudio.com/docs/remote/containers.
With this, TypeScript development in a Docker container is not different
than TypeScript development in a local setup.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-recipes/issues/266#issuecomment-665008517,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM37UTM6IFOGQA5ZRO6QCVTR527P3ANCNFSM4O2HJBQA
.

If you use a multi-folder workspace setup for the different services, you can debug them in different debug sessions within one window.

how ? can you send me a reference ?
i have a docker-compose file for all of my services
i have a workspace containing separate folders for each service i have.
in each folder i have .devcontainer folder with devcontainer.json and docker-compose and a dockerfile
but i see the only way to debug each service i need to open each one in a new window.

Currently you can only connect to one container per VS Code window
according to your documentation it is not possible yet.

Have you found any workarounds?

Have you found any workarounds?

Any update here?

As said already above:
The Docker-TypeScript recipe is outdated (and obsolete).  It was created in a time when VS Code did not have universal remote development capabilities and only its Node.js debugger was able to debug remotely.
Today we recommend to use VS Code's excellent container development support.
With this, TypeScript development in a Docker container is not different than TypeScript development in a local setup.


EDU templates are not fully deployed in Commercial tenants

EDU templates do not get fully deployed in Commercial tenants. Looks like documentation is lacking to advertise that these templates should work only in EDU tenants. https://docs.microsoft.com/en-us/MicrosoftTeams/get-started-with-teams-templates

Any news on this?

@Melina2414 thank you for helping improve MS Docs. This article has recently been updated. Please also see note - "Custom templates are not yet supported for EDU customers."

Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Prefer kTLS-compatible ciphers if kTLS is enabled, and document tls_m…

…ake_ktls().

Hm, I think maybe I'm missing one from the list of kTLS-capable ciphers. But maybe it's for the better, given that the last one isn't FS-capable.


You Can Help Make This Project Awesome!

Join me in sponsoring this project.
You are using it because it benefits you right? So am I. It's saving us hours of work and helping us make money (hopefully!)
So contribute back. Subscribe for a monthly amount. If we all contribute a little it will go a long way in keeping Draggable Flatlist running smoothly today and in the future versions of React Native and iOS and Android.
Sponsor this Project Today!

@computerjazz If you are comfortable with it, I reckon you should Pin this Issue - everybody should know they can help by sponsoring or by contributing code and PRs and testing etc.

I once tried to implement this type of draggable flatlist on my own time, and quite honestly, I could not figure it out. I want to say a massive thanks! You have another sponsor :D


upgrade jaxb-basics-version to 0.12.0

A dependency bot recommended bumping this version. No breaking changes.
I see no reason why not :)

This requires the JDK 9+ target-version.  This dep is why I created #712

Yep, I might have overstated jaxb2-basics went to 9+ for build. This also requires jaxb-2.3.x api's and impl jars. I believe the fix is more than just update this module. Some of the downstream modules may need 9+.
What did you test?

FYI, jaxb-basics is used in the Karaf features and the runtime config. Did you test these parts ? For Karaf, it should not be a problem.


Add some information how to develop in git

This is an automated message:
You can preview this docs PR at http://480.docs-pr.validatedpatterns.io
Note that they get generated every five minutes, so please wait a bit.


Confused with the models - false positives

Hello,
I'm using these model files:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
( I think it's the same as https://s3.amazonaws.com/nsfwdetector/min_nsfwjs.zip )
and I'm having several false positives.
100% non-adult face pictures get flagged as 90%+ porn
I tested also with the non-min model: https://s3.amazonaws.com/nsfwdetector/nsfwjs.zip
But, from the few examples I tried, it didn't change much at all, and some were even worse.
I see that in this issue: https://github.com/infinitered/nsfwjs/issues/276
You added some new "DAG 93" model.
Is this one supposed to have better accuracy?
What model is the best, and what should I use for best accuracy, please?
What is the difference between using the model provided in README (first link above),
and using the DAG one with { type: "graph" } ?
Are there pros and cons?
Thank you very much.

The new one is supposed to have better accuracy.
Use the DAG 93.  Can you provide some false positives here?   I can elaborate on the pros/cons, but I want to see if it fixes your issue first.
And sorry, I think that s3 link is outdated.

Hello,
Thank you.
I've just updated to the latest version of NSFWJS, and then loaded the DAG 93 model.
Tested against a number of false positives, and the "porn" % decreased to much more acceptable values for sure.
However, I tested a few images that are 100% porn and they would give 99% on the older model, but with the DAG93 they give 72.95% for one, 56.37% for another and 34.13% for the other, which doesn't make sense. There's a 4th image that I tested that it's not porn, but a semi-naked lady, and that one gave 89.48%.
With my examples, the new model just doesn't seem accurate at all.
Happy to give you examples, please give me your email so I can send privately to you.

Our latest model was provided by @TechnikEmpire so I'm tagging em here.
My email is Gant and the domain is infinite.red

NSFW Post!!!
My post is NSFW because I'm going to use some real talk here to get to the nitty gritty details of what I did differently.
Alright so with the very latest model that I trained, there was a significant change.
Changes to Training Data
I used the same training data that @GantMan used in older models, but I decided to clean it up. What I did was I loaded Yahoo Open NSFW model and I deleted all images from the porn category that had a classification score of 10% or less.
I then used Yahoo model to move all images out of the sexy category into the porn folder that had a score of 60% or more.
This translated into several thousand files for each category. There were thousands of files in the sexy category that were full blown pornography.  That's not sexy, that's porn.
There were probably a couple thousand images in the porn folder of bukakke. As humans we recognize what this is, but really it's just a closeup of a face. To a neural network it's just a face, and Yahoo's Open NSFW model confirmed this by classifying them as non-pornographic. Those images were blown away, so I'm really surprised that plain faces are coming up as porn.
There were also a couple thousand images of extremely obscure pornography. I took a peek and some of them I was like "this is a completely benign image", then I'd see a 3x3 pixel area of a penis hanging out of someone's pants. This is going to throw off the neural network, at least for training purposes. Those images were blown away.
The sexy category should now only really trigger when there's provocative images. i.e. someone rolling around on a boat in a thong and bra. Nudity should come up in the pornography category.
Remarks About Changing Accuracy
With regards to the scores for categories changing, this isn't necessarily a bad thing. The way this model is to be used is that the highest scored class wins, and that's how neural networks like this are scored as well. Top-1 and Top-5 accuracy. Even if a porn image is split up like so:
Porn: 21%
Sexy: 20%
Neutral: 20%
Drawing: 20%
Hentai: 19%

The model is still accurate. It's not even necessarily indicative of a problem in the neural network.
##Conclusion
What I believe happened here is twofold. First, I believe I've overfit the model by over-training it. I didn't notice this before, but your remarks made me take a second glance and it seems to be a bit overfit.
If you look at the posted Tensorflow output on this issue, you can see that train loss is decreasing while validation loss is increasing in the final train iteration.
Second, one-byte quantization would exacerbate this issue.
I think I'll run a new training session and get a new model published with one less iteration because it seems it was that last iteration that pushed the model over the edge.
Thanks for bringing this up!

Oh yeah I forgot, I also started the training session with training just the final softmax layer, then fine tuning for 5 consecutive sessions, then 2 more iterations with a highly reduced LR. I'll just train it the way I did the previous model and report back.

@GantMan - just sent the email. Please let me know if you didn't receive.
Thanks @TechnikEmpire - please keep me updated!

I've started training so sometime this evening I'll do a PR on the model repo.

I got the email @ghnp5  thanks so much.
@TechnikEmpire - thanks for checking for overfitting!  I'll look forward to your update.

Hey - any news? :)
Thanks!

Yeah I've retrained, I'll check your submissions against the new model before I publish.
I also got side tracked cause I'm not happy with this 93% ceiling fine tuning so I'm training mobilenet v3 large from scratch.

Great work  guys!!!
Porn: 21%
Sexy: 20%
Neutral: 20%
Drawing: 20%
Hentai: 19%

I am fairly new at this and I don't know what a good confidence score for each of the categories is.
I have used the current model on Android/IOS with impressive results. However, I still don't know how to choose a good confidence score.

@ghnp5 Yeah sorry for going MIA, I got tied up with a bunch of stuff. I have trained new models, I'm just coordinating reviewing your submission against them.

@ghnp5 If there's an urgency, you can simply revert back to this model:
https://github.com/GantMan/nsfw_model/releases/download/1.1.0/nsfw_mobilenet_v2_140_224.zip

I'm super excited to see your new model @TechnikEmpire !   Lots of people use NSFWJS and I'd love for your advanced model to be the de facto standard.

Great work guys!!!
Porn: 21%
Sexy: 20%
Neutral: 20%
Drawing: 20%
Hentai: 19%

I am fairly new at this and I don't know what a good confidence score for each of the categories is.
I have used the saved_model.tflite found https://github.com/GantMan/nsfw_model/releases/tag/1.1.0 on Android/IOS with impressive results. However, I still don't know how to choose a good confidence score.

Those scores were just an example. You just take the highest valued class and accept that. Don't get into thresholding the values. Simply take the neural network's prediction at face value.

 This will throw off any neural network, which is why colorization before inference is an extensive topic with various techniques.
Here's what happens to the scoring when I colorize that image:
BAD:  F: 70.99.jpg Class: 1 Confidence: 0.428323
GOOD:  F: 96.52.jpg Class: 2 Confidence: 0.908221
GOOD:  F: 70.99-Color.png Class: 2 Confidence: 0.827742

For future reference, it's very difficult to classify any network with a few images. This is why we split out 10% or more of our total data set for validation. According to that split ratio (against tens of thousands of images), Tensorflow tells us that the latest model is ~92% accurate. While this is a really good accuracy, note that 8% between where we're at and perfection (100%) is quite the chasm, so you're definitely going to see false positives and false negatives.
I'll be uploading the newly trained model for @GantMan to my attached PR here:
https://github.com/GantMan/nsfw_model/pull/60
I just need to convert it to tfjs first.

New model is attached to that linked PR. For greater clarity, my experimentation (the scores given above) are based on a FP16 version run through OpenCV::DNN, not the web or quantized web versions of the model.

I'm also new to the entire subject of preventing nsfw images uploaded by users entering my app without any sort of check for porn or violence. Now, I've read through the blog post here https://shift.infinite.red/avoid-nightmares-nsfw-js-ab7b176978b1 this github readme page as well as https://github.com/GantMan/nsfw_model
However, I'm still in the fog on what model file is right for me and where to get it from? What's the difference among the various model files eg normal vs graph? Could someone maybe add two or three lines to the readme page because I reckon that's something people new to the subject are struggling to understand in general?! 😃

I'm also new to the entire subject of preventing nsfw images uploaded by users entering my app without any sort of check for porn or violence. Now, I've read through the blog post here https://shift.infinite.red/avoid-nightmares-nsfw-js-ab7b176978b1 this github readme page as well as https://github.com/GantMan/nsfw_model
However, I'm still in the fog on what model file is right for me and where to get it from? What's the difference among the various model files eg normal vs graph? Could someone maybe add two or three lines to the readme page because I reckon that's something people new to the subject are struggling to understand in general?! 😃

@evdama I'm still using this one:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
The thing is that you cannot 100% rely on any of the models.
What we do is that if it detects 70%+, we show a popup to the user and ask them to confirm that this is not inappropriate, or otherwise don't proceed.

@evdama I'm still using this one:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
The thing is that you cannot 100% rely on any of the models.
What we do is that if it detects 70%+, we show a popup to the user and ask them to confirm that this is not inappropriate, or otherwise don't proceed.

@evdama I'm still using this one:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
In my experience, this one works the best.
The thing is that you cannot 100% rely on any of the models.
What we do is that if it detects 70%+, we show a popup to the user and ask them to confirm that this is not inappropriate, or otherwise don't proceed.

If any bad category comes up at 70% , then that's what it is. You're supposed to take the max value index and that's your category.
Also that model is extremely outdated and dwarfed by all of the newer models that I included in my pr's bringing in tf2 api. The original dataset is total garbage. With cleaned datasets and new models I've achieved over 98% accuracy.

@evdama I'm still using this one:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
In my experience, this one works the best.
The thing is that you cannot 100% rely on any of the models.
What we do is that if it detects 70%+, we show a popup to the user and ask them to confirm that this is not inappropriate, or otherwise don't proceed.

If any bad category comes up at 70% , then that's what it is. You're supposed to take the max value index and that's your category.
Also that model is extremely outdated and dwarfed by all of the newer models that I included in my pr's bringing in tf2 api. The original dataset is total garbage. With cleaned datasets and new models I've achieved over 98% accuracy.

ha! I was just afk making a tasty ☕  and already got two great answeres 👍
(those guys must be in lockdown as well so... 😂)
@TechnikEmpire Please, like you'd speak to a very motivated but unexperienced puppy, where do I get those files and how do I use them? Is it the entire .zip I found or just one of these? And once I have the right file/model, I'd just put it inside my Sapper's public/ folder and reference it with the .load() right?

ha! I was just afk making a tasty ☕  and already got two great answeres 👍
(those guys must be in lockdown as well so... 😂)
@TechnikEmpire Please, like you'd speak to a very motivated but unexperienced puppy, where do I get those files and how do I use them? Is it the entire .zip I found or just one of these? And once I have the right file/model, I'd just put it inside my Sapper's public/ folder and reference it with the .load() right?

Someone answered here, but seems the reply is gone. They were saying that the model I'm using is very outdated and that there's a new one with 98% accuracy.
Where can I find it?
The README of this repository points to the model I'm using, in the "Host your own model" section:
https://github.com/infinitered/nsfwjs#host-your-own-model

Someone answered here, but seems the reply is gone. They were saying that the model I'm using is very outdated and that there's a new one with 98% accuracy.
Where can I find it?
The README of this repository points to the model I'm using, in the "Host your own model" section:
https://github.com/infinitered/nsfwjs#host-your-own-model

Someone answered here, but seems the reply is gone. They were saying that the model I'm using is very outdated and that there's a new one with 98% accuracy.

Yup, it was @TechnikEmpire so I assume he'll come back with an even better answer...

Someone answered here, but seems the reply is gone. They were saying that the model I'm using is very outdated and that there's a new one with 98% accuracy.

Yup, it was @TechnikEmpire so I assume he'll come back with an even better answer...

@evdama I'm still using this one:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
In my experience, this one works the best.
The thing is that you cannot 100% rely on any of the models.
What we do is that if it detects 70%+, we show a popup to the user and ask them to confirm that this is not inappropriate, or otherwise don't proceed.

I use this model in my chrome extension, from what I remember it was the best however it looks like it's trained on professional porn and not more home-made as where my chrome extension is made for omegle, there are many people with bad lighting or blurry cameras and it doesn't detect them very well sadly

@evdama I'm still using this one:
https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/model
In my experience, this one works the best.
The thing is that you cannot 100% rely on any of the models.
What we do is that if it detects 70%+, we show a popup to the user and ask them to confirm that this is not inappropriate, or otherwise don't proceed.

I use this model in my chrome extension, from what I remember it was the best however it looks like it's trained on professional porn and not more home-made as where my chrome extension is made for omegle, there are many people with bad lighting or blurry cameras and it doesn't detect them very well sadly

The site at https://nsfwjs.com/ uses the 93% accuracy model, which I'm pretty sure I tried in the past and got worse results than I get with the model I'm currently using.

The site at https://nsfwjs.com/ uses the 93% accuracy model, which I'm pretty sure I tried in the past and got worse results than I get with the model I'm currently using.

I posted something and then thought better of it. I am the author of a closed-source program that uses such models and there are dirtbags that follow me on github and steal my oss so I'm doubly inclined not to help anyone.
However, I was the guy making big overhauls to this repo and for some reason @GantMan stopped merging my pr's.
https://github.com/TechnikEmpire/nsfw_model
Has stats for every kind of model I trained. Dunno if my site links are gone or not. But basically you just need to manually clean up the categories and the use the new tf2 api that leans on tfhub that I integrated and you'll hit much better numbers.

I posted something and then thought better of it. I am the author of a closed-source program that uses such models and there are dirtbags that follow me on github and steal my oss so I'm doubly inclined not to help anyone.
However, I was the guy making big overhauls to this repo and for some reason @GantMan stopped merging my pr's.
https://github.com/TechnikEmpire/nsfw_model
Has stats for every kind of model I trained. Dunno if my site links are gone or not. But basically you just need to manually clean up the categories and the use the new tf2 api that leans on tfhub that I integrated and you'll hit much better numbers.

Sorry not "this" repo, the model repo that drives this project.

Sorry not "this" repo, the model repo that drives this project.


About the test evaluation on Make3D dataset

Dear Author,
I hope you are having a good day. and thank you for your work.  I am trying to reproduce the results of make 3D dataset but the values are slightly different from the values proposed in the paper,  I would be happy, if you help me with this.  Thanks in advance.
my results
abs_rel        sq_rel      rmse          rmse_log
0,312           3.278       7.136         0,161
script.txt

Hi, please take a look at this link.

Hi, thanks for your reply.  I have already manipulated the code from the link.  It gives similar results in monodepth2 but I could not get similar results for lite-mono.

Please make sure if you are using the correct lite-mono checkpoint. What results did you get after modifying your code?

Ok I found out my error thanks for your time and reply


Update the mixin docs

Updates the mixin docs based on https://github.com/microsoft/TypeScript/issues/39118

This got peer reviewed at the docs meeting


Update fs2-core, fs2-io to 3.1.2

Updates

co.fs2:fs2-core
co.fs2:fs2-io

from 3.0.6 to 3.1.2.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "co.fs2" } ]

labels: library-update, semver-minor

Superseded by #239.


Tagging feature not available for api gateway stage using SAM model

It seems that resource tagging for resource type AWS::Serverless::Api is not available  using SAM model.
Also tagging is not working from the global section like we define in cloudformation template.

@arcsoftech At the moment, Tagging for AWS::Serverless::Api is not supported. Can you update this request to include how you envision this being added to the AWS::Serverless::Api? You can use #376 as an example. This will help in creating discussions on how the schema should look for this feature.

@jfuss It could be done same like we do for Lambda function as in "AWS::Serverless::Function" and translated to final CFN.
Here is how I envision it:-
SAM Template:
  ApiGatewayApi:     Type: AWS::Serverless::Api     Properties:       DefinitionUri: ./apigateway-proxy-api.yaml       StageName: !Ref AppEnv       Variables:         lbfunc: !Ref medibotApp       Tags:         parent_project: !Ref ParentProjectTag         environment: !Ref EnvironmentTag         billing_ref: !Ref BillingRefTag         application: !Ref ApplicationTag         key_contact: !Ref KeyContact         project: !Ref ProjectTag         STAGE: !Ref STAGETag
Transformed CFN Template:
`Type: "AWS::ApiGateway::Stage"
Properties:
MethodSettings:
- MethodSetting
StageName: String
Variables:
String: String
Tags:

Key: parent_project
Value:
Ref: ParentProjectTag
Key: environment
Value:
Ref: EnvironmentTag
Key: billing_ref
Value:
Ref: BillingRefTag
Key: application
Value:
Ref: ApplicationTag
Key: key_contact
Value:
Ref: KeyContact
Key: project
Value:
Ref: ProjectTag
Key: STAGE
Value:
Ref: STAGETag`

Any updates on the above ?

I saw that they used this issue as an example on a twitch episode https://clips.twitch.tv/PoorAthleticWalrusPeteZarollTie
They implemented in that episode but it looks like it has not been committed yet.

Need this feature for our application development too

@Nr18 I sm not able to view that link.Can you explain what they did?

They basically implemented this feature as an example full episode: https://www.twitch.tv/videos/256907743?collection=rjHIYEY1KRXuKA

@sanathkr May be I figured out why you got the invalid document exception in the above video/episode .In the transformed template Tags is not inside the "Properties" key but instead it is outside .Can I make those changes and make pr for the same .Just verifying if you already figured it out and merged the changes.Thanks

Is anyone actively working on this? If not I may attempt it myself.

I am currenttly looking for severless study source.
2018년 8월 28일 (화) 오후 9:20, Simon Baynes<EMAIL_ADDRESS>작성:

Is anyone actively working on this? If not I may attempt it myself.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384#issuecomment-416563167,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-pdiiZwBR_dQOUXhYfVufa41i1M8uFks5uVTWdgaJpZM4TTJro
.

@goldpenguin93
Are you close to raising a PR?

what is mean? that PR close?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384#issuecomment-416570275,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-pdo-0-QyxeDEtd-VWQLWCACKHE3R2ks5uVTujgaJpZM4TTJro
.

@goldpenguin93 - I meant do you have a pull request that you are nearly ready to create?

What is ready?
I went to your question because I am not understnad Alright?
2018년 9월 2일 (일) 오전 12:25, James Hood<EMAIL_ADDRESS>작성:

@baynezy https://github.com/baynezy feel free to contribute a PR for
this! 😊
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384#issuecomment-417866787,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-pdqYMojG_ZAlYHweIC27-5Do5vGstks5uWqbggaJpZM4TTJro
.

2018년 9월 2일 (일) 오전 12:29, Sanghyup<EMAIL_ADDRESS>작성:

What is ready?
I want to your question because I am not understnad Alright?
2018년 9월 2일 (일) 오전 12:25, James Hood<EMAIL_ADDRESS>작성:

@baynezy https://github.com/baynezy feel free to contribute a PR for
this! 😊
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384#issuecomment-417866787,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-pdqYMojG_ZAlYHweIC27-5Do5vGstks5uWqbggaJpZM4TTJro
.

@goldpenguin93 - I think @baynezy was thinking about submitting a fix for this issue, but was trying to determine if you were already close to submitting a fix for it, in which case they would not submit a fix since you were already working on it.
Submitting a fix on a GitHub repo is initiated by created a Pull Request (PR), which is why they asked if you were close to "raising a PR" (creating a PR). You can read more about Pull Requests here.
I was advising @baynezy to go ahead and create their own PR to fix this problem since it's unclear at this point if you are going to create one.

I am understand PR (self introduce) but Now, I am PR(Pull Request)
Understand. Also, I am coming soon PR(pull request) create.
2018년 9월 2일 (일) 오전 12:37, James Hood<EMAIL_ADDRESS>작성:

@goldpenguin93 https://github.com/goldpenguin93 - I think @baynezy
https://github.com/baynezy was thinking about submitting a fix for this
issue, but was trying to determine if you were already close to submitting
a fix for it, in which case they would not submit a fix since you were
already working on it.
Submitting a fix on a GitHub repo is initiated by created a Pull Request
(PR), which is why they asked if you were close to "raising a PR" (creating
a PR). You can read more about Pull Requests here
https://help.github.com/articles/about-pull-requests/.
I was advising @baynezy https://github.com/baynezy to go ahead and
create their own PR to fix this problem since it's unclear at this point if
you are going to create one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384#issuecomment-417867535,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-pdshO-MJpRCuMkeWKQSYNi1fpzjn2ks5uWqnNgaJpZM4TTJro
.

Great! Looking forward to your contribution!

Yap! I am comfirm
2018년 9월 4일 (화) 오전 3:45, James Hood<EMAIL_ADDRESS>작성:

Great! Looking forward to your contribution!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384#issuecomment-418176016,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-pdqLQY1SZE8QB4GBh7H-ANZIoCfkwks5uXXjGgaJpZM4TTJro
.

Is adding Tags supported on the standard CFN Stage resource? It isn't listed as a property in the docs:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html

Is adding Tags supported on the standard CFN Stage resource? It isn't listed as a property in the docs:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html

It seems to be supported according to the link you sent, is it newly added? Anybody working on a PR or what is the status?

@hhagblom Yes, that does seem to be a recent add, Tags were definitely not there before. In that case, tags should also be added to the SAM resource.

The docs do say that tags are now supported.
Tags should be added as a parameter to the ApiGatewayStage class: https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/model/apigateway.py#L28
Tags should be added as a parameter to the SamApi class: https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/model/sam_resources.py#L428
Add the tags in the api generator: in the init statement as well as when the Stage is being created

I created a PR to add this feature (#993).

I wonder to PR? What is mean?
2019년 6월 23일 (일) 오전 4:41, Eduardo Vieira<EMAIL_ADDRESS>작성:

I created a PR to add this feature (#993
https://github.com/awslabs/serverless-application-model/pull/993).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384?email_source=notifications&email_token=AHP2S5SDHUDE35O36LNFPJLP3Z577A5CNFSM4E2MTLUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKQCUY#issuecomment-504693075,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHP2S5U6NKEHMW3SLF7X7K3P3Z577ANCNFSM4E2MTLUA
.

@goldpenguin93 it means pull request

Ok, I undersand PR
Also, soon  I hands on to Pull Request.
2019년 6월 23일 (일) 오후 8:05, Joris Conijn<EMAIL_ADDRESS>작성:

@goldpenguin93 https://github.com/goldpenguin93 it means pull request
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/384?email_source=notifications&email_token=AHP2S5XBSQCDJK6AYNAEI4LP35KHZA5CNFSM4E2MTLUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYK33OY#issuecomment-504741307,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHP2S5VWRMXICAG2Y7O625DP35KHZANCNFSM4E2MTLUA
.

Pending v1.14.0 release

Is it also not possible to add Tags to AWS::Serverless::Function? I get an error when trying to do so.

@rynop AWS::Serverless::Function supports tags (spec reference), but note, the syntax is slightly different if you're used to the native CloudFormation AWS::Lambda::Function resource.
For AWS::Lambda::Function, it looks like this:
MyFunction:
  Type: AWS::Lambda::Function
  Properties:
    Tags:
      - Key: Foo
        Value: Bar
      - Key: Baz
        Value: Blah
    ...

For AWS::Serverless::Function, the equivalent looks like this:
MyFunction:
  Type: AWS::Serverless::Function
  Properties:
    Tags:
      Foo: Bar
      Baz: Blah
    ...

Closing this issue as this is released in v1.14.0


Add 'check_braodcast_status(token)` for network interface

The node operator would check how well his message is broadcasted, and decide whether to turn off his node.
The return value could be

Number of successfully relayed nodes
Some kind of a 'score' that considers how well the relayed nodes will actually relay well, according to their past activities.

I think the option 1 will be sufficient for now.

Number of successfully relayed nodes

One option: we can make any node directly reply to the sender when they receive a message.
Anyway, I'll think if there is a better way to achieve [1].

Some kind of a 'score' that considers how well the relayed nodes will actually relay well, according to their past activities.

Do you mean a sort of scoring system where every node is given a score by its peers?


BUG: Empty pipeline failed to tz_localize

tz_localize was failing on a dataframe with an empty MultiIndex.

Got the okay from @ssanderson


Not working after Comfy Update

Hi after updating comfy Anything Everywhere3? has stopped working also Toggle UE Link Visibility does not show, basically v2.5 has stopped working, i deleted the dir from web extensions as i did before but this time it does not work, the Anything Everywhere nodes work so i have had to change all my workflow around, ( i hope this does not keep happening everytime Comfy Update )

Not sure whats going on but after starting comfy a couple of times all are now working as they should... thank you


SVT name update

Its no longer separated by OS. Works for all

Rather than change the name on SVT-Windows, it would be better to freeze both SVT-Windows and SVT-MacLinux, and reactivate SVE-Terrain

Ok cool I'll do that


test: add unit test for proxy

add unit test for NewProxy

Codecov Report

Merging #1092 (6392bfe) into main (b68e331) will increase coverage by 0.78%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1092      +/-   ##
==========================================
+ Coverage   53.71%   54.49%   +0.78%
==========================================
  Files          36       36
  Lines        2290     2290
==========================================
+ Hits         1230     1248      +18
+ Misses       1014      996      -18
  Partials       46       46

see 1 file with indirect coverage changes


Future enhancement

Under Interpretations ...It would be great to be able to plot any two expressions and get a regression for the unknowns.

@drakene is working on this - thanks for the suggestion.


Adding xorg-libxt on Linux

Looks like xorg-libxt is needed on Linux as the build is failing without it.
ref: https://circleci.com/gh/conda-forge/freecad-feedstock/2

NVM. PR ( https://github.com/conda-forge/freecad-feedstock/pull/2 ) will solve this issue.


Fix sandbox teardown

Description of change
Update docker compose down command to use latest API
Type of change
Add an x to the boxes that are relevant to your changes.

[X] Bug fix (a non-breaking change which fixes an issue)
[ ] Enhancement (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Fix

How the change has been tested
Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.
Change checklist
Add an x to the boxes that are relevant to your changes.

[X] I have followed the contribution guidelines for this project
[X] 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
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes

@itsyaasir please ignore the Firefox failure, it is unrelated


Want to add some functionalities

want to add a functionality to get notified when a user I followed posted so that I can read.
Would like to add a functionality to SAVE a particular post of another user so that i can read later.

/gssoc/

/level3/

/assign

@Siddharth1006 Hey, did you make any progress? Also, I want to know how do you plan to implement your 1st feature considering that we don't have a user profile page just now?

@RushanKhan1 @AnanyaNegi  Please Mentor can I be Assigned on this Issue

/assign

create separate issues for both of these functionalities..


Add Kibana readiness probe, stop using oc scale for cluster start

Create logging deployments with non-zero replica counts
When we currently create the set of logging DeploymentConfigs, we
create them with zero desired replicas. This causes the deployment to
immediately succeed as there is no work to be done. This inhibits our
ability to use nice CLI UX features like oc rollout status to monitor
the logging stack deployments. Instead, we should can create the configs
with the correct number of replicas in the first place and stop using
oc scale to bring them up after the fact.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
Add a readiness probe to the Kibana container
In order to ensure that the Kubernetes machinery can determine when the
Kibana Pods are becoming ready, we need to add a readiness probe to the
Containers that make up those pods. The Kibana readiness probe simply
hits the base URL at http://localhost:5601/ and expects a 200.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>

@ewolinetz ack, too many things called "replicas" -- updated

thanks @stevekuznetsov !


[WIP] Squash doxygen errors.

See https://github.com/personalrobotics/aikido/issues/329.
This mainly involved fixing some doc-strings and renaming parameters.
TODO: I had some trouble squashing the warnings involving SplineTrajectory-impl.hpp. @jslee02 and other people who know doxygen better, could take a look? There doesn't appear to be an documentation in that file at all, so I'm confused 😖

Before creating a pull request

[x] Document new methods and classes
[x] Format code with make format

Before merging a pull request

[x] Set version target by selecting a milestone on the right side
[x] Summarize this change in CHANGELOG.md
[x] Add unit test(s) for this change

Hang on, flipped something. Will fix to satisfy Travis.

I've squashed some errors from the Robot API and deleted SplineTrajectory-impl.hpp. Should be good to go now. Please rubber stamp when you have the chance 😄

@brianhou I tried to look up ways to turn break the copydoc into multiple lines, but the only solution seems to manually turning clang format on/off 😢


test_coalescing might be flaky

test_coalescing failed in run https://github.com/scylladb/scylla-rust-driver/actions/runs/6473573762/job/17576595276.
It might be a flaky test.
 It uses join_all to wait for futures that return Result<...>, but the results are actually not checked. The test also performs lots of writes in parallel, so perhaps some of them time out or are rejected with an error, thus the latter query which is supposed to retrieve all of the rows fails (here, one of the rows is missing).
We should change join_all to try_join_all and perhaps reduce the concurrency so that the test doesn't fail with Cassandra.

I opened https://github.com/scylladb/scylla-rust-driver/pull/834 to fix the problem with join_all, but I didn't mark it as Fixes.
The test failed because one of the queries has failed, but join_all didn't cause this failure, it must've been something else.
The test doesn't do that much, it runs 44 queries at once, that should be absolutely fine.
My theory is that Cassandra was overwhelmed because it also had to run a test which runs a logged batch with 60k queries inside (it was a CI run for #824).
IMO the test looks okay, the failure was most likely caused by external factors. I think we can close this issue and reopen it if it fails again in the future.

The test is not OK because it does not propagate errors properly. However, I agree that it would still be flaky even if it did.
I'll close the issue as suggested.


how to forbid auto add select columns on group by

This is auto add，I hope group by only resourcepo0_.id

Hi,
you can control this through the following configuration property: https://persistence.blazebit.com/documentation/1.6/core/manual/en_US/#IMPLICIT_GROUP_BY_FROM_SELECT
Which version are you using? Since GROUP_CONCAT is actually an aggregate function, it should not end up in the group by clause. We actually have tests for his so I'm surprised to see this happening. Could you also share some of the code you are using so that we can try to reproduce this issue?

it should not end up in the group by clause. We actually have tests for his so I'm surprised to see this happening.

yes, the actual error is group_cancat can't use in group by clause

Hi,
you can control this through the following configuration property: https://persistence.blazebit.com/documentation/1.6/core/manual/en_US/#IMPLICIT_GROUP_BY_FROM_SELECT
Which version are you using? Since GROUP_CONCAT is actually an aggregate function, it should not end up in the group by clause. We actually have tests for this so I'm surprised to see this happening. Could you also share some of the code you are using so that we can try to reproduce this issue?

part of my code，group_concat_distinct is my custom function

You need to register the custom function as aggregate function for implicit group by to work properly. Blaze-Persistence by the way has its own implementation of group_concat (also the distinct version) which is already registered as an aggregate function.
To use this in the QueryDSL integration you use: JPQLNextExpressions.groupBy(groups.name) or for distinct JPQLNextExpressions.groupBy(true, groups.name).

Interesting, can we maybe support this string template stuff somehow @jwgmeligmeyling ?

We do support the string template stuff, as long as the function used is the same one we have implemented ;-) The problem is the user uses his own group_concat_distinct instead of GROUP_CONCAT ( ('DISTINCT' )? , string (, 'SEPARATOR', separatorString)? (, 'ORDER BY', ( orderByExpr, ( 'ASC' | 'DESC' ) )+ ) )

Since this can be solved by using the builtin function, I'll close this.

@luyuanx2 did it work for you?


[dv] Add testing CTRL_FSM_INTG and CTRL_FSM_CNT

Also fix a corner case that operation didn't occur to trigger the state
to transition to StInvalid
Signed-off-by: Weicai Yang<EMAIL_ADDRESS>

[Skimmed through, yet to review in detail].
Is there a way we could standardize (if not the full test itself, maybe at least the general methodology) how we verify FSM hardening features? It will be good to add a shared testplan entry explaining how the DV user needs to approach this (and enforce that this type of testing is done in all applicable blocks).
I think it will be worth talking about the in our Tuesday (or Wednesday?) full OT meeting. WDYT? @tjaychen

sounds good to me. It feels like full OT meeting would be good since this
spans almost the entire project.
On Thu, Sep 16, 2021 at 4:01 PM Srikrishna Iyer @.***>
wrote:

[Skimmed through, yet to review in detail].
Is there a way we could standardize (if not the full test itself, maybe at
least the general methodology) how we verify FSM hardening features? It
will be good to add a shared testplan entry explaining how the DV user
needs to approach this (and enforce that this type of testing is done in
all applicable blocks).
I think it will be worth talking about the in our Tuesday (or Wednesday?)
full OT meeting. WDYT? @tjaychen https://github.com/tjaychen
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/8156#issuecomment-921319203,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSUOQWJ7Q3EAASKOCYTUCJZMNANCNFSM5D2JYCUA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

[Skimmed through, yet to review in detail].
Is there a way we could standardize (if not the full test itself, maybe at least the general methodology) how we verify FSM hardening features? It will be good to add a shared testplan entry explaining how the DV user needs to approach this (and enforce that this type of testing is done in all applicable blocks).
I think it will be worth talking about the in our Tuesday (or Wednesday?) full OT meeting. WDYT? @tjaychen

sounds a great idea. Let me create a shared testplan for this and we can discuss in V2 review meeting next week.

can you guys think a bit about how we might introduce common anchor points
that DV could easily locate to automate this testing? (or would that be too
much?)
For example, the prim_flop we typically use to capture the raw value into
the normal state value could be made into it's own primitive of some kind,
and we can use that as a hint that there is a FSM sparse encoding that
needs to be tested.
On Thu, Sep 16, 2021 at 4:30 PM weicaiyang @.***> wrote:

[Skimmed through, yet to review in detail].
Is there a way we could standardize (if not the full test itself, maybe at
least the general methodology) how we verify FSM hardening features? It
will be good to add a shared testplan entry explaining how the DV user
needs to approach this (and enforce that this type of testing is done in
all applicable blocks).
I think it will be worth talking about the in our Tuesday (or Wednesday?)
full OT meeting. WDYT? @tjaychen https://github.com/tjaychen
sounds a great idea. Let me create a shared testplan for this and we can
discuss in V2 review meeting next week.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/8156#issuecomment-921331615,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSUZZYT6UUPTREHLOZ3UCJ42VANCNFSM5D2JYCUA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

can you guys think a bit about how we might introduce common anchor points that DV could easily locate to automate this testing? (or would that be too much?) For example, the prim_flop we typically use to capture the raw value into the normal state value could be made into it's own primitive of some kind, and we can use that as a hint that there is a FSM sparse encoding that needs to be tested.

seems very hard to achieve that. Not sure how to locate the path of FSM even if we know the primitive name. We also need to know what FSM value causes a fault. But we can create a generic task to be reused by all blocks, which will make things easier and more standard.

can you guys think a bit about how we might introduce common anchor points that DV could easily locate to automate this testing? (or would that be too much?) For example, the prim_flop we typically use to capture the raw value into the normal state value could be made into it's own primitive of some kind, and we can use that as a hint that there is a FSM sparse encoding that needs to be tested.

seems very hard to achieve that. Not sure how to locate the path of FSM even if we know the primitive name. We also need to know what FSM value causes a fault. But we can create a generic task to be reused by all blocks, which will make things easier and more standard.

Let me think about how we can achieve this (and lets discuss this in our next DV meeting).

@sriyerg as discussed, I add a TODO to find a more generic approach for testing sec_cm. perhaps let's merge this first. PTAL

last push is to fix the compile error introduced by solving the merge conflict.


[Feature request] add content-bottom slot to support comment components

Clear and concise description of the problem
The request to add a comment component at the bottom of the article is very difficult to deal with in the existing way.
According to the document, the bottom content will be inserted here in 1 instead of 2.

You need to add an extra slot for the real area at the bottom of the article
Suggested solution

add a slot name "content-bottom"
Alternative
No response
Additional context
No response

Reasonable, pr welcome (I suppose you can do that)


Warning in Log

When I start the adapter v2.1.0 (2019-02-03), this warning is displayed in the log

nuki-extended.0
2020-02-10 21:24:12.264
warn
(32326) Callback not attached due to error. See debug log for details.

If you change the instance to debug, what is the log additionally saying then?

I sent you an email

Please install current version v2.2.0 from Github. This will NOT fix the problem, but give more details in the debug log to narrow it down.

I have now loaded the new version and the adapter on "debug".
However, only the following is displayed:
"Callback not attached due to error. See debug log for details."
And the general expenses that came before.

The debug log you provided by e-mail states:
2020-02-10 21:36:07.533 - warn:   nuki-extended.0 (13823) Callback not attached due to error. See debug log for details.
2020-02-10 21:36:07.534 - debug:   nuki-extended.0 (13823)

Is the second log-entry right after warn (with type debug) still empty in your log?

2020-02-12 22:04:55.578 - warn: nuki-extended.0 (28941) Callback not attached due to error. See debug log for details.
2020-02-12 22:04:55.644 - debug: nuki-extended.0 (28941) getWebApi(): etc...

Don't ask me why, but now i have no more bugs

Glad to hear. Haven't had any clue what the error could possibly be ;-)


Translating quiz-app into ko(Korean) (in progress)

[x] Add ~kr~ ko quiz option on quiz-app
[x] quiz title
[x] 1
[x] 2
[x] 3
[x] 4
[x] 5
[x] 6
[x] 7
[x] 8
[x] 9
[x] 10
[x] 11
[x] 12
[x] 13
[x] 14
[x] 15
[x] 16
[x] 17
[x] 18
[x] 19
[ ] 20
[ ] 21
[ ] 22
[ ] 23
[ ] 24

skipped

I want to know that how to enrol or can say how to register for this course
of Web development.
On Thu 31 Dec, 2020, 2:16 PM Gopikrishnavallepu<EMAIL_ADDRESS>wrote:

skipped
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/Web-Dev-For-Beginners/pull/140#issuecomment-752892003,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASI4B5W2MPONYCREVGEF2JLSXQ253ANCNFSM4VOIUSNA
.

I want to know that how to enrol or can say how to register for this course of Web development.
…
On Thu 31 Dec, 2020, 2:16 PM Gopikrishnavallepu, @.***> wrote: skipped — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#140 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASI4B5W2MPONYCREVGEF2JLSXQ253ANCNFSM4VOIUSNA .

Please read the README- it’s a self study course

@minwook-shin 님, 안녕하세요!
먼저 번역하신 작업 덕분에 퀴즈 번역을 수월하게 하고 있습니다. 감사합니다!
먼저 각 퀴즈 타이틀을 번역하다 기존 제목에서 다음과 같이 변경하면
더 좋지 않을까 생각되는데 민욱님의 생각을 듣고 싶습니다.
https://github.com/microsoft/Web-Dev-For-Beginners/pull/140/commits/b9dbbfab46eb64b559048b3d211ed9ce565d094a

@minwook-shin 님, 안녕하세요!
먼저 번역하신 작업 덕분에 퀴즈 번역을 수월하게 하고 있습니다. 감사합니다!
먼저 각 퀴즈 타이틀을 번역하다 기존 제목에서 다음과 같이 변경하면
더 좋지 않을까 생각되는데 민욱님의 생각을 듣고 싶습니다.
https://github.com/microsoft/Web-Dev-For-Beginners/pull/140/commits/b9dbbfab46eb64b559048b3d211ed9ce565d094a

a note on the quiz path! We are now adding ?loc=ko to the end of the quiz url to specify a direct link to the translated quiz in the quiz-app! :) thanks

a note on the quiz path! We are now adding ?loc=ko to the end of the quiz url to specify a direct link to the translated quiz in the quiz-app! :) thanks

@jlooper hello! thank you for sharing the awesome feature!
I checked some error like the below screenshot.
so i fix like this https://github.com/microsoft/Web-Dev-For-Beginners/pull/140/commits/7fc4794fb111884a37e197bb864343de28e3bf7b

@jlooper hello! thank you for sharing the awesome feature!
I checked some error like the below screenshot.
so i fix like this https://github.com/microsoft/Web-Dev-For-Beginners/pull/140/commits/7fc4794fb111884a37e197bb864343de28e3bf7b

@jlooper I have one more question!
the all isCorrect fields of the below quiz are false.
Could you check this? thanks :)
https://github.com/microsoft/Web-Dev-For-Beginners/blob/f844caaff024203a68eff4a475cb559746d0da0a/quiz-app/src/assets/translations/en.json#L1693-L1703

@jlooper I have one more question!
the all isCorrect fields of the below quiz are false.
Could you check this? thanks :)
https://github.com/microsoft/Web-Dev-For-Beginners/blob/f844caaff024203a68eff4a475cb559746d0da0a/quiz-app/src/assets/translations/en.json#L1693-L1703

@jlooper I have one more question!
the all isCorrect fields of the below quiz are false.
Could you check this? thanks :)
https://github.com/microsoft/Web-Dev-For-Beginners/blob/f844caaff024203a68eff4a475cb559746d0da0a/quiz-app/src/assets/translations/en.json#L1693-L1703

Thanks for the QA! Let me fix this

@jlooper I have one more question!
the all isCorrect fields of the below quiz are false.
Could you check this? thanks :)
https://github.com/microsoft/Web-Dev-For-Beginners/blob/f844caaff024203a68eff4a475cb559746d0da0a/quiz-app/src/assets/translations/en.json#L1693-L1703

Thanks for the QA! Let me fix this

@jlooper I have one more question!
the all isCorrect fields of the below quiz are false.
Could you check this? thanks :)
https://github.com/microsoft/Web-Dev-For-Beginners/blob/f844caaff024203a68eff4a475cb559746d0da0a/quiz-app/src/assets/translations/en.json#L1693-L1703

fixed this, thank you!

@jlooper I have one more question!
the all isCorrect fields of the below quiz are false.
Could you check this? thanks :)
https://github.com/microsoft/Web-Dev-For-Beginners/blob/f844caaff024203a68eff4a475cb559746d0da0a/quiz-app/src/assets/translations/en.json#L1693-L1703

fixed this, thank you!

this ko quiz translation is done :)

this ko quiz translation is done :)

this ko quiz translation is done :)

spectacular! Thanks!

this ko quiz translation is done :)

spectacular! Thanks!


output when only '-minimal'

look at the result of the module as there is only one parameter '-minimal'

Find-TaskServiceUser -minimal should works like Find-TaskServiceUser -minimal -Task - Service. this change can be addressed as 1.4.0 because did not change API behavior

The lack of -Task and -Service parameters does not cause the syntax to be displayed, but only starts searching for tasks and services. Find-TaskServiceUser gives the same results as Find-TaskServiceUser -Task -Service.