Default Theme not set-up correctly

Hi.
This is a Getting Started issue. With Sulu 1.0.12. On a clean install, having followed the guide.
When accessing the website — just / — there's a cryptic error:
PHP Fatal error:  Call to a member function getTheme() on a non-object in .../sulu-standard/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/ExceptionController.php on line 67

Tracking this down it comes from Sulu\Component\Webspace/Webspace::getTheme, which is just a getter for $this->theme — which is obviously null here.
What I can't see is why?
On #516 @danrot commented:

... It basically means that there is some error in your xml config file in app/Resources/webspaces/.

The relevant section from my XML file there is this:
    <theme>
        <key>default</key>
        <default-templates>
            <default-template type="page">default</default-template>
            <default-template type="homepage">overview</default-template>
        </default-templates>

        <error-templates>
            <error-template default="true">ClientWebsiteBundle:views:error.html.twig</error-template>
            <error-template code="404">ClientWebsiteBundle:views:error404.html.twig</error-template>
        </error-templates>
    </theme>

This is just the default that comes from working through the install guide:
 cp app/Resources/webspaces/sulu.io.xml.dist app/Resources/webspaces/sulu.io.xml

... and so on.

Having got here, at this point I was expecting a basic non-styled set of templates that would at least allow the pages created in the admin to render — but that seems to be missing.
Is there a bundled theme? If yes, how do I get it to work? If not, what's the minimum needed? And, for the issue, can this be added to the guide?
Thanks for the help!

the problem normally with this exception is that there is no valid webspace ... can you post the full webspace.xml file?

Hi @wachterjohannes — Thanks for the quick reply! Sure...
<?xml version="1.0" encoding="utf-8"?>
<webspace xmlns="http://schemas.sulu.io/webspace/webspace"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://schemas.sulu.io/webspace/webspace http://schemas.sulu.io/webspace/webspace-1.0.xsd">

    <name>sulu.io</name>
    <key>sulu_io</key>

    <localizations>
        <localization language="en" shadow="auto">
            <localization language="en" country="us" shadow="auto"/>
        </localization>
        <localization language="de">
            <localization language="de" country="at"/>
        </localization>
    </localizations>

    <theme>
        <key>default</key>
        <default-templates>
            <default-template type="page">default</default-template>
            <default-template type="homepage">overview</default-template>
        </default-templates>

        <error-templates>
            <error-template default="true">ClientWebsiteBundle:views:error.html.twig</error-template>
            <error-template code="404">ClientWebsiteBundle:views:error404.html.twig</error-template>
        </error-templates>
    </theme>

    <navigation>
        <contexts>
            <context key="main">
                <meta>
                    <title lang="de">Hauptnavigation</title>
                    <title lang="en">Mainnavigation</title>
                </meta>
            </context>
            <context key="footer">
                <meta>
                    <title lang="de">Footernavigation</title>
                    <title lang="en">Footernavigation</title>
                </meta>
            </context>
        </contexts>
    </navigation>

    <portals>
        <portal>
            <name>sulu.io</name>
            <key>sulu_io</key>
            <resource-locator>
                <strategy>tree</strategy>
            </resource-locator>

            <localizations>
                <localization language="en" default="true"/>
                <localization language="de"/>
            </localizations>

            <environments>
                <environment type="prod">
                    <urls>
                        <url language="en">sulu.us</url>
                        <url language="de">www.sulu.io</url>
                        <url>sulu.lo/{localization}</url>
                    </urls>
                </environment>
                <environment type="stage">
                    <urls>
                        <url>stage.sulu.lo/{localization}</url>
                        <url>sulu.lo/{localization}</url>
                    </urls>
                </environment>
                <environment type="dev">
                    <urls>
                        <url>sulu.lo/{localization}</url>
                        <url language="en">localhost</url>
                    </urls>
                </environment>
            </environments>
        </portal>
    </portals>
</webspace>

This is just the copied app/Resources/webspaces/sulu.io.xml.dist — not edited. Everything in the admin side is working well.

how do you try to access the website? with sulu.lo or different?

NO. (Grrrr.)
http://<IP_ADDRESS>:8081 — You're going to tell I have to set that right now aren't you?

yeah you have to add this into you urls config (: ip addresses should work to! but if you try localhost:8001 it should work everything (:

OK — I get the same error for http://localhost:8081

How do run Sulu? On apache, nginx or using the app/console server:run command?

I've nginx rewriting and then proxying to the PHP development server.

I am not sure if I understand correctly... Did you use the file at http://docs.sulu.io/en/latest/book/getting-started/vhost.html#nginx and are you using php-fpm? If not, can you maybe post your nginx configuration?

I'm not using FastCGI. But I am using nginx to do the rewriting (because it's simpler than writing a router script for the development server).
Here's the nginx conf, just adapted from the example in the guide:
upstream phpdev {
    server <IP_ADDRESS>:4000;
    # server unix:/var/run/php5-fpm.sock; #for PHP-FPM running on UNIX socket
}

server {
    listen 8081;

    server_name sulu.local;
    root /Users/carlton/Documents/Sulu/sulu-standard/web;

    error_log /Users/carlton/var/log/sulu/error.log;
    access_log /Users/carlton/var/log/sulu/access.log;

    # strip app.php/ prefix if it is present
    rewrite ^/app\.php/?(.*)$ /$1 permanent;

    location /admin {
        index admin.php;
        try_files $uri @rewriteadmin;
    }

    location @rewriteadmin {
        rewrite ^(.*)$ /admin.php$1 last;
    }

    location / {
      index website.php;
      try_files $uri @rewritewebsite;
    }

    # expire
    location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
        try_files $uri /website.php/$1;
        access_log off;
        expires 30d;
        add_header Pragma public;
        add_header Cache-Control "public";
    }

    location @rewritewebsite {
        rewrite ^(.*)$ /website.php/$1 last;
    }

    # pass the PHP scripts to FastCGI server from upstream phpfcgi
    location ~ ^/(website|admin|app|app_dev|config)\.php(/|$) {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        # http://stackoverflow.com/a/19637196
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header Host $http_host;
        proxy_redirect off;

        proxy_pass   http://phpdev;

#         include fastcgi_params;
#         fastcgi_pass phpdev;
#         fastcgi_buffers 16 16k;
#         fastcgi_buffer_size 32k;
#         fastcgi_split_path_info ^(.+\.php)(/.*)$;
#         fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
#         fastcgi_param  SYMFONY_ENV dev;
#         fastcgi_param  HTTPS off;
    }
}

And then I run PHP like so:
.../sulu-standard/web $ php -S <IP_ADDRESS>:4000

hmmm ... i have two suggestions ...

"Host" header will not be set when proxying (could you check this with a print_r($_SERVER) in web/website.php
try to run with php -S localhost:4000 and change this in your nginx config

HTTP_HOST is set and follows the requested URL as expected. e.g.  [HTTP_HOST] => localhost:8081 or [HTTP_HOST] => <IP_ADDRESS>:8081 — this is what the  proxy_set_header directive is for.
No effect changing to php -S localhost:4000.
Full $_SERVER:
Array
(
    [DOCUMENT_ROOT] => /Users/carlton/Documents/Sulu/sulu-standard/web
    [REMOTE_ADDR] => <IP_ADDRESS>
    [REMOTE_PORT] => 54784
    [SERVER_SOFTWARE] => PHP 5.5.27 Development Server
    [SERVER_PROTOCOL] => HTTP/1.0
    [SERVER_NAME] => localhost
    [SERVER_PORT] => 4000
    [REQUEST_URI] => /website.php/
    [REQUEST_METHOD] => GET
    [SCRIPT_NAME] => /website.php
    [SCRIPT_FILENAME] => /Users/carlton/Documents/Sulu/sulu-standard/web/website.php
    [PATH_INFO] => /
    [PHP_SELF] => /website.php/
    [HTTP_X_FORWARDED_FOR] => <IP_ADDRESS>
    [HTTP_X_FORWARDED_PROTOCOL] => http
    [HTTP_HOST] => localhost:8081
    [HTTP_CONNECTION] => close
    [HTTP_DNT] => 1
    [HTTP_COOKIE] => __utma=111872281.1056614540.1392805885.1392805885.1396254906.2; csrftoken=WPfPPdnz8ZVINNTPq4PWO5QnrRZfiQYM
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
    [HTTP_ACCEPT_LANGUAGE] => en-us
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_CACHE_CONTROL] => max-age=0
    [REQUEST_TIME_FLOAT] =><PHONE_NUMBER>.6985
    [REQUEST_TIME] =><PHONE_NUMBER>
)

hmmis it normal that the host includes the port? i would think there should only stand localhost ...

thats probably the error with sulu here ...

Well I tried that...
I put this at the top of website.php:
$_SERVER["HTTP_HOST"] = 'localhost';

Same getTheme error. (And the Admin works...)
Is there anyway of hardcoding the value for theme so I can bypass this for the moment? (Or... where might I insert such a hack?)

the problem is not the null theme ... there is a null webspace here ...

he does not find a webspace for the url here but i have no idea why (: maybe @danrot has another idea

are you in dev mode? because only in dev the URL localhost is configured?

Yes. Of course.
I set nginx to set the Host header to localhost — without the port — no change. Same error.

are you in dev mode? because only in dev the URL localhost is configured?

MAGIC! OK. Thank you. Sorry for the oversight there.

do you know only have changed the Environment or anything else in you nginx config?

No, literally just the SYMFONY_ENV — I feel silly about that. :)
The nginx proxy_pass settings as pasted (including port number as part of the Host header) works as desired.

it would be perfect if you would create a docs entry "How to setup a Development environment" with your configurations (: sounds maybe interesting for a lot of people!

if you want to have "live" support you can join our slack channel (: you only have to put in your contact informations on our website www.sulu.io (scoll down) we will add you soon to the channel!

@wachterjohannes — Thanks. I opened #519 with my thoughts. I'll follow up with my dev setup in a PR to the docs. I did fill in the form for the Slack channel.

no problem we love to help - if we can (: we will welcome you in our channel soon!

Hi,
A little precision here : If you are using a server name with a port number as the url of your dev website, you should configure your webpace urls with the server name only.
For example, My dev website is on http://localhost:8080 so my webspace is configure with the following urls :
<portals>
<portal>
<name>sulu-test
<key>sulutest
<resource-locator>
<strategy>tree
</resource-locator>
        <localizations>
            <localization language="en" default="true"/>
            <localization language="fr"/>
        </localizations>

        <environments>
            <environment type="prod">
                <urls>
                    <url language="fr">localhost</url>
                </urls>
            </environment>
            <environment type="stage">
                <urls>
                    <url language="fr">localhost</url>
                </urls>
            </environment>
            <environment type="dev">
                <urls>
                    <url language="fr">localhost</url>
                </urls>
            </environment>
        </environments>
    </portal>
</portals>


No example for how to apply newTheme as the CSS to your tab content's root HTML element ().

[Enter feedback here]
Apply the CSS to your tab content's root HTML element ().
How do I do this?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 29e90229-289e-2035-3b42-5cb9cce14efe
Version Independent ID: a2aee4b8-93b9-bda7-f000-8f41b4513647
Content: Get started - Build a personal tab - Teams
Content Source: msteams-platform/build-your-first-app/build-personal-tab.md
Product: msteams
GitHub Login: @heath-hamilton
Microsoft Alias: lajanuar

To change the Theme according to the user theme, first you need to check the current theme of the user. You need to add the JavaScript code to your page as documented here. Could you please share in detail what your looking for?

To change the Theme according to the user theme, first you need to check the current theme of the user. You need to add the JavaScript code to your page as documented here. Could you please share in detail what your looking for?

After step 3, “Apply the CSS to your tab content’s root HTML element
().”, it would be nice if you could show specifically how to do that.
I’m not familiar with React syntax and was just trying to follow along with
the tutorial and didn’t know how to apply the style created in newTheme. I
figured it out by googling that you do so like this:

On Wed, Jan 27, 2021 at 10:36 PM Nikitha-MSFT<EMAIL_ADDRESS>wrote:

To change the Theme according to the user theme, first you need to check
the current theme of the user. You need to add the JavaScript code to your
page as documented here
https://docs.microsoft.com/en-us/microsoftteams/platform/build-your-first-app/build-personal-tab#match-theme-styles.
Could you please share in detail what your looking for?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/msteams-docs/issues/2684#issuecomment-768793553,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADDPBTMMEOF7OMAAQBBADBDS4DSVDANCNFSM4WV7L4JQ
.

After step 3, “Apply the CSS to your tab content’s root HTML element
().”, it would be nice if you could show specifically how to do that.
I’m not familiar with React syntax and was just trying to follow along with
the tutorial and didn’t know how to apply the style created in newTheme. I
figured it out by googling that you do so like this:

On Wed, Jan 27, 2021 at 10:36 PM Nikitha-MSFT<EMAIL_ADDRESS>wrote:

To change the Theme according to the user theme, first you need to check
the current theme of the user. You need to add the JavaScript code to your
page as documented here
https://docs.microsoft.com/en-us/microsoftteams/platform/build-your-first-app/build-personal-tab#match-theme-styles.
Could you please share in detail what your looking for?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/msteams-docs/issues/2684#issuecomment-768793553,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADDPBTMMEOF7OMAAQBBADBDS4DSVDANCNFSM4WV7L4JQ
.

Hi @pundj,  Thank you for the insights on document. Did that work for you by adding the style to  tag. If not, please try by replacing the below code in Tab.js file :
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import React from 'react';
import './App.css';
import * as microsoftTeams from "@microsoft/teams-js";

/**
 * The 'PersonalTab' component renders the main tab content
 * of your app.
 */
class Tab extends React.Component {
  constructor(props){
    super(props)
    this.state = {
      context: {}
    }
  }

  //React lifecycle method that gets called once a component has finished mounting
  //Learn more: https://reactjs.org/docs/react-component.html#componentdidmount
  componentDidMount(){
    microsoftTeams.initialize();
    // Get the user context from Teams and set it in the state
    microsoftTeams.getContext((context, error) => {
      this.setState({
        context: context
      });
    });
    // Next steps: Error handling using the error object
    microsoftTeams.registerOnThemeChangeHandler(theme => {
      if (theme !== this.state.theme) {
        this.setState({ theme });
      }

    });
  }

  render() {
    const isTheme = this.state.context.theme;
      let userName = Object.keys(this.state.context).length > 0 ? this.state.context['upn'] : "";
      let newTheme;

if (isTheme === "default") {
  newTheme = {
    backgroundColor: "red",
    color: "red"
  };
} else {
  newTheme = {
    backgroundColor: "green",
    color: "green"
  };
}
      return (

Important Contacts

Help Desk: <a href="mailto:support<EMAIL_ADDRESS>
Human Resources: <a href="mailto:hr<EMAIL_ADDRESS>
Facilities: <a href="mailto:facilities<EMAIL_ADDRESS>

      );
  }
}
export default Tab;

Yes, it worked. Thanks!
On Thu, Feb 4, 2021 at 6:55 AM Mallipriya-MSFT<EMAIL_ADDRESS>wrote:

Hi @pundj https://github.com/pundj, Thank you for the insights on
document. Did that work for you by adding the style to
tag. If not, please try by replacing the below code in Tab.js file :
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import React from 'react';
import './App.css';
import * as microsoftTeams from "@microsoft/teams-js";
/**

The 'PersonalTab' component renders the main tab content
of your app.
*/
class Tab extends React.Component {
constructor(props){
super(props)
this.state = {
context: {}
}
}

//React lifecycle method that gets called once a component has finished mounting
//Learn more: https://reactjs.org/docs/react-component.html#componentdidmount
componentDidMount(){
microsoftTeams.initialize();
// Get the user context from Teams and set it in the state
microsoftTeams.getContext((context, error) => {
this.setState({
context: context
});
});
// Next steps: Error handling using the error object
microsoftTeams.registerOnThemeChangeHandler(theme => {
if (theme !== this.state.theme) {
this.setState({ theme });
}
});

}
render() {
const isTheme = this.state.context.theme;
let userName = Object.keys(this.state.context).length > 0 ? this.state.context['upn'] : "";
let newTheme;
if (isTheme === "default") {
newTheme = {
backgroundColor: "red",
color: "red"
};
} else {
newTheme = {
backgroundColor: "green",
color: "green"
};
}
return (

Important Contacts

Help Desk: <a href="mailto:support<EMAIL_ADDRESS>
Human Resources: <a href="mailto:hr<EMAIL_ADDRESS>
Facilities: <a href="mailto:facilities<EMAIL_ADDRESS>

  );

}
}
export default Tab;
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/msteams-docs/issues/2684#issuecomment-773284186,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADDPBTOM5ADTYJXPMA25A7LS5KKMHANCNFSM4WV7L4JQ
.


Contributor terms are just TODO

Bug description
At stage https://www.openhistoricalmap.org/user/terms there is display mentioning that OHM has failed so far to setup contributor terms
Repro Steps

Go to https://www.openhistoricalmap.org/#map=13/52.6634/19.3213&layers=O&date=1850&daterange=1800,2021
Click on "Sign Up" in the top right
go through sign up process

Screenshots & URL
If applicable, please add a screenshot that includes the URL of the page.
In addition, please add a text URL link to the page, separate from the image so the reviewer can link directly to the problem.

https://www.openhistoricalmap.org/user/terms

Of note, I believe these will need to be translated to French and Italian, as well.
Drafting underway here: https://docs.google.com/document/d/1H5NTUljWQxZekSBPOAFEaIspdIU5pHzRTOBelUKvVZg/edit#

Of note, I believe these will need to be translated to French and Italian, as well.

Dropping that functionality likely also would be fine.

Ah I see and you approved this for posting a long time ago!

Let's hold off on pushing this one out until we hear back from OSMF, and I
also have some other questions related to CC0 and public domain marks.
On Thu, May 19, 2022 at 2:36 PM Dan Rademacher @.***>
wrote:

Ah I see and you approved this for posting a long time ago!
—
Reply to this email directly, view it on GitHub
https://github.com/OpenHistoricalMap/issues/issues/255#issuecomment-1132230380,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALM4ESNE2N4PWAKCROBD6DVK2X7RANCNFSM46YUPVJQ
.
You are receiving this because you were assigned.Message ID:
@.***>

--
Jeff Meyer
206-676-2347
osm: Open Historical Map (OHM)
http://wiki.openstreetmap.org/wiki/Open_Historical_Map / my OSM user page
http://www.openstreetmap.org/user/jeffmeyer
t: @OpenHistMap

I've heard back & there are no major issues right now, so let's get ready to close this out, along with #367.

These are now live on production


Call a HTTP server (which uses grpcServer.ServeHTTP through a ServeMux)

That would be very nice, to be able to call one of several grpc servers listening on the same HTTPS port, but under different paths. grpc.Server.ServeHTTP allows us to create such a server, but I don't know yet how to call it with letmegrpc.
I need to use grpc.Invoke(..., "/prefixpath/package.service/method", ...)
(instead of "/package/service.method").
I don't see an easy solution, as all the client code is generated, with constants as paths.

There is a new NewHandler function that calls all public functions
func NewHandler(grpcAddr string, stringer func(req, resp interface{}) ([]byte, error), opts ...google_golang_org_grpc.DialOption) (net_http.Handler, error) {
	conn, err := google_golang_org_grpc.Dial(grpcAddr, opts...)
	if err != nil {
		return nil, err
	}
	mux := net_http.NewServeMux()
	MyTestClient := NewMyTestClient(conn)
	MyTestServer := NewHTMLMyTestServer(MyTestClient, stringer)
	mux.HandleFunc("/MyTest/UnaryCall", MyTestServer.UnaryCall)
	mux.HandleFunc("/MyTest/Downstream", MyTestServer.Downstream)
	mux.HandleFunc("/MyTest/Upstream", MyTestServer.Upstream)
	mux.HandleFunc("/MyTest/Bidi", MyTestServer.Bidi)
	return mux, nil
}

So you can hook these up in any way you want.

But that calls MyClient.UnaryCall, which is Generated to call "/my
test.MyTest/UnaryCall".
This seems to me a feature request against protoc-gen-go, don't you think?
I'm asking first here 'cause you answer promptly and kindly.
Walter Schulze<EMAIL_ADDRESS>ezt írta (időpont: 2016. szept.
24., Szo 11:49):

There is a new NewHandler function that calls all public functions
func NewHandler(grpcAddr string, stringer func(req, resp interface{}) ([]byte, error), opts ...google_golang_org_grpc.DialOption) (net_http.Handler, error) {
conn, err := google_golang_org_grpc.Dial(grpcAddr, opts...)
if err != nil {
return nil, err
}
mux := net_http.NewServeMux()
MyTestClient := NewMyTestClient(conn)
MyTestServer := NewHTMLMyTestServer(MyTestClient, stringer)
mux.HandleFunc("/MyTest/UnaryCall", MyTestServer.UnaryCall)
mux.HandleFunc("/MyTest/Downstream", MyTestServer.Downstream)
mux.HandleFunc("/MyTest/Upstream", MyTestServer.Upstream)
mux.HandleFunc("/MyTest/Bidi", MyTestServer.Bidi)
return mux, nil
}
So you can hook these up in any way you want.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gogo/letmegrpc/issues/27#issuecomment-249356187, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAPoSri1Ho-kLgTZKezlQWGatz5aIgDsks5qtPI2gaJpZM4KFmme
.

I am not quite understanding what you mean.
What code here is generated by protoc-gen-go?

I'm generating code with protoc-gen-gofast, grpc plugin;
then

server:

const prefix = "/dealer/"

mux := http.NewServeMux()
grpcServer := grpc.NewServer()
myServer.RegisterDbDealerServer(grpcServer, db_dealer.NewServer(nil))
mux.Handle(prefix, http.StripPrefix(prefix, grpcServer)
http.ListenAndServeTLS(":8081", "server.crt", "server.key", mux)

client:

grpc.Invoke(ctx, prefix+method, args, reply, cc)

where `method = "db_dealer.DbDealer/Login".
This works, I've tried it. Now the question is: can this prefix incorporated in protoc-gen-gogo and/or letmegrpc?
Ooops!
Now I've found out that I do use the code generated by protoc-gen-gofast, without modification!
And I use a WithUnaryInterceptor DialOption and in that I call the invoker with prefix+method as the method name - so after all maybe you're right, and nothing needs to be changed, I only need my own call of tmpprotos.Serve with this special DialOption!

Ok so this issue can be closed?

Think so. Thank you for your patience, to be my rubber duck debugger!
Walter Schulze<EMAIL_ADDRESS>ezt írta (időpont: 2016. szept.
24., Szo 17:19):

Ok so this issue can be closed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gogo/letmegrpc/issues/27#issuecomment-249370041, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAPoSnVF7URGJzvOAVVeWHqzaV0dfasBks5qtT96gaJpZM4KFmme
.


[sw,tests,dv] Top level tests running from ROM do not build/run

The tests that run directly from ROM rather than flash fail to run in the current build environment.
The example ROM test (chip_sw_example_rom) shows this. It also affects some top level tests for flash_ctrl.

Hi @timothytrippel, we discussed this verbally but I have added an issue for visibility, thanks.

I believe this was fixed by #13898.


How to start server on colab?

CARLA version: 0.9.12
Platform/OS: Ubuntu 18
Problem you have experienced: Unable to run server
What you expected to happen:
Steps to reproduce:
According to package installation docs, I install using the following:
wget https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_0.9.12.tar.gz
mkdir carla
tar -zxvf CARLA_0.9.12.tar.gz -C carla
cd carla
./ImportAssets.sh
pip install pygame
pip install PythonAPI/carla/dist/carla-0.9.12-cp37-cp37m-manylinux_2_27_x86_64.whl

Then I run using:
sudo apt-get install libomp5
./CarlaUE4.sh

I get an error:
Refusing to run with the root privileges.

So, I create a new user
adduser xyz
sudo -u xyz ./CarlaUE4.sh

I get the following error:
chmod: changing permissions of '/content/carla/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping': Operation not permitted
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
sh: 1: xdg-user-dir: not found
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.

Here's a link to the notebook

chmod: changing permissions of '/content/carla/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping': Operation not permitted
4.26.2-0+++UE4+Release-4.26 522 0

Harmless warning, see Issue #3663

sh: 1: xdg-user-dir: not found

Harmless warning, see Issue #3514
Looks like you are trying to run headless, xorg-less.  Try using vulkan with headless rendering mode enabled, per Issue #4498:
unset SDL_VIDEODRIVER

./CarlaUE4.sh -vulkan -RenderOffscreen -nosound

Thanks, I'll try again and let you know if the problem is gone.

It's not working on colab, I get the same error. Please find the notebook here

bump

#3514

hi have u solved this?


win, fs: fix uv_fs_unlink for +R -A files

uv_fs_unlink would fail for read-only files with Archive attribute cleared. This fixes this issue.

CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/753/

Updated, PTAL.
CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/755/

Failures are unrelated.

Landed in https://github.com/libuv/libuv/commit/edf05b97f03472def2837ceb2d6bf61a0d0dc248


Logic for pushing images is incorrect here or in Perma

After the correction of #6, this no longer works to build and push images as used in https://github.com/harvard-lil/perma/blob/6eca0930bd770327dcd215eba0e7ffc3a4528237/.github/workflows/tests.yml#L93-L102 -- I believe that when it compares hashes, the image update commit has already happened, so there's no change.

The reason this "worked" previously is that it always built and pushed after a PR was merged.

What if we made another branch for this step to check against? And once it pushes the image to the registry (and succeeds), it updates that branch to match develop?


Changed the readme or added default classes into @JsonTypeInfo. And fixed defect in method "isValidClassificationForEntity"

Changed the readme since the request in postman did not work without a class.
You can also just add default values of classes in @JsonTypeInfo and the old query will work. Attached two commits, the choice to make you :)

<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>

recheck


[Improvement] Allow the shortcut for opening to be changed

Hello Again,
as i already described in my other issue, i very much took a liking to your tool.
Having the shortcut be customizable would improve the usage of your tool tremendously for myself and for others to come.
Thank you for your consideration and have a great weekend :)

I was able to change this one myself


chore: bump detect-secrets baseline version

This PR resolves []
Description
Bump detect-secrets baseline version

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

bump detect-secrets baseline version - mounir

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Dev changes (bump detect-secrets baseline version - mounir)

  Generated by :no_entry_sign: dangerJS against 94f6ee5efd4baf74d7e706eceee4ae6e72717ab3


Docker Client with several DOCKER_HOST

Hi,
I setup an HA Swarm Cluster, and unfortunatley the Docker Client only takes one DOCKER_HOST.
It would be great to be able to configure several DOCKER_HOST with retries machanism on the Docker client.
Cheers
Romain

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

In general, the way this is managed is with docker-machine.

So even if I don't use Docker Machine to setup my cluster, your recommendation is to use docker-machine to connect to the available swarm manager. That it ?

Well, I'm wondering about how we would implement it from the Docker side, and there's a couple of thorny issues that I'm not sure we should be solving from the Docker side. The first being in which order should they be polled, what if one is unavailable, what if you specify the same daemon through multiple endpoints, what if you have conflicts in information, what should docker info and docker version do, how about multiple API versions, when you do docker pull and docker push which docker daemon should it go through (especially if the same image tag but with different IDs are present on the daemons)?
That's just a couple of the things I can see being issues. And docker-machine was made expressly to solve the "virtual Docker daemon" problem, so I'd think that docker-machine might be able to help you. I wasn't sure if you knew about it (and I'm not sure if it'll fit your usecase).

Thank you, I will try with docker-machine


Data Location

I'm looking where fresh rss store data in HA. I just can't see anything with FreshRss name in my drive. Can you help me ? Thanks for your work btw.

Hi @HydrelioxGitHub
The addon, like many other Home Assistant Addons, stores the data in a persistent folder:
/data

Each addon has its one data folder, and they are managed by the supervisor. Possible that they are managed at a dedicated volume.
Usually, there should be no reason to access these files. Is there any specific reason you want to access these files?

Thanks for your quick answer. I'm facing a storage problem. Space disk keep reducing and I can't figure why. This come from one add-on as it stops when I deactivated all of them. I want to know how many space are taking each add-on to detect which one is so "space hungry".

Thanks for your explanation, as it helps to understand the problem.
I had the same issue with any RSS addon. For the same reason, I exclude these types of addons also from backups.
Now this brings me to some tips:

create a backup in home assistant. Download the file, extract and check the folders. It helps to find the causing addon.
For freshrss, setup automatic deletion. For example, delete everything older than 14 days. I remember a default that never deleted anything.

Hope these tips helped.

I will also try to re-activate add-on one by one as the space disk keep decreasing almost constantly over time. I will try to spot which one is causing the issue.

I think you can close this pseudo issue as you provide a good answer and advices. Thanks for your help !


Update _index.md

update some urls

/close
Hi, please contact me before submitting more PRs like this!!!


Chords broken

open keybindings editor
press Cmd+K, Cmd+K
🐛 nothing happens

I see that message when I press cmd for the second time.

@jrieken cannot repro on Mac or Linux with latest Insiders (7499a9f3c565f4fbe5205e30c8664e5a5a11ae94)?

Reproduces with insiders (0d65ced0fa7398dc9d50c39a23a2a8cc8406ff18) on Mac for me. @Microsoft/vscode Can someone else try?

It does for me. I see the message as soon as Cmd-key is pressed, so I think the chord is not even able to detect the full Cmd+K key press.

I can reproduce if I open the keybindings and then press:

Ctrl+K
press only Ctrl (see invalid chord message)
I can no longer press Ctrl+K, Ctrl+K, there appears to be some state that is miss-managed.

Still can't repro on 0d65ced0fa7398dc9d50c39a23a2a8cc8406ff18, @alexandrudima could this be a duplicate of https://github.com/Microsoft/vscode/issues/16833?

Indeed, duplicate of #16833

To the verifier: Please verify with these steps too.


5057 hover selection

How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Check list

[ ] unit-tests written
[ ] e2e-tests written
[ ] documentation updated
[ ] PR name follows the pattern #1234 – issue name
[ ] branch name doesn't contain '#'
[ ] PR is linked with the issue
[ ] base branch (master or release/xx) is correct
[ ] task status changed to "Code review"
[ ] reviewers are notified about the pull request

Approved the test fix for plus-and-arrows-tools.spec.ts


Better logger

#102
#226
main ideas:

write wip json file every N samples instead of only at the end / clean them up / read them
add metrics like byte read / s

this is crutial for further improvement


Multiplication website

About
A multiplication app using HTML, CSS, and JavaScript is a web application that allows users to practice and improve their multiplication skills. The application typically consists of a user interface that displays multiplication questions and allows users to enter their answers
Please assign me this issue @artimanputra @Dharmesh177 @Shreyaar12 under gssoc 23
screenshot of website:

It is very basic things doesn't look like project include some more feature


[Bug]  long PDF export to only 1 page

Is there an existing issue for this?

[X] Yes, I have searched the existing issues and none of them match my problem.

Product Variant
Cloud (https://rxresu.me)
Current Behavior
At the beginning I really loved rxresume and enjoyed the experience using it to create and manage my CVs. But when I export to PDF, I found it into one long PDF and very difficult to print it into multiple A4 pages! On the edit page it HAS a page separator but why it does not work to separate the page?!
Besides, I checked this https://docs.rxresu.me/product-guides/creating-a-multi-page-resume, but in this solution it just create replicate sections and move it to the 2nd page. For example, if I have multiple employers and experiences, how could I make it continuously shown instead of separate into 2 experiences secitons?!
Among all the issues already a lot of people raised the request as me: PLEASE PROVIDE REAL MULTIPLE PAGE FEATURE!
Expected Behavior
Provide real multiple page separation for printing! NOT all people viewing CVs using a screen accessing websites during interview!
Steps To Reproduce
No response
What browsers are you seeing the problem on?
No response
What template are you using?
None
Anything else?
No response

It's strange but the way to do this is by manually adding new pages and moving sections to the new pages. This is unintuitive.

duplicate of #1834


feat/app_setup

This PR includes:

The setup of the application's internal bindings for navigation, snackbar, routes, theming, service locator, and logger.

LGTM!


Add more meta tags

Add more meta tags,
which make it more seo friendly and add more ui improvements
I can do it for you

Okay right @adithyapaib .Please do it asap.

Can Add more meta tags, and other ui/ux improvements?

Hello! I checked this project and found interesting, pls assign it it to me. I will help you with Meta Tags😄


Iter3 - Upgrade Add Page and Wiki Page

In this iteration we will focus on adding a new feature to the app.
The "edit mode" provide the user the functionality of remove, edit, hide or make visible and rearange a phrase or category. Additionally we will finishing all the previuse issues that need to be done.
As part of this iteration we will make a refactoring to the working procces, each one of us will contribute to the refactoring section in iteration 3 wiki page.
Importent:
For the next iteration, including this one, each one of us need to contribute to the team work and the course team should be aware of that, so read the following link carefully and work by it.
https://github.com/jce-il/se-class-materials/blob/master/docs/team/proj6-iterations.md
Your tasks:

Order the Defaults:
Upgrade the Add Phrase Page has the client requested. Add the option to choose a color to a category, add a toggle to dicide between "משפט" and "שם עצם". Change the NIKUDE key board.
releted issues:
#35
#22

Wiki page:
Add text to the wiki page.

Testing:
In this section we describe some testing that you can make to test your work

[ ] Change the color of a category.
[ ] Add a new "משפט" or "שם עצם".
[ ] Check the new NIKUDE key borad.

For my issue, I just neen you to block the access of "add new sub-category" from a sub-category's page.
(one level hierarchy)

I blocked the add sub category option in one level sub category, has you requested.

finish this issue


mapping bug on aws.iam.OpenIdConnectProvider - thumbprint_lists  should be thumbprint_list

There is a mapping bug on aws.iam.OpenIdConnectProvider has thumbprint_lists  should be thumbprint_list.
https://github.com/pulumi/pulumi-aws/blob/49c8fa2f323b1de58d40e2d63a2088838ac80eac/sdk/python/pulumi_aws/iam/open_id_connect_provider.py#L124-L130
This appears to be the case across all language SDKs.

Closing this out - this is a list and we pluralize list property names


%V not always parsed

Every so often (yea, best test case I have),  %V in lg.Debug and lg.Info, a %V doesn't seem to get expanded.
Usually, %V results in: p_d2=%!V(uint64=19924086784)
sometimes: %V results in: var = %V C18.51
It's dependent upon the statement.  The displayed result is the same for every run, and the same respective to other changes I've made.
Declaration:
var lg = logger.NewPackageLogger("main",
    logger.DebugLevel,
    // logger.InfoLevel,
)

Hi @K6TD. Could specify what is wrong exactly? It's not clear for me why use upper case "%V"? Code sample will be preferable.
I have no issue with such calls. For instance, similar code:
lg.Debugf("Version=%v", version)

produce output:
2019-02-06T10:48:44.378 [    main] DEBUG  Version=0.3.2

Denis,
My mistake - the idea is %V combines %v and %T.  I realized that isn’t part of the ‘fmt’ package in golang.  It was implemented in another package I was using.
Close this a Doesn’t Fail for Me (i.e. user didn’t the spec).
Thanks.
KR

On Feb 5, 2019, at 8:52 PM, Denis Dyakov<EMAIL_ADDRESS>wrote:
Hi @K6TD https://github.com/K6TD. Could specify what is wrong exactly? It's not clear for me why use upper case "%V"? Code sample will be preferable.
I have no issue with such calls. For instance, similar code:
lg.Debugf("Version=%v", version)
produce output:
2019-02-06T10:48:44.378 [    main] DEBUG  Version=0.3.2
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/d2r2/go-logger/issues/4#issuecomment-460900732, or mute the thread https://github.com/notifications/unsubscribe-auth/ACIpzxI888x6Kzp9v6J3he2Cln08e2vDks5vKl-qgaJpZM4akSJp.


500 error on raw message

Testcase: https://groups.yahoo.com/api/v1/groups/ColorComputer/messages/812/raw
Ensure handled gracefully.

Confirmed handled gracefully now.

2019-10-25 23:06:59.699 BST INFO archive_message_content Fetching  raw message id: 812 (of 5091)
2019-10-25 23:06:59.892 BST ERROR archive_message_content Raw grab failed for message 812
Traceback (most recent call last):
  File "./yahoo.py", line 92, in archive_message_content
    raw_json = yga.messages(id, 'raw')
  File "/home/thomas/yahoo-group-archiver-1/yahoogroupsapi.py", line 110, in get_json
    raise e
  File "/home/thomas/yahoo-group-archiver-1/yahoogroupsapi.py", line 103, in get_json
    r.raise_for_status()
  File "/home/thomas/yahoo-group-archiver-1/env3/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://groups.yahoo.com/api/v1/groups/ColorComputer/messages/812/raw
2019-10-25 23:06:59.892 BST INFO archive_message_content Fetching html message id: 812 (of 5091)

I'm seeing 500 errors that are not persistent, seems to be API server flakiness. We definitely need a (deferred) retry mechanism here. And ideally tooling to pull failures out of already captured archive logs.

"ygError":{"hostname":"gapi5.grp.bf1.yahoo.com","httpStatus":500,"errorMessage":"Internal error: Error during message fetch","errorCode":1001,"sid":"SID:YHOO:groups.yahoo.com:ee5ae7585faace373012569deb353069:0"}}

Unfortunately the same error results for the raw message that always errors:
"ygError":{"hostname":"gapi1.grp.bf1.yahoo.com","httpStatus":500,"errorMessage":"Internal error: Error during message fetch","errorCode":1001,"sid":"SID:YHOO:groups.yahoo.com:4470210ff4f93c3f0d8ca3aa5cc5129a:0"}}

Additional retries added in 50eaa48

This needs to be handled for any API call — suggest moving the logic to the YahooGroupsAPI module.


Update version to 1.20.0

Update version to 1.20.0

Codecov Report

Merging #158 (c8fbd08) into main (45c8629) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #158   +/-   ##
=======================================
  Coverage   93.81%   93.81%
=======================================
  Files          20       20
  Lines         501      501
=======================================
  Hits          470      470
  Misses         31       31

Impacted Files
Coverage Δ

workos/__about__.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Performance vs Juniper

Hello,
I'm currently working on a project which use Juniper. I'm really interesting to switch to async-graphl but I would have some more precisions about performances. You said here that you have better perfomance than Juniper. Can you provide more explanations about it please ?
Anyway, your repository is really cool and well maintained keep going up, you doing great !
Have a nice day

Here is a simple benchmark. 🙂
In fact, whether it is juniper or async-graphql, the performance is quite good.
https://github.com/async-graphql/benchmark

Oh didn't see the juniper file. Thank you.


bulk_extractor: init at 1.6.0

Motivation for this change
Add missing package for #81418
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

That's weird, I just took another look at the derivation to make sure everything's okay. And it looks like version 1.6.0 doesn't even exist. The source does not even have the v1.6.0 tag.
I really don't know why I put that version :thinking:. I'll take a look at it.

Okay, It seems they removed it.

Hey @lightdiscord I'm trying to re-take this PR since currently the latest stable version is 2.0.3. I'm just getting an error during the compilation of the tool like:
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I..  -I../src/be20_api -I../src/be20_api/utfcpp/source -DUTC_OFFSET=+0000  -g  -pthread -Wall -MD -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-align -Wredundant-decls -Wdisabled-optimization -Wfloat-equal -Wmultichar -Wmissing-noreturn -Woverloaded-virtual -Wsign-promo -Weffc++ -fPIC -O3 -MT bulk_extractor.o -MD -MP -MF $depbase.Tpo -c -o bulk_extractor.o bulk_extractor.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from bulk_extractor.cpp:49:
bulk_extractor_restarter.h: In member function ‘void bulk_extractor_restarter::restart(Phase1::Config&, scanner_config&)’:
bulk_extractor_restarter.h:91:55: warning: declaration of ‘sc’ shadows a member of ‘bulk_extractor_restarter’ [-Wshadow]
   91 |     void restart(Phase1::Config &cfg, scanner_config &sc) {
      |                                       ~~~~~~~~~~~~~~~~^~
bulk_extractor_restarter.h:24:30: note: shadowed declaration is here
   24 |     scanner_config          ≻
      |                              ^~
bulk_extractor_restarter.h:91:34: warning: declaration of ‘cfg’ shadows a member of ‘bulk_extractor_restarter’ [-Wshadow]
   91 |     void restart(Phase1::Config &cfg, scanner_config &sc) {
      |                  ~~~~~~~~~~~~~~~~^~~
bulk_extractor_restarter.h:25:30: note: shadowed declaration is here
   25 |     Phase1::Config          &cfg;
      |                              ^~~
bulk_extractor.cpp: In function ‘int bulk_extractor_main(std::ostream&, std::ostream&, int, char* const*)’:
bulk_extractor.cpp:485:22: error: no matching function for call to ‘bulk_extractor_restarter::restart()’
  485 |             r.restart();                    // load the restart file and rename report.xml
      |             ~~~~~~~~~^~
bulk_extractor_restarter.h:91:10: note: candidate: ‘void bulk_extractor_restarter::restart(Phase1::Config&, scanner_config&)’
   91 |     void restart(Phase1::Config &cfg, scanner_config &sc) {
      |          ^~~~~~~
bulk_extractor_restarter.h:91:10: note:   candidate expects 2 arguments, 0 provided
make[2]: *** [Makefile:1377: bulk_extractor.o] Error 1
make[2]: Leaving directory '/home/athena/pkgs/bulk-extractor/bulk_extractor/src'
make[1]: *** [Makefile:411: all-recursive] Error 1
make[1]: Leaving directory '/home/athena/pkgs/bulk-extractor/bulk_extractor'
make: *** [Makefile:352: all] Error 2

Do you know how to face it?


feat: port CategoryTheory.Sites.CoverPreserving

Straightforward.

A congr' 1 used to do something in mathlib3 and the corresponding congr 1 doesn't do anything in mathlib4 so I just changed it to apply congr_arg. Unification didn't pick up a coercion from Sieve U to Presieve U so I had to add it explicitly. Everything else worked pretty much fine, this was a very easy port.

bors merge


Private Channels and AzureAD SAML group claims

Is it possible to include membership in a Teams Private Channel in AzureAD  SAML claims (group or otherwise)?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ce34b12b-aa50-608b-bbfa-a1fb4bb79f8d
Version Independent ID: 9ddeb6f4-f30a-1e72-fc94-ae66def91f40
Content: Private channels in Microsoft Teams - Microsoft Teams
Content Source: Teams/private-channels.md
Service: msteams
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

Hello @carlo-quinonez Carlo,
I think that is not currently possible, you can suggest feedback to reach the product team here
https://feedbackportal.microsoft.com/feedback/forum/ad198462-1c1c-ec11-b6e7-0022481f8472

@scanum

If anyone else lands here, I opened a feedback for this issue. Please vote for it!

Voted


feat(#370): Added support docker TLS endpoint

This is second small increment of huge PR #548.
This PR brings support for secure communication between client and docker daemon server API.
This PR does not contain client authentication based on certificates (mTLS) which can be switch on by option DOCKER_TLS_VERIFY.

Regarding your idea:

Did I share my idea regarding inheritance the last time? I am thinking about something like:
I know about it and yes you mentioned. I did not update the code here yet because it is not needed. There is no mTLS implementation. I wan to make it simple as much as possible. I will add it in next PR with mTLS.

I am thinking regarding inheritance which is really good suggestion little bit smaller change. Like this:
Update TlsEndpointAuthenticationProvider file this way
diff --git a/src/Testcontainers/Builders/TlsEndpointAuthenticationProvider.cs b/src/Testcontainers/Builders/TlsEndpointAuthenticationProvider.cs
index e8f5c9a..467c7f2 100644
--- a/src/Testcontainers/Builders/TlsEndpointAuthenticationProvider.cs
+++ b/src/Testcontainers/Builders/TlsEndpointAuthenticationProvider.cs
@@ -9,15 +9,16 @@ namespace DotNet.Testcontainers.Builders
   using DotNet.Testcontainers.Configurations.Credentials;

   /// <inheritdoc cref="IDockerRegistryAuthenticationProvider" />
-  internal sealed class TlsEndpointAuthenticationProvider : DockerEndpointAuthenticationProvider
+  internal class TlsEndpointAuthenticationProvider : DockerEndpointAuthenticationProvider
   {
     private const string DefaultUserDockerFolderName = ".docker";
     private const string DefaultCaCertFileName = "ca.pem";
     private static readonly Uri DefaultTlsDockerEndpoint = new Uri("tcp://localhost:2376");
     private static readonly string DefaultCertPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), DefaultUserDockerFolderName);

-    private readonly Lazy<X509Certificate2> caCertificate;
-    private readonly Uri dockerEngine;
+    protected readonly string dockerCertPath;
+    protected readonly Lazy<X509Certificate2> caCertificate;
+    protected readonly Uri dockerEngine;
     private readonly bool dockerTlsEnabled;

     /// <summary>
@@ -34,18 +35,16 @@ namespace DotNet.Testcontainers.Builders
     /// <param name="customConfigurations">A list of custom configurations.</param>
     public TlsEndpointAuthenticationProvider(params ICustomConfiguration[] customConfigurations)
     {
-      var dockerCertPath = customConfigurations
+      this.dockerCertPath = customConfigurations
         .Select(customConfiguration => customConfiguration.GetDockerCertPath())
         .FirstOrDefault(value => value != null) ?? DefaultCertPath;
-      var dockerCaCertFile = Path.Combine(dockerCertPath, DefaultCaCertFileName);
-
       this.dockerEngine = customConfigurations
         .Select(customConfiguration => customConfiguration.GetDockerHost())
         .FirstOrDefault(value => value != null) ?? DefaultTlsDockerEndpoint;
       this.dockerTlsEnabled = customConfigurations
         .Select(customConfiguration => customConfiguration.GetDockerTls())
         .Aggregate(false, (x, y) => x || y);
-      this.caCertificate = new Lazy<X509Certificate2>(() => new X509Certificate2(dockerCaCertFile));
+      this.caCertificate = new Lazy<X509Certificate2>(() => new X509Certificate2(Path.Combine(this.dockerCertPath, DefaultCaCertFileName)));
     }

     /// <inheritdoc />
@@ -60,7 +59,7 @@ namespace DotNet.Testcontainers.Builders
       return new DockerEndpointAuthenticationConfiguration(this.dockerEngine, new TlsCredentials(this.ServerCertificateValidationCallback));
     }

-    private bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
+    protected bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
     {
       switch (sslPolicyErrors)
       {

and then MTlsEndpointAuthenticationProvider file can look like
c cref="IDockerRegistryAuthenticationProvider" />
  internal sealed class MTlsEndpointAuthenticationProvider : TlsEndpointAuthenticationProvider
  {
    private const string DefaultClientCertFileName = "cert.pem";
    private const string DefaultClientKeyFileName = "key.pem";
    private static readonly Regex PemData = new Regex("-----BEGIN (.*)-----(.*)-----END (.*)-----", RegexOptions.Multiline);

    private readonly bool dockerTlsVerifyEnabled;
    private readonly string dockerClientCertFile;
    private readonly string dockerClientKeyFile;
    private readonly Lazy<MSX509.X509Certificate2> clientCertificate;

    /// <summary>
    ///   Initializes a new instance of the <see cref="MTlsEndpointAuthenticationProvider" /> class.
    /// </summary>
    public MTlsEndpointAuthenticationProvider()
      : this(PropertiesFileConfiguration.Instance, EnvironmentConfiguration.Instance)
    {
    }

    /// <summary>
    ///   Initializes a new instance of the <see cref="MTlsEndpointAuthenticationProvider" /> class.
    /// </summary>
    /// <param name="customConfigurations">A list of custom configurations.</param>
    public MTlsEndpointAuthenticationProvider(params ICustomConfiguration[] customConfigurations)
      : base(customConfigurations)
    {
      this.dockerTlsVerifyEnabled = customConfigurations
        .Select(customConfiguration => customConfiguration.GetDockerTlsVerify())
        .Aggregate(false, (x, y) => x || y);
      this.dockerClientCertFile = Path.Combine(this.dockerCertPath, DefaultClientCertFileName);
      this.dockerClientKeyFile = Path.Combine(this.dockerCertPath, DefaultClientKeyFileName);
      this.clientCertificate = new Lazy<MSX509.X509Certificate2>(this.GetClientCertificate);
    }

    /// <inheritdoc />
    public override bool IsApplicable()
    {
      return this.dockerTlsVerifyEnabled && File.Exists(this.dockerClientCertFile) && File.Exists(this.dockerClientKeyFile);
    }

    /// <inheritdoc />
    public override IDockerEndpointAuthenticationConfiguration GetAuthConfig()
    {
      return new DockerEndpointAuthenticationConfiguration(this.dockerEngine, new CertificateCredentials(this.clientCertificate.Value)
      {
        ServerCertificateValidationCallback = this.ServerCertificateValidationCallback,
      });
    }
...

Result is that MTls version does not have any Tls specific code and also there is not any special empty methods. Each class handles own stuff which they need to ake it work.
What do you think?

We will merge everything with #548.


New Element: Mangaka/Illustrator/Artist (manga specific)

Where does this comes from?
Me and Kavita's Discord
What is the rationale for adding support for this element?
A specific element for Manga artists as all the current specific Comic elements do not really match a mangaka. Usually the mangaka is responsible for everything all the other roles describe (or have assistance but they are never mentioned). So manga has only 'story by' and 'art by' (adaption or duo writer/illustrator) or 'story and art by' single creator for both story and art.

I don't see why you can't just fill the existing fields, ie Writer + Penciller ?

Story by = Writer
Art by = Penciller

A manga-ka isn't just a penciller. They are usually the writer, penciller, inker, colorist (for full-color manga or color pages), letterer, and cover artist.  I like that these these fields exist, especially for manga anthologies that actually have a specific cover artist, but that's a lot of copypasting (when it comes to manga).

This is a data model, the point of it is to exchange data, not to make it easier for manual edition. Adding a field that is already covered by others only for the sake of convenience does not really bring much to the table.
Note also that mangaka does not always encompass all of the roles, many manga have a different writer and artist, which would render the use of this aggregated field useless.

I think the GCD has a decent idea of crediting them for all roles that they took part in. As in both cases (GCD and ComicInfo) this is meant to be a machine readable metadata, I think the application should determine what to display and the data format should stick to a specified terminology.

Note also that mangaka does not always encompass all of the roles, many manga have a different writer and artist, which would render the use of this aggregated field useless.

This is true, as I mentioned they have assistants with the drawing that does the coloring or odd drawing jobs. But the issue, for me at least, was that on the cover only the main mangaka (and writer) is noted, and nothing further in credits. I do not know anything about American Comics regarding all these roles, but in general Manga has two roles, story and art.
When I started trying to use ComicInfo for my Manga I ran into this and got confused on what to use, as penciller is something I've never even heard of.  If there is no 'main' artist role and you want keep Penciller for that, the documentation of the spec should indicate that this is a main artist field so that programs reading the metadata know what to at least display (in the case of Manga).

Penciller means drawing with pencils, Inker means going over those drawing with ink, and then erasing the pencil. That's how all publications are done, manga or comics or others.
it's quite common in manga for the assistants to do the inking though, so even though there is only story and art credited in a manga, there is actually an inking process done sometimes by assistants not credited. What it means also is that art = penciller + inker.

the documentation of the spec should indicate that this is a main artist field so that programs reading the metadata know what to at least display (in the case of Manga).

The format doesn't care how the data is consumed, the format is a mean for machine readable data exchange.
The problem i see here is that you are manually editing files, without knowing what those fields mean. Ideally the files should be filled by a program (be it a manga tagger or whatever really) that would do this job for you to figure out what to fill, for example in the case of manga to fill both penciller and inker.

Closing this as there is no real, clear requirement.


Can't setProfilePhoto

I'm trying to set profile photo using this piece of code (Java):
        TdApi.InputFileLocal inputFile = new TdApi.InputFileLocal(path);

        client.send(new TdApi.SetProfilePhoto(new TdApi.InputChatPhotoStatic(inputFile), true), object -> {

            switch (object.getConstructor()) {

                case TdApi.Ok.CONSTRUCTOR -> {
                    System.out.println("Profile photo uploaded");
                }

                default -> {
                    System.out.println("Can't set profile photo");
                }
            }
        });

Server returns Ok, but the profile doesn’t have this photo. What am I doing wrong? Should I somehow update profile or what?

You need to specify the absolute path to the photo, not the local. Closed


Compile error during compilation with bitcoin crate as dependency

Hi all! I'm very new to sp1 so sorry for noob questions.
I installed sp1 with instruction from sp1 book and cloned example repo. Than I added some code to main which depends on bitcoin crate, and got the following compiler error:
[sp1]  The following warnings were emitted during compilation:
[sp1]
[sp1]  warning<EMAIL_ADDRESS>depend/secp256k1/contrib/lax_der_parsing.c:7:10: fatal error: string.h: No such file or directory
[sp1]  warning<EMAIL_ADDRESS>    7 | #include <string.h>
[sp1]  warning<EMAIL_ADDRESS>      |          ^~~~~~~~~~
[sp1]  warning<EMAIL_ADDRESS>compilation terminated.
[sp1]  warning<EMAIL_ADDRESS>In file included from depend/secp256k1/src/util.h:13,
[sp1]  warning<EMAIL_ADDRESS>                 from depend/secp256k1/src/field.h:10,
[sp1]  warning<EMAIL_ADDRESS>                 from depend/secp256k1/src/group.h:10,
[sp1]  warning<EMAIL_ADDRESS>                 from depend/secp256k1/src/precomputed_ecmult_gen.c:3:
[sp1]  warning<EMAIL_ADDRESS>/home/ubuntu/.sp1/riscv/riscv32im-linux-x86_64/lib/gcc/riscv32-unknown-elf/11.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
[sp1]  warning<EMAIL_ADDRESS>    9 | # include_next <stdint.h>
[sp1]  warning<EMAIL_ADDRESS>      |                ^~~~~~~~~~
[sp1]  warning<EMAIL_ADDRESS>compilation terminated.
[sp1]
[sp1]  error: failed to run custom build command for `secp256k1-sys v0.10.1`
[sp1]
[sp1]  Caused by:
[sp1]    process didn't exit successfully: `/home/ubuntu/sp1-project-template/target/elf-compilation/release/build/secp256k1-sys-ab9ee2f8c4ca1323/build-script-build` (exit status: 1)
[sp1]    --- stdout
[sp1]    OUT_DIR = Some(/home/ubuntu/sp1-project-template/target/elf-compilation/riscv32im-succinct-zkvm-elf/release/build/secp256k1-sys-547a8f31f1429475/out)
[sp1]    TARGET = Some(riscv32im-succinct-zkvm-elf)
[sp1]    OPT_LEVEL = Some(3)
[sp1]    HOST = Some(x86_64-unknown-linux-gnu)
[sp1]    cargo:rerun-if-env-changed=CC_riscv32im-succinct-zkvm-elf
[sp1]    CC_riscv32im-succinct-zkvm-elf = None
[sp1]    cargo:rerun-if-env-changed=CC_riscv32im_succinct_zkvm_elf
[sp1]    CC_riscv32im_succinct_zkvm_elf = Some(/home/ubuntu/.sp1/bin/riscv32-unknown-elf-gcc)
[sp1]    RUSTC_WRAPPER = None
[sp1]    cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[sp1]    cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[sp1]    CRATE_CC_NO_DEFAULTS = None
[sp1]    DEBUG = Some(false)
[sp1]    CARGO_CFG_TARGET_FEATURE = Some(m)
[sp1]    cargo:rerun-if-env-changed=CFLAGS_riscv32im-succinct-zkvm-elf
[sp1]    CFLAGS_riscv32im-succinct-zkvm-elf = None
[sp1]    cargo:rerun-if-env-changed=CFLAGS_riscv32im_succinct_zkvm_elf
[sp1]    CFLAGS_riscv32im_succinct_zkvm_elf = None
[sp1]    cargo:rerun-if-env-changed=TARGET_CFLAGS
[sp1]    TARGET_CFLAGS = None
[sp1]    cargo:rerun-if-env-changed=CFLAGS
[sp1]    CFLAGS = None
[sp1]    OUT_DIR = Some(/home/ubuntu/sp1-project-template/target/elf-compilation/riscv32im-succinct-zkvm-elf/release/build/secp256k1-sys-547a8f31f1429475/out)
[sp1]    cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[sp1]    cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[sp1]    CRATE_CC_NO_DEFAULTS = None
[sp1]    CARGO_CFG_TARGET_FEATURE = Some(m)
[sp1]    cargo:rerun-if-env-changed=CFLAGS_riscv32im-succinct-zkvm-elf
[sp1]    CFLAGS_riscv32im-succinct-zkvm-elf = None
[sp1]    cargo:rerun-if-env-changed=CFLAGS_riscv32im_succinct_zkvm_elf
[sp1]    CFLAGS_riscv32im_succinct_zkvm_elf = None
[sp1]    cargo:rerun-if-env-changed=TARGET_CFLAGS
[sp1]    TARGET_CFLAGS = None
[sp1]    cargo:rerun-if-env-changed=CFLAGS
[sp1]    CFLAGS = None
[sp1]    OUT_DIR = Some(/home/ubuntu/sp1-project-template/target/elf-compilation/riscv32im-succinct-zkvm-elf/release/build/secp256k1-sys-547a8f31f1429475/out)
[sp1]    cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[sp1]    cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[sp1]    CRATE_CC_NO_DEFAULTS = None
[sp1]    CARGO_CFG_TARGET_FEATURE = Some(m)
[sp1]    cargo:rerun-if-env-changed=CFLAGS_riscv32im-succinct-zkvm-elf
[sp1]    CFLAGS_riscv32im-succinct-zkvm-elf = None
[sp1]    cargo:rerun-if-env-changed=CFLAGS_riscv32im_succinct_zkvm_elf
[sp1]    CFLAGS_riscv32im_succinct_zkvm_elf = None
[sp1]    cargo:rerun-if-env-changed=TARGET_CFLAGS
[sp1]    TARGET_CFLAGS = None
[sp1]    cargo:rerun-if-env-changed=CFLAGS
[sp1]    CFLAGS = None
[sp1]    cargo:warning=depend/secp256k1/contrib/lax_der_parsing.c:7:10: fatal error: string.h: No such file or directory
[sp1]    cargo:warning=    7 | #include <string.h>
[sp1]    cargo:warning=      |          ^~~~~~~~~~
[sp1]    cargo:warning=compilation terminated.
[sp1]    cargo:warning=In file included from depend/secp256k1/src/util.h:13,
[sp1]    cargo:warning=                 from depend/secp256k1/src/field.h:10,
[sp1]    cargo:warning=                 from depend/secp256k1/src/group.h:10,
[sp1]    cargo:warning=                 from depend/secp256k1/src/precomputed_ecmult_gen.c:3:
[sp1]    cargo:warning=/home/ubuntu/.sp1/riscv/riscv32im-linux-x86_64/lib/gcc/riscv32-unknown-elf/11.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
[sp1]    cargo:warning=    9 | # include_next <stdint.h>
[sp1]    cargo:warning=      |                ^~~~~~~~~~
[sp1]    cargo:warning=compilation terminated.
[sp1]
[sp1]    --- stderr
[sp1]
[sp1]
[sp1]    error occurred: Command "/home/ubuntu/.sp1/bin/riscv32-unknown-elf-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=rv32im" "-mabi=ilp32" "-I" "depend/secp256k1/" "-I" "depend/secp256k1/include" "-I" "depend/secp256k1/src" "-I" "wasm/wasm-sysroot" "-Wall" "-Wextra" "-Wno-unused-function" "-Wno-unused-parameter" "-DSECP256K1_API=" "-DENABLE_MODULE_ECDH=1" "-DENABLE_MODULE_SCHNORRSIG=1" "-DENABLE_MODULE_EXTRAKEYS=1" "-DENABLE_MODULE_ELLSWIFT=1" "-Dprintf(...)=" "-DECMULT_GEN_PREC_BITS=4" "-DECMULT_WINDOW_SIZE=15" "-DUSE_EXTERNAL_DEFAULT_CALLBACKS=1" "-DENABLE_MODULE_RECOVERY=1" "-o" "/home/ubuntu/sp1-project-template/target/elf-compilation/riscv32im-succinct-zkvm-elf/release/build/secp256k1-sys-547a8f31f1429475/out/c928380082b86401-precomputed_ecmult_gen.o" "-c" "depend/secp256k1/src/precomputed_ecmult_gen.c" with args riscv32-unknown-elf-gcc did not execute successfully (status code exit status: 1).
[sp1]
[sp1]
[sp1]  warning: build failed, waiting for other jobs to finish...

And I have such error with pretty any code which depends on bitcoin crate. I tried this sp1up --c-toolchain but it didn't help. I tried it on macos and ubuntu, same behaviour on both.
Do I miss some setup steps, or this bitcoin crate can not be added to sp1 program this way??

I found solution, this steps helped me:

reinstall sp1up without any flags (just run sp1up)
make which clang showing /opt/homebrew/opt/llvm/bin/clang and clang --version showing
some later version (while writing this doc I used clang 19.1.0 and it worked).


Document deadlock when using await inside actors

https://twitter.com/andreabalducci/status/1415226443198513153
This is a classic case of an actor passing a message to itself, and then awaiting on this task.
This will deadlock as the request is now stuck in the mailbox while the mailbox is awaiting the task to complete.
The same thing can happen in cyclic graphs of actors, so this is not unique to self messaging.
There is no generic rule that can be applied here, awaiting is fine, awaiting in cyclic message flows is not.
The only thing that can be done is to have better documentation for this.
ReenterAfter do prevent this type of deadlock, but will not help when the actor is supposed to be shut down. there is nothing to reenter in.

To add some context.
Actor is awaiting.
The message that will complete the task is stuck in the mailbox as the actor is awaiting

cc @andreabalducci

was unsure. first checked on issues, then forked the doc, then checked again the sources.
At first my suggestion was for throwing an exception if context was used to RequestAsync<> on self, but was unsure if context is "safe" to be used outside the actor message loop.
Agree for a better doc, is up to the dev.

Usually in my code every RequestAsync has a timeout / cancellation token, I've checked the sources and PoisonAsync doesn't use a CancellationToken. Tried
                await context.RequestAsync<Terminated>                 (                     context.Self,                     PoisonPill.Instance,                     CancellationTokens.WithTimeout(200)                 );
and timeout kicks in as expected without blocking the message loop.


[flutter_plugin_tools] Fix subpackage analysis

Fixes a regression in analyze when packages have non-example
subpackages. Restructuring in 0.8.0 accidentally caused them not to have
their dependencies fetched, causing analysis failures.
Unblocks rolling flutter/packages to the latest tooling.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[ ] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[x] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

I was thinking analysis was a run-on-packages-and-subpackages iteration when I made the previous change; I forget that it's actually iterating over just the top-level packages, but that analyze automatically runs over subpackages within the directory.

./script/tool_runner.sh make-deps-path-based --target-dependencies-with-non-breaking-updates
Finding changed packages relative to "6852d0a311a8c501b1718ca54b382b97c4db1a22"...
Rewriting references to: flutter_plugin_tools...
�[31mUnable to find package "flutter_plugin_tools"�[0m

Exit status: 3

Doh

Should be fixed now; I added logic to skip packages that aren't in the packages directory when finding changed packages to rewrite.

Ah, good point, I didn't remember that tools was outside of packages (x_x)


Errors with installing of extra software

My computer system is Ubuntu 14.04.2 LTS.
I'm installing GATK with the following command:
bcbio_nextgen.py upgrade --tools --toolplus gatk=/project/csbio/wwang/NGS/gatk/GenomeAnalysisTK.jar

The first issue is with DNAcopy and the output on the screen shows:

gcc -std=gnu99 -shared -L/soft/r/3.1.2/linux_x86_64_precise/lib/R/lib -L/usr/local/lib -o DNAcopy.so cbsWtstats.o cbststats.o changepoints-wtd.o changepoints.o esegment.o flchoose.o fphyper.o fpnorm.o getbdry.o prune.o rshared.o segmentp.o smoothCNA.o tailprobs.o -R/soft/gcc-4.5.2/ubuntuamd1/lib64 -lgfortran -lm -L/soft/r/3.1.2/linux_x86_64_precise/lib/R/lib -lR
gcc: error: unrecognized option '-R'
make: *** [DNAcopy.so] Error 1
ERROR: compilation failed for package 'DNAcopy'

removing '/project/csbio/wwang/NGS/bcbio/lib/R/site-library/DNAcopy'

The second issue is with Rsamtools, the output on the screen is:

** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/project/csbio/wwang/NGS/bcbio/lib/R/site-library/Rsamtools/libs/Rsamtools.so':
/soft/gcc-4.5.2/ubuntuamd1/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /project/csbio/wwang/NGS/bcbio/lib/R/site-library/Rsamtools/libs/Rsamtools.so)
Error: loading failed
Execution halted
ERROR: loading failed

removing '/project/csbio/wwang/NGS/bcbio/lib/R/site-library/Rsamtools'

The installer is looking for GLIBCXX_3.4.15' from "/soft/gcc-4.5.2/ubuntuamd1/lib64/libstdc++.so.6", but my GLIBCXX_3.4.15' is under directory "/usr/lib/x86_64-linux-gnu/libstdc++.so.6". How to change the searching path?

The 3rd issue is with GATK.

Installing additional tools
Traceback (most recent call last):
File "/project/csbio/wwang/NGS/bcbio/bin/bcbio_nextgen.py", line 201, in
install.upgrade_bcbio(kwargs["args"])
File "/project/csbio/wwang/NGS/bcbio/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 84, in upgrade_bcbio
_install_toolplus(args)
File "/project/csbio/wwang/NGS/bcbio/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 389, in _install_toolplus
_install_gatk_jar(tool.name, tool.fname, toolplus_manifest, system_config, toolplus_dir)
File "/project/csbio/wwang/NGS/bcbio/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 410, in _install_gatk_jar
version = get_gatk_jar_version(name, fname)
File "/project/csbio/wwang/NGS/bcbio/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 399, in get_gatk_jar_version
return broad.get_gatk_version(fname)
File "/project/csbio/wwang/NGS/bcbio/anaconda/lib/python2.7/site-packages/bcbio/broad/init.py", line 100, in get_gatk_version
_check_for_bad_version(version, "GATK")
File "/project/csbio/wwang/NGS/bcbio/anaconda/lib/python2.7/site-packages/bcbio/broad/init.py", line 83, in _check_for_bad_version
"This often indicates you're not running Java 1.7:\n%s" % (program, version))
ValueError: Problem getting version for GATK. This often indicates you're not running Java 1.7:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/broadinstitute/gatk/engine/CommandLineGATK : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: org.broadinstitute.gatk.engine.CommandLineGATK. Program will exit.
maximus{wwang} 67:bcbio_nextgen.py upgrade --tools --toolplus gatk=/project/csbio/wwang/NGS/gatk/GenomeAnalysisTK.jarst
Thanks for helping!
Wen

Wen;
Sorry about the issues. I can try to help some but you might need to also coordinate with someone locally who has a better idea of your cluster system setup. It appears as if you're using modules or another similar approach to inject software into your path, so local research computing should have specific suggestions about what to load. To answer your specific questions:

For 1 and 2, it looks like you have an older gcc installation and it's not properly configured. Ubuntu 14.04 should have gcc 4.8 (in /usr/bin) so it would be worth trying to use this instead of the 4.5.2 version you're pulling in.
For 3, GATK requires Java 1.7. It looks like you have 1.6 on your PATH instead of 1.7.

Hope this helps.

@chapmanb, I was running into the Java problem because I had Java 1.8 installed for another software. I am now switching between versions as needed.
I am not sure if it is possible and worth the effort, but maybe bcbio_nextgen can set the JAVA_HOME just that bcbio_nextgen can point to a custom JAVA_HOME, if needed? The only thing which I am not sure if the subprocesses will inherit the custom JAVA_HOME and modified PATH env. variables if the default system java version is e.g. 1.8

Michael;
bcbio and all the subprocess commands inherit all of the environmental variables, so we don't need to anything special within bcbio-itself to handle this. Setting your shell environment (PATH + JAVA_HOME) to point to Java 1.7 should make everything just work.
Sorry for the specific Java version requirements. I'm hoping more tools will support 1.8 soon.

@mpschr, closing this out since it is a pretty old issue and it the switch to 1.7 should solve the problem. Feel free to reopen if this never actually got working. Thanks!


Why is .mb2 embedded in form addon elements?

There's a margin-bottom: 1rem embedded in inputs, selects and textareas in the form addon.
Is this for convenience (i.e. an assumption that .mb2 would always be used on inputs, selects and textareas anyway, so it preempts), or is there another reason (best-practice, a11y, something else)?
It doesn't seem to derive from --space-2 either (appears hardcoded, but maybe this is just output and I'm missing the generator - can't say I looked hard).
I personally end up writing a custom override (:metal:) for this margin-bottom declaration and handling form element spacing manually. But was just curious as to its rationale.

It's meant to be a smart default that's easy to override with .mb0 or whatever you need. If this particular module isn't suiting your needs, I'd recommend forking or creating your own. I find that button and form styles are too varied from project to project to create a good one-size-fits-all solution.


Why not use more conventional terminology?

It's quite interesting, but why not use more conventional microprocessor terminology?
READ -> LOAD
WRITE -> STORE
IF -> BRANCH
SHIFT RIGHT -> ASR (Arithmetic shift right)
It's also seems a bit limiting that the code and data share the same address space, when there is so little to share. Almost seems to encourage the use of self-modifying code.

Thank for suggestions,
tried to make it not too scarry for the layman, so i think at least if and shift right is better...
I don't think I totaly understand the later part, I just tried to make it as basic as possible.

seems a bit limiting that the code and data share the same address space

@MarkR42, you're correct.  It's a 4 bit computer.  It runs at 1 Hz.  Limitation is exactly the game here.  Convention and practicality don't matter.
@gto76, this is a wonderful toy.  You "just tried to make it as basic as possible" and you succeeded.

I made the "Mark II" version with separate address space:
https://github.com/gto76/comp-m2
Thanks for the advice!


Missing Header

Added Missing Header <string.h>
also placeholder for where the game.rif should be placed.
Also looks amazing thank you :+1:

why exactly the placeholder game.rif ?

OH- seems i just completely missed including the rif .. the file was marked as hidden so when i tried to upload it to github, it didnt work

turns out the rif wasn't uploaded because the file was marked as system and hidden, uh my bad.
anyway, im just gonna include the game.rif i don't see much reason to not just include it .

turns out the rif wasn't uploaded because the file was marked as system and hidden, uh my bad.
anyway, im just gonna include the game.rif i don't see much reason to not just include it .

okay sounds good was not sure if you wanted it in there or not.


query FYPO:0005634 | equational sister chromatid separation during meiosis I

FYPO:0005634
equational sister chromatid separation during meiosis I

should be an unequal homologues chromsome segregation.
But what does "unequal homologues chromosome segregation" mean  other then
FYPO:0005634 | equational sister chromatid separation during meiosis I?

ignore  unequal homologues chromsome segregation
is both homologous pairs going to the same side

add synonym
unequal homologous chromosome segregation
impaired disjunction of homologous chromosomes


simp failed with application type mismatch #help wanted

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

[X] Checked that your issue isn't already filed.
[X] Reduced the issue to a self-contained, reproducible test case.

Description
I was learning Lean and trying to prove this simple theorem.
theorem bad : ∀ (m n : Nat), (if m = n then Ordering.eq else Ordering.gt) = Ordering.lt → False := by
  intros m n
  cases (Nat.decEq m n) with
  | isTrue h =>
    set_option trace.Meta.Tactic true in
    simp [h]

From the trace below, I am expecting simp to reduce the goal from (if m = n then Ordering.eq else Ordering.gt) = Ordering.lt → False to Ordering.eq = Ordering.lt → False. But it failed with application type mismatch.
Steps to Reproduce
Just try the above theorem.
Expected behavior:
the goal is simplified into
⊢ Ordering.eq = Ordering.lt → False

Actual behavior: simp failed to simplify the goal.
Reproduces how often:
Always
Versions
Lean (version 4.0.0, commit a2c9b6a8be3d, Release)
Additional information
Goals (1)
case isTrue
m n : Nat
h : m = n
⊢ (if m = n then Ordering.eq else Ordering.gt) = Ordering.lt → False

Messages here (5)
3:2:
alternative 'isFalse' has not been provided
6:4:
application type mismatch
  eq_false' fun h => Ordering.noConfusion h
argument
  fun h => Ordering.noConfusion h
has type
  Ordering.eq = Ordering.lt → Ordering.noConfusionType False Ordering.eq Ordering.lt : Prop
but is expected to have type
  ?p → False : Prop
6:4:
[Meta.Tactic.simp.rewrite] h:1000, m ==> n
6:4:
[Meta.Tactic.simp.rewrite] eq_self:1000, n = n ==> True
6:4:
[Meta.Tactic.simp.rewrite] ite_true:1000, if True then Ordering.eq else Ordering.gt ==> Ordering.eq

It does not happen in the master branch anymore. I added the example to our test suite.

Great. It's interesting that it is fixed by the immediate successor of a2c9b6a8be (which is 4801b37cfb and meant to fix another issue).

Great. It's interesting that it is fixed by the immediate successor of a2c9b6a (which is 4801b37 and meant to fix another issue).

My bad, it was actually fixed in around aa63fda835eb974bffd7c2c192730866ffdd8c45 (Feb 14) and I was using an old branch. My reported version was wrong.


File is damaged or corrupt

I just used the fix he proposed in another thread and it worked fine for me with the V.4 beta
Copy/paste in the terminal:

xattr -d com.apple.quarantine /Applications/Flowgorithm.app


feat: more logging when progress disabled, separate test info, error …

requires https://github.com/oclif/core/actions/runs/5244564326 and https://github.com/salesforcecli/sf-plugins-core/pull/324 to allow the noTTYOutput to be set.  fyi: oclif uses https://github.com/npkgz/cli-progress

What does this PR do?
modify the deploy progress bar so that, when SF_USE_PROGRESS_BAR=false the output will

not include the bar graphics
go to stderr

Also, modifies output shown by the bar to include test completion and errors, closer to what Progress would show in plugin-source.
output when SF_USE_PROGRESS_BAR=true or isn't set
Status: Succeeded | ████████████████████████████████████████ | 91/91 Components (Errors:0) | 11/11 Tests (Errors:0)

output when SF_USE_PROGRESS_BAR=false
Status: Pending | 0/0 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: Pending | 0/0 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: Pending | 0/0 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 6/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 6/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 22/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 24/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 64/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 74/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 77/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 88/91 Components (Errors:0) | 0/0 Tests (Errors:0)
Status: In Progress | 91/91 Components (Errors:0) | 3/11 Tests (Errors:0)
Status: In Progress | 91/91 Components (Errors:0) | 7/11 Tests (Errors:0)
Status: In Progress | 91/91 Components (Errors:0) | 10/11 Tests (Errors:0)
Status: In Progress | 91/91 Components (Errors:0) | 10/11 Tests (Errors:0)
Status: Succeeded | 91/91 Components (Errors:0) | 11/11 Tests (Errors:0)

What issues does this PR fix or reference?
@W-13131360@
https://github.com/forcedotcom/cli/issues/2103
QA
this can be handy to see what's happening with the streams
SF_USE_PROGRESS_BAR=false ../plugin-deploy-retrieve/bin/dev project deploy start -d force-app --test-level RunAllTestsInOrg > stdout.txt 2> stderr.txt

QA is successful with the changes.  With the progress bar off the stderr output shows as above.  One minor issue is that this is displayed on line 1: Status: {status} | 0/0 Components (Errors:{errorCount}) {testInfo} but it's a very minor thing.
Everything else looks better and more accurate than it was before.


Standard Token Supply

Proposal
I propose Dev Protocol to allow OSS projects to mint a standard 10,000,000 tokens.
Why
This will help fix potential fragmentation and information asymetry. A standard supply will benefit Dev Protocol's ecosystem participants, especially when it comes to voting power, incentives, and ownership.

Property has a supply of 10 million tokens that cannot be mint or burned.
https://github.com/dev-protocol/protocol/blob/c6736b47089846a7004fd83aaeee653c04976995/contracts/src/property/Property.sol#L19-L20


Release v0.2.0

This PR prepares v0.2.0 release.
https://github.com/muga/embulk-filter-calcite/milestone/1

Coverage remained the same at 86.92% when pulling 292873d52080d40a5957c27081cfcd2167094d16 on release_v0.2.0 into f71f9f485867957809d24225dbe3f0a708a5ff63 on master.

I release v0.2.0 later @dmikurube


Building fails

I am having the following error on Ubuntu while trying to build Silq
./build-release.sh: line 18: ldmd2: command not found

You may not have run ./dependencies-release.sh before attempting the build. (That script will download ldmd2 into a local directory.)

I did but still getting the error. I'll try to download slang separately. I hope it works. Then I'll post my update here.

I was able to reproduce the issue in a fresh checkout of the repository. Thank you for reporting!
Fixed in commit e5d59c8a3e549ac5109dcd07cc0af33fd552f8df.

But the issue isn't resolved yet. What should I do to install silq from command line on Ubuntu without any issue?

What did you try exactly? The following is a full log of a successful build I attempted from scratch just now:
tgehr@thinkpad:~$ cd /tmp/
tgehr@thinkpad:/tmp$ git clone https://github.com/eth-sri/silq
Cloning into 'silq'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 12190 (delta 0), reused 1 (delta 0), pack-reused 12186
Receiving objects: 100% (12190/12190), 2.59 MiB | 2.48 MiB/s, done.
Resolving deltas: 100% (8251/8251), done.
tgehr@thinkpad:/tmp$ cd silq/
tgehr@thinkpad:/tmp/silq$ ls
ast                            build.sh                   dependencies-xosx-release.sh      dp.d           logo.png   r.ps1         test
astopt.d                       build-xosx-release.sh      dependencies-xwindows-release.sh  help.d         notes.txt  sample.d      util
asymptotics.d                  build-xwindows-release.sh  dexpr.d                           integration.d  options.d  samplefrom.d
backend.d                      context.d                  differentiation.d                 library        qsim.d     silq.d
build-all-platform-release.sh  dependencies-release.sh    distrib.d                         LICENSE        r          summation.d
build-release.sh               dependencies.sh            dparse.d                          limits.d       README.md  symbolic.d
tgehr@thinkpad:/tmp/silq$ ./dependencies-release.sh
--2020-07-16 17:21:02--  https://github.com/ldc-developers/ldc/releases/download/v1.22.0/ldc2-1.22.0-linux-x86_64.tar.xz
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/2174666/34d26d00-b01c-11ea-871d-e621aa0a9b88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200716T152102Z&X-Amz-Expires=300&X-Amz-Signature=8534ad5c7975af820b9a23dc1b0a9f4c196ddcbc68c630566e76d2eb16092580&X-Amz-SignedHeaders=host&actor_id=0&repo_id=2174666&response-content-disposition=attachment%3B%20filename%3Dldc2-1.22.0-linux-x86_64.tar.xz&response-content-type=application%2Foctet-stream [following]
--2020-07-16 17:21:02--  https://github-production-release-asset-2e65be.s3.amazonaws.com/2174666/34d26d00-b01c-11ea-871d-e621aa0a9b88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200716T152102Z&X-Amz-Expires=300&X-Amz-Signature=8534ad5c7975af820b9a23dc1b0a9f4c196ddcbc68c630566e76d2eb16092580&X-Amz-SignedHeaders=host&actor_id=0&repo_id=2174666&response-content-disposition=attachment%3B%20filename%3Dldc2-1.22.0-linux-x86_64.tar.xz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... <IP_ADDRESS>
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57756788 (55M) [application/octet-stream]
Saving to: ‘ldc2-1.22.0-linux-x86_64.tar.xz’

ldc2-1.22.0-linux-x86_64.tar.xz         100%[=============================================================================>]  55.08M  3.25MB/s    in 17s

2020-07-16 17:21:20 (3.20 MB/s) - ‘ldc2-1.22.0-linux-x86_64.tar.xz’ saved [57756788/57756788]

Submodule 'ast' (https://github.com/tgehr/ast.git) registered for path 'ast'
Submodule 'util' (https://github.com/tgehr/util) registered for path 'util'
Cloning into '/tmp/silq/ast'...
Cloning into '/tmp/silq/util'...
Submodule path 'ast': checked out '923721547ae0a613e59422762191e1922ca35383'
Submodule path 'util': checked out 'eb423774a2d62f80ccf0a643c90e93d433224b0e'
tgehr@thinkpad:/tmp/silq$ ./build-release.sh
Warning: struct Value has method toHash, however it cannot be called with const(Value) this.
Warning: struct Closure has method toHash, however it cannot be called with const(Closure) this.
Warning: struct ℚ has method toHash, however it cannot be called with const(ℚ) this.
Warning: struct BitInt has method toHash, however it cannot be called with const(BitInt!true) this.
Warning: struct BitInt has method toHash, however it cannot be called with const(BitInt!false) this.

The only explanation for why it's not working yet that I can think of would be that you did not run git pull to get the latest updates.
In your existing repository, run:
$ git pull
$ ./build-release.sh

Thanks for the response. I have the same output but after building I can't run this example
./silq example.slq  Also, I am trying to install the silq to use anywhere just like it is described here :https://silq.ethz.ch/install
after adding silq to path, I can't run silq from command line like silq example.slq  this is what I get after typing it
`(base) ayshine@ayshine:~/Desktop$ silq correct.slq
Command 'silq' not found, did you mean:
command 'silx' from deb silx
Try: sudo apt install
`
My output
(base) ayshine@ayshine:~$ git clone https://github.com/eth-sri/silq.git
Cloning into 'silq'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 12190 (delta 0), reused 1 (delta 0), pack-reused 12186
Receiving objects: 100% (12190/12190), 2.59 MiB | 789.00 KiB/s, done.
Resolving deltas: 100% (8251/8251), done.
(base) ayshine@ayshine:~$ cd silq
(base) ayshine@ayshine:~/silq$ ls
ast                            dependencies-xwindows-release.sh  options.d
astopt.d                       dexpr.d                           qsim.d
asymptotics.d                  differentiation.d                 r
backend.d                      distrib.d                         README.md
build-all-platform-release.sh  dparse.d                          r.ps1
build-release.sh               dp.d                              sample.d
build.sh                       help.d                            samplefrom.d
build-xosx-release.sh          integration.d                     silq.d
build-xwindows-release.sh      library                           summation.d
context.d                      LICENSE                           symbolic.d
dependencies-release.sh        limits.d                          test
dependencies.sh                logo.png                          util
dependencies-xosx-release.sh   notes.txt
(base) ayshine@ayshine:~/silq$ ./dependencies-release.sh
--2020-07-16 18:45:05--  https://github.com/ldc-developers/ldc/releases/download/v1.22.0/ldc2-1.22.0-linux-x86_64.tar.xz
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/2174666/34d26d00-b01c-11ea-871d-e621aa0a9b88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200716T154505Z&X-Amz-Expires=300&X-Amz-Signature=4ea08c34666b9fe8b705f0017bf96634cbd516aad59c0ca2127c5db2027dcd73&X-Amz-SignedHeaders=host&actor_id=0&repo_id=2174666&response-content-disposition=attachment%3B%20filename%3Dldc2-1.22.0-linux-x86_64.tar.xz&response-content-type=application%2Foctet-stream [following]
--2020-07-16 18:45:05--  https://github-production-release-asset-2e65be.s3.amazonaws.com/2174666/34d26d00-b01c-11ea-871d-e621aa0a9b88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200716T154505Z&X-Amz-Expires=300&X-Amz-Signature=4ea08c34666b9fe8b705f0017bf96634cbd516aad59c0ca2127c5db2027dcd73&X-Amz-SignedHeaders=host&actor_id=0&repo_id=2174666&response-content-disposition=attachment%3B%20filename%3Dldc2-1.22.0-linux-x86_64.tar.xz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... <IP_ADDRESS>
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57756788 (55M) [application/octet-stream]
Saving to: ‘ldc2-1.22.0-linux-x86_64.tar.xz’

ldc2-1.22.0-linux-x 100%[===================>]  55,08M  1,64MB/s    in 35s

2020-07-16 18:45:40 (1,59 MB/s) - ‘ldc2-1.22.0-linux-x86_64.tar.xz’ saved [57756788/57756788]

Submodule 'ast' (https://github.com/tgehr/ast.git) registered for path 'ast'
Submodule 'util' (https://github.com/tgehr/util) registered for path 'util'
Cloning into '/home/ayshine/silq/ast'...
Cloning into '/home/ayshine/silq/util'...
Submodule path 'ast': checked out '923721547ae0a613e59422762191e1922ca35383'
Submodule path 'util': checked out 'eb423774a2d62f80ccf0a643c90e93d433224b0e'
(base) ayshine@ayshine:~/silq$ ./build-release.sh
Warning: struct Value has method toHash, however it cannot be called with const(Value) this.
Warning: struct Closure has method toHash, however it cannot be called with const(Closure) this.
Warning: struct ℚ has method toHash, however it cannot be called with const(ℚ) this.
Warning: struct BitInt has method toHash, however it cannot be called with const(BitInt!true) this.
Warning: struct BitInt has method toHash, however it cannot be called with const(BitInt!false) this.
(base) ayshine@ayshine:~/silq$

(You have not shown how you added silq to path.) The instructions on that page work for me:
tgehr@thinkpad:/tmp/silq$ sudo ln -s $(pwd)/silq /usr/local/bin/silq
tgehr@thinkpad:/tmp/silq$ which silq
/usr/local/bin/silq

I added during one of the previous installations. Should I locate and delete add it again?
(base) ayshine@ayshine:~/silq$ sudo ln -s $(pwd)/silq /usr/local/bin/silq
[sudo] password for ayshine:
ln: failed to create symbolic link '/usr/local/bin/silq': File exists
(base) ayshine@ayshine:~/silq$ which link
/usr/bin/link
(base) ayshine@ayshine:~/silq$ which silq
(base) ayshine@ayshine:~/silq$

Yes, let's try that. Possibly it is pointing to the wrong location.
tgehr@thinkpad:/tmp/silq$ sudo rm /usr/local/bin/silq
tgehr@thinkpad:/tmp/silq$ sudo ln -s $(pwd)/silq /usr/local/bin/silq
tgehr@thinkpad:/tmp/silq$ which silq
/usr/local/bin/silq

Also, you can run the following to test your build on an example:
tgehr@thinkpad:/tmp/silq$ echo 'def main()=>H(0:B);' > example.slq && ./silq example.slq --run; rm example.slq
(0.707107+0i)·|1⟩+(0.707107+0i)·|0⟩

Thank you so much! It is working now.
(base) ayshine@ayshine:~/silq$  sudo rm /usr/local/bin/silq
[sudo] password for ayshine:
(base) ayshine@ayshine:~/silq$ sudo ln -s $(pwd)/silq /usr/local/bin/silq
(base) ayshine@ayshine:~/silq$ which silq
/usr/local/bin/silq
(base) ayshine@ayshine:~/silq$ echo 'def main()=>H(0:B);' > example.slq && ./silq example.slq --run; rm example.slq
(0.707107+0i)·|1⟩+(0.707107+0i)·|0⟩
(base) ayshine@ayshine:~/silq$ (0.707107+0i)·|1⟩+(0.707107+0i)·|0⟩

Great!