Added new and updating existing background layer tokens to S2 set

Description
Added new and updating existing background layer tokens to S2 set in Tokens Studio and S2/Variables. Also reordered token organization to reflect proper usage based on S2 guidelines.
New tokens:

background-color-elevated
background-color-pasteboard

Updated tokens:

background-color-layer-2
background-color-layer-1
background-color-base

Motivation and context

In Spectrum 2, background layers are used differently depending on the primary context of the page. We now have a full set of tokens to help users distinguish between primary purposes, editing vs browsing.
Related issue

Types of changes

[ ] Patch (bug fixes, typos, mistakes; non-breaking change which fixes an issue)
[X] Minor (add a new token, changing a value; non-breaking change which adds functionality)
[ ] Major (deleting a token, changing token value type; fix or feature that would cause existing functionality to change)

Checklist:

[X] I have signed the Adobe Open Source CLA.
[X] I updated the token in all applicable sets. This applies if updating, adding, or deleting a token that has data across different sets (for example, if the value differs across color themes.)

TESTING spectrum2-colors
READING spectrum-tokens: /spectrum-tokens/packages/tokens/src/
READING   tokens studio: /spectrum-tokens-studio-data/src/tokens-studio/spectrum2-colors/
TOKENS STUDIO DATA IS COLOR ONLY
STUDIO SYNC SUMMARY
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/dark.Alias.background.app-frame.elevated
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/light.Alias.background.app-frame.elevated
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/dark.Alias.background.app-frame.pasteboard
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/light.Alias.background.app-frame.pasteboard

SPECTRUM SYNC SUMMARY
NEW TOKENS: (4) background-elevated-color/dark, background-elevated-color/light, background-pasteboard-color/dark, background-pasteboard-color/light
CHANGED VALUES: (1) background-base-color/light

TEST COMPLETE

SYNCING spectrum2-colors
READING spectrum-tokens: /spectrum-tokens/packages/tokens/src/
READING   tokens studio: /spectrum-tokens-studio-data/src/tokens-studio/spectrum2-colors/
TOKENS STUDIO DATA IS COLOR ONLY
STUDIO SYNC SUMMARY
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/dark.Alias.background.app-frame.elevated
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/light.Alias.background.app-frame.elevated
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/dark.Alias.background.app-frame.pasteboard
UPDATED METADATA - SPECTRUM UUID: spectrum2/alias/light.Alias.background.app-frame.pasteboard

SPECTRUM SYNC SUMMARY
NEW TOKENS: (4) background-elevated-color/dark, background-elevated-color/light, background-pasteboard-color/dark, background-pasteboard-color/light
CHANGED VALUES: (1) background-base-color/light

WROTE: /spectrum-tokens-studio-data/src/tokens-studio/spectrum2-colors/spectrum2/alias/dark.json
WROTE: /spectrum-tokens-studio-data/src/tokens-studio/spectrum2-colors/spectrum2/alias/light.json
WROTE: /spectrum-tokens/packages/tokens/src/color-aliases.json
SYNC COMPLETE
Spectrum Tokens Pull Request
Tokens Studio Pull Request


rename() fails with trailing slash

Tested on rs_preview build 14905:
Run the following:
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>

int main(void)
{
    if (mkdir("dir1", 0777) != 0)
        err(1, "mkdir errno %d", errno);

    if (rename("dir1", "dir2/") != 0)
        err(1, "rename errno %d", errno);

    return 0;
}

On Linux, this succeeds.  On Windows, I get the following:
a.out: rename errno 2: No such file or directory

Without the trailing slash, the rename works as expected.
This is causing a few failures in the .NET Core tests.

@ericeil - Thanks for reporting this. I have opened a bug to track this. It should get auto-triaged.

If the oldpath has a trailing slash, Bash On Windows to hangs and the lxssmanager service can not be restarted.
#include <stdlib.h>
int main () {
	return rename ("dir1/", "dir2");
}

tmontague@AMP:/mnt/c/test$ gcc rename.c
tmontague@AMP:/mnt/c/test$ mkdir dir1
tmontague@AMP:/mnt/c/test$ ls -l
total 12
-rwxrwxrwx 1 root root 8522 Sep 13 16:34 a.out
drwxrwxrwx 2 root root    0 Sep 13 16:35 dir1
-rwxrwxrwx 1 root root   70 Sep 13 16:30 rename.c
tmontague@AMP:/mnt/c/test$ ./a.out
^C

Pressing ^c does not do anything, and all open bash terminals are unresponsive.
This only occurs when running from a Windows directory (i.e., it occurs in/mnt/c, but not /). This bug causes autoconf to hang during its "checking whether rename honors trailing slash on source" test. See GNU m4 installation fails on Windows 10 bash on Ubuntu.
I am using Microsoft Windows [Version 10.0.14393]

Both issues are gone on my latest internal build.

This issue was fixed in Insider build 14965, please re-open if this issue is seen again.

On the anniversary build this issue can cause bash to not restart. (At work I can't switch to the insider track).
Rebooting does not fix the problem. Stopping the service (sc stop lxssmanager) then running bash once as administrator  does fix it. Sometimes it gets stuck though on the stop and rebooting or shutdown does not correct the issue (due to windows 10 hibernating rather than truly shutting down). In this case I've found that it is necessary to "shutdown /s" to truly shutdown, then booting back up and running bash once as administrator.

Bash was unresponsive for me after a bad mv with trailing slashes. I shutdown with shutdown /s and ran bash as administrator as @bogen suggested and everything works again.

Is there some way we can get fixed versions more quickly? ref: build 14965

If you want to get fixed versions more quickly, you can sign up for Windows Insider builds.  Both the Slow and the Fast Insider rings get WSL updates more frequently than regular (stable) Windows.
Alternatively, this particular fix (as well as a lot of other fixes) is scheduled to ship with the Windows Creators update on April 11, less than a week from now.


Vac Auth

no idea why keeps vac auth...used a manual map and load library injector..still the same

It is also same as the skinchanger official russian page skin changer. New update has fixed it. It is so hard to use skin changers these days......

Duplicate of #39


Slack magic?

Have you looked at creating some IPython line or block magic (%slack or %%slack) to support issuing Slack commands from notebook code cells?
I'm think that your Interacting with Slack.ipynb probably contains many of the necessary ingredients already?

That is a brilliant idea! It doesn't appear to be very hard to write your own cell magic so I'll give it a shot. Thanks for the recommendation!

@WillKoehrsen This magic — https://github.com/catherinedevlin/ipython-sql — is quite a rich one (I think a Slack magic could be easier), but it demonstrates a feature that might be useful for a Slack magic, specifically persisting the connection so that you only need to set it once.
I've also wondered about a complementary approach - defining a Slack slash command that could send a code fragment to a Jupyter kernel launched on Binderhub, and get the response back into Slack?  Something like the ThebeLab js package might provide a clue as to how to do this?

Here's another thought on the side... In terms of notification-style working, jupyter-notify provides "Jupyter magic for browser notifications of cell completion". Just prefix a long running cell with %%notify and you'll get a notification when it completes via a browser push notification.
So if a browser notification, why not a Slack channel notification?


Change uuid dependency to Google's

Do you know why these Github actions are failing?

Yes, I should have tested the changes. Fixed.


There is a memory leak defect at line 3232 of the file /openssl/ssl/statem/statem_srvr.c.

At line 3197 of the file /openssl/ssl/statem/statem_srvr.c, a pointer variable named pkey_ctx is defined. This variable allocates a dynamic memory region through the function EVP_PKEY_CTX_new_from_pkey at line 3225. When the if statement at line 3226 returns false, it indicates that the dynamic memory region pointed to by pkey_ctx has been successfully allocated. However, if the if statement at line 3230 returns true, the program will return at line 3232 without executing the release operation for the dynamic memory region pointed to by pkey_ctx at line 3287. This leads to a memory leak defect, as shown in the diagram below:
https://github.com/LuMingYinDetect/openssl_defects/blob/main/openssl_22.png

I wonder why Coverity isn't catching these.

I wonder why Coverity isn't catching these.

This is probably code not built in the coverity builds.

@nhorman This issue is fixed in branch master with the following commit: https://github.com/openssl/openssl/commit/3e9d933882407a0792dc3466ba9a0d53d40677a7

@nhorman This issue is fixed in branch master with the following commit: https://github.com/openssl/openssl/commit/3e9d933882407a0792dc3466ba9a0d53d40677a7

Thanks. This was fixed by #24366, but the commit message didn't include a "Fixes" line so this wasn't auto-closed.


Add column name to exception "Unsupported Pyarrow type" in  athena_types_from_pandas/pyarrow2athena

Is your idea related to a problem? Please describe.
While trying to convert pandas to athena types if Unsupported Pyarrow type is raised, there is no way of knowing what column is causing the exception.
While for exceptions.UndetectedType the column name is displayed, the same does not happen for Unsupported Pyarrow type.
Exception example:
'Unsupported Pyarrow type: time64[us]'
Describe the solution you'd like
It would be nice to have the name of the column that is causing the exception just like happens to the UndetectedType exception.
Exception example:
'Column abc - Unsupported Pyarrow type: time64[us]'

Covered in 2.7.0 release


Dockerized Satellite + Remix setup

Created a Remix app with Satellite as the server.
Dockerized the web-app
Removed redundant PDNS services from docker-compose.yml

The main docker-compose.yml acts as a development compose file.
To run the web-app in dev environment, run the following command in the root directory of this repo:
docker-compose up
This will start the web-app service, which is accessible at https://localhost:3000
MySql is accessible at https://localhost:3036
Adminer (MySql administration layer) is accessible at https://localhost:8080
When connecting to adminer, you can use the following credentials:
Server: mysql
Username: root
Password: root
DB: Leave Blank

This is too big. We haven't assigned work yet based on today's meeting, and it's touching too many things at once. I'd like to wait until we have the scope and assignments figured out before we jump into.

I agree, the scope of the PR is too broad. I intended for it to be more of an initializer, as the project (as of right now) doesn't contain anything to extend upon.
If needed, I can always break it into smaller fragments depending on the work assigned in the future. For now, feel free to close the PR.
Thanks.

@416rehman OK, I'm going to close this for now, but some pieces of this can get resurrected later into follow-up PRs.
I appreciate your enthusiasm to get us started, but I want to go through a planning phase next week before we do, and assign work so that we don't overlap efforts.
We need to get you (and everyone else) an area you can focus on.


change protocol to access 3rd party repos, from ssh to https.

currently, .gitmodule sets the protocol for 3rd party repos to ssh, like, "url = git@github.com:adobe/stylesheet.git". I suggest to change it to https, like, "url = https://github.com/adobe/stylesheet.git". It could be slightly more convenient to download & compile on the systems without registered ssh keys.

Sorry, just I've signed with Adobe CLA, but the status seems to be kept. Should I close this PR and refile again?

Thank you for taking care on this!


Merge release/v0.9.0 into develop branch

This PR is for merging 0.9.0 into develop branch.

Thanks for the fast review! merging now !


[Feature] Input Address Form with Google API

Summary
Creates an address form composed by:

an autocomplete field based on Google Places API
several other fields, choosen by the user, that will contain the components of the address

The fields will be filled automatically
Preview

Usage
$this->crud->addField([
            'name'  			=> 'address',
            'label' 			=> 'Indirizzo',
            'type'  			=> 'address_form_google',
            'google_api_key'	=> env('GOOGLE_API_KEY'),

            'components' =>  [
                'COMPONENT' => [
                    'name'  => 'address_line_1',
                    'label' => 'Via',
                    'type'  => 'long_name', // Optional
                ],
                // Other components
            ],
        ]);

This field needs a Google API Key that can be retrived here
The components that can be used are:

'route'
'street_number'
'postal_code'
'locality'
'administrative_area_level_1'
'administrative_area_level_2'
'country'

so a complete field would look like this:
$this->crud->addField([
            'name'  			=> 'address',
            'label' 			=> 'Indirizzo',
            'type'  			=> 'address_form_google',
            'google_api_key'	=> env('GOOGLE_API_KEY'),

            'components' =>  [
                'route' => [
                    'name'  => 'address_line_1',
                    'label' => 'Via',
                    'type'  => 'long_name',
                ],
                'street_number' => [
                    'name'  => 'address_line_2',
                    'label' => 'Civico',
                    'type'  => 'short_name',
                ],
                'postal_code' => [
                    'name'  => 'postal_code',
                    'label' => 'CAP',
                    'type'  => 'short_name',
                ],
                'locality' => [
                    'name'  => 'city',
                    'label' => 'Città',
                    'type'  => 'long_name',
                ],
                'administrative_area_level_1' => [
                    'name'  => 'region',
                    'label' => 'Regione',
                    'type'  => 'long_name',
                ],
                'administrative_area_level_2' => [
                    'name'  => 'province',
                    'label' => 'Provincia',
                    'type'  => 'short_name',
                ],
                'country' => [
                    'name'  => 'country',
                    'label' => 'Nazione',
                    'type'  => 'short_name',
                ],
            ],
        ]);

the 'type' attribute is optional and can be set to 'short_name' or 'long_name'.
The default value is 'long_name'.
Each component needs a column in the table.
The autocomplete field is not stored so it doesn't need a column in the table.
A complete migration would look like this:
public function up()
    {
        Schema::create('addresses', function (Blueprint $table) {
            $table->increments('id');
            $table->string('address_line_1');
            $table->string('address_line_2');
            $table->string('city');
            $table->string('region');
            $table->string('province');
            $table->string('postal_code');
            $table->string('country');
            $table->timestamps();
        });
    }

All the fields can be validated with their own rules like every standard field.

Thank you @OwenMelbz :smile:
I will implement the changes you suggested!
About the API key, do you mean using the env() variable directly in the api call like this
<script src="https://maps.googleapis.com/maps/api/js?key={{ $env('GOOGLE_API_KEY') }} ...></script>

instead of
<script src="https://maps.googleapis.com/maps/api/js?key={{ $field['google_api_key'] }} ...></script>

and eliminate the google_api_key attribute inside the field?
Or I can check if the google_api_key exists in the field attribute, if not I check if it exists in the .env file.
Enhancement
I have to admit that I was inspired by the address field you created using Agolia Places ( congratulations btw :grin: ) but I needed something more complex. I first tried with Agolia Places but the Open Street Map isn't as complete as Google Maps and I was really disappointed when it couldn't find office address!
I was thinking to enhance my address field giving the possibility to be used like the address field that already exists but using Google Places API.
It would look like this
BASIC FIELD
$this->crud->addField([
            'name'              => 'address',
            'label'             => 'Address',
            'type'              => 'address_form_google',

            // optional
            'store_as_json' => true
        ]);

ADVANCED FIELD
$this->crud->addField([
            'name'              => 'address',
            'label'             => 'Address',
            'type'              => 'address_form_google',

            'components' =>  [
                'COMPONENT' => [
                    'name'  => 'address_line_1',
                    'label' => 'Street',
                    'type'  => 'long_name', // Optional
                ],
                // Other components
            ],
        ]);

What do you think about?

Is this possible to get location from our location or device like using HTML5 instead typing specific address? Would be useful if that happens. :)

@M4rk3tt0 your suggested enhancement (both basic and advanced) sound PERFECT to me. I like the "components" name for that attribute. I also like the idea of also being able to define the Google API key in an environment variable. Could we call the field "google_address"? I'm thinking that we'll also call the other one "algolia_address" and in time we'll phase out the simple "address" one.
@elraghifary I think that might be overkill. CRUDs are usually for inserting a lot of information, so A LOT of it won't be about your current location, but some other location. So geolocation might end up being more annoying that useful, in most cases.
Cheers guys!

@M4rk3tt0 Im thinking of something waterfall like allowing multiple locations, for ultimate flexibility for the user so maybe like
$googleApiKey = isset( $field['google_api_key'] ) ? $field['google_api_key']  : ( config('backpack.google_api_key', env('GOOGLE_API_KEY', null) );

<script src="https://maps.googleapis.com/maps/api/js?key={{ $googleApiKey }} ...></script>

So that way

A user can pass in a api key if they want, otherwise
It can pull it from their config (this might pull from their env file, and helps users who have diff api keys for different services)
If its not found in the config, it will try find it in the env variables
else I imagine google will just 400 error.

Then they can set it globally.
What do you think to that?
But I definitely like the idea of a more complex one, maybe we could merge the 2 features? create something like 'provider' => 'google' //others algolia this way would allow more flexibility for users? and would also mean its backwards compatible if we keep the default as Algolia and just document it nicely?
@elraghifary thats a nice idea :) Yes its possible to get an estimated lat / long from the HTML geolocation function similar to navigator.geolocation.getCurrentPosition(callBack); I don't think this fits in with Backpacks current roadmap, but as a community member you're more than welcome to submit PR with this functionality, or maybe liaise with @M4rk3tt0 to see if its something he wants to expand his PR with? maybe another option! 'enable_html5_location' => true etc

@tabacitu I'm glad you like it! I will work on it as soon as I can :smile:
@OwenMelbz Yes that makes sense, I will implement the api key the way you suggested. We can definitely merge the two address fields together when they are ready.
@elraghifary It is possible to get the location using HTML5 and use the Reverse Geocoding of Google Geolocation API to get the address but it would be only an estimate.
The user would have to fill the fields manually because the address would be wrong.
You can try if you want. Get an API KEY and send a get request the url that you  find HERE replacing the latitude and longitude with the one you get from HTML5.
The geolocation could be useful to reduce Google Places API search area.

Recommend adding an option to change the autocomplete search (e.g. 'establishment').

@tabacitu What about merging this?

Possible to add country restriction option in the address_google CRUD options?
// Set initial restrict to the greater list of countries.
$autocomplete.setComponentRestrictions(
    {'country': ['us', 'pr', 'vi', 'gu', 'mp']}
);

There are some good ideas that we can extract from here to apply in our google_address field, but I think it's time to put this 8 year issue behind us.
Thanks everyone that worked on this, and sorry it didn't get merged.
Cheers


Test and apply the original AVX i40e fix patch

Today we carry DPDK patch for rearm issue here
Lets see if the original patch to address the issue works with 18.02 and carry that instead
http://patches.dpdk.org/patch/43451/
cc @ajamshed

I just verified that this patch works on my testbed. My testbed specs:
Intel(R) Xeon(R) Platinum 8170 CPU @ 2.10GHz (dual-socket)
Intel XL710 dual port adapter (40 GbE QSFP+)

@ajamshed Can you send a PR to update the patch used?


Add zsh source to .zshrc.local instead of .zshrc if it exists

Category

[x] Etc.

OS

[x] Linux

Shell

[x] zsh

It is popular for zsh configs (e.g. by the wildly used https://grml.org/zsh/) to have an immutable ~/.zshrc and a ~/.zshrc.local that contains local modifications over what is provided e.g. by grml's config.
By default fzf's setup adds [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh to .zshrc, I'm suggesting that we might want to add it to .zshrc.local if it exists.

Thanks for the suggestion. While I like the idea, I'm not sure if we should do so. Because the existence of the file does not guarantee that it's actually loaded by zshrc. fzf has been around for a few years by now, so I'm also a bit concerned about the confusion the sudden change might bring.
The install script asks if it should update shell configuration files, and it provides --no-update-rc option so one can write ./install --all --no-update-rc. So the users who want the line in different files can put it manually in whichever file they prefer, and I think it suffices for now.

I had an issue where .zshrc kept having `` added every update
Before:
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'

After:
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all --no-update-rc' }
Plug 'junegunn/fzf.vim'

Shell: .zshrc sourcing env.d/fzf.zsh


#268697857 Curl error: (#60) SSL certificate problem: unable to get local issuer certificate

http://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-unable-to-get-local-issuer-certificate


Migrations are resolved differently with and without packaging

Which version and edition of Flyway are you using?
5.1.4
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Java API
Which database are you using (type & version)?
PostgreSQL 9.6
Which operating system are you using?
Ubuntu Linux 18.04
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
I'm in the process of embedding Jetty into a pre-existing web application. For reasons I'd rather not go into here, I ended up with the following structure :
/
├── <boot and dependency classes and resources, including code that uses Flyway>
├── WEB-INF/
│   └── classes/
│       └── <web application classes>
└── db/
    └── migration/
        └── <SQL migrations>

There are two classloaders:

The boot one, which uses the classes and resources in /.
The webapp classloader, which uses the classes and resources in /WEB-INF/classes/. The first classloader is its parent.

In this setup I run Flyway in a thread that uses the second classloader, but the actual code resides in the first (parent) classloader. There are two possible scenarios:

Running without packaging (the root of the structure above is a simple directory).
Running with WAR packaging (the root of the structure is a .war file), running the WAR as a JAR (java -jar foo.war).

What did you expect to see?
I expected Flyway to find the migrations in both of the scenarios above.
What did you see instead?
Flyway successfully finds the migrations when running from a directory. However it can't locate the migrations when running from a WAR archive.
The problem here is JarFileClassPathLocationScanner. It assumes that the classloader root coincides with the archive root (or WEB-INF/classes for WAR archives), which is not always the case. For example, if the classloader resolves location resource to /foo.jar!/bar/location, then the resulting call jfcpls.findResourceNames("location", new URL("jar:file:/foo.jar!/bar/location")) will look for resources in /foo.jar!/location instead.
I'd like to see Flyway behave more consistently in cases like this. Since we have both the original location and the URL it resolves to, we can remove from the URL only the parts that correspond to the location, leaving the prefix intact.
One workaround for my case would be to move the migrations into WEB-INF/classes, which is ugly, but not much weirder than what I already have. Another way would be to roll my own JarFileClassPathLocationScanner and ClassPathScanner. Switching from WAR to JAR would be the best thing to do, but I can't do that at the moment.

You should absolutely more your migrations to WEB-INF/classes as now they are exposed to clients (!).
The current behavior works fine for the overwhelming majority of war deployments. And your current structure is really not something to recommend, so I'll settle for won't fix on this one.


Chaining Middleware

UseCompression should return IAppBuilder so that further middleware can be chained.  Right now it returns void so this is not possible:
appBuilder.Use().UseCompression().UseWebApi(config);
Also, what license are you using?
Thanks.

Hi.  I've just added a license file to the repository (MIT).
I should be able to look at fixing this issue later today.

Just sorted this out.  Will update the issue once the CI server has pushed to nuget.org.

This has just been pushed to nuget.org. Version 1.3.33.

Wow, that was fast!  Thanks.
On Aug 1, 2016 1:06 PM, "mikegore1000"<EMAIL_ADDRESS>wrote:

This has just been pushed to nuget.org. Version 1.3.33.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mikegore1000/SqueezeMe/issues/6#issuecomment-236642854,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEdRlCNVAKzsr--lR6Q4N6CWRwXQG4trks5qbieggaJpZM4JZtBy
.


Create Unit test for Describe symptoms page

Describe symptoms page
a) “Do you have a fever?” question -check drop-down options
b) Temperature change C to F
c) Temperature -allowed numbers only
d) Symptoms questions -check drop-down options

Thank you for creating this issue.
We are reviewing our approach to testing + will update the guidance around testing once that is completed.


Firebase Preview expiration should be increased

I think that 3 days is too short. For example, this PR is still a hot topic five days after it was pushed.
@steveoh, what do you think about two weeks or longer? What is the downside other than clutter?

The downside is pretty much storage. The timing is rolling, meaning every commit extends that windows. I agree 3 days it too short. I wouldn't want to go much longer than 2 weeks.


ROS API for IPFS

ROS wrapper for IPFS API? Service to add by given file path and response with hash, for example. Is it make sense?
Pros

Consistence of Robonomics platfrom API, AIRA closer to sufficient ROS API for a Web3.0,
No need to learn ipfsapi interface,
No need to create and keed another instance of ipfs_client, reimplement interraction and errors handling.

Cons

One more intermediate (user -> wrapper -> ipfsapi module -> IPFS provider).

@khssnv, ROS API (via ROS services) for upload/download files to/from IPFS is introduced in #102.
Feel free to reopen this issue or create another one if more cases are needed.

@strdn, great! Any dependencies on Robonomics platform specific

@strdn, great! Any dependencies on Robonomics platform specific components? Can we introduce it as a general IPFS ROS API package for ROS and IPFS communities?

@khssnv, this functional implemented in ipfs_common package and can be used without robonomics_comm. But I'm think that sources of ipfs_common package must be separated from robonomics_comm and some another things must be done before introducing for communities.


Static Analysis for Security Issues and Vulnerabilities

The attached report shows the vulnerabilities found in the code. It also shows the line of code and python file which needs fixation for the security Issues.
Flask.zip

This is not an acceptable format for a bug report, and not a responsible way to report potential security issues. If you believe you have found an unpatched security issue, please email<EMAIL_ADDRESS>Be sure to include a writeup in your own words of a single issue, not a huge dump from some automated tool.


Changing cells background color affect other cells background colors

I have reviewed the 'README' File and docs
I have searched exsiting issues.
I have a EmbeddedSectionController and i wanted to change the color of the cell when pressed. But when i do so, some other cells i didn't click on change their color as well, not sure why.
here is the code :
   override func didSelectItem(at index: Int) {         guard let cell = collectionContext?.cellForItem(at: index, sectionController: self) as? TopicCell else {return}         cell.label.backgroundColor = UIColor.black         cell.label.textColor = UIColor.clear     }
Thanks

Does the cell exist?
Set the contentView background color instead
What debugging have you done?
Do you have an example project?

Sent with GitHawk

Sorry it was my fault. i haven't set the color before changing it.


Create a GH workflow example, when PR merge registers a version / assigns a stage

Some users may want to register new version / assign a stage to a specific artifact when PR is merged. This could be achieved by creating a GH workflow that does this. Few questions:

How to know which artifact to register? Which semver to use? Which stage to assign? (Maybe Labels? I've seen some tools that bump project's semver based on PR labels like minor, major, patch). What if there are multiple artifacts to register/assign stages to?
Should we add an example of this workflow in gto-example repo?
Does it influence GTO/DVC integration in any way?

Just noticed this issue/ suggestion - this would be something that I would be quite interesting in!
In the meantime, I have tried to implement a gto register step (Github Actions) upon a pull request being merged and running into an error.
For the Github Action that has been set up:
Register-New-Model:
  if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      with:
        fetch-depth: 0
    - name: Install packages to register model
      run: |
        pip install gto
    - name: Register Model
      run: |
        REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
        git config user.name "Github-Bot"
        git config user.email<EMAIL_ADDRESS>        gto register ${REGISTER_MODEL_NAME}

The error that I get is:
Created git tag<EMAIL_ADDRESS>that registers version
Running `git push origin<EMAIL_ADDRESS>❌ The command `git push origin<EMAIL_ADDRESS>failed. Make sure your local
repository is in sync with the remote.

I have tried replacing this gto register step with git tag<EMAIL_ADDRESS>and this correctly add the corresponding tag.
Is there something that is missing to use gto register in this manner?

I have tried replacing this gto register step with git tag<EMAIL_ADDRESS>and this correctly add the corresponding tag.
Is there something that is missing to use gto register in this manner?

did git push work for this tag? (I assume git tag alone is not enough, we need to save it back to GitHub)

Sorry, I meant I replaced it with
git tag<EMAIL_ADDRESS>git push origin<EMAIL_ADDRESS>
which does add the tag as expected

Could you please try to run it with -v: gto -v ...?
is there a small repo example, that I could fork to reproduce it?

I've added -v but seemingly, get the same error message with no extra debugging information
I've create a dummy repo: https://github.com/quandanrepo/PR-Merge-Register
which has the same workflow - so just checking out the main branch and trying to register commit as a tag

@quandanrepo thanks! I think I understand the core issue here. It's the same as described here https://github.com/iterative/scmrepo/issues/262 . The workaround is avoid pushing on the gto register and use git directly. It depends on the https://github.com/iterative/gto/issues/405 .
Until https://github.com/iterative/gto/issues/405 is solved in some way, you could ignore the error from the gto command and run git manually.
Could you please try and let me know if that works as a workaround for now?

Thanks for the additional information and suggestion!
I have bypassed the gto register step with an annotated tag and push step, which works for now and can be shown using the gto show command


ember-release must pass CI

ember-release must pass CI

In the current version, ember-release must pass, so PR is not needed.


Fullscreen curses applications that set background color have off-color lines

Example: http://ikeran.org/images/lines.png
In another terminal for comparison: http://ikeran.org/images/lines_working.png

Can you tell me which terminal font and size you are using?  (I primarily use DejaVu Sans Mono at size 14 and there it works fine.)

@dhasenan is this still a problem with the 0.29.0 release?

I'm closing this issue due to inactivity.


Added hen.ee to sites.yml

Website (if applicable): https://hen.ee
This PR is:

[x] Adding a new domain
[ ] Updating existing domain
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (darktheme.club site)
[ ] Other not listed

Checked:

[x] The domain is in the correct alphabetical order
[x] The following information is filled identical to the data file

I confirm that I have read the FAQ page, particularly the red section about inappropriate content, and I attest that this site is appropriate based on those criteria.

[x] Check to confirm

Looks like there's a nasty flash before the JavaScript enables the dark mode. 🫣 Thanks for adding the site though!


Vectorize codex organic structures icon

Hope this helps
svg can be found here: https://drive.google.com/open?id=15iXZw9Cl0hfMqWviYdBZsxk-gg0DQ-Zp


Series vs. DataFrame confusion

I'm applying a function that returns a scalar to a group (alldata is a Dask dataframe):
def func(gp):
     return gp['Ref'].iloc[0]

estimates = alldata.groupby('Id').apply(func)
estimates.columns = ['rowno', 'Expected']   # unlike Pandas, this doesn't change column names
estimates.to_csv('out.csv',  index=False, index_label=False)  # doesn't work because estimates is not a DataFrame.  Instead it seems to be a Series

I find that estimates is now a Series, and Series doesn't support writing out. How can I write out all the values in this Series to disk? There is no values() method. I tried to work around this by using head()
estimates = estimates.head(n=len(estimates))
pd.DataFrame({'Id': np.arange(1,len(estimates)+1), 'Expected': estimates}).to_csv(...)

but this doesn't work either because only the first partition is written out, not the full file.

Apply is, as in Pandas, always a little wonky.
I suspect that you'll have a better time if you use .apply(func, columns=...) rather than trying to mutate the columns directly.
I've added Series.to_csv in https://github.com/blaze/dask/pull/621

Hrm I wonder if we should force the user to supply columns= in apply calls.  This would likely avoid a lot of surprises.

First of all, thanks for your suggestion on using apply(func, columns) and for the prompt change.
apply(func, columns) worked, and the resulting Series has the right column names.
When will Series.to_csv() get merged into master? The reason I ask is that I'm providing example code for a Kaggle contest, and don't want to make people figure out how to install specific branches of dask.
Until then, is there a work-around to Series.to_csv?  For example, is there a way to create an out-of-core DataFrame using the Series, and then call DataFrame.to_csv?  I tried to change 'func' to return a tuple instead of a scalar, but apply() still returns a Series.

I've just merged #621
Creating a DataFrame from a Series seems like a useful operation as well.

See https://github.com/blaze/dask/pull/623

I tried to change 'func' to return a tuple instead of a scalar, but apply() still returns a Series.

Note that, unlike with pandas, dask.dataframe is unable to run your function on some sample data to get a sense of what the output will be.  This means that we are far less intelligent than Pandas about guessing output types, hence the need to give the columns explicitly.


Duplicate Output in log debug pretty

I've seen this lots of mentions of this without a clear solution.
I'm experiencing duplicate output in the log when running a staged deployments.
Here's my log:
INFO [abd4b2ba] Running /usr/bin/env mkdir -p /tmp/take5/ as<EMAIL_ADDRESS>INFO [abd4b2ba] Finished in 0.510 seconds with exit status 0 (successful).
INFO Uploading /tmp/take5/git-ssh.sh 100.0%
INFO [94e1f157] Running /usr/bin/env chmod +x /tmp/take5/git-ssh.sh as<EMAIL_ADDRESS>INFO [94e1f157] Finished in 0.090 seconds with exit status 0 (successful).
INFO [8c55a5f6] Running /usr/bin/env mkdir -p /tmp/take5/ as<EMAIL_ADDRESS>INFO [8c55a5f6] Finished in 0.102 seconds with exit status 0 (successful).
INFO Uploading /tmp/take5/git-ssh.sh 100.0%
INFO [8ef265f0] Running /usr/bin/env chmod +x /tmp/take5/git-ssh.sh as<EMAIL_ADDRESS>INFO [8ef265f0] Finished in 0.075 seconds with exit status 0 (successful).
Please enter branch (master):
INFO [bd0e8af3] Running /usr/bin/env git ls-remote --heads git@github.com:newism/take5.git as<EMAIL_ADDRESS>INFO [bd0e8af3] Finished in 3.681 seconds with exit status 0 (successful).
INFO [2e1529c6] Running /usr/bin/env git ls-remote --heads git@github.com:newism/take5.git as<EMAIL_ADDRESS>INFO [2e1529c6] Finished in 3.685 seconds with exit status 0 (successful).
INFO [4ed7024d] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/shared ~/take5.ncig.com.au/releases as<EMAIL_ADDRESS>INFO [4ed7024d] Finished in 0.077 seconds with exit status 0 (successful).
INFO [7ea7099e] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/shared/var/logs ~/take5.ncig.com.au/shared/var/cache ~/take5.ncig.com.au/shared/web/uploads ~/take5.ncig.com.au/shared/web/static ~/take5.ncig.com.au/shared/app/../vendor ~/take5.ncig.com.au/shared/app/../bin ~/take5.ncig.com.au/shared/var/logs ~/take5.ncig.com.au/shared/var/cache ~/take5.ncig.com.au/shared/web/uploads ~/take5.ncig.com.au/shared/web/static ~/take5.ncig.com.au/shared/app/../vendor ~/take5.ncig.com.au/shared/app/../bin ~/take5.ncig.com.au/shared/var/logs ~/take5.ncig.com.au/shared/var/cache ~/take5.ncig.com.au/shared/web/uploads ~/take5.ncig.com.au/shared/web/static ~/take5.ncig.com.au/shared/app/../vendor ~/take5.ncig.com.au/shared/app/../bin as<EMAIL_ADDRESS>INFO [7ea7099e] Finished in 0.081 seconds with exit status 0 (successful).
INFO [6a5f8c28] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/shared/app/config ~/take5.ncig.com.au/shared/app/config ~/take5.ncig.com.au/shared/app/config as<EMAIL_ADDRESS>INFO [6a5f8c28] Finished in 0.078 seconds with exit status 0 (successful).
INFO The repository mirror is at ~/take5.ncig.com.au/repo
INFO The repository mirror is at ~/take5.ncig.com.au/repo
INFO [898be8a0] Running /usr/bin/env git remote update as<EMAIL_ADDRESS>INFO [898be8a0] Finished in 3.757 seconds with exit status 0 (successful).
INFO [abff9643] Running /usr/bin/env git remote update as<EMAIL_ADDRESS>INFO [abff9643] Finished in 3.921 seconds with exit status 0 (successful).
INFO [129a1760] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/releases/20150515094355 as<EMAIL_ADDRESS>INFO [129a1760] Finished in 0.073 seconds with exit status 0 (successful).
INFO [18b7b7ee] Running /usr/bin/env git archive master | tar -x -f - -C ~/take5.ncig.com.au/releases/20150515094355 as<EMAIL_ADDRESS>INFO [18b7b7ee] Finished in 0.263 seconds with exit status 0 (successful).
INFO [8e33ac1d] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/releases/20150515094355 as<EMAIL_ADDRESS>INFO [8e33ac1d] Finished in 0.076 seconds with exit status 0 (successful).
INFO [d1305d9f] Running /usr/bin/env git archive master | tar -x -f - -C ~/take5.ncig.com.au/releases/20150515094355 as<EMAIL_ADDRESS>INFO [d1305d9f] Finished in 0.289 seconds with exit status 0 (successful).
INFO [3ccf7366] Running /usr/bin/env echo "1d441b5" >> REVISION as<EMAIL_ADDRESS>INFO [3ccf7366] Finished in 0.077 seconds with exit status 0 (successful).
INFO [6f4fe243] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/releases/20150515094355/app/config ~/take5.ncig.com.au/releases/20150515094355/app/config ~/take5.ncig.com.au/releases/20150515094355/app/config as<EMAIL_ADDRESS>INFO [6f4fe243] Finished in 0.075 seconds with exit status 0 (successful).
INFO [125ab89c] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/app/config/parameters.json ~/take5.ncig.com.au/releases/20150515094355/app/config/parameters.json as<EMAIL_ADDRESS>INFO [125ab89c] Finished in 0.073 seconds with exit status 0 (successful).
INFO [1e2b36fe] Running /usr/bin/env mkdir -p ~/take5.ncig.com.au/releases/20150515094355/var ~/take5.ncig.com.au/releases/20150515094355/var ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/20150515094355/app/.. ~/take5.ncig.com.au/releases/20150515094355/app/.. ~/take5.ncig.com.au/releases/20150515094355/var ~/take5.ncig.com.au/releases/20150515094355/var ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/20150515094355/app/.. ~/take5.ncig.com.au/releases/20150515094355/app/.. ~/take5.ncig.com.au/releases/20150515094355/var ~/take5.ncig.com.au/releases/20150515094355/var ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/20150515094355/app/.. ~/take5.ncig.com.au/releases/20150515094355/app/.. as<EMAIL_ADDRESS>INFO [1e2b36fe] Finished in 0.087 seconds with exit status 0 (successful).
INFO [1ba32579] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/var/logs ~/take5.ncig.com.au/releases/20150515094355/var/logs as<EMAIL_ADDRESS>INFO [1ba32579] Finished in 0.076 seconds with exit status 0 (successful).
INFO [4f7bde7d] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/var/cache ~/take5.ncig.com.au/releases/20150515094355/var/cache as<EMAIL_ADDRESS>INFO [4f7bde7d] Finished in 0.074 seconds with exit status 0 (successful).
INFO [014fc8d8] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/web/uploads ~/take5.ncig.com.au/releases/20150515094355/web/uploads as<EMAIL_ADDRESS>INFO [014fc8d8] Finished in 0.074 seconds with exit status 0 (successful).
INFO [dfead7e5] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/web/static ~/take5.ncig.com.au/releases/20150515094355/web/static as<EMAIL_ADDRESS>INFO [dfead7e5] Finished in 0.156 seconds with exit status 0 (successful).
INFO [d109171c] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/app/../vendor ~/take5.ncig.com.au/releases/20150515094355/app/../vendor as<EMAIL_ADDRESS>INFO [d109171c] Finished in 0.114 seconds with exit status 0 (successful).
INFO [941e8cf3] Running /usr/bin/env ln -s ~/take5.ncig.com.au/shared/app/../bin ~/take5.ncig.com.au/releases/20150515094355/app/../bin as<EMAIL_ADDRESS>INFO [941e8cf3] Finished in 0.130 seconds with exit status 0 (successful).
INFO [a231316a] Running php ~/take5.ncig.com.au/shared/composer.phar install  --no-interaction --optimize-autoloader as<EMAIL_ADDRESS>INFO [a231316a] Finished in 40.863 seconds with exit status 0 (successful).
INFO [f9399212] Running /usr/bin/env ln -s ~/take5.ncig.com.au/releases/20150515094355 ~/take5.ncig.com.au/releases/html as<EMAIL_ADDRESS>INFO [f9399212] Finished in 0.073 seconds with exit status 0 (successful).
INFO [c2753fe6] Running /usr/bin/env mv ~/take5.ncig.com.au/releases/html ~/take5.ncig.com.au as<EMAIL_ADDRESS>INFO [c2753fe6] Finished in 0.075 seconds with exit status 0 (successful).
INFO [5bb087fc] Running /usr/bin/env ln -s ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/html as<EMAIL_ADDRESS>INFO [5bb087fc] Finished in 0.073 seconds with exit status 0 (successful).
INFO [0ee45cc0] Running /usr/bin/env mv ~/take5.ncig.com.au/releases/html ~/take5.ncig.com.au as<EMAIL_ADDRESS>INFO [0ee45cc0] Finished in 0.075 seconds with exit status 0 (successful).
INFO [5005fff9] Running /usr/bin/env ln -s ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/html as<EMAIL_ADDRESS>INFO [5005fff9] Finished in 0.076 seconds with exit status 0 (successful).
INFO [b56c26e8] Running /usr/bin/env mv ~/take5.ncig.com.au/releases/html ~/take5.ncig.com.au as<EMAIL_ADDRESS>INFO [b56c26e8] Finished in 0.079 seconds with exit status 0 (successful).
INFO [822d4f3a] Running /usr/bin/env ln -s ~/take5.ncig.com.au/releases/20150515094355/web ~/take5.ncig.com.au/releases/html as<EMAIL_ADDRESS>INFO [822d4f3a] Finished in 0.074 seconds with exit status 0 (successful).
INFO [e33d9a9c] Running /usr/bin/env mv ~/take5.ncig.com.au/releases/html ~/take5.ncig.com.au as<EMAIL_ADDRESS>INFO [e33d9a9c] Finished in 0.077 seconds with exit status 0 (successful).
INFO Keeping 5 of 6 deployed releases on eepau1-02.nexcess.net
INFO [0c209742] Running /usr/bin/env rm -rf ~/take5.ncig.com.au/releases/20150515092223 as<EMAIL_ADDRESS>INFO [0c209742] Finished in 0.144 seconds with exit status 0 (successful).
INFO [841e0722] Running /usr/bin/env echo "Branch master (at 1d441b5) deployed as release<PHONE_NUMBER>4355 by leevigraham" >> ~/take5.ncig.com.au/revisions.log as<EMAIL_ADDRESS>INFO [841e0722] Finished in 0.073 seconds with exit status 0 (successful).

My Capfile
set :deploy_config_path, 'config/deploy/deploy.rb'
set :stage_config_path, 'config/deploy'

require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/composer'

My deploy.rb

# config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'take5'
set :repo_url, 'git@github.com:newism/take5.git'

set :app_path,              "app"
set :web_path,              "web"
set :log_path,              "var/logs"
set :cache_path,            "var/cache"
set :composer_install_flags, ' --no-interaction --optimize-autoloader'

ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp

set :deploy_to, '~/take5.ncig.com.au'
set :log_level, :info
set :linked_files, fetch(:linked_files, []).push(fetch(:app_path) + '/config/parameters.json')
set :linked_dirs, fetch(:linked_dirs, []).push(fetch(:log_path), fetch(:cache_path), fetch(:web_path) + '/uploads', fetch(:web_path) + '/static', fetch(:app_path) + '/../vendor', fetch(:app_path) + '/../bin')
set :file_permissions_paths, [fetch(:log_path), fetch(:cache_path), fetch(:web_path) + '/uploads']
set :file_permissions_users, ["www-data"]

SSHKit.config.command_map[:composer] = "php #{shared_path.join("composer.phar")}"

namespace :git do
  task :update_repo_url do
    on roles(:all) do
      within repo_path do
        execute :git, 'remote', 'set-url', 'origin', fetch(:repo_url)
      end
    end
  end
end

module Capistrano
  module DSL
    module Paths
      def current_path
        deploy_path.join('html')
      end
    end
  end
end

namespace :deploy do
  namespace :symlink do
    desc 'Symlink release to current'
    task :release do
      on release_roles :all do
        tmp_current_path = release_path.parent.join(current_path.basename)
        execute :ln, '-s', release_path . join("web"), tmp_current_path
        execute :mv, tmp_current_path, current_path.parent
      end
    end
  end
end

and finally my production.rb

# server-based syntax
# ======================
# Defines a single server with a list of roles and multiple properties.
# You can define all roles on a single server, or split them:

server 'eepau1-02.nexcess.net', user: 'newismco', roles: %w{web}, my_property: :my_value

# server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
# server 'example.com', user: 'deploy', roles: %w{app web}, other_property: :other_value
# server 'db.example.com', user: 'deploy', roles: %w{db}

# role-based syntax
# ==================

# Defines a role with one or multiple servers. The primary server in each
# group is considered to be the first unless any  hosts have the primary
# property set. Specify the username and a domain or IP for the server.
# Don't use `:all`, it's a meta role.

# role :app<EMAIL_ADDRESS>my_property: :my_value
# role :web<EMAIL_ADDRESS><EMAIL_ADDRESS>other_property: :other_value
# role :db<EMAIL_ADDRESS>
# Configuration
# =============
# You can set any configuration variable like in config/deploy.rb
# These variables are then only loaded and set in this stage.
# For available Capistrano configuration variables see the documentation page.
# http://capistranorb.com/documentation/getting-started/configuration/
# Feel free to add new variables to customise your setup.

# Custom SSH Options
# ==================
# You may pass any option but keep in mind that net/ssh understands a
# limited set of options, consult the Net::SSH documentation.
# http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start
#
# Global options
# --------------
#  set :ssh_options, {
#    keys: %w(/home/rlisowski/.ssh/id_rsa),
#    forward_agent: false,
#    auth_methods: %w(password)
#  }
#
# The server-based syntax can be used to override options:
# ------------------------------------
# server 'eepau1-02.nexcess.net',
#  user: 'newismco',
#  roles: %w{web app},
#  ssh_options: {
#     user: 'user_name', # overrides user setting above
#     keys: %w(/home/user_name/.ssh/id_rsa),
#     forward_agent: false,
#     auth_methods: %w(publickey password)
#     # password: 'please use keys'
#  }

My Gemfile
source "https://rubygems.org"

gem 'capistrano', '~> 3.4.0'
gem 'capistrano-file-permissions'
gem 'capistrano-composer'

gem 'scss-lint', '~> 0.35.0'

Any help would be appreciated.

What is duplicated? This looks normal to me.

I see you have only one server, but things are running twice, not being simply logged twice. Does it happen without compose or file permissions, or whatever else?

Does it happen without compose or file permissions, or whatever else?

Not sure what you mean by compose or file permissions.

But you didn't mangle the logs before posting here, so you are definitely only naming once one server once called eepau1-02.nexcess.ne?

Not sure what you mean by compose or file permissions.

The two plugins you are using defined your Gemfile.

But you didn't mangle the logs before posting here, so you are definitely only naming once one server once called eepau1-02.nexcess.ne?

Yep there's only one server defined.

The two plugins you are using defined your Gemfile.

Yeah I'm pretty sure. I attached the Gemfile in the original post.

Yep, same thing happened to me today (all commands executed twice on the same server), when I upgraded to 3.5 (from 3.4.1) -- reverting back to 3.4.1 fixed the issue for now.

I've never seen this before, so I can't do much to troubleshoot. My guess is that somehow your stage file (e.g. production.rb) is being loaded twice. This is theoretically possible because Capistrano uses load and not require to load the file. The question is what combination of circumstances is causing this to happen?
Are you manually requiring/loading your stage files in your Capfile, for example? Perhaps via a glob?
Anyway, sorry I can't do more to help. Good luck!

@leevigraham I think I see your problem:
set :deploy_config_path, 'config/deploy/deploy.rb'
set :stage_config_path, 'config/deploy'

^ This is trouble.
You've told Capistrano that your stage definitions are in the config/deploy directory. But you also have a file called deploy.rb there, in addition to your stages.
Capistrano is going to assume deploy.rb represents a stage, and will create a corresponding Rake task called deploy to load that stage. But of course deploy already means something else in Capistrano-land!  I imaging this could lead to a scenario where certain things happen twice.
Takeaways:

Do not put any .rb files in the stages directory other than your actual stage definitions.
Avoid using Capistrano task names as your stage filenames. For example, deploy and rollback are bad names for stages. 😉

Good catch @mattbrictson - not to hijack this thread, but is that something worth adding to doctor, making sure that "reserved words" aren't used as stage names? (or, to warn about reserved words, at all somewhere, at least in documentation)

Perhaps just a failsafe that prevents a stage from overriding/augmenting an existing task?
 stages.each do |stage|
+  raise %Q("#{stage}" cannot be used as a stage name) if Rake::Task.task_defined?(stage)
   Rake::Task.define_task(stage) do
     set(:stage, stage.to_sym)

that sounds like a sane starting place @mattbrictson

Great. This was an older project which hasn't been deployed for a while. I'll check the cap file again and see if this fixes the issue.

I have a similar setup, and I haven't set deploy_config_path or stage_config_path  so it's relying on the defaults.
I tried renaming the config/deploy.rb file to config/capistrano.rb and setting;
set :deploy_config_path, 'config/capistrano.rb'

But no luck, everything is executed twice on the same server.
Here's my config/deploy.rb file and my config/deploy/production.rb
This has always been a pretty common approach to working with stages in Cap 2.  I.e. main deploy.rb file common to all stages in config/deploy.rb and various stages in the config/deploy dir (usually setting only the app/web IP/domain names).  This works in v3.4.1.
Happy to help with more info if you need it...

Just to clarify:

main deploy.rb file common to all stages in config/deploy.rb and various stages in the config/deploy dir

^ This is still the standard practice for Capistrano 3.
What I was describing as problematic is when you put the deploy.rb inside the stages directory:
config/deploy/deploy.rb <-- bad

@matthutchinson In your case, I think you have a problem in production.rb. You've specified a port number in one role declaration, but not the others. Capistrano is probably interpreting this as you declaring two distinct servers.

@mattbrictson - bingo, that was it!  Removing the port option fixed it for me.  I'm unsure why I had that there in the first place, I think some much older verison of Capistrano required it for custom SSH ports.

, I think some much older verison of Capistrano required it for custom SSH ports.

Over the years we've had different behaviours on whether a port marks a host as unqie, or just redefines it with a new port, etc, etc -- if you use v3.x you can also just commit a .ssh/config file with your port definitions in future, incase that's easier!


ToolTipRenderer

Hi.
When I put mouse pointer an item, I can see a tooltip.Tooltip seems to be including the title of a item by default.
I want render a tooltip freely as well as item and group.
In the case of item and group, there are properties to edit the element, groupRenderer and itemRenderer.
Is there the way to edit tooltip element already?

Thnaks.

Hi, the tooltip that you see is the standard browser tooltip (title tag). Unfortunately there is no way to edit the content and style of this element. If you wish to have a tooltip that you can edit, you need to wrap your items in some tooltip library.
One that I have used in the past is called rc-tooltip.
With it your code could look something like this:
itemRenderer = ({ item }) => {
  return (
    <Tooltip placement="left" trigger={['click']} overlay={tooltip}>

        {item.title}

    </Tooltip>
  )
}

@mariusandra
I understand.
Thank you for your answer.


ERROR IN CAPTURING VIDEO

Getting issue on this FIle name : CameraLogicActivity.java
Attaching image for your reference:

Pls provide more detail about your device.


Gateway 2020.0.0-M4 seems to ignore spring-cloud-starter-config, works in 2020.0.0-M3.

Describe the bug
Starting with Spring Cloud 2020.0.0-M4 it seems like the spring-cloud-gateway ignores the dependency to spring-cloud-starter-config, resulting in that the gateway doesn't try to lookup its configuration from the config server at startup. This works fine using Spring Cloud 2020.0.0-M3.
Sample
Create, build and run a gateway based on Spring Cloud 2020.0.0-M4 using Spring Initializr CLI:
spring init \
--boot-version=2.4.0.M3 \
--build=gradle \
--java-version=1.8 \
--packaging=jar \
--name=gateway \
--package-name=se.magnus.springcloud.gateway \
--groupId=se.magnus.springcloud.gateway \
--dependencies=actuator,security,cloud-gateway,cloud-config-client \
--version=1.0.0-SNAPSHOT \
ml-gateway

cd ml-gateway
./gradlew build

java -jar build/libs/ml-gateway-1.0.0-SNAPSHOT.jar

The log output from the startup will look like (lacking attempts to fetch its config from the config server):
2020-10-24 10:47:07.204  INFO 34133 --- [           main] s.m.s.gateway.GatewayApplication         : Starting GatewayApplication using Java 1.8.0_222 on Magnus-MBP32.local with PID 34133 (/Users/magnus/Documents/projects/bok-2nd-edition/git/bok-1st-edition/Chapter14/spring-cloud/ml-gateway/build/libs/ml-gateway-1.0.0-SNAPSHOT.jar started by magnus in /Users/magnus/Documents/projects/bok-2nd-edition/git/bok-1st-edition/Chapter14/spring-cloud/ml-gateway)
2020-10-24 10:47:07.207  INFO 34133 --- [           main] s.m.s.gateway.GatewayApplication         : No active profile set, falling back to default profiles: default

Changing Spring Cloud version to 2020.0.0-M3 in build.gradle + rebuild and run will result in the expected log output during the startup:
2020-10-24 11:05:59.702  INFO 61391 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2020-10-24 11:05:59.806  INFO 61391 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2020-10-24 11:05:59.806  WARN 61391 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
2020-10-24 11:05:59.808  INFO 61391 --- [           main] s.m.s.gateway.GatewayApplication         : No active profile set, falling back to default profiles: default

Note: Since I don't have any Spring Config server up and running, the Connection refused error is expected.

Found the answer in https://spring.io/blog/2020/10/07/spring-cloud-2020-0-0-m4-aka-ilford-is-available, simply adding a dependency to org.springframework.cloud:spring-cloud-starter-bootstrap solved the issue.


Got an TypeError: Cannot read property 'length' of undefined at emitData (...../node_modules/strtok2/lib/index.js:369:54)

Hello there,
first, let me say that I have no clue what this (certainly wonderful) library does, I use it through "through" itself used by "nodemetadata". Whatever, I got an edge case where the error in this issue title is raised.
Out of curiosity I logged just before that line :
console.log('strtok2, bufs: ', bufs.length, type.len, bufsLen);

and here is what I got:
strtok2, bufs:  1 27 15149
strtok2, bufs:  1 23 15122
strtok2, bufs:  1 5192 15099
strtok2, bufs:  1 27 9907
strtok2, bufs:  1 39 9880
strtok2, bufs:  1 9014 9841
strtok2, bufs:  1 27 827
strtok2, bufs:  1 5 800
strtok2, bufs:  1 767 795
strtok2, bufs:  1 27 28
strtok2, bufs:  1 1 1
strtok2, bufs:  0 0 0
TypeError: Cannot read property 'length' of undefined

I know that kind of bug reports, without clear reproduction steps, are kind of complicated to handle, however it smells the unhandled special case where everything is equal to 0, but still passes the
while (type !== DONE && type !== DEFER && bufsLen >= type.len) {

Another info, I'm running node v6.5.0.

Cannot reproduce this issue.
I recommend to use music-metadata instead.


iPad - IOU - Unable to put the amount In Landscape mode

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Expected Result:
I can enter the required amount
Actual Result:
In Landscape mode unable to put the amount
Action Performed:

Launch the app and Log in to applause.expensifail account
On a conversation, click on the + button in the compose box
Choose "Request Money"
Flip to landscape format
Click/tap on enter the amount

Workaround:
Unknown.
Platform:
Where is this issue occurring?
Web
iOS iPad ✔
Android
Desktop App
Mobile Web
Version Number: 1.0.62-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/44479856/120725314-add40a00-c4a3-11eb-807b-3180315ff78e.mp4
Expensify/Expensify Issue URL:
View all open jobs on Upwork

Triggered auto assignment to @johnmlee101 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Issue reproducible today during KI retests

My guess is there's an invisible component blocking the UI component.

Issue reproducible today during KI retests

Issue reproducible today during KI retests

Issue reproducible during KI retests.

Issue reproducible during KI retests.

Issue not reproducible during KI retests. (first week)

@johnmlee101  This has the same root cause as https://github.com/Expensify/Expensify.cash/issues/3296

Good to know! Once the other issue is closed I'll make sure to close this one out too

Sounds good @johnmlee101! I think you need to accept/deny the proposal on the other issue

@johnmlee101 Whoops! This issue is 2 days overdue. Let's get this updated quick!

Issue not reproducible during KI retests. (Fixed 🎉)

@johnmlee101 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@johnmlee101 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Issue not reproducible during KI retests. (Fixed 🎉) @johnmlee101 Should we close this?

@johnmlee101 12 days overdue. Walking. Toward. The. Light...

This issue has not been updated in over 14 days. @johnmlee101 eroding to Weekly issue.

Issue not reproducible during KI retests. (Fixed 🎉)

Will go ahead and close

Closing this out as the other issue has addressed this!


Need to investigate possible error in function rest.go/addTime

This is just a note.
mysql.go/CreateStandupTime function, that called in rest.go/addTime, sets standup time  of channel. There can be an error, because CreateStandupTime doesn't check existence of channel. And addTime sends notification "<!date^%v^Standup time at {time} added, but there is no standup users for this channel|Standup time at 12:00 added, but there is no standup users for this channel>" instead of something "The channel doesn't exist". Need to investigate necessity of checking existence of channel.

no longer relevant


update pymatreader

this PR updates pymatreader to version 0.0.11. compared to the previous version, this makes h5py a soft dependency.

This is already in #5326 (about to be merged) so no need for a separate PR


Setting up PyPI package

Hey Adam! it would be great to have this as a package on PyPI. Happy to submit a PR for that upload pipeline.

Hi Ge! Feel free to go ahead with the PR -- I agree it would be nice to put this on PyPI.


Add validation of AWS account and region in environment creation

Feature or Bugfix

Bugfix

Detail
Added validation in environment creation. In this PR we add a check that raise an exception if an environment is created using the same AWS account and region as other environment.
Relates

#779

Security
Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

Does this PR introduce or modify any input fields or queries - this includes
fetching data from storage outside the application (e.g. a database, an S3 bucket)?

Is the input sanitized?
What precautions are you taking before deserializing the data you consume?
Is injection prevented by parametrizing queries?
Have you ensured no eval or similar functions are used?

Does this PR introduce any functionality or component that requires authorization?

How have you ensured it respects the existing AuthN/AuthZ mechanisms?
Are you logging failed auth attempts?

Are you using or adding any cryptographic features?

Do you use a standard proven implementations?
Are the used keys controlled by the customer? Where are they stored?

Are you introducing any new policies/roles/users?

Have you used the least-privilege principle? How?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Tested in AWS:
-[X] CICD pipeline completes
-[X] creating an environment using the same AWS Account/region throws exception
-[X] creating an environment using a differnet AWS Account/region succeeds

Something is off with the integration tests of this PR. The integration tests fail in the core.environments.test_environment.test_archive_env test, but the actual code does not correspond with the code executed in the test:
Real code:

Executed code:


No Source Code About http://benschwarz.github.io/gallery-css/

When I opened your web page - Gallery CSS, I read the code of this page through the Browser. But I cannot find resource like
"images/arrow-left.svg"  or "images/arrow-right.svg"

I quite fancy the style of your work, but where the source code you put in? I can't find them in your public repositories.

Have you tried the gh-pages branch?
Regards,
Enoch Appathurai
On Thu, Sep 10, 2015 at 3:42 AM, Waylan Punch<EMAIL_ADDRESS>wrote:

When I opened your web page - Gallery CSS, I read the code of this page through the Browser. But I cannot find resource like
"images/arrow-left.svg"  or "images/arrow-right.svg"

I quite fancy the style of your work, but where the source code you put in? I can't find them in your public repositories.
Reply to this email directly or view it on GitHub:
https://github.com/benschwarz/gallery-css/issues/26

Just a reminder that the assets used on the site (and the site itself) is not licensed, and has various copyright owners (the icons, for example), and should not be used by any one without expressed written permission.  This is not only to protect my copyright, but also others. :heartbeat:

OK! @benschwarz , Thanks for your patience ! I am noticed !


Demo-feature-branch

dirty PR block me (running this in the IDE before would have saved some time)

test


mode that includes line ending in line buffer and start position in source stream

i would love to work on this if these changes are interesting for anyone.

adding start position as a property of each line buffer makes it really easy to process one line at a time and resume where you left off.
Including the line ending removes guess work as to the start of the next line

I'm working on a module to use a log file as a changes feed.

Including the line ending removes guess work as to the start of the next line

Can you explain this point more?

sure.
instead of "line" i would like to be able to get data events with "line\n"  || line+os.EOL
2 use cases.
one i forgot to mention but is the most important is it removes ambiguity at the end of the stream as to if the final chunk is a complete line or just a partially written fragment.
https://github.com/maxogden/binary-split/blob/master/index.js#L51
including whitespace we can omit manually adding the delimiter length to find the total number of bytes already processed through the stream. (assumes the start position is set to property buffer.start) buffer.start+buffer.length vs buffer.start+buffer.length+os.EOL but it's really just a nice to have as its possible to work around not having it.

@soldair so basically you want a new bool option like includeLineEndings? also by 'start position in source stream' do you mean the absolute byte offset into the stream (for restart purposes)? Cause I would think you could implement that yourself as an e.g. through stream

Yes includeLineEndings would be useful because it presents the last line fragment problem in a way the user can handle it.
Yes, absolute byte offset. Piping through another stream is just another layer for something we already have on hand.  My feeling after working around it in exactly this way is that it would be best at home here which is why i  opened the issue.

scratched my own itch by sending up a 1.0.0 of a super old line-stream module i had https://github.com/soldair/node-line-stream


Add minimal footer styling

A minimally better looking footer (the actual template is copied from bootstrap-sphinx-theme)

This looks much better to me!


File sync not working on macOS case insensitive file system

What happened?
File sync not working on macOS case insensitive file system.
What did you expect to happen instead?
File sync working on macOS regardless of case sensitivity.
How can we reproduce the bug? (as minimally and precisely as possible)
https://github.com/ragnarpa/DevspacePathLetterCaseBug
Local Environment:

DevSpace Version: 5.16.2
Operating System: mac
Deployment method: helm

Kubernetes Cluster:

Cloud Provider: other
Kubernetes Version: v1.21.5

Anything else we need to know?

/kind bug

fix is merged.


[Improve][InLong] master  maven build FAILURE

Description
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.713 s
[INFO] Finished at: 2022-05-28T23:50:43+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (default) on project inlong: Too many files with unapproved license: 170 See RAT report in: /Users/jinze/IdeaProjects/incubator-inlong/target/rat.txt -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
InLong Component
Other for not specified component
Are you willing to submit PR?

[ ] Yes, I am willing to submit a PR!

Code of Conduct

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

you can check the content /Users/jinze/IdeaProjects/incubator-inlong/target/rat.txt to find which file has no license. I think it's probably the file newly added by yourself.

please do not compile and run docker-compose in the same directory, it will generate some files without a license.


Some treatments upon user confirmation can be skippable

RFC for #172
I hesitated between adding an argument to the Prompt.confirm_or_abort function or adding a new one.
~I chose to add an optional argument ?skippable that should contain an optional treatment: that will be executed if the user answers yes but not if he answers skip or no.
It forces us to review the existing uses of confirm_or_abort to sometimes move instructions to this argument if necessary.~ I finally chose to add a new function.

I'm not sure this PR is a good idea afterall, closing it for now.


[SPARK-12392][Core] Optimize a location order of broadcast blocks by considering preferred local hosts

When multiple workers exist in a host, we can bypass unnecessary remote access for broadcasts; block managers fetch broadcast blocks from the same host instead of remote hosts.

Test build #47902 has started for PR 10346 at commit c396640.

I did quick benchmarks for large broadcasts;

aws m4.x4large x 4, 4 works in a host
elapsed time:
-- w/opt.: 6.887943434s, w/o opt.: 11.738593435s
received network bytes in a host:
-- w/opt.: 14782.93kB/s, w/o opt.: 35394.53kB/s

val bv = sc.broadcast((0 until 50000000).toArray)
val parts = sc.parallelize((1 to 16), 16).cache

def timer[R](block: => R): R = {
  val t0 = System.nanoTime()
  val result = block
  val t1 = System.nanoTime()
  println("Elapsed time: " + ((t1 - t0 + 0.0) /<PHONE_NUMBER>.0)+ "s")
  result
}

timer {
  parts.map(_ => bv.value.size).foreach(_ => {})
}

Test build #47902 has finished for PR 10346 at commit c396640.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47902/
Test FAILed.

retest this please

Test build #47975 has started for PR 10346 at commit c396640.

Test build #47975 has finished for PR 10346 at commit c396640.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47975/
Test PASSed.

@andrewor14 Could you review this?

Looks great @maropu. Thanks for doing the benchmarks. I left two minor comments but other than that this is good to merge.

@andrewor14 Fixed.

Test build #48093 has started for PR 10346 at commit d962f15.

Test build #48093 has finished for PR 10346 at commit d962f15.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48093/
Test PASSed.

LGTM merging into master. Thanks @maropu


Error in Check_and_Run.R

Hi, @TesiNicco
I succeeded in installing the packages("data.table", "shiny", "shinyShortcut", "stringr", "ggplot2") in R. But when I run

Rscript bin/.shiny_run/shinyShortcut.r

I got this error:

Listening on http://<IP_ADDRESS>:4443
Error in utils::browseURL(appUrl) :
'browser' must be a non-empty character string
Calls:  ->
Execution halted

Do you know why and how can I solve this problem?
Looking forward to your reply!
Thanks.
He Huang

Dear He Huang,
Thank you so much for your interest in snpXplorer.
We note that the web-server version (available at snpxplorer.net is highly recommended). In fact, snpXplorer was born as a standalone tool, but then we realized that it would be much easier for the user to focus on the development of a web-server version.
So I have to apologize if the instructions in the GitHub page (for the standalone version) are not up-to-date. However, I am happy to assist you during installation. :)
With respect to your error, it may still be a package-problem. In the published manuscript we report that to run, snpXplorer requires R (v3.5+) and python (v3+) correctly installed and accessible in your system. snpXplorer uses the following R packages: shiny, data.table, stringr, ggplot2, liftOver, colourpicker, rvest, plotrix, parallel, SNPlocs.Hsapiens.dfSNP144.GRCh37, lme4, ggsci, RColorBrewer, gprofiler2, GOSemSim, GO.db, org.Hs.eg.db, pheatmap, circlize, devtools, treemap, basicPlotteR, gwascat, GenomicRanges, rtracklayer, Homo.sapiens, BiocGenerics and the following python libraries: re, werkzeug, robobrowser, pygosemsim, numpy, csv, networkx and sys.
I would therefore suggest you to first install all required packages. Do you have any prior experience with shiny applications?
Please do not hesitate to come back to me
We wish you a pleasant day
snpXplorer Team

Il giorno 8 giu 2021, alle ore 07:09, huanghe0220 @.***> ha scritto:
Hi, @TesiNicco https://github.com/TesiNicco
I succeeded in installing the packages("data.table", "shiny", "shinyShortcut", "stringr", "ggplot2") in R. But when I run
Rscript bin/.shiny_run/shinyShortcut.r
I got this error:
Listening on http://<IP_ADDRESS>:4443 http://<IP_ADDRESS>:4443/
Error in utils::browseURL(appUrl) :
'browser' must be a non-empty character string
Calls: ->
Execution halted
Do you know why and how can I solve this problem?
Looking forward to your reply!
Thanks.
He Huang
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/TesiNicco/snpXplorer/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALVN3QEXEYDHQRZFPNIKZOTTRWQXFANCNFSM46JCLFWA.

Dear He Huang,
Thank you so much for your interest in snpXplorer.
We note that the web-server version (available at snpxplorer.net is highly recommended). In fact, snpXplorer was born as a standalone tool, but then we realized that it would be much easier for the user to focus on the development of a web-server version.
So I have to apologize if the instructions in the GitHub page (for the standalone version) are not up-to-date. However, I am happy to assist you during installation. :)
With respect to your error, it may still be a package-problem. In the published manuscript we report that to run, snpXplorer requires R (v3.5+) and python (v3+) correctly installed and accessible in your system. snpXplorer uses the following R packages: shiny, data.table, stringr, ggplot2, liftOver, colourpicker, rvest, plotrix, parallel, SNPlocs.Hsapiens.dfSNP144.GRCh37, lme4, ggsci, RColorBrewer, gprofiler2, GOSemSim, GO.db, org.Hs.eg.db, pheatmap, circlize, devtools, treemap, basicPlotteR, gwascat, GenomicRanges, rtracklayer, Homo.sapiens, BiocGenerics and the following python libraries: re, werkzeug, robobrowser, pygosemsim, numpy, csv, networkx and sys.
I would therefore suggest you to first install all required packages. Do you have any prior experience with shiny applications?
Please do not hesitate to come back to me
We wish you a pleasant day
snpXplorer Team

Il giorno 8 giu 2021, alle ore 07:09, huanghe0220 @.***> ha scritto:
Hi, @TesiNicco https://github.com/TesiNicco
I succeeded in installing the packages("data.table", "shiny", "shinyShortcut", "stringr", "ggplot2") in R. But when I run
Rscript bin/.shiny_run/shinyShortcut.r
I got this error:
Listening on http://<IP_ADDRESS>:4443 http://<IP_ADDRESS>:4443/
Error in utils::browseURL(appUrl) :
'browser' must be a non-empty character string
Calls: ->
Execution halted
Do you know why and how can I solve this problem?
Looking forward to your reply!
Thanks.
He Huang
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/TesiNicco/snpXplorer/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALVN3QEXEYDHQRZFPNIKZOTTRWQXFANCNFSM46JCLFWA.

Hi, @TesiNicco ,thanks for your reply.
Unfortunately, since I don't have any prior experience with shiny applications, I got a problem of starting shiny sever from the remote server with my local machine

Writing .shiny_run/shinyShortcut.r

Writing shinyShortcut.desktop

Loading required package: shiny

Listening on http://<IP_ADDRESS>:7431

xdg-open: no method available for opening 'http://<IP_ADDRESS>:7431'

Do you have any ideas?
I would appreciate your immediate attention to this matter.
Best wishes,
He Huang

Dear He,
I have experienced a similar problem in the past while running a shiny application on a remote server (based on CentOS). In my case, there was no solution but to change server. I did not find problems with running shiny on macOS and Ubuntu.
However, this really depends on the server you are using, so you may want to ask more information to your system administrator.
In general, shiny outputs on a local address (in your case I see http://<IP_ADDRESS>, port 7431). It seems that there is a problem with the address or the port. Note that address and port can be changed.
I would suggest you to try to run a simple shiny application on your laptop and also on the remote server. You can find a simple shiny app here —> https://shiny.rstudio.com/articles/basics.html https://shiny.rstudio.com/articles/basics.html . At the same link you can also find some basic information about the structure of shiny applications.
Please do not hesitate to reach us back for further assistance
Best,
snpXplorer Team

Il giorno 8 giu 2021, alle ore 15:33, huanghe0220 @.***> ha scritto:
Hi, @TesiNicco https://github.com/TesiNicco ,thanks for your reply.
Unfortunately, since I don't have any prior experience with shiny applications, I got a problem of starting shiny sever from the remote server with my local machine
Writing .shiny_run/shinyShortcut.r
Writing shinyShortcut.desktop
Loading required package: shiny
Listening on http://<IP_ADDRESS>:7431 http://<IP_ADDRESS>:7431/
xdg-open: no method available for opening 'http://<IP_ADDRESS>:7431 http://<IP_ADDRESS>:7431/'
Do you have any ideas?
I would appreciate your immediate attention to this matter.
Best wishes,
He Huang
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/TesiNicco/snpXplorer/issues/2#issuecomment-856771603, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALVN3QCCHIIYFCYYV44DH2LTRYL2DANCNFSM46JCLFWA.

Thanks for your reply! I guess I would use the web-server for convenience, for it'll be a big trouble to change server. I will try to run a simple shiny app to gain more experience. Thank you once again for your support!
All the best,
He Huang


Enforce maximum length

Enforce maximum string length when encoding.
Fix: #140

Patch separation for the win! I had a feeling there was going to be something to this that I was missing :) Thanks, will re-spin.

The maximum length needs to be a parameter of the checksum. 93 is only for bech32.
And IMO we should only enforce the maximum length of 93 for segwit ... for the non-segwit API we should use 1023 since that's the actual length of the code.

Why do you write 93 here? In BIP-173 it says 90, or am I missing something?
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

Sorry, I was confusing 93 (which is 1023 / 11, a fact which is relevant when searching for BCH codes) with 90 (an empirically derived limit in BIP 173).

The maximum length needs to be a parameter of the checksum.

I'm stuck. I think I'm hitting a bip/spec wording issue again.

bech32::decode decodes a bech32/bech32m checksummed string
bech32::encode::<Ck>() encodes a string and appends a generic checksum

(Note we do not currently provide a way to decode a generic checksummed string without going into primitives.)
Questions

Is a "bech32 encoded string" a string that conforms exactly to BIP-173 or is there a superset of strings that are also included (ie, without the 90 char limit)?
Same question said differently: is the result of bech32::encode::<Bech32m>() a BIP-173 compliant bech32 string?

In my mind the lib.rs/segwit.rs separation is because of this line in bip-173: "We first describe the general checksummed base32[1] format called Bech32 and then define Segregated Witness addresses using it." From that line the strings in lib.rs should enforce the limit. I do note however that in v0.9.0 the length was not enforced and I never understood why, I think this is the "there are users who use the bech32 crate in ways not covered by bip-173" thing.

Deleted that long message to save anyone having to read it. I found my problem

MAY exceed the 90-character limit specified in BIP-0173.

ref: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md

Converted to draft while I push up the changes in the first three patches.

Rebased. Also I pulled a random column width fix out into its own patch because I just mentioned it to @realeinherjar in another PR/repo :)

OK, I think this is fine. TBH I think we should just enforce the 1023-character maximum and say "screw LN" because if they're actually using an error-correcting code with no length limit then the resulting code is unable to correct even a single error and cannot detect more than one.

I can do that, can you point me to some docs so I can (a) understand the 1023 limit and (b) reference it in the code?

A real limit is bettor for #138 too, saves looping.

I don't know where it's documented. But it's a fact of the bech32 and bech32m checksums that they have length 1023. sipa's find_bch.py can be used to regenerate the code and it outputs some extra data.
codex32 has length 93; the "long codex32" checksum has length 1023.
I'm not sure about the descriptor checksum, I'll have to check.

I don't know where it's documented.

I found this at the end of bip-173 (in the "Checksum design" section):

Even though the chosen code performs reasonably well up to 1023 characters, other designs are preferable for lengths above 89 characters (excluding the separator).

I'll add that as a reference for the numbers.

We can't unconditionally limit strings to 1023. The constant needs to be a property of the checksum.

We can't unconditionally limit strings to 1023.

Oh, I thought that was what you said before.

The constant needs to be a property of the checksum.

I don't see how (abstractly not technically). The segwit stuff wants to enforce 90 char limit for Bech32m but lib.rs does not? And the limit is a bip-173 thing not a BCH code thing, right?

Here is your previous comment:

And IMO we should only enforce the maximum length of 93 for segwit ... for the non-segwit API we should use 1023 since that's the actual length of the code.

I went searching for what "since that's the actual length of the code" meant, and all I could find was the docs in bip-173 "Checksum design" section. I went through a bunch of wiki pages on codes and couldn't find any mention of an inherent "length". Its just to do with how many errors can be detected with a certain length checksum for a certain amount of input data, right?

https://en.wikipedia.org/wiki/BCH_code#General_BCH_codes defines length, though pretty obtusely. Here q is 32 for every code this library supports, m is always 2 (though this only affects error correction so maybe some users could define checksums with other values..). So q^m - 1 is 1023, and the length of a BCH code, being the order of an element in a multiplicative group of size 1023, must be 1023 or one of its factors.
A more useful definition is probably the one in https://secretcodex32.com/docs/2023-08-23--math.pdf on page 18:

The length of the code is how long a coded message can be (including the checksum!)
for the code to retain its error-correcting properties.

@tcharding

I don't see how (abstractly not technically). The segwit stuff wants to enforce 90 char limit for Bech32m but lib.rs does not? And the limit is a bip-173 thing not a BCH code thing, right?

Yes, the limit is defined by bip 173 based on empirical error-correcting properties. It is not related to the design length of the code and non-segwit users can (probably) get away without caring about it. Though they will get somewhat worse error correcting properties. It is a requirement of segwit but for non-segwit bech32 uses we shouldn't enforce it, because the code does continue to work up to length 1023.

Also, if its on Checksum folk that implement the trait would assume it is checked in lib.rs functions?

Yes, if we add a LENGTH field to the Checksum trait, people would assume that it's checked in lib.rs. And if people want to override this they can make their own copy of Bech32 where they change the field to usize::MAX or whatever.

I had an epic rebase fail, not totally sure I didn't loose stuff ...

Force push is fix a couple of things from yesterday's rebase fail.

This one turned out to be pretty complicated, thanks for your patience reviewing.

Force push is just the docs thing, no other changes.

Please see #156, I think this PR may be buggy. Perhaps we should just drop the length stuff all together from the Checksum trait and lib.rs? That would still be an improvement over v0.9 (because it enforces 90 chars) but not a regression because it allows any length strings with lib.rs?

Perhaps we should just drop the length stuff all together from the Checksum trait and lib.rs? That would still be an improvement

It would still be an improvement, yes, but it would really be better if you couldn't (easily) use checksums for strings for which the checksums' properties didn't apply.

In any case I would like to move the checksum length discussion into a separate PR, since this one also contains doccomment improvements and segwit stuff and adds the CODE_LENGTH field to the Checksum trait, all of which we definitely want to do.


com_github_kylelemons_godebug and com_github_mattn_go_isatty should be loaded with _maybe helper

com_github_kylelemons_godebug and com_github_mattn_go_isatty are declared directly without using _maybe helper, which may override previously defined go_repository.
(Somehow go_repository with the same name can now be redeclared. Possibly a rules_go bug?)

After reading https://github.com/bazelbuild/rules_go/issues/749 this seems reasonable. However, this bazel feature should be documented in big red bold text.

Reopening this given the comment by @dslomov, this is a bug and it will break some day.

I think this doesn't matter anymore now that we ship pre-compiled Go binaries. Building rules_typescript from source should be an unusual edge case now


Is it okay to run overlord service in coordinator?

Hello,

I was going through config files (for 0.20.2) and saw that by default the overlord service runs in the coordinator process?
Same implementation is carried when using docker
Is it okay to run overlord and coordinator in same process or should we keep them separate?

I'm going through Docker implementation and trying to figure out how to separate this two processes.

You can deploy Overlord and Cooridnator separately
for example：
overlord configuration

coordinator configuration

Thanks @wangxiaobaidu11

@wangxiaobaidu11 Is the Overlord supposed to run on the same port as Coordinator, or on port 8090?

@wangxiaobaidu11 Is the Overlord supposed to run on the same port as Coordinator, or on port 8090?

If druid.coordinator.asOverlord.enabled is turned on, overload is also running inside the coordinator process on the same port which is 8081 by default.

Thats obvious with the bundled run-setting. I meant, if they are running as seperate processes, is the port still required to be the same? That sounds a little fishy to me.

It's not required to be the same.

I have a same question. Is it necessary to run Overlord as a standalone process? I was planning to deploy every druid process in a separate node, can't decide whether I should deploy overlord in a separate node or not..

It's not necessary, but offers greater resilience to your deployment if
seperated. Like mentioned above, just enable the necessary configs and you
can deploy your Overlord and coordinator seperately.
On Wed, 25 Aug, 2021, 1:00 am Shinebayar G., @.***>
wrote:

I have a same question. Is it necessary to run Overlord as a standalone
process? I was planning to deploy every druid process in a separate node,
can't decide whether I should deploy overlord in a separate node or not..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apache/druid/issues/11118#issuecomment-905031045, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACYQJ6DQ3Q2R5SX7G4HLGRDT6QQBRANCNFSM427K7XYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.


Optimal xrate for trivial solutions.

See #21 for a description.
Adapts the algorithm to find the optimal exchange rate for the trivial solution.
Additionally:

Aligns the root finding code with the current objective function in the standard solver (the way 0.5*fee is integrated changed).
Fixes some bugs.
Adds some comments.

If we don't have overlaps, then you are taking some roots of orders, but why?

When determining the optimal of the objective function subject to our constraints (symbolically) when there are 0 buy/sell amounts, I arrived at the conclusion that the optimal xrate can only be one of the order limit xrates (can never be a point in the middle of two limit xrates). These are the 2 first roots.
What this PR does is to make sure that all limit xrates are always considered as local optima so that the algorithm evaluates them all and picks the best one. This was not happening before, where we would only consider them if there were matching orders.
Maybe there is a more efficient way to do this, but this was a simple one.

Opened your suggestion as #25.


Mongodb prisma pull crash

Hi Prisma Team! Prisma Migrate just crashed.
Command
db pull --force --schema [redacted]
Versions

Name
Version

Platform
debian-openssl-3.0.x

Node
v16.16.0

Prisma CLI
3.14.0

Engine
2b0c12756921c891fec4f68d9444e18c7d5d4a6a

Error
Error: [introspection-engine/connectors/mongodb-introspection-connector/src/sampler/statistics/indices.rs:169:71] called `Option::unwrap()` on a `None` value

Can you share the structure of your MongoDB database with us? We would optimally want to be able to reproduce this ourselves to then fix it - but need your help for that. (We can accept files privately via<EMAIL_ADDRESS>Does this only happen when you supply an existing schema?

Alright, will send it over.

Does this only happen when you supply an existing schema?

Happens with or without a schema

Does this still happen in recent versions? (latest, ideally). I think we fixed that.

Does this still happen in recent versions? (latest, ideally). I think we fixed that.

Right, upgraded (was using prisma as a subdependency of redwoodjs).
The error no longer occurs on the latest (4.1.1 as of now).
Thanks for the help!


Organize image file structure

File structure is little bit messy
Better move all documentation related images to src > assets > images > docs directory.

I have fixed this issue and pushed


Fix grammatical error. Issue #963

Just a wee grammatical error on the installer success page.

Oops. No, I don't want the pull request to be applied to master. Sorry about that.


fix(ui): Fix large unread number not centered

What this PR does 📖

Fixes large unread number (3 digit) not being centered

Special notes for reviewers 🗒
This PR #1376 should also be checked. I was not able to reproduce the problem in that PR but noticed this issue

hmm. this is very strange. so its for you too?
but for me this never happens

what os you on?

cc @Flemmli97


Enabling Truecolor question

I am trying to set up True color on micro (2.0.10) but I am unsure how to do it.  I understand I have to do the following:

True color requires your terminal to support it. This means that the environment variable COLORTERM should have the value truecolor, 24bit, or 24-bit. In addition, to enable true color in micro, the environment variable MICRO_TRUECOLOR must be set to 1.

My question is a basic one. I don't know where I have to set those variables. Where would I enable those? I use Alacritty, should it be on the alacritty.yml file or somewhere else?
Kinda new to this :)

This I can answer :)
You would start micro using
COLORTERM=truecolor MICRO_TRUECOLOR=1 micro

To have this persisted, make these changes in your .bash_profile (in your home directory)

COLORTERM=truecolor MICRO_TRUECOLOR=1 micro

To have this persisted, make these changes in your .bash_profile (in your home directory)

So would I just add that line as it is to .bash_profile (.profile in my case), or would I create an alias like so: alias micro='micro COLORTERM=truecolor MICRO_TRUECOLOR=1'?
And would your explanation still require any modification to the .selected_editor file?
This is what I have there currently: SELECTED_EDITOR="/usr/bin/micro"
Thanks for the reply

If you want to persist those options you should put
export COLORTERM=truecolor
export MICRO_TRUECOLOR=1

in your .profile. No other changes should be needed.

Thank you!


phantomjs now requires brew cask install

Per the README, I ran brew install redis phantomjs memcached and got the following error:
Error: No available formula with the name "phantomjs"
It was migrated from homebrew/core to homebrew/cask.
You can access it again by running:
  brew tap homebrew/cask
And then you can install it by running:
  brew cask install phantomjs

I'm going to create a pull request with the new command for installing phantomjs. Is it customary for a pull request to be opened sans issue? I guess that's part of the whole "learning how to contribute" rigamarole (which is why I'm here).

Hi,
Looks like you are trying to push to this repo, rather than your fork, have a look at the following guides:

https://guides.github.com/activities/forking/
https://help.github.com/articles/creating-a-pull-request-from-a-fork/


add IPython 3.0 kernelspec

In IPython 3.0, profiles aren't used to switch between kernels. Instead, kernelspec directories contain information about kernels, including a kernel.json file containing information on how to start the kernel, and logo files.
With this, #18, and #19, iTorch should be fully compatible with IPython 3.0, without any need for the torch profile.
It would also be reasonable to switch between installing the kernelspec or the profile, depending on the IPython version, but at this point it installs both.
I dropped in the Torch logo. I'm not sure if you have one for iTorch, or if using the Torch logo is inappropriate. I can remove it, if so.
ref: kernelspec docs

this looks great. the Torch logo is good, wanted to do it myself anyways.

Thanks!