Create cyber

The Vue.js Cyber Security Dashboard is a web application designed to provide users with real-time insights into their cybersecurity posture. The dashboard aggregates data from various sources, such as network monitoring tools, threat intelligence feeds, and security logs, to give users a comprehensive view of potential threats and vulnerabilities. The application features user authentication, data visualization, and alerts for suspicious activities.

This PR seems wrong. This project is just a readme with links to other projects.

This PR seems wrong. This project is just a readme with links to other projects.

It's spam, check the author's other PRs in different projects.


Does angular-cli support creating a project in JavaScript rather than typescript?

I am trying to create a new Angular project that uses pure JavaScript rather than typescript. I didn’t see anyway to specify that I want a JavaScript project in the CLI documentation. Is this possible? I was hoping that I could specify a param with “ng new”.
Thanks

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.
However the answer to your question is no.


When sorting on multiple fields, the second field is ignored in the order() call

I have a model that looks like:
@Entity("users")
@Indexes(@Index(fields = {@Field("lastName"), @Field("firstName")}))
public class User extends Model {
    @Indexed public String email;
    public String firstName;
    @Indexed public String lastName;
    public String employer;
}

and i have a query that looks like:
q.field("employer").containsIgnoreCase(input);
q.order("lastName,firstName");
q.limit(25);
q.offset(start);

What i've noticed is that the second field, in this case firstName is ignored. If i change the order, then lastName is ignored.
My objective is to sort on last name and first name, exactly how one might sort a phone book.
Using morphia version: 1.2.1 and java mongodb driver: 3.2.2
I am not sure if i'm missing something, i do have a compound index, in the sort order i am looking for, and i do not get any exceptions.

I just pushed a test that verifies that order() works correctly.  If you're still seeing oddities, please post some sample docs and any output to the mailing list.


Adding abstraction section to docs

Are consumer API section to some primitives

@benoitgrelard pushed a few amends based on your review, plus some extra things I noticed:

use @radix-ui/react-icons instead of the old package
Add missing .Root in TooltipPrimitive
Put the tooltip arrow inside the Content

@benoitgrelard pushed a few amends based on your review, plus some extra things I noticed:

use @radix-ui/react-icons instead of the old package
Add missing .Root in TooltipPrimitive
Put the tooltip arrow inside the Content

@benoitgrelard I decided to add the icons in the dropdown indicator. its consistent with how we add the close icon in the dialog close part.
Also, there were some react imports missing so I added them in too

@benoitgrelard I decided to add the icons in the dropdown indicator. its consistent with how we add the close icon in the dialog close part.
Also, there were some react imports missing so I added them in too

All good for me, @colmtuite happy to merge?

All good for me, @colmtuite happy to merge?

The subheadings can't be "Usage" and "Implementation", because we will have multiple custom API examples for many components.
We need to give each custom API a heading, then just use text to differentiate the consumer API code from the implementation code.

The subheadings can't be "Usage" and "Implementation", because we will have multiple custom API examples for many components.
We need to give each custom API a heading, then just use text to differentiate the consumer API code from the implementation code.

I don't think we can name these things. That's why I suggested to name the main headings: Custom API example(s).
Then the sub-headings should just be generic like Example 1, Example 2…

I don't think we can name these things. That's why I suggested to name the main headings: Custom API example(s).
Then the sub-headings should just be generic like Example 1, Example 2…

Also, so far we don't have one with more than 1 example anyway…

Also, so far we don't have one with more than 1 example anyway…

@colmtuite alright, I've added a title and a brief description. Let me know what you think

@colmtuite alright, I've added a title and a brief description. Let me know what you think


read timeout and eof are indistinguishable

Hello!
I am trying to write program which is able to detect device disconnection. I use usb serial device. My platform is Ubuntu 18.04 x86.
According to documentation read returns 0 on eof, and same happens if timeout occurs. I need both timeout and disconnection detection in my project.
The only correct solution I found is to use int rv = ioctl(fd, TCGETS2, &term2); if read returns 0. If rv equals -1 and errno equals 5 (EIO) - device has been disconnected, timeout happened otherwise. Key problem here is that EIO is not documented in local mans, neither in the mans I see on the Internet (except few mans which I am not sure are related to Linux and up-to-date).
Please dig this problem and find correct solution!
Thanks!

Hi @aldoshkind . I don't have the time to dig into this myself, but welcome a pull request to improve this library if you manage to improve the code to detect these different error conditions!

Fixed in 085f5468475af3654a1b99685790f8cbff6919af (thanks for the PR @aldoshkind !).


Is there a way to split an opendrive file of a large map into multiple small opendrive files

hello,
Is there a way to split an opendrive file of a large map into multiple small opendrive files?That is, split a large area map file into multiple small map files, all expressed in opendrive file format

@XieJinLiang we don't have the tool to split a map file into smaller ones because Apollo doesn't support hot swap of maps during execution times. We'll keep everyone posted if there's any change on that in the future. This issue is being closed. Please feel free to raise new issues if needed. Thanks for using Apollo.


Hydrogen support

For STREAM we needed to differentiate between H, D and T. On this branch we therefore implement support for that by introducing a new flag hydrogen in the Python interface and an implementation which is analogous to the one for tritium.

Ok, having the possibility to specify isotope number would be very nice, but it seems to me that the isotope functionality is only part of the SPIHandler and does not affect the ion mass in IonHandler? Since we have not included SPI functionality in STREAM it would probably require quite a bit of work to get a more generally applicable isotope functionality, and so it's probably better to just merge this now?

Wel, you wouldn't have to implement SPI functionality to make it work, but you are right that I haven't implemented any use of the isotope number in the IonHandler yet, so it seems reasonable to merge this now to not delay your work.


Test

Hi, training with the old code reports the following error while testing. How to solve this problem.
File "render.py", line 46, in render_set
d_xyz, d_rotation, d_scaling = deform.step(xyz.detach(), time_input, feature=gaussians.feature, is_training=False, motion_mask=gaussians.motion_mask)
ValueError: too many values to unpack (expected 3)

Hi,
It seems a bug of the old version to run render.py. Could you try the train_gui.py instead or transfer the rendering code from train.py to render.py? Sorry about that.

Hi, It seems a bug of the old version to run render.py. Could you try the train_gui.py instead or transfer the rendering code from train_gui.py to render.py? Sorry about that.

Can you tell me the details of the above operation? Thanks!


Better API interface of top-level functions and ParseResult

Instead of:
 assert_eq!(calculator::parse_expression("7+(7*2)", 0).unwrap().data, 21);

We should propose a version without the 0 offset parameter:
assert_eq!(calculator::parse_expression("7+(7*2)").unwrap().data, 21);

In nom:
A parser combinator in Rust is basically a function which, for an input type I and an output type O, will have the following signature:
fn parser(input: I) -> IResult<I, O>;

IResult is an enumeration that can represent:

a correct result Done(I,O) with the first element being the rest of the input (not parsed yet), and the second being the output value
an error Error(Err) with Err being an integer
an Incomplete(u32) indicating that more input is necessary (for now the value is ignored, but it should indicate how much is needed)

pub enum IResult<I,O> {
  Done(I,O),
  Error(Err),
  Incomplete(u32)
}
```

In rust-peg:
		struct ParseState<'input> {
			max_err_pos: usize,
			expected: ::std::collections::HashSet<&'static str>,
			_phantom: ::std::marker::PhantomData<&'input ()>,
			$cache_fields
		}

$cache_fields contains a std::collections::HashMap<usize, RuleResult<{}>> for each cached rules. With RuleResult being:
enum RuleResult<T> {
  Matched(usize, T),
  Failed,
}

Parsing functions have this interface:
fn $name<'input>(input: &'input str, state: &mut ParseState<'input>, pos: usize) -> RuleResult<$ret>

In combine:
///Enum holding error information
///As there is implementations of `From` for `T: Positioner`, `String` and `&'static str` the
///constructor need not be used directly as calling `msg.into()` should turn a message into the
///correct `Info` variant
#[derive(Clone, Debug)]
pub enum Info<T, R> {
    Token(T),
    Range(R),
    Owned(String),
    Borrowed(&'static str)
}

///Enum used to store information about an error that has occured
#[derive(Debug)]
pub enum Error<T, R> {
    ///Error indicating an unexpected token has been encountered in the stream
    Unexpected(Info<T, R>),
    ///Error indicating that the parser expected something else
    Expected(Info<T, R>),
    ///Generic message
    Message(Info<T, R>),
    ///Variant for containing other types of errors
    Other(Box<StdError+Send>)
}

///Enum used to indicate if a parser consumed any items of the stream it was given as an input
#[derive(Clone, PartialEq, Debug, Copy)]
pub enum Consumed<T> {
    ///Constructor indicating that the parser has consumed elements
    Consumed(T),
    ///Constructor indicating that the parser did not consume any elements
    Empty(T)
}

///Struct which hold information about an error that occured at a specific position.
///Can hold multiple instances of `Error` if more that one error occured at the position.
pub struct ParseError<P: Stream> {
    ///The position where the error occured
    pub position: <P::Item as Positioner>::Position,
    ///A vector containing specific information on what errors occured at `position`
    pub errors: Vec<Error<P::Item, P::Range>>
}

///The `State<I>` struct keeps track of the current position in the stream `I`
#[derive(Clone, PartialEq)]
pub struct State<I>
    where I: Stream {
    pub position: <I::Item as Positioner>::Position,
    pub input: I
}

///A type alias over the specific `Result` type used by parsers to indicate wether they were
///successful or not.
///`O` is the type that is output on success
///`I` is the specific stream type used in the parser
///`T` is the item type of `I`, this parameter will be removed once type declarations are allowed
///to have trait bounds
pub type ParseResult<O, I> = Result<(O, Consumed<State<I>>), Consumed<ParseError<I>>>;

Hi! If you need more insights into nom's design, please ask me :)
The Incomplete part of IResult now contains this:
pub enum Needed {
  Unknown,
  Size(usize)
}

Some constructions around nom use these for streaming parsers.

Hi! Thank you for your message, I will ask you for information on IRC.
BTW, I was not aware that a link could send a notification to repositories owner, I am sorry about that!

Interface changed to stream, convenient methods and documentation on ParseState have been added to ease the generated code and user interfacing.


Big O complexity of NumberOfPathsInMxNMatrix.java

Hello,
I'm trying to figure out the Big O complexity of both of the algorithm writtne in https://github.com/mission-peace/interview/blob/master/src/com/interview/dynamic/NumberOfPathsInMxNMatrix.java
Is it correct to say for countPaths
O(countPaths) = n + m + n*m
And what would it be for the recursive approach ?
thank you!

Hello @Frantch,
As you're traversing through the whole grid it's simply O(n*m) and space complexity is O(n*m). For the recursive approach, always you have to consider 2 paths to calculate and as you're not using a memoization technique, there are overlapping sub problems. So the time complexity is O(2^n).
Furthermore you can further improve the solution by reducing space complexity only to O(n) like,
public int uniquePaths(int m, int n) {
   int[] arr=new int[n];
   for(int i=0; i<m; i++) {
       for(int j=0; j<n; j++) {
           if(i==0 || j==0) {
               arr[j]=1;
               continue;
           }
           arr[j]+=arr[j-1];
       }
   }
   return arr[n-1];
}


Add ResponseHeaderSetFilter J2 mapping.

Purpose
This PR aims to address the issue mentioned in https://github.com/wso2/api-manager/issues/1272
Goals
Currently, we cannot set custom response headers for the web pages served in the APIM portals (publisher, dev and admin). The aim is to let users easily set custom response headers (ex: referrer policy, CSP ) for their specific usecases using deployment.toml as shown below.
[[tomcat.custom_response_header_filters]]
headers = "X-WSO2-Test-Header:Test Value, X-WSO2-Test-Header-2:Test Value-2"
filter_url_pattern = "/*"

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


make deprecation as warnings for rivers

There are depth and capacity parameters in nearly all of our WSIMOD models. I think rather than having to remove all these entries can we just make these deprecation notices as warnings?

one day this will happen... maybe


Remove the deprecated method Tools::jsonDecode, Fix Reset & Bump to 1.4.1

Questions
Answers

Description?
Remove the deprecated method Tools::jsonDecode

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?
Relative to PrestaShop/Prestashop#27962

How to test?
* Install the module (my PR)* Reset the module (no problem anymore)* Go to configure page (no problem anymore)* Release Test

Thank you @Progi1984 @florine2623


Support editing in UTC timezone

We have a use case where the date value needs to be displayed to the user and editable by the user in the UTC timezone, not in the user's local timezone. An option to enable this behavior would be very useful.

Sounds good. We can put the transition in $parser and $formatter.
BTW, how do you create the date object? It is a interesting use case.

I found this when looking around MDN

input[type=datetime] has been removed from WHATWG HTML: whatwg/html#336

Seems that type=datetime will be in local timezone in the feature.
--
Added datetime-utc option in version 2.1.0.

BTW, how do you create the date object? It is an interesting use case.

It is. Here's the basic idea. We want to allow a customer to edit a live video programming schedule, but when they schedule a video for 3PM, that's not a specific moment in UTC. Rather, it's 3PM in every timezone, which means that we don't actually care about the timezone of who is editing the schedule. Time zones are wholly irrelevant until the programming is viewed, and then we care about the timezone of the viewer.
The problem arises that $http converts dates to strings using JSON.stringify() which, while this does the right thing (converting local->UTC) in 99% of the cases, our case is the 1% where it's the wrong thing -- it converts to UTC and doesn't convey the local timezone offset, which means on the server end we get something like 7PM instead of 3PM, and no timezone information we could use to undo that conversion.
The best solution I can think of is to have all of the Date objects represented as though they were in UTC to the user, so when the conversion is applied we get the "right" data on the server end.  It's a hack, but there isn't much better a way of doing this with JS' obnoxious Date object.

Anyway, thanks very much for implementing this. I was going to take a stab at it myself and submit a pull request but you beat me to it. :+1:

IMAO, I will write a function to serialize the date object before sending through $http in such situation. Since the view value and model value doesn't match, it might have problem working with other date picker components.
If you are not going to use the date object but only sending them to server, you can try datetime-model option, which can convert the date object into string in any format you like. And since the conversion is done by the parser, the output value will match the user input. You also don't need to convert date string into date object when getting values from the server.

The date objects are used by other (custom) views that will expect them to be offset accordingly. It's not ideal, but forcing the objects to be "pre-serialized" seems like an even worse hack. I really wish $http would expose serialization functionality by type so that I could override how Date is handled without messing around with everything else. What I've come up with is an imperfect solution for an imperfect situation.

Fixed in 2.1.0.


Add function and method to plot ECG

Fixes #115.
An ECG trace can be plotted with the function sleepecg.plot_ecg(ecg, fs) or, if already available as an ECGRecord, with ECGRecord.plot(). The method automatically plots annotated heartbeats (which the function needs as an optional argument). Both variants support plotting an arbitrary number of annotations via varargs (e.g. to compare different detectors).

I added matplotlib as a required dependency. Should we do that? Alternatively, we could also soft-import it inside the plot_ecg() function. But then how do I annotate the return type of this function without importing matplotlib? @hofaflo

I solved this problem by returning None instead of plt.Figure. The only solution I've found is a stub file, but I really don't want to do this. We could add an axis parameter though, for people who want to plot on an existing axis.

To Do:

[ ] Add to docs

To fix rendering I would follow the MNE-Python config
https://github.com/mne-tools/mne-python/blob/2ba483ab91828be18a480e689d95f61c422ed6eb/doc/conf.py#L169-L178
With this folder structure of templates, which gets picked up by autosummary automatically (it looks for an autosummary folder inside your templates dir)
https://github.com/mne-tools/mne-python/tree/main/doc/_templates/autosummary
I don't think nested imports are so bad, but to avoid them usually creating a new file that the two problematic/cyclical files both need should work.

Thanks @larsoner! I will take a look at how it's done in MNE-Python. However, I am tempted to try mkdocs first, which seems to be a lot easier in terms of configuration (and less effort for me than continue looking into Sphinx extension settings). We'll see how this works out.
Re cyclic imports, I think nested imports are OK for optional third-party dependencies, but they look weird for local modules. I've removed the plotting functionality from classification, so this should work now with standard imports. If that doesn't work (in the future), I'll create a new module with the problematic imports.

Hmmm, not sure why it's still complaining about a cyclic import. I'm not importing anything from plot in classification.

@hofaflo I managed to fix the circular import by moving some stuff to utils.py. Also, the docs now correctly cross-ref the ECGRecord methods. IMO this is ready for review. I know we discussed that our plotting functions should continue to return a matplotlib.figure.Figure, but maybe this can be added later (e.g. after you fixed the type annotations warnings)?

Commits a575582, 376e8a4, 5145532, 6ea9560, and ee43db9 are not directly related to plotting ECG data. I'd prefer those changes to be made in a separate PR - could you remove them from this one?

I know we discussed that our plotting functions should continue to return a matplotlib.figure.Figure, but maybe this can be added later (e.g. after you fixed the type annotations warnings)?

I think it would be best to add the return now, but add the annotation when fixing the typing issues.

@hofaflo all of these commits were specific to Sphinx anyway. Now that we've switched to MkDocs, I think those changes are gone after rebasing. If you have time, please double-check – I will do that as well (and also continue to work on the open points).

The plots could get confusing when adding multiple additional annotations. Maybe they should be passed as a dictionary where the keys are used as legend entries?

I thought about that, but I wanted to be able to pass a NumPy array if there is just one sequence of annotations. I think this will be the case 99% of the time, so forcing users to pass a dict would be cumbersome.
Maybe we could clarify how to plot two sets of annotations with an example? I know the parameters are a bit unusual here, but in terms of calling the function it is very convenient.

Good point... we could allow passing arbitrary kwargs (in addition to *args)? I think using the function isn't too complicated, I'm just sceptical of legend-less plots ;)

Ah, you were talking about the legend, I didn't see that. Yes, if there are more than one sequences of annotations, there should be a legend with nice labels.
I guess we would have to move title before **kwargs then, right?
def plot_ecg(
    ecg: np.ndarray,
    fs: float,
    title: str = None,
    **kwargs: Optional[np.ndarray],
) -> None:

I guess we would have to move title before **kwargs then, right?

I agree. The Optional isn't necessary for variable arguments though, it just means something can be None (see here).

I agree. The Optional isn't necessary for variable arguments though, it just means something can be None (see here).

OK, so like this?
**kwargs: np.ndarray,

The provided type describes one kwarg, right?

Exactly!

What about the docstring description?
**kwargs : np.ndarray

or
**kwargs : np.ndarray, optional

?

To Do:

[ ] Update example figures
[ ] Add plot_hypnogram() to docs
[ ] Anything else?

@hofaflo I would like to stop returning a Figure, because this results in duplicated output in Jupyter notebooks (see the discussion here).
I understand that the reason why you want to do is because users can then modify the generated figure afterwards if necessary. I see at least three options how to proceed:

Just return None.
Add a new parameter which accepts either a Figure or an Axis, which users can first generate e.g. by fig, ax = plt.subplots(), and plot on this object.
Add a new parameter return_figure=False, which switches between returning None or a Figure.

WDYT? Do you have other suggestions?

I really want to allow users to modify (and save) created figures. While passing an existing (empty) Figure or Axis should be simple enough for plot_ecg´, it would be less straightforward for plot_hypnogram`. So to keep a consistent interface, I don't want to take this approach. This leaves two options which are both fine for me:

return a Figure and let users assign or use ; to suppress the duplicated output
introduce the return_figure parameter you suggested above

Then let's add the parameter.

There's another option: the plot functions could return fig, ax. This prevents duplicate plots in notebooks. I tend to prefer this option, because we don't have to introduce a new parameter then. WDYT?

There's another option: the plot functions could return fig, ax.

That's perfect, very nice find!

The only thing missing now is a short example for plot_hypnogram() in the docs. Will add that later.

I think this looks good now! @hofaflo please feel free to merge if you are happy.
One thing I would like to change (in another PR) is that the content area (middle column) is pretty narrow. This is especially visible in the "Classification" section, where tables need to be scrollable. We could fix this by hiding the right sidebar (TOC), which I think is not needed.

Done @hofaflo!

Perfect, thanks @cbrnr!


Added MainPHCalc.js

Issue Id you have worked upon -
#71
Briefly explain your program logic -
This application allows users to input a pH value, click the "Calculate pH" button, and see whether the pH is acidic, neutral, or alkaline. The pH calculation is performed in the calculatePh function, and the result is updated in the result state variable.
Screenshots(Attach 2 screenshots of your own input and output) -

By raising this PR I affirm that -

[x] My code follows the guidelines of this project.

[x] I have performed a self-review of my own code.

[x] I have commented my code.

[x] My code gives the correct output.

[x] I affirm that I strictly follow contributing guidelines and code of conduct.

Congratulations 🎉 @Saifullah00 on your contribution.

Hey 👋, may you also encourage us by clicking the star icon on the repository main page. ⭐

Congratulations 🎉 @Saifullah00 on your contribution.

Thank you for the opportunity 😊

Hey 👋, may you also encourage us by clicking the star icon on the repository main page. ⭐


User guide

Added first edition of user guide in using error mitigation tools on a quantum simulation example problem.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.227%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1125

Relevant Lines:
1320

💛  - Coveralls


Compile errors using vscode

When compiling it mainly complains about the order of the variable declarations
Swapping line 192 and 193 in the header file fixes the issue.
Compile log:
In file included from lib\Arduino-FT6336U\src\FT6336U.cpp:9:0:
lib\Arduino-FT6336U\src\FT6336U.h:127:14: warning: extra tokens at end of #ifdef directive
#ifdef ESP32 || ESP8266
^
lib\Arduino-FT6336U\src\FT6336U.cpp:16:14: warning: extra tokens at end of #ifdef directive
#ifdef ESP32 || ESP8266
^
In file included from lib\Arduino-FT6336U\src\FT6336U.cpp:9:0:
lib\Arduino-FT6336U\src\FT6336U.h: In constructor 'FT6336U::FT6336U(uint8_t, uint8_t)':
lib\Arduino-FT6336U\src\FT6336U.h:193:22: error: 'FT6336U::rst_n' will be initialized after [-Werror=reorder]
uint8_t rst_n = -1;
^
lib\Arduino-FT6336U\src\FT6336U.h:192:22: error:   'uint8_t FT6336U::int_n' [-Werror=reorder]
uint8_t int_n = -1;
^
lib\Arduino-FT6336U\src\FT6336U.cpp:13:1: error:   when initialized here [-Werror=reorder]
FT6336U::FT6336U(uint8_t rst_n, uint8_t int_n)
^
In file included from lib\Arduino-FT6336U\src\FT6336U.cpp:9:0:
lib\Arduino-FT6336U\src\FT6336U.h: In constructor 'FT6336U::FT6336U(uint8_t, uint8_t, uint8_t, uint8_t)':
lib\Arduino-FT6336U\src\FT6336U.h:193:22: error: 'FT6336U::rst_n' will be initialized after [-Werror=reorder]
uint8_t rst_n = -1;
^
lib\Arduino-FT6336U\src\FT6336U.h:192:22: error:   'uint8_t FT6336U::int_n' [-Werror=reorder]
uint8_t int_n = -1;
^
lib\Arduino-FT6336U\src\FT6336U.cpp:17:1: error:   when initialized here [-Werror=reorder]
FT6336U::FT6336U(uint8_t sda, uint8_t scl, uint8_t rst_n, uint8_t int_n)
^
lib\Arduino-FT6336U\src\FT6336U.cpp: In member function 'uint8_t FT6336U::readByte(uint8_t)':
lib\Arduino-FT6336U\src\FT6336U.cpp:254:12: warning: 'rdData' may be used uninitialized in this function [-Wmaybe-uninitialized]
return rdData;
^
cc1plus.exe: some warnings being treated as errors
In file included from src\main.cpp:15:0:
lib/Arduino-FT6336U/src/FT6336U.h:127:14: warning: extra tokens at end of #ifdef directive
#ifdef ESP32 || ESP8266
^

I still see a lot of compiler warning when compiling with this library.
Compiling .pio/build/wt32-sc01/lib359/FT6336U CTP Controller/FT6336U.cpp.o
In file included from .pio/libdeps/wt32-sc01/FT6336U CTP Controller/src/FT6336U.cpp:9:0:
.pio/libdeps/wt32-sc01/FT6336U CTP Controller/src/FT6336U.h:128:14: warning: extra tokens at end of #ifdef directive
 #ifdef ESP32 || ESP8266
              ^
.pio/libdeps/wt32-sc01/FT6336U CTP Controller/src/FT6336U.cpp:16:14: warning: extra tokens at end of #ifdef directive
 #ifdef ESP32 || ESP8266
              ^
.pio/libdeps/wt32-sc01/FT6336U CTP Controller/src/FT6336U.cpp:27:14: warning: extra tokens at end of #ifdef directive
 #ifdef ESP32 || ESP8266
              ^
.pio/libdeps/wt32-sc01/FT6336U CTP Controller/src/FT6336U.cpp: In member function 'uint8_t FT6336U::readByte(uint8_t)':
.pio/libdeps/wt32-sc01/FT6336U CTP Controller/src/FT6336U.cpp:258:12: warning: 'rdData' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return rdData;
            ^

I believe #ifdef ESP32 || ESP8266 should be  #if defined(ESP32) || defined(ESP8266).
Would you like me to create a Pull Request for this change?

Hi @fvanroie,
Thanks for notification. I misunderstanding about the operation of #ifdef.
I already fixed this issue. Please pull it.

The #ifdef warnings are now indeed fixed. There is still one compiler warning remaining though:
 .pio/libdeps/m5stack-core2/FT6336U CTP Controller/src/FT6336U.cpp: In member function 'uint8_t FT6336U::readByte(uint8_t)':
.pio/libdeps/m5stack-core2/FT6336U CTP Controller/src/FT6336U.cpp:258:12: warning: 'rdData' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return rdData;
            ^

Initializing the value     uint8_t rdData = 0; fixes that one too.
We use the touch driver in our project and it is working great. Your work is much appreciated!

Hi fvanroie,
Thank you for checking my code on pio.
I fixed it.

All's good now. Great and thank you for creating this library.


fixed clicking submit without selecting an option

While clicking submit button without selecting any option, there used to be no response. Now I have added an alert message to fix it.

thanks for you contribution


ReoGrid-master    Editort

ReoGrid-master    Editor language cannot be switched?

Currently the English and Japanese are supported and can be switched from Editor's menu.


cant build example app on simulator

it is not possible to run the application with changes as in the readme, so I tried to run an example taken from the git. I got the same error and don't understand what I'm doing wrong. I'll try to run it on the simulator.
crash.txt

What's the solution to this?


Expand removal options

This aims to make the performance tradeoffs explicit when removing items.

New shift_remove and shift_take perform O(n) removal, like Vec::remove
The existing swap_* methods already perform like Vec::swap_remove
Ambiguous remove and take methods, which currently swap, are deprecated in favor of explicit shift/swap methods.

Fixes #90.

As we're talking about a new release, I realized that I was also sitting on these changes in a branch...

Makes sense. The release is already pushed out, but there can be more releases :slightly_smiling_face:
What kind of deprecation is intended? My first thought that it would be a "permanently" deprecated method, since one design guideline was drop-in compatibility with HashMap. So you can switch hashmap implementations easily, and with the warning you can realize you have a choice of removal option.
I'm afraid the deprecation message will be annoying for those that don't mind the current behaviour?

looks good to me

What kind of deprecation is intended? My first thought that it would be a "permanently" deprecated method, since one design guideline was drop-in compatibility with HashMap. So you can switch hashmap implementations easily, and with the warning you can realize you have a choice of removal option.

Yes, this makes sense to me. We have a similar situation on rayon find with a deprecation note. I think later we added the #[doc(hidden)] to avoid clutter.

I'm afraid the deprecation message will be annoying for those that don't mind the current behaviour?

Maybe so, but it's an easy fix to use swap_ or #[allow(deprecated)]. Do you envision folks wanting to flip back and forth? I'd think that would only be during some initial evaluation.

Thank for adding this!  tests/ directory has no mention of shift_remove :sweat_smile: and I'm adding a quickcheck test now for that reason.

Indexmap 1.2 is released including this feature :slightly_smiling_face:


Question: Results aren't sorted by distance from my current location?

Yes, the list is rather displayed based on the rating of the search results.

Shouldn't it show the results according to distance from my current location? Is it possible?
Ideally, I don't care about the ratings of the fire station if it's 25kms away from my place and there are other fire stations nearby me.

I tried but the results were not turning out to be very accurate.
Also, if we consider the fact that at times it may happen that although a place might be a few kilometres away, it might not be far better than the nearest one (say a restaurant).
So, the decision to got with results sorted in order of ratings was kind of a work- around (considering the above two problems) such that the best possible results are displayed within the radius of 10 kilometres.

Fair enough :+1:


create structure for portfolio and onboarding docs

use wiki or pages

[ ] portfolio
[ ] onboarding
[ ] meeting minutes

@UC-Teresa, I re-ordered the minutes to show the most recent on top.


New Version Bug: Going back to Login when joining room while in room

When joining a room while in another room (via mini player in the top right) the user is sent back to "Login with GitHub"
Steps to reproduce the behavior:

Join a room
Click on the DogeHouse logo (to go back to the dashboard)
Join another room
See error

Expected behavior
The user should leave the current room and join the one they clicked on.
What device are you on?
Windows 10, Google Chrome Version 89.0.4389.90

I’m working on fixing this!

It's gone, I didn't do anything.

Can confirm I don't have the bug either now. That's maybe because the login page got redone?


[Feature] just before changing/opening project execute direnv

I have feature request for this plugin. Not sure if fesible or not, or even should be part of this or not, but it would be great that when one of the project get activated, if any direnv (.envrc) file exisits then allow to excute that.
My lot of project relies on activating the .envrc, which intern enable some extra binaries for the project or dependencies and then LSP or formatter might work. With that this plugin becomes little un-useful. For non-env projects this plugin has been helping me out a lot. Kudos to dev!
I can think of work flow something like below,

open neovim in home directory
open project picker and selct project
if envrc directed and if its allow then load the envrc first. All the path will be reloaded as well (I guess this is the hardest part)
update the cwd for nvim-tree
since path is updated, LSP will load happily
null-ls will find the needed binary tucked inside the envrc paths
when switching the project, clenup the envrc and start from third step.

@ahmedkhalf
While thinking further, I feel that this feature requests is out of the scope of the project.
But It would be great if we have some sort of hook (unless I am missing existing of one), to run certain command, before it trigger some sort of environment changes for telescope or nvim-tree etc.

Yes, something more general, i would like the ability to run a function before and/or after the project opening
a pre-hook and a post-hook

There is a plugin called direnv.vim provided by the direnv team that does this. Work nicely with project.nvim.


Add a setup guide for Windows

This PR adds a setup guide for Windows which I posted on the Discord a few months ago. Others have tried and said it works for them, so I figured I'd add it here for others to see as well. Others can add guides for Linux and MacOS as different headings, so that we can have an all-in one file for everyone to use.

I can confirm the guide works.


cadence-cassandra-tool forcibly closes connections to cassandra

I have noticed I get errors in the cassandra logs when install-schema is run. It seems like cadence-cassandra-tool is not closing the connection correctly.
INFO  [Native-Transport-Requests-1] 2018-01-30 08:38:50,371 MigrationManager.java:310 - Create new Keyspace: KeyspaceMetadata{name=cadence, params=KeyspaceParams{durable_writes=true, replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, replication_factor=1}}, tables=[], views=[], functions=[], types=[]}
INFO  [nioEventLoopGroup-2-4] 2018-01-30 08:38:50,614 Message.java:623 - Unexpected exception during request; channel = [id: 0xd5fa25c9, L:/<IP_ADDRESS>:9042 - R:/<IP_ADDRESS>:50140]
java.io.IOException: An existing connection was forcibly closed by the remote host

close due to issue age, if issue still exists, please re-open this / open a new one


⚠ Bofrost.be has degraded performance

In c1b2fda, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1514 ms

Resolved: Bofrost.be performance has improved in 8eb0d02 after 6 minutes.


Replace Organisation filter with an auto-complete box

This change progressively enhances the Organisation filter select
element with alphagov/accessible-autocomplete.
As the name suggests, this change gives us an accessible approach to
offering auto-complete on the long Organisations field.
In order to accommodate the change, JavaScript files must now be
explicitly included in the application.js manifest, because we now
have load-order dependency in our scripts.
The change adds JavaScript and CSS from the accessible autocomplete
project. However, the styling has been modified to fit in better with
surrounding Boostrap styling.
A polyfill for .bind is also included, because this function is not
supported by older browser, including PhantomJS, which we use to run
feature tests.
Finally, this change also bumps our version of govuk-lint, in order to
allow BEM Sass styling, which is used by the autocomplete component.

 (8) Search as you type for organisations to filter by


service/block: Remove block fetching capability from BlockService

This PR is the first step necessary to resolve #251 (it resolves the first TODO).

Btw, there should be a changelog entry for this one.

@adlerjohn, note that this PR is a part of a bigger goal and changes here might not make sense in isolation

@Wondertan I gathered that much 😂. So long as the noted peculiarities are expected I have no issue with them temporarily existing.

@adlerjohn closing this PR in favour of #317


Helm rollback to last successful release

It would be nice to have helm rollback LAST or something of the like. Or it could be even fancier like git where you could do math helm rollback LATEST~1 or something of the like.

It should probably follow something similar to kubectl rollout:
# Rollback to the previous deployment
kubectl rollout undo deployment/abc

# Rollback to deployment revision 3
kubectl rollout undo deployment/abc --to-revision=3

I kinda like the Git symbolic notation.

I actually like it too. My thought for using something similar for kubectl rollout was to maintain consistency, but I don't think it is a huge deal 😄

Totally. I think the --to-revision behavior is already present, though. Unless I'm misunderstanding what that does. I do like to stay consistent with kubectl when possible.

I think that at least the core functionality of helm rollback LAST is fairly trivial, so I am marking this as a starter
Just to summarize where I think we are:
Today you can do helm rollback MyRelease 2 to rollback to version 2. But it would be nice to have a shorthand way of just rolling back to the last version that was not a FAILED release.

@technosophos I had this vague recollection that the helm rollback LAST functionality was already implemented, but I could not find it back in the documentation. I dug a bit further and by reading the code, I learned it indeed is implented here.
So doing a helm rollback MyRelease 0 will roll back to the last version. This creates another release number though, so it will only work for one single rollback.
Seems like this has been an undocumented feature since October!

I can confirm that rolling back to revision 0 works.
kubectl rollout undo deployments <name> --to-revision = 0 works the same way.

I think I've mentioned it a few times in Slack... Not sure how this issue skipped past my view. Yes, this has been a feature since #1248 was first introduced a year ago from today :)
I recall a long time ago (as seen in #1248), calling helm rollback <release-name> would imply a revision of "0", causing a rollback to the previous release. It appears the version is now a mandatory argument for helm rollback. We should see if we can make that optional again.

Strange enough last time I tried this, Helm gave as output it rolled back successfully but I saw no changes in my cluster. It has been on my todo list to look into, but I was expecting it might have just been removed from Helm as this feature was never documented.

IMO it'd be really useful to give an arbitrary tag to a release number and do a rollback to that tag. Something like helm rollback tag <REVISION> 1.0.0 and helm rollback <RELEASE> 1.0.0 In my case I'm using a helm chart that includes istio route rules for canarying between two releases. Each change of the weights is a separate helm release. With an arbitrary tag, I can tag the release prior to changing weights and be able to rollback to it regardless of how many times I've changed weights and without having to track how many releases have been made.

/remove-lifecycle stale

What is the status of this? Right now in my CICD pipeline if the install fails I have to run a script to get the last successful revision number to rollback too. Which then the rollback is automated on deployment failure.

Afaik nobody in the community is working on this effort

Nowadays, I just backup and restore Helm release config data. When I restore releases data, I should run helm rollback release_name lastest_version to recreate pods.


State Measurements not working for real device

Hi,
As mentioned here https://github.com/MicrosoftDocs/azure-docs/issues/15177 I cannot get state measurement to work for a real device. I have added telemetry and alerts to a template and they work fine:

But as you can see, the state is not displaying. I have set up the state with motion detected (1) and motion not detected (0). However, when I post the value of 1, no data is read.

Thanks for the feedback! We are currently investigating and will update you shortly.

Hello @henrybluey can you please clarify the documentation you are following and on which step you are blocked? Thank you!

Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Debug sidebar - Filter this node - doesn't...

Current Behavior
Two related issues

If I have the debug sidebar open with several nodes pointed at it...  (in all nodes or current flow mode) - and then use the select button on right of a debug message

to select "Filter this node" - It does not... as the main select

stays as it was.
The main select is set as "selected nodes" and you then select "filter this node" - it starts to filter - but only using the first node it finds in the selected nodes option menu - again not the one you actually select.

(It would also be nice if the "selected node" selection sub-menu allowed selection of the nodes by clicking in the workspace (like the catch and status nodes do) - to make it easier to select between debug nodes that are all called msg.payload by default :-)...
Expected Behavior
In case 1) I would expect the selection of "Filter this node" to force the overall filter to be selected nodes only mode
and then for case 2) I would expect it to then correctly select the node chosen to filter on.
Steps To Reproduce
For case 1) leave debug in all nodes mode - wait for debug to appear - select Filter this node option for either... note both messages still appear...
For case 2) set selected nodes mode - wait for debug - select Filter this node on the "From timestamp" debug node - see that the debug only contains messages "From hello" instead.... (and can be seen incorrectly selected in the selected nodes top dropdown.)
Example flow
[{"id":"f99899a2e1cc0e08","type":"inject","z":"4aa2ed2fd1b11362","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"8","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Hello","payloadType":"str","x":160,"y":100,"wires":[["f7f67fbef3c0d07b"]]},{"id":"f7f67fbef3c0d07b","type":"debug","z":"4aa2ed2fd1b11362","name":"From hello node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":530,"y":100,"wires":[]},{"id":"dff6ecb128518c17","type":"inject","z":"4aa2ed2fd1b11362","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"9","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":180,"y":200,"wires":[["c1d12b646a328684"]]},{"id":"c1d12b646a328684","type":"debug","z":"4aa2ed2fd1b11362","name":"From timestamp node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":540,"y":200,"wires":[]}]

Environment

Node-RED version: 2.1.1
Node.js version: 14.18.1
npm version: 6.14.15
Platform/OS: Mac OS
Browser: Chrome

I have no idea what this feature is supposed to do, it appears to do nothing..

Fixed since NR 3.1.1


Why the recognition accuracy different from paper?

I applied the pre-trained model on ICDAR15 datasets, but the results are different from the reported ones in the paper?

Hi @zobeirraisi
I am also interested in this work. It'd be greatly appreciated if you can post the results on datasets that you have tried.

Hi @zobeirraisi
I am also interested in this work. It'd be greatly appreciated if you can post the results on datasets that you have tried.

This is my results for ICDAR15 dataset:

Thanks @zobeirraisi
So the actual accuracy is ~71%
We can wait for responses from the authors

There are  label nosie in IC15 test set, and I have relabeled. So the recognition accuracy different from the original IC15 test set.

There are label nosie in IC15 test set, and I have relabeled. So the recognition accuracy different from the original accuracy which is 91.8%.

Thanks @zobeirraisi
So the actual accuracy is ~71%
We can wait for responses from the authors

I don't  kown what happend to you, it work well in my computer.

Hi @zobeirraisi
I am also interested in this work. It'd be greatly appreciated if you can post the results on datasets that you have tried.

Hi @Jyouhou
This is my results for ICDAR15 dataset:
Link

I checked my prediction result, I don't know why our result different. For example, word_26_00.png##Kappa##Kappa##
word_27_00.png##CAUTION##CAUTION##
word_50_00.png##l:HOU##:HOU##
... are all corrent in my prediction.

@Jyouhou @zobeirraisi Hi, can you tell us more about your pretrained model

@fengxinjie @zobeirraisi @li10141110 @Jyouhou
hmmm....
The developer seems to be avoiding #3 on simple documentation of the steps to train and predict icdar2015, and doesn't seem to reply back with clear answers.
Sure, the paper states that almost all the results have 100% accuracy :sunglasses:
But without documentation on step-by-step of how to train icdar2015, is it safe to say that the accuracy might as well be 200%

According to my guess, the performance of this implementation should be 85% on IIIT-5K.

@delveintodetail have you trained.
the developer didnot reply clearly in the matter of training.
whether he crops the icdar words, or what....

@delveintodetail have you trained.
the developer didnot reply clearly in the matter of training.
whether he crops the icdar words, or what....

It is not because of the data preprocessing, the evaluation of this code is wrong.

@delveintodetail Is there wrong in the predict.py file?

I have been training this model on the ICDAR 2015 Word Recognition dataset (IC15) with no relabeling of the mislabeled data using the code provided.
In order to recognized all the characters in the datasets, the vocab used was:
vocab =  "<=,.+:;-!?$%#&*' ()@éÉ/\[]0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ>"+'"'+"´"+"΅"
If one keeps training and relies only on the loss on the test dataset,  the model will overfit  and I have obtained different models with 100% on the test dataset.
This means that even the mislabeled data is reproduced exactly just as the human labeled it with the errors.
(Note: the model is only trained on the training dataset! Never on the test dataset! Yet, the best models on the inference on the test datasets were saved as training progressed).
Typically, such models may have relatively poor performance on the training data itself:
On testing data:
Summary: # wrong: 0 # total: 2077 wrong 0.0%
On training data:
`Summary: # wrong: 1959 # total: 4468 wrong 43.85%
Starting from scratch, training and saving only the models that improves **both** the **inference** performance on both the **test** data and the **training** data, then one can get results like this after 1533 epochs using batch_size = 64:  on test data: Summary: #wrong: 11 #total: 2077 wrong 0.5%on training data: Summary: #wrong: 620 #total: 4468 wrong 13.9%`
Inspection shows that some of these models give the same answer as the human on some of the mislabeled data, at least on the test dataset.
As training progresses and new models are saved, the inference performance particularly improves on the training dataset while more slowly improving on the testing dataset.
Thus this models seems an overkill on the ICDAR 2015 dataset and the mislabeling makes comparison difficult.

The results above were obtained with the code provided as is.
Since then, I realized from my results and reading others that
nevertheless, there is apparently an error in the code, which essentially trains the network when the validation is run. It is part of the initial code provided in the Annotated Transformer that the authors refer to.
see issue testloss would lead to model update on eval mode #7
#7


add I

added #21

@komal7141  you have merge conflicts please resolve and update your repo

@komal7141 you have merge conflicts please resolve and update your repo

resolved it.

Woah... just removed everything to resolve conflicts 🫡🤯. @komal7141, this is not the way to resolve conflicts. You need to accommodate your changes in a way that it associates with the changes causing the conflict. Don't worry, no big deal (although it could have been one 😅)
Look do this,

copy your function code somewhere else
reset back to the commit before you added any changes.
pull the new changes.
add your function.
commit and push.

If you get stuck somewhere, ask for help in the community or you may dm me as well.

Woah... just removed everything to resolve conflicts 🫡🤯. @komal7141, this is not the way to resolve conflicts. You need to accommodate your changes in a way that it associates with the changes causing the conflict. Don't worry, no big deal (although it could have been one 😅)
Look do this,

copy your function code somewhere else
reset back to the commit before you added any changes.
pull the new changes.
add your function.
commit and push.

If you get stuck somewhere, ask for help in the community or you may dm me as well.

okay sir. thanks for info.
I will try to do. if I face some problem then i will reach you.


Tidy verify_accounts_hash()

Problem
While looking into an accounts hash calculation issue during startup verification, I noticed that the verify_accounts_hash() is in need of some tidying up. Comments are out of date, logs are wrong, code is duplicated, etc.
Summary of Changes

this fn verifies the accounts hash, not the bank hash. fix the logs and comments.
deduplicate code

Note that no behavior was changed.

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

Project coverage is 82.1%. Comparing base (9f10f09) to head (fe13a0b).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #1112     +/-   ##
=========================================
- Coverage    82.2%    82.1%   -0.1%
=========================================
  Files         880      880
  Lines      235631   235624      -7
=========================================
- Hits       193718   193680     -38
- Misses      41913    41944     +31


Why SSD_tensorflow_VOC gets the lower mAP in testing?

Hi,you proposed several improving methods referred in Experimentations.In no doubt,the code must contain the methods you said.But why SSD_tensorflow_VOC gets the lower mAP in testing than SSD_tensorflow?

Hi @13297915424 , by SSD_tensorflow, I assume you are referring to this implementation, https://github.com/balancap/SSD-Tensorflow
From what I understand, what SSD_tensorflow implementation did was

implement the SSD forward propogation in tensorflow,
Load the weights of the  original SSD model implementation in caffee
Peform inference on this tensforlow SSD implementation.

On the other side, that implementation didn't properly implement the trainig part. Which is what I was trying to accoplish in this project repository.
Regarding the accuracy gap between my implementation and that of the original paper, please refer to the "Known limitations" section in readme.


Add method to expose inputNode

I am trying to add placeholder text to the searchbar and to do so I need access to the inputNode. According to @afshin, we need to add a method to phosphide to expose it.
@blink1073 @afshin @sccolbert @jasongrout

Which input node is this concerning?

I think, its in app.palette

The new mono-repo exposes the inputNode:
https://github.com/phosphorjs/phosphor/blob/master/src/ui/commandpalette.ts#L164
What placeholder text are you wanting to set? It may make sense to make it the default behavior.
In the meantime, you can get at that node using a simple document query:
let inputNode = document.body.querySelector('.p-CommandPalette-input');

I want to set the placeholder text for the search bar in the command palette.

@spoorthyv I meant what is the specific string, e.g. `"this is my placeholder text" that you want to set?
Also, see the last paragraph of my second comment for a temporary workaround.

I want the search bar to look like this.

Whoops I guess I closed the issue on accident.

Okay. I already showed how to get a handle to the node as a temporary workaround. All you need to do now is set the placeholder text.
"SEARCH" is a reasonable default  text. I'll can add that to the mono-repo as well.

I used this code in main > plugin.ts:
inputNode = document.body.querySelector('.p-CommandPalette-input') as HTMLInputElement; inputNode.placeholder = "SEARCH";
But then it kind of broke everything. I got a plugin.js:16 Uncaught (in promise) TypeError: Cannot set property 'placeholder' of null in console.

The query will return null until the command palette is attached to the DOM.

How would I make sure that its not null?

Should I just use the onAfterAttach method of a random widget?

A random widget may be added before the command palette. As a hack, for now, you could poll until you find it (i.e., look for it, and if you don't find it, schedule the function to run again in maybe 300 milliseconds using setTimeout...)

Fixed by #627.


In the REPL, use prompt '-' and continuation '='

In REPL, use prompt '-' and continuation '='. This will be consistent with SML/NJ.
Current Morel:
= val x = 1
-   + 2;
val x = 3 : int

SML/NJ, and desired Morel:
$ sml
Standard ML of New Jersey v110.79 [built: Sat Oct 26 12:27:04 2019]
- val x = 1
=   + 2;
val x = 3 : int

Fixed in 030bd8b9137c1642a7abd81a18bca6f9eb16186d.


Blocks world

Added the "blocks world" problem as a planning problem example.
It unveiled an interesting shortcoming in the 2-d element constraint which is also fixed in this PR.

Updated the example with a real "planning as sat" approach and some more doc tweaks

Added some code to stop printing after the final state. Fine to be merged for me, unless you still want to add to it?

Thanks, ok to leave it open for a bit, I'm generating some instances to check if any bugs occur in the model


Awesome books navigation bar and content sections.

Hi,
This PR is raised to showcase the modification of the Awesome books application to have:

Navigation bar.

Three content sections:
a. Books list.
b. Add book form.
c. Contact info.

Used the provided wireframe as a guide.

When any of the links is clicked, the main area changes to display only one of the three content sections.

Kindly provide feedback and obliged.
Thanks.

Hi,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights

No linter errors
Well written PR

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


does this work in the HDRP?

Hi,  is this currently working in the High Definition Render Pipeline?  (HDRP)
Also, would it work on particles generated in the Visual Effect Graph?

Thanks for your comment. But I never use with HDRP and Visual Effect Graph.
This effect is just an ImageEffect such attached to a Camera object. So maybe it works correctly with VisualEffectGraph.


Not able to swipe left/right in parallax mode

Dear @dohooo,
I hope this message finds you well.
I am currently facing issues with integrating the react-native-reanimated-carousel package into my mobile app. I have been attempting to implement a carousel feature that would allow for left and right swipes through mobile touch events, but haven't been able to achieve the desired result yet. I have attached a screenshot for reference. Additionally, I have included my code for your review and would appreciate any guidance or corrections you may have to offer.
Thank you for your assistance.

Screencast from 17-06-23 05:56:43 PM IST.webm
<View style={[styles.main, { height: 150 }]}>
     <Carousel
       autoPlay
       defaultIndex={activeIndex}
       data={data}
       renderItem={renderItem}
       width={width} // const { width } = Dimensions.get('window');
       mode="parallax"
       snapEnabled={false}
       onSnapToItem={onSnapToItem}
       loop={true}
       modeConfig={{
         parallaxScrollingOffset: 65,
         parallaxScrollingScale: 0.82,
         parallaxAdjacentItemScale: 0.82
       }}
     />
   </View>

Note: Package version I have used in my mobile app:
"react-native-reanimated-carousel": "^3.4.0",
"react-native": "0.71.7",
"react-native-gesture-handler": "^2.9.0",

After reviewing #122, I was able to resolve my issue. It turns out, I had missed a step.
I would like to extend my gratitude to @dohooo. Their library is truly exceptional.


Bradley-Terry (BT) model

Hi, its a great work and thanks for open-source code. I have some confusion and could you please give me some help.
You mentioned the Bradley-Terry (BT) model in the Reward Modelling Phase, but the BT objective is not optimized in the RW phase instead equation (2). So what is the purpose of mentioning the Bradley-Terry (BT) model here?

Sorry for the delayed response. Equation 2 is in fact the negative log likelihood of the Bradley Terry Model, where the rewards/scores are estimated by r_\phi. Note you can do algebra to rewrite Eq 1 as p(y_w > y_l) = sigmoid(r(x,y_w) - r(x,y_l)).
Feel free to re-open if this doesn't address your question!


'root' in parents not working in .net SDK for the Q parameter of FilesResource.ListRequest

I am using the latest google drive .net SDK.
The following is my code:
FilesResource.ListRequest list = service.Files.List();
list.Q = "'root' in parents";
FileList filesFeed = list.Execute();
My problem is in this line 'list.Q = "'root' in parents";'
When i use the 'root' keyword then it is not returning any files/folders from root element. If i use any valid id instead of 'root' then it successfully retruns the list of files and folders.
So how can i get the root elements?
If i check the same (i.e. q = 'root' in parents) in Google API explorer "https://developers.google.com/apis-explorer/#p/drive/v3/drive.files.list" then it is working fine.
As i can't re-open the old issue "#1145" i am creating a new one.

Closing as dup of #1145


Definition of PLAC

It should be clearly defined what the lowest unit of jurisdiction is. Could a city district, a street, a building, a house be part of PLAC or is it part of ADDR? What about a hospital, a cemetery, a church?

The software I use can map the PLAC tag up to and including addresses, buildings, hospitals, churches, cemeteries, and grave plots.
The definition of place should not restrict the type of place. A place is something that can be located on a map and be geographically located!

Yes, the use of the word "jurisdiction" should be reconsidered and it should be described which content belongs in the PLAC tag and which in the ADDR tag.
Many programs handle the content of these tags differently, making data exchange more difficult.

Discussed in steering committee 2 JUL 2024

We agree that "jurisdiction" is a term that some find confusing. However, we do not have a synonym we like better than jurisdiction.
This term (and the format of the PLAC structure) dates back at least to the first standardized version of GEDCOM, 3.0, in 1987. In that spec, it had an additional description: "Place names consist of a string of one or more jurisdiction names, each separated from the other by a comma (a following space is optional), when each jurisdiction name is the name of a unit in a political, ecclesiastical, or geographical hierarchy."
Because the current term goes back to 1987, we will leave it in place until the community has consensus on an alternative term to replace it with.
We think that adding that "where each jurisdiction name is ..." text back to the 7.0 spec, possibly adding "social" to the list of unit types, will help clarify its meaning.


Make a new release

Is it possible to release a new version so go install could work properly on the new version and not 1 year late one?

I'll close this issue as I feel it has been resolved. Feel free to comment again if this is not the case and we can reopen the issue.


Extend the dispatch table for H5FD back to version 1.13.2

re: Issue https://github.com/Unidata/netcdf-c/issues/2634
re: PR https://github.com/Unidata/netcdf-c/pull/2615
re: Issue https://github.com/Unidata/netcdf-c/issues/2614
It turns out that the H5FD table change identified in issue https://github.com/Unidata/netcdf-c/issues/2614 actually occurred in HDF5 version 1.13.2.
Since we do not test with 1.13.x, we did not catch this.

@DennisHeimbigner I'm still getting an error on your branch:
[ 14%] Building C object libhdf5/CMakeFiles/netcdfhdf5.dir/H5FDhttp.c.o
"/home/parallelio_development/src/netcdf-c/libhdf5/H5FDhttp.c", line 167: error: identifier "H5_VFD_HTTP" is undefined
H5_VFD_HTTP,		/* value           */
^

Sorry, I missed a spot in H5FDhttp.h. Just put up a modification to the PR to fix.

thanks


Cascade Training

Training the HAAR cascades is a much more involved process than I had previously anticipated. Generating the classifier with only 10 positive and 20 negative samples is taking around twenty minutes for only four stages on my machine. Using cascade is certainly still an option, but it's going to take a while to get a decent classifier working. If anyone has a more powerful machine, which could be brought in or that we could remotely access to train these, leave a comment below.

@WSlatton What are your machine specs? If mine are significantly greater, I can bring in a machine or set up remote access.

Quad-core 2.3 GHz, 4 GB RAM, Intel HD 3000 integrated graphics.

@WSlatton High quality? Lower the quality as much as possible and see if it works!
Can you provide me with your test image suite?

Moved to new repository to save space.


fix Stylet.Samples.HelloDialog

fix Stylet.Samples.HelloDialog

Thanks for spotting this!
Unfortunately, PR's need to target develop. I've cherry-picked your commit onto develop as c3d31d0ad3a7f46e30d905c15382ec6db6edbeb9


fix(example): next 13 with app router

Hi there,
I am currently setting up the live preview mode for Contentful. The live-updates are working, but the inspector mode was missing the css import in the next 13 example app:
https://github.com/contentful/live-preview/tree/main/examples/next-13-app-router-graphql
I have also deleted the globals.css and the prepare step in the package.json, since they where both unused and preventing the app from starting.
:v:

Thanks for your contribution 🥇


Update README.md

Where is the Linux section?

Where is the Linux section?

I don't use Linux, but from my understanding Linux and MacOS generally work the same.

Where is the Linux section?

I don't use Linux, but from my understanding Linux and MacOS generally work the same.

Just add a separate section. The paths don't line up at all on Linux.

If a Linux section is added I will merge this. If you don't know how it would work someone else who does could PR to your fork so the changes show up in this PR.


Conda Create Env Error

Hi there,
I tried to test your code on my windows laptop, and there are lots of errors during "conda create" with your yml file.
Could you please test on your laptop or a new server, and upgrade the environment.yml? Because you included many your personal laptop info in this yml and perhaps there may be some problems.
Look forward to your reply, thanks for your effort!

To run PyTorch code on Windows, we suggest you install Anaconda. You can follow the official instructions https://www.anaconda.com/download/success. Then, you can create an environment using the provided commands as introduced here https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html.   Running our scripts in Anaconda powershell prompt is the same as in linux.

Yeah, I have tried these methods, but it seems that some dependencies are not suitable for windows. I don't know what's wrong. I have replaced my machine to linux and it works. BTW, I generated a more clean and complete environment.yml. I pull the request if it's ok.


Moves CV validation into fit method

Fixes #63
This PR moves the cross-validation training functionality currently in the CNN.fit_with_kfold method into the fit method.

@milesjwinter @mattmeehan I'm planning on merging this in at the end of the day unless you guys have any issues

Checked it over and it looks correct to me. Thanks for doing this! Merge when ready.


(Permission denied) on X server ":10.0

pp@pp-Virtual-Machine:~/CARLA_0.9.12$ ./CarlaUE4.sh
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
XIO:  fatal IO error 13 (Permission denied) on X server ":10.0"
after 285 requests (285 known processed) with 107 events remaining.
terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
Signal 6 caught.
Segmentation fault (core dumped)
when launching carla, I am facing this issue. I am running my VM in hyper v. Any help here?

Hey @prabanjanGITHUB, unfortunately it is connected to CARLA simulator only and not to carla-autoware-bridge, so my help here is constrained. I would suggest you find help with CARLA docs and resourses.
As far as I understand you trying to launch CARLA linux build inside windows' hyper.v, windows virtualization tool. Running CARLA within a VM can be tricky, since CARLA requires high performance graphics and desktop VM solutions often abstract the graphics hardware with intermediary driver layers.
I would suggest to use CARLA natively without a virtual machine because looking for ways to allow the VM to have direct access to the host GPU could take more time instead of launching directly.


Drop support for Node.js v12 & add support for Node.js v18

Node.js v12 is EOL, so we should move away from it and support Node.js v18 (in "Active" state) instead.
See https://nodejs.org/en/about/releases/.
This is a breaking change and must be released under a new major version!
@gustavohenke What do you think about moving to pure ESM? This would also enable us to use newer versions of chalk and supports-color which are pure ESM as well.
Something else that we might consider is bundling...

Coverage remained the same at 100.0% when pulling 1f6dcaff592e62e228be139b5f0720cde2bf6b34 on paescuj:drop-node12-support-node18 into 93e0891a2fb66a3cc32cdaca1fc5fb7e267cc479 on open-cli-tools:main.

What do you think about moving to pure ESM?

I like this idea with caveats.
Node.js did a really awful job with the CJS/ESM compatibility, and going full ESM means never being useable in CJS codebases again (last I checked, that was the case at least).
So my main point is: can we still support CJS codebases via transpiling somehow?
It will also mean updating all imports to have file extensions. It's a one-off, but it'll be massive anyway.

enable us to use newer versions of chalk and supports-color

I'd be happy to find alternative packages that work as well as these if we can't find any other way

So my main point is: can we still support CJS codebases via transpiling somehow?

I'm going to look into this as soon as I have time! 👍

Node.js did a really awful job with the CJS/ESM compatibility, and going full ESM means never being useable in CJS codebases again (last I checked, that was the case at least).
So my main point is: can we still support CJS codebases via transpiling somehow?

As you wrote, it is not possible to use ESM in CJS context not even by transpiling (at least not without some dirty hacks). Let's put the "transformation into a pure ESM package" on hold for now and look at this again at a later date...

I came up with https://github.com/open-cli-tools/concurrently/pull/366 as an initial approach to create bundles for both ESM & CJS while depending on pure ESM packages (chalk & supports-color). I've tested it by importing it in another module (ESM as well as CJS) and it seems to work so far...

@gustavohenke How do you feel about merging this along with #354? We can then treat #366 separately and merge it at a later time.

How do you feel about merging this along with #354?

Will revisit #354, but this one LGTM

Nice! 💪 I've just included Node.js 19 in the test and did a small syntactic clean-up in the package.json and tsconfig.json files.
I'm now going to update #354.


Allow setting inventory values based on custom commands

Possible example, but the format of the inventory is flexible, you can use whatever is better.
parameters:
  name: "something"
  service_account:  ?{exec: "gcloud iam service-accounts create [SA-NAME] --display-name "[SA-DISPLAY-NAME]" }

And the output would be saved/cached somewhere.

I think this needs a bit more discussion on the user experience. Does it make sense to use/abuse the secrets system for such feature? Is an exec type really necessary? Should it be a function instead?

I also think the best solution is actually to allow the user to define custom functions for their templates

@uberspot . Exec feature can also be abused. Like running some malicious command. Though we can put some checks that only specific commands are allowed like in  eval_func  . https://github.com/deepmind/kapitan/blob/master/kapitan/refs/functions.py#L30

Those malicious commands will have to be coming from the developers themselves I assume.
We could start with a list of allowed commands but sanitizing these seems like extra effort to restrict the developers themselves. Kapitan isn't meant to handle external/unsanitised  user input anyway. It's a templating tool.

Let's close this and work on allowing custom functions instead?

:+1: closing


Using a cron like settings

Check a time like cron settings instead of every x minutes. See #13

Well, thanks for your effort, but that code is currently not in a state as clean as I like it to.
I am currently thinking of building a real swarm scheduler as a separate service. Then shepherd would just add have a service label for its cron schedule.

I've maybe a solution for that...how would be using crazymax/cronjob for this? It's a swarm enabled sheduler...nervertheless some adjustments to the code have to be made, as the container would have to exit after the updates...otherwise it wouldn't work...would also love to see this "cron like shedule" implemented =) It's more convinient if you run a stack with collabora or something like this, because if the container get's updated unexpectedly, userdata is possibly lost...so I do this updates nirmally at 2.00 am...

Yes, I was planning to use crazymax/swarm-cronjob for this. Unfortunately, it does not work correctly for containers deployed in global mode, so using it for backing up all your nodes is currently a rather awkward experience. Looks like job support will be part of the next Docker release, so we might finally be able to solve this problem.
Also, using swarm-cronjob would mean to have a different approach for people using swarm vs plain docker/compose setups. Will have to see if it would rather make sense to have a separate script for swarm setups.

Okay very cool =). I'ts the last missing feature for beeing a completely perfect solution for automatic-updates on swarm =). Thanks for all the effort =)

Any update on this? Would be great to have cron-style scheduling support in shepherd!

I did not yet find time to work on this.


Transforming with 'select' breaks data type when using onSuccess with useInfiniteQuery (TS)

Describe the bug
Transforming your response data using the select function doesn't reflect with onSuccess
I'm flattening the response pages into a single array, which in turn, flattens the type into InfiniteData<Fixture> | undefined where Fixture is my data type.
As soon as I use onSuccess and try access the data, the parameter for both the onSuccess and returned select method revert to InfiniteData<InfiniteQueryResponse<AllFixturesResponse>> | undefined, which is the default response pre select
Does onSuccess receive the data pre or post select, I would imagine it's post, but I'm guessing it can't infer the type returned from select, though I didn't expect it to then throw an error in the select fn too just when logging the data in there.
Anyway to circumvent this?
Screenshots

Using
"react-query": "3.13.8"
"typescript": "4.2.3"

I think you need to annotate what type data is in onSuccess in order to make onSuccess work with select. I don’t know why that is exactly, seems to be a limitation with type inference. I found out the same thing with mutations and I don’t think there is a better fix to my knowledge

I think you need to annotate what type data is in onSuccess in order to make onSuccess work with select. I don’t know why that is exactly, seems to be a limitation with type inference. I found out the same thing with mutations and I don’t think there is a better fix to my knowledge

Yeah went about it the same way in the end, thanks for that.

Been experiencing this as well, I'm creating a custom hook that accepts the options object, so my code looks like this:
type FavoritesQueryOptions<T> = UseQueryOptions<string[], unknown, T, typeof favoritesKeys.default>;

export const useFavoritesQuery = <T = string[]>(
  options?: FavoritesQueryOptions<T>,
) => {
  const queryClient = useQueryClient();

  return useQuery<string[], unknown, T, typeof favoritesKeys.default>(
    favoritesKeys.default,
    fetchFavorites,
    {
      staleTime: 15000,
      onSuccess(data: string[]) {
        data.map((charactedId) =>
          queryClient.prefetchQuery(characterKeys.single(charactedId), () =>
            fetchCharacter(charactedId),
          ),
        );
      },
      ...(options || {}),
    },
  );
};

onSuccess is complaining that data.map does not exists on type T, and this brings me the question: onSuccess is supposed to receive the data returned from the fetch function, right? So, by looking at the useQuery types, shouldn't onSuccess data (and other methods that receive the response from the fetch function) being typed as TQueryFnData instead of TData @TkDodo @tannerlinsley ?

onSuccess is supposed to receive the data returned from the fetch function, right?

nope, select runs before the callbacks are being called, so if you have select specified, it would receive the transformed data.

so in your example, I think you'd need:
- onSuccess(data: string[]) {
+ onSuccess(data: T) {

but I think on this level, the generic is inferred correctly, so you can leave it out. There are only troubles when select with a concrete return type is in the same object as a callback.

onSuccess is supposed to receive the data returned from the fetch function, right?

nope, select runs before the callbacks are being called, so if you have select specified, it would receive the transformed data.

Oh I see... I thought select was getting the cached data and returning what was selected/transformed.

so in your example, I think you'd need:

onSuccess(data: string[]) {

onSuccess(data: T) {
but I think on this level, the generic is inferred correctly, so you can leave it out. There are only troubles when select with a concrete return type is in the same object as a callback.

Yeah, the generic was inferred correctly, but if select transforms the data before the callbacks then what I'm trying to to won't work with onSuccess, because I was going to select some data and that transformation wouldn't be an array, therefore, there'll be no map in the onSuccess data.

My plan was to use the same hook in multiple places, but one of them I'd like to only select a part of the data

yeah, I don't think we have something like this at the moment. callbacks are called whenever an observer should be informed about the changes, which means the observer will re-render. By using select, you subscribe to parts or a slice of the actual result of the queryFn - meaning your observer will only be informed about changes if the result of the queryFn changes. As far as your observer is concerned, only the transformed data exists. Hope that makes sense.

yeah, I don't think we have something like this at the moment. callbacks are called whenever an observer should be informed about the changes, which means the observer will re-render. By using select, you subscribe to parts or a slice of the actual result of the queryFn - meaning your observer will only be informed about changes if the result of the selectFn changes. As far as your observer is concerned, only the transformed data exists. Hope that makes sense.

Got it, thanks for the explanation! I've got it working for my purposes by just verifying if data was an array, then prefetching those keys. Also, the useQuery generics were inferred correctly just by the UseQueryOptions type, so the code just got a lot cleaner:
type FavoritesQueryOptions<T> = UseQueryOptions<string[], unknown, T, typeof favoritesKeys.default>;

export const useFavoritesQuery = <T = string[]>(options: FavoritesQueryOptions<T> = {}) => {
  const queryClient = useQueryClient();

  return useQuery(favoritesKeys.default, fetchFavorites, {
    staleTime: 15000,
    onSuccess(data) {
      if (Array.isArray(data)) {
        data.map((charactedId) =>
          queryClient.prefetchQuery(characterKeys.single(charactedId), () =>
            fetchCharacter(charactedId),
          ),
        );
      }
    },
    ...options,
  });
};

It will work to some extend, so as long as you don't select into an Array that doesn't contain characterIds :)
select: data => ["foo", "bar", data.length]

Yeah, that would be a problem. Is there a better secure way to watch for cached data changes other than select? QueryClient would just get me the data at the moment the component access it, right? It wouldn't know when that accessed data has changed

It will work to some extend, so as long as you don't select into an Array that doesn't contain characterIds :)
select: data => ["foo", "bar", data.length]

I'm just preparing a mini course for my company to implemente React Query, so this case wouldn't be an issue, but if there's a better safer way to teach what I'm trying to do, it would be great!

QueryClient would just get me the data at the moment the component access it, right?

Yes, that's right. For anything that watches, you'd have to subscribe to the cache. Have a look at how useIsFetching is doing it:
https://github.com/tannerlinsley/react-query/blob/4a821b0f1f94fecdc0c19d1d914aa1f4a2cc0e6d/src/react/useIsFetching.ts#L34
The devtools also do it in a similar way


Lambda layer support for Python 3.9

Is your feature request related to a problem? Please describe.
We have Lambda functions that we'd like to upgrade to use Python 3.9. When we test the upgrade path and use the Lambda layer that targets Python 3.8, the Lambda layer returns the following error:
ChannelCredentials, Compression
File "/opt/python/grpc/__init__.py", line 22, in <module>
from grpc import _compression
File "/opt/python/grpc/_compression.py", line 15, in <module>
from grpc._cython import cygrpc
ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/opt/python/grpc/_cython/__init__.py)
Failed to auto initialize opentelemetry
Traceback (most recent call last):
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 116, in initialize
_load_configurators()
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 109, in _load_configurators
raise exc
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 105, in _load_configurators
entry_point.load()().configure(auto_instrumentation_version=__version__)  # type: ignore
File "/var/task/opentelemetry/sdk/_configuration/__init__.py", line 178, in configure
self._configure(**kwargs)
File "/var/task/opentelemetry/sdk/_configuration/__init__.py", line 194, in _configure
_initialize_components(kwargs.get("auto_instrumentation_version"))
File "/var/task/opentelemetry/sdk/_configuration/__init__.py", line 148, in _initialize_components
trace_exporters = _import_exporters(exporter_names)
File "/var/task/opentelemetry/sdk/_configuration/__init__.py", line 122, in _import_exporters
) in _import_tracer_provider_config_components(
File "/var/task/opentelemetry/sdk/_configuration/__init__.py", line 108, in _import_tracer_provider_config_components
component_impl = entry_point.load()
File "/var/task/pkg_resources/__init__.py", line 2465, in load
return self.resolve()
File "/var/task/pkg_resources/__init__.py", line 2471, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/opt/python/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py", line 20, in <module>
from grpc import ChannelCredentials, Compression
File "/opt/python/grpc/__init__.py", line 22, in <module>
from grpc import _compression
File "/opt/python/grpc/_compression.py", line 15, in <module>
from grpc._cython import cygrpc
ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/opt/python/grpc/_cython/__init__.py)
[ERROR]	2022-02-09T14:57:20.701Z	9003dd25-68a1-4070-90ee-203e3b98a61b	TracerProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist in the OTel SDK implementation.

Describe the solution you'd like
Add OTEL Lambda Layer support for Python 3.9
Describe alternatives you've considered
Pause migration to Python 3.9 for Lambda functions that implement OpenTelemetry layer.

aws-otel-python38 layers contain c extension files so it is not version compatible with python 3.9. We are actively supporting Lambda 3.9 runtime by providing a new group of layer aws-otel-python39.
Before it is done, a workaround is you can build aws-otel layer from scratch in your own account. Please refer the steps in  github workflow.

We'll probably wait for the officially supported Python 3.9 runtime for Lambda, but the extra info on building our own layer is an interesting technique to keep in the background.

Reopen this issue for tracking python 3.9 support. @vasireddy99

We're experiencing the same issue. Just wondering if the issue has been fixed or do we have a tentative date that it can be fixed?

HI @TriQuach, the support for Python3.9 has be implemented and will be available in next Lambda Layer release, they are expected to be out by May 16th. I shall provide more info here, if there are any more updates.

Update : The Lambda layer for Python3.9 is now available


The input mask will get reset only when adding same digits for minutes (mm/dd/yyyy hh:mm xm ) in Android Chrome browser

Hi RobinHerbots,
First of all thanks for the great work!
We have been using inputmask version : 0.0.0-dev for all date/datetime input fields in our application. Recently we have uncounted an issue when adding minutes only in mobile web browsers ( e.g. mobile Chrome)
The Issue is, when user tries to add same digit for minutes, the mask will get reset else it works just fine. I have done video as well.
The Issue can be seen in below link.
https://drive.google.com/file/d/1IBeCdcx5xIbGb-b-YDFXRrmoBgmBxz2T/view?usp=sharing
If you could give us some kind of a idea to resolve this issue it would be a great help for us.
Thanks
Danunka

Hi @danukaw ,
The alias mm (lowercase) is used for months, to minutes u need to use the MM format

@danukaw ,
I'm rewriting the datetime laiases.  See and try with version 4.x beta

Hi RobinHerbots, I'l try with version 4.x beta and let you know.


Command line prompt comes back too soon

The command line prompt comes back before all the controls are cleared, as in :
pianette: console.reset
  # INFO : running command: console.reset
  # INFO : running command: console.play START + SELECT
pianette:   # INFO : Keeping PSX Control START Triggered for 3 cycles
  # INFO : Keeping PSX Control SELECT Triggered for 3 cycles
  # INFO : Keeping PSX Control START Triggered for 2 cycles
  # INFO : Keeping PSX Control SELECT Triggered for 2 cycles
  # INFO : Keeping PSX Control START Triggered for 1 cycles
  # INFO : Keeping PSX Control SELECT Triggered for 1 cycles
  # INFO : Clearing PSX Control START
  # INFO : Clearing PSX Control SELECT

Might be normal but I guess it's not

OK. This is the expected behavior, closing.


Graceful shutdown

First off thank you for making these images and sharing with us. The proton-based image works really good.
But I noticed that the dedicated server is not gracefully shutting down when doing a docker stop. The server just gets terminated after the 10 sec timeout which could lead to a corrupted save game.
I fixed this in my fork by trapping the interrupt signal: https://github.com/Chris-D-Turk/enshrouded-docker-image/blob/develop/container/proton/entrypoint.sh
Maybe you want to apply the relevant changes to your entrypoint script.

Submit a PR to make it easier for them to do so

This is on my list of things to implement. Next version.


Update prepare datalist function of brats bundle

Fixes # .
Description
Update according to the author Andriy's suggestions.
Status
Ready
Please ensure all the checkboxes:

[x] Codeformat tests passed locally by running ./runtests.sh --codeformat.
[ ] In-line docstrings updated.
[ ] Update version and changelog in metadata.json if changing an existing bundle.
[ ] Please ensure the naming rules in config files meet our requirements (please refer to: CONTRIBUTING.md).
[ ] Ensure versions of packages such as monai, pytorch and numpy are correct in metadata.json.
[ ] Descriptions should be consistent with the content, such as eval_metrics of the provided weights and TorchScript modules.
[ ] Files larger than 25MB are excluded and replaced by providing download links in large_file.yml.
[ ] Avoid using path that contains personal information within config files (such as use /home/your_name/ for "bundle_root").

/build

/build


nifty_reg not in setup.py

trying to pip install hippunfold at McGill and I noticed the reg_aladin is not being installed in setup.py. Error is thrown in rule reg_to_template

Are you using --use-singularity?
On Fri., Mar. 26, 2021, 12:54 p.m. jordandekraker, @.***>
wrote:

trying to pip install hippunfold at McGill and I noticed the reg_aladin is
not being installed in setup.py. Error is thrown in rule reg_to_template
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/khanlab/hippunfold/issues/45, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXV2XPM74MX6FQ43EKASHTTFS33PANCNFSM4Z3XWLPA
.

aha that does the trick! :)


Train on KITTI dataset

Hi @BichenWuUCB, I got some problem loading the pkl file of caffemodel you provide.
The version of related packages on my server are listed below:
easydict==1.6
joblib==0.10.3
tensorflow==0.10.0rc0
And Here's the error log:
Traceback (most recent call last):
File "./src/train.py", line 281, in
tf.app.run()
File "/home/extra/goan15910/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "./src/train.py", line 277, in main
train()
File "./src/train.py", line 114, in train
model = VGG16ConvDet(mc, FLAGS.gpu)
File "/tmp3/jeff/squeezeDet/src/nets/vgg16_convDet.py", line 25, in init
self._add_forward_graph()
File "/tmp3/jeff/squeezeDet/src/nets/vgg16_convDet.py", line 39, in _add_forward_graph
self.caffemodel_weight = joblib.load(mc.PRETRAINED_MODEL_PATH)
File "/home/extra/goan15910/.local/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 575, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/home/extra/goan15910/.local/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 507, in _unpickle
obj = unpickler.load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatchkey
File "/home/extra/goan15910/.local/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 340, in load_build
self.stack.append(array_wrapper.read(self))
File "/home/extra/goan15910/.local/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 183, in read
array = self.read_array(unpickler)
File "/home/extra/goan15910/.local/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 144, in read_array
array.shape = self.shape
ValueError: total size of new array must be unchanged
I have no problem running the demo example.
Is this a package version problem?

@goan15910  What's your command for launching the training thread? Did you make any modification to the config file?

I use the vgg16 version in the train.sh and all config are the same as original.

When I tried to train SqueezeDet on KITTI dataset, I met the problem about joblib as following:
Traceback (most recent call last):
File "./src/train.py", line 281, in
tf.app.run()
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "./src/train.py", line 277, in main
train()
File "./src/train.py", line 122, in train
model = SqueezeDet(mc, FLAGS.gpu)
File "/home/lsk/my_tensorflow/squeezeDet/src/nets/squeezeDet.py", line 24, in init
self._add_forward_graph()
File "/home/lsk/my_tensorflow/squeezeDet/src/nets/squeezeDet.py", line 38, in _add_forward_graph
self.caffemodel_weight = joblib.load(mc.PRETRAINED_MODEL_PATH)
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 459, in load
obj = unpickler.load()
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/pickle.py", line 1096, in load_global
klass = self.find_class(module, name)
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/pickle.py", line 1132, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'NumpyArrayWrapper'
My tensorflow version is 0.12, easydict is 1.6 joblib is 0.10.3.
I can also run the demo code, have you solved your problem? @goan15910

Hi, @samlong-yang
I made the pretrained-weights pkl file myself and it works.
I used this repository caffe-tensorflow to convert caffe model weight into npy file and dump it into pkl file. If you are going to use this repo, make sure not to transpose the channels as the original code of src/nn_skeleton.py, since the repo already switch them from caffe order into tensorflow order.

Thanks for your reply and suggestions very much! I will try for that.

Your solution works for me @goan15910 .
I find that there is a file in the project ./src/utils/caffemodel2pkl.py, which is also helpful for converting the caffemodel into pkl weight file. It also works fine to me.

This is probably because you used different version of joblib 0.10.3.
I just had the same problem with @samlong-yang when using joblib 0.9.4. I updated to 0.10.3 and everything is fine.

Dear @samlong-yang how do you convert the squeezenet_v1.1.caffemodel to pkl by caffemodel2pkl.py?
should the prototxt be modified in some way?
Thanks


Add section in documentation for JAAS_Plain configuration

Recommend adding a section in the documentation on how to configure Kafka / Neo4j for JAAS_Plain.
See attached for sample verbage.
kafka_jaas_plain.txt

Closing, because as of ticket review this seems to have been solved / merged, with live docs here: https://neo4j.com/labs/kafka/4.0/kafka-ssl/#_authentication_with_sasl


[BUG] TAG v3.0.0 is no longer accessible

Your documentation is wrong. It tells to use TAG=v3.0.0 to install the last 3.0 but the link returns a 404.
http GET https://github.com/rancher/k3d/releases/download/v3.0.0/k3d-linux-amd64
HTTP/1.1 404 Not Found

See https://github.com/rancher/k3d/blame/main/README.md#L49

Which is because v3.0.0 will be released in about 4 hours from now 😬

And to grab the latest (non pre-)release, you should not specify a tag at all. Otherwise, you can choose a tag from the releases page. 👍

@iwilltry42 what I was saying was that the doc was incorrect or out of date. If someone copy/pastes from there it couldn't work at the time I ran 🤷♂

You're definitely right there. The issue here was, that the documentation was updated to the new release before the release was done to be prepared 😁

okay then closing the issue. Thanks !


Dark mode for iOS?

Any chance we can get dark mode for iOS? My eyes bleed when I check my portfolio

Duplicate of #947


Windows Folder Protection circumvented?

The bug
As of now I am not sure if its a bug, a feature or a bug in Windows.
I have the Folder Protection in Windows Defender enabled and am local administrator. As I copied a file for the first time in "Files" immediately the notification sprang up that a folder access was prevented.

To my surprise though, the file WAS copied. With no trace of any problem, user permission, or otherwise.
The logs of "Files" dont even show a trace of the action.
To Reproduce
Not sure but in principle, enable Protected Folders in Windows Defender, and then copy a file to a protected folder where Files is not allowed to.
Expected behavior
An error stating that the operation could not be concluded, most other apps give some obscure message about "file not existing", access denied, folder not found, etc.
Desktop (please complete the following information):

OS Version: Windows 10 Home, Version 20H2, OS Build 19042.746, Windows Feature Experience Pack 120.2212.551.0
App version: <IP_ADDRESS>
Hardware:
Processor Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 1.99 GHz
Installed RAM 12.0 GB (11.9 GB usable)
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Log file
debug_fulltrust.txt
debug.txt

Have been playing around with this for some time now, its not consistent. Sometimes Windows Defender complains, sometimes not, but always I can copy files to a protected folder even when Files is not added as trusted app.

Have been playing around with this for some time now, its not consistent. Sometimes Windows Defender complains, sometimes not, but always I can copy files to a protected folder even when Files is not added as trusted app.

While trying to rename a drive in its properties window, i got a warning from Windows Defender, but no error in Files:

While trying to rename a drive in its properties window, i got a warning from Windows Defender, but no error in Files:

Files does seem to have access to certain directories which are blocked by default in File Explorer, I am not sure if this is a bug or if Files just has a higher level of access. @ADeltaX, kind of random, but would you have any idea about this?

And why Files could list all files in a protected folder?
I thought it is not possible to get any information about a protected folder.
Is this a windows defender 's  vulnerability or the API Files is using bypassed this mechanism?

And why Files could list all files in a protected folder?
I thought it is not possible to get any information about a protected folder.
Is this a windows defender 's vulnerability or the API Files is using bypassed this mechanism?

Windows Defender only protects WRITE access to protected folders. Still any app can read them.


Deploy with Netlify

Previously, https://flake8.codes has been deploying using Github Pages. I have moved it into octadocs organization and renamed; it no longer fits the naming convention for GitHub pages as far as I can understand it.
Deploy the site using Netlify.

I managed to get this operational using GitHub actions instead of Netlify.


[do not merge yet] Upgrade dataservices client version to 0.9.0

cc @rafatower to leave tests prepared for when everything is okay

:+1: