Features/sidebar

Changes

Add animated and responsive sidebar with style.
Use a custom component  router-link to create links.

Reference
https://trello.com/c/JxLA7Sge/32-task-features-sidebar

Two things to address

have you agreed on a convention for class naming
when changing routes on desktop, you are unnecessarily calling the toggleSidebar method on each click


Documentation repo?

Where is https://vsapronov.github.io/FSharp.Json/ hosted? I wanted to provide a PR to fix something in it but I cannot find where those docs are.

I'm assuming the documentation is hosted by github (it has the github.io domain). The documentation is on the branch gh-pages. You can see the documentation there


run command producing different assemblies than build

I'm getting different assemblies when running on GH CI rather than locally with dotnet releaser build. It's a simple nuget package with one assembly, but IsTrimmable is set to true which I strongly suspect is at fault here. When I look at the assembly created in CI it contains no types. I've tried setting some msbuild.properties like so
[msbuild.properties]
PublishTrimmed = false
PublishSingleFile = false
SelfContained = false
PublishReadyToRun = false

but it doesn't seem to have any change on what is built in CI.
Project is here - https://github.com/phil-scott-78/Icons
Here are a couple of packages.

Created via build and uploaded manually - https://www.nuget.org/packages/BadIdeas.Icons.FontAwesome/0.0.0-alpha.0.14
Created via run and pushed via CI - https://www.nuget.org/packages/BadIdeas.Icons.FontAwesome/0.0.0-alpha.0.13

You know, I just realized something - my whole assembly is being generated via a source generator which could be blowing up in CI for some reason.
Me screwing that up seems far more likely than your tool failing so I'm gonna close this


Threaded producer

Turned out to be a little more involved than I anticipated, since KafkaConnection had a major bug with copy() and threads (due to subclassing threading.local). As a side effect reinit() is not mandatory anymore, client will automatically reconnect when it is used for the first time after a copy().

@snaury This doesn't merge cleanly currently.  Could you try to fix the conflicts so it can be ready for merge?

Thanks snaury!  vshlapakov got this to merge in PR 330.


Update ElementalAreasExtension example code

Add in cascade_duplicates to avoid duplication issues addressed in https://github.com/dnadesign/silverstripe-elemental/pull/217.

Thanks!


ReferenceError when using devtools middleware

Hi, I'm getting a ReferenceError: Cannot access 'state' before initialization when using zustand(1.0.4) with the devtools middleware in a create-react-app based setup. The error is only present in development mode.
To reproduce:

npx create-react-app test-zustand && cd test-zustand
yarn
yarn add zustand
Replace App.js with [TestApp]
yarn start

[TestApp]:
import React from "react";
import "./App.css";
import create from "zustand";
import { devtools } from "zustand/middleware";

const [useStore] = create(
  devtools(set => ({
    count: 1,
    inc: () => set(state => ({ count: state.count + 1 })),
    dec: () => set(state => ({ count: state.count - 1 }))
  }))
);

function App() {
  const count = useStore(state => state.count);
  const inc = useStore(state => state.inc);
  return (

Count: {count}

        <button onClick={inc}>Inc</button>

  );
}

export default App;

Screenshot:

im still on vacation, wont be able to look into it until september. @JeremyRH would you take a quick look? can it be that the batchedupdates update caused it?

Should be fixed in 1.0.7.

Thank you. Updating to 1.0.7 fixed the error for me.


Add embedded journal support for LocalAlluxioCluster

What changes are proposed in this pull request?
Add embedded journal support for LocalAlluxioCluster in integration tests
Why are the changes needed?
To test some features that only works with embedded journals
Does this PR introduce any user facing changes?
N/A

alluxio-bot, merge this please


increase d3-bdc version

commit associé https://github.com/theodo/d3-burn-down-chart/commit/3ba2f3651ef49688d22b0b800ecd920c62f26031


String about_content

Hi.
I think that the string "about_content" is too long. So I think it should be divided.
Moreover, I think that "\n" should be stripped, because it is something related to programming, so a common translator is likely not to understand.
Regards.

A possible solution would be to move the contents of this string to a .md-file.
Or mark the string untranslatable.


part_traits, repo_traits: names

Consider revising the names in these modules. Possibly also put the default implementations elsewhere. Do we want these modules or should they be inlined in part/repo modules again?

Trait names revised (removed T suffix; made verb infinitives except for Element).
Modules and other names may still change, but I don't see much point keeping the issue open.


🎉🎉 [Sticky] Who uses ngx-admin/feedback? 🎉🎉

Hi All!
We are really keen to collect your feedback, and to start with, we'd like to know who is using ngx-admin. We would really appreciate if you:

Share your company name
Share your logo (in which case it might be used in the readme / frontpage etc)
What kind of project? How large? (code base size or team size)
If your project is open source or public, please share a link!
What do you like most about ngx-admin, what could be done better?

Thanks to MobX for Questionnaire idea: https://github.com/mobxjs/mobx/issues/681

My self rajesh sanil I’m a freelancer

Kiosoft
I am currently working with ngx-admin on an upcoming project for Ski Schools in order to improve management of staff and bookings.
So far I'm really happy with ngx-admin, love the demo, the clean design and the fact that most of the heavy-lifting (auth) is built in. It's very easy to get started if you already know a bit of Angular.
For me, many of the open pull requests (Calendar, Time Picker, etc) are really useful and I think they would be great additions if they were merged. On another note, I think ng2-smart-table could benefit a little upgrade and maintenance. But I still love all your work! :)

It's too hard, no

I am currently working with ngx-admin on my project,it's very helpful for my team,it's a very nice start point for the beginner of Angular,thanks very much.

I'm using blurAdmin on a project and it feels great both working and using it.
I'll use ngx-admin as soon as i have the chance.
Again, good job people, thumbs up!

I'm using ngx-admin with a personal project. It's really easy to start a project with. Congratulations for high quality!!! 👏👏👏👏👏

I'm currently using it on a startup project.
Great stuff, and really easy to customize. I like the Auth System. Much better than one that I used to write by hand.

ng2-admin style with angularjs1.6.2

I've been working a lot with ng2-admin over the past year, to finally see its flaws and imperfections. I'm trying to put it away since it's mostly a burden more than anything now.
I've not tried nebular with ngx-admin, and I feel the whole nebular block is not truthworthy yet. I don't see a clear example of how powerful it is, nor if it really is easy to use.
Like some people told earlier, it seems too complex for what it can give.

My self Vijay Sankhat I love to use ngx-admin. Thanks for sharing the precious themes with us.

@muriloe Amazing project mate.

@nnixaa I'm using it in one of my latest projects.

I am a front-end developer from China, working in a online-travel Company, using ng2-admin for our company's back-end inner system to control Redis, service about other 1000 developers who want manage Redis, really appreciate all  the things your group did for us!!!

Switched my online digital forensics tool to use ngx-admin... Great work on the UI folks, really appreciate all of your effort and support...
IRIS-H Digital Forensics

@denisobrienirl,
Are you aware of the problem when going to auth/login page and then back to dashboard, under auth your login page is disappeared?
There is an issue open for that so keep an eye out for updates.

Our company is PixelDr, currently a team of three, and we're building a dashboard that will showcase a lot of our user's data from an educational platform we're building out.
Apologies in advance for the length of the feedback :) here goes...
In my search for admin dashboards built with angular I was looking for something well written and clear, with an active & helpful community, and with good visual design – and have to say thats where ngx-admin/Nebular really stood out, the UX/UI is exceptional, and I really like the direction Nebular is going with the modularity and ability to plug in components like carousels etc. With very small code additions. There isn’t anything else out there I’ve seen that does this nearly as well
In terms of what's missing, future improvements etc.

I think it’s still quite early on for Nebular and the potential is great – for me, I think the documentation for auth was a bit confusing as some of it wasn’t fully complete when i was integrating it. I followed the OAuth Google example and tried to adapt it for Azure but that’s when I ran into problems. As it develops would be great to add more examples for more providers, like Facebook & Azure AD. I think the main confusion was that I’d started with the ngx-admin template, which has a lot pre-configured, but the docs are mainly written as if you’ve started from scratch, so probably just further clarity of how to change the dummyprovider over to the other auth methods in the template would be a good addition.
There were a lot of things I had to strip out of the ngx-admin template so I could start building my own structure and pages, and this was quite a painful process as I wanted to keep a few of the custom components that were in the template, but centralise them in a re-usable module (like a couple of the components from the Dashboard module). Because of the structure I spent a lot of time doing this and re-registering components, probably due to my inexperience with angular, but if it could be written and structured in a way where the common components are centralised, then would be easier for people to re-use them
With the UserService, because of how the users are hardcoded into the ngx-admin template, after implementing authentication I’m going to need to re-write a lot of how the user is displayed, as well as in the routing module, where I will need to first check if a user is authenticated, and if not direct them to a sign in page, protecting the rest of the dashboard from unauthenticated users. It would be fantastic if some of this logic was already built in the template
Likewise, for building in live backend data and populating the dashboard with this, it would be brilliant if the template was already set up for this – there’s some mock data the ngx-admin template uses and has registered in some of the @core services, but understandably this is static at the moment (like the contacts that populate the ContactsList component in the dashboard). At least documentation on setting this up with live data and an API backend would be immensely helpful for people as a lot of admin dashboards will need this

Hope this helps - love what you guys are doing and excited to see where the project goes!

Hi! My name es Manuel Bruña fron Argentina and my company is Incubit (https://www.incubit.com.ar).
I have create to many panels with Akveo NG2-Admin and this is with versión 2.0.1 of ngx-admin.
This platform is create to make a plans to sell vehicles.
Thanks for your upgrades! I trust in this panel with the first versión (ng-admin) and this last panel (i need upgrade to the last version) is excelent. The last theme "Corporate" is beauty and simplify.
See you!

LeadFinder
www.leadfinder.com.br

Our project is a website for soccer team statistics (games, players, matches, charts).
DB includes more than 3000 matches , more than 2000 goals...etc
The website is in Arabic.
Link:
http://www.al-za3eem.com/#/pages/dashboard
Logo:

Great admin template with a lot of out of the box features, what i wish to enhance is little bit more documentation how to use it with server side, and how to use features in the top bar (search, notifications, emails)
Great job

Hey, we are using ngx-admin in the Admin UI for our Open-Source On-Demand Commerce Platform (https://github.com/ever-co/ever) and in multiple web apps for our customers!
Thank you for the great product! ❤

In addition, designing now a new ngx-admin theme "Dark", which match our brand colors:

We only recently started open-sourcing parts of the project ... (it's WIP)
So, every ⭐ on our Github repo is highly appreciated!
Thank you!!!

Hey ngx-admin users, we are working on Nebular 4.0 now and really need your support. Here are some details and discussion: https://github.com/akveo/nebular/issues/1331#issue-426895101.

I use it as well , for a couple different apps, so far so good. I cant post pictures because of NDA tho 😢

We have implemented this theme for our custom built Help Desk application at Tampa General Hospital in Florida. We love it. Great work!

Hello,
I found ngx-admin very helpful. I am planning to use it for my tech product but I have one query. Do I have to mention anything (credits) on my website? As it mentions that its MIT license or I can use it without giving credits

Amazing work guys ,  thanks you!!
SiriusPool is serving miner stats with ngx-admin
Check it out there https://siriuspool.net/

We started with ngx admin, however now its morphed into an enterprise level angular application that manages tracks data for a very large govt organization that. We use all the nebular components and additional bootstrap based components.

I first started with ngx admin to create a custom theme
Using the starter version- customized the build conf to our env and api- in the cloud
built on top of nebular component to create local shared components
attempted to build a component library with our custom theme

Since our custom theme is heavily customized I would like to share it one day!

I love globally managed styles in angular. How the themer is built helps us avoid encapsulated styles that make the ui inconsistent
not a fan of the auth structure.
-not of fan of all the search styles- not easily extensible either...

thank you guys so much - you guys make a huge difference in my life

pretty good but not a fan of the auth structure either

My company new platform is using ngx admin for managing veterinarians and admin panel. And it is really great to build, customize and manage.
I am using NgxAdmin + Node.Js Bundle for development. It is really great!

Thank you so much Akevo team! Your team did really great work!
Quick question: Is it possible to upgrade angular version to 9 anyway?
Regards

I am developing a client application with ngx admin for almost 2 weeks now. Everything seems alright in the beginning. The authentication components, ACL, and security are so good!
However, displaying data from serverside with state management and observables and putting in in a table is a pain. I tried using SmartTable but there is really no clear way of doing this. I really hope the team would focus on improving Smart Table. I ended up trying other libraries for table.
Overall, this opensource admin theme is VERY awesome! Looking forward for more themes, components and sample layouts (e.g profile, invoice, e-commerce etc.).

We at Intel Owl are using ngx-admin for a new web client for our API. https://github.com/intelowlproject/IntelOwl-ng

i see your ng blur-admin template and it is amazing.
All your templates also can be used for cordova hybrid app projects
thank you.

Project: Mixeway
Type: OpenSource
Link: https://github.com/mixeway/mixewayhub

ngx-admin is used as frontend app and we find it really cool, keep a good work!

We’re using ngx-admin on Radity

Radity

Hello. I am using ngx-admin to develop a project for my company. I like it very much, but the responses to users issues and questions are too slow. We need more and faster support!!!

Hello. I am using ngx-admin to develop a project for my company. I like it very much, but the responses to users issues and questions are too slow. We need more and faster support!!!

Hi There, Do you have any issues? please let us know and we will try to halp you asap.

Yes I have two problems posted and still no answer, https://github.com/akveo/nebular/issues/2544 and https://github.com/akveo/ngx-admin/issues/5784. Thanks for any help.

@RoWEN-FCUB
I will have a look. I hope i can be of assistance :)

Still wating for help... https://github.com/akveo/nebular/issues/2544

Hi @RoWEN-FCUB keep in mind this is an open source project... like everything in life you get what you pay for ;) I'm sure the Akveo team is doing their best, but unless you're willing to pay them, you have to be patient

Hi @RoWEN-FCUB keep in mind this is an open source project... like everything in life you get what you pay for ;) I'm sure the Akveo team is doing their best, but unless you're willing to pay them, you have to be patient

Hi @dizco I were only replying the question "what could be done better?". I know this is an open source project, but there are a lots of unanswered issues, may be the team could take one day of the week and have a look to them. I thanks the Akveo team for they hard work.

我是一名来自中国的前端开发人员，在一家在线旅行公司工作，使用ng2-admin作为我们公司的后端内部系统来控制Redis，为其他1000名希望管理Redis的开发人员提供服务，非常感谢您的所有工作小组为我们做了！！！
我也来自中国，可否留个联系方式交流一下？

Global CTO Forum connects world's leading CTOs and technology stakeholders.
We are using ngx-admin at Global CTO Forum

Thanks!

Created this:
#5869
Love the template! Just a wishlist item :)

I do really think that this ngx-admin is awesome. I think Nebular is pretty cool. The design and the documentation. It seems very easy to me to use it.
I am using ngx-admin in a open source personal project which is tailored to demonstrate the use o library  that provides Nebular based components to be used in Formly forms. It is in the first baby steps (nb-formly-ui). The goal is to provide an easy way to bootstrap an admin template that use nb-formly-ui which allows us to quickly create forms based on simple configuration.

https://github.com/alessandrogurgel/izzy-front-2-backends (admin template)
https://github.com/alessandrogurgel/nb-formly-ui

About the name of the package, nb-formly-ui, it may cause some misunderstanding, please, contact me and I will be pleased to change it.

Shopizer open source cheadless uses ngx admin as backend

Hi, this is Jinki from the international open-source consortium for Maritime Connectivity Platform and thanks to your efforts on this magnificent framework. We are using this framework to facilitate the management of core components of our open-source framework.

organization name: Maritime Connectivity Platform (MCP) consortium
logo: https://raw.githubusercontent.com/maritimeconnectivity/ManagementPortal/main/src/assets/images/mcp.svg
project size: 5 host members, 3 governmental observers, 19 regular members (organization basis)
project link: https://github.com/maritimeconnectivity
I've enjoyed the diverse palette filled with UI components of this project.

Wish you a great day! 👍


RFC: Make the tests run in a browser

The changes here are a total hack to just get something working, I'm looking for feedback on whether this is worthwhile and what the best approach might be if so.
Following on from #107, I'm also looking at loki from a browser perspective and want to ensure it's browser support and performance is adequate. I've hacked the existing unit tests to run with Jasmine and Karma, excluding those that don't make sense in a browser context. Barring the Collection.mode test these all pass in:

Chrome 41.0.22772 (OS X)
Firefox 34 (OS X)
Safari 8.0.3 (OS X)
IE 11 (Win8.1)
IE 9 (Win7)
Firefox 35 (Win8.1)

I also hacked the benchmark.js to run in a browser (via benchmark.html) and got the following results in Chrome 41 on a MacBook Air:
load (insert) : 44.21ms (113096.58) ops/s
coll.get() : 816.39ms (2449809.53) ops/s

-- Benchmarking query on NON-INDEXED column --
coll.find() : 672.89ms (29722.54 ops/s) 20000 iterations
resultset chained find() :  632.06ms (31642.57 ops/s) 20000 iterations
loki dynamic view first find : 644.69ms (31022.66 ops/s) 20000 iterations
loki dynamic view subsequent finds : 4.98ms (4016064.26 ops/s) 20000 iterations

-- ADDING BINARY INDEX to query column and repeating benchmarks --
coll.find() : 532.87ms (750652.13 ops/s) 400000 iterations
resultset chained find() :  419.66ms (714864.41 ops/s) 300000 iterations
loki dynamic view first find : 515.01ms (582512.96 ops/s) 300000 iterations
loki dynamic view subsequent finds : 64.02ms (4686035.61 ops/s) 300000 iterations

So, assuming this is worthwhile, any comments at this stage? I was looking at how PouchDB manage their tests and there is a wide range of different test suites for different environments. So clearly running the same tests on browser and node isn't the goal, but getting something working should be (IMO).

Hey Rory,
this looks great however the travis build failed, see this. Could you take a look and let me know? I have been considering moving over to karma so this is great timing.

Fixed now. Like I said, this is a total hack just to prove that it would actually work.

Great, thanks a lot! I'm hoping to get browser badges on the back of this process!

@techfort erm, okay. Did I mention this was a total hack?

yeah you did, but you also kickstarted the browser-compatibility testing process which i was feeling terribly lazy about, now I can just pick up from here. I wrote gordian as a spartan way to test Loki - but now that Loki has grown so much I'm going to have to ditch gordian in favour of more accepted practices (karma, mocha,jasmine, whatever..). I'll start hacking those tests myself (e.g. replace suite.assertEqual with expect()-type statements) and see if stuff still works. That's what I really meant with the above comment.


Ability to terminate a Running Promotion

Proposed Feature
When hitting https://github.com/akuity/kargo/issues/2661, it became apparent that we need the ability to terminate promotions since they might be long-lived, or bugs might cause them to get stuck running.
Motivation
I no longer want a Promotion to run.
Suggested Implementation
Introduce a terminate field in a Promotion, that would be set by API server by a user interaction:
spec:
  terminate: {}

Note that terminate is a struct instead of a boolean, because we might want different termination options, e.g. gracefully close PRs that were opened (SIGTERM), or do nothing like a kill -9 (SIGKILL).

I am unsure if this should be declared in-spec, or be more like the current abort annotation we have for the verification process of a Stage.

If we did go an annotation-based route here, couldn't we apply that annotation directly to the Promotion instead of on the Stage?

If we did go an annotation-based route here, couldn't we apply that annotation directly to the Promotion instead of on the Stage?

Yes, that's actually what I was suggesting.

This is now possible using kubectl, kargo and the API thanks to #2479. The bit that's missing is the integration into the UI.


Make auto db creation optional with DB_CREATE

Added a DB_CREATE option (default true) to allow skipping the call to bundle exec rake db:create. Particularly important for connecting to databases where the user doesn't have permission to create databases.

A way to address #557.

Merged changes in master

I see you went ahead and made the edits as well. Thanks!


add table verification step for getting specific cell data

#305

add Table Verification step for getting specific cell data
edit method in table to fetch column data faster using xpath.
add usage of step in table steps feature to cover new code.

Test failure is a result of inconsistent loading of the NGX Data Table Page. When the window is not maximized, the table on the page sometimes loads without the 3rd column.


Using i18next-fs-backend gives Can't resolve 'fs' error

Hello,
Our app is meant to be used in various contexts. As a stand-alone app, embedded in Microsoft Teams app, via iframes, etc... So we unfortunately need to map the locales we received in the URL from the host apps using some custom fallback logic that is a bit more complex than simply going from, for example, fr-ca to fr.
/* next-i18next.config.js */

const {
  defaultNextLocale,
  getSupportedLegacyLocale,
  supportedNextLocales,
} = require('@monorepo/i18n');

const Backend = require('i18next-fs-backend');

module.exports = {
  i18n: {
    locales: supportedNextLocales,
    defaultLocale: defaultNextLocale,
  },
  lowerCaseLng: true,
  reloadOnPrerender: process.env.NODE_ENV === 'development',
  use: [Backend],
  backend: {
    loadPath: (nextLocale) => {
      const supportedLegacyLocale = String(
        getSupportedLegacyLocale(nextLocale),
      );
      return `/locales/${supportedLegacyLocale}/{{ns}}.json`;
    },
  },
  serializeConfig: false,
};

/* _app.tsx */

import nextI18NextConfig from '../next-i18next.config';

export default appWithTranslation(App as FunctionComponent<AppProps>, nextI18NextConfig);

/* login.tsx */

import { defaultNextLocale } from '@monorepo/i18n';
import { useTranslation } from 'next-i18next';
import { GetStaticPropsContext } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import nextI18NextConfig from '../../next-i18next.config';

export async function getStaticProps({
  locale = defaultNextLocale,
}: GetStaticPropsContext) {
  console.log({ locale });
  return {
    props: {
      ...(await serverSideTranslations(locale, ['common'], nextI18NextConfig)),
    },
  };
}

function LoginPage() {
  const { t, i18n } = useTranslation('common');
  console.log('----- i18n.language', i18n.language);
  console.log('-----', t('common:all_actionContinue'));
... ...

But I get the following error
wait  - compiling...
error - ../../node_modules/i18next-fs-backend/cjs/fs.js:2:0
Module not found: Can't resolve 'fs'

Look's like I also have the problem..

Please provide a full stacktrace, or a reproducible repository.

Please provide a full stacktrace, or a reproducible repository.

Here you are : https://github.com/KGALLET/next-i18n-issue
➜ node -v
v14.16.1
➜ "next": "^11.1.0",
➜ "next-i18next": "^8.6.0",
➜ "react": "^17.0.2",
➜ "react-dom": "^17.0.2"

You are attempting to use getStaticProps on an arbitrary React component, not within the pages directory. This is not how NextJs works. Please take a closer look at the documentation. Good luck!

Hello @isaachinman since I'm the original author of this issue please consider checking ths following stackblitz app where you'll be able to reproduce the error by uncommenting line 1 and line 17 to 26
https://stackblitz.com/edit/nextjs-y6aamt?file=next-i18next.config.js
I'm using getStaticProps on pages/index.js

Ah, I see. So the issue here is that getStaticProps and getServerSideProps have any NodeJs dependencies stripped away when bundled for the client, but _app does not.
Moreover, when serializeConfig is true, you can omit passing your config into appWithTranslation, but when serializeConfig is false, we have no way of passing the config from the page level to _app, so it is a requirement to pass the config into appWithTranslation.
Open to suggestions on how to solve this issue.

OK if I understand this correctly, we have 3 possibilities:

Not use serialize at false in the first place but we'll get the SerializableError: Error serializing '._nextI18Next.userConfig.use[0]' returned from 'getStaticProps' error because of our config file.

Find an alternate way to do the mapping without using i18next-fs-backend if that is possible?

Make sure that fs code doesn't run client side?

@isaachinman Any suggestions for points 1 or 2?
On my side, I've tried the point 3 on this stackblitz fork (using webpack 4): https://stackblitz.com/edit/nextjs-do2zxq?file=next.config.js and now get the Error: You are passing a wrong module! Please check the object you are passing to i18next.use() as you will see.
When running that code locally in my project using webpack 5, the app boots but I see the translation keys instead of the translated texts.

@gablabelle I haven't looked into your mapping setup and therefore cannot advise you on whether or not use of i18next-fs-backend is mandatory in your case.
The third option you presented is probably the easiest. Instead of messing with webpack config, simply conditionally require/import the dependency based on typeof window === 'undefined'.
It would be nice to solve this problem at the next-i18next level, though.

@isaachinman I'm beginning to look at the source code and it seems that you're already using i18next-fs-backend so I guess you must already be doing something in this regard in order to make sure that all the props that serverSideTranslations passes down can be serialized.
So maybe the best solution here would be to support merging with the existing next-i18next's i18next-fs-backend options by exposing for example fsBackend.

Decided to simply use i18next-http-backend instead. Does the fetching at build time so basically does the same thing without having to fs error popin' up.
const {
  defaultLocale,
  defaultLocaleNamespace,
  getSupportedLocale,
  supportedNextLocales,
} = require('@monorepo/i18n');
const httpBackend = require('i18next-http-backend');

module.exports = {
  i18n: {
    locales: supportedLocales,
    defaultLocale,
  },
  ns: [defaultLocaleNamespace],
  defaultNS: defaultLocaleNamespace,
  lowerCaseLng: true,
  reloadOnPrerender: process.env.NODE_ENV === 'development',
  use: [httpBackend],
  backend: {
    loadPath: (
      locales = [defaultLocale],
      namespaces = [defaultLocaleNamespace],
    ) => {
      const [nextLocale] = locales;
      const [namespace] = namespaces;
      // Custom fallback logic
      const locale = getSupportedLocale(nextLocale);
      // This URL is only used during build, localhost:5000 is always OK
      // in that context (inside Docker container or during local dev)
      return `http://localhost:5000/locales/${String(locale)}/${String(
        namespace,
      )}.json`;
    },
  },
  load: 'all',
  // Because our config contains functions, it can't be serialized
  // and has to be passed manually to app and pages.
  serializeConfig: false,
  react: {
    useSuspense: false,
  },
  debug: false,
};

Thanks for your time and help @isaachinman

@gablabelle I haven't looked into your mapping setup and therefore cannot advise you on whether or not use of i18next-fs-backend is mandatory in your case.
The third option you presented is probably the easiest. Instead of messing with webpack config, simply conditionally require/import the dependency based on typeof window === 'undefined'.
It would be nice to solve this problem at the next-i18next level, though.

Make sure not to use a variable for typeof window === 'undefined' when you conditionally require the plugins. You need to make the check inline like so:
---
backend: {
    backends:
      typeof window === 'undefined'
        ? [
            require('i18next-fs-backend/cjs'),
            require('i18next-http-backend/cjs'),
          ]
        : [],
}
---


test_Headbanging_Median_Rate fails with Python 3.6

As reported by Adrian Bunk in Debian Bug #867549:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pysal.html
...
I: pybuild base:184: cd /build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --exclude test_DistanceBand_arc  --exclude-dir=pysal/contrib --exclude-dir pysal/network
Trying `CDLL(libgeos_c.so.1)`
Library path: 'libgeos_c.so.1'
DLL: <CDLL 'libgeos_c.so.1', handle 374a360 at 0x7fc9b3402f98>
Trying `CDLL(libc.so.6)`
Library path: 'libc.so.6'
DLL: <CDLL 'libc.so.6', handle 7fc9c85c14e0 at 0x7fc9bb88bc18>
.........../build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/cg/segmentLocator.py:117: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if self._hashKeys == None:
...............................................................................................................................................................S....../build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/weights/weights.py:189: UserWarning: There are 3 disconnected observations
  warnings.warn("There are %d disconnected observations" % ni)
/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/weights/weights.py:190: UserWarning: Island ids: 6, 8, 11
  warnings.warn("Island ids: %s" % ', '.join(str(island) for island in self.islands))
........./build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/core/IOHandlers/gwt.py:148: RuntimeWarning: DBF relating to GWT was not found, proceeding with unordered string ids.
  warn("DBF relating to GWT was not found, proceeding with unordered string ids.", RuntimeWarning)
......................../build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/weights/weights.py:189: UserWarning: There are 7 disconnected observations
  warnings.warn("There are %d disconnected observations" % ni)
/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/weights/weights.py:190: UserWarning: Island ids: 5, 9, 10, 11, 12, 14, 15
  warnings.warn("Island ids: %s" % ', '.join(str(island) for island in self.islands))
........../build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/core/Tables.py:215: UserWarning: Encountered the following error in attempting to read the shapefile /build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/examples/us_income/usjoin.shp. Proceeding with read, but the error will be reproduced below:
 [Errno 2] No such file or directory: '/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/examples/us_income/usjoin.shp'
  ' {}'.format(self.dataPath[:-3]+'shp', e))
...............................................................................FF..................................../build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/esda/moran.py:876: RuntimeWarning: invalid value encountered in greater
  zp = self.z > 0
/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/esda/moran.py:877: RuntimeWarning: invalid value encountered in greater
  lp = zl > 0
/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/esda/moran.py:826: RuntimeWarning: invalid value encountered in greater_equal
  above = sim >= self.Is
/usr/lib/python3/dist-packages/scipy/stats/_distn_infrastructure.py:875: RuntimeWarning: invalid value encountered in greater
  return (self.a < x) & (x < self.b)
/usr/lib/python3/dist-packages/scipy/stats/_distn_infrastructure.py:875: RuntimeWarning: invalid value encountered in less
  return (self.a < x) & (x < self.b)
/usr/lib/python3/dist-packages/scipy/stats/_distn_infrastructure.py:1731: RuntimeWarning: invalid value encountered in greater_equal
  cond2 = (x >= self.b) & cond0
................................
======================================================================
FAIL: test_Headbanging_Median_Rate (pysal.esda.tests.test_smoothing.TestHB)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/esda/tests/test_smoothing.py", line 301, in test_Headbanging_Median_Rate
    np.testing.assert_array_almost_equal(self.sids_hb_rr5, sids_hb_r.r[:5])
  File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal
    precision=decimal)
  File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 796, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals

(mismatch 80.0%)
 x: array([ 0.000756,  0.      ,  0.000829,  0.001832,  0.004989])
 y: array([ 0.000756,  0.000788,  0.000788,  0.001699,  0.004821])

======================================================================
FAIL: test_Headbanging_Median_Rate_tabular (pysal.esda.tests.test_smoothing.TestHB)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build/pysal/esda/tests/test_smoothing.py", line 315, in test_Headbanging_Median_Rate_tabular
    np.testing.assert_array_almost_equal(self.sids_hb_rr5, sids_hb_r.r[:5])
  File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal
    precision=decimal)
  File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 796, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals

(mismatch 80.0%)
 x: array([ 0.000756,  0.      ,  0.000829,  0.001832,  0.004989])
 y: array([ 0.000756,  0.000788,  0.000788,  0.001699,  0.004821])

----------------------------------------------------------------------
Ran 369 tests in 94.655s

FAILED (SKIP=1, failures=2)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /build/1st/pysal-1.13.0/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --exclude test_DistanceBand_arc  --exclude-dir=pysal/contrib --exclude-dir pysal/network
dh_auto_test: pybuild --test -i python{version} -p 3.6 3.5 returned exit code 13
debian/rules:18: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25

The Debian package already includes the fix for #896.

Platform information:

>>> import os; print(os.name, os.sys.platform);print(os.uname())
('posix', 'linux2')
('Linux', 'osiris', '4.9.0-3-amd64', '#1 SMP Debian 4.9.30-2 (2017-06-12)', 'x86_64')

Python versions

>>> import sys; print(sys.version)
2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118]

>>> import sys; print(sys.version)
3.5.3+ (default, Jun  7 2017, 23:23:48)
[GCC 6.3.0 20170516]

>>> import sys; print(sys.version)
3.6.2rc1 (default, Jun 20 2017, 12:51:36)
[GCC 6.3.0 20170516]

SciPy version:

>>> import scpiy; print(scipy.__version__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scpiy
>>> import scipy; print(scipy.__version__)
0.18.1

NumPy version:

>>> import numpy; print(numpy.__version__)
1.12.1

Closed with #953


chore: Included githubactions in the dependabot config

This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.
Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot
GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen<EMAIL_ADDRESS>

@naveensrinivasan can you fix the commit messages? Please :)

@naveensrinivasan can you fix the commit messages? Please :)

I have taken of it. Thanks

@naveensrinivasan can you fix the commit messages? Please :)

I have taken of it. Thanks

It keeps failing. Remember that you can always run commitlint locally to ensure that your fix worked ;)
npm run commitlint -- \
  --verbose \
  --from `git merge-base origin/master $GITHUB_SHA`

@naveensrinivasan can you fix the commit messages? Please :)

I have taken of it. Thanks

It keeps failing. Remember that you can always run commitlint locally to ensure that your fix worked ;)
npm run commitlint -- \
  --verbose \
  --from `git merge-base origin/master $GITHUB_SHA`

Sorry still having issues. Would you be able to cherry-pick and update it?
Thanks


Drill cannot startup if java path contains whitespace

Describe the bug
My JAVA_PATH set to "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home",
when run ./drillbit.sh start, drill cannot startup and report error:
 /Users/Chester/Gwssi/ApacheDrill/apache-drill-1.19.0-SNAPSHOT/bin/runbit: line 109: /Library/Internet: No such file or directory
/Users/Chester/Gwssi/ApacheDrill/apache-drill-1.19.0-SNAPSHOT/bin/runbit: line 109: exec: /Library/Internet: cannot execute: No such file or directory
To Reproduce
Steps to reproduce the behavior:

set JAVA_PATH to a jdk path which contains whitespace:
export JAVA_PATH=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
startup drill:
./bin/drillbit.sh start
See error in log file:
log/drillbit.out

Expected behavior
Drill cannot startup normally.
Screenshots

Desktop (please complete the following information):

MacOS Big Sur 11.2.3

Additional context
print the command of line 109 in /bin/runbit:
echo exec $BITCMD
See the print result in log/drillbit.out:

The whitespace in java path doesn't come up with a backslash escape, so that exec cannot find the correct java path.
After I set the java path to a jdk without white space, like:
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
Drill startup process back to normal.

Please use Jira to publish bugs and improvement ideas:
http://drill.apache.org/docs/apache-drill-contribution-guidelines/
https://issues.apache.org/jira/projects/DRILL/issues
The recommendation here:

Sometimes using the absolute path like C:\Program Files\Java\jdk1.8.0_131 can cause some ambiguity while installing a tool or running a script where JAVA is needed. So, using double quotes for the path is a wise choice.
Also, you can set the JAVA_HOME path in the following ways if it contains space:
C:\Program~1\Java\jdk1.8.0_131
Progra~1 = 'Program Files'
Progra~2 = 'Program Files(x86)'

https://stackoverflow.com/questions/45660062/shoud-java-home-variable-contain-quotes-if-points-to-path-with-spaces
But anyway you can create a ticket and mark it is as minor

@vdiravka There was a discussion about allowing users to post issues here and using JIRA to track actual work in progress.
It seems we should add this to the documentation however as I think people have run into this issue before.

I think we can talk about solution for any idea here before we create the JIRA.

@kingswanwho Did you ever find a solution for this?


session_jd value within the container

I would like to provision SSL cert (Let's encrypt) in my bootstrap script. For that I need some variables: http://<hyphen-ip>-<session_jd>-.direct.labs.play-with-docker.com. How to get these variables within the running container?
Thanks.

session_id can be obtained from the env variables in the container. Regarding the hyphen IP you have to do some bashery with IP addr show and parameter expansion

Thank you @marcosnils. That was my first idea, but I was not able to find any related env variable:
# 1st container
[node1] (local<EMAIL_ADDRESS>~
$ printenv
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=<IP_ADDRESS> 47525 22
SSH_TTY=/dev/pts/2
USER=root
PAGER=less
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/go/bin
PWD=/root
PS1=\e[1m\e[31m[\h] \e[32m($(docker-prompt)) \e[34m\u@$(hostname -i)\e[35m \w\e[0m\n$
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=<IP_ADDRESS> 47525 <IP_ADDRESS> 22
CHARSET=UTF-8
_=/bin/printenv

# 2nd nested container
[node1] (local<EMAIL_ADDRESS>~
$ docker run --rm -ti ubuntu bash -c printenv
HOSTNAME=0d8544823ca9
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
SHLVL=1
HOME=/root
_=/usr/bin/printenv

Do you have any example or variable name for session_id? Your are right, if I have values, then I can pass them to the 2nd nested containver via env variables. IP part is simple, only that session_id is my blocker.

Where are you trying this?. If you do it in play-with-docker.com you'll see
that the session_id is there
sent from mobile
On Dec 25, 2017 04:49, "Jan Garaj"<EMAIL_ADDRESS>wrote:

Thank you @marcosnils https://github.com/marcosnils. That was my first
idea, but I was not able to find any related env variable:
1st container
[node1] (local<EMAIL_ADDRESS>~
$ printenv
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=<IP_ADDRESS> 47525 22
SSH_TTY=/dev/pts/2
USER=root
PAGER=less
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/go/bin
PWD=/root
PS1=\e[1m\e[31m[\h] \e[32m($(docker-prompt)) \e[34m\u@$(hostname -i)\e[35m \w\e[0m\n$
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=<IP_ADDRESS> 47525 <IP_ADDRESS> 22
CHARSET=UTF-8
_=/bin/printenv
2nd nested container
[node1] (local<EMAIL_ADDRESS>~
$ docker run --rm -ti ubuntu bash -c printenv
HOSTNAME=0d8544823ca9
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
SHLVL=1
HOME=/root
_=/usr/bin/printenv
Do you have any example or variable name for session_id? Your are right,
if I have values, then I can pass them to the 2nd nested containver via env
variables. IP part is simple, only that session_id is my blocker.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/play-with-docker/play-with-docker/issues/233#issuecomment-353844166,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABgV2hA_raB-rgmAw9RTNOREwZEzvi80ks5tD1OngaJpZM4RMCIQ
.

You are right. I can see it in the web session:

But I can't see it in my SSH session. Let me play. Thx.


Quickstart: Use hadoopyString for batch indexing instead of string.

The hadoop indexing docs suggest using hadoopyString instead of string parser, so we should follow that recommendation in the example. I tested the quickstart with this change and it still works.

👍


We need a way to cancel an ongoing alarm

I've already implemented the solution and creating this ticket for better tracking.

Fixed by #523


⚠ Processors has degraded performance

In f065e69, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: Processors performance has improved in 636c515.


Fix CI warnings for PokoSample:compose

Update PokoSample:compose AGP-related syntax
Fix mismatch in PokoSample:compose javac/kotlinc targets due to AGP bug

Warning for PokoSample with JDK 19:
Error processing /home/runner/work/Poko/Poko/sample/compose/build/tmp/kotlin-classes/debug/dev/drewhamilton/poko/sample/compose/LiveLiterals$SampleKt.class:/home/runner/work/Poko/Poko/sample/compose/build/tmp/kotlin-classes/debug/dev/drewhamilton/poko/sample/compose/LiveLiterals$SampleKt.class: broken class file? (Unsupported class file major version 63)

Error processing /home/runner/work/Poko/Poko/sample/compose/build/tmp/kotlin-classes/debug/dev/drewhamilton/poko/sample/compose/Poko.class:/home/runner/work/Poko/Poko/sample/compose/build/tmp/kotlin-classes/debug/dev/drewhamilton/poko/sample/compose/Poko.class: broken class file? (Unsupported class file major version 63)
Error processing /home/runner/work/Poko/Poko/sample/compose/build/tmp/kotlin-classes/debug/dev/drewhamilton/poko/sample/compose/Sample.class:/home/runner/work/Poko/Poko/sample/compose/build/tmp/kotlin-classes/debug/dev/drewhamilton/poko/sample/compose/Sample.class: broken class file? (Unsupported class file major version 63)

Not sure if it's from :compose or :jvm


10 minutes to recover from ResourceExhaustedError

While it is possible to create a model which is too large for GPU memory, catch the resulting ResourceExhaustedError exception, clear the session, and then change the configuration so it fits in memory (such as reducing batch size). However, the time from the initial allocation attempt to catching the exception can take as long as 10 minutes, when I would expect these steps should complete in milliseconds.
This problem has remained unchanged since tf 1.0, I'm currently on tf 1.8, linux ubuntu 16.04 with an nvidia geforce titan x.

Here is some example text:
locator.cc:674] 1 Chunks of size 77056 totalling 75.2KiB
2018-07-23 06:49:50.606984: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 4 Chunks of size 92928 totalling 363.0KiB
2018-07-23 06:49:50.606999: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 150 Chunks of size 123904 totalling 17.72MiB
2018-07-23 06:49:50.607014: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 126208 totalling 123.2KiB
2018-07-23 06:49:50.607029: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 141568 totalling 138.2KiB
2018-07-23 06:49:50.607043: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 147200 totalling 143.8KiB
2018-07-23 06:49:50.607058: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 153856 totalling 150.2KiB
2018-07-23 06:49:50.607072: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 17 Chunks of size 185856 totalling 3.01MiB
2018-07-23 06:49:50.607086: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 80 Chunks of size 204800 totalling 15.62MiB
2018-07-23 06:49:50.607101: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 218624 totalling 213.5KiB
2018-07-23 06:49:50.607116: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 220928 totalling 215.8KiB
2018-07-23 06:49:50.607130: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 226560 totalling 221.2KiB
2018-07-23 06:49:50.607145: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 228608 totalling 223.2KiB
2018-07-23 06:49:50.607159: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 234496 totalling 229.0KiB
2018-07-23 06:49:50.607173: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 5 Chunks of size 371712 totalling 1.77MiB
2018-07-23 06:49:50.607187: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 391680 totalling 382.5KiB
2018-07-23 06:49:50.607201: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 4 Chunks of size 393216 totalling 1.50MiB
2018-07-23 06:49:50.607215: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 5 Chunks of size 495616 totalling 2.36MiB
2018-07-23 06:49:50.607229: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 496640 totalling 485.0KiB
2018-07-23 06:49:50.607244: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 548608 totalling 535.8KiB
2018-07-23 06:49:50.607258: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 588288 totalling 574.5KiB
2018-07-23 06:49:50.607272: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 12 Chunks of size 743424 totalling 8.51MiB
2018-07-23 06:49:50.607287: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 902656 totalling 881.5KiB
2018-07-23 06:49:50.607300: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 1145856 totalling 1.09MiB
2018-07-23 06:49:50.607314: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 1316352 totalling 1.25MiB
2018-07-23 06:49:50.607328: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 1356032 totalling 1.29MiB
2018-07-23 06:49:50.607342: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 1363200 totalling 1.30MiB
2018-07-23 06:49:50.607356: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 2 Chunks of size 2408448 totalling 4.59MiB
2018-07-23 06:49:50.607370: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 196 Chunks of size 16777216 totalling 3.06GiB
2018-07-23 06:49:50.607385: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 22258688 totalling 21.23MiB
2018-07-23 06:49:50.607399: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 23981824 totalling 22.87MiB
2018-07-23 06:49:50.607414: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 26355712 totalling 25.13MiB
2018-07-23 06:49:50.607428: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 27333120 totalling 26.07MiB
2018-07-23 06:49:50.607443: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 27410688 totalling 26.14MiB
2018-07-23 06:49:50.607457: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 27544064 totalling 26.27MiB
2018-07-23 06:49:50.607472: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 27765248 totalling 26.48MiB
2018-07-23 06:49:50.607486: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 28181504 totalling 26.88MiB
2018-07-23 06:49:50.607500: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 31 Chunks of size 100663296 totalling 2.91GiB
2018-07-23 06:49:50.607515: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 139524608 totalling 133.06MiB
2018-07-23 06:49:50.607530: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 140986624 totalling 134.46MiB
2018-07-23 06:49:50.607544: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 3 Chunks of size 159326208 totalling 455.84MiB
2018-07-23 06:49:50.607559: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 191849728 totalling 182.96MiB
2018-07-23 06:49:50.607573: I tensorflow/core/common_runtime/bfc_allocator.cc:674] 1 Chunks of size 243212288 totalling 231.95MiB
2018-07-23 06:49:50.607587: I tensorflow/core/common_runtime/bfc_allocator.cc:678] Sum Total of in-use chunks: 7.37GiB
2018-07-23 06:49:50.607605: I tensorflow/core/common_runtime/bfc_allocator.cc:680] Stats:
Limit:<PHONE_NUMBER>
InUse:<PHONE_NUMBER>
MaxInUse:<PHONE_NUMBER>
NumAllocs:               244596701
MaxAllocSize:<PHONE_NUMBER>

2018-07-23 06:49:50.609682: W tensorflow/core/common_runtime/bfc_allocator.cc:279] ***************************************************************************************************x
2018-07-23 06:49:50.609731: W tensorflow/core/framework/op_kernel.cc:1318] OP_REQUIRES failed at cwise_ops_common.cc:70 : Resource exhausted: OOM when allocating tensor with shape[88] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc

It will basically print this sort of thing over and over for 10 minutes before the ResourceExhaustedError is caught & I can reset Tensorflow and resume. Since I'm trying out a variety of models, some don't work because they don't fit on the GPU. That's fine, so I just catch the error and try a different model. Ideally the recovery from this could be much faster, and there would be some way to minimize the printed logs and resume immediately.

This logging should only occur if ConfigProto.report_tensor_allocations_upon_oom is true.  Do you not want the logging?  I agree that the logging should not take long to print, and it doesn't for me.  I wonder whether your program may be running into swapping problems or something similar.

Ah well disabling that printout may help me immensely! I've never seen the logging print quickly, as far as I have seen, catching the error takes an extreme quantity of time.
This can sometimes happen right at my program's startup when I have good amounts of system memory free, perhaps using 8GB / 48GB. For example, if I tried to extend a NASNetLarge model with 8 consecutive Conv layers with a 3x3 filter size at the bottom, each with 4096 filters, and a batch size of 32 GPU memory will be completely exhausted and this error will occur.
Since I'm doing a random search of those parameters (# layers, # filters, etc), it isn't easy to completely avoid this issue unless there is a way to predict future memory usage.

Nagging Assignee @poxvoculi: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@poxvoculi I tried the following:
    # prevent errors from being printed for hours when memory runs out
    # https://github.com/tensorflow/tensorflow/issues/20998
    config = tf.ConfigProto()
    config.gpu_options.allow_growth = True
    config.report_tensor_allocations_upon_oom = False
    # config.inter_op_parallelism_threads = 40
    tf_session = tf.Session(config=config)
    K.set_session(tf_session)

And got this error:
Using TensorFlow backend.
Traceback (most recent call last):
  File "cornell_hyperopt.py", line 149, in <module>
    tf.app.run(main=main)
  File "/home/ahundt/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 126, in run
    _sys.exit(main(argv))
  File "cornell_hyperopt.py", line 68, in main
    config.report_tensor_allocations_upon_oom = False
AttributeError: Assignment not allowed (no field "report_tensor_allocations_upon_oom" in protocol message object).

Possibly relevant issue: https://github.com/tensorflow/tensorflow/issues/17076

Possibly relevant stack overflow: https://stackoverflow.com/questions/35911252/disable-tensorflow-debugging-information

Nagging Assignee @poxvoculi: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

I'm going to call this 'contributions welcome'.  I agree that debug printing should not run for a long time, but since I don't believe this ever occurs on our internal platforms it's hard to reproduce and come up with a solution.

just make a model with a 3d input with 1billion entries on each side, and a single conv, and it will probably happen. Anything several orders of magnitude beyond the actual memory in the GPU. Oh, also might need to be using nvcc.

Up above it looks like you're setting the RunOptions incorrectly.   report_tensor_allocations_upon_oom is a member of RunOptions, not Options, so it needs to be passed to session.run, not the Session constructor.  Example:
  config = tf.ConfigProto()     config.gpu_options.allow_growth = True     tf_session = tf.Session(config=config)     tf_session.run(c, options=config_pb2.RunOptions(             report_tensor_allocations_upon_oom=False))
However, this value is supposed to default False, so something else in your program must be setting it True.
Is it possible that you're setting GpuOptions.experimental.use_unified_memory to true, and running into some kind of swapping?

Nagging Assignee @poxvoculi: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @poxvoculi: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @poxvoculi: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @poxvoculi: It has been 62 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Hi @ahundt!
It seems you are using older versions(1.x versions) of Tensorflow. Have you check out this feature on limiting GPU growth from TF 2.7 yet? Thanks!


deptry should never mark the project as transitive dependency

Is your feature request related to a problem? Please describe.
When running deptry on my source code, I always get the module itself marked as a transitive dependency.
For a minimal, reproducible example, see this repo. Here is a summary.
My code resides in src/deptry_test. The folder structure is this:
.
├── src
│  └── deptry_test
│     ├── __init__.py
│     └── mod.py

In mod.py I define a random variable containing gibberish. This var is imported in the __init__.py.
When I run pdm run deptry src ., I get an error message because deptry_test is a transitive dependency (see log).

Detailed Log
Scanning 2 files...
There was 1 dependency issue found.

-----------------------------------------------------

There are dependencies missing from the project's list of dependencies:

	deptry_test

Consider adding them to your project's dependencies.

-----------------------------------------------------

Dependencies and directories can be ignored by passing additional command-line arguments. See `deptry --help` for more details.
Alternatively, deptry can be configured through `pyproject.toml`. An example:

    ```
    [tool.deptry]
    ignore_obsolete = [
        "foo"
    ]
    ignore_missing = [
        "bar"
    ]
    ignore_transitive = [
        "baz"
    ]
    extend_exclude = [
        ".*/foo/",
        "bar/baz.py"
    ]
    ```

For more information, see the documentation: https://fpgmaas.github.io/deptry/
If you have encountered a bug, have a feature request or if you have any other feedback, please file a bug report at https://github.com/fpgmaas/deptry/issues/new/choose

As a side note, IIUC this should not even be marked as transitive dependency, am I right?
Describe the solution you would like
deptry should automatically add as known-first-party the package/project itself using pyproject.toml's project.name key.
Of course, would love to work on a PR for this if you feel this should be addressed!

Hi, thanks for the detailed report and reproduction repository, appreciate it.
To determine if a module is local or not, deptry checks the root directory passed as a parameter (additionally to known-first-party):
https://github.com/fpgmaas/deptry/blob/41685dcdcb7f412c794d9a9958f9aa399ec52c2b/deptry/core.py#L117-L123
In your reproduction repository, running pdm run deptry src instead of pdm run deptry src/deptry_test does work as you would expect:
$ pdm run deptry src
Scanning 2 files...
Success! No dependency issues found.

I do believe that the behaviour might feel a bit weird though, as there would be situations where we want to only check a specific directory while keeping the same "root" directory for deptry to check if a module is local or not.
Having the ability to explicitly set the source paths as highlighted in https://github.com/fpgmaas/deptry/issues/177 would probably solve that.

Hi, thanks for the reply!
Indeed, I ran pdm run deptry src and no error is raised. I am afraid I do not understand why the error is raised when I pass src/deptry_test. Perhaps we should append self.root to directories if self.root contains an __init__.py as well?
I have not experimented with pre-commit enough, but if I run pre-commit run --all-files the same error is raised (added a simple .pre-commit-config.yaml to the repo, too). I can't tell whether the same error will be raised during regular pre-commit execution.

Having the ability to explicitly set the source paths as highlighted in #177 would probably solve that.

I guess that makes sense. I feel that we might still default to pyproject.toml:project.name as the default, after normalising the package name according to the appropriate PEP (i.e. from deptry-test to deptry_test).
Available to help if needed!

@baggiponte thanks for raising the issue and the example repository.

I am afraid I do not understand why the error is raised when I pass src/deptry_test.

The reason the error is raised when you run pdm run deptry src/deptry_test, is that deptry_test is not being recognized as a local module by the snippet of code @mkniewallner mentioned earlier. Because deptry is essentially running within the src/deptry_test directory. When running pdm run deptry src, the module is recognized as a local directory, because it scanned the directories within src to find them.

Perhaps we should append self.root to directories if self.root contains an init.py as well?

This would be a good idea, however, we are currently trying to move away from expecting directories to have an __init__.py, see this PR.

I guess that makes sense. I feel that we might still default to pyproject.toml:project.name as the default.

This might be a nice addition, however there are also plenty of cases where this does not hold; See for example scikit-learn, where the code is in the sklearn directory. Hence, this approach does not seem optimal.
I think in your example repository (and any other repositories with the src layout), the simple solution is to run pdm run deptry src. At the moment I cannot think of a solution that is (a) easy and intuitive to use and (b) flexible enough to support these use cases. If you have any ideas, happy to hear them!

Oh, and maybe to clarify; the reason it is marked as a transitive dependency is as follows: A transitive dependency is identified by (1) a package being available in the local environment, (2) said package being imported in the code and (3) there is an import from this package in the source code of your repository but (4) the package is not listed as a dependency. This for example flags the use of numpy in your code, while only pandas is listed as a dependency. The assumption here is that a package can only end up in your environment his way. This is not entirely true.
In this case, since PDM installs the package locally in the environment in editable mode, (1), (2), (3) and (4) are all true. So it is (incorrectly) flagged as a transitive dependency.

I have a similar issue. When I run deptry in a uv project. It always lists the project itself as a transitive dependency. Even when I run it with uv run. Is this desired? I'm pretty new to this stuff, so I can't really tell.


Request Support for BLS12 based signature verification

Hi Team!
Since many protocols are putting BLS12 to use for digital signatures.
I want to verify BLS 12 based signature from the Flow smart contract.
Hoping for some positive inputs/response on this.

@sudesh-supraoracles
I believe Cadence already supports BLS12.
https://docs.onflow.org/cadence/language/crypto/#signature-verification

Sorry for missing this for a long time. BLS signature verification on BSL12-381 is indeed supported by Cadence.
Closing this issue and feel free to open other issues related to a specific BLS usage.


Pending block's hash is null but not optional

I want to get pending block by 'eth_getBlockByNumber', parameters is 'pending' and true. The response decode will come error on 'hash'.
Should change 'hash' type Data toData? ?

Please try new version of our app, is it fixed yet?

Closed so far.


How to remove or disable Nvidia driver in WSL2

I am using an Ubuntu 18.04 LTS distribution with WSL2.
The distribution comes with Nvidia drivers as a pre-installed virtual packages.
However the program I was trying to run can only use CPU graphics, and an Nvidia driver will cause it to crash because Ubuntu will try to use graphic cards if Nvidia driver exists.
If I try to uninstall the Nvidia driver, the terminal shows the messages like ''Virtual packages like 'nvidia-smi' can't be removed''.
Is there any way to remove or disable Nvidia drives in a WSL2 distribution ?
Or the only way I can do is physically remove the graphic card and re-install the distribution ?

CPU's have no graphical output unless the chip has an on board iGPU.
Chipsets however, are a thing, and they do come with drivers.

The command to use to uninstall the driver is:
First, run this: sudo lspci
Then this: sudo apt-get -purge nvidia
If this does not work, standby, I'll get you the correct command.

Command number 2 should be: sudo apt-get remove --purge nvidia

This should completely remove the Nvidia driver from the Ubuntu distro.
Yet, I still am unsure if Microsoft allowed the removal of packages within a distro installed from the store.


added datahub_api_key to managed instances

added  DATAHUB_API_KEY to backend
added SECRET_SLACK_NOTIFY_WEBHOOK_URL to backend

Thanks for doing this! It LGTM.

Thanks for doing this! It LGTM.


eq3btsmart - not working after 0.56 update

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.56
Python release (python3 --version):
Python 3.5.2
Component/platform:
climate.eq3btsmart
Description of problem:
eq3btsmart - not working after 0.56 update
Expected:
Thermostats not available
Traceback (if applicable):
Traceback (most recent call last):
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 222, in async_update_ha_state
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/climate/eq3btsmart.py", line 169, in update
    self._thermostat.update()
  File "/srv/hass/lib/python3.5/site-packages/eq3bt/eq3btsmart.py", line 163, in update
    self._conn.make_request(PROP_WRITE_HANDLE, value)
  File "/srv/hass/lib/python3.5/site-packages/eq3bt/connection.py", line 71, in make_request
    with self:
  File "/srv/hass/lib/python3.5/site-packages/eq3bt/connection.py", line 36, in __enter__
    self._conn.connect(self._mac)
  File "/srv/hass/lib/python3.5/site-packages/bluepy/btle.py", line 408, in connect
    self._connect(addr, addrType, iface)
  File "/srv/hass/lib/python3.5/site-packages/bluepy/btle.py", line 388, in _connect
    self._startHelper()
  File "/srv/hass/lib/python3.5/site-packages/bluepy/btle.py", line 246, in _startHelper
    universal_newlines=True)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

Additional info:
0.55 worked with no problem with the same setup
Downgrading to 0.55 does not helping...

Look like a problem in local bluepy module

How can I fix it? Reinstall bluepy?

Solved! Uninstall bluepy and reinstal with pip3 --no-cache-dir install bluepy
Thanks for hint mate :) 👍

Bluepy problems - reinstall with pip3 --no-cache-dir install bluepy solved it


Where should improved prefixmaps to curies.Converter code live?

Right now, there's a pretty substantial loss of content in the examples like
from prefixmaps.io.parser import load_context, load_multi_context
from curies import Converter

ctxt = load_multi_context(["obo", "bioregistry.upper", "linked_data", "prefixcc"])
converter = Converter.from_prefix_map(ctxt.as_dict())

as all prefix and namespace synonyms are thrown away. I've implemented a more fully-featured function for converting a prefixcommons.Context object into a curies.Converter in https://github.com/cthoyt/curies/pull/22. The question is: should this code live in prefixmaps or curies?
from prefixmaps import load_context
from curies import Converter

# Option 1, if code lives in `curies`
context = load_context("obo")
converter = Converter.from_linkml_context(context)

# Option 2, if code lives in `prefixmaps`
context = load_context("obo")
converter = context.as_converter()

You definitely shouldn't do 1 (use internal ETL methods), 2 is better as it uses methods that are exposed and we can provide guarantees of stability.

as all prefix and namespace synonyms are thrown away.

not seeing the problem here...? I think we may still need to mind meld a bit on the purpose of this library

The synonyms are useful for the purpose of prefix normalization, especially in cases where the source is no longer updated so we don't have anyone to ask to correct their IDs

Closed by #25


Argparse Refactor

This refactors main.py so that it's easier to automate evaluation.
First, before this PR, validation of command line arguments is heavily entangled with the API for evaluation. This separates all CLI considerations into a separate function. (It does not restructure the API, which should happen later.)
Second, this includes an example script using submitit to run evaluation on the cluster, without using any shell scripts or argparse. This is still quite verbose, so it's not much better than shell scripts, but by creating good sets of defaults it should be possible to make it significantly easier to use than shell scripts. In particular, running many jobs with different models should already be easier thanks to better flow control in Python than shell.

This got put to the side for a while due to the release, but it should be ready to go now. To summarize the changes:

argparse processing has been separated from the main API, so that...
the Python API can be used to run eval directly
example scripts using submitit have been added
a docs section has been added to the README describing how to use the submitit part

The immediate effect of this is that it should be possible to port cluster shell scripts to Python if we want to, and to avoid writing shell scripts in the future.
The next step is to simplify the call interface in general, which will need a different entry point making use of the API this PR exposes.


Zora network

Add Zora network to the app
Requires integration of Zora NFT API  https://docs.zora.co/docs/guides/api-address-balance

duplicate #353


Bug in constraints

The constraints are not checked correctly in the server and/or locally. For instance, the positions of the turbines can be negative and/or lager than the width or height of the scenario and the solution is still valid. For instance, in my exection with ID 1507, a set of 2000 turbines were placed with the following code:
vector < pair < double, double > > test;
for (int i = -1000; i < 1000; i++){
test.push_back(make_pair(100000 + i * 300000, 100000 + i * 200000));
}
This gives a very low fitness and with this solution I am placed in the first position. However, the solution is not valid. It seems that in other solutions of other participants this situation is arising.
Regards,
Carlos Segura

This was resolved by 5d254ca. The leaderboard has been updated to include this commit.


Add wip as context to commit-msg hook

I'd like to see wip (work in progress) added to the list of possible contexts.
wip(TICKET-ID): An elaborate commit message // or
wip: An elaborate message

regards
~david

Is this really a good idea ? Sounds like a implicated requirement for a hook that check ls commit messages for wip ?


ActiveRecord dependency?

I use Mongoid and do not have AR loaded
       format.json { render_for_api :v1_public, :json => [@user] }

works fine
however,
       format.json { render_for_api :v1_public, :json => @user }

(without @user in an array) gives an error
uninitialized constant ActiveRecord::Relation

as a workaround, I can do this for now
       format.json { render :json => @user.as_api_response(:v1_public).to_json }

Which version of acts_as_api are you using?
Can you try to update your bundle and tell me if it still works?

Im using
acts_as_api (0.3.11)
and have tried updating the bundle to no avail


Added my short profile

@gagan-gv
read README.md file, i can't see your folder.

@mitalrs the changes have been made, do check. Thank you!

@gagan-gv
can you sync fork on your branch??
because i am still not able to see your folder

@gagan-gv
your not adde README.md file


Add Treeset in Java

Add treeset example in Java and remember to comment with proper explanation.

TreeSet Example Done

Added Pull Request for the example with comments.


fix(webhook-service): invalid conversion of eventType

Signed-off-by: odubajDT<EMAIL_ADDRESS>

This PR

fixes invalid conversion of *.started eventType to *.finished eventType

Related Issues

Fixes #5953
Notes

detailed description in issue https://github.com/keptn/keptn/issues/5953

@warber made additional small changes to generalize the function a little bit more, can you please re-launch the tests? Thanks.


New Chapter site - CC Malaysia

CC Malaysia is close to formalizing their chapter and they are ready for their wordpress site. @hugosolar could you please set that up?

this is the wrong repo - disregard!


Allow extra mappings to be configured

I prefer to use the <Leader> key, rather than g, which is easy enough for the basic configs.
require('Comment').setup {
    toggler = {
        line = '<Leader>cc',
        block = '<Leader>bv',
    },
    opleader = {
        line = '<Leader>c',
        block = '<Leader>b',
    },
}

I would like to type <Leader>co instead of gco but it seems they are hard-coded with no way to change them with setup{} https://github.com/numToStr/Comment.nvim/blob/master/lua/Comment/api.lua#L240

@nwithers-ecr Thanks for pointing this out. I am also aware of this and I am also thinking of a way to elegantly configure all the mappings. Currently, I am thinking of doing this https://github.com/numToStr/Comment.nvim/pull/45#issuecomment-945148430 and later find a better way. If you have any suggestions I would love to hear them :)

That sounds good. The only feedback I have is perhaps using above and below rather than up and down

The only feedback I have is perhaps using above and below rather than up and down

That sounds reasonable. Thanks 👍.

I managed to have my custom mappings, I had a similar use case, I opened and closed this issue https://github.com/numToStr/Comment.nvim/issues/87 as I basically found out a way to achieve it

There's probably a cleaner way but, I just edited the plugin source and replaced g with


Fix/sphere tool optimization

Summary
This fix optimizes the sphere tool for creating segmentations, reducing the time it takes for the texture to update.

"fillSphere.ts" now passes an array of modified slices to be rendered rather than rendering every slice in the volume
"pointInSphere.ts" is now able to be optimized by the browser

Apologizes, it looks like I forgot to push my latest changes before submitting the PR.


Move Coveralls job from Travis to GitHub Actions

This PR finishes our move from Travis to other CI providers. Originally I intended to move everything to Cirrus CI, but I had a hard time generating an appropriate Coveralls JSON using grcov: Coveralls complained that it can't find the build associated with my submission. So I went with GitHub Actions instead, because Coveralls provides a ready-made actiond (kudos to @ttldtor for mentioning it to me).
Reviews are welcome! I'll merge this in three days.

Coverage increased (+0.2%) to 57.777% when pulling<PHONE_NUMBER>e6451f853e2b826f88958afa07f972 on feature/coveralls-on-github-actions into<PHONE_NUMBER>69e9d82664ac1aa7a2537102cb53b8 on master.


ADD A VALIDATION FOR DATE WITH_TIME

What would you like to share or ask?
I need to validate a date with_time input created with mardown so that it shows me the minutes by 15, is it possible?
Code of Conduct

[X] I have checked the existing issues.
[ ] I am willing to work on this issue (optional)

So, do you want 2 PM 00, 2 PM 15, 2 PM 30, ...? This is not possible right now.
This issue can bring this new feature to Taipy; we don't know yet if it will be present. Let's discuss it

Would you say that this is related to https://github.com/Avaiga/taipy/issues/848?

It's similar but with time

Another question is, is there something similar to action_keys but for date

@jrobinAV Can I solve this ? As a Hacktoberfest participant ?

@SandeepaDilshanAlagiyawanna Sure!
Thank you for your contribution.

please assign to me

You can also work on it @Aryam2121

I have fixed this in: 0d845e4c5a16fbcfa08a13039b27a9e4b5117426
check this out @jrobinAV @FlorianJacta

I comment to join the queue after Aryam & Sandeepa =)
Feel free to assign me @jrobinAV  if there's no active assignee for this issue

i am active and i completed all work

@FlorianJacta @jrobinAV :eyes:
I'm willing to save this issue from being wasted :laughing:

@quest-bot embark

@jrobinAV can I you assign this task to me as I am a Hacktoberfest participant

@quest-bot embark

HTML Code
<input type="datetime-local" id="dateInput" />

JavaScript Code
const dateInput = document.getElementById('dateInput');

dateInput.addEventListener('input', () => {
  const dateTime = new Date(dateInput.value);
  const minutes = dateTime.getMinutes();
  const roundedMinutes = Math.round(minutes / 15) * 15;

  dateInput.value = dateTime.toISOString().slice(0, 16).replace(/:\d+$/, `:${roundedMinutes.toString().padStart(2, '0')}`);
});

Markdown Code
### Date Input
<input type="datetime-local" id="dateInput" />

<script>
  const dateInput = document.getElementById('dateInput');

  dateInput.addEventListener('input', () => {
    const dateTime = new Date(dateInput.value);
    const minutes = dateTime.getMinutes();
    const roundedMinutes = Math.round(minutes / 15) * 15;

    dateInput.value = dateTime.toISOString().slice(0, 16).replace(/:\d+$/, `:${roundedMinutes.toString().padStart(2, '0')}`);
  });
</script>

You can check this one...

@quest-bot embark


Plugins PoC - Kotlin

Description
To better understand how plugins work, their lifecylce, how they interact with core functionalities and how to develop them in general, we are going to develop a simple plugin for wazuh-indexer that exposes an API to manage ToDos, as a proof of concept. We'll use Kotlin as the programming language.
As a definition of done, we expect to have an API from which it's possible to:

Create ToDos
Read ToDos
Update ToDos
Delete ToDos

ToDo model
The ToDos will be stored using an index, for example: wazuh-todos. Each of the documents in the index could have these properties:

id: uuid
title: string
description: text
due_date: date

The index name and its fields must follow the naming convention.

https://opensearch.org/docs/latest/im-plugin/#naming-restrictions-for-indexes
https://www.elastic.co/guide/en/ecs/current/ecs-guidelines.html#_guidelines_for_field_names

Tasks

[x] Create a plugin using the existing template.
[x] Rename and set up the plugin accordingly.
[ ] Create tests.
[ ] Create routes.
[ ] Create route handles: request, action, response.
[ ] Create ToDo model.
[ ] Create Index manager.

Licenses
Gradle task :licenseHeaders requires every source code file to have a header, such as this one:
/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 */

Plugin development roadmap
Create routes

Create the resthandler package.
Create the PluginNameRestHandler class. Inherits from BaseRestHandler.
Override getName(), prepareRequest() and routes() methods.

I'm currently trying to index data with the following method:
    public static void populateData(Client client) {
        client.index(
            new IndexRequest(HELLO_WORLD_INDEX_NAME).id("test_id")
                .setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
                .source("{ \"field\": value }", XContentType.JSON)
        ).actionGet();
    }

But this seems to be blocking the whole of opensearch's engine:
Caused by: java.lang.AssertionError: Expected current thread [Thread[#63,opensearch[integTest-0][transport_worker][T#3],5,main]] to not be a transport thread. Reason: [Blocking operation]

It seems there is an action class that already handles indexing data from a REST API call:

https://github.com/opensearch-project/OpenSearch/blob/84ad3a7d2dc4410954b30d1c22d908047cfdd73b/server/src/main/java/org/opensearch/rest/action/document/RestIndexAction.java#L139

Having this issue on client.index(indexRequest)
java.lang.AssertionError: Returned a 201 CREATED but not set up to support a Location header

I finally managed to get the POST endpoint working without errors. The endpoint receives the Task data in JSON format and stores it in the task index.
curl -XPOST http://localhost:9200/_plugins/tasks -H "Content-Type:application/json" -d '{"document_id":112, "title": "A task", "description": "A simple task", "is_completed": false}'

[2024-06-11T19:50:39,584][INFO ][o.o.p.PluginsService     ] [integTest-0] PluginService:onIndexModule index:[tasks/rgf-_e9ARNCtoBSKg3gKFg]
[2024-06-11T19:50:39,601][INFO ][o.o.c.m.MetadataMappingService] [integTest-0] [tasks/rgf-_e9ARNCtoBSKg3gKFg] update_mapping [_doc]
[2024-06-11T19:50:39,605][DEBUG][o.o.c.c.PublicationTransportHandler] [integTest-0] received diff cluster state version [6] with uuid [7V7jT36DTN6nKAi5DF7zfA], diff size [485]
[2024-06-11T19:50:39,626][DEBUG][o.o.c.c.C.CoordinatorPublication] [integTest-0] publication ended successfully: Publication{term=1, version=6}
[2024-06-11T19:50:39,632][INFO ][o.o.t.i.TasksIndex       ] [integTest-0] Successfully persisted task status

As a result, http://localhost:9200/tasks/_search returns:
{
  "took": 211,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 2,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "tasks",
        "_id": "qLloCJABfI4fIpO-1tC7",
        "_score": 1,
        "_source": {
          "document_id": null,
          "title": "",
          "description": "",
          "is_completed": false
        }
      },
      {
        "_index": "tasks",
        "_id": "qblsCJABfI4fIpO-Y9DY",
        "_score": 1,
        "_source": {
          "document_id": 112,
          "title": "",
          "description": "",
          "is_completed": false
        }
      }
    ]
  }
}


SLIDERS!

Sliders have a few issues with them under the current UI system, mostly:

[ ] It is not clear that you can directly edit values, e.g. by using ctrl + click
[ ] There is no way to set values back to their defaults

I'd like to add being able to manually type in values for slider options as a feature.


add cell level analysis

I have not yet added the analysis to the pipeline since I did not immediately see where to do that.

I have not yet added the analysis to the pipeline since I did not immediately see where to do that

That's fine, I will do it.


Add numpy (and Tensorflow / other?) support to Python 2 and 3

Could be possible to easily integrate additional python images to support some machine learning / deep learning tools with at least CPU support. Will investigate as I found: https://hub.docker.com/r/tensorflow/tensorflow/.

Issue: might be computationally heavy for judge0 to run possible big matrix operations.

@kristijanbartol Great feature request!
I will do my research and let you know when and how tensorflow, numpy, scipy and other ML and DL libs will be supported!


dubbo spi IOC not work

fix spi has just one impl and annotated @Adaptive on class,cause ioc invalid
What is the purpose of the change
When the interface class of spi has only one implementation and this implementation class is annotated by @Adaptive
the IOC is invalid. you can see the test cases.
Brief changelog

supportExtensions is empty,but the adaptive class has value. so the inject shoud not null.
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Cloud u pls submit a issue related with this PR and provide a detailed demo?

Cloud u pls submit a issue related with this PR and provide a detailed demo?

ok

@AlbumenJ  the issue https://github.com/apache/dubbo/issues/12800


BUG: linalg.expm: converting NaN to int

pick_pade_structure tries to convert NaN to int which is a big no-no and
results in undefined behaviour

where does it do that?

lm = (int)ceil(log2(temp/normA/coeff[0])/6);

Test case from python-control:
from numpy import array, zeros, linspace
from control.matlab import ss, step
A =  array([[-81.82, -45.45], [ 10.,    -1.  ]])
B =  array([[9.09], [0.  ]])
C =  array([[0, 0.159]])
D = zeros((1, 1))
sys_ss = ss(A, B, C, D)
t = linspace(0, 1000, 1000)
y, _t = step(sys_ss, t)

Is this zero order hold discretized? What is the array that goes into expm? Because this is an overflow issue and should be handled first, not a NaN conversion problem.

normA is 0 and log2 is called with NaN

That should return -inf. Let me check control library first how this model is discretized. We are treating the symptom we need the array that goes into expm.

This model does not go into the expm route. What do you get out of this example? Could you please give a full account of what the issue is?

If that is the array then on main branch I get
>>> la.expm(np.array([[0.        , 0.        , 0.01694884, 0.01707782],
       [0.        , 0.        , 0.16948837, 0.16925281],
       [0.        , 0.        , 1.        , 1.        ],
       [0.        , 0.        , 0.        , 1.        ]])
array([[0.        , 0.        , 0.01694884, 0.01707782],
       [0.        , 0.        , 0.16948837, 0.16925281],
       [0.        , 0.        , 1.        , 1.        ],
       [0.        , 0.        , 0.        , 1.        ]])

This is what I get on main
In [8]: from scipy.linalg._matfuncs_expm import pick_pade_structure

In [9]: Am = np.empty((5, 4, 4), dtype=float)

In [10]: Am[0] = np.array([[-9.09111111e+03, -5.05000000e+03, 1.01000000e+03,
    ...:    ...: 0.00000000e+00],
    ...:    ...: [ 1.11111111e+03, -1.11111111e+02, 0.00000000e+00,
    ...:    ...: 0.00000000e+00],
    ...:    ...: [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
    ...:    ...: 1.00000000e+00],
    ...:    ...: [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
    ...:    ...: 0.00000000e+00]])

In [11]: pick_pade_structure(Am)
Out[11]: (13, 11)

Could you please check if you are on latest commit on main?

11 is the result of UNDEFINED BEHAVIOUR.  You cannot trust it.

Again, we are trying to find the root cause not the solution, I know where to put the guards if there is an overflow/undeflow. That is not the issue. We need to find where things go wrong. You are still fixing the resulting issue. Something is causing an overflow/underflow. So let's stop discussing about undefined behavior and find why it is causing a norm 0 on your machine.

lm = ceil(log2(temp/normA/coeff[0])/6)

temp/normA is 0/0 is NaN

You array is nonzero so normA can't be 0 because if these lines
https://github.com/scipy/scipy/blob/860a46bf43612d358e2c905649ade2e5a19ecccb/scipy/linalg/_matfuncs_expm.c#L839-L841

The debugger is always right.

11 is the result of UNDEFINED BEHAVIOUR.  This the ULTIMATE SIN in programming!


[STORM-3306] TopologyIntegrationTest.java use TopologyBuilder to build topologies not Thrift

[STORM-3306] TopologyIntegrationTest.java use TopologyBuilder to build topologies not Thrift

@nd368  What's your jira userId? So I can assign this ticket to you.

thanks - nd368


Make showError() work with Nitro on /server/api

Describe the feature
I think it will be better if Nitro in directory /server/api can use showError() to render /error.vue
Because I faced an issue with getting a callback from login in with Facebook. and then sometimes the user made an error like not providing email and I must tell the user should accept and get an email to me. What I can do is redirect to /pages/custom-error.vue with some query string to show an error message instead.
Or it has some solution to make /server/api can render /error.vue ?
Example of error when trying using showError(): https://stackblitz.com/edit/nuxt-starter-da7ien?file=server%2Fapi%2FcreateError.get.ts,server%2Fapi%2FshowError.get.ts
This is caused showError is not defined. I know this should be normal because any API must call throw createError() but I think It should better if API also can render /error.vue
Additional information

[ ] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

An error page will automatically be rendered with error.vue if you throw an error. Just throw createError({}) and you should be good to go.

An error page will automatically be rendered with error.vue if you throw an error. Just throw createError({}) and you should be good to go.

I just trying to make a new example: https://stackblitz.com/edit/nuxt-starter-da7ien?file=pages%2Findex.vue I want to make any API to render an /error.vue and it won't or am I just missing something? or Nitro can't render this? sometimes I don't want the error to be application/json but to be html/text instead.

You will get HTML if you visit it in a browser, JSON if you are getting it with httpie or curl.

I don't know but seem my web browser showing this:

Oh, sorry, I didn't realise you were directly hitting the api endpoint. Yes, we explicitly exclude those from rendering a HTML response as we assume that you don't want users explicitly visiting them in a browser. If you move your endpoint to ~/server/routes/some-other-path.ts then it should work.

Oh, sorry, I didn't realise you were directly hitting the api endpoint. Yes, we explicitly exclude those from rendering a HTML response as we assume that you don't want users explicitly visiting them in a browser. If you move your endpoint to ~/server/routes/some-other-path.ts then it should work.

Thanks, it works! I updated the example in: https://stackblitz.com/edit/nuxt-starter-da7ien
By the way. I think the document should tell this about using showError() or createError() on /server/routes I didn't know about these /server/routes and /server/api can handle errors like this.

https://nuxt.com/docs/guide/directory-structure/server#server-routes
https://nuxt.com/docs/api/utils/create-error#throwing-errors-in-api-routes

By the way. I think the document should tell this about using createError() on /server/routes I didn't know about these /server/routes and /server/api can handle errors like this.
* [nuxt.com/docs/guide/directory-structure/server#server-routes](https://nuxt.com/docs/guide/directory-structure/server#server-routes)

* [nuxt.com/docs/api/utils/create-error#throwing-errors-in-api-routes](https://nuxt.com/docs/api/utils/create-error#throwing-errors-in-api-routes)

PR welcome!

By the way. I think the document should tell this about using createError() on /server/routes I didn't know about these /server/routes and /server/api can handle errors like this.
* [nuxt.com/docs/guide/directory-structure/server#server-routes](https://nuxt.com/docs/guide/directory-structure/server#server-routes)

* [nuxt.com/docs/api/utils/create-error#throwing-errors-in-api-routes](https://nuxt.com/docs/api/utils/create-error#throwing-errors-in-api-routes)

PR welcome!

I want to but my writing skill in English is not strong. 🥲
I hope someone will PR for this on https://nuxt.com/docs/api/utils/create-error#throwing-errors-in-api-routes


But new to this datasource and Grafana, I'm trying to implement a backend.
On a search I'm returning a response similary to what is described as a "mapped response". I put the name of a metric in the text and the numeric id of the "metric" in the value.
I was hoping that the values was carried through to the query target but it seems it not.
So I'm wondering what are the value used for?
I think that I have some misunderstanding as the target (shown as Metric in Grafana, dissapears from Grafana, but also makes a query that seems good and returns valid data).

I believe it might be a bug in documentation, it was taken from here https://github.com/grafana/simple-json-datasource#search-api and seems like it was not touched yet.
Can you confirm?
I'd say the proper response should be:
[ { "text": "this is what's displayed in UI", "value": "this is what's sent to /query"}]


feat: update faucet block explorer to etherscan

#439  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tremarkley and the rest of your teammates on  Graphite


Remove gtest dependency from ucxx test conda package

Part of the effort to move all of RAPIDS over to a set of static testing / benchmarking libraries ( https://github.com/rapidsai/build-planning/issues/32 ).

/merge


SimpleVideoFilter example project does not run

I tried to run the project in SimpleVideoFilter. But it ran into an exception as below
2017-10-25 16:22:29.448465+0700 SimpleVideoFilter[1978:429271] [DYMTLInitPlatform] platform initialization successful
2017-10-25 16:22:30.444220+0700 SimpleVideoFilter[1978:429093] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x135d03370> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'

It turns out the old project structure. You can create new project with storyboard, add the old code and it works well.


Line separation is needed in reference/kubectl/overview

This is a Bug Report

Problem:
Line separation is needed in reference/kubectl/overview
[Markdown]
If:
* there is Kubernetes service account token file mounted at
  `/var/run/secrets/kubernetes.io/serviceaccount/token`, and
* the `KUBERNETES_SERVICE_HOST` environment variable is set, and
* the `KUBERNETES_SERVICE_PORT` environment variable is set, and
* you don't explicitly specify a namespace on the kubectl command line
then kubectl assumes it is running in your cluster. The kubectl tool looks up the
namespace of that ServiceAccount (this is the same as the namespace of the Pod)
and acts against that namespace. This is different from what happens outside of a
cluster; when kubectl runs outside a cluster and you don't specify a namespace,
the kubectl command acts against the `default` namespace.

[Rendered]

Proposed Solution:
If:
* there is Kubernetes service account token file mounted at
  `/var/run/secrets/kubernetes.io/serviceaccount/token`, and
* the `KUBERNETES_SERVICE_HOST` environment variable is set, and
* the `KUBERNETES_SERVICE_PORT` environment variable is set, and
* you don't explicitly specify a namespace on the kubectl command line
+
then kubectl assumes it is running in your cluster. The kubectl tool looks up the
namespace of that ServiceAccount (this is the same as the namespace of the Pod)
and acts against that namespace. This is different from what happens outside of a
cluster; when kubectl runs outside a cluster and you don't specify a namespace,
the kubectl command acts against the `default` namespace.

Page to Update:
https://kubernetes.io/docs/reference/kubectl/overview/#in-cluster-authentication-and-namespace-overrides

/kind cleanup
/language en
/good-first-issue

Hi , i want to take this up :)

/assign


Sort button not blocked while ActionSheet visible

Description
On iPhone, the sort button can be tapped again while the ActionSheet is open. This causes a flicker.
Hardware Specification
n/a
Steps to Reproduce the Bug
This bug cannot be reproduced with pnpm tauri dev. Run pnpm tauri ios dev (to run UniMe on device) or pnpm tauri ios dev 'iPhone 15' to launch the simulator.

Navigate to /me route.
Tap on sort button. Wait until ActionSheet displays.
Tap on the sort button again.
You should see a flicker while UniMe tries to render a second ActionSheet.

Actual Behaviour

Expected Behaviour
The sort button should be blocked until ActionSheet is not visible any more.
Errors
n/a

 Sort button not blocked while ActionSheet visible