Fix issues that ElasticSearchSink may retry indefinitely on exception

ElasticSearchSink will automatically re-enqueue messages if the batch failed due to an exception. It is discovered that a NullPointerException might be thrown which causes the indefinitely retries on the batch. Also, it will by default sleep 60 seconds before re-enqueuing which causes huge delay during the retry cycles.
The pull request tries to address the following issue:

The behavior of automatic re-enqueue is made configurable and is turned off by default
Retry will be done by RestClient automatically and the times of retry is explicitly configured. Previously retry is not properly enabled because POST is used and RestClient does not automatically retry on POST upon ReadTimeout.
Sleep behavior is turned off by default and must be explicitly configured to enable.

NetflixOSS » suro » suro-pull-requests #64 SUCCESS
This pull request looks good

suro-pull-requests #232 SUCCESS
This pull request looks good

NetflixOSS » suro » suro-pull-requests #65 SUCCESS
This pull request looks good

LGTM

suro-pull-requests #233 FAILURE
Looks like there's a problem with this pull request


Cherrypick #949 release 1.0

I need to double check the go-cni update to make sure it doesn't introduce unexpected behavior into release/1.0.

/test pull-cri-containerd-node-e2e


Need to implement request limits for http2

Description:
Request limits set to maxUriLength, maxHeaderSize and maxEntityBodySize do not work with HTTP2.

At the moment, this is not working with nghttp client and ballerina client with http2PriorKnowledge.
Even if we set the request limits, the default values by netty are considered as the limits.
Following are the actual limits which the server respond with error.
maxUriLength - 4K
maxHeaderSize - 8K
maxEntityBodySize - -1

However, once we exceed the maxUriLength, the server responds with 431 - Request Header Fields Too Large rather than 414 - URI Too Long

The reason for above error mismatch is that, when evaluating headers inside netty, the :path header is evaluated and it exceeds 8K. So this results with 431

Lets maintain same behaviour.


[CARBONDATA-3373] Fixed measure column filter perf

This solves the problem as #3209
when sql with 'in numbers' and spark.sql.codegen.wholeStage is false，the query is slow,
the reason is that canbonscan row level filter's time complexity is O(n^2), we can replace list with hashset to improve query performance
sql example: select * from xx where filed in (1,2,3,4,5,6)
Be sure to do all of the following checklist to help us incorporate
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed?

[ ] Any backward compatibility impacted?

[ ] Document update required?

[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3623/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11897/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3830/

retest this please

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3627/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3631/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11904/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3837/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3858/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11922/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3648/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3653/

retest this please

retest this please

retest this please

retest this please

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11927/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3863/

LGTM

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3656/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3866/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11930/

LGTM


Is operator as unreliable when testing for inheritance ?

use base

Base: abstract class {
	init: func
	doit: abstract func
}

GoodClass: class extends Base {
	init: func
	doit: override func { "good" println() }
}

BadClass: class extends Base {
	init: func
	doit: override func { "VERY BAD" println() }
}

instance: Base
instance = BadClass new()
if (instance as GoodClass)
	instance doit()

output:

VERY BAD

Is it unsafe to use operator as to test for a is a kind of - type of relation ? I would expect instance as GoodClass to fail because instance is an object of the BadClass.
Do I have an error somewhere in my code (or are my assumptions about the "as" operator incorrect) ?
@thomasfanell

as is not intended to be used this way I don't think, so no, I would not trust it. I would instead use
if (instance instanceOf(GoodClass))
	instance doit()

OK, thanks. Sometimes in our "main" code base we use as without checking for instanceOf before that. But I guess we can close this one.

Indeed, as is used for casting to another type, not for checking current type. I think you may cast any class to any class and it won't fail until you try to use it the wrong way.

Just to be clear, if you are familiar with C++ terms, as is a static cast (C cast), not a dynamic cast (it does not return null if the object you are casting is not of the type you are casting to).
You could probably overload it to have this behavior though, something like:
operator <T> as (obj: Object) -> T {
    if (obj instanceOf(T)) {
        obj as T
    } else {
        null
    }
}

would probably work although I'm not quite sure

Also, much cleaner than using instanceOf:
match obj {
    case entity: Entity => doStuff(entity)
}

(Although it can be cumbersome if you only need to test for one type)

Yeah I don't know why but I was under the impression that your "overloaded" implementation was the default in ooc for Objects :/


Add Initial Markup

Is your enhancement related to a problem? Please describe.
Most of the sites we build require common markup elements like header, main area, footer, and a "skip to main content" link. We can provide this markup in the scaffold. Following structure worked well for me on previous projects and I don't recall a case when I needed something completely different:
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">

    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <?php wp_head(); ?>

  <body <?php body_class(); ?>>
    <?php wp_body_open(); ?>

          <?php esc_html_e( 'Skip to content', 'textdomain' ); ?>

<?php bloginfo( 'name' ); ?>

        <?php if ( have_posts() ) : ?>
          <?php while ( have_posts() ) : the_post(); ?>

<?php the_title(); ?>

          <?php endwhile; ?>
        <?php endif; ?>

  <?php wp_footer(); ?>

This is a combined markup from header.php, index|page|post.php, and footer.php.
It is design agnostic but gives flexibility in terms of styling the header and footer position they way we want. Here's a quick CSS example of how to make a layout with a sticky header and footer at the bottom (regardless of the amount of content):
html,
body {
	height: 100%;
	width: 100%;
}

body {
	padding-top: var(--h-header);

	&.admin-bar {
		padding-top: calc(var(--h-header) + var(--h-admin-bar));

		@media (--wp-medium) {
			padding-top: calc(var(--h-header) + var(--h-admin-bar-medium));
		}
	}
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	width: 100%;
}

.site__header {
	height: var(--h-header);
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1;

	@nest .admin-bar & {
		top: var(--h-admin-bar);

		@media (--wp-medium) {
			top: var(--h-admin-bar-medium);
		}
	}
}

.site__main {
	flex-basis: auto;
	flex-grow: 1;
	flex-shrink: 0;
}

.site__footer {
	flex-shrink: 0;
	height: var(--h-header);
	width: 100%;
}

Adding default CSS is a bigger discussion though. I'm not suggesting adding this snippet as part of this issue.
Designs
No response
Describe alternatives you've considered
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@dmtrmrv - I like this idea - I see the CSS side of things potentially being removed quite often depending on the project.
Also, Im assuming that the markup example above would be separated by each WP template, so where you have  that markup, in the theme itself would actually be placed in header.php?
We may also want to add any role and aria-label to HTML5 semantic elements for consistency.
One last question (which Im too lazy to research myself) but does WP automatically update the no-js to js class on the HTML element?

1 from me though!

@dmtrmrv
Additional consideration - ensure that we can easily override the content scrolling when we have an overlay via a class added to the body/html.
Use case: when we have a mobile nav (or dialog) open (and it takes over the screen) when we scroll - it should only scroll the contents of the nav and the content behind should be locked.
This should also work when we have a stick nav.

@dmtrmrv I put this together a while ago: https://github.com/dainemawer/html5-starterkit/blob/master/src/index.html maybe you will find some use from it!

Thanks @dainemawer, we can def use a lot from your boilerplate. It's pretty extensive.
@joesnellpdx I'd love to add those styles too. Maybe as part of a separate PR? We can keep this one markup-specific.
I'll put together a PR so we can all review.


tests: add min_flash option for some tests

Following tests were failing on a microcontroller with 32KB flash:
benchmark.application
crypto.ecc_dh
crypto.ecc_dsa
test_build_ethernet
test_build_sensors_a_m
The min_flash option has been added in the test case yaml files.
Signed-off-by: Diego Sueiro<EMAIL_ADDRESS>

Codecov Report

Merging #7008 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7008   +/-   ##
=======================================
  Coverage   58.42%   58.42%
=======================================
  Files         459      459
  Lines       47013    47013
  Branches     8720     8720
=======================================
  Hits        27467    27467
  Misses      15717    15717
  Partials     3829     3829

Continue to review full report at Codecov.

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


Support plan for Next.js ？

Is there a plan for Primer Design System components to support Next.js?
Using client-side components on Next.js has become quite painful.

Hi @meiyingqishi 👋 We support Next.js and you can also access our internal example of Next.js to see how we set up the project and utilize Primer React components there. I'm going to go ahead and close this issue but please report back if you are having any specific issues with compatibility of our components with Next.js.

Thank you for your response.  @broccolinisoup

The example you provided is from a Next.js pages project. The current mainstream approach is using Next.js app projects, and the situation has changed. Components are now defaulting to server-side components, while the Primer Design System components are client-side components. When the implementation of a component involves the use of React's client-side APIs, such as hooks like useState, it will result in runtime errors (Server Error
Error: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component).

The solution is to create a separate file and add 'use client' at the beginning of the file. Then, import this file in the page.tsx where it is used. However, creating a file like this for each component can become tedious and cumbersome.

I have reviewed the official documentation for the Primer Design System and did not find such a description or solution. My question is, do you have any plans to default to adding 'use client' in the component code files in the future? This would help alleviate many potential issues when using the components in the future.

Hi @meiyingqishi 👋 Sorry when I read the issue, it didn't occur to me that you are talking about the new app router and React Server Components! I appreciate you provided details. I am chatting about this with my team to see how we can support it. I'll re-open the issue and rename it to "Support for Next.js app router" and you can subscribe to this issue to get updates on the support. Thanks for bringing it up and raising the issue.

Hi @meiyingqishi, we have another issue opened that dives deeper into the server components, feel free to have a read.
We also have a draft PR that addresses the issue you mentioned here.

Hi there! 👋 Just wanted to follow up on this now that: https://github.com/primer/react/pull/4128 is merged and available in v36.6.0
Components should be directly usable from @primer/react without requiring 'use client' marker on the page or in components that call it when using app router with Next.js.
Going to close this out but feel free to leave a comment or provide any feedback if this is not working as expected!

Thank you! It worked.

Create and initialize the front-end project in terminal (pnpm): pn create primer-app;
Navigate to the directory: cd primer-app;
Add dependencies: pn add @primer/react @primer/css @primer/octicons-react styled-components@^5;
Import the project into vs code：code .;
Modify layout.tsx:

import {
  BaseStyles,
  ThemeProvider,
} from "@primer/react";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body>
        <ThemeProvider>
          <BaseStyles>{children}</BaseStyles>
        </ThemeProvider>
      </body>
    </html>
  );
}

Modify page.tsx:

import {
  Button,
} from "@primer/react";

export default function Home() {
  return (
    <main>
      <Button>Hello Button</Button>
    </main>
  );
}

Run in vs code terminal: pn dev;
View in browser: http://localhost:3000.

@meiyingqishi That doesn't solve the SSR problem. You get CSS-in-JS where the styling is injected at runtime, on the client.
You actually get pretty far with:
import StyledComponentsRegistry from "@/lib/registry";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body>
        <StyledComponentsRegistry>
          <ThemeProvider>
            <BaseStyles>
              <Inner>{children}</Inner>
            </BaseStyles>
          </ThemeProvider>
        </StyledComponentsRegistry>
      </body>
    </html>
  );
}

It works. But I get very strange warnings in development mode that I don't understand.

Hi there, @peterbe! We have an App Router example over at: https://github.com/primer/react/tree/main/examples/app-router if it's helpful (there is one change that needs to happen from https://github.com/primer/react/pull/4307)
Would love to hear any feedback you have for that example and if it works or doesn't work for your use-case. I believe it should handle the SSR case for styles using the guide from Next.js but let me know if there are any issues!

Hi there, @peterbe! We have an App Router example over at: https://github.com/primer/react/tree/main/examples/app-router if it's helpful (there is one change that needs to happen from #4307)

Yay!
Now I can't even remember how I stumbled into https://github.com/primer/react/tree/main/examples/nextjs in the first place. Perhaps by a Google search??

Would love to hear any feedback you have for that example and if it works or doesn't work for your use-case. I believe it should handle the SSR case for styles using the guide from Next.js but let me know if there are any issues!

I got things working. SSR and all. Used your draft from https://github.com/primer/react/pull/4307 and not a warning or error in sight.
What tripped me up, and can be seen in my screenshot above, was that the link on https://primer.style/react/getting-started#static-css-rendering to styled-components made me think I had to use styled-components@6 when it's styled-components@5 that is a must.

Hi there, @peterbe .
Yes, I also encountered some difficulties before and discovered this issue. That's why I added styled-components@^5 in the dependencies. I'm sorry for not making it very clear in my previous response.

Hi @joshblack ,
I accidentally tried the primer design system again and found there's still an issue. When using individual components like Button, there are no problems. However, errors occur when using composite components (involving child components, using a period), for example:
<ActionList>
    <ActionList.Item>Copy link</ActionList.Item>
    <ActionList.Item>Quote reply</ActionList.Item>
    <ActionList.Item>Edit comment</ActionList.Item>
</ActionList>

The issue lies with the ActionList.Item here. I've encountered this problem while using other components (such as react-bootstrap) as well. Their solution is to add additional components (for example: ActionListItem).


get GHA building

@jwokaty note I've created https://hub.docker.com/repository/docker/waldronlab/curatedmetagenomicanalyses, so with the secrets passed to the GHA, so unless I've missed something a successful build should also push an image there.

One other item to add to this issue, it seems like checks are getting duplicated, at least on a pull request? E.g. from the PR I just made to get rid of BiocCheck (https://github.com/waldronlab/curatedMetagenomicAnalyses/pull/10)

Closed by #10. We'll leave the duplication issue for now, but if we have time later, we can look at https://github.com/marketplace/actions/skip-duplicate-actions, which might help.


GUI Builder Version Error

Which version should I choose?

It's G4P 4.3.6 .
You can download it here:
https://sourceforge.net/projects/g4p/files/G4P V4.3.5.zip/download.

thank you


Add authentication middleware to the REST API

For the package import name lets use the style that Kubernetes is using, so its easier to recognize for people familiar with the Kubernetes Go ecosystem, we will get used to it eventually.


Define and document security process

Closing as this is a duplicate of https://github.com/openservicemesh/osm/issues/2402


Display the plots by continental regions

The vuregions module generates these, they live in the ./site-data/bundle-continental-regions.json -- thanks!

done and in prod.


Server doesn't crash if actor crashes

Given this code:
RubyDNS::run_server(:listen => INTERFACES) do
  otherwise do |transaction|
    transaction.respond!("<IP_ADDRESS>")
  end
end

and this query:
nslookup -type=cname www.example.com

This error happens:
I, [2016-08-12T17:08:17.284440 #2669]  INFO -- : Starting RubyDNS server (v1.0.3)...
I, [2016-08-12T17:08:17.284762 #2669]  INFO -- : <> Listening on udp:<IP_ADDRESS>:5300
I, [2016-08-12T17:08:17.285454 #2669]  INFO -- : <> Listening on tcp:<IP_ADDRESS>:5300
D, [2016-08-12T17:08:25.188498 #2669] DEBUG -- : <> Receiving incoming query (33 bytes) to RubyDNS::UDPHandler...
D, [2016-08-12T17:08:25.188775 #2669] DEBUG -- : <7773> Processing question www.example.com Resolv::DNS::Resource::IN::CNAME...
D, [2016-08-12T17:08:25.188804 #2669] DEBUG -- : <7773> Searching for www.example.com Resolv::DNS::Resource::IN::CNAME
I, [2016-08-12T17:08:25.188821 #2669]  INFO -- : Resource class: Resolv::DNS::Resource::IN::CNAME
I, [2016-08-12T17:08:25.188844 #2669]  INFO -- : Resource: #<Resolv::DNS::Resource::IN::CNAME:0x00000002149888 @name="<IP_ADDRESS>">
D, [2016-08-12T17:08:25.188869 #2669] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::CNAME:0x00000002149888 @name="<IP_ADDRESS>"> 5 1
D, [2016-08-12T17:08:25.188913 #2669] DEBUG -- : <7773> Time to process request: 0.000283347s
E, [2016-08-12T17:08:25.189063 #2669] ERROR -- : Actor crashed!
NoMethodError: undefined method `to_a' for "<IP_ADDRESS>":String
  /usr/lib/ruby/2.3.0/resolv.rb:1469:in `put_name'
  /usr/lib/ruby/2.3.0/resolv.rb:1769:in `encode_rdata'
  /usr/lib/ruby/2.3.0/resolv.rb:1423:in `block (4 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1452:in `put_length16'
  /usr/lib/ruby/2.3.0/resolv.rb:1423:in `block (3 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1419:in `each'
  /usr/lib/ruby/2.3.0/resolv.rb:1419:in `block (2 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1418:in `each'
  /usr/lib/ruby/2.3.0/resolv.rb:1418:in `block in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1433:in `initialize'
  /usr/lib/ruby/2.3.0/resolv.rb:1399:in `new'
  /usr/lib/ruby/2.3.0/resolv.rb:1399:in `encode'
  /var/lib/gems/2.3.0/gems/rubydns-1.0.3/lib/rubydns/handler.rb:89:in `respond'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
W, [2016-08-12T17:08:25.189276 #2669]  WARN -- : Terminating task: type=:call, meta={:method_name=>:run}, status=:iowait
  Celluloid::TaskFiber backtrace unavailable. Please try `Celluloid.task_class = Celluloid::TaskThread` if you need backtraces here.
E, [2016-08-12T17:08:25.189326 #2669] ERROR -- : Actor crashed!
NoMethodError: undefined method `to_a' for "<IP_ADDRESS>":String
  /usr/lib/ruby/2.3.0/resolv.rb:1469:in `put_name'
  /usr/lib/ruby/2.3.0/resolv.rb:1769:in `encode_rdata'
  /usr/lib/ruby/2.3.0/resolv.rb:1423:in `block (4 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1452:in `put_length16'
  /usr/lib/ruby/2.3.0/resolv.rb:1423:in `block (3 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1419:in `each'
  /usr/lib/ruby/2.3.0/resolv.rb:1419:in `block (2 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1418:in `each'
  /usr/lib/ruby/2.3.0/resolv.rb:1418:in `block in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1433:in `initialize'
  /usr/lib/ruby/2.3.0/resolv.rb:1399:in `new'
  /usr/lib/ruby/2.3.0/resolv.rb:1399:in `encode'
  /var/lib/gems/2.3.0/gems/rubydns-1.0.3/lib/rubydns/handler.rb:89:in `respond'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
E, [2016-08-12T17:08:25.192706 #2669] ERROR -- : Actor crashed!
NoMethodError: undefined method `to_a' for "<IP_ADDRESS>":String
  /usr/lib/ruby/2.3.0/resolv.rb:1469:in `put_name'
  /usr/lib/ruby/2.3.0/resolv.rb:1769:in `encode_rdata'
  /usr/lib/ruby/2.3.0/resolv.rb:1423:in `block (4 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1452:in `put_length16'
  /usr/lib/ruby/2.3.0/resolv.rb:1423:in `block (3 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1419:in `each'
  /usr/lib/ruby/2.3.0/resolv.rb:1419:in `block (2 levels) in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1418:in `each'
  /usr/lib/ruby/2.3.0/resolv.rb:1418:in `block in encode'
  /usr/lib/ruby/2.3.0/resolv.rb:1433:in `initialize'
  /usr/lib/ruby/2.3.0/resolv.rb:1399:in `new'
  /usr/lib/ruby/2.3.0/resolv.rb:1399:in `encode'
  /var/lib/gems/2.3.0/gems/rubydns-1.0.3/lib/rubydns/handler.rb:89:in `respond'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
  /var/lib/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
W, [2016-08-12T17:08:25.195680 #2669]  WARN -- : Terminating task: type=:call, meta={:method_name=>:run}, status=:iowait
  Celluloid::TaskFiber backtrace unavailable. Please try `Celluloid.task_class = Celluloid::TaskThread` if you need backtraces here.

The actors are permanently crashed, but the error isn't raised up to the main ruby process, so that process continues on, but is unable to process additional requests.
Is there a way to have crashed actors result in an exception raised to the outer process?
I'm using rubydns, but I figure this is a celluloid-dns problem. Let me know if that's not the case.

@ioquatix @tarcieri thoughts?

I have ran into this too.  My workaround was to rescue Celluloid::DeadActorError and kill the process myself.  systemd would start it back up for me.  Otherwise you would end up in an endless loop of "Actor crashed".

@eterry1388 Thank you so much for chiming in. Could you provide some example code showing your technique?

It's more of a hack than a solution.  Here is some code:
require 'celluloid/dns'

class TestServer < Celluloid::DNS::Server
  def process( name, resource_class, transaction )
    @resolver ||= Celluloid::DNS::Resolver.new( [[:udp, '<IP_ADDRESS>', 53], [:tcp, '<IP_ADDRESS>', 53]] )
    transaction.passthrough!( @resolver )

  rescue Celluloid::DeadActorError => e
    puts 'Hit exception! Celluloid::DeadActorError. Killing process...'
    puts name
    puts e
    puts e.backtrace
    `killall -9 ruby`
  end
end

server = TestServer.new( listen: [[:udp, '<IP_ADDRESS>', 53]] )
server.run

sleep

After reading this again, it looks like he was using rubydns rather than celluloid-dns.  Should I open a new bug for my issue?

@eterry1388 I am He. rubydns is implemented with celluloid-dns and I thinks share the identical problem.

Sorry guys I missed all this for some reason. I'll take a look.


[FEATURE]Feat:adding a new page to display all contributors✨

I want to add a page to showcase all the contributors of this website.
@07sumit1002 can you assign me this issue.

@07sumit1002 can you assign me this issue.


How to test on pedestrian and cyclist class?

Hello, zhixinwang!
Thanks for your great work on frustum convnet. I found that there is only configs code for car training, if I want to test the performance on people class, what do I need to change in scripts or configs files.

Hello @zhixinwang , i too have a similar question. Does your git repo cover implementation for cyclists and pedestrians too? how to train and test for those objects?

Sorry, current release version does not include the implementation for pedestrains and cyclists.
If you want to train pedestrians and cyclists,  you can follow the same step during training the car model, but you need to change some config settings, such as  'CAR_ONLY=False,PEOPLE_ONLY=True', 'IOU_THRESH=0.5', and the STRIDE and HEIGHT_HALF parameters according to our paper.

@zhixinwang
The above config changes mentioned for performing the train and validation on Pedestrian and Cyclist classes, are these changes enough or do we need to change something in code?
And we need to perform the above changes in "det_sample.yaml" and "refine_car.yaml" files? or any other changes required?

I think changes  of the config in *.yaml is enough.
The most import settings you need to change are  STRIDE and HEIGHT_HALF. For reference, in the first stage,  STRIDE: (0.1, 0.2, 0.4, 0.8),  HEIGHT_HALF: (0.1, 0.2, 0.4, 0.8), and refine stage is STRIDE: (0.05, 0.1, 0.2, 0.4), HEIGHT_HALF: (0.05, 0.1, 0.2, 0.4) for people category.

Thank you for the response.
I do have another question to clarify!
The variable MAX_DEPTH - what is it used for? is it to limit the range of LiDAR data or it has some other significance?


Fix CI setup

This project uses AWS CI isolation to run its integration tests with SageMaker
However, SageMaker needs a role with specific permission (SageMakerFullAcess and S3FullAccess)
In general, we could create this role in the CDK description once and make it protected, such that it doesn't get cleaned up
The issues with this is, that a CI user isn't allowed to pass or assume a protected role by the CI isolation master setup

https://github.com/exasol/ci-isolation-aws/blob/977ea37602b1efd56ae376e8846555d49fa8fc9c/src/main/java/com/exasol/ciisolation/aws/cleanup/AccountCleanupStack.java#L87
https://github.com/exasol/ci-isolation-aws/blob/977ea37602b1efd56ae376e8846555d49fa8fc9c/src/main/java/com/exasol/ciisolation/aws/cleanup/AccountCleanupStack.java#L94
Solutions

Introduce a role which is not removed, but allowed to assume and passed
Create the Role during running the tests

Needed role and polices

aws iam create-role --role-name sagemaker-role --assume-role-policy-document '{
                "Version": "2012-10-17",
                "Statement": [
                    {
                        "Effect": "Allow",
                        "Principal": {
                            "Service": "sagemaker.amazonaws.com"
                        },
                        "Action": "sts:AssumeRole"
                    }
                ]
            }'

aws iam create-policy --policy-name "sagemaker-s3-access" --policy-document '{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:*"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "iam:CreatePolicy",
        "iam:CreateRole",
        "iam:AttachRolePolicy",
        "iam:DeleteRole",
        "iam:DeletePolicy",
        "iam:DetachRolePolicy"
      ],
      "Resource": "*"
    }
  ]
}'

aws iam attach-role-policy --role-name sagemaker-role --policy-arn arn:aws:iam::166283903643:policy/sagemaker-s3-access
aws iam attach-role-policy --role-name sagemaker-role --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerFullAccess

Time needed for analysis of the issue: 3d


No USB Debugging possibilities?

A similar application for Samsung devices. SideSync is able to screenshare and be remote controlled without USB debugging being enabled, tested with my Note 9. I've also noticed that All my other devices LG G8 and Zenfone 3 require the USB mode set to charging, however the Note 9 is able to connect to scrcpy while in File Transfer mode. Switch from Charging to File Transfer mode while connected will terminate scrcpy on anyother device. My Note 9 can switch back n forth with out having to restart scrcpy. I've only tested this with the stock rom from each device. I'm curious as to whats different and how its interacting with the device that other companies who have also provided similar software like ASUS which also require USB debugging seem to be doing differently.
Obviously this isn't a real issue, but I believe it might be possible to get scrcpy to operate without USB debugging with either a custom rom or possibly a root application, assuming its something on the software end and not some fancy proprietary chip on the phones board. That would be a different project in its entirety probably but its something I think is worth looking into.

Persumaly SideSync is a system app with tons of system previleges and security?
A custom ROM or root solution defeats the purpose of no root required..
Afaik adb wont listen on remote ports.... I wonder if we can put a mirror in the phone itself

Since they control both the ROM and the client, they probably added a special access for their software. If anyone have a solution to do this without USB debugging, please share :)


This PR addresses the issue for navbar login button using wrong login flow

The onClick function bound to the login button in navbar was pointing to the login function that uses the old login flow (where the login form appears in the same window). Now the login button flow is adjusted to use the new modal window for login.
Files Changed for this are:

common/navbar.js

common/errors.js

recordset/recordset.js

The changes have been done to reflect the two cases -

Click on Login link on the navbar, opens a new pop window directly to log in.

When a user is in middle of some operation (adding/ editing record) and the session expires, in that case, a modal window will be shown, with the message of "expired session" and asked to log in again.

The second case could not be verified end to end, as we get a cross-origin error thrown when a frame is loaded from dev.isrd.isi.edu/~username. Here ~username cause the cross-origin error to occur.


MangaGezgini: Image not loading

Source information
MangaGezgini 1.4.38
Source language
Turkish
Steps to reproduce
1 open the webview Mangagezgini
2 cloudflare bypass and i am not robot captcha
3 open chapter for mihon and image not uploeded

Expected behavior
Uploaded image
Actual behavior
Not upload
Mihon/Tachiyomi version
0.16.5
Android version
Android 8.1
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Unable to reproduce with "Evrensel Dövüş Sanatları" - Chapter 258. Do you have an entry and chapter to test with?


Manipulate sound

Hi!
Great work. I wonder if it is possible to tune the sound, to generate different "persons" "voices".
Thanks :)

Super delayed response, but poked at this a bit today to add (very) basic pitch control. Take a look when you have a chance :) It might take a bit to show up on the demo page.

Hi! Thanks I just checked it out :) . Great work.


Compatibility with recent typescript changes

I have following issues when using blinkdb with bun.sh

https://github.com/mindreframer/blinkdb-bun

$ bun run index.ts
SyntaxError: Indirectly exported binding name 'Ids' is not found.

The fix is to export Ids as from db/remove.ts as type, like here:
export { clear } from "./clear";
export { count } from "./count";
export * from "./createDB";
export * from "./createTable";
export * from "./errors";
export { first } from "./first";
export { insert } from "./insert";
export type { Create } from "./insert";
export { insertMany } from "./insertMany";
export { many } from "./many";
export { one } from "./one";
export { remove } from "./remove";
export type { Ids } from "./remove";
export { removeMany } from "./removeMany";
export { removeWhere } from "./removeWhere";
export { update } from "./update";
export type { Diff } from "./update";
export { updateMany } from "./updateMany";
export { updateWhere } from "./updateWhere";
export { upsert } from "./upsert";
export { upsertMany } from "./upsertMany";
export * from "./use";
export * from "./uuid";
export * from "./watch";

The other issue is with BTree, that I have posted here:

https://github.com/qwertie/btree-typescript/issues/36

Not sure, if it's would require code changes in Blinkdb to  make it work with bun.sh.

The type issues are not specific to Bun, types used in exported BlinkDB methods should be exported as well. Oversight on my part.
I'll try and see if I can resolve the BTree issue.

Found the cause. BlinkDB uses a "module" key as per the module resolution proposal here, which causes Bun to resolve the module differently. Since the JS Ecosystem has apparently never accepted the proposal above and instead moved on to package exports instead, I've removed the module key & will implement the export system as needed.
(And apparently BlinkDB types like Ids, Diff & Create are already exported: https://github.com/blinkdb-js/blinkdb/blob/main/packages/db/src/core/index.ts)

I've pushed up a new version of BlinkDB that fixes these issues, and which works for me locally. Can you verify on your end?

@froehlichA It works! Thanks for the super-quick response.
I will play with BlinkDB a bit more, it's a really well-structured codebase! Any plans to make the insertMany / updateMany functions faster?
This is what I get in benchmarks:
blinkdb/insert-many.ts --- lokijs is 417.44x faster than blinkdb
┌─────────┬───────────┬────────────────────┬────────────────────┬──────────┬─────────┐
│ (index) │   name    │      ops/sec       │ Average Time (ns)  │  Margin  │ Samples │
├─────────┼───────────┼────────────────────┼────────────────────┼──────────┼─────────┤
│    0    │ 'lokijs'  │<PHONE_NUMBER>0091717 │ 4916.457699697863  │ '±1.64%' │ 101700  │
│    1    │ 'blinkdb' │<PHONE_NUMBER>6443955 │ 2052308.7543542264 │ '±4.94%' │   244   │
└─────────┴───────────┴────────────────────┴────────────────────┴──────────┴─────────┘

blinkdb/upsert-many.ts --- lokijs is 3.87x faster than blinkdb
┌─────────┬───────────┬────────────────────┬────────────────────┬──────────┬─────────┐
│ (index) │   name    │      ops/sec       │ Average Time (ns)  │  Margin  │ Samples │
├─────────┼───────────┼────────────────────┼────────────────────┼──────────┼─────────┤
│    0    │ 'lokijs'  │ 1633.0642639853138 │<PHONE_NUMBER>579922  │ '±4.32%' │   817   │
│    1    │ 'blinkdb' │<PHONE_NUMBER>0370237 │ 2370380.5637585605 │ '±7.20%' │   211   │
└─────────┴───────────┴────────────────────┴────────────────────┴──────────┴─────────┘

blinkdb/update.ts --- lokijs is 3.34x faster than blinkdb
┌─────────┬───────────┬────────────────────┬────────────────────┬───────────┬─────────┐
│ (index) │   name    │      ops/sec       │ Average Time (ns)  │  Margin   │ Samples │
├─────────┼───────────┼────────────────────┼────────────────────┼───────────┼─────────┤
│    0    │ 'lokijs'  │<PHONE_NUMBER>0459485 │ 3721.2762287964697 │ '±4.79%'  │ 134364  │
│    1    │ 'blinkdb' │ 80449.77230128765  │ 12430.115976648878 │ '±20.82%' │  40354  │
└─────────┴───────────┴────────────────────┴────────────────────┴───────────┴─────────┘

The difference for inserts is quite unusual. And since we need to restore the application state on bootstrap, this might increase the app loading time significantly. But I would need to play with some realistic datasets before making further conclusions.
Anyways, thanks again for the quick fix and have a great Sunday!


Feature/prompt academy sess 4

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Rupinder, everything looks good except for 2 things I noticed:

Chat_application.ipynb in section "Using Llamaindex for orchistration for RAG" when running this code cell:

from IPython.display import Markdown, display
from langchain.embeddings.bedrock import BedrockEmbeddings
from langchain.llms.bedrock import Bedrock
from llama_index import ServiceContext
ImportError: cannot import name 'version_short' from 'pydantic.version' (/opt/conda/lib/python3.10/site-packages/pydantic/version.cpython-310-x86_64-linux-gnu.so)
looks to be coming from :
ImportError                               Traceback (most recent call last)
Cell In[41], line 5
2 from langchain.embeddings.bedrock import BedrockEmbeddings
3 from langchain.llms.bedrock import Bedrock
----> 5 from llama_index import ServiceContext

geting an index error at "4.3 Ingest the image embeddings" in mm_search.ipynb

IndexError                                Traceback (most recent call last)
Cell In[30], line 22
18 text_embedding_pairs = zip(dataset['item_name_in_en_us'].to_list(), multimodal_embeddings_img)
19 #metadata_dict =  dict ( [(key, value) for i, (key, value) in enumerate(zip(dataset['item_name_in_en_us'].to_list(), dataset['img_full_path'].to_list()))] )
---> 22 db = FAISS.from_embeddings(text_embedding_pairs, embedding_model, metadatas=metadata_dict)

Also in Next steps at bottom of each notebook could there be a reference or name of the next notebook that should be looked at/ come in correct sequence after the one currently on.

i.e.
Next steps
Now that we have a working RAG application with vector search retrieval, we will explore a new type of retrieval. In the next notebook we will see how to use LLM agents to automatically retrieve information from APIs. name/description

fixed the builds

Looks good. Everything should run great in Data Science 3.0 AMI and ml.t3.medium instance as you noted in the notebook.


Fixed a bug causing the Confirmation message sending to fail

This PR resolves issue #72 I opened a few minutes ago.
When the system-wide configuration of “Sender E-mail Address” was done as an environmental variable, that variable wasn’t resolved and the variable name was passed as a “from” e-mail address, which caused SwiftMailer to fail on e-mail addressa format validation.

Looks good! Thanks 👍


Misleading README Prerequisites

All of the prerequisites listed are not strictly needed, they should be just recommended

Windows is not required, you can compile and run c++ on any other OS
Visual Studio and Visual Studio Code are just text editors, and are just prefrences, not something you need
Any c++ compilers would work, not just g++

but ok, ill fix it :)

fixed here.

merged


[CLI] bns register name

Description

This is first PR to fix the broken commands in cli. There will be separate pr's for other commands.
This PR brings back 'bns' register-name command in cli.

For details refer to issue #922
Type of Change

[ ] New feature
[X] Bug fix
[ ] API reference/documentation update
[ ] Other

Does this introduce a breaking change?
No
Are documentation updates required?
No
Testing information

npm run test

Checklist

[X] Code is commented where needed
[X] Unit test coverage for new or modified code paths
[X] npm run test passes
[ ] Changelog is updated
[X] Tag 1 of @yknl or @zone117x for review

@reedrosenbluth Let me know if it can be merged or need further work. 🙏

@reedrosenbluth Let me know if you get a chance to give it a shot. 🙏

@janniks It's a very small pr, let me know if you get a chance to give it a look.


This PR is related to the issue no. #$453.Files terms.html has been added

I have added the file of Terms of Services and also updated the UI of Terms of Services page.

add issue no. properly , e.g. : issue #453

okay mam so do I need to close the issue or is it closed?

add issue no. properly , e.g. : issue #453

okay mam so do I need to close the issue or is it closed?

closed

mam do i create a new issue for site map?

yes

yes

ok mam


[Access Request] report 1304 "Standard Sales - Quote"

Could you please change the Access scope of the following variables to protected?
protected var
        GLSetup: Record "General Ledger Setup";
        SalesSetup: Record "Sales & Receivables Setup";
        CompanyInfo: Record "Company Information";
        RespCenter: Record "Responsibility Center";
        CurrCode: Text[10];
        CurrSymbol: Text[10];
        TotalText: Text[50];
        TotalExclVATText: Text[50];
        TotalInclVATText: Text[50];
        ArchiveDocument: Boolean;
        LogInteraction: Boolean;
        TotalSubTotal: Decimal;
        TotalAmount: Decimal;
        TotalAmountInclVAT: Decimal;
        TotalAmountVAT: Decimal;
        TotalInvDiscAmount: Decimal;
        TotalPaymentDiscOnVAT: Decimal;
        TransHeaderAmount: Decimal;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 51059.


Handle opening of the new tab

Is there a way to somehow get the URL (or get full control) of the new tab, opened from your current tab?
Just trying to resolve this question on StackOverflow.

No, this feature is not implemented.

@kmike that's sad,
but I found how to catch the URL of such tab: just replace window.open function with one that will store URL somewhere. For example:
function main(splash, args)

  assert(splash:go(args.url))  -- execute JS code below only after loading the page

  splash:runjs("var newTabURL")
  splash:runjs("newTabURL = null")  -- sometimes JS can't find variable without this line
  splash:runjs("window.open = function(url){newTabURL = url}")

  -- actions which open the new tab

  local new_tab_url  = splash:evaljs("newTabURL")

  -- other actions
end


[BUG] Feature Management in App Configuration with spring profile requires explicit configuration in 4.7.0

Describe the bug
I have a spring boot 2.7.9 app that reads feature flags from App Configuration. When upgrading com.azure.spring:azure-spring-cloud-starter-appconfiguration-config:2.11.0 to com.azure.spring:spring-cloud-azure-starter-appconfiguration-config:4.7.0, no feature flags are read. This happens only if a spring profile is used. In v2.11.0, the label filter for feature flags was \0 by default (No label), while in v4.7.0, this seems to have changed to ${spring.profiles.active}. In fact, if I explicitly set spring.cloud.azure.appconfiguration.stores[0].feature-flags.selects[0].label-filter=,${spring.profiles.active}, the feature flags are read again.
Either this behavior is a regression bug, or the docs need to be updated, since they currently state that the default value for spring.cloud.azure.appconfiguration.stores[0].feature-flags.selects[0].label-filter is \0 but is apparently ${spring.profiles.active}
To Reproduce
Configure a simple spring boot app with the com.azure.spring:azure-spring-cloud-starter-appconfiguration-config:2.11.0 starter. Add a basic bootstrap.yml and enable feature management. Start the app with any spring profile (e.g. specifying --spring.profiles.active=dev) and verify that feature flags are read correctly when logging the Set returned from com.azure.spring.cloud.feature.management.FeatureManager#getAllFeatureNames .
Now upgrade to com.azure.spring:spring-cloud-azure-starter-appconfiguration-config:4.7.0. The feature flags will return empty.
Expected behavior
com.azure.spring.cloud.feature.management.FeatureManager#getAllFeatureNames should return all feature flags with no label, as documented.
Screenshots

Setup (please complete the following information):

OS: macOS 13.3.1
IDE: Intellij 2023.1
Library/Libraries: com.azure.spring:spring-cloud-azure-starter-appconfiguration-config:4.7.0
Java version: 17.0.6
Frameworks: Spring Boot 2.7.9

After looking back at the documentation, I now believe that while this is a breaking change from the 2.x behavior, it works as designed:  The Spring Profile section in the docs specifically states that Spring profiles are picked up automatically and used as labels for feature flags, and that you can add back the (No Label) behavior by configuring: spring.cloud.azure.appconfiguration.stores[0].selects[0].label-filter=,${spring.profiles.active}.
I'm gonna go ahead and close this issue, feel free to correct me and reopen it if I'm wrong.
Thanks!


Feat/505 rest api hooks in response actions

Tell us what you do here

improvements: allows one or more callable response_actions to be executed (#505)

fixing defects:

removes "response_actions":  {"status_code": 429, "action": "retry" } from the docs because only action == ignore" was implemented
only the first element in response_actions was registered as a hook

Short description
#505
Related Issues

Resolves #505

Additional Context

@burnash I incorporated your requests and I'll rebase and merge tomorrow morning.


Conflict with "jquery.nicescroll"

I am not a javascripter so please excuse my lack of technical know how
I am modifying a template and have added the latest version of "jquery.nicescroll" from: https://github.com/inuyaksa/jquery.nicescroll
The problem:
When I click on the gallery image and then close the popup / overlay - I get two scrollbars until the page is refreshed
UPDATE:
I have stopped using the code and moved on to use Nivo Lightbox
It doesnt interfere with other scripts and the design / layout is better

in my case where I use niceScroll in a tinyMCE and other custom popups, I had to do one of the next two solutions:
Use the afterClose callback that way (based on @Chukanibre  solution)
========
                afterClose: function () {
                    $(body').removeAttr('style'); // needed also to remove body overflow
                    $('html').css('overflow', 'hidden');
                   // my custom position
                    $("body > .nicescroll-rails").css({
                        'right': '7px',
                        'top': '7px',
                        'display': 'block'
                    });
                }

Destroy then re attach the niceScroll but using a small delay
=========
callbacks: {
close: function () {
setTimeout(function () {
$("body.hasScroll").getNiceScroll().remove();
$("body.hasScroll").niceScroll(_myScrollSettings);
$("body > .nicescroll-rails").css({
'right': '7px',
'top': '7px'
});
}, 200);
          }
        }


[Doc]: Checkout static tags in all release note instructions

📚 The doc issue
Please ensure all release notes include checking out release tags rather than floating branches:
For the 1.18 release it correctly says to run:
git checkout v0.5.3.post1+Gaudi-1.18.0

But for the 1.17 release it still says:
git checkout habana_main

Suggest a potential alternative/fix
Provide prebuilt containers for all releases.
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Thanks for the input. It will be addressed in the incoming release.


Adding Weatherbench2 climatology data source

Earth2Studio Pull Request
Description
This PR adds the WeatherBench2 climatology as a data source. This PR allows the user to change the specific file that the climatology pulls from, as WB2 lists several available climatology with different grids or attributes.
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[ ] The documentation is up to date with these changes.
[x] The CHANGELOG.md is up to date with these changes.
[ ] An issue is linked to this pull request.

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci


chore: add piece task metrics in daemon

Signed-off-by: Jim Ma<EMAIL_ADDRESS>
Description

Related Issue

Motivation and Context

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist:

[ ] Code compiles correctly.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Codecov Report

Merging #1030 (2895204) into main (03b55d8) will increase coverage by 0.00%.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##             main    #1030   +/-   ##
=======================================
  Coverage   45.95%   45.95%
=======================================
  Files         128      128
  Lines        9142     9144    +2
=======================================
+ Hits         4201     4202    +1
- Misses       4468     4469    +1
  Partials      473      473

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
45.95% <50.00%> (+<0.01%)
:arrow_up:

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

Impacted Files
Coverage Δ

client/daemon/peer/peertask_conductor.go
57.26% <50.00%> (-0.02%)
:arrow_down:


Cannot link to new camera

librealsense
2.55.1 RELEASE

OS
Windows

Intel RealSense Viewer / Depth Quality Tool has crashed with the following error message:
Unhandled exception escaping from a worker thread!
Error type: Unknown error (-529697949)!

Hi @AmrGaballah29  There was a past case at https://github.com/IntelRealSense/librealsense/issues/11338 where this error occurred when trying to access the RGB camera from the Add Source option of the RealSense Viewer tool.  Are you using the Add Source button in the Viewer when the error happens, please?

Hi
Thank you for your reply. I think my case is related to the error described in this post https://github.com/IntelRealSense/librealsense/issues/6254#issuecomment-618688110
The viewer  always detected the camera to be connected to a usb2 port although it is connected to a USB 3 port

Hi
Thank you for your reply. I think my case is related to the error described in this post https://github.com/IntelRealSense/librealsense/issues/6254#issuecomment-618688110
The viewer always detected the camera to be connected to a usb2 port although it is connected to a USB 3 port

The chances of the camera being detected as USB 3.2 instead of 2.1 increase if the connector is inserted into the USB port with a quick, firm motion instead of a slow insertion.
Also, if you are using your own choice of USB cable instead of the official cable then ensure that the chosen cable is a USB 3 cable.  If a USB hub is being used, ensure that it is a USB 3 hub and not a USB 2 one.

Hi @AmrGaballah29  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


docs: homogenize region tags

These samples' region tags slightly differ from identical snippets in different languages. The following is the remedy:

Merge this PR to fix GitHub source (keep old tag for now)
Fix doc code includes to represent the better region tag
Submit a second PR to clean-up redundant region tag wrapping

@laljikanjareeya please note the region tag changes if you're planning to move these samples to the new style.


Dark Mode

Feature request-
A clear and concise description of the feature.
Night Mode
Is your feature request related to a problem? Please describe. (optional)
A clear and concise description of what the problem is.
Nice look of Dark Mode
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Adding Dark Mode in page
Describe how this feature will be useful to our readers.
A clear and concise description of how this feature will be useful for our  other readers.
Additional context
Add any other context or screenshots about the feature request here.

Note:

If you want to work on an issue, you should check if it has already been assigned to anyone. If the issue is free you can comment /assign to get the issue assigned to you.
If you are raising a new issue and want to work on it then also you should comment /assign under the issue to get it auto assigned.
Please refrain from adding labels to your issue/pull-request on your own. It is the job of the Project Admin and the Mentors to review your issue/pull-request and add labels accordingly.

/assign


docs_section_pager not  in params.toml

In the text of the docs templates there is a comment that reads
Prev/next pager order (if `docs_section_pager` enabled in `params.toml`)

However docs_section_pager does not appear in the params.toml file... the function works if the value is added. Is this an omission in the default params.toml file?

This is an experimental feature and hence undocumented at this time. Most of this functionality is implemented by Hugo and currently is a very manual process, requiring adding additional attributes to each page to determine the page order. Ideally, Hugo team would improve this and automate it. Feel free to document it on the documentation site by clicking Edit Page at the bottom of a page :)


css class .cancel will now do the same as .close

Modals usually have a cancel button. Adding a .close class gives the button the correct functionality, but messes up the button css.

Nice change, I wanted the same thing and used your patch.

We're moving away from classes like this in 2.0 to data attributes because they are more flexible. Thanks!

awww yeah. Data attributes are mucho sexier than css classes for functionality.


Minor Base64 String Improvements

Reduced duplicate code when processing Base64 strings, and marked them as usable from inline so it generates the same thing anyways.

I don't blame you, I myself just realized I wasn't even "Watching" most of my public repos, so I was oblivious to some PRs made to them 😅


add Rekor inclusion proof to Sigstore bundle

Summary
Per https://github.com/sigstore/rekor/issues/1566, updates the generated Sigstore bundle to include the inclusion proof returned from Rekor.

Fantastic, thank you for getting this included!
To check, will inclusion proofs be verified too, or is that not yet implemented?

@haydentherapper

To check, will inclusion proofs be verified too, or is that not yet implemented?

That's not yet implemented, but will make it a priority.

Thanks, just wanted to check!


Read this before creating issue. This carousel is depreciated in favor of @ngu/carousel. Read more...

Hi,
This carousel is depreciated in favor of @ngu/carousel. It is not a new carousel instead it is a universal version of this carousel with angular 4+ support.
I'm not maintaining this carousel for a long time. So it is better to move to @ngu/carousel. And uncoming issue also will be not solved.
Lot of features are added when compare to this carousel.
Sorry for the depreciation

You should mention that more clearly in the readme :)

Hi @sheikalthaf, please add this to the readme and consider flagging the project as Deprecated on GitHub.
I was completely unaware of this and I'm using it on production. Just happen to find this by chance when upgrading to Angular 6.
I'm clearly not the only one, since the package ngx-carousel on NPM has 2.6k downloads per week.


Issue #379: Add ESLint as JavaScript Static Analysis and Linter

Part of #379

Contributor License Agreement adherence:

[x] This Contribution is under the terms of Individual Contributor License Agreements (and also Corporate Contributor License Agreements to the extent applicable) appearing in the Apereo CLA roster.

/cc @apetro @vertein @thevoiceofzeke @davidmsibley
This PR is starting to fall out of sync.
Is there interest in applying Google Code style to uw-frame/uPortal-app-framework at this time?
Should this be reopened at a later date?

We'll try to get this resolved soon.  I'll work on it today.

There are too many failing eslint checks to merge into master at the moment, however I've created the eslint-refactor branch here: https://github.com/UW-Madison-DoIT/uw-frame/tree/eslint-refactor
Could you change the base branch to the eslint-refactor (or make a new PR if you can't) and resolve the current merge conflicts?  When that's ready, we can merge into there, and then I can work on the rest of the checks this sprint.

branch retargeted, I'll be able to work through merge conflicts later today

@davidmsibley c926097 reset the uw-frame-components folder to match current master, f4fda94 re-applies the automated lint fixes to the master version of the code.

I think we actually lost some features in https://github.com/UW-Madison-DoIT/uw-frame/commit/c9260971c2f869613305c606ee1e6262b2a5aca6, did you pull from upstream into your master before merging?  If not, could you force reset to before the merge and try it again?

@davidmsibley I reset the branch head to c926097 so the diff is easier to read. No features were lost.

woah, ok, nevermind.  I'm not sure why it was looking so weird before...

No worries, I re-added the automatic lint fixes in #423

if we move ahead with #423, can we close this?

Sure


vector: 0.34.0 → 0.34.1

Description of changes
Regression fix: https://github.com/vectordotdev/vector/compare/v0.34.0...v0.34.1

https://vector.dev/releases/0.34.1/

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

@ofborg eval

I missed this, but this doesn't compile on linux, I opened an issue upstream.
If there is no answer within the day I'll revert this.

@happysalada It did compile on my box when I tested this, but then the new Rust version landed in #263535.
Luckily, I'd already found the fix with .0, so pushed up #268682.


Add transferwise variant of tap-snowflake

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2413
Originally created by @DouweM on 2020-11-05 23:14:12

https://github.com/transferwise/pipelinewise-tap-snowflake
https://transferwise.github.io/pipelinewise/connectors/taps/snowflake.html

View 3 previous comments from the original issue on GitLab

Closing as stale.


[Impeller] Trying to access the length() of a SSBO in a compute shader doesn't do the right thing

I'm working up updating/fixing the sample.comp shader. This line isn't currently safe:
https://github.com/flutter/engine/blob/3c4af1da0c3e76b2957db4efdd44604b0342d1ab/impeller/fixtures/sample.comp#L19
Because with too little data or too many threads, it will do OOB accesses.
I'd like to update it to do something like
  if (ident >= output_data.elements.length()) {
    return;
  }

But this generates a shader error at runtime:
validateComputeFunctionArguments:745: failed assertion `Compute Function(sample_compute_main): missing buffer binding at index 25 for spvBufferSizeConstants[0].'

The emitted metal shader looks like this:
#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct Output
{
    float4 elements[1];
};

struct Input0
{
    float4 elements[1];
};

struct Input1
{
    float4 elements[1];
};

constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(128u, 1u, 1u);

kernel void sample_compute_main(constant uint* spvBufferSizeConstants [[buffer(25)]], device Output& output_data [[buffer(0)]], const device Input0& input_data0 [[buffer(1)]], const device Input1& input_data1 [[buffer(2)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
{
    constant uint& output_dataBufferSize = spvBufferSizeConstants[0];
    do
    {
        if (gl_GlobalInvocationID.x >= uint(int((output_dataBufferSize - 0) / 16)))
        {
            break;
        }
        output_data.elements[gl_GlobalInvocationID.x] = input_data0.elements[gl_GlobalInvocationID.x] * input_data1.elements[gl_GlobalInvocationID.x];
        break;
    } while(false);
}

But nothing is setting up the spvBufferSizeConstants. I'm not quite sure what's supposed to and I hope @chinmaygarde will know :)

There's a workaround for this, which is to just specify the array size as an input to the shader more explicitly.

We generally have issues around dynamically sized SSBO arrays that I'm now looking into.

Closing as out of date. This issue has a workaround.


Jetstack helm repo seems to be down

https://charts.jetstack.io/index.yaml is throwing a 500. I'm unable to fetch the repository and install cert manager

Looks good now, I'm able to access the repo. Closing


On-page map

As a user I should be able to embed a map into page with this page's location only on the map.
E.g. I have a post with location => Madrid and I want to display a map with a marker centered in Madrid on this post page with following tag:
{% google_map on_page %}
When on_page flag is present in the tag the map should load location from current document and log error if there is no location found in current document.

Implemented


Error: npm run add-alerts (Failed to launch the browser process!)

 ERROR  Failed to launch the browser process!                                                                                10:38:19
[28712:28712:0323/103819.554005:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Fixed


Task 01 -- Create GitHub account and fork two repositories

To access GitHub please create account or login.
To participate py-jupyter-nb repository please fork.
To participate fi4002-01-2022-2 repository plese fork.

Report  your GitHub user link by repying to this message, e.g

https://github.com/dudung

This assignment is valid until 24 Jan 2023, 11.00 GMT+07.

https://github.com/mrzqi/

https://github.com/ariawahyuw

https://github.com/RahmaliaNur

https://github.com/4damrr

https://github.com/AriaRachmat

https://github.com/Luqmanalifio

https://github.com/ldwgvnbthvn

https://github.com/rais1608

https://github.com/axelfarrelh

github.com/RizkaFinesya

https://github.com/thebellaproject

https://github.com/mhaidarzz

https://github.com/Mfthlfrd

https://github.com/ahmadmarzukiramadhan

https://github.com/10219082Rahmalia

https://github.com/chromaaxion

https://github.com/Blitzmaestro

https://github.com/stefanyimanuel

https://github.com/valensiusnathanael


kernel: arpresolve: can't allocate llinfo for ... on lagg0_vlanX

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[X] I have searched the existing issues and I'm convinced that mine is new.
Describe the bug
I am loosing upstream gateway connectivity on a bare metal multiwan two member cluster setup after boot. Networking is connected via lagg und vlans. After reboot, the logs are flooded with
kernel: arpresolve: can't allocate llinfo for <IP_ADDRESS> on lagg0_vlan432
and the upstream gateways are offline.
Setting up an static arp entry fails after reboot:
arp -S <IP_ADDRESS>  <mac address>
arp: writing to routing socket: No such file or directory
arp: writing to routing socket: Cannot allocate memory

However when I just save and apply the unchanged settings on the affected interface using the web gui, the gateways recover. Also the arp table shows the ip and mac address.
To Reproduce
Steps to reproduce the behavior:

Setup two 19.1 machines
Setup lagg and vlans for WAN and LAN
Setup static ips on lan and wan
setup virtual ips on lan and wan using carp
setup upstream gateways using monitor IPs

Expected behavior
Working arp requests on laggX_vlanY interfaces.
Additional context
Add any other context about the problem here.
Environment
OPNsense 19.1.1 (amd64, OpenSSL).
Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
Broadcom Gigabit Ethernet BCM5719

Hi sinuswave,
Discovered this issue aswell, currently testing opensense 19.1.1, only solution to fix this for now is to disable the gateway monitoring and treat the gw's as always up.
Its possible the timeouts are too small or an issue with packets is causing this issue, hard to know at the moment.
Give it a try and see if this helps with this issue?

Either driver issues with broadcom or a misconfigured carp interface, you could inspect hardware offloading settings and check the subnet settings of your vip. I've just tried to setup a lagg on a vm (intel nics), which doesn't suffer from this issue.
The arpresolve: can't allocate llinfo for very often indicates misconfigures (wrong network/subnet on interface)
https://github.com/opnsense/src/blob/3c09b4c3de9c2ee3f14252864589a7f10b1e7ee1/sys/netinet/if_ether.c#L465-L475

It’s the obscure standard error message for gateways being outside the configured / acquired subnet, yes.

I will try a intel network card and report. Additionally I checked for a miss-configuration without success. Since saving and applying unchanged interfaces settings bring up the getaways, I'd rather not think this will be a configuration issue.

@sinuswave It's worth checking that you have not set the incorrect subnet mask on that interface as @fichtner has mentioned as its an easy mistake to make without realizing.

Do you set an upstream gateway on both WAN interfaces? I'd always set it to auto-detect and do the rest via kernel routing.

I changed the nic to an intel card. And tried following, too.

setting the gateways to autodetect as @mimugmail suggested
update to the latest version (19.1.4)

Unfortunately the problem still persists.
@db260179 netstat -rn output right after boot without ipv6 and replacements of the monitor ips.
 Can't see "192.168.56" or "lagg0_vlan432" in your output. Assuming that arpresolve: can't allocate llinfo here means your configured gateway for lagg0_vlan432 lay outside its configured subnet which you need "far gateway" option for, but it won't work for DHCP at all.

I am sorry to report, that this is not resolved yet. The provided data has to be anonymized for security reasons. Unfortunatly I used a different subnet in the priovided command outputs compared to the originally report.

What's the switch model behind? Can you disable STP on the affected ports? Maybe the nic driver is resetting shortly after boot initialization and the port is blocked for 30 settings (with link up) which could also produce such a situation ...

Let's reiterate:
Sorry for the long delay. Can't see "192.168.56" or "lagg0_vlan432" in your output. Assuming that arpresolve: can't allocate llinfo here means your configured gateway for lagg0_vlan432 lay outside its configured subnet which you need "far gateway" option for, but it won't work for DHCP at all.

The provided support needs to be abandoned for resource reasons if there are no further replies. ;)
Cheers,
Franco

Thanks for the replies. The connected switch stack is a cisco 3850.  The interfaces of the port channel group are configured as passive members "channel-group 1 mode passive". The portchannel itself is configed as
!
interface Port-channel 1
  ...
  switchport mode trunk
  spanning-tree portfast trunk
end

Can you change to active?

I just changed it to "channel-group 1 mode active", powered off the system and powered it up again. Unfortunately no change in behavior.


Question on output

Hi M. Zhang
I'm a Master student and currently I'm studying in this aspect. Can I ask you some couple question ?
I'm getting your repo and after adding the sigmoid to the last layer. I run a little sample sample on it and this is my command line:
python seal_link_pred.py --dataset PubMed --batch_size 12 --train_percent 0.1 --val_percent 0.1 --test_percent 0.1 --num_hops 3 --use_feature --epochs 20 --dynamic_train --dynamic_val --dynamic_test --only_test
And I got an output like this
tensor([[0.4867],
[0.4875],
[0.4858],
[0.4848],
[0.4854],
[0.4865],
[0.4855],
[0.4850]])
Can you tell me more out what's does the output mean, and how i map the result to the predict link ?

Hi! If you add sigmoid to the last layer, the output will be restricted to [0,1], which can be seen as link probabilities. If you want to map them to link existence, you can set a threshold such as 0.5 to classify all links with > 0.5 probability as positive links. In your example, apparently all links have similar (near 0.5) probabilities, which might suggest the model isn't well trained. You may increase the train_percent to something larger.
If you only want to evaluate ranking metrics such as AUC/Hits/MRR, you don't need the sigmoid. The repo supports directly outputting the ranking metric numbers.

Thanks Mr M.Zhang for the response. I was just running a first time training and use that model to predict and get data for understanding. After reading your paper and code I notice that:

When using model DGCNN after a sort pooling I got a matrix nk but after that you reshape the matrix to nk* 1 vector. What's is a main point when increasing size like that ?
I also notice that the first convolution filter you use which is really large (k size). Why would you use such that big filter.
After reading you paper, I'm a little confuse about the sort pooling layer "to achieve an isomorphism invariant node ordering". Can you describe more about this.

Sorry if those question annoy you. I'm currently study on this aspect and want to understand deeply.
When waiting for your reply I wish you good health and many thanks for your support

I increase to nk * 1 and then use 1D-conv with kernel size k. This is equivalent to using an MLP on each node's final feature vector to get a new representation for 1D convolution.
This is answered in 1.
Given two sequences of node representations, they might be different due to using different node orders. But after sorting they become the same. E.g., [1,2,3] and [2,1,3] are different. But after sorting, [1,2,3] = [1,2,3]. Sorting makes isomorphic graphs have the same representation no matter which initial node ordering you use.

Very much thank you.
I also have another question. In this https://github.com/facebookresearch/SEAL_OGB/issues/2 you have said that using node embedding will make GNN not inductive. But as far as I know GNN already embedding the node into matrix E so why adding the node embedding algorithm will make it not inductive. Please correct me if I'm wrong.
I really appreciate your help when responding those questions for me.
Again Very Much Thank You

GNN learns node embeddings in an inductive way, but traditional network embedding methods such as node2vec/DeepWalk embeds nodes in a transductive way (do not generalize to unseen nodes).
[1,2,3] and [2,1,3] mean node representations before SortPooling (i.e., their graph structure has been absorbed into node representations through graph convolution). These two are isomorphic graphs, so their node representations are the same, up to a permutation of node ordering. After sorting, [1,2,3] and [2,1,3] become the same, meaning that SortPooling can map isomorphic graphs to the same representation.


how to send a command to devices?

hi,
i have commands table on database, when a user command for any device from traccar web server,  I want to send these commands to selected devices.
how to do it. could you give me a clue?

Maybe the solution is to create a proxy in the server machine, resending incoming data to traccar and sending commands to the tracker

I have about 500 unit, I was using code to cut engine with configure resetDelay, and it works.
Thanks for @hackerunet and @tananaev for the advice.

bernamaxim, please can you share the code, im using a GT06,
Regards.

@cabreu1981, this is a very old thread. Traccar now supports commands, so there is no need for any workarounds.

well when i send a command turn off/on engine to a gt06 device it only returns {}

If you have some problems with API, please create a new issue instead of reviving this old thread.

Command are supported. Closing this thread. If anyone has any questions, please create a new thread.


OS X Support

Trying to install master from source on OS X gives the following error:
Traceback (most recent call last):
  File "setup.py", line 82, in <module>
    packages=['celiagg', 'celiagg.tests']
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup
    config = configuration()
  File "setup.py", line 51, in configuration
    config.add_subpackage('celiagg')
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1002, in add_subpackage
    caller_level = 2)
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 971, in get_subpackage
    caller_level = caller_level + 1)
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 908, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "celiagg/setup.py", line 140, in configuration
    cflags, ldflags = get_freetype_info()
  File "celiagg/setup.py", line 73, in get_freetype_info
    data = collect_data()
  File "celiagg/setup.py", line 68, in collect_data
    data[key] = run_cmd(cmd_prefix + args, env=env)
  File "celiagg/setup.py", line 58, in run_cmd
    env=env, stderr=dev_null.fileno())
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/subprocess.py", line 567, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/Users/cwebster/.edm/envs/celiagg/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Proximate cause is the lack of pkg-config on a default OS X install.

And with pkg-config installed via homebrew, it seems to compile correctly.  Probably should have build instructions that list out the requirements for OS X.  It looks like the requirements are no worse than matplotlib's so I can live with this.

Wow... That error message is basically useless.


CWLs for pVACseq, pVACfuse, and pVACvector

A few caveats:

the pVACseq CWL does not implement the additional_input_files parameter. We would need to parse this file and import the listed files as an InitialWorkDirRequirement. Instead I will work in implementing pVACseq using VCF genotype fields for coverage, vaf, and expression since that is what we want to do in the long run anyway
toil/docker doesn't support X11 forwarding so we are not able to draw the vector visualization. I implemented a change in pVACvector to check whether the display is set and only then draw the visualization. This means that pVACvector runs done in docker will not create the visualization but at least they won't fail.

I also had to remove the iedb_install_directory option because toil doesn't support directories or InitialWorkDirRequirement so short of pulling in every single IEDB file separately, we can't make the IEDB install available. Ideally we would be able to distribute IEDB with our docker container. @malachig should we contact IEDB about this?

I was able to add the IEDB directory to a toil run, using the Directory data type. However, I'm encountering errors while running IEDB. I tried messing with it for half a day and am giving up for now.

The error I'm getting is:
File "/private/var/lib/cwl/stge10a4e74-a0c6-4a5c-a9f0-9a5e854195b7/iedb/mhc_i/src/../method/netmhc-4.0-executable/netmhc_4_0_executable/__init__.py", line 33, in predict
    process = Popen(cmd, stdout=PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[job test.cwl] completed permanentFail

when IEDB is trying to sub out to the individual prediction algorithms.
I'm not exactly sure why this is happening. It could be a permissions error. It could be that IEDB isn't quite set up correctly since the install gets copied into the container instead of unpacking the installation tarball and running the configure script.
I think I will merge in this PR as is and we can discuss further steps at a later time.

Ideally we would be able to distribute IEDB with our docker container. @malachig should we contact IEDB about this?

Yeah someone would have to have a conversation with IEDB about distribution in Docker. As is, with the academic license, I suspect that it's a no-go.  That said, we should go ahead and build a docker container with IEDB and keep it in the private docker repo. Plenty of internal users that could benefit, and then the work is done if we can make it public.


[Request] Better scrolling of the file tabs headers

Hi,
I was wondering if the file tab headers can be scrolled in a more user friendly way. At the moment a thin line appears on the bottom of tab headers which makes clicking and grabbing difficult.
Please see screenshots:

VSCode Version: 1.24.0
OS Version: OSX Sierra

@blendsdk so what is your suggestion?

@bpasero my suggestion would be to remove the mini-horizontal scrollbar and have clickable UI to shift the tabs to left and right if the total number of tab widths exceeds the screen area. For example:
(Make your browser smaller and click Run)
https://fiddle.sencha.com/#view/editor&fiddle/1ri6


wildcards in the FilePath

Does the policy allow for wildcards to specify all files in a folder?
Specifying an individual file works
"Files": [
{
"FilePath": "D:/live_files/OAuth_tester.fmp12",
"Operation": 2,
"Key": "9993c359-c68a-4c11-8cd0-f4c4695be28f"
},
but using any of these does not
"FilePath": "D:/live_files/",
"FilePath": "D:/live_files/",
"FilePath": "D:/live_files/.*",

Not yet supported but planning on doing so.


plugins/actions/config_template.py doesn't work with ansible2.2

TASK [ceph.ceph-common : generate ceph configuration file] *********************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: _make_tmp_path() takes exactly 2 arguments (1 given)
fatal: [storage0111]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}

ansible --version
ansible 2.2.0

In ansible in the plugins/action/init.py file:
def _make_tmp_path(self, remote_user):
In earlier versions it looked like:
def _make_tmp_path(self):

I'm not familiar with this code, I'll let @cloudnull chime in :)

sorry was afk, I've not tried Ansible 2.2 as it's still in development. However i now have a reason to give it a go. I'll post back shortly.

TODO:

[ ] Check that config_template is functional in "v<IP_ADDRESS>-0.5.rc5" which is the upcoming stable release
[ ] Check that config_template is functional in "master" which is the head of development for version for "2.2.x".

With the initial testing I've been able to get it to work without incident for both the head of 2.1.1 and 2.2.x development. @khappone your deploying on an earlier release before this commit went in [ https://github.com/ceph/ceph-ansible/commit/6dea2e2f89046df63a234c1f6df507bfbebae004 ]?  If so that would make sense because we pushed an update to the plugin at that time which addressed that issue. This was changed [ https://github.com/ceph/ceph-ansible/commit/6dea2e2f89046df63a234c1f6df507bfbebae004#diff-e27bcc569a39c2de72fb1679dffb764dL261 ] to [ https://github.com/ceph/ceph-ansible/commit/6dea2e2f89046df63a234c1f6df507bfbebae004#diff-d332bef1b78a297caccb463158b8f76bR481 ] which used a try/except to support early "2.0" and "2.1". Check the version you have and the template on disk and let me know what you find out. If there's something a-miss please let me know.

@khappone This is the repo I've been using to exercise the config_template bits: https://github.com/cloudnull/testing_config_template -- IDK if that helps you in any way but I figured I'd share it just in case.

My apologies. You are completely correct. The problem is that I use the roles directly and I don't use ceph-ansible to coordinate the roles. The plugins/actions/config_template.py from the ceph-common role has this problem, not the one in the top-level ceph-ansible. Is the one in the ceph-common role still used for anything? The role documentation still mentions that it should be used.

@khappone sorry for the confusion, I just pushed https://github.com/ceph/ceph-ansible/commit/2ca0734c385dda3cf8d8c6567ba971617995407e and updated ansible-ceph-common. Closing this.


Remove unnecessary extra sig during sim

Better external wallet ux

PR-Codex overview
This PR introduces a condition to prevent hashing and signing user operations during simulation.
Detailed summary

Added a condition to skip hashing and signing user operations if in simulation mode.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

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

Project coverage is 83.68%. Comparing base (18213f7) to head (850a557).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   83.66%   83.68%   +0.01%
==========================================
  Files          26       26
  Lines        3680     3683       +3
  Branches      506      507       +1
==========================================
+ Hits         3079     3082       +3
  Misses        466      466
  Partials      135      135

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


Find representatives with OCD ID/State mismatch.

https://wevoteusa.atlassian.net/browse/WV-92
Tested:
Running locally, finding representatives with mismatch, and filtering representatives with mismatch.

👍  Thank you @jtconnor, I'll check the Representative data with your script, and then we can figure out the next steps on https://wevoteusa.atlassian.net/browse/WV-92
PS. I see all incoming pull requests because I subscribe to our #github Slack channel.


Building Desktop App on MAC with Pyinstaller

I am having difficulty building the desktop app on the MAC platform. I can successfully build the entire desktop app on a Windows machine with no issues using py2exe and electron. On the MAC, I can run the build.py script successfully. However, I get error messages when trying to run the build_pyinstaller.py script, and subsequently when using electron npm.
Here is a screen capture of the build_pyinstaller.py shell window:

I'm hoping to get some assistance on how to re-build the desktop app on the Mac as I've been able to do with Windows.
Thank you.

How are you trying to run the python script? Are you executing the commands from the terminal from the location specified in the instructions?
https://github.com/carlosperate/ardublockly/wiki/Building-Ardublockly#second-step-python-server
I would also highly recommend to use Python3 if possible, but it should still work with Python 2.

Hi Carlos,
So, just to be clear even though the python script build_pyinstaller.py is located  in the package folder, I should be running the script from the Mac terminal window at the root directory instead?  I run build_py2exe.py on a windows machine from the pacakge folder and all works. I've tried python 2 and 3.

Yes, you'll have to use the terminal at the project root directory instead of double clicking the Python script. This is due to the relative paths present in the PyInstaller spec file inside the package folder.

I am experiencing the same problem. Is there any other fix I could try?

So, on the MAC I am able to build blockly using build.py script. I am able to run build_pyinstaller.py successfully by running it from the root project directory. And, I am able to build the executable with node. But, when I execute the newly created desktop executable, the MAC desktop Ardublockly window frame opens, but it is blank and just flickers. The log file reports that the server was unable to start and attempts are being made to re-start it. If I replace the server folder in the arduexec folder with the server folder from a build that works, the desktop application will then start. So, even though the pyinstaller.py is executing and reporting successfully build, the server is not being built correctly and/or is unable to start. Here is a screen shot of the log file and also the desktop window that launches blank. Any ideas or help resolving this would be greatly appreciated.

@puttley this seems to be a different issue now.
To summarize my findings about the original issue:
The first error messages are related to pyinstaller not beeing installed, fix that by running pip install pyinstaller once before running the script.
When running the script again, pyinstaller complained about the module ardublockly not beeing found (both on win10 & ubuntu16 with python 2.7). I could fix that by replacing import ardublockly with import ardublocklyserver in package/pyinstaller.spec.
After that, the build succeeded.
Can anybody reproduce/confirm this bug/fix?


chore(main): release 0.9.3

:robot: I have created a release beep boop
0.9.3 (2024-12-18)
Bug Fixes

use hatch build backend (9281bf3)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.9.3
:sunflower:


Add a simple demo for Jenkins

@rgardler,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


feature request: Provide a type that wraps a Write and updates a digest when it's written to

I want to write a bunch of things to a file and then write the digest of everything I've written. I thought it might be nice to have an API like so:
let mut file = File::open("foo.txt")?;
let mut digest = Sha1::new();
let mut out = WithDigest::new(&mut file, &mut digest);

for thingy in things_to_write {
    out.write_all(&thingy)?;
}

let mut digest_bytes = Vec::with_capacity(digest.output_bytes());
digest.result(&mut digest_bytes);
file.write_all(&digest_bytes)?;

file.flush()?

I wrote a rough untested draft of how this could be implemented. What would you think of a PR?

Nevermind, I just learned this is unmaintained.


Fresh install Ubuntu 22.04

Thank you for this great script!
Unfortunately I can't get rtorrent to start :/
rt says rtorrent is NOT running. irssi starting properly :/
Reinstalled it already dozen times :/
How do I diagnose it ?

Try this one
https://github.com/arakasi72/rtinst/issues/604#issuecomment-1475318587
Otherwise try like some seedbox services?
This project seems dead long ago. Not much happen and if it does it breaks everything.


32-dev-time-resolution-and-measure-type-extension-in-ontotimeseries

The only question therefore is: Have we looked into using https://www.w3.org/TR/owl-time/#time:TemporalDuration (or something similar) instead of defining our own Interval concept and classifying this as om:Quantity?

I would support re-using time:TemporalDuration, rather than defining yet another duplicate...

@sm453 Please correct me if I am wrong!

I believe this is unnecessary complex:
I thought we aligned on AverageTimeSeries hasAveragingPeriod time:Duration time:Duration time:numericDuration xsd:decimal time:Duration time:unitType time:TemporalUnit
TBox (in case the subClassOf caused confusion: We do not need to include this into our ontology as we define the time concepts correctly as defined by https://www.w3.org/TR/owl-time/# )
ABox

Apologies, this is my mistake. I committed the wrong version of the files.


Represent individual files

We need a way to represent individual files. Right now, there isn't a great way to do this with SOSO.
One option is to represent them as individual nodes in the graph and connect the related dataset(s) to them. This would allow us to further annotate the nodes with additional information, such as which variables they describe.
Unknowns:

The rdf:type of the node
The predicate connecting the dataset to the file

Earlier we discussed that individual files are in fact listed in SOSO guidelines using the schema:DataDownload class in the distribution property, which can be repeated for each data entity in a Dataset. The representation is like this:
...
  "distribution": {
    "@type": "DataDownload",
    "contentUrl": "https://www.sample-data-repository.org/dataset/472032.tsv",
    "encodingFormat": "text/tab-separated-values"
  }
...

To add additional properties, we could attach additional classes. In GeoLink, this was the geolink:DigitalObject, and in DCAT it would be dcat:Distribution. We could also use prov:Entity or provone:Data, which we use in or provenance graphs as well, so that would provide some level of alignment with other RDF that we would be serializing. What other candidates might there be for it?

Ah I ran across the following and blanked on the other section where DataDownload is used for other general files.

We use the schema:DataDownload class for Metadata files so that we can use the schema:MediaObject properties for describing bytesize, encoding, etc.

Our best bet is just sticking with schema:DatasetDownload. It has dcat:distribution as an equivalent class, so we should be able to use dcat terms where we appropriate

Do we want to talk about resource maps, system metadata, and science metadata as individual nodes in the graph? We certainly want to talk about EML documents-or at least link the download location as outlined here.
When it comes to science metadata imagine that we have a node in the graph describing a particular file, do we want to link its system metadata to it in some way?

The diagram on top is a sketch of the file linked to its corresponding system metadata file node via an unknown term (hasSystemMetadata). This node in turn has properties about it (the things we typically find in system metadata documents like size, hash, name, etc).
The second diagram is a more abstract view where instead of representing the properties of the system metadata document we just encode where to download it (questionable use of distribution).

That a file (schema:DataDownload) has System Metadata record isn't really scientifically interesting, nor is the fact that it's got a Resource Map Object describing/aggregating it. The approach we have in place now pulls properties from various DataONE types but aggregates them as properties on either the schema:Dataset or schema:DataDownload. The ore:aggregates triples in the ORE are represented as schema:distribution triples. I'm swapping schema terms in here for geolink terms since the structure is the same.
This structure allows us to answer questions like "give me download URLs for all the NetCDF files under 2MiB in size funded by NSF that contain measurements of carbon dioxide flux and were collected before the year 2000 north of 45° latitude". A structure that more closely follows DataONE's data model doesn't prohibit this but the queries are more fun to write.
Do we have a use case where having a more DataONE-centric model in the triplestore would be useful? I think for the SASP work, no. But longer term, maybe yes.

What had me thinking about this was this issue which could mean a number of things though... I think my statement was probably a pondering of how much we're modeling the actual structure of DataONE (ORE aggregating files, each having an associated system metadata document, etc) next to the SOSO representation. But it makes sense to aggregate a number of the terms in the system metadata into the actual node representing the file.
So files are represented as first class nodes? ie for every file in DataONE, theres a node of type schema:DataDownload and one or more nodes of type schema:DataSet are referencing them via schema:distribution?

I don't see an immediate use case for representing the system metadata as a node if there's a mapping between the interesting metadata fields in the system metadata and schema,org terms with domain schema:DataDownload.
While thinking about how to close this issue it seems that the work needed is...

Document which terms we want to save from the system metadata document
Come up with and document a mapping between the terms from step 1 and the schema,org vocabulary
Implement it in the parser

Yep, that's what I'm working on over on https://github.com/DataONEorg/slinky/pull/21 at the moment. Once that's done, we can do step 3.

This approach sounds good to me. I've never been very happy with the semantics of schema:DataDownload, but agree we should use it to represent the files. However, we could also benefit it by cross typing it with one other common vocabulary that has the concept of a data entity, mainly prov:Entity (or maybe provone:Data?). Are there other candidates other than PROV for this common concept to replace geolink:DigitalObject?

However, we could also benefit it by cross typing it with one other common vocabulary that has the concept of a data entity....

I agree. cross typing with prov:Entity, provone:Data and probably even dcat:Distribution seem both useful and logically correct. Considering that we're inserting into a graph, does it make more sense to (1) explicitly assert each type on each dataset or (2) just toss a few owl:equivalentClass statements in when the graph is constructed?
Option (1) is nice because simple SPARQL queries will surface the equivalence but has the downside of massively increasing the number of triples in the triplestore. (2) feels more "use the force, Luke". We could cross-type when serializing out to JSON-LD even with option (2).