how i can install it at localhost  or live without virual host

hello
can you tell me how i can install it at subfolder at localhost to be like this
http://localhost/mafia
i dont want to use virtual host

Hi Fisher,
By default Mafiasource cannot be installed from within a subfolder in the doucment root. It is possible however with a few minor changes.
A few months ago i've managed to get the source working from a subfolder with some minor changes.
If you need help with this i'll try to revisit that source code and send you all the details.

Anyway i'll sent you the whole package soon with only a few changes required for you..

I'm going to give you some work anyway..
Changes required
.htaccess
Change SUBDIRECTORY on lines 103-110, 115, 120, 123-126, 131, and 136
Lines 103-110:
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([1-3])/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&zc=$3&src=$4/$5/$6/$7/$8 [L,B,NC,QSA]
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([1-3])/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&zc=$3&src=$4/$5/$6/$7 [L,B,NC,QSA]
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&src=$3/$4/$5/$6/$7 [L,B,NC,QSA]
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&src=$3/$4/$5/$6 [L,B,NC,QSA]
    ## Without sizes or zoom crop incl. 2 directory levels deeper.
    RewriteRule ^foto/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?src=$1/$2/$3/$4/$5/$6/$7 [L,B,NC,QSA]
    RewriteRule ^foto/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?src=$1/$2/$3/$4/$5 [L,B,NC,QSA]
    RewriteRule ^foto/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?src=$1/$2/$3/$4 [L,B,NC,QSA]

Line 115:
        #RewriteRule (.*) https://%{HTTP_HOST}/SUBDIRECTORY/web/public/images/favicon.ico [R=301,L]

Line 120:
    RewriteRule (.*) http%1://%{HTTP_HOST}/SUBDIRECTORY/web/public/images/favicon.ico [R=301,L]

Lines 123-126:
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/google29f33f42f4b5ccd8.html [or]
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/robots.txt [or]
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/sw.js [or]
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/favicon.ico

Line 131:
    RewriteRule .? %{ENV:BASE}/SUBDIRECTORY/web/index.php [L]

Line 136:
        RedirectMatch 302 ^/$ /SUBDIRECTORY/web/index.php/

install/.htaccess
Change SUBDIRECTORY on lines 23 and 39
Line 23:
DirectoryIndex /SUBDIRECTORY/install/index.php

Line 39:
        RedirectMatch 302 ^/$ /SUBDIRECTORY/install/index.php/

app/config/config.php
Add the following lines at the end of the file:
// Grab sub directory if applicable based on possible dirRoot names.
define('WINDOWS', (bool)(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'));
$searchDelimiter = WINDOWS ? '\\' : '/';
$rd = WINDOWS ? '/' : '\\';
$dirs = explode($searchDelimiter, realpath(__DIR__ . $rd . '..' . $rd . '..' . $rd));
$dirRoots = array('www', 'wwwroot', 'htdocs', 'public_html', 'private_html'/*, ... */);
$directory = isset($dirs[count($dirs) - 2]) && in_array($dirs[count($dirs) - 2], $dirRoots) ? '/' . $dirs[count($dirs) - 1] : '';
$searchDelimiter = $rd = $dirs = $dirRoots = null;

define('SUB_DIR', $directory); // If website is hosted a directory under DOCUMENT_ROOT, or empty string.

app/config/routing.php
Change lines 37, 40, 158 and 180 to include the SUB_DIR global.
Line 37:
        $this->settings['twigCache'] = DEVELOPMENT === false ? DOC_ROOT . SUB_DIR . '/app/cache/TwigCompilation/' : FALSE;

Line 40:
        $endRoute = str_replace(SUB_DIR, '', $_SERVER['REQUEST_URI']);

Line 158:
        return isset($_SESSION['PREV_ROUTE']) ? $_SESSION['PREV_ROUTE'] : SUB_DIR . "/";

Line 180:
            header('Location: ' . SUB_DIR . $result . $addAfterRoute, true, 301);

app/config/twig.filters.php
Change lines 6 and 7:
$twig->addGlobal('docRoot', PROTOCOL . $_SERVER['HTTP_HOST'] . SUB_DIR);
$twig->addGlobal('staticRoot', PROTOCOL . STATIC_SUBDOMAIN . "." . $route->settings['domainBase'] . SUB_DIR);

src/Controllers/.inc.head.php
Change line 24:
$pageImage = PROTOCOL.STATIC_SUBDOMAIN.".".$route->settings['domainBase'].SUB_DIR."/web/public/images/mafiasource.jpg";

install/index.php
Change lines 102 and 119
Line 102:
        header('Location: '.SUB_DIR.'/install/index.php', TRUE, 301);

Line 119:
        header('Location: '.SUB_DIR.'/install/index.php?encryption=encrypted', TRUE, 301);

Results
With these changes the source should work in a subdirectory inside htdocs a.k.a. www a.k.a. public_html. Some images will not show on the installation page, this is normal when dealing with a subdirectory installation.

I'm going to give you some work anyway..
Changes required for subdirectory installation
.htaccess
Change SUBDIRECTORY on lines 103-110, 115, 120, 123-126, 131, and 136
Lines 103-110:
RewriteRule ^foto/([0-9]+)x([0-9]+)/([1-3])/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&zc=$3&src=SUBDIRECTORY/$4/$5/$6/$7/$8 [L,B,NC,QSA]
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([1-3])/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&zc=$3&src=SUBDIRECTORY/$4/$5/$6/$7 [L,B,NC,QSA]
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&src=SUBDIRECTORY/$3/$4/$5/$6/$7 [L,B,NC,QSA]
    RewriteRule ^foto/([0-9]+)x([0-9]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?w=$1&h=$2&src=SUBDIRECTORY/$3/$4/$5/$6 [L,B,NC,QSA]
    ## Without sizes or zoom crop incl. 2 directory levels deeper.
    RewriteRule ^foto/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?src=SUBDIRECTORY/$1/$2/$3/$4/$5/$6/$7 [L,B,NC,QSA]
    RewriteRule ^foto/([^/]+)/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?src=SUBDIRECTORY/$1/$2/$3/$4/$5 [L,B,NC,QSA]
    RewriteRule ^foto/([^/]+)/([^/]+)/([^/]+)/(.*)$ /SUBDIRECTORY/web/public/foto.php?src=SUBDIRECTORY/$1/$2/$3/$4 [L,B,NC,QSA]

Line 115:
        #RewriteRule (.*) https://%{HTTP_HOST}/SUBDIRECTORY/web/public/images/favicon.ico [R=301,L]

Line 120:
    RewriteRule (.*) http%1://%{HTTP_HOST}/SUBDIRECTORY/web/public/images/favicon.ico [R=301,L]

Lines 123-126:
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/google29f33f42f4b5ccd8.html [or]
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/robots.txt [or]
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/sw.js [or]
    RewriteCond %{REQUEST_URI} /SUBDIRECTORY/favicon.ico

Line 131:
    RewriteRule .? %{ENV:BASE}/SUBDIRECTORY/web/index.php [L]

Line 136:
        RedirectMatch 302 ^/$ /SUBDIRECTORY/web/index.php/

install/.htaccess
Change SUBDIRECTORY on lines 23 and 39
Line 23:
DirectoryIndex /SUBDIRECTORY/install/index.php

Line 39:
        RedirectMatch 302 ^/$ /SUBDIRECTORY/install/index.php/

app/config/config.php
Replace lines 26 (comment "// Others") and 27 with:
// Grab sub directory if applicable based on possible dirRoot names.
define('WINDOWS', (bool)(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'));
$searchDelimiter = WINDOWS ? '\\' : '/';
$rd = WINDOWS ? '/' : '\\';
$dirs = explode($searchDelimiter, realpath(__DIR__ . $rd . '..' . $rd . '..' . $rd));
$dirRoots = array('www', 'wwwroot', 'htdocs', 'public_html', 'private_html'/*, ... */);
$directory = isset($dirs[count($dirs) - 2]) && in_array($dirs[count($dirs) - 2], $dirRoots) ? '/' . $dirs[count($dirs) - 1] : '';
$searchDelimiter = $rd = $dirs = $dirRoots = null;

define('SUB_DIR', $directory); // If website is hosted a directory under DOCUMENT_ROOT, or empty string.

// Others
define('DOC_ROOT',      $_SERVER['DOCUMENT_ROOT'] . SUB_DIR);

app/config/routing.php
Change lines 40, 116, 158 and 180 to include the SUB_DIR global.
Line 40:
        $endRoute = str_replace(SUB_DIR, '', $_SERVER['REQUEST_URI']);

Line 116:
        return SUB_DIR . $result;

Line 158:
        return isset($_SESSION['PREV_ROUTE']) ? $_SESSION['PREV_ROUTE'] : SUB_DIR . "/";

Line 180:
            header('Location: ' . SUB_DIR . $result . $addAfterRoute, true, 301);

app/config/twig.filters.php
Change lines 6 and 7:
$twig->addGlobal('docRoot', PROTOCOL . $_SERVER['HTTP_HOST'] . SUB_DIR);
$twig->addGlobal('staticRoot', PROTOCOL . STATIC_SUBDOMAIN . "." . $route->settings['domainBase'] . SUB_DIR);

src/Controllers/.inc.head.php
Change line 24:
$pageImage = PROTOCOL.STATIC_SUBDOMAIN.".".$route->settings['domainBase'].SUB_DIR."/web/public/images/mafiasource.jpg";

install/index.php
Change lines 102 and 119
Line 102:
        header('Location: '.SUB_DIR.'/install/index.php', TRUE, 301);

Line 119:
        header('Location: '.SUB_DIR.'/install/index.php?encryption=encrypted', TRUE, 301);

install/Views/index.twig
Change line 6:
<form name="install" action="{{ docRoot }}/install/index.php" method="POST">

Results
With these changes the source should work in a subdirectory inside htdocs a.k.a. www a.k.a. public_html. Some images will not show on the installation page, this is normal when dealing with a subdirectory installation. After installation however you'll also notice a few missing images, these can be fixed by updating the provided .CSS files to include your SUBDIRECTORY. Also don't forget to also move your /../credentials.php from outside htdocs into htdocs/credentials.php. Good luck!
Kind regards
Michael

Thank you very much for your great effort and wonderful work.
I will try it today and let you know the result
Best Regards

after i  made all changes that you wrote and install the game .. when i open the url https://localhost/mafia i got blank white page .. the game installed correctly but nothing.
some times its redirect me to this url
http://www.localhost/
this is my app/config.php
<?PHP
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/** Configuration file for some global values used throughout this entire application **/

require_once __DIR__ . '/../../credentials.php'; // Require credentials

// Game, app and web settings
define('BASE_DOMAIN',      "https://localhost/");       // The primary domain
define('STATIC_SUBDOMAIN', "mafia");               // Static subdomain prefix | Has to be a valid subdomain rooted to the same dir of the application's root folder
define('APP_GAMENAME',     "test");          // Gamename, obviously
define('APP_DOMAIN',       BASE_DOMAIN);     // Application runs without www.
define('APP_FB_PAGE',      "Mafiasource");          // Facebook page UNUSED
define('APP_TW_PAGE',      "Mafiasource");          // Twitter page UNUSED
define('APP_GP_PAGE',      "+MafiasourceBe-Nl-En"); // Google plus page UNUSED
define('SSL_ENABLED',      False);                   // HTTPS? true :-) / false :-( ?
define('DEVELOPMENT',      true);                   // Development mode true = on | false = off
define('OFFLINE',          false);                  // Website online / offline for userlogin / game access
define('DEVELOPER_IPS',    json_decode(DEV_IPS));   // Array containing developer IP addresses

// Database credentials
define('PDO_DATABASE',  DBNAME);                                      // Db name
define('PDO_CONSTRING', "mysql:host=localhost;dbname=".PDO_DATABASE); // Db conection string DO NOT CHANGE
define('PDO_DBUSER',    DBUSR);                                       // Db user, generally a user with the least permissions
define('PDO_DBPASS',    DBPWD);                                       // Db password

// Grab sub directory if applicable based on possible dirRoot names.
define('WINDOWS', (bool)(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'));
$searchDelimiter = WINDOWS ? '\\' : '/';
$rd = WINDOWS ? '/' : '\\';
$dirs = explode($searchDelimiter, realpath(__DIR__ . $rd . '..' . $rd . '..' . $rd));
$dirRoots = array('www', 'wwwroot', 'htdocs', 'public_html', 'private_html'/*, ... */);
$directory = isset($dirs[count($dirs) - 2]) && in_array($dirs[count($dirs) - 2], $dirRoots) ? '/' . $dirs[count($dirs) - 1] : '';
$searchDelimiter = $rd = $dirs = $dirRoots = null;

define('SUB_DIR', $directory); // Website is hosted a directory under DOCUMENT_ROOT.

// Others
define('DOC_ROOT',      $_SERVER['DOCUMENT_ROOT'] . SUB_DIR);

// Mail server settings
define('EMAIL_HOST', "mail.mafiasource.nl");
define('EMAIL_ADDR', "no-reply@mafiasource.nl");
define('EMAIL_PWD',  "noreplypwd");
define('EMAIL_PORT', false);

remove https:// from base domain please

i made some changes to twig.filters.php
<?PHP

use src\Business\SeoService;

/* TWIG GLOBALS */
$twig->addGlobal('docRoot',"https://localhost/" . SUB_DIR);
$twig->addGlobal('staticRoot',"https://localhost/". SUB_DIR);

and change the config.php like what you said and the game open
but  when insert the username and pass to login i got this :
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the r
the same when try to register

$twig->addGlobal('docRoot', PROTOCOL . $_SERVER['HTTP_HOST'] . SUB_DIR);
$twig->addGlobal('staticRoot', PROTOCOL . STATIC_SUBDOMAIN . "." . $route->settings['domainBase'] . SUB_DIR);

Please make all changes i proposed exactly like i've written them and retry. Only .htaccess changes should be hard coded and SUBDIRECTORY changed to mafia.

Please also var_dump(SUB_DIR) it should display string(6) : "/mafia"

thank you for helping me ..
yes i'm sure of made all changes that you tell me about it .
now i change somethign in .htacess
i found this \
   ## Block unwanted requests not originating from self
    RewriteCond %{REQUEST_METHOD} (POST|CONNECT|DEBUG|DELETE|MOVE|PUT|TRACE|TRACK)
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?mafiasource.nl/.*$ [NC]
    RewriteRule .* - [F]

i replace it with this
    ## Block unwanted requests not originating from self
    RewriteCond %{REQUEST_METHOD} (POST|CONNECT|DEBUG|DELETE|MOVE|PUT|TRACE|TRACK)
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?localhost/.*$ [NC]
    RewriteRule .* - [F]

now when i go to login page i got this image before submit anything

after i log in to the game not all functions work like commit a crime alwyas i got this when press commit

in the prison i cant buy to go out

there is still some paths need to change
..
also register not work it always say username taken
,
if you can please send to me full edited package and i will just change the database connection information and import it .

Please show me your hosts file configuraion.
Does your localhost installation allow for HTTPS?
Preparing package now.

i make it without host file .. because i want make this game work multyplayer offline through localhost localnetwork
let me explain more
if i made virtual host like this .. mafia.localhost and make the chages to hosts file like this
<IP_ADDRESS>      mafia.localhost
Now the person on the other device with me on the same network will not be able to open the game via the link
mafia.localhost
or
mafia.<IP_ADDRESS>
..
because there is no edited  host file at his computer .. but if i make the game work fine without any issues at my pc with subfolder any one connected to my network can access the game like this
http://<IP_ADDRESS>/mafia
i hope you understand what i mean

Yes but for that more changes are required. Mafiasource according to /web/index.php only works on the configured domain...
Anyway i've made a perfectly working game without www. or without mafia. or without static. just plain http://localhost/mafia still want it?

I'll also insert my test db after install.
Username: MDev pass:<PHONE_NUMBER>
Make sure that before testing my package to clear all browser data and cache for localhost

yes that what i need .. let me try it and tell you my friend :)

at the first test its seems like ok but there are some issues .. :
when go to this url http://localhost/mafia/game/stock-exchange
and choose McDopals for test it go to this url   :
http://localhost/game/stock-exchange/business/McDopals so not found 404
it must be
http://localhost/mafia/game/stock-exchange/business/McDopals
prison buy out not work

cuz when click the button the url is not correct in console
http://localhost/game/prison/commit-action
carousel in crimes not work .. only 1 crime
i thins this for now .. and all the rest is ok

Pro tip: Place {{ docRoot }} in front of broken urls in twig views. Good luck!

you are great ... thank you so much for helping me ..
i will give you the source when finish translations
thank you again my friend

Would be cool if we could fix those broken URL's on the main branch as well :D

i'm fixing all urls now to work with subfolder..
but how i can run the cron job
http://localhost/mafia/cronjob/one_minute.php
i got 404 not found

Hi Fisher, good luck with that! Our shipper cronjobs are scripts that need to be run by the server itself either through Crontab in Linux or Task Scheduler in Windows. It's normal that these cannot be run buy the end user on demand.

yes i made it with  Windows Task Scheduler  and its works fine now .
i will tell you in any updates :)

As this initial issue got resovled i'll be closing this.


[Paying for College] Dynamic Disclosures Functional Tests

This PR adds the first bevy of cypress tests for the Dynamic Disclosures portion of Paying for College.
Additions

Adds tests in test/cypress/integration/paying-for-college/disclosures
Adds new fixtures in test/cypress/fixtures/paying-for-college

How to test this PR

Set this branch up locally
Try yarn run cypress open
Check out those disclosures tests!

Notes and todos

There could be more tests here, and I have some notes for possible additional tests I might add

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code follows the standards laid out in the CFPB development guidelines
[ ] Future todos are captured in comments and/or tickets

Added some more tests! Tagging @brandon-rusk

I'm not sure why the tests failed, and for some reason it seems like this remote branch doesn't match my local, so I am force-pushing and we'll see what happens... 😁

After struggling with these tests for ages, I've reverted back to the original code, which passes locally.
Instead of trying to figure out why GHA seems to hate these tests, I am going to find a graceful way for these tests to be in our codebase, but not subject to GHA's requirements. That way, work can be tested locally until we find a solution to this GHA/cypress issue.
Also, we'll add unit tests as suggested by @wpears to help make sure this seldom-touched part of our site continues to be tested, even if integration testing isn't perfect for the time being.

I'm closing this PR. We could not get the tests to cooperate with the existing jQuery-based code using Github Actions. They work fine in a local Cypress testing environment.
The purpose of the tests was to ensure we didn't break functionality when removing jQuery. I had hoped to merge this PR, then follow up with a PR that removed jQuery, with the assurance that removing jQuery worked as intended. However, we've already dropped considerable time and energy into making these tests work, to no avail, so we're going to move on.
I've now folded these tests into #7938, the PR which will remove the jQuery. Removing jQuery also fixes the issue with the Cypress tests in Github Actions, and while this isn't ideally the way I wanted this all to work, it will still get the job done.
See #7938 for more information.


Routing question for beta release from slack - no longer working?

From Patrick Krings June 11 in our slack:
Is it no longer possible to provide an own router with spartacus beta? Using the alphas it worked to use an own router in the angular project. Neither RouterModule.forRoot nor .forChild seem to work as of now. The documentation for 'Configurable Routing' is still an empty draft...
When attempting to use the router the storefront stops working (stays an empty page with just a black bar at top), network activities shows no call to the backend was made and no error on console.

So what I did was creating a new angular 8 app with routing enabled and then included spartacus as recommended with the documentation.
app-routing.model.ts:
`import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {HomeComponent} from './home/home.component';
const routes: Routes = [
{path: '', component: HomeComponent, outlet: 'spartan-router'}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }`
app.component.html
<router-outlet name="spartan-router"></router-outlet> <cx-storefront>Loading...</cx-storefront>
While on alpha 6-8-8-1 this worked fine, after upgrading to beta 0-0-0-3 the whole app did not produce output anymore. Hope this helps!

Support of named outlets is out of scope for 1.0 (that being said, they may work).
In beta release many routes definitions were removed, i.e. homepage. And we rely havily on the generic ** CMS route now. You can fix your issue by providing a homepage route ('' and later the routes for named outlets). For example:
    RouterModule.forChild([
      {
        path: '',
        component: PageLayoutComponent,
        canActivate: [CmsPageGuard],
        data: { pageLabel: 'homepage' },
      },
      {
        path: '',
        component: HelloComponent,
        outlet: 'spartan-router',
      },
    ]),

we should update the doc to reflect that we don't support this


Add newcomers workflow to notify about good first issues on slack

Signed-off-by: Ankita Pareek<EMAIL_ADDRESS>Description

This PR adds a workflow to notify about good first issues on the #newcomer channel of Layer5.
The slack.yml file is already updated.

This PR fixes #219
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@Ankita13-code could you please edit the PR description a bit. The slack.yml file is not updated. We are trying to propagate this workflow: https://github.com/meshery/meshery-istio/blob/master/.github/workflows/slack.yml
Also, after merging this PR, it would close the issue but we would not want that as there is a second part to the issue, i.e. updating the slack workflow.
So, if you could please change the line This PR fixes to This PR is related to then that would be great 😁

@Ankita13-code @theBeginner86 what's the status of this effort? Duplicated and completed?

@Ankita13-code @theBeginner86 what's the status of this effort? Duplicated and completed?

@leecalcote we can merge this one. As newcomers-alert.yml is yet to be added to this repo.

@leecalcote we can merge this one. As newcomers-alert.yml is yet to be added to this repo.

Thank you @Ankita13-code @theBeginner86


TextInput multiline crashes trying to backspace after a certain number of characters

Environment
"react-native-macos": "0.61.46"
Issue
Steps to Reproduce
on a <TextInput multiline /> try to write several characters (number seems to ~100 - ~300) after you have enough characters in the buffer, try to delete a few of them, react-native will crash:

I also get this error:

This seems to be fixed in the latest version, at least I cannot reproduce it anymore:
"react-native-macos": "^0.61.54",

It seems like I chanted victory too early @tom-un, I just got another couple of crashes, casually typing on the latest version, it's hard to reproduce but quickly typing and deleting characters will eventually throw an exception


[deps] Update celery to version 5

Better to address https://github.com/openwisp/openwisp-controller/issues/325 first.
Celery 5 should brings some breaking changes.
We should ensure the command to launch celery that is indicated in the README works and if not we need to update it.
Other than ensuring all tests pass, it's advised to do some manual testing running celery in the development environment, trigger the celery tasks and ensure they work.

There's no need to do anything here because it has been handled in openwisp-controller.


pc.data_table columns props aren't working with pd.DataFrame as a list of dictionaries

Describe the bug
pc.data_table columns props aren't working with pd.DataFrame as a list of dictionaries
To Reproduce
`
import pynecone as pc
import pandas as pd
class State(pc.State):
stbd=pd.DataFrame([ {'k1': 'v1', 'k2': 'v2', 'k3': 'v3'},
{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'},
{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'}])
def index():
return pc.data_table(
data=State.stbd,
columns=["k3", "k2"],
pagination=True,
search=True,
)
app = pc.App(state=State)
app.add_page(index,)
app.compile()
`
Expected behavior
Fields mentioned in columns=["k3", "k2"] should be displayed in the same order.
Screenshots
All the fields in the list of dictionaries are displayed.
** Specifics (please complete the following information):**

Python Version: 3.8
Pynecone Version: 0.1.16
OS:
Browser (Optional):

Additional context
Add any other context about the problem here.

When I fetch data from MongoDB using pymongo I can restrict the fields by using projection, however, as the dictionary is an unordered data structure, "columns" in data_table would be helpful to display the fields in the required order.

I think this is a similar issue to  #555 im looking into it right now

You dont need specify a column when the data is a pandas dataframe, The column values are automatically inferred.


Analyzer: Fix an issue with locateRepositoryConfigurationFile()

In case absoluteProjectPath is a subdirectory of a Git Repo project the
analyzer fails with a NoSuchFileException thrown when it accesses the
manifest.xml.
Fix this by executing the Git Repo specific logic only in case the root
path of that Git Repo project is being analyzed.
Signed-off-by: Frank Viernau<EMAIL_ADDRESS>

Appveyor has the build failed status even though the tests succeeded.
The failure Cache entry not found happened after test execution, thus merge regardlessly.


Develop

What kind of change does this PR introduce?

Does this PR introduce a breaking change?

What needs to be documented once your changes are merged?

👷 Deploy Preview for betsweatwin processing.

Name
Link

🔨 Latest commit
c6de4b5777d42b7cea3c6835b2ba665bdf6da442

🔍 Latest deploy log
https://app.netlify.com/sites/betsweatwin/deploys/6537601e4249380008de78de


fix(docs): wrong configuration set in filesystem offloader

Signed-off-by: Eric Shen<EMAIL_ADDRESS>
Motivation
The required configurations in filesystem offloader driver has mistake on offloadersDirectory, it should be fileSystemProfilePath.
Modifications
Fix docs mistake.
Verifying this change

[x] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[ ] no-need-doc
(Please explain why)

[x] doc
(If this PR contains doc changes)

https://hub.streamnative.io/offloaders/filesystem/2.5.1
@Anonymitaet  The doc on hub also should be updated.

https://hub.streamnative.io/offloaders/filesystem/2.5.1 @Anonymitaet The doc on hub also should be updated.

@hangc0276 Sure, thanks for reminding me

https://hub.streamnative.io/offloaders/filesystem/2.5.1 @Anonymitaet The doc on hub also should be updated.

Hi @sijia-w can you help apply the same doc changes to the StreamNative Hub docs? Thanks
Source file: https://github.com/streamnative/pulsar-hub/blob/master/offloaders/filesystem/2.5.1/filesystem.md


Release 1.0.0-beta.10

Pending merge of #765.

/azp run

Under sdk/communication/AzureCommunication/readme.md and sdk/communication/AzureCommunicationChat/readme.md and sdk/core/AzureCore/readme.md that have instructions for how to install pods. They still refer to beta8 we might want to update those as well.

/azp run

/azp run


Add sniff to warn against using output buffering

Output buffering in the context of WP is notoriously problematic.
In PHP any number of output buffers can be created. These will be nested in the order in which they are opened and any call to close/flush an output buffer will close the inner most output buffer - or depending on the function called - close all buffers.
Also, whether output buffering will work at all, let alone how, is severely impacted by the values of the related ini directives of the system the code is run on, which is most cases in the context of WP is outside of the control whoever writes the code.

Plugin A opens an output buffer, plugin B opens an output buffer.
Plugin A tries to close their output buffer before plugin B has closed theirs.
Both plugins receive the buffer expected by the other plugin.
Case 2
Output buffering is off system-wide (via the ini directives) and the ini directives are not checked before using the output buffering functions.
Case 3
Plugin A and B both hook their functions to arbitrary WordPress hooks.
Plugin A opens an output buffer, plugin B opens an output buffer.
Plugin A closes output buffering using ob_end_flush() or ob_end_clean(), destroying the output buffers of all other plugins/themes using output buffering as well.
Etc.
Sniffing for this
I believe it would be a good idea to have a sniff check for usage of the output buffering functions.
This could be done simply by adding a function list somewhere, though a more intelligent solution would be preferred.
Rough line of thinking (needs refinement):

Always error when ob_end_flush() or ob_end_clean() are used.
If ob_start() is called within the scope of a function and the buffer is closed within the same scope and no hooks are called in between (i.e. no WP functions are called as most will offer hooks), it's probably ok.
If output buffering functions are used in combination with level checks, it's probably ok.
Warn in all other circumstances.

The sniff should (initially) be added to the Extra ruleset.
Ref: http://php.net/manual/en/book.outcontrol.php

Two examples of why this would be helpful can be found here:

https://github.com/Yoast/wordpress-seo/issues/10446
https://github.com/Yoast/wordpress-seo/issues/10592

The issue described in both the above links: Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers.
This issue happens when a plugin/theme opens an output buffer with a preset callback, i.e. ob_start( $output_callback ) and the callback causes WP/plugin/theme functionality to be triggered which in turn uses output buffers.
Or as the PHP manual states:

ob_end_clean(), ob_end_flush(), ob_clean(), ob_flush() and ob_start() may not be called from a callback function. If you call them from callback function, the behavior is undefined. If you would like to delete the contents of a buffer, return "" (a null string) from callback function. You can't even call functions using the output buffering functions like print_r($expression, true) or highlight_file($filename, true) from a callback function.

Ref: http://php.net/manual/en/function.ob-start.php
As it is neigh impossible to determine - without extensive backtrace analysis - whether some code is being run in the context of an output buffering callback function, this basically prevents any other plugin from also using output buffering and yields white screens of death for the end user.
IMHO, the sniff should detect calling ob_start() with the first parameter set and should for the above reasons report this as an error.


Provide backend for seasonal statistics

The old statistics are save in an extra table. Following that all
statistics are reset and all Matches are deleted. Any remaining
notifications should be deleted as well.
There is currently no option to query any of the seasons but that should
be easy to implement when necessary.
When the season has ended a "SeasonEndedEvent" is sent out. This should
allow us to for example send emails when a season has ended.
The current cron job has seasons set to 3 months, resetting on the first of each month at 01:00

Good work!
I think the SeasonEndedEvent could be used to send a message to each user containing a message like
Season x has ended. You Reached Rank y. Good luck and have fun in Season (x+1)


fix publishPath starts with //

It will fix https://github.com/arthurbergmz/webpack-pwa-manifest/issues/59
npm run test is fine


Fix tilesource equality

Found this issue while debugging an issue on android sdk: https://github.com/mapzen/android/issues/363
We check for tileSource equality when adding/removing TileSet do utilize cache for previously loaded datasource(tileSource) from an older scene when the new scene adds the same datasource(tileSource).
The equality for these tileSources was broken.
Along with this it kinda make sense to remove all old tile sources on a new scene file load.
Also adds reading of API key from the environment variable for the desktop demo apps (refer issue: https://github.com/tangrams/tangram-es/issues/1452)

@sarahlensing tried this and included the SNAPSHOT repo in android sdk and it none of the styles work in style switcher, which is excepted and should be fixed by your work from https://github.com/mapzen/android/pull/371.

Updated.
Can I get some eyes on this? Need to get this in before #1498


Expose chinese_whispers to Python

Currently, there is http://dlib.net/python/index.html#dlib.chinese_whispers_clustering exposed which takes descriptors and do clustering. If user wants to give it 128D vectors itself (or any other generic edges, for that matter), there is no easy way, as you cannot convert to C++ descriptors from Python. Does it makes sense to either:

expose dlib::chinese_whispers directly from Python API, as dlib.chinese_whispers(edges: list) -> label list
expose dlib::chinese_whispers (or overload ``dlib::chinese_whispers_clustering`) to accept list of lists (all elements should have same size), not just list of C++ objects. And C++ would calculate euclidean distance to get edges

Does this sound something that can be accepted in dlib? And with what level of abstraction?

Doesn't the existing python API let you pass in arbitrary vectors (e.g. 128D vectors)?  I'm pretty sure that is the case.
I don't really see how you will be able to meaningfully pass in any kind of edge list type of data structure from python since python is so brutally slow. Any non-trivial graph will take a really long time for python to construct.  I guess for small problems it won't be totally intractable though.  But in any event, I wouldn't reject a PR that added a python API for this method that mirrors the API of the C++ one, that is, one that takes in an edge list.  But I think you will find it hard to make edge lists in python with any reasonable execution speed.

I didn't found existing API (optimistically sent PR!). If there is some API, feel free to discard this PR.
Yes, it is slow, but considering that alternative is to rewrite edge generation in C++ (or rewrite chinese_whispers in Python:), I think it makes sense to include it). I am struggling with np.linalg.norm, so it is not that slow (10000s of vertices), others might use some other methods, however - you are right, bottom point is to have option to use this, at all.


render_limit ignored

Hey,
I use lazy to load your (awesome) plugin and then
require"fidget".setup{ progress = {
  display = { render_limit = 2 },
} }

However with the ltex lsp I can open a .md and see easily 10 notifications at a time (a tad annoying) !
I also tried the legacy branch with the max_messages option but I still see a ton of notifications
You can check out https://github.com/ilan-schemoul/ours-nvim/tree/main/nvim to see the full config but I do not think you need to.

My bad it works


How can we develop ACH with stripe ?

Can anyone suggest proper ACH flow setup steps with stipe ?
I have implemented steps from below document but its not working proper.
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=react-native#collect_payment

Can you provide more details about what's not working? We have an example screen here: https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/ACHPaymentScreen.tsx

I need to implement instant verification for payment with ACH without passing any account and routing number.
I show that we can get any URL from stripe for the same but I don't know how we can get this.

Ah i think you're looking for https://stripe.com/docs/financial-connections/other-data-powered-products


Access RBAC enabled server through Postman and more description on RBAC

I am having a confusion related to authorization based on RBAC and I am not able to make a call to FHIR server when security is enabled.
Let me explain what all things were done to make a call through Postman:

Created all required instances based on Azure FHIR template. Which created AD apps, services, database etc.
AD apps are having roles based on the AD template Default deployment for admin,nurse,patient.
Just to make sure, I am not messing with anything with roles, I have given role permission to AD App as well as User too.
Based on Postman Testing, I am able to get access-token successfully.
As per this, Features bearer token should have roles specified. I cross checked token with JWT Validator. The role is coming fine as admin.

Even after all the above steps, I am getting this response along with 401 status.
{     "resourceType": "OperationOutcome",     "id": "<guid code>",     "issue": [         {             "severity": "error",             "code": "login",             "diagnostics": "Authentication failed."         }     ] }
On checking  the postman console, I am getting
WWW-Authenticate:"Bearer error="invalid_token", error_description="The token is expired""
NOTE: I have already made sure I am accessing through correct AD Client app.
The above mentioned item is a major problem for me to access the application after security is enabled. The second is more of all confusion.
Based on Roles, my understanding is we can control ResourceAction (read, write, harddelete) but what is the significance. I presume it is not talking about FHIR Resources protection but general read, write, delete for all FHIR Resources. Is this just a concept for future release related to RBAC?.
Apologies, if I am missing anything basic here.

It says your token is expired. Did you check it, in jwt.io. Sometimes postman doesn't pick the latest token when you say use, you have to explicitly pick the latest one from the dropdown.

Oh! I see now, silly of me. I was clicking on Use Token button from the Postman but seem like was not getting selected, like you said. I deleted all of them and it worked fine. Thanks a lot.
Can you please clarify on RBAC system. From the documentation, all I can see is how to configure, but how it really works. What I understand is a role having read, write and delete permission. Does it gets applied to all FHIR Resources? As of FhirController I can see these are just based on read, write, delete policies for all FHIR resource. Am I missing anything here, any documentation would be really great. If It is just based on read, write, delete, how can we configure based on FHIR Resources?

As we describe in the features (https://github.com/Microsoft/fhir-server/blob/master/docs/Features.md#role-based-access-control). The settings are currently global on the API. There is also a link to how we plan on implementing a much more granular system (resource level and below), but it has not been implemented yet. If you need features like that immediately, you could add Azure API Management in front and implement policies.

Thank you for the quick reply.
So I can use Azure API Management and block FHIR Service Instance with Cors or IP Restriction so that no one can hit my backend application directly.

Yes, you can use the IP filtering rules (firewall) on the web app to only allow access from the API Management instance. I made a tool for setting up API Management for FHIR endpoint (https://aka.ms/fhir2apim). You can use that to get started.

Okay, sure. Thank you for all clarifications.


Streaming: add pep8 / pylint goodness

Uses #1209 as a base.

@dhermes rebased after merge of #1209.

Theres a bit more than PEP8 changes in "Get 'pep8' working on 'gcloud/streaming'." (e.g. dropping request = _Request() and using self.URL in test_transfer.py).

Finished review

LGTM


Typo on L3 documentation site

Please edit copy from:
The high-performance zkvm L3 for the Realms World onchain gaming.
To:
The high-performance zkVm L3 for the Realms World of onchain games.

Hey @LordSecretive, would it be possible for me to work on this issue?


Cartesian: Refactoring repository layout and package organization

GT4Py code is organized as a namespace package with different (more or less) independent subpackages for different components.
Still work in progress: currently working in making gt4py.storage fully independent of gt4py.cartesian. The main changes have been done, still missing migrating the tests, including defining the layouts as default presets in storage which the cartesian backends can select directly.

Resolves #1040.

Looks like there are a few references to gt4py.config in comments that still need updating 👍

At this point, all CPU tests (including DaCe) are passing in my laptop. There are still several rough edges, though, which should be solved either in this PR or in following ones:

typing errors need to be solved
autodocs need to work properly
imports in subpackage's  __init__.pys need to be polished and improved to follow some coherent policy in all subpackages
tox config should be aligned with the version in the functional branch and tox itself updated to version 4 (which also involves some changes in the configuration)
pre-commit settings should be aligned with the version in functional branch
package and tools configurations should be moved to pyproject.toml (ideally switching to a modern build backend like hatchling)

bors try

bors try

bors try


Intermediate CA import crashes container Startup if CA is already imported

If you restart the container, the 90.sh script crashes the startup, if you have already imported the CA earlier.
See attachment.
I think something like checking for existing files before importing ($ puppetserver ca import) could fix it or changing the exit code?
Reference: #116
puppet_intermediate.txt

@tuxmea did you see something like this, while you implemented this?

I did a quick and dirty fix for our systems and override it by dockerfile. So container restarting isn't a problem anymore:
   if [[ -f /etc/puppetlabs/puppet/ssl/certs/ca.pem ]]; then       # alternativ       # if ls /etc/puppetlabs/puppet/ssl/certs/*.pem       echo 'Error: Puppetca already imported, delete first if you want to replace'       exit 0     else        puppetserver ca import \       --cert-bundle $INTERMEDIATE_CA_BUNDLE \       --crl-chain $INTERMEDIATE_CRL_CHAIN \       --private-key $INTERMEDIATE_CA_KEY     fi


feat(language-core): improve support for range mapping

Fixes #203

Hi! I've added some refinements to the startEnd matching logic. It is more readable now and also it supports the fallback mode out-of-the-box.

Since overlapping mapping handling is Angular-specific behavior, I think it's best to keep this implementation in WebStorm-Angular and keep the default implementation simple.
#207 Added a method to make mapping logic customizable, can you check if it meets your needs?

@johnsoncodehk - sounds good! I've copy/paste my implementation of source map to angular plugin and it works fine! Thanks for the changes!


Getting error while running gcpp_deploy : "400 Error: model server never became ready. Please validate that your model file"

Hi,
It ran fine and there was last step of gc_deploy, and Im getting the following error. I am using asia-south1 region, n1-standard-4 machine, and NVIDIA_TESLA_T4 accelerator. Can you let me know why I am getting this error during deploying?
To use this Endpoint in another session:
endpoint = aiplatform.Endpoint('projects/1027408664936/locations/asia-south1/endpoints/1472078943824642048')
Deploying model to Endpoint : projects/1027408664936/locations/asia-south1/endpoints/1472078943824642048
Deploy Endpoint model backing LRO: projects/1027408664936/locations/asia-south1/endpoints/1472078943824642048/operations/6849460461788725248
Traceback (most recent call last):
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/gcp_deploy.py", line 96, in <module>
    main()
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/gcp_deploy.py", line 86, in main
    model = deploy_model_with_dedicated_resources_sample(model,
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/gcp_deploy.py", line 22, in deploy_model_with_dedicated_resources_sample
    model.deploy(
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/.venv/lib/python3.9/site-packages/google/cloud/aiplatform/models.py", line 3201, in deploy
    return self._deploy(
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/.venv/lib/python3.9/site-packages/google/cloud/aiplatform/base.py", line 793, in wrapper
    return method(*args, **kwargs)
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/.venv/lib/python3.9/site-packages/google/cloud/aiplatform/models.py", line 3376, in _deploy
    endpoint._deploy_call(
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/.venv/lib/python3.9/site-packages/google/cloud/aiplatform/models.py", line 1233, in _deploy_call
    operation_future.result()
  File "/home/Documents/projects/Text_to_Image/gcp_vertex_ai_scalable/serving-diffusion/.venv/lib/python3.9/site-packages/google/api_core/future/polling.py", line 137, in result
    raise self._exception
google.api_core.exceptions.FailedPrecondition: 400 Error: model server never became ready. Please validate that your model file or container configuration are valid. Model server logs can be found at https://console.cloud.google.com/logs/viewer?project=1027408664936&resource=aiplatform.googleapis.com%252FEndpoint&advancedFilter=resource.type%3D%22aiplatform.googleapis.com%2FEndpoint%22%0Aresource.labels.endpoint_id%3D%221472078943824642048%22%0Aresource.labels.location%3D%22asia-south1%22.

T4 wasn't available in asia-south1 region, changed it to asia-southeast-1 region,  It is working fine now, thank you.

T4 wasn't available in asia-south1 region, changed it to asia-southeast-1 region,  It is working fine now, thank you.

Hi,
I am also getting same error
google.api_core.exceptions.FailedPrecondition: 400 Error: model server never became ready. Please validate that your model file or container configuration are valid
I am using machine_type="n1-standard-4"
and region "us-central1"

@prashanaga what's the TPU type you're using? This repo is deprecated, I will note it in the read me, take a look at https://github.com/entrpn/serving-model-cards/tree/main/serving-stable-diffusion

Hi,
I am not using any TPU, just standard machine
On Wed, Oct 4, 2023 at 5:20 PM Juan Acevedo @.***>
wrote:

@prashanaga https://github.com/prashanaga what's the TPU type you're
using? This repo is deprecated, I will note it in the read me, take a look
at
https://github.com/entrpn/serving-model-cards/tree/main/serving-stable-diffusion
—
Reply to this email directly, view it on GitHub
https://github.com/entrpn/serving-diffusion/issues/3#issuecomment-1747240134,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AECOFNOU3L6MX3NUYCMUEFLX5WEEHAVCNFSM6AAAAAAQGL3BBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGI2DAMJTGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@prashanaga sorry, I meant to write GPU, not TPU. This won't run without an accelerator, you'll get those errors because the model is too large for that machine type without a GPU.

Ah, for this, it should not require it. In the console, go to the endpoint and there should be a logs link. Look at the logs there and see if there's some other error that is causing this.

Hi ,
ERROR:root:Failed to load model: Could not load the model:
/tmp/model/0001/model.pkl. Did not recognise loaded array dytpe. (Error
code: 0)
I tried with pickle and joblib but same error message.
On Thu, Oct 5, 2023 at 5:09 PM Juan Acevedo @.***>
wrote:

Ah, for this, it should not require it. In the console, go to the endpoint
and there should be a logs link. Look at the logs there and see if there's
some other error that is causing this.
—
Reply to this email directly, view it on GitHub
https://github.com/entrpn/serving-diffusion/issues/3#issuecomment-1749217368,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AECOFNPVZUWIIAVCWGZUXEDX53LS3AVCNFSM6AAAAAAQGL3BBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGIYTOMZWHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Can you share your Dockerfile so I can see where are you putting the model.pkl file?

Here is my ipnb.
On Thu, Oct 5, 2023 at 8:27 PM Juan Acevedo @.***>
wrote:

Can you share your Dockerfile so I can see where are you putting the
model.pkl file?
—
Reply to this email directly, view it on GitHub
https://github.com/entrpn/serving-diffusion/issues/3#issuecomment-1749514703,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AECOFNPQ5RLQN75NP7LTAVLX54CYJAVCNFSM6AAAAAAQGL3BBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGUYTINZQGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi,
Have you got some errors?

@component(
packages_to_install=["scikit-learn", "pandas", "joblib", "db-dtypes","xgboost","pickle5"],
base_image="python:3.9",
output_component_file="model_training.yaml",
)
def training_classmod(
data1: Input[Dataset],
metrics: Output[Metrics],
model: Output[Model]
):
from sklearn.metrics import roc_curve
from sklearn.model_selection import train_test_split
import sklearn.externals
from joblib import dump
from sklearn.metrics import confusion_matrix
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
from sklearn.ensemble import RandomForestRegressor

df_train=pd.read_csv(data1.path)
# X = data_encoded.drop(columns=['Attrition_Flag'])
# y = data_encoded['Attrition_Flag']
# X_train, X_test, y_train, y_test=df_train.drop(['BERAmountforPeriod'],axis=1),df_test.drop(['BERAmountforPeriod'],axis=1),df_train['BERAmountforPeriod'],df_test['BERAmountforPeriod']

X_train, y_train = df_train.drop(['BERAmountforPeriod'],axis=1),df_train['BERAmountforPeriod']

import xgboost as xgb
best_xgb_model = xgb.XGBRegressor(colsample_bytree=0.7,
learning_rate=0.03,
max_depth=5,
min_child_weight=4,
n_estimators=500,
subsample=0.7,
seed=42)
best_xgb_model.fit(X_train, y_train)
best_xgb_model = RandomForestRegressor(max_depth=2, random_state=0)
best_xgb_model.fit(X_train, y_train)

dump(best_xgb_model, model.path + ".joblib")

import pickle5 as pickle
with open(model.path + ".pkl", 'wb') as f:
pickle.dump(best_xgb_model, f)
print("printing model path in class mod",model.path)

@component(
packages_to_install=["google-cloud-aiplatform"],
base_image="python:3.9",
output_component_file="model_deployment.yaml",
)
def model_deployment(
model: Input[Model],
project: str,
region: str,
vertex_endpoint: Output[Artifact],
vertex_model: Output[Model]
):
from google.cloud import aiplatform
aiplatform.init(project=project, location=region)
print("*************************dir path********************",model.uri)
print("*************************dir path********************",model.uri.replace("model", ""))

deployed_model = aiplatform.Model.upload(
    display_name="custom-model-pipeline",
    artifact_uri = model.uri.replace("model", ""),
    # artifact_uri= vertex_model.path+".joblib",
    serving_container_image_uri="us-docker.pkg.dev/vertex-ai/prediction/sklearn-cpu.0-24:latest"
)
endpoint = deployed_model.deploy(machine_type="n1-standard-4")

# Save data to the output params
vertex_endpoint.uri = endpoint.resource_name
vertex_model.uri = deployed_model.resource_name

@pipeline(
# Default pipeline root. You can override it when submitting the pipeline.
pipeline_root=PIPELINE_ROOT,
# A name for the pipeline.
name="custom-pipeline",
)
def pipeline(
bq_table_1: str = "",
output_data_path: str = "data.csv",
project: str = PROJECT_ID,
region: str = REGION

):
dataset_task_1 = get_data(bq_table_1)
# dataset_task_2 = get_data_2(bq_table_2)
data_transform=data_transformation(dataset_task_1.output)
model_task = training_classmod(data_transform.output)

deploy_task = model_deployment(model=model_task.outputs["model"],project=project,region=region)

`@component(
packages_to_install=["scikit-learn", "pandas", "joblib", "db-dtypes","xgboost","pickle5"],
base_image="python:3.9",
output_component_file="model_training.yaml",
)
def training_classmod(
data1: Input[Dataset],
metrics: Output[Metrics],
model: Output[Model]
):
from sklearn.metrics import roc_curve
from sklearn.model_selection import train_test_split
import sklearn.externals
from joblib import dump
from sklearn.metrics import confusion_matrix
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
from sklearn.ensemble import RandomForestRegressor

df_train=pd.read_csv(data1.path)
# X = data_encoded.drop(columns=['Attrition_Flag'])
# y = data_encoded['Attrition_Flag']
# X_train, X_test, y_train, y_test=df_train.drop(['BERAmountforPeriod'],axis=1),df_test.drop(['BERAmountforPeriod'],axis=1),df_train['BERAmountforPeriod'],df_test['BERAmountforPeriod']

X_train, y_train = df_train.drop(['BERAmountforPeriod'],axis=1),df_train['BERAmountforPeriod']

import xgboost as xgb
best_xgb_model = xgb.XGBRegressor(colsample_bytree=0.7,
learning_rate=0.03,
max_depth=5,
min_child_weight=4,
n_estimators=500,
subsample=0.7,
seed=42)
best_xgb_model.fit(X_train, y_train)
best_xgb_model = RandomForestRegressor(max_depth=2, random_state=0)
best_xgb_model.fit(X_train, y_train)

dump(best_xgb_model, model.path + ".joblib")

import pickle5 as pickle
with open(model.path + ".pkl", 'wb') as f:
pickle.dump(best_xgb_model, f)
print("printing model path in class mod",model.path)

`
`@component(
packages_to_install=["google-cloud-aiplatform"],
base_image="python:3.9",
output_component_file="model_deployment.yaml",
)
def model_deployment(
model: Input[Model],
project: str,
region: str,
vertex_endpoint: Output[Artifact],
vertex_model: Output[Model]
):
from google.cloud import aiplatform
aiplatform.init(project=project, location=region)
print("*************************dir path********************",model.uri)
print("*************************dir path********************",model.uri.replace("model", ""))

deployed_model = aiplatform.Model.upload(
    display_name="custom-model-pipeline",
    artifact_uri = model.uri.replace("model", ""),
    # artifact_uri= vertex_model.path+".joblib",
    serving_container_image_uri="us-docker.pkg.dev/vertex-ai/prediction/sklearn-cpu.0-24:latest"
)
endpoint = deployed_model.deploy(machine_type="n1-standard-4")

# Save data to the output params
vertex_endpoint.uri = endpoint.resource_name
vertex_model.uri = deployed_model.resource_name`

`@pipeline(
# Default pipeline root. You can override it when submitting the pipeline.
pipeline_root=PIPELINE_ROOT,
# A name for the pipeline.
name="custom-pipeline",
)
def pipeline(
bq_table_1: str = "",
output_data_path: str = "data.csv",
project: str = PROJECT_ID,
region: str = REGION

):
dataset_task_1 = get_data(bq_table_1)
# dataset_task_2 = get_data_2(bq_table_2)
data_transform=data_transformation(dataset_task_1.output)
model_task = training_classmod(data_transform.output)

deploy_task = model_deployment(model=model_task.outputs["model"],project=project,region=region)`

`@component(
packages_to_install=["scikit-learn", "pandas", "joblib", "db-dtypes","xgboost","pickle5"],
base_image="python:3.9",
output_component_file="model_training.yaml",
)
def training_classmod(
data1: Input[Dataset],
metrics: Output[Metrics],
model: Output[Model]
):
from sklearn.metrics import roc_curve
from sklearn.model_selection import train_test_split
import sklearn.externals
from joblib import dump
from sklearn.metrics import confusion_matrix
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
from sklearn.ensemble import RandomForestRegressor

df_train=pd.read_csv(data1.path)

X_train, y_train = df_train.drop(['BERAmountforPeriod'],axis=1),df_train['BERAmountforPeriod']

best_xgb_model = RandomForestRegressor(max_depth=2, random_state=0)
best_xgb_model.fit(X_train, y_train)

dump(best_xgb_model, model.path + ".joblib")

print("printing model path in class mod",model.path)

`
`@component(
packages_to_install=["google-cloud-aiplatform"],
base_image="python:3.9",
output_component_file="model_deployment.yaml",
)
def model_deployment(
model: Input[Model],
project: str,
region: str,
vertex_endpoint: Output[Artifact],
vertex_model: Output[Model]
):
from google.cloud import aiplatform
aiplatform.init(project=project, location=region)
print("*************************dir path********************",model.uri)
print("*************************dir path********************",model.uri.replace("model", ""))

deployed_model = aiplatform.Model.upload(
    display_name="custom-model-pipeline",
    artifact_uri = model.uri.replace("model", ""),
    # artifact_uri= vertex_model.path+".joblib",
    serving_container_image_uri="us-docker.pkg.dev/vertex-ai/prediction/sklearn-cpu.0-24:latest"
)
endpoint = deployed_model.deploy(machine_type="n1-standard-4")

# Save data to the output params
vertex_endpoint.uri = endpoint.resource_name
vertex_model.uri = deployed_model.resource_name`

`@pipeline(
# Default pipeline root. You can override it when submitting the pipeline.
pipeline_root=PIPELINE_ROOT,
# A name for the pipeline.
name="custom-pipeline",
)
def pipeline(
bq_table_1: str = "",
output_data_path: str = "data.csv",
project: str = PROJECT_ID,
region: str = REGION

):
dataset_task_1 = get_data(bq_table_1)
# dataset_task_2 = get_data_2(bq_table_2)
data_transform=data_transformation(dataset_task_1.output)
model_task = training_classmod(data_transform.output)

deploy_task = model_deployment(model=model_task.outputs["model"],project=project,region=region)`

Here are my components

@entrpn Let me know if you need some more piece of code

@prashanaga Can you format your pipeline code so its more readable? Its a little hard to read, but I think its because you aren't saving the model to the AIP_MODEL_DIR which is required by the next step of the pipeline.
See this example: https://github.com/entrpn/entrpn-kfx/blob/main/my-training-code/trainer/train.py
Then you can deploy your model using ModelDeployOp https://codelabs.developers.google.com/vertex-pipelines-intro#5

@entrpn I got the error, It was a version mismatch of sk learn in the docker image and the one I used for training


cow ops 2

About the PR
sequel to cow ops

create entity reaction effect now attaches to grid, so cheese will parent properly.
only bad thing i have seen from this not being done is on frontier i had to nudge shuttle slightly to make cows eat fresh cheese
animal breeding thing see #18328 same thing, should prevent cows bred inside crates being deleted after crowbaring crate
animals will eat raw produce like wheat and oats (fly amanita blacklisted)

Media
trust me it work...

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

tweak: Animals can now eat raw produce like wheat and oats.

can make it possible for them to eat wheat

cheese is the ranch meta 2. wheat/oats would be good for animal feed but then it would have to be food but only animals can eat which would be sus to implement

cheese is the ranch meta 2. wheat/oats would be good for animal feed but then it would have to be food but only animals can eat which would be sus to implement

and what prevents to make so that the players could eat? let everyone have the opportunity

:trollface:

cheese is the ranch meta 2. wheat/oats would be good for animal feed but then it would have to be food but only animals can eat which would be sus to implement

I think with kudzu, there's a parameter 'stomachs' with which 2 are required to eat the 'zu. Perhaps that could be repurposed to extend to some more base forms of food? Perhaps out of scope here but a though nonetheless

oh theres literally a todo for it and implementation exists may as well add it

oh theres literally a todo for it and implementation exists may as well add it

Nice work - I can see the need for the smartfridge being made more of a priority, so botany can't just pile crap on the counter anymore - at least if there are ruminants abound.

plant bags would also do the trick for keeping plants safe

thats a great point, love to see those get used more!

It was pretty funny, while I would have liked to see everyone be cows for a day sadly that won't be happening.

moo


Added min, max, argmin, argmax to sparse csr and csc matrices

This adds min, max, argmin, and argmax functionality to cupy sparse csr and csc matrix formats. Format differences from scipy are to improve computational performance by eliminating duplicate summation and coo matrix construction time.

Thanks for the contribution!
Could you please fix the style issues?
https://travis-ci.org/cupy/cupy/builds/616874361?utm_source=github_status&utm_medium=notification

I've corrected the style issues, so it should be ready to be merged.

Hi @dloney, based on our recent experience in supporting CUB-backed reduction kernels, a corner case for this feature is to handle NaN correctly, which I think is missing in this PR. The SciPy behavior seems to propagate NaN as in NumPy, could you verify this?

Good catch @leofang . This doesn't appear to correctly handle NaNs, only real values.  From I read in SciPy's implementation, it always ravels the data array and calls NumPy's maximum() and minimum(). Do we have a special data structure that prevents this approach?

These use a reduceat rather than a standard reduce operation in the scipy stack. That allows the operation to receive slices of the sparse matrix vector that specifically target only the data in the correct/row column. When I was looking at implementing this in cupy, I didn't see an equivalent of the reduceat function, hence creating the custom kernels to allow the data to be referenced correctly.

Thank you! Glad to learn from you, @dloney.

I mirrored the behavior for the scipy code for NaNs. In the min/max functions, the presence of a NaN overrides the values and is returned. In the argmin/argmax functions, a NaN in the row/column causes a 0 index to be returned. That's not great behavior overall since it doesn't alert the user to something wrong in the function in the same way the min/max behavior does. I expanded the doc string comment to explicitly document the behavior.

@emcastillo I'm seeing that changes are requested, but everything is marked resolve. Is there anything more needed before this is ready to be accepted?

I want to go over the changes again, sorry for the delay.

Jenkins, test this please

Jenkins CI test (for commit 69aad61680fa55cce8e88f89fd5dc435e5746a5d, target branch master) failed with status FAILURE.

Please, fix jenkins error

Sorry for my slow response as I've been travelling. It looks like Jenkins is throwing an error on the scipy sparse argmin/argmax functionality, saying that those functions don't exist. When I test on my system, I get a clean exit. I'm not sure what could be causing this. Any suggestions for where I should look?

I think our scipy version in CI might be old.

Is that something a maintainer needs to address?

El El mar, 24 dic 2019 a las 0:48, Drew Allan Loney <
<EMAIL_ADDRESS>escribió:

Is that something a maintainer needs to address?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cupy/cupy/pull/2711?email_source=notifications&email_token=ADYXL7Q64FF5PD4FT22UIXLQ2DMV7A5CNFSM4JROKEBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHRMF4Q#issuecomment-568509170,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADYXL7RXD2TNUGTWDJXWOQTQ2DMV7ANCNFSM4JROKEBA
.

Ideally, we skip tests based on the package versions. I will get back to you with a solution tomorrow

Using the @testing.with_requires('scipy>=0.19') decorator in the offending tests should be enough!.

Using the @testing.with_requires('scipy>=0.19') decorator in the offending tests should be enough!

I added it into the tests. It should be ready to be rechecked.

Jenkins, test this please

Jenkins CI test (for commit 877a2aa9cf590a59f28e3382743cc46c50db9963, target branch master) failed with status FAILURE.

Can I push changes to your branch? I will fix the test issues

Please do. I'm not familiar with Jenkins testing, but it seems like it should be straightforward to get finalized.

Hi @dloney, I think of removing sum_duplicates and nonzero parameters from the methods implemented here as the SciPy counterparts don't have them. If you remember, can I ask why you added the parameters in this PR?

I wouldn't remove this functionality because it's really quite useful. There's an open pull request on scipy to implement these features there. The sum_duplicates was done as a performance enhancement. The default sum_duplicates behavior should still be the same a scipy if the user doesn't modify the keyword but the user can skip the operation if they know their matrix is canonical.
The nonzero flag allows for correct consideration of explicit zeros in the sparse matrix. This is necessary when you need to include zeros in your matrix as necessary data values. The scipy pull request uses the explicit keyword rather than the nonzero keyword. It might be beneficial to change to that syntax to avoid confusion.

@dloney, can you link the relevant scipy issues/PRs here for reference?
A smaller change would be to change these two arguments to keyword-only now that we no longer support older Python. That would at least guard against some potential future incompatibilities between CuPy/SciPy.

Here's the link: https://github.com/scipy/scipy/pull/11899
Keywords would be a good option as well. Having the explicit zeros correctly handled within the sparse matrix gives an order of magnitude speedup on operations that include them, so I think it's important to keep the functionality.

Thanks @deloney! I didn't realize the pull request on SciPy. As for the sum_duplicates parameter, the sum_duplicates method immediately returns if the sparse matrix is already canonical. Isn't the behavior enough?


Save validations to database

Approach
For saving...
{
"entityType": "SOURCE_DATASET | ATLAS | COMPONENT_ATLAS",
"entityID": "1231432423",
"atlasIDs": [] ,
"system": "CELLxGENE | CAP | HCA_DATA_REPOSITORY | DUOS",
"validationType": "INGEST | METADATA"
"description": "dunno",
"entityTitle": "A single cell census of....",
"overrideType": "ASSAY_NOT_SUPPORTED",
"overrideText": "Something",
"validationID" : "SOURCE_DATASET_INGEST_REQUIRED_IN_CELLXGENE"
"validationStatus": "FAILED  | PASSED | OVERIDDEN",
"taskStatus": "TODO | IN_PROGRESS | DONE",
"targetCompletion": "timestamp",
"resolvedAt": "timestamp",
"createdAt": "timestamp",
"updatedAt": "timestamp"
}

Make validationID and entityID compound natural primary keys. Make entity ID the first key as we will be querying by the entity ID only at times, and the index on the compound key is also useful for querying by the first key efficiently.
Let updatedAt and createdAt be determined by the DB as usual.
Let resolvedAt be set by the app.

DB. setup like..
CREATE TABLE your_table (
    column1 INT NOT NULL,
    column2 INT NOT NULL,
    data VARCHAR(100),
    PRIMARY KEY (column1, column2)
);

When persisting the validations, we can:

Freshly re-calculate the validations on the entity.
Read in all current validations for the entity by entityID.
Compare validations with the same validation to see if there are any changes and prepare a list to insert and a list to update.
Insert list - where there is no corresponding exiting validation for that validationID.
deleteList - where the validationID no longer exits in the recalculated list but exists in the persisted list.
Update list - where some field(s) have changed. (override is out of scope)

Check AtlasIds for new atlas.
check for new description
check for new title
check for new validationStatus
check for new taskSTatus
resolved - if  going from resolved to unresolved clear resolved at, if going from unresolved to resolved set timestamp, if resolved and staying resolved keep the original resolved timestamp

Delete Source Dataset
Looks like we need to modify delete source dataset to delete the validations if its the last one.

Added "targetCompletion": "timestamp", here too.

Complete


[Bug] Sometimes the compress section feature doesn't work (pre-release)

Describe the bug
If the section contains some notes in special placements, compressing it will crash the program or results in fewer notes.
Most of the time, it results in fewer notes, in some special placements, the program will crash.
To Reproduce
Steps to reproduce the behavior:

Place some notes (3 or more)
Select these notes and compress it in the right-click menu
Repeat step 2
If nothing happened, try another placement

Expected behavior
Compress it until the notes become a vertical line
Screenshots
Crash

(0:19)
Fewer

(0:12)
Additional context
Window 11 23H2 (64 x64)
3.11.0 Beta 2

Logs

___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object obj_menu:

index out of bounds request 4 maximum size is 4############################################################################################
gml_Script_selection_code_update (line 27)
gml_Script_selection_compress (line 89)
gml_Script_menu_click (line 146)
gml_Script_menu_draw (line 188)
gml_Object_obj_menu_Draw_0 (line 0)

Does nbs has auto save? 😭

Related to #44

Duplicate of #44


500 Status/Error Code

I'm only getting 500 status/error code when running in Codespaces and locally via Docker.  I've tried increasing maxRetry to 50 with no luck.  Not sure how to troubleshoot, any help is appreciated!


Delete contract_class entirely

Which components does the task require to be changed? (think hard pls)
snforge
Description
It can be replaced with a trait on ClassHash instead, since it does not provide any stateful interactions and is a simple wrapper over it

Good day, I think I'll hop on this

Not removing wrappers on ContractClass/File structs
Rationale
Initially, we wanted to remove the structs as mentioned in these issues:
https://github.com/foundry-rs/starknet-foundry/issues/1945
https://github.com/foundry-rs/starknet-foundry/issues/1949
In essence, they don't bring anything special at this moment, apart from that you have to import them, construct them, and call methods of the trait implemented on them (which also needs to be imported).
Technical overview:
In fact, we don't want to remove this, because:

in the future we may need to implement something extra on the struct (an external trait type Into - and we can't do this in such case)
we add additional context through the struct, and ByteArray/ClassHash can be confusing when used with these traits (its significance is not clearly defined in a given context)

User perspective:
Nothing changes
Implementation plan:
Related issues to be closed.


English Issue with what-is-kubernetes.md

This is a...

[ ] Feature Request
[*] Bug Report

Problem:
"Kubernetes is not:" section - first bullet - "Kubernetes does not limit the types of applications supported. It does not ..."
There are bullets within that bullets. Or there should be. Or the section should be rethought.  The "not/doesn't" connotation doesn't clearly associate with those implied sub-bullets.
It is also perilously close to double-negatives in places.
Proposed Solution:
Redo section somehow.
Page to Update:
https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/

@bgrant0607 do you have any plans to revamp what-is-kubernetes page?

I simplified this bullet in #7349, so hopefully addressed.


Aggregate platform logs

As an SRE, I should be able to utilize aggregated platform logs in a system such as ELK.
Acceptance Criteria

[ ] CF component logs are sent to ELK via syslog_daemon_config

We're going to wait on this until we can say that our logsearch ELK is stable and HA.

@sushiandbeer @jmcarp can we close this?


[BUG] Headless mode not loading profile

Seems like headless mode is not loading profile. It does the entire sequence in every run:
=> Script started
[*] => Downloading webdriver for your version of Chrome
[*] => Loading Instagram
[*] => Running in headless mode
[*] => Delay: 2-15 secs
[*] => Max. comments to like: 2
[*] => Using profile: /Users/xx/Library/Application Support/Google/Chrome/Default
[*] => Launching Instagram
[*] => [launch_insta]: Attempt - 1
[*] => Checking if user is already logged in
[*] => [Attempt# 1] Validating login

[*] => Failed to validate login
[*] => [Attempt# 2] Validating login
[*] => Failed to validate login
[*] => [Attempt# 3] Validating login
[*] => Failed to validate login
[*] => User not logged in. Attempting to login
[*] => Could not locate 2 factor authentication screen
[*] => Could not locate 2 factor authentication screen
[*] => Validating login
[*] => [Attempt# 1] Validating login
[*] => Logged in successfully

The first time you run it with a profile, you're required to enter your 2-factor auth code, even if the profile you're using has the credentials already saved.
Once you enter your code, script will save the login for the next time (click on 'Save Login info').
The next time you run the script with profile, script can land directly on the user's page, skipping login and 2-factor auth screen.
It's working for me.
[] => Script started
[] => Downloading webdriver for your version of Chrome
[] => Loading Instagram
[] => Running in headless mode
[] => Delay: 1-10 secs
[] => Using profile: /home/user/.config/google-chrome/Profile 1
[] => Launching Instagram
[] => [launch_insta]: Attempt - 1
[] => Checking if user is already logged in
[] => [Attempt# 1] Validating login
[] => Setting target to: ed_garlands
[] => Opening target ed_garlands
[] => [open_target]: Attempt - 1
[] => Finding followers of ed_garlands
[] => Restricting followers search to: 2
[] => Opening followers list
[] => Getting updated list of username divs
[] => StaleElementReferenceException exception occured while capturing username links
[] => Capturing div containing followers' list
[] => Processing userdiv range: 0 - 22
[*] => Total username count: 2

I think it happens when a new profile file is created, even if the Chrome profile is the same. It's a minor issue anyway, maybe is something local


Include instructions about how to change the init.py for the packaging exercise

I had to add an import  <username>diffusion2Dstatement to init.py for the module to work as expected.

Hi @MagnusOstertag,
An import statement in the file __init__.py should not be required in this exercise. If you have opened a pull request for submission, can you point me to it? I will have a look at your packaged code then

This is my pull request.

@MagnusOstertag I see the code and packaging is done as per the requirement. How do you call the function to solve the problem finally? Can you describe it? I think the way you call the function is leading to the need to add the statement in __init__.py

Hi @IshaanDesai,
@andreichalapco pointed out to me that also according to the docs it can be done without adding code to __init__ by writing packages=["<username>diffusion2D"].

you must explicitly list all packages in packages: the Distutils will not recursively scan your source tree looking for any directory with an __init__.py file.


Scipy can't import _ufuncs

<IP_ADDRESS>
Commercial: None
Python: 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 15:37:01) [MSC v.1916 64 bit (AMD64)]
Flavor: Anaconda Python
Executable: C:\Users\jeans\miniconda3\envs\fresh\python.exe
OS: Windows 10
Arch: x86_64

Scipy Version: 1.7.1

Even with this line during compile
Nuitka-Plugins:INFO: implicit-imports: Implicit dependencies of module 'scipy.special' added 'scipy.special._ufuncs_cxx'.
I get this at runtime:
  File "C:\Users\jeans\project\scipy\interpolate\__init__.py", line 166, in <module scipy.interpolate>
  File "C:\Users\jeans\project\scipy\interpolate\interpolate.py", line 11, in <module scipy.interpolate.interpolate>
  File "C:\Users\jeans\project\scipy\special\__init__.py", line 643, in <module scipy.special>
ImportError

This is the faulty line 643 in \scipy\special_init_.py
from . import _ufuncs
Which has not changed in 2 years.
The file _ufuncs.pyd has been properly copied by Nuitka to the Scipy/special folder in the distribution.
I can't figure out this one and need some help please.

I just wanted to mention that I already use --standalone, so the workaround from the issue in October won't work here.

Same issue confirmed with Scipy 1.6.3

Working by downgrading to 1.3.1
By the way, I think that I had this issue almost 2 years ago, which is the reason why my last successful compile was with that same version of Scipy. It was still Windows and Anaconda, but it was on a Windows 7 machine.

@math-artist what is the reproducer there, I think I have compiled scipy repeatedly with success, i guess it's only an import?

On my side it's just importing interpolate like that:
from scipy import interpolate
which calls the Scipy.Special init method, and fail at the line:
from . import _ufuncs
from ._ufuncs import *

My working version of Scipy (1.3.1) does not have the first line from . import _ufuncs but has the second line, and the pyd file is different.Versions of _ufuncs pyd that failed for me also have a similar size of 777 kb while 1.3.1 is about 1 mb, so this could be caused by code in the pyd file?

Ok, I have done a lot of work for the anti-bloat plugin and scipy, and never encountered that one, but I added that import to it, lets see, I should reproduce it now I guess.

Works for me just fine on Linux, no surprise there. Can you confirm you are using the numpy plugin indeed?

Reminder to self, I should not waste time on issues without a command line included.

I will try to provide an example to reproduce later.

@math-artist you will be welcome, please then open a new issue and fill out the template accurately


Feature/color swatches page

Prepare an overview page to showcase all color variables that available in style guide

BREAKING CHANGE:
Add page link to site menu

As soon as the dev picking up the color name listed here, I think they don't need to remember the HEX code unless new palette added.
Further updates might be one universal name set for accent/CTA and the component and lookup the theme to change the color value accordingly.


Allow to override download url (kafka_mirror)

Description
There are some version unavailable under uvigo repositories. Is not possible to install Kafka v2.1.1 because is not present in that repo.
kafka_mirror variable cannot be overwritten because is declared in vars/main.yml file and has higher precedence than grup vars.
That versions could be found on Apache Historical Archive: https://archive.apache.org/dist/kafka/
Why is this needed?
Because actually is not possible to install versions < 2.2.0 using uvigo mirror
Additional Information
http://apache.uvigo.es/kafka/

merged!


Added: Suggestion for using vendor in comments and README.md

As suggested earlier.
Example case of using a vendor role (from a collection). See also the little change in the  README.md.
So setup keeps hardcoded as default case but when the wish is of using a vendor it can quickly become implemented.

Took a slightly different approach to documentation in #2. I name it "upstream" instead of "vendor" as I think this is a bit more clear.


cable_ready setup and users csv export

Really nice, just one comment about the contents of the Users CSV. It would be more useful to have a column header per user group e.g. Band, Team, Directorate rather than User group names. (sorry this wasn't clear from the PT story). This can be a separate story though so we can get this deployed and tested on heroku.

ok, add a story please about it


No warnings (or errors) when using "severity": "warning" for rule: comment-format

Bug Report

TSLint version: 5.10.0
TypeScript version: 2.8.3
Running TSLint via: CLI

tslint --project tsconfig.json -c tslint.json -t stylish "src/**/*.ts"

TypeScript code being linted
// console.log('Show last project:');
// console.log(JSON.stringify(projects.pop(), null, 2));

with tslint.json configuration:
{
  "extends": [
    "tslint-xo/space",
    "tslint-config-prettier"
  ],
  "rules": {
    "comment-format": {
      "severity": "warning"
    }
  }
}

with tsconfig.json configuration:
{
   "compilerOptions": {
     "allowSyntheticDefaultImports": true,
     "lib": [
         "es5",
         "es6",
         "es7"
      ],
      "target": "es5",
      "module": "commonjs",
      "moduleResolution": "node",
      "outDir": "./build",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "sourceMap": true,
      "sourceRoot": "./src",
      "strictNullChecks": true
   }
}

Actual behavior
No error (and no warning) regarding the rule comment-format.

Expected behavior
Showing a warning like:
path/to/myFile.ts:1:3
WARNING: 1:3   comment-format  comment must start with uppercase letter
WARNING: 2:3   comment-format  comment must start with uppercase letter

cc/ @nicolaisueper

@mischah i think you also need to specify some format options? my hunch is that by default the rule has no config so it essentially behaves like it's off. try adding options: ["check-lowercase"] to the config.

💀 It's time! 💀
TSLint is deprecated and no longer accepting pull requests other than security fixes. See #4534. ☠
We recommend you instead use typescript-eslint to lint your TypeScript code with ESLint. ✅
👋 It was a pleasure open sourcing with you!

🤖 Beep boop! 👉  TSLint is deprecated 👈 (#4534)  and you should switch to typescript-eslint! 🤖
🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋


Error adding library for Xamarin iOS projects

Issue:
In VS 2015 RC - After creating a new Xamarin iOS project for iPhone, I am unable to add the Simple.oData.Library PCL as a reference to the project. See the picture below for error details.

In VS 2013 Update 4 -  After creating a new Xamarin iOS project for iPhone, I am able to add the Simple.oData.Library PCL as a reference to the project, but as soon as I want to build, I get errors. See the picture below for error details.

Hi,
Thank you for a great issue report. I haven't tried Simple.OData.Client with VS 2015 and .NET 4.6, so I am not sure if this can have something to do with the error. Do you have a chance to try with VS 2013? In addition, you can check if you are able to add the reference to HttpClient (Microsoft.Net.Http) that Simple.OData.Client uses and that references Microsoft.Bcl. If you are able to add the reference, you can continue and refefence the Simple.OData.Client. If not, then I guess this is a problem with referencing HttpClient. Please let me know how it goes.

Hi Vagif,
Thanks for replying so quickly.
I had already tried in VS2013 Update 4 (as mentioned in my previous post). The result was that I was able to add the Simple.oData.Client PCL to the project, but it failed during the build.
After your reply, I tried adding the "Microsoft.Net.Http" to the project. It got added correctly and also I had no issues during build.

HI Vagif,
Just for your info, in VS2013 Update 4, the errors that I get during the build after adding the Simple.oData.client successfully to the Xamarin iOS phone project, are as follows:
-- An assembly with the same identity 'System.IO, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.
-- An assembly with the same identity 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.
-- An assembly with the same identity 'System.Threading.Tasks, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.

I think I've seen these error before. I will try to reproduce them later tonight, in the mean time you can try (in VS 2013 at least) to remove references to the mentioned assemblies if you see them in the reference list. There can occur some confusion for certain PCL profiles.
When it comes to VS 2015, after you successfully added Microsoft.Net.Http, did you try adding Simple.OData.Client? Did it fail with the same error?

It can also help me investigating the error if you can send me a failing project (or an extract from it) to<EMAIL_ADDRESS>

Apparently, when it comes to VS 2015 RC, this is NuGet 3.0 bug. See this thread:
http://forums.xamarin.com/discussion/40709/unable-to-add-json-net-to-a-xamarin-ios-project-under-visual-studio-2015


Sketch of fix for delegate private method stubbing

A sketch of a fix for https://github.com/rspec/rspec-mocks/issues/658
I paired on this with @bestie. It seems to solve the problem, but I'm really not sure how solid this is a solution. The basic problem here is that when asking a delegator if it has a particular method, it raises a warning if that method is a private method that is defined on Kernel. The solution is to check if the delegator object itself implements that method, and if it does, take that implementation. Otherwise we take the implementation off kernel itself. I'm not sure how I feel about this at all, but the fix does seem to deal with the issue.

Was this issue ever fixed?


No longer have cellular signal

Describe the bug

Cellular connection always has 0 bars
How to reproduce or log data

Attempt to connect while in range of cellular service and not on WiFi. Restarting does not change bars.
Device/Version information (please complete the following information):

Device: Comma 3 Cross Country
Dongle ID: 0fa272552c614918
Route: n/a
Timestamp: n/a
Version: openpilot 0.8.8, Subaru-community c860e9bc3a, AGNOS 1.4
Car make/model: 2016 Subaru Outback 3.6R

Additional context
Cellular connection worked for approximately 1 week and stopped working. Restarting does not resolve the issue. Exact date of failure unknown.

Duplicate of https://github.com/commaai/openpilot/issues/22115. Cherry-pick 84d37141a8edb2281bc56fe6556c7164a2f692d2 or run release3 to fix.


Chat to Lua IO system is now cross-platform.


Added userAgent to setOption parameters

Updating to include this commit https://github.com/Schmavery/facebook-chat-api/commit/7470cfe9b29d30f082f76cacc08748e4e19e8c15

Thanks


Event Requested for Codeunit 333 Req.Wksh - Make Order/Code Procedure

local procedure "Code"(var ReqLine: Record "Requisition Line")
.
.
.
ReqLine3.SetRange("Worksheet Template Name", "Worksheet Template Name");
ReqLine3.SetRange("Journal Batch Name", "Journal Batch Name");
--------------We would like to add more SETRANGE filter here  (ReqLine, ReqLine3)
if not ReqLine3.FindLast then
if IncStr("Journal Batch Name") <> '' then begin
ReqWkshName.Get("Worksheet Template Name", "Journal Batch Name");
NewReqWkshName := true;
OnCheckNewNameNeccessary(ReqWkshName, NewReqWkshName);
if NewReqWkshName then begin
ReqWkshName.Delete();
ReqWkshName.Name := IncStr("Journal Batch Name");
if ReqWkshName.Insert() then;
"Journal Batch Name" := ReqWkshName.Name;
end;
end;
Thanks very much.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Filament Panel

:rocket: This pull request is included in v1.0.0. See Release 1.0.0 for release notes.

:rocket: This pull request is included in v1.0.0. See Release 1.0.0 for release notes.


Feature/reload

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


python37Packages.s3fs: 0.2.1 -> 0.2.2

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-s3fs/versions.
meta.description for python37Packages.s3fs is: '"S3FS builds on boto3 to provide a convenient Python filesystem interface for S3."'.
meta.homepage for python37Packages.s3fs is: '"https://github.com/dask/s3fs/"

Checks done (click to expand)

built on NixOS
Warning: a test defined in passthru.tests did not pass
/bin/sh passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 0.2.2 with grep in /nix/store/p54fbm7xijrl3qzj463xh1k2v3ki3a27-python3.7-s3fs-0.2.2
directory tree listing: https://gist.github.com/57fb76f10fd614a6ce5b6b1a2fcbd9fa
du listing: https://gist.github.com/945b2922d460ea192e632867bbc4757a

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)
2 package rebuild(s)
2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
python27Packages.s3fs
python37Packages.s3fs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/p54fbm7xijrl3qzj463xh1k2v3ki3a27-python3.7-s3fs-0.2.2 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A python37Packages.s3fs https://github.com/r-ryantm/nixpkgs/archive/a5311930e1d398c591e88060383b69b5b3966741.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/p54fbm7xijrl3qzj463xh1k2v3ki3a27-python3.7-s3fs-0.2.2
ls -la /nix/store/p54fbm7xijrl3qzj463xh1k2v3ki3a27-python3.7-s3fs-0.2.2/bin

cc @teh for testing.

lgtm


Option to select interface for speedtest

Hi
Would it be possible to add a --interface argument or something to the script, to route the speedtest traffic through a specified interface? The --source doesn't necessarily work, for example on a system where the default gateway is used by all interfaces, without the exception of a few IP address that will be passed through eth1, eth2 and so on.

The method of binding to an interface in python is to bind to an IP address on a specific interface.  I am not aware of another way to achieve this.


Addind feature to apply forces in local space like cannon es

Hey!
Can you explain a bit more what you are expecting from this?

@wiledal Yeah sure, like use-cannon library, when we bind physics world to a three JS object, the API that cannon returns has methods for applyLocalImpulse and applyLocalForce which are applied based on the local space of the object not world space.

@AmirHo3einJS not sure what you mean by local space and world space but you can actually apply force on a rigidbody. From your ref on the Rigidbody component just call colliderRef.current.applyImpulse(new Vector3(0, 1, 0));
If you want more documentation, you can in fact see the original Javascript documentation:
https://rapier.rs/docs/api/javascript/JavaScript3D
And the the RigidBody class
https://rapier.rs/javascript3d/classes/RigidBody.html


Textarea hints and error messages are not read out if a value is already present (JAWS/Chrome)

Description of the issue
When using JAWS, moving focus to a textarea that already has a populated value does not read out any elements associated with the textarea by aria-describedby.
Steps to reproduce the issue

Create an instance of the textarea or character count component that: (a) has a default value of any length; (b) has an associated hint, error message, or both; and (c) does not have a threshold, if it's a character count.
With JAWS running, navigate to the page in Chrome.
Apply focus to the textarea using either keyboard or mouse.
Listen to what JAWS reads out.

An existing example can be found in the character count's error state example in the design system. I've also made a bare minimum example as a fiddle.
Actual vs expected behaviour
Actual behaviour: JAWS will read out the input label and that it is a textarea that currently contains text.
Expected behaviour: JAWS will read out the label, that it is a textarea that currently contains text, plus any hints and error messages associated with the input via aria-describedby.
The issue does not appear to occur with <input> elements (be they empty or populated), or with empty <textarea>s.
Environment

Operating system: Windows 10
Browser: Google Chrome
Browser version: 99
GOV.UK Frontend Version: 4.0.1

Tested in both JAWS 2021.2103.174 and JAWS 2022.2202.38.
I could not reproduce this in Firefox or IE when using JAWS, and not in any browser when using NVDA 2021.2.

This would seem to be a known issue in JAWS.
https://github.com/FreedomScientific/VFO-standards-support/issues/484


fix S3 ACL issue

Fix ACL issue based on this PR to original Sysdig terraform module - https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/pull/167/files

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: maratsal
Once this PR has been reviewed and has the lgtm label, please assign jasondellaluce for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

6e6e34d fix S3 ACL issue

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Welcome @maratsal! It looks like this is your first PR to falcosecurity/falco-aws-terraform 🎉

Hi @maratsal. Thanks for your PR.
I'm waiting for a falcosecurity member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/remove-lifecycle stale

/ok-to-test

LGTM label has been added.  Git tree hash: fee4a9eac068b2473767a2c30b8e6393e6a1487b

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: maratsal, mstemm
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [mstemm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Publish 0.3.3a1 on rc channel

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

I just realized that you can change the base after a PR has already been opened, sorry for the spam

@conda-forge-admin, please restart ci