Error when sending a large number of mails

So I'm doing a performance test of an application that sends mails. The application and mailslurper is setup using docker-compose and I'm using the default custom-config.json file. When the number of mails reaches the 13000th mark, mailslurper is throwing this error:
level=error msg="Error adding connection '<IP_ADDRESS>:42662' to connection manager"
error="Connection on '<IP_ADDRESS>:42662' already exists" who="SMTP Listener"

The rest of the mails are not being processed.

Same problem here. I suspected the ConnectionManager not cleaning up the ConnectionPool.
Adding an extra log statement confirmed this:
diff --git a/pkg/mailslurper/ConnectionManager.go b/pkg/mailslurper/ConnectionManager.go
index b29066d..39b0bc6 100644
--- a/pkg/mailslurper/ConnectionManager.go
+++ b/pkg/mailslurper/ConnectionManager.go
@@ -117,7 +117,7 @@ use this to track a client connection and its worker
 func (m *ConnectionManager) New(connection net.Conn) error {
 	var err error
 	var worker *SMTPWorker
-
+	m.logger.Infof("Number of connections %d", len(m.connectionPool))
 	if m.connectionExistsInPool(connection) {
 		return ConnectionExists(connection.RemoteAddr().String())
 	}

When i tried to clean it up however, it calls close multiple times, resulting in the following error:
INFO[0003] Closing connection <IP_ADDRESS>:51259            who="Connection Manager"
INFO[0003] in go <- closeChannel Closed                  who="Connection Manager"
INFO[0003] Connection closed                             connection="<IP_ADDRESS>:51259" who="Connection Manager"
INFO[0003] in go <- closeChannel Closed                  who="Connection Manager"
ERRO[0003] Error closing connection                      error="Connection '<IP_ADDRESS>:51259' is not in the connection manager pool" who="Connection Manager"
INFO[0003] Connection closed                             connection="<IP_ADDRESS>:51259" who="Connection Manager"


New options for the select filter

Summary
The goal for this PR is to add customization to the select filter with two new props: multiple and placeholder
(Internal for Opendatasoft only) Associated Shortcut ticket: sc-37067.
Changes
New options for the select filter:

placeholder: Label displayed as the first select option

multiple: Allow to select more than one option

Changelog
Add two options for the select filter (multiple & placeholder)
Review checklist

[x] Description is complete
[ ] 2 reviewers (1 if trivial)
[ ] Tests coverage has improved
[ ] Code is ready for a release on NPM

@etienneburdet
It is what you had in mind f648a674e18d074b3a590854cadb9ec35f567a1b ?

Yes, something like that indeed. Looks great! 👌

@wmai

I don't have a strong opinion a that but do we really need to have a Select component that makes the switch between SingleSelect and MultiSelect? I feel like we could switch between those two in the Studio instead. Maybe you had something in mind for futur implementations?

I have no opinion on this implementation as this is temporary until we develop the proper select.
BTW, With Rafael, we are more on the side to expose one component that handles all the options.

Moreover, I have a mysterious bug regarding the styling of the components, there's no styling applied, and I dont't understand why 😬 Do you experience the same issue?

Not I don't, maybe a cache issue. @RafaelSzmarowski when you'll do the review could you please tell use if you have also no styling applied ? Thx

One Select to rule them all... Yes, indeed, I think probably all the Select options will be handled through props instead, especially if we decide to implement that based on svelte-select, it seems like it will be maybe useless to have different components at start. We will probably make something more like Chart.svelte.
What do you mean @wmai by no style ? on SDK or Studio ?
I have this in my Storybook:

Good addon to the filters !
The queries are looking well and the placeholder seems to work as expected.
At this point, I don't think that we the need the Single and Multi split as the code looks really the same for both. The only big "difference" is in the applyFilter function so far but I don't think that we really need a Svelte component to compute each applyFilter function, but maybe I'm not fully aware of the Svelte standards.
The multiple select works as expected but really feels broken as it is always open and the selection is not made by clicking but by a dragged mouse left keydown.
I have the feeling that it's maybe time to try a svelte-select implementation with only one Select.svelte (like the Chart.svelte model), isolate the applyFilter complexity in a separate file if needed (but it can be made later I think).
Do you want to try it here or in some other branch ?

I agree with your observation.
Let's try in this branch 😃

I didn't look in details, but the component split was because of there was matching templating/logic in matching ifs. If svelte-select removes that, it might be not be ideal indeed.

As discussed, we will replace filters components with ODSQL query utilities.


Incorrect classifcation

I tried to put 5 different identities and generated their embedding and then trained  the model using those embedding. However, it is unable to differentiate between multiple classes. When I try to run the classifier.py and provide an image path it incorrectly detecting all the images with my name instead of other identity. Can you please suggest if I am missing something? or the model got over fitted to the data?

Hi @vinayak-parab!
If I understand this correctly, you used only 5 images to train the model? Unfortunately that's too few, you need at least couple of images per identity.

@ldulcic  No. I used 5 images of each identity and I had 5 such different identities.

@vinayak-parab can you post the output of training?

Hi  , i have observed that creating the embeddings first before training and using those created embeddings in training results in wrong inference , however using the same dataset to train directly results in correct inference ?, Thanks in advance

Hi @prakharter!
Could you post here the exact scripts you called (with parameters used) when you got wrong inference?

Closing due to inactivity.


Write "Considerations for security and privacy" section

Passing access tokens securely

This section is actually already written.


fix: Uncaught Error: socket hang up

WIP

I've just pushed my latest changes (for debugging) onto this branch, to test it quickly, run with ./node_modules/.bin/mocha test/05-muxing-spdy.node.js

I've also added listeners for the error and close events on the tcp sockets created (inside the libp2p-tcp that gets installed on the node_modules) just to check if the error was leaking. I indeed catch the error on the 'close' event, as expected, but still, it gets thrown as an uncaught exception

lgtm with a better commit message

better commit message added. This is a great bug fix! :D


Add docs on V2 to V3 migration.

Think it would be good to create this doc to direct people to.

Hi going to add a comment here if ok. Just going through the doc's now and updating my code from V2 to V3.
I got a question with regards to it and the solution seems to be missing to the doc's.
On the doc's page: https://developers.google.com/web/tools/workbox/guides/common-recipes
Under the heading: Restrict Caches for a Specific Origin
The following code is very useful:
workbox.routing.registerRoute(
    'https://hacker-news.firebaseio.com/v0/*',
    workbox.strategies.cacheFirst({
        cacheName: 'stories',
        plugins: [
          new workbox.expiration.Plugin({
            maxEntries: 50,
            maxAgeSeconds: 5 * 60, // 5 minutes
          }),
          new workbox.cacheableResponse.Plugin({
            statuses: [0, 200],
          }),
        ],
    }),
);

My question is that when I was using V2 I had the following:
    // Set a timeout threshold of 3 seconds to advoid Single Point of Failure
    networkTimeoutSeconds: 3

There is no mention to networkTimeoutSeconds so I am not sure if it has been left out of V3 or I need to add it to a plugins[] etc.
I thought I'd ask and also suggest you update the example on that doc's page.
Thanks.

p.s. +1 for migration doc's although the guide is very good at updating things.

These were published at https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-v2


Login as Guest

Description
Add a functionality of short the long links without login/Registration from front Page or by clicking the button "Guest"
Where you can perform the operation as same as logged in user can do like

Input the long link
input the shortname
Button for creating the short link

Something like that 👇

After clicking the btn , just do all the checks like

shortname already in use etc...

Screenshots
No response
Additional information
@Nishitbaria @Mrprayag077 @rohanmittal1163
If anyone of you wants to work on this issue , i can give you level 3 label whosoever is giving me first reply for assigning , will assign to him

Hello @apoorvaron I m facing some issues for pop up so we can go with plan of redirect to a page for guest user ?

I would like your opinion on whether I should continue working on the popup modal idea. Your input will help me decide which direction to take.
@apoorvaron

@Nishitbaria what are the issues? I may help you

I have resolved the issue of creating a popup, but now I am encountering difficulties in implementing a URL shortening script within the form of the modal.

I wanna know you point of view

@Nishitbaria pop up form is treated as same as normal form tag
Give it a try once again , if not able to do so then go with new page but this page should be simplest ( too much user friendly )

Ui
theme matching
Easy to use

Thanks @apoorvaron I will work according to your suggest and update you

I Have created Modal and Successfully implemented

@Nishitbaria all functionality done?

@Nishitbaria Nice


Add link to 4.0 RTM release notes

Add link to 4.0 RTM release notes to TOC

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/TOC.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks


App not launching on Android or iOS

I have tried to compile and launch the app using the latest source, but I don't get anything in Genymotion.
With the iOS emulator, I get a "basic" (aka the default RN screen white background / just saying MobileApp).

Could this be due to an incompatibility with a new version of  RN  ?

I did create the .env file as per your instructions.

when I looked at the android debug logs I found the following:
02-04 20:10:33.916  1010  1198 E Surface : getSlotFromBufferLocked: unknown buffer: 0xee975c60
02-04 20:10:33.971  2424  2424 I art     : Thread[1,tid=2424,Native,Thread*=0xf3d74a00,peer=0x7368a258,"main"] recursive attempt to load library "/data/app/com.movieapp-1/lib/x86/libfb.so"
02-04 20:10:34.363  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
02-04 20:10:34.364  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
02-04 20:10:34.368  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
02-04 20:10:34.372  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
02-04 20:10:34.373  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
02-04 20:10:34.382  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
02-04 20:10:34.395  2424  2444 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
02-04 20:10:34.421  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
02-04 20:10:34.427  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
02-04 20:10:34.428  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
02-04 20:10:34.476  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
02-04 20:10:34.476  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
02-04 20:10:34.478  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
02-04 20:10:34.482  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
02-04 20:10:34.484  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
02-04 20:10:34.484  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
02-04 20:10:34.487  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
02-04 20:10:34.488  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
02-04 20:10:34.489  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
02-04 20:10:34.493  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
02-04 20:10:34.494  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
02-04 20:10:34.495  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
02-04 20:10:34.495  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
02-04 20:10:34.498  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
02-04 20:10:34.499  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
02-04 20:10:34.499  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
02-04 20:10:34.503  2424  2424 D         : HostConnection::get() New Host Connection established 0xe808c110, tid 2424
02-04 20:10:34.503  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
02-04 20:10:34.510  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
02-04 20:10:34.510  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
02-04 20:10:34.510  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
02-04 20:10:34.512  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
02-04 20:10:34.519  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
02-04 20:10:34.526  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
02-04 20:10:34.528  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
02-04 20:10:34.533  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
02-04 20:10:34.537  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
02-04 20:10:34.539  2424  2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.BV.LinearGradient.LinearGradientManager
02-04 20:10:34.650  2424  2444 D libEGL  : loaded /system/lib/egl/libEGL_emulation.so

I deleted everything and tried using Yarn ...as per a previous problem that had been reported.
Dhammikas-iMac:movieapp dhammika$ yarn install
yarn install v0.20.0
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning<EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>[4/4] 📃  Building fresh packages...
✨  Done in 20.23s.
but still no luck, same error as before. - Android shows a blank screen, iOS shows a screen as per my screen shot above.

restarting the packager resolved my issue !


str method argument escaping is inconsistent

Prior to #400, some str methods were overridden using a generic wrapper that called escape on all argument values that were str, then wrapped the result in Markup. This made typing difficult, and was  inefficient. When removing the wrapper, I noticed it was only applied to str methods that returned str, not other method that took str arguments. I also noticed that some arguments shouldn't have escape called on them even though they are str.
There are some methods where the escaping makes sense. For example, str.center is similar to adding strings, which should escape the values.
But there are many other places where the escaping is inconsistent or not obvious. For example, __contains__ (and find, index, etc.) is not overridden, but strip is, so you can get the following behavior.
>>> from markupsafe import Markup
>>> s = Markup("
")
>>> "<" in s
True
>>> s.strip("<")
Markup("
")

strip calls escape on its argument, resulting in the actual call being str.strip(s, "<"). That's definitely not correct, because strip removes any number of each character, in any order, but then intention was obviously to remove the <.
Python 3.9 added removeprefix and removesuffix, which remove the exact string of characters if it is present. But it's not clear if those should escape their argument, should removeprefix("<") remove the literal <, or <?
All methods should at least be consistent. Regardless of which direction we choose, escaping or not, the user can always wrap the argument in Markup or escape to get the other meaning.

Should escape argument:

__add__(self, value, /)
__radd__(self, value, /)
__mod__(self, value, /)
__getitem__(self, key, /)
format(*args, **kwargs)
format_map(mapping)
center(self, width, fillchar=' ', /)
ljust(self, width, fillchar=' ', /)
rjust(self, width, fillchar=' ', /)

Unclear, leaning towards should not escape:

__contains__(self, key, /)
find(sub[, start[, end]])
rfind(sub[, start[, end]])
index(sub[, start[, end]])
rindex(sub[, start[, end]])
count(sub[, start[, end]])
replace(self, old, new, count=-1, /); old should follow what we decide here, new should be escaped
partition(self, sep, /)
rpartition(self, sep, /)
split(self, /, sep=None, maxsplit=-1)
rsplit(self, /, sep=None, maxsplit=-1)
startswith(prefix[, start[, end]])
endswith(suffix[, start[, end]])
removeprefix(self, prefix, /)
removesuffix(self, suffix, /)
strip(self, chars=None, /)
lstrip(self, chars=None, /)
rstrip(self, chars=None, /)

Only wrap result:

__mul__(self, value, /)
__rmul__(self, value, /)
capitalize(self, /)
casefold(self, /)
expandtabs(self, /, tabsize=8)
lower(self, /)
splitlines(self, /, keepends=False)
swapcase(self, /)
title(self, /)
translate(self, table, /)
upper(self, /)
zfill(self, width, /)

Despite the long list, the actual change isn't very big, only 8 methods need to be changed to not escape their argument. They're all conceptually similar to the the search methods such as in, find, and index, which already don't escape their argument.

Oops, ended up pushing to main instead of a PR branch by mistake. So this is in ef4a8399ce4fee85d112eb474c5e05e0ddda14a9, which also happens to be the 666th commit.


Improving tables

See the main todo list and the relevant issue. I would like to start implementing better table handling in Pandoc. Specifically, I would implement all but the last of these bullet points using one of the designs below (or a modified version of one of them).
I think something like this recently outlined approach is a good way forward for now. The representation is a little loose (any table in the intermediate representation is valid, so there are multiple ways to write a given table, but only one normalized way), but it should allow the readers and writers to be switched more easily. This is slightly modified version of that approach:
type RowSpan = Int
type ColSpan = Int
type Caption = [Block]
type ShortCaption = [Inline]
type ColWidth = Maybe Double
data CellType = DataCell | HeaderCell
data Cell = Cell Attr CellType (Maybe Aligment) RowSpan ColSpan [Block]
type Row = [Cell]

data Block =
  ...
  | Table Attr Caption ShortCaption [(Alignment, ColWidth)] [Row]
  ...

The Maybe Alignment on the individual cells allows the cells to override the alignment of the column(s) in which they reside. This makes it easier to specify one's intentions when a cell spans multiple columns with conflicting alignments, and has the advantage of allowing better \multicolumn and \multirow support in the LaTeX reader and writer. It also comes up naturally when one thinks of possible extensions to the supported markdown table formats.
A similar design has the following modifications:
data Cell = Cell Attr (Maybe Alignment) RowSpan ColSpan [Block]
data HeaderRow = Row Attr [Cell]
data BodyRow = Row Attr [Cell] [Cell]

data Block =
  ...
  | Table Attr Caption ShortCaption [(Alignment, ColWidth)] [HeaderRow] [BodyRow] [HeaderRow]
  ...

This has the advantage of making explicit the table head/body/foot and row head/body structure that seems to be assumed in the first approach, where the first entirely header rows become the table head, and the last such rows become the table foot. Cells in the head and foot sections would correspond to th cells, and cells in body section would correspond to td cells. It does not require a CellType, but one could still be added, making these even more similar to HTML tables. This approach has the disadvantage of making the table representation more complex.

I assume that the tables are normalized (laid on a grid with a given width so that overlapping cells and empty spaces can be dealt with in the table) like so, informally:

Empty rows are filtered out from the table
The grid has a height equal to the number of rows in the table, and some fixed width.
Rows are laid on the grid from top to bottom.
The top of each cell is as far down on the grid as it is on the table.
The top-left corner of each cell, in turn, is placed on the leftmost empty grid space on the row, if it exists within the grid width, and is otherwise dropped. If it would overlap a cell on a previous row or extend past the remaining grid width, its width (ColSpan) would be lowered to fit. If it would extend past the bottom of the grid, its height (RowSpan) would be lowered to fit.
If there are too few cells in a row to fill the available width, then blank cells are added to the end of the row.

The table head, table foot, row head (the list of row head sections without the row body), and row body (the list of row body sections without the row head) should be normalized independently in any design where these exist (implicitly in the first, or explicitly in the second). The overall table width would be the length of the [(Alignment, ColWidth)] list, and the row head/body width would add to that width. (The row head width would be the width of the first row in the row head).

I'm delighted that you're interested in taking this on.  It's one of the top priority improvements for pandoc, but it has been hard to get it done because (a) it's a big change and (b) it's hard to decide what the best type is.
I don't think we should let the perfect be the enemy of the good:  we should discuss (b), but we should set a limit to how long we discuss it before just moving ahead with something that will be better than what we have currently.  (If needed, we can make further incremental changes in the future.)
More later...

The first approach allows any cell to be a header cell.  That might be an advantage for representing tables where the left column is the header (not common) -- such tables can't be represented in the second approach -- but it has the disadvantage that many table formats can't represent arbitrary header cells.  (HTML is an exception obviously.)  So I'm leaning more to the second approach.  I don't know how important it is to represent tables where the header is a column rather than a row, and I'm not sure what the cost would be of unrepresentable tables on the first approach.

The layout I have in my mind, incidentally, is this:
+---------------------+
|     Table Head      |
+----------+----------+
| Row Head | Row Body |
+----------+----------+
|     Table Foot      |
+---------------------+

since I realized that the second representation might suggest that the row headers are not under the table head. This is also the implicit layout of the first approach.
When you say that "the left column is the header", do you mean that the table is transposed during writing so that the table head rows become columns? Otherwise I think that the row head section could be used as the header. The only oddity would be that a single header line would be split up among multiple rows.
In the first approach, I suppose that after separating out as many sections as the writer supports (table head, foot, row head) the writer would forget about the cell type and simply write the cell content as-is.

I wasn't understanding what you mean by Row Head.  Now I see you mean a header cell in the left position in a row.  And now I notice that you have Row Attr [Cell] [Cell] -- the first group of cells is the row header, the rest the body.  OK, that makes sense.  More in a bit.

I'm wondering whether it would make things easier if the types were a bit more uniform.  Rendering a header row will often be almost the same as rendering a body row.  What if we just had
data Row = HeaderRow Attr [Cell] {- row heads -} [Cell] {- other cells -}
data Block =
  ...
  | Table Attr Caption ShortCaption [(Alignment, ColWidth)] [Row] {- header -} [Row] {- body -} [Row] {- footer -}

The drawback is that this allows you to represent distinctions that are irrelevant in the header and footer rows.  The advantage is that it makes it easier to deal with rows in a uniform way in the code.  I'm not really sure about this tradeoff.
If we do go with your original approach, we'll need a different type constructor:
data HeaderRow = HeaderRow Attr [Cell]

Another approach might be:
data Row a = Row a Attr [Cell]
data HeaderRow
data FooterRow
data BodyRow = BodyRow [Cell]
...
  | Table Attr Caption ShortCaption [(Alignment, ColWidth)]
         [Row HeaderRow] [Row BodyRow] [Row FooterRow]

Writers that can't represent row headers might find it easier to concatenate the row head and body and operate on an [(Attr, [Cell])], or even a [[Cell]], list.
If there were a uniform row type, then the table picture could be
+-------------------+-------------------+
| TH above row head | TH above row body |
+-------------------+-------------------+
|     Row Head      |     Row Body      |
+-------------------+-------------------+
| TF below row head | TF below row body |
+-------------------+-------------------+

I am not sure if this is a useful distinction, but it does give the row header in the table head some meaning.

If I'm understanding you correctly, you are now suggesting a uniform type
data Row = Row Attr [Cell] [Cell]

to be used for the header, body, and footer?  That sounds good to me.  It's conceivable that some formats could treat "TH above row head" specially.

That was my interpretation of the first Row type in your previous comment. I think it's reasonable; at worst it's another distinction in the intermediate representation for writers to ignore to a greater or lesser degree, and the uniformity could be of some benefit, though it's hard to say without actually starting to implement the change.

OK, to summarize then:
type RowSpan = Int
type ColSpan = Int
type Caption = [Block]
type ShortCaption = [Inline]
type ColWidth = Maybe Double
data Cell = Cell Attr (Maybe Aligment) RowSpan ColSpan [Block]
type RowHead = [Cell]
type RowCells = [Cell]
data Row = Row Attr RowHead RowCells
type TableHead = [Row]
type TableBody = [Row]
type TableFoot = [Row]
data Block =
  ...
  | Table Attr Caption ShortCaption [(Alignment, ColWidth)] TableHead TableBody TableFoot

@tarleb - what do you think of this?

Looks good to me!
Maybe we could group the arguments to Table more, e.g. by introducing a type data BareTable = BareTable TableHead TableBody TableFoot or something similar?

If we want to compress things, I'd prefer something like
data Caption = Caption (Maybe [Inline]) [Block] -- short caption, full caption
type ColSpec = (Alignment, Colwidth)
data Block =
  ...
  | Table Attr Caption [Colspec] TableHead TableBody TableFoot

And should we consider using newtypes instead of type for things like TableBody and Colspec?

Having the caption components bundled together would be good. That bundling might happen anyway with a new Figure block.
I'm not sure how great the benefit of newtyping would be. The ColSpec could be data ColSpec = ColSpec ... I suppose.

Advantage of a newtype is that the types then enforce the distinctions.  With type synonyms you won't get an error if you put a TableHead where a TableBody should go, etc.
Disadvantage is that it's a bit more cumbersome doing pattern matching, etc. However, it's not too hard, and there's always coerce.

That said, we use type aliases all over the place in pandoc-types now (e.g. Attr), so maybe this isn't the time to change.

Perhaps it isn't the time to change type/newtype approaches.
It sounds like the most recent summary, with the modified data Caption, is acceptable. If that is the case, I can start working from that design.

Sounds good to me!

Hello,
I just wanted to share that I'm in the process of submitting a Google Summer of Code 2020 proposal to provide a library with similar functionality, as it seems to be something many Haskell packages could benefit from, not least of all pandoc. The exact API is not finalized, but the proposal is in rough draft form at the moment. I do hope this is something that can benefit this project and many others.

@Mercerenies - the proposal looks quite interesting. How were you thinking it intersects with pandoc?  Do have any suggestions about to the proposal above, or does it seem reasonable to you?

The timing ended up being quite inconvenient, as I reached out to @tarleb about the proposal a few days before this issue was opened. That being said, I do still feel like a dedicated library for this kind of thing would be very nice to have, for several reasons, even if pandoc has its own type as well.
In terms of the above proposal, I share the concern about type vs newtype but understand why making that change would be an inconsistency with the rest of the library. Aside from that, what you said above seems pretty reasonable. I'd personally go for the version that doesn't involve a 7-arg constructor.

I completely agree that a dedicated library could be useful even if pandoc has its own type -- and there could be glue code converting between pandoc tables and this library's type.


Dotnet cli installation error on WSL

Problem encountered on while installing the dotnet cli on wsl ubuntu,
WSL:Ubuntu 18.04.1 LTS

The following packages have unmet dependencies:
dotnet-sdk-2.2 : Depends: aspnetcore-runtime-2.2 (>= 2.2.5) but it is not going to be installed
Depends: dotnet-runtime-2.2 (>= 2.2.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

What instructions were you following? The most common reason for this error is using a package repository that doesn't match your distro or release number.
If that doesn't help, can you run these diagnosis steps and share the results?
# Shows the repositories you have configured. Source: https://askubuntu.com/a/741948
grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/
# Show your distro version.
cat /etc/os-release
# This install command will show exactly which dependency can't be met.
sudo apt-get install dotnet-runtime-deps-2.2

Thanks dagood,
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Below are my repos
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ bionic-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
/etc/apt/sources.list:deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
/etc/apt/sources.list:deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
/etc/apt/sources.list.d/dotnetdev.list:deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main
/etc/apt/sources.list.d/microsoft-prod.list:deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic main
/etc/apt/sources.list.d/sublime-text.list:deb https://download.sublimetext.com/ apt/stable/

Good start, a few questions you missed:

What instructions were you following?

# This install command will show exactly which dependency can't be met.
sudo apt-get install dotnet-runtime-deps-2.2

My apologies,  below is the output,
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-runtime-deps-2.2 : Depends: libicu55 but it is not installable

ashish@Latitude7470:~$ dotnet --list-sdks
2.2.300 [/usr/share/dotnet/sdk]
I found the solution here  github
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7ubuntu0.4_amd64.deb -P /tmp
sudo dpkg -i /tmp/libicu55_55.1-7ubuntu0.4_amd64.deb

Thank you dagood,

This source is unusual:

/etc/apt/sources.list.d/dotnetdev.list:deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main

Xenial is Ubuntu 16.04, so I'm betting it's finding the 16.04 dotnet-runtime-deps, not the 18.04 dotnet-runtime-deps. This would explain why it's asking for libicu55 rather than libicu60. If you removed that source, your install command would probably pick up the right packages from the correct source (which you also have installed):

/etc/apt/sources.list.d/microsoft-prod.list:deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic main

You've already worked around it, but you might want to get rid of the weird source to avoid more mismatches in the future.


send_file returns part of a file to a client when running with gevent worker on python 2.7.x

   send_file returns part of a file to a client when running with gevent worker.  This is happening with python 2.7.17. Working well with Python 3. When removing gevent working and running with gthreads, there is no issue at all with the send_file.  See details below.
   Flask stills return 200 regardless the error.

`            return send_file(output_file,
                             mimetype=mimetype,
                             attachment_filename=os.path.basename(output_file),
                             as_attachment=True)
`

Actual Behavior
send_file() is returning a part of actual file content and causing networking error.
In somehow, content of the file is cut off
Server log error recorded

[2020-06-17 13:37:27 +0000] [256] [ERROR] Socket error processing request.
Traceback (most recent call last):
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/workers/base_async.py", line 66, in handle
    six.reraise(*sys.exc_info())
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/workers/base_async.py", line 56, in handle
    self.handle_request(listener_name, req, client, addr)
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
    addr)
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/workers/base_async.py", line 129, in handle_request
    six.reraise(*sys.exc_info())
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/workers/base_async.py", line 112, in handle_request
    resp.write_file(respiter)
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 403, in write_file
    if not self.sendfile(respiter):
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 393, in sendfile
    sent += sendfile(sockno, fileno, offset + sent, count)
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 38, in _gevent_sendfile
    return o_sendfile(fdout, fdin, offset, nbytes)
  File "/opt/miniconda/lib/python2.7/site-packages/gunicorn/http/_sendfile.py", line 66, in sendfile
    raise OSError(e, os.strerror(e))
OSError: [Errno 0] Success

Environment

Python version: 2.7.17

Gunicorn version: 19.9.0

Geven version: 20.6.2

Flask version: 1.1.1

Werkzeug version: 1.0.1

Due to the way send_file and HTTP works, if there is an error after the request starts, it still appears to be a 200 even though it fails later, because the status has to be sent at the start of the response, it can't be changed later. Unfortunately there's not enough information here to debug your issue, but I'd guess it's not specific to Flask, since Gevent does in fact work for serving files. Also note that Python 2.7 will no longer be supported in the next release, although it's also not clear if that's related to the issue.

@davidism, I replace the send_file with a direct return of the content of the output_file, it's working fine in this way. Based on the traceback error, I still believe there is something from the send_file function that can be looked at.

Everything in the traceback is from Gunicorn, not Flask.


How does the coco data used for training?

How does the coco data used for training?  Since it is not object tracking dataset.

For image datasets, we simply repeat the image and generate synthetic image pair through data augmentations. You can refer to:
https://github.com/botaoye/OSTrack/blob/3f4d341f05908da959b4b38d9f89945097a6b916/lib/train/data/sampler.py#L144


window.onDidWriteTerminalData integration test failure

Build: https://dev.azure.com/monacotools/a6d41577-0fa3-498e-af22-257312ff0545/_build/results?buildId=231728
Changes: https://github.com/Microsoft/vscode/compare/a75f1b9...15c9686

This was disabled in https://github.com/microsoft/vscode/issues/193505


pybullet_envs required even for atari environments

Describe the bug
enjoy.py launches a ModuleNotFoundError: No module named 'pybullet_envs' even when operating only on atari environments.
Code example
python enjoy.py --algo a2c --env BreakoutNoFrameskip-v4 --folder trained_agents/ -n 5000
System Info
➜ pip freeze
absl-py==0.8.0
astor==0.8.0
atari-py==0.2.6
attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
cloudpickle==1.2.1
cycler==0.10.0
decorator==4.4.0
defusedxml==0.6.0
entrypoints==0.3
future==0.17.1
gast==0.2.2
google-pasta==0.1.7
grpcio==1.23.0
gym==0.14.0
h5py==2.9.0
ipykernel==5.1.2
ipython==7.8.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.15.1
Jinja2==2.10.1
joblib==0.13.2
jsonschema==3.0.2
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==6.0.0
jupyter-core==4.5.0
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
MarkupSafe==1.1.1
matplotlib==3.1.1
mistune==0.8.4
mpi4py==3.0.2
nbconvert==5.6.0
nbformat==4.4.0
notebook==6.0.1
numpy==1.16.4
opencv-python==<IP_ADDRESS>
pandas==0.25.1
pandocfilters==1.4.2
parso==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
Pillow==6.1.0
prometheus-client==0.7.1
prompt-toolkit==2.0.9
protobuf==3.9.1
ptyprocess==0.6.0
pyglet==1.3.2
Pygments==2.4.2
pyparsing==2.4.2
pyrsistent==0.15.4
python-dateutil==2.8.0
pytz==2019.2
PyYAML==5.1.2
pyzmq==18.1.0
qtconsole==4.5.4
scikit-learn==0.21.3
scipy==1.3.1
Send2Trash==1.5.0
six==1.12.0
snakeviz==2.0.1
stable-baselines==2.7.0
tensorboard==1.14.0
tensorflow==1.14.0
tensorflow-estimator==1.14.0
termcolor==1.1.0
terminado==0.8.2
testpath==0.4.2
tornado==6.0.3
traitlets==4.3.2
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.15.5
widgetsnbextension==3.5.1
wrapt==1.11.2

Additional context
From the code of enjoy.py it seemed that the import of pybullet_envs is guarded, however the module raises the exception anyway.
# For pybullet envs
warnings.filterwarnings("ignore")
import gym
try:
    import pybullet_envs
except ImportError:
    pybullet_envs = None
import numpy as np
try:
    import highway_env
except ImportError:
    highway_env = None
import stable_baselines

The full trace of the exception is:
Traceback (most recent call last):
  File "enjoy.py", line 24, in <module>
    from utils import ALGOS, create_test_env, get_latest_run_id, get_saved_hyperparams
  File "/home/giorgio/projects/research/rl-baselines-zoo/utils/__init__.py", line 1, in <module>
    from .utils import make_env, ALGOS, linear_schedule, create_test_env,\
  File "/home/giorgio/projects/research/rl-baselines-zoo/utils/utils.py", line 9, in <module>
    import pybullet_envs
ModuleNotFoundError: No module named 'pybullet_envs'

So the problem is an unguarded import in  rl-baselines-zoo/utils/utils.py
Easy fix would be to just wrap the import in the utils.py module, otherwise pybullet could be listed as a required dependency.

Hello,
thanks for raising the issue, i would appreciate a pr with the proposed fix ;)
(and pybullet is already present in the install instructions)

Fair point, my bad, the dependency is stated in the instructions, I should have read them more carefully.
However, I don't really see any reason why it shouldn't be possible to run enjoy.py without pybullet for the other environments :)
If you still think it may be useful I can send the pr.

yes, please do


Using mail_replyto component property crash sending mail

wintercms 1.1.7
foms 2.0.0

If mail_replyto component property is used to refer a form field, then the mail notification result in an error :
Swift_RfcComplianceException: Address in mailbox given [email] does not comply with RFC 2822, 3.6.2.
In this case I want to use the email field of my form.
When I was looking for the cause of the problem, I realised that the line
https://github.com/skydiver/wn-forms-plugin/blob/805f3aff2ba4ae768d61b5fedbae913e0cf1dcf6/classes/Mails/Notification.php#L74
May be changed to $message->replyTo($this->post[$this->properties['mail_replyto']]); if we want the reply field of mail to be set.
The only workaround currently found is to remove the reply_to property from the component.

wintercms 1.1.8
foms 2.0.0
Same issue

Well still waiting for a fix.
Did #15 will be merged to close this issue?

@skydiver ... Is this plugin still maintained?


Returns undefined, when sponsor is an organisation

Heya @akhilmhdh,
Love your action, it's awesome!
This is a very minor issue, but when using to show a list of sponsors, if one of your sponsors is an organisation (instead of an individual user), then it shows up as undefined in the results table - here's an example from my repo.

From the docs, it looks like sponsorEntity can be either User or Organization, but your query  only selects User. The Organisation also include all the fields you need, and with the same names (name, login and avatarUrl).
I would have submitted a PR myself, but I'm a noob at GH actions, and haven't managed to get it running locally 🤦♀

hey @Lissy93  Thank you so much for using the action and also for your kind words 😃
Ahhh got it. Thank for for sharing the repo link, and also the detailed cause of it. Will resolve and release a patch asap.
Hihi. GH action testing is still kinda tricky as you need to push to test. I am planning to rewrite the action in v4 to make local development and testing lot easier. And to make contribution easier.

Hey @Lissy93
I was actually going though this bug and ran this query in explorer and found out that GitHub is giving null. Weird, i must say.

So i checked your sponser list in profile and actually there is also same case 😅

Check out the last person. I didn't know that it was nullable. Anyways ill do a filter to clear nullable ones and add the missing org query also.

Hey @Lissy93 I have released new patch version that resolves this.
Checkout contributors-readme-actionv2.3.4
I am closing this issue as I assume this will resolve it. If not or if you have any trouble feel free to open the issue.


Creating 2021-11-18-Launch-Announcement-1-2-0.markdown

Adding draft of announcement
TODO

add gif of observability interface
add branding comparison
update language of branding section
update shard level backpressure language

Description
Drafting launch announcement for 1.2.0
By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

holding based on new 1.2 timeline.

Closing in lieu of #516


kvm: journald integration doesn't work

Capturing my comment on https://github.com/coreos/rkt/pull/2795#issuecomment-225860400.
We currently don't create the link  /var/log/journal/${MACHINE_ID} -> /var/lib/rkt/pods/run/.../var/log/journal/${MACHINE_ID} so journalctl on the host can't find the logs of KVM pods.
Moreover, the machine ID we set is not related to the pod UUID:
$ rkt list --full | grep running
fb506228-8f92-402b-94df-147edfadd8d9	etcd	coreos.com/etcd:v2.0.10	sha512-c03b055d02e5	running	2016-06-14 13:56:46.82 +0200 CEST	2016-06-14 13:56:46.88 +0200 CEST	default:ip4=<IP_ADDRESS>
# cat /var/lib/rkt/pods/run/fb506228-8f92-402b-94df-147edfadd8d9/stage1/rootfs/etc/machine-id
cf46a7f239244852988f098bb2509627

@jjlakis I moved it to the next milestone, feel free to schedule it somewhere else if you have an ETA for it

@tmrts We will fix for 1.11.
/cc @coreos/rkt-kvm-maintainers


Further migrate the build logic to code in buildSrc/src/main/

In the issues #750, #687 and also #1004 parts of the gradle build scripts have been moved to the buildSrc directory.
The code that has been extracted consists mostly of plugin application and/or configuration. Parts of the root (and maybe others as well) build.gradle.kts could still be migrated to buildSrc, e.g. configuration of JavaLibraryPlugin, GrgitPlugin, IntelliJPlugin and also configuration of UiTests.
Another thing to consider is rewriting Spotless and VersionCatalogUpdate configuration as a precompiled script so they could be used also in buildSrc/build.gradle.kts. From what I've tried code in buildSrc/src/ can't be used in buildSrc/build.gradle.kts as it is built after the script.
Using exisitng code in buildSrc/ consider further build logic migration out of the build scripts.

Only JavaLibraryPlugin config left... lemme extract a separate task


reply about deep time studies

added 2 references and changed the intro wording a bit.

An alternative: https://github.com/weecology/bbs-forecasting/commit/c1a3830eeee66dcd71c30905fc05fff4803fd179?short_path=2112e0d#diff-2112e0db2b5026e7808dfd94ee62b151

@davharris that looks like an alternative to #227, of which it does look better.

@sdtaylor Yeah, I had just moved it.  Sorry!  Should we close #227?

:+1: to replacing #227 with @davharris's alternative.

LGTM

Thanks both!


Add Stockalike Mining Extension from Kerbal Stuff

This pull request was automatically generated by Kerbal Stuff on behalf of Suicidalinsanity, to add Stockalike Mining Extension to CKAN.
Please direct questions about this pull request to Suicidalinsanity.

Mixes up folders with Mk2Expansion in a way that's likely to cause problems.

Currently this mod adds a resources folder not present in mk2exp. and wants to replace the agencies folder (which are identical in both mods). If the mod author plans on adding resources to mk2exp. or plans on changing the agencies between both mods, there should be no issues.
MD5 checksum comparison:
21 files in digest file. 18 errors.

OK	MD5	Agencies\Agents.cfg
OK	MD5	Agencies\IA.png
OK	MD5	Agencies\IA_scaled.png
FAIL	MD5	Agencies\Thumbs.db
File does not exist: Parts\Resource\Generator\fuellcell.dds
File does not exist: Parts\Resource\Generator\mk2FuselageShort.dds
File does not exist: Parts\Resource\Generator\Model.mu
File does not exist: Parts\Resource\Generator\part.cfg
File does not exist: Parts\Resource\ISRUDrill\mk2FuselageShort.dds
File does not exist: Parts\Resource\ISRUDrill\Model.mu
File does not exist: Parts\Resource\ISRUDrill\RadialDrill.cfg
File does not exist: Parts\Resource\ISRUDrill\TriBitDrill.dds
File does not exist: Parts\Resource\OreTank\ksp_l_resourceContainer_diff.dds
File does not exist: Parts\Resource\OreTank\mk2FuselageShort.dds
File does not exist: Parts\Resource\OreTank\Model.mu
File does not exist: Parts\Resource\OreTank\part.cfg
File does not exist: Parts\Resource\Refinery\ISRU.cfg
File does not exist: Parts\Resource\Refinery\ksp_s_processorSmall_diff.dds
File does not exist: Parts\Resource\Refinery\mk2FuselageShort.dds
File does not exist: Parts\Resource\Refinery\Model.mu
File does not exist: Parts\Resource\Refinery\Processor_Large.dds

If we split the Agencies into a separate mod that they both have a dependency on, and filter out the Agencies from both mods, it should work fine.

Closing for #3052


Add recurring job to run everyday at 01:00

This job will reindex the Elastic Search db

 Fix fuzzy search


Access management

Make it possible to set access privileges on documents or folders.
Right now, folder uploaded by admin are not visible to standard user.

Access management will be part of 3.2 (or maybe 3.3) releases. It is pretty big topic and it will take me couple of months to get through.


AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute '_unique_id'

Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
2.10
Custom Code
Yes
OS Platform and Distribution
Debian64 ( Unix )
Mobile device
No response
Python version
3.10.4
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Hello to Everyone

I need to training an Actor network for a reinforcement learning algorithm but in time i am trying to predict continuous actions i have a problem with the function:

self.Actor.optimizer.apply_gradients ( zip ( grads2 , std ) )

also this one gives me the same error:
self.Actor.optimizer.apply_gradients ( zip ( [ grads1 , grads2 ] , [ self.Actor.model.trainable_variables , std ] ) )

Please note that with the following function all goes well:
self.Actor.optimizer.minimize ( loss_actions , var_list = [ self.Actor.model.trainable_variables , std ] , tape = tape_actions )

the problem seems to be caused by the external variable std ( that it is not internal to the model ), Did I make some mistakes? is there a way to clip_by_norm the std variable's gradients ?

Best Regards Samir

Standalone code to reproduce the issue
one = tf.ones ( self.settings.action_size , dtype = float )
std = tf.Variable ( one , dtype = float , name = 'std' )

sample = self.replay.sample ()

with tf.GradientTape ( persistent = False ) as tape_actions :
     tape_actions.reset ()

     actions_local = self.Actor.model ( sample [ 0 ] )

     tfp_dist  = tfp.distributions.Normal ( loc = actions_local , scale = std )
     new_probs = tfp_dist.log_prob        (       sample [ 1 ]                )
     new_probs = tf.math.reduce_sum       (       new_probs     , axis  = 1   )
     new_probs = tf.math.exp              (       new_probs                   )

     ratio = new_probs / sample [ 3 ] # >= 0

     ratio = tf.math.reduce_min (
             tf.convert_to_tensor ( [ ratio * sample [ 4 ] , \
             tf.clip_by_value     (   ratio , clip_value_min = 1 - 0.1 ,
                                              clip_value_max = 1 + 0.1 ) * sample [ 4 ] ] ) ,
                                   axis = 0 )

     loss_actions = - tf.math.reduce_mean ( ratio )

grads = tape_actions.gradient ( loss_actions , [ self.Actor.model.trainable_variables , std ] )

grads1 = [ tf.clip_by_norm ( t = w , clip_norm = 0.75 ) for w in grads [ 0 ] ]
grads2 = [ tf.clip_by_norm ( t = w , clip_norm = 0.75 ) for w in grads [ 1 ] ]

self.Actor.optimizer.apply_gradients ( zip ( grads1 , self.Actor.model.trainable_variables ) )
self.Actor.optimizer.apply_gradients ( zip ( grads2 ,                                  std ) )

Relevant log output
1/1250/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
  import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
  File "/home/kaumi/Git/deepL_RL2/4.ML_Agents/14.p2_continuous-control/Reacher_exam_code/Reacher.py", line 43, in <module>
    future.cross_entropy_loss ()
  File "/home/kaumi/Git/deepL_RL2/4.ML_Agents/14.p2_continuous-control/Reacher_exam_code/agent.py", line 295, in cross_entropy_loss
    self.play_EP ( ie , self.settings.envs.reset ( train_mode = True ) [ self.settings.brain_name ] )
  File "/home/kaumi/Git/deepL_RL2/4.ML_Agents/14.p2_continuous-control/Reacher_exam_code/agent.py", line 78, in play_EP
    print ( '' ) ; self.training_for_elite (real_steps_to_train) ; print ( '' )
  File "/home/kaumi/Git/deepL_RL2/4.ML_Agents/14.p2_continuous-control/Reacher_exam_code/agent.py", line 169, in training_for_elite
    self.training ( self.future_rewards_elite , real_steps_to_train )
  File "/home/kaumi/Git/deepL_RL2/4.ML_Agents/14.p2_continuous-control/Reacher_exam_code/agent.py", line 272, in training
    self.Actor.optimizer.apply_gradients ( zip ( grads2 ,                                  std ) )
  File "/home/kaumi/.local/lib/python3.10/site-packages/keras/optimizers/optimizer_v2/optimizer_v2.py", line 695, in apply_gradients
    self._create_all_weights(var_list)
  File "/home/kaumi/.local/lib/python3.10/site-packages/keras/optimizers/optimizer_v2/optimizer_v2.py", line 959, in _create_all_weights
    self._create_slots(var_list)
  File "/home/kaumi/.local/lib/python3.10/site-packages/keras/optimizers/optimizer_v2/adam.py", line 126, in _create_slots
    self.add_slot(var, "m")
  File "/home/kaumi/.local/lib/python3.10/site-packages/keras/optimizers/optimizer_v2/optimizer_v2.py", line 1017, in add_slot
    var_key = _var_key(var)
  File "/home/kaumi/.local/lib/python3.10/site-packages/keras/optimizers/optimizer_v2/optimizer_v2.py", line 1650, in _var_key
    return var._unique_id
  File "/home/kaumi/.local/lib/python3.10/site-packages/tensorflow/python/framework/ops.py", line 446, in __getattr__
    self.__getattribute__(name)
AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute '_unique_id'

resolved with: self.Actor.optimizer.apply_gradients ( zip ( [ grads2 ] , [ std ]  ) )

@AngraPatrick,
Glad the issue is resolved for you, please feel free to move this to closed status. Thank you!

AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'float_val'


SSL support?

Is SSL support (even if only with self-signed certs) planned?

Gotcha. I was looking for a self-signed SSL cert for dev so I wrote a shell script to generate one and modified the Traefik config to use it. Seems to be working.
Thank you! Dashtainer made it really easy to get started.


car don't stop

am having a problem with "rc_driver.py" when ultrasonic gives a stop signal or the stop sign put stop_flag true it don't wait until the obstacle is removed  !!!!
i also noticed that there is no wait function in the code after obstacle detection ?!!!!
@hamuchiwa  any ideas why???

I have given you my drive programs through mail @Sirajabudabe  check it out.

@SaiSurya9999 @Sirajabudabe
I'm having the same problem in "rc_driver.py".  My car also won't stop when the object was detected.?
Can You help me with this problem..!


Rendering in iTerm

Others at Juliacon have been using iTerm and made plots inline to the REPL, figure out if this is possible in this package

Looks like iTerm might just display pictures inline (?), which isn't well supported in Vega.jl


Can I use tektoncd for building data processing pipelines?

I am trying to see if I can build a data processing pipeline using tekton CD with say an input of event in Kafka Queue. Some example of data processing pipeline task steps will include Text extraction from files, Running AI/ML predictions / classification / tagging on extracted text from the earlier tasks , meta-data processing etc and finally push it as an event to kafka and store the data in S3. I am trying to compare this option with running Apache Beam pipelines (https://beam.apache.org/documentation/pipelines/design-your-pipeline/) with Spark runner (Spark operator on K8s) or use Argo Workflows on K8s. Please advise. the step containers are likely going to be huge (cpu/ram) as it will need to deal with large file (10-100 MB) text extraction etc.

Not knowing too much about Tekton, I think this is a great idea. My use case is very similar to yours (1000x100mb files that need text analysis) and I was planning on using RabbitMQ. My intuition is that using a Tekton pipeline would be less of a headache.
I’ll post back if it turns out. Please keep us up to date on your efforts as well! :)

Obviously there's nothing in Tekton that will actively prevent you from building whatever kinds of pipelines you want. However, while I don't think it would be impossible to do what you're suggesting I also don't think Tekton Pipelines is geared towards your goals either. Tekton's focus is very much to provide building blocks and working implementations of continuous integration and delivery primitives.
I'm going to close this issue since I believe the general answer to your question is "yes" but the more pragmatic answer is "noone's actively supporting that use case right now".

Thanks Scott for your quick reply!

I’m writing s3 support this evening. My use case is some one-off tasks working on ~1000x100mb files stored in a bucket, and I wanted to accomplish this with Tekton to become more familiar with it.
As sbwsg said, it’s clearly possible. Tekton supports basically all of the resources types as inputs that you could want. Implementing s3 support has been a breeze.


need your help

Hi， I want to know how to train Convoccnet on new datasets？I do not know how to revise config.py

Hi and sorry for the late reply,
on which dataset do you want to run ConvONet? Is this a problem related to ConvONet for point clouds with visibility information?
If you structure your dataset the same way as e.g. the ModelNet10 dataset you should only have to make a new config.yaml file. You do not have to change anything in config.py.


chore: eslint integration poc

Description

[!TIP]
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.

Fixes #Issue Number
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test tags=""
:mag: Cypress test results

[!WARNING]
Tests have not run on the HEAD d1336703a6c83e8be516d972894744858b7a64d0 yet
Fri, 20 Sep 2024 05:41:23 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true


Create BDArmory Sorting.netkan

Remove BDArmory's parts from Utility, because now they have their own tab.
As I detect, modname and filename must be the same.

Same as in #2208

The identifier needs to be identical to the filename and not have any spaces :)

Duplicate of #2210.


Status code 500 Internal Server Error when uploading cvat 1.1 for images annotations (500MB of size)

My actions before raising this issue

[done] Read/searched the docs
[done] Searched past issues

Basically, i have a huge object detection dataset (nearly 200 GBs of size) which has been annotated beforehand using YOLOMARK, and i want to further annotate them with attributes. The idea is i want to reuse the annotated boxes and make every class have their own attributes for the annotaters to annotate.
My approach to do so is as follows :

Create a new task, with the classnames from my dataset.
Dump the empty annotations as CVAT for images format (why not yolo format is due to another separate issue #2473 )
Use a custom python script to parse all the  tag in the exported xml file, grab the relevant annotation file (from yolomark) and fill in the detections.
Write the xml file and upload.

Forgot to mention : uploading was done through cli.py
Before, this has happened and i succeed in uploading the annotations.
Then some things happened and i have to redeploy cvat in another environment.
Same exact version, similar system (i dont think it would cause any different but just for the sake of completeness), same tweaking (had to change the package lock and bump up rq timeout to 12 hours for my big dataset), basically same everything.
The only difference being :

In the successful attempt, i added the label names manually from each entry in the .names file of yolomark.
1,5. Sometimes after the succesful attempt, my friend added the suitable attributes for each class.
In the unsuccessful attempt, i did not add the label names manually from the .names file, but rather took the json after 1,5 happened and use it for labels.

My investigation :

there are no much difference inspecting both versions of XML files (of 1 and 2) besides the presence of list of attributes aside of list of labels.
The logs does not say much about things, only that an internal error has happened. will attach if requested but that's pretty much everything it said. no lines causing error, no nothing!
I experimented with another xml where i only write the first 500 labels because i had suspicions that it was caused by the sheer size of the annots file. And it worked! Weird thing is, why did it work with the previous one then? as i said, same version, same everything.
I started inspecting views.py and the subsequent relevant files and may or may not have the singular line causing it. But still no luck on why it failed.

Expected Behaviour

That it uploads normally or at the very least, tells me what's wrong so i can have another chance.
Current Behaviour

I think everything is already mentioned above. Will add more info if requested
Possible Solution

No idea since i dont know what is causing it
Steps to Reproduce (for bugs)
As above. I doubt it would be beneficial if i give you the 200GB dataset plus the 500MB annotations since it will take extremely long and i cant really give you the dataset. Any huge annots file would suffice probably
Context
I will go out on a limb and say this has already been expressed clearly above. feel free to inquire further
Your Environment

Git hash commit (git log -1): Release 1.1.0
Docker version docker version (e.g. Docker 17.0.05): 19.03.14
Are you using Docker Swarm or Kubernetes? Docker compose
Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 18 04 lts
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
Logs from `cvat` container

Next steps
You may join our Gitter channel for community support.

Hi, please check if there are any messages like child process exited with code -9 and Out-Of-Memory errors in the system log (dmesg -HTw on Linux).

Hi, please check if there are any messages like child process exited with code -9 and Out-Of-Memory errors in the system log (dmesg -HTw on Linux).

thanks for the response, i will look into it later and report back

Thanks! adding swap is a bit slow but it does the trick without adding rams.


Support Python 3.12

Update setup files to support 3.12

Fixes #128

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (8971370) 96.79% compared to head (80d6d80) 96.79%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #129   +/-   ##
=======================================
  Coverage   96.79%   96.79%
=======================================
  Files          15       15
  Lines        1281     1281
=======================================
  Hits         1240     1240
  Misses         41       41

Flag
Coverage Δ

unittests
96.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Fix retry logic causing consumer leaving the group

Short problem description: consumer leaves the group when combined processing+backoff time is higher than max.poll.interval.ms.
Root cause: The retry logic in ErrorHandlingUtils does not call poll() (on the paused consumer) before re-trying the listener runnable, it calls poll() only before backing off. So if backoffInterval + duration of the following retried execution is longer than max.poll.interval - consumer leaves the group.
Solution: Amend ErrorHandlingUtils to have an extra call to consumer.poll right before retrying the listener runnable.
#2542

Thanks; merged as c715bb7c9453a7d3b8cd84ef3516d636723a1fdb
Cherry-picked to 2.9.x as 0814cffe1


set default sex to female

In order not to perpetuate gender bias cf Invisible Women - Exposing data bias in a world designed for men, Caroline Criado Perez, the charts have sought de-emphasis the old pink/blue. In addition the default selection could also be set to female.

I agree that default male is wrong, but default female is not much better. Perhaps no default at all, or even use a random sex while flagging it very obviously.

Having no default seems like the best way to resolve this - then giving the user the option to choose between male and female in a dropdown


Replacing inheritance w/ composition in ImmutableTabsType

I am targeting this branch, because {ImmutableTabsType and its test class need to be compliant with new ImmutableArrayType class and new namespace different from legacy sonta-project/core-bundle}.

Changelog

Thanks 👍

thanks


cannot find arxiv paper from the given link

cannot find arxiv paper from the given link

Thank you for your attention to our work. We will release arxiv paper within one or two days.

I'm looking forward to your paper. I want to see it as quickly as possible.

looking forward to your paper

looking forward to your paper,too.

I am looking forward to your paper too.

looking forward to your paper, too.

looking forward to your paper, too.

https://arxiv.org/pdf/1709.01507.pdf

Hi, everyone. Our arxiv paper is released and the arxiv link is updated. Thank you for your attention to our work.


question about usage

hello, i am new at using c compilers. I could not run this program using git hash or cmd. Is that useable only mac/linux/visual studio?
and i need to seperate WRITE_CODE part for my homework. I am studying on SoC acceleration about lzw. but when I seperate WRITE_CODE as a function in lzw-library, i had an error undeclared use "*dst".
What does *dst in there? I have spent hours to find it but i could not found.
Thank you for your interest!

C programs must be compiled before they can be run, but there are free C compilers available for every platform.
WRITE_CODE is a C macro, and the dst in there must be a variable in the function that is invoking the macro, just like bits, code_bits, shifter, etc. The difference is that dst is actually an input parameter to the function, in this case declared on line 95.
Hope this helps and good luck on your project!


Xcode doesn't need to be cached by runtime name on macOS 13

Is there an existing issue for this?

[X] I have searched the existing infra issues

Type of Request
infra task
Infrastructure Environment
LUCI
What is happening?
On macOS 13, runtimes are no longer packaged within the Xcode app. Therefore, we don't need separate Xcode cache directories per runtime.
For example, previously we could have Xcode cached like this in a directory with the runtime names. For example:
cache/xcode_14e300c/Xcode.app
cache/xcode_14e300c_runtime_ios-16-4_14e300c_ios-16-2_14c18/Xcode.app
Now, we don't need to separate by runtime, so we'd only need
cache/xcode_14e300c/Xcode.app
Steps to reproduce
No response
Expected results
No response

Fixed by https://flutter-review.googlesource.com/c/recipes/+/52982.


Navigate to selected function in the "Function tags" window

Is your feature request related to a problem? Please describe.
After having tagged functions and switching between them, it's always a hassle to actually navigate to them.
Describe the solution you'd like
The ability to just jump to functions based on the highlighted entry in the "Functions with Tag: [tag]" window, like the reference search does
Describe alternatives you've considered
A more easily accessible "Go to" window, but that still requires me to memorize or copy the address - and it works in the search!
Additional context
There is nothing more to this

That table should be working as you suggest.  I think this is just an oversight.


Add a Route facade with a route() helper method

Would be neat with a Route facade (basically, just class aliasing the route class), and a route() helper method as well?

See https://github.com/hydephp/develop/issues/178

Can't add a route() function as it already conflicts with Laravel's.


The printoid plugin is not installed in octoprint

I can not install the printoid plugin in octoprint, an error always pops up, the logs are attached, the application is purchased.
plugin_pluginmanager_console.log
octoprint.log

Hi @lex007112,
You might want to contact the Printoid developer regarding that plugin. The Printod plugin is a fork of this one and is maintained by another person.
Good luck!
Gaston


This is very likely to create a memory leak  sun.misc.Unsafe.park(Native Method)

springcloud版本： Greenwich.RELEASE
discovery-plugin 5.1.0

        <dependency>
            <groupId>com.nepxion</groupId>
            <artifactId>discovery-plugin-starter-nacos</artifactId>
            <version>${discovery.version}</version>
        </dependency>

        <dependency>
            <groupId>com.nepxion</groupId>
            <artifactId>discovery-plugin-config-center-starter-nacos</artifactId>
            <version>${discovery.version}</version>
        </dependency>

配置：

spring:
  application:
    name: xxxx
  cloud:
    nacos:
      config:
        server-addr: hoXXXXXrver:8848
        file-extension: yaml
        namespace: 38676d55XXXXXXXXX81-fe2e150b7606
      discovery:
        namespace: 38676d55XXXXXXXXXXXXXXX606

报错：
2019-06-10 14:33:32.134 ERROR [user-service,,,] 14188 --- [           main] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceRegistryEndpoint' defined in class path resource [org/springframework/cloud/client/serviceregistry/ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'serviceRegistryEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosServiceRegistry' defined in class path resource [org/springframework/cloud/alibaba/nacos/NacosDiscoveryAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.cloud.alibaba.nacos.registry.NacosServiceRegistry.<init>(Lorg/springframework/cloud/alibaba/nacos/NacosDiscoveryProperties;)V
2019-06-10 14:33:32.164  INFO [user-service,,,] 14188 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2019-06-10 14:33:32.168  WARN [user-service,,,] 14188 --- [           main] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@65fc8edc}] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 zipkin2.reporter.ByteBoundedQueue.drainTo(ByteBoundedQueue.java:81)
 zipkin2.reporter.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:257)
 zipkin2.reporter.AsyncReporter$Builder$1.run(AsyncReporter.java:190)
2019-06-10 14:33:32.169  WARN [user-service,,,] 14188 --- [           main] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [spring.cloud.inetutils] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
 java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 java.lang.Thread.run(Thread.java:748)
2019-06-10 14:33:32.170  WARN [user-service,,,] 14188 --- [           main] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [lettuce-eventExecutorLoop-1-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
 io.netty.util.concurrent.SingleThreadEventExecutor.takeTask(SingleThreadEventExecutor.java:251)
 io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:64)
 io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
 io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 java.lang.Thread.run(Thread.java:748)
2019-06-10 14:33:32.172  WARN [user-service,,,] 14188 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2019-06-10 14:33:33.189  WARN [user-service,,,] 14188 --- [           main] z.r.AsyncReporter$BoundedAsyncReporter   : Timed out waiting for in-flight spans to send
2019-06-10 14:33:33.190  INFO [user-service,,,] 14188 --- [           main] c.n.eventbus.thread.ThreadPoolFactory    : Shutting down thread pool executor [java.util.concurrent.ThreadPoolExecutor@6de5ad56[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]]...
2019-06-10 14:33:33.204  INFO [user-service,,,] 14188 --- [           main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-06-10 14:33:33.215 ERROR [user-service,,,] 14188 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call the method org.springframework.cloud.alibaba.nacos.registry.NacosServiceRegistry.<init>(Lorg/springframework/cloud/alibaba/nacos/NacosDiscoveryProperties;)V but it does not exist. Its class, org.springframework.cloud.alibaba.nacos.registry.NacosServiceRegistry, is available from the following locations:

    jar:file:/E:/mvn_repo/org/springframework/cloud/spring-cloud-alibaba-nacos-discovery/0.2.1.RELEASE/spring-cloud-alibaba-nacos-discovery-0.2.1.RELEASE.jar!/org/springframework/cloud/alibaba/nacos/registry/NacosServiceRegistry.class

It was loaded from the following location:

    file:/E:/mvn_repo/org/springframework/cloud/spring-cloud-alibaba-nacos-discovery/0.2.1.RELEASE/spring-cloud-alibaba-nacos-discovery-0.2.1.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.cloud.alibaba.nacos.registry.NacosServiceRegistry

G版对应的是0.9.0，不是0.2.1

感谢


Not a directory: './test/Annotations/00001.jpg'

Thank you for your excellent contribution, but I met some problems when testing with my own data.
I prepared the data set as you mentioned in your introduction:
XMem
test
Annotations
00001.jpg
JPEGImages
00001.jpg
00002.jpg
And I ran python eval.py --generic_path ./test --dataset G met error:
Output path not provided. Defaulting to ../output/G_val
save_all is forced to be true in generic evaluation mode.
Hyperparameters read from the model weights: C^k=64, C^v=512, C^h=64
Single object mode: False
Traceback (most recent call last):
File "/home/ubuntu/cyh/XMem_fold/XMem/eval.py", line 148, in
for vid_reader in progressbar(meta_loader, max_value=len(meta_dataset), redirect_stdout=True):
File "/home/ubuntu/miniconda3/envs/py39/lib/python3.9/site-packages/progressbar/shortcuts.py", line 10, in progressbar
for result in progressbar(iterator):
File "/home/ubuntu/miniconda3/envs/py39/lib/python3.9/site-packages/progressbar/bar.py", line 546, in next
value = next(self._iterable)
File "/home/ubuntu/cyh/XMem_fold/XMem/inference/data/test_datasets.py", line 22, in get_datasets
name[:-4] for name in os.listdir(path.join(self.mask_dir, video))
NotADirectoryError: [Errno 20] Not a directory: './test/Annotations/00001.jpg'
100% (50 of 50) |############################################| Elapsed Time: 0:00:00 ETA:  00:00:00
I would be grateful if you could provide a response.

Looks like the directory structure does not match the template. See https://github.com/hkchengrex/XMem/blob/main/docs/INFERENCE.md

Oh, I didn't notice there was a "video1" directory, thanks!


markdown cell in notebook

Hi
can you extand this extension to work on markdown cells in ipynb notebooks as well?

Unfortunately, due to the limitations of VS Code, it's not currently possible to extend this extension to work on Markdown cells in IPython Notebooks.


Writing a guide to SIMD

We are going to want to produce a guide on SIMD in Rust that doesn't just cover the API but also covers a standard vocabulary about this, so as to hopefully standardize on a vendor-ambivalent vocabulary. We are also going to want to link to vendors, of course, but we want a way to discuss our own portable types that meshes reasonably well with Rust.
It's important to meet people where they are at here. I believe that people mostly either:

know much of what there is to say about SIMD but may mostly have experience with particular vendor intrinsics or even a more abstract model like GPGPU... for them, we want an option to basically read the "front and back pages" because they may be used to certain terms that are not reflected in our API
have an idea of what SIMD is but mostly as an awareness of e.g. autovectorization, they may know some basics but don't have experience with things like (GP)GPU or intrinsic function programming
have no idea whatsoever, and may not even know why they might care!

Standard vocabulary will likely include these terms or alternates to them:

[x] SIMD
[x] vector
[x] vector register
[x] scalar (by contrast)
[x] vectorize / autovectorization
[x] "lane"?
[ ] "field"?
[ ] "element"?
[ ] "intrinsics"?

We will likely need to also cover subtle differences (or the absence thereof)

[ ] intrinsics vs. instructions
[ ] instructions vs. operations
[ ] lane vs. field vs. element
[ ] scalar vs. vector

[ ] Differences between CPU SIMD and GPU SIMT

[x] Differences between SIMD vectors and SPMD threads

[ ] Differences between "wide vectors" (x86 SSE/AVX/AVX512, Arm Neon, etc.) and "vector architectures" (Cray, RISCV-V, Arm SVE)

How to get the most out of Rust SIMD code

[ ] feature levels, including is_x86_feature_detected!
[ ] #[target_feature]
[ ] #[cfg(target_feature)]
[ ] how to do "multiversioning"
[ ] multiversioning, why or why not?
[ ] when do you use std::arch instead?

And we might want to talk briefly about (abstract) tensors vs. (SIMD) vectors due to matrix multiplication being related to this.

Additional things to potentially include is Cray-style vectors (they allow dynamically picking any arbitrary vector length below some hardware limit), there's probably a better name. This is important since Cray-style vectors are used on RISC-V V, Libre-SOC, and probably more. Also, the first time I heard of vectorization, it was talking about Cray-style vectors, so, even if we don't implement them yet, we should at least mention them.

IIRC, ARM SVE is somewhere in between fixed-length SIMD and Cray-style vectors.

As far as I understand it, but I am by no means an expert, Cray vectors worked intrinsically differently than RISCV-V vectors (that is, they did not have "vector registers" in our sense, so the implications on performance, speed, and et cetera were very different). I definitely would be happy to include discussion of RVV, SVE, and other dynamically sized vectors though, especially when we actually start compiling to them.

Cray totally has vector registers. it was the computer that Cray worked on right before that that didn't. (I think it was the STAR-100, though could be way off)

Quoting the wikipedia article on the Cray-1:

The vector system added another eight 64-element by 64-bit vector (V) registers, as well as a vector length (VL) and vector mask (VM).

Note that RISC-V V is designed to be able to work more like Cray computers did (though it doesn't have to), in that vector operations might take many clock cycles and the first vector elements might be finished waay before the last.

Ahhhh. Noted, then, I agree that Cray vectors and RISCV-V vectors are similar enough at that point.

Should this guide mention something about using SIMD in conjunction with runtime CPU feature detection? As far as I can tell, it seems like the only way to do that is to move all of an application's SIMD code into a separate crate, compile multiple versions of that crate with different RUSTFLAGS, then link to all of those versions from the main application and decide which version of each function to call based on runtime feature detection with std_detect. Is that right?

@dylanede For x86, you can use is_x86_feature_detected. And you can tag functions with #[target_feature(enable = "...")]. There's no need to put things into separate crates or use RUSTFLAGS.
@workingjubilee I'm not sure if this is in scope or not, but it would be good to have practical matters discussed in the guide. The runtime CPU feature detection thing is actually a good example, since I see it come up a lot. There's a lot of confusion around that, how it works and whether they should be using that or compile time CPU feature detection. (Which is often easier to do, but less generally useful when writing libraries.)
Another practical matter is to how to tell whether your target feature settings are correct or not. My heuristic for this is to look at a profile and see whether trivial vendor intrinsics are getting inlined or not. If they're not, it's likely because of a target feature mismatch between caller and callee.

@BurntSushi thanks!

Added relevant desirables to the list. Such advice is absolutely relevant and in-scope, though it had come up in separate issues so I had not yet gotten around to adding it here. "Multiversioning" as a Rust-level code feature is not in scope for the overall Portable SIMD API project, i.e. we will make it easier, but only by providing a portable API. But "how to do it in your own code" is in scope for this guide, as it is essentially supposed to be "what is this library even about and how do I use it?"
Some theory is required to be able to understand the meta-level concerns and make any use of the crate, but also some practical details should be covered as well. Most of the practical details will be in the API documentation itself, but anything that is "up one meta level" relative to the crate can go in the overall guide.


bogus kill on upgrade

With the merge of https://github.com/ZOSOpenTools/meta/pull/591  is this still an issue?

did a zopen upgrade meta and then tried another zopen upgrade -y and got this


acme-client: Security concerns regarding DNS-01 challenge

Important notices
Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.
Before you ask a new question, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.

Hey  there - first of all thank you for creating the acme-client plugin.
However, this might encourage people to simply "secure" their network by using the DNS-01-challenge without further security meassurements.
See Joona's blog entry on the EFF here, where he shows some ways to counteract the possibility of third parties gaining access to your zone file.
His main argument is: most DNS-provider's API-keys are global keys (and even if they only allow one to alter DNS-settings, they often still allow that person to alter ALL DNS-settings) - and storing them on an internet facing device might result in that device being more lucrative to hack (in order to get the API-key).
This is a HardenedBSD device, I know - but at least awareness of that possible security risk should be raised, shouldn't it?

I agree that it is always important to be aware of possible security issues.
Howver, in this particular case the security issue is unrelated to the ACME plugin and OPNsense/HardenedBSD. People need to protect their DNS servers and APIs. But the ACME plugin does just utilize a possibly insecure DNS service, so I don't see the point of raising awareness here. In my opinion this is simply the wrong place. The affected DNS provider/software should raise awareness of this issue, IMHO.
That's just my opinion as the current maintainer of the ACME plugin, it's not an official statement for OPNsense or even HardenedBSD.


live <= master

Docs Build status updates of commit e3f4fca:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

FromYmlToTOC-INDEX.ps1
:white_check_mark:Succeeded

advocates/index.html.yml
:white_check_mark:Succeeded
View

advocates/maxime-rouiller.yml
:white_check_mark:Succeeded
View

advocates/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Constant put inside 'defaultHistory' is not working

Ionic version:  (check one with "x")
[x] 3.x
I'm submitting a ...  (check one with "x")
[x] bug report
Current behavior:
I have constant HOME_PAGE, that i import & would like to use instead of string, but it doesn't work:
import { HOME_PAGE } from "../pages.constants";

@IonicPage({
  defaultHistory: [HOME_PAGE]
})

Constant works if i push page or create modal, but not in defaultHistory.
When i reload/refresh page in browser i got this error:
Runtime Error
Uncaught (in promise): invalid link: HOME_PAGE
Stack
Error: Uncaught (in promise): invalid link: HOME_PAGE
    at c (http://localhost:8100/build/polyfills.js:3:13535)
    at c (http://localhost:8100/build/polyfills.js:3:13221)
    at http://localhost:8100/build/polyfills.js:3:14067
    at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9967)
    at Object.onInvokeTask (http://localhost:8100/build/vendor.js:4500:37)
    at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9888)
    at r.runTask (http://localhost:8100/build/polyfills.js:3:5143)
    at o (http://localhost:8100/build/polyfills.js:3:2203)
    at <anonymous>

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node : v6.11.0
    npm  : 5.4.0
    OS   : Windows 10

Hello! Thank you for opening an issue with us! Would you be able to provide a sample application via GitHub that demonstrates the issue you are having? Thanks for using Ionic!

Hello! Is this still an issue with the latest version of ionic? If so, please provide a sample application via GitHub that demonstrates the issue you are having. Thanks!

Hi @vhb56,
I don't think we're going to be able to fix this before V4 of Ionic, where we get rid of the DeepLink decorator. It won't be an issue in the future I don't think.
Thanks,
Dan


diskusage doesn't compile for node 10

Hello,
diskusage doesn't compile for node 10. The issue seems to come from the dependency to version 2.5 of NaN:
npm install
><EMAIL_ADDRESS>install ~/project/node_modules/diskusage
> node-gyp rebuild

make: Entering directory '~/project/node_modules/diskusage/build'
  CXX(target) Release/obj.target/diskusage/src/main.o
In file included from ../../nan/nan.h:192:0,
                 from ../src/main.cpp:3:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);

Would it be possible to update the dependency to at least v2.8.0 to make diskusage work for node 10?
Thanks in advance.

Thanks for the report, fixed in 5e885d17d8dd699bd9678819e39c86a42bdc6107! The updated package should be available on npm now.


Possible to use both password and key authentication?

I can authenticate with either a password or a key, but now I have server that needs both. Is this possible with Posh-SSH?

It is not possible with the current library
Sent from my iPhone

On Dec 17, 2019, at 8:36 AM, Morgan Simonsen<EMAIL_ADDRESS>wrote:

I can authenticate with either a password or a key, but now I have server that needs both. Is this possible with Posh-SSH?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


We can add differernt food sections , and can give them ratings , prices , discount , varieties   .

We can add differernt food sections , and can give them ratings , prices , discount , varieties . Like this ,

It will enhance the overall user Interface , and will make it attractive.

It would be great of you if you assign me this issue. @khushi-joshi-05