text:
Add vector accessors to x,y,z,w

Currently, Vec*objects are type aliases to arrays.
This means that we cannot access named members of vectors, like v.x.
gl-matrix 4 (beta) subclasses Vec*types from Float32Arrayand adds the accessors.
What do you think ?

This makes sense. Thanks for the reply !

source: gharchive/issue

repo: greggman/wgpu-matrix

license: MIT

license_type: permissive

license_source: github-api


text:
add passing of globals/modelstate within the list

add passing of globals/modelstate within the list, so that modules can access/set variables across different parts of the code.  Long term, potentially turn off the ability to use globals in the local functions.

I need an example use case to understand the need better. I think that the approaches to issues #30 and #31 might address the need but am not sure.

Take a look at the current pilot properties file for VE RPAT - https://github.com/RSGInc/VisionEvalRPAT/blob/master/defs/parameters.json

OK. The model run parameters are stored in the "ModelState.Rda" file. The "getModelState" function reads the contents of that file. I think there are 2 choices for how to make values in that file accessible to a module.

Have the "runModule" function read the contents and pass them as a component of the list that is passed to the module. We'd need to have a convention for the name of this component. For example, in the VisionEval functions that use the contents, this is assigned to "G". So for example to get the "RunTypes" parameter for RPAT. the module would refer to G$RunTypes.
Export the "getModelState" function so that module code can access the desired parameter from the "ModelState.Rda" file. The function is written so that you can just read the desired parameter. For example getModelState("RunTypes").
I'm thinking we should do the first. What do you think?
Also, the "EmploymentGrowth" parameter in the example should be put in the new "model_parameters.json" file whose contents get loaded into the "Global/Model" table of the datastore. The value should be accessed using a Get specification. The "model_parameters.json" contains model parameters that are not specific to a module. The "run_parameters.json" file contains parameters related to the definition and control of a model run.

A variant has been implemented in the latest development version. The "VisionEvalRPAT" repo shows an example of how this approach is used in with the "VisionEvalSyntheticFirms" package. There are two modules in that package "CreateBaseSyntheticFirms" and "CreateFutureSyntheticFirms". The procedures are  different and the future procedure uses data produced by the base procedure. The specifications for each procedure are very different. Therefore it makes sense that they should be different modules. The model run code determines which procedure should run based on the Year.

authors: bstabler gregorbj

repo: gregorbj/VisionEval

license_source: bigquery


text:
Rotation in odrviewer.io not possible, zoom mousewheel direction inconsistent

I noticed that the it is not possible to rotate the view in https://odrviewer.io/ like it is in https://sebastian-pagel.net/odrviewer/
Also the direction of the mouse wheel zoom is inconsistent (between https://odrviewer.io/ and https://sebastian-pagel.net/odrviewer/).
I recommend you to use the same direction as https://www.google.com/maps/ does (also Blender and many other tools), since most of the people are used to that:

Mousewheel up -> Zoom in
Mousewheel down -> Zoom out

I agree with the zoom direction. I updated that to zoom out on mouse wheel down. About the rotation: Is it not possible at all for you to rotate or is the rotation behaviour different from  https://sebastian-pagel.net/odrviewer/ ? Which platform and controls (touch or mouse) are you using?

It was not possible for me to rotate at all. Is it supposed to be on right mouse button or maybe middle mouse? I think I was using Firefox on Linux. But I guess it would make sense to test the most common browsers like Chrome, Firefox, Safari, Edge on Windows, Linux, Mac, iOS and Android.

I tested it on Ubuntu 18.04 with Firefox 98.0.2 and Chrome 91.0.4472 as well as on MacOS Safari 15.4 and Firefox 98.0.2 and had no issues.
Are you pressing the pressing the Shift key while dragging the mouse to rotate?

I see, pressing shift does work indeed. I find that super non-intuitive though. Most 3D applications have rotation directly on one of the mouse 3 buttons, including https://sebastian-pagel.net/odrviewer/
So I would prefer that.

Thanks for pointing out the rotation on right mouse button. I added that now. So the behaviour should be like https://sebastian-pagel.net/odrviewer/. I still want to keep PAN on the left mouse button as I feel it's used more frequently than rotation for navigating maps.

Nice. I am okay with you deciding which mouse button does what, that is not consistent between most 3D applications anyway..
What would be cool would be an additional 3D ego shooter like flight mode.

authors: grepthat johschmitz

repo: grepthat/libOpenDRIVE


text:
Set pane ssh title

Hi,
since I can't use mssh anymore, I learned to love tmux, because of xpanes :-) The only thing I miss under my Linux (bash), is to know, which pane is which (ssh) host. If I connect to 20 hosts or more, I have only the hostname, which you don't see always.
Is there a way to put a small bar under every pane which shows the hostname ?
cu denny

Hi @linuxmail ,
Thank you for using tmux-xpanes 😸 !

put a small bar under every pane
As far as I know, both tmux and tmux-xpanes do not have such the feature for now.
But I can understand the matter, and I believe it would be really helpful if such the feature existed.

FYI, usually, I update PS1 environment variable when I face same matter.
If you use bash, it may be helpful.
ssh -t host01 'export PS1="[host01] \W $ "; bash --norc -i'

It puts the "host01" at the beginning of the interactive screen like this.
[host01] ~ $

Therefore, this command line would put the target hostname at the beginning of each pane.
xpanes -c 'ssh -t {} "export PS1=\"{} \W $ \";bash --norc -i"' {host01..host20}

I came up with a terrible idea 👼
Open new tmux sessions in each server.
We can put a small bar which has its host name by changing the session name !
xpanes -c 'ssh -t {} "tmux new -s {}"' cac0{1..6}

Just a kidding, hahaha.

hi,
whoooo, its incredible :1st_place_medal:

@linuxmail
New option -t was released 👍

https://github.com/greymd/tmux-xpanes/releases

WHOOOOO that is sooo whooo AWESOME. Thank you so much !!

To customize this title, I've found that this* function works for setting a custom xpane title:
function title {
    echo -ne "\033]0;"$*"\007"
}

Example I use with an iTerm profile:
command xpanes -t -d -l eh -c "{}" "title money && emacs -s money -- $LEDGER_FILE_PERSONAL" "title accounting && clear"

source: https://superuser.com/a/599156

authors: greymd linuxmail paxperscientiam

repo: greymd/tmux-xpanes


text:
Allow camelcase export per controller

Some of my controllers return camel case properties and others return pascal case. I need a way to handle it :)
Thank you @greymind  <3

Done with config  "InterfaceCamelCaseCustomAttribute": "string"

authors: greymind m-marko

repo: greymind/WebApiToTypeScript

license: mit


text:
Updated checkpoint?

Hey,
Someone pointed out in IRC that the last blockchain checkpoint was late september, are we able to update this to speed up blockchain syncing?
Cheers

it was me, and the last checkpoint was: 2015 July 19
especially with the recent 2 forks it'd be great to update this

Good idea, added 3 new checkpoints up to latest block.
Side note: I wonder if this will speed block load time up, we will see.

the synccheckpoint is reset :-(
wallet says: block 0 from 2014 October 11

its not working well at all. seems like more and more things out of whack i agree but CheckHardened which is called on when accepting a block is working just fine. Its called to check if a checkpoint hash matches the blockhash and if so its accepted as checkpoint. if the hash doesn't match of course it stops it right there. and if the block being checked is not in the map it passes. i wouldn't panic but there is defiantly issues and it seems they may of been here for a very long time.

authors: Erkan-Yilmaz Foggyx420 grctest gridcoin

repo: gridcoin/Gridcoin-Research


text:
Windows Support

I will add support for Windows.

I added support for Windows by e668de90bf8ed13225c58117f4dd4ca174c34aee .


text:
Improve peformances put/get rows using pandas.DataFrame

Add function : void Container.put_rows(pandas.DataFrame input). In python layer, I convert input from pandas.DataFrame to numpy.array because NumPy support C-API. In C++ layer, I use API from NumPy to put data into GridDB. Compare with using Container.multi_puts(input : list[list]) to put large data with LONG type, the time to run reduce about 11% and memory using reduce 20%. With String type, the time to run reduce about 10% and memory using reduce about 8%.

Add function : pandas.DataFrame RowSet.fetch_rows(). In C++ layer, it uses Iterable object (RowList.h/cpp) to wrap output data. In python layer, I convert data from Iterable object to pandas.DataFrame. Compare with using RowSet.next() to query large data with LONG type, the time to run reduce 17% and memory using are the same. When query large data with STRING type, the time to run reduce 11%.

Reduce call function to check NULL field: when get data, for each row field, Python Client is using gsGetRowFieldNull() then gsGetRowFieldAsXXX(). I change to use gsGetRowFieldAsXXX(), then if data is empty or null then I use gsGetRowFieldNull() to check whether field is null.

There is a note for Container.put_rows(). To create DataFrame, we use: "frame = pandas.DataFrame(data)" with "data" is list. However, when list has None value, Pandas library will automatic change value, for example None value to NaN value. To prevent this, in python code should use "frame = pandas.DataFrame(data, dtype=object)".

Oh, that's great !
I'll try to use it.
I have a question.
How much data did you use?
Thanks.

With long type, I put 1000 rows x 10000 fields. With string type, I use 1000 rows x 7552 fields.

Thank you for your information.
I understand.

I have a request.
Could you please add a sample for new function ?

I added 2 samples:

PutRowsWithDataFrame.py : sample for put rows.
FetchRowsWithDataFrame.py : sample for fetch rows.

Thank you for your samples.
I'll check them.

I guess this pull request is very useful.
So I merge it.
Thank you.

source: gharchive/pull-request

authors: dangtrungtin knonomura


text:
JaaS REST API documentation

Some fields in the docs still have to be rewritten.
Run JaaS and go to localhost:8080/swagger-ui.html to see the documentation.

Don't change default.environment.properties file. It is not a place to override properties for local runs

:+1:

authors: SokolAndrey a-badaev anton-antonenko

repo: griddynamics/jagger


text:
Gridsome adds base64 image data to packed bundle even if images are immediate, or from FS

Description
When building a production webpack build of Gridsome all images (regardless of usage) are added, along with their base64 data resulting in heavily bloated builds full of data that is, or never will be used.
Steps to reproduce
Add images to src/assets, build, and publish.
Expected result
I expect there to be no base64 image data, it's not necessary to the final build of the site since everything is coming from the filesystem of my server, rather than from the JS, I do not enable any kind of transformation as we optimize images before they even go into Gridsome, and we have very specific sizes we need to generate that Gridsome is incapable of doing right now (responsive images.)

Gridsome shouldn't process local images that you're not targeting with g-image. Or at least, I'm not able to reproduce it. Do you have a project somewhere where I can take a look?
But I noticed that the base64 data was included for immediate images. We'll fix that in the next version.

Maybe I'm making a mistake and should be setting NODE_ENV=production before doing production builds? The following is from a script/build using https://github.com/envygeeks/envygeeks.io/blob/trunk/script/build

The source to my site is indeed public at https://github.com/envygeeks/envygeeks.io

I should note the image that I'm showing the base64 of is an image I've not used on my site at all, it was there for future use!

The reason the image is included in the bundle is most likely because of these lines. webpack creates a require context when the module path is dynamic. Which means webpack will process every file matching a generated regexp. In your case all images inside @/assets/*.

Boo Webpack, I guess it's off to find out how to fix that problem. Thanks for the tip!

@hjvedvik fix(g-image): exclude base64 data when not lazy loading (#1318)

This issue seems to still exist ...

The reason the image is included in the bundle is most likely because of these lines. webpack creates a require context when the module path is dynamic. Which means webpack will process every file matching a generated regexp. In your case all images inside @/assets/*.

This is really interesting but it's a pretty big issue for Gridsome as it means we can't use dynamic image paths (!) is there a workaround, other than dropping use of g-image?

The reason the image is included in the bundle is most likely because of these lines. webpack creates a require context when the module path is dynamic. Which means webpack will process every file matching a generated regexp. In your case all images inside @/assets/*.

This is really interesting but it's a pretty big issue for Gridsome as it means we can't use dynamic image paths (!) is there a workaround, other than dropping use of g-image?

A feature I would really like here is just the ability to disable the base64  file (what i assume is used for the lazy load blur?).
With an ecommerce website with 1000s of images I have discovered the js bloat is big.
Since I have to use the
:src="require('!!assets-loader!../../src' + hero.hero_image)"
format with g-image.
If I use <img rather than g-image, I can access the object with srcset and src also:
        :src="require('!!assets-loader!../../src' + hero.hero_image).src"
        :srcset="require('!!assets-loader!../../src' + hero.hero_image).srcset"

which means i can write my own custom <img tag with responsive srcsets as provided.
But - as I mention- the base64 is generated wether i want it or not.
--
I've run some test, where I move my images from /src/assets to /static/assets
And I tried <img and <g-image
And I had many ranging issues.
My conclusions for the future is I cannot use <g-image reliably.
here are some of the attempts to get the references correct - these might help others:
`
:src="hero.hero_image"
    :src="require('!!assets-loader!../../src' + hero.hero_image)"

    src="~/assets/test/homepage_09-min.jpg"

    src="../assets/test/homepage_09-min.jpg"

    ~`${hero.hero_image}`

    require.resolve('./src/assets/images/my-image.jpg')

    :src="require.resolve(`../src${hero.hero_image}`)"

    if <img then:
    :src="require('!!assets-loader!../../src' + hero.hero_image).src"
    :alt="
      'check: ' +
      JSON.stringify(
        require('!!assets-loader!../../src' +
          this.$static.sitesets.edges[0].node.home_hero_image[0].hero_image)
      )
    "`

It may be a case of learning webpack - which I imagine is the culprit here?

repo: gridsome/gridsome


text:
NearDrop not appearing in share menu on Mac

I tried sharing files from the finder, but NearDrop isn't appearing in the share menu on Mac. I'm nether getting the option to add it in the menu. I'm on MacOS Sonoma, if that matters.
PFA the screenshots:
Share menu:

Edit extension page:

Exact Same behavior on Ventura 13.4.1.
@grishka Is there some suggested way to figure out why this is not appearing? I tried to build mine using xcode and that too has same issue (on another thread you mentioned you got similar problems initially but later was resolved though finder restart, tried that doesn't work for me, including system reboot)

@kingster can you share the thread that you are referring to?

go to  settings and search for extensions , there you will see nearDrop in sharing section and the enable it. After that you will see it in share section

You should enable NearDrop sharing extension in Settings > Privacy & Security > Extensions > Added extensions.

I am also not seeing it. I tried looking at the extensions setting above, but it doesn't show the NearDrop in the lost for adding. Not sure what I could be doing wrong.

@scolapasta that's how it looks on my machine

Yup, not in mine:

Could it be related to how I installed it? I just downloaded the zip and unzipped in a subfolder of Applications.

I am also not seeing it. Used brew as well for installtion

You have to exit the menu and reopen it manually. It's a macOS bug that it for some reason doesn't show 3rd party apps when opened via the "edit extensions" button.

Hi, I have another issue like this.
I can not share the files via neardrop on photos app.
There is no issue on finder. I can share via neardrop on Finder.
Is it normal I can not use neardrop on Photos ??

Same issue -- not seeing it.
Also installed via brew

Just installed the newest release 2.0.2 and the extension is not present on the settings menu of my MAC. I'm running Sonoma.

authors: Carniatto MikaSon1 andrei-a-g devshailesh kingster rafajrichard ris58h scolapasta tusshhrrr yanniznik

repo: grishka/NearDrop

license: Unlicense


text:
have you considered using google/nearby as a dependency?

Google offer NearBy library and it is open source.
even if you don't use it, it may speed up your understanding.
Great work!

I have, but, as with everything that comes out of Google, this library is way too complicated and generalized for its job.


text:
CI: add server tests with Postgresql

Context
See this comment: https://github.com/gristlabs/grist-core/pull/1205#discussion_r1815383501
Some server tests succeeded when using sqlite but failed with postgresql. This commit runs the same tests using a postgresql database to ensure both database types are supported for these tests.
Proposed solution
Make the CI run server tests with Postgresql
Related issues
Has this been tested?

[x] 👍 yes, I added tests to the test suite
[ ] 💭 no, because this PR is a draft and still needs work
[ ] 🙅 no, because this is not relevant here
[ ] 🙋 no, because I need help

When Paul has noticed this regression specific to Postgresql, we thought we may also run the tests with this database in github CI. Though it does not seem to be as easy as I first thought. We have understood from @berhalak comment that you already run server tests against this database in your internal CI. Is it possible you either open-source the tests, or share with us how you run them so we can add the same logic to the Github CI, if that makes sense to you?

Is it possible you either open-source the tests, or share with us how you run them so we can add the same logic to the Github CI, if that makes sense to you?

This is what we have:
RUN_gen_server_pg() {
  # Repeat some tests against postgres
  run with_postgres env TEST_CLEAN_DATABASE=true TEST_REDIS_URL=redis://localhost/{redis} TESTDIR=$OUTDIR/testdir \
    $BIN/mocha '_build/test/gen-server/**/*.js' '_build/core/test/gen-server/**/*.js' $MOCHA_FLAGS
}

So we repeat the gen-server tests against postgres. I don't see the server tests running against postgres. They may need modification to do so if they assume the database is a file.
These tests weren't enough to catch the IN () problem, which only showed up in a completely different battery of tests we apply to test the quality of an existing deployment.

Thanks @fflorent for your work! I've done some investigation on the failing tests. Most of the failures are timeouts due to the worse performance of Postgres (compared to SQLite). A significant number of other failures are simply chain effect.
I'm willing to take this forward if you'd like to hand it over to me. As @paulfitz discussed, the scope will be limited to gen-server for now, but within that scope I can see the potential of this PR getting merged. It should be fairly straightforward to fix the gen-server tests (but a decent amount of work to tweak timeout values), and I can later take a look at the nbrowser tests that are currently failing.

@SleepyLeslie I would be very pleased and grateful if you complete this work. Thank you very much for your investigation and your proposal to take this over!

As @paulfitz discussed, the scope will be limited to gen-server for now

Sounds very wise

Most of the failures are timeouts due to the worse performance of Postgres (compared to SQLite).

Something to do with the #773? Jordi fixed that with -c jit=off option for postgresql.
You may face an issue of Github actions that, IIRC, does not allow passing options to binaries in Docker image (so you might not disable the JIT compiler). If so, we might be able to circumvant the problem by using another (older?) version of postgresql not affected by the performance issues.

Something to do with the https://github.com/gristlabs/grist-core/issues/773? Jordi fixed that with -c jit=off option for postgresql.

@fflorent Thanks for the pointer! I was able to run unmodified gen-server tests successfully with JIT turned off.

You may face an issue of Github actions that, IIRC, does not allow passing options to binaries in Docker image

I looked into that and found the environment variable POSTGRES_INITDB_ARGS. With its help I did a successful CI run with Postgres tests: https://github.com/gristlabs/grist-core/actions/runs/12205239155
I don't have write access to your fork so cannot push commits to your PR. I created a branch with my changes in our repo: https://github.com/gristlabs/grist-core/tree/add-postgresql-ci

Excellent news!

I don't have write access to your fork so cannot push commits to your PR. I created a branch with my changes in our repo: https://github.com/gristlabs/grist-core/tree/add-postgresql-ci

Please don't hesitate to open another PR. I'll close this one.

Closing in favor of #1336

authors: SleepyLeslie fflorent paulfitz

repo: gristlabs/grist-core


text:
Sync/build number limit

the new pr

:ship:

authors: Ataraxic jooshbzm

repo: grnhse/spec-tiller


text:
How to install gcsfuse-mac but with a modified go.mod?

Hi! I'd like to install gcsfuse-mac but with a replace statement in the go.mod. also i might want to fast forward the repo to a more recent commit.
How do I do this?
background
Currently I have...
brew install macfuse
brew install gromgit/fuse/gcsfuse-mac

but i'm encountering a bug (https://github.com/GoogleCloudPlatform/gcsfuse/issues/548) that is easily fixable with a replace statement in go.mod, but id ont' know how to add that and go build or brew reinstall with that edit.
kernel info
➜  ~ sysctl kern.version

kern.version: Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101

Closing, since it seems to have been fixed upstream.

authors: grisaitis gromgit

repo: gromgit/homebrew-fuse


text:
Firefox

This doesn't work at all on firefox (Demo page) Any solutions?
Thanks

Mac?

yer.

look at note below in the plugin description here: https://github.com/gromo/jquery.scrollbar
There is known issue that native browser scrollbar cannot be hidden in Firefox on Apple devices, so this plugin is not initialized and you will see native scrollbars.

nanoScroller successfully hides native scrollbars in Firefox on Mac OS. So, it is possible.

@equinox7 I'm not sure that this way can be used in jQuery Scrollbar

So, the reason mentioned in plugin description is not true:

There is known issue that native browser scrollbar cannot be hidden in Firefox on Apple devices, so this plugin is not initialized and you will see native scrollbars.

The reason is not in Firefox, it is in your plugin. Am I right?

No, you are not right

How I fixed it:
there is actually a simple solution for that. You hide the scrollbars by CSS.
Simply set ".scroll-content" to "width: 200%". Put your scrollable content/text inside another  and give that one a width of 50%. The scrollbars of the browser will be in the overflow:hidden area.
.scroll-wrapper > .scroll-content {
width: 200%;
}

.scroll-wrapper > .scroll-content .scroll-content-inner {
width:50%;
padding-right: 10px;
}

Hello World

No, you are not right

It seems, I am right. All these plugins: perfectScrollbar, baron, nanoScroller work fine in Firefox on Mac OS.

It requires one more additional container besides wrapper and I'm trying to avoid this.

I tried the latest version of scrollbar and the issue still exists(MacOS Firefox).  So, will it be altered in the future?

I'm planning to do this as a hack and only for vertical scrollbar.

Don't you consider to make horizonal scrollbar? I use the plugin in the navigation of responsive webpage. When the width become narrowed, the nav can be scroll with pretty style.

Unfortunately hiding FF scrollbar on Mac OS is a bit tricky. If it was easy, I would've done it a long time ago.

All right, thank you @gromo.

@gromo domyou think this fix would help in this case?
https://github.com/Diokuz/baron/commit/aa739717f34a320713b2be0767a55b3e7ce9e724

@fabien if you got idea, you can try. I think it should help, but it takes a lot of effort to implement it to current realization

@gromo Hiding the scrollbar in the lasted verision of Firefox seems to be a non-issue anymore. I have created a pull request here to allow Firefox usage.

I believe scrollbar type depends on Mac settings, so disabling FF check on Mac is not an option yet. Will check it later.

@gromo did you have a chance to check it?


text:
Fix tests

What was done:

Added json file to the test target so the tests can run.

Added dependency between the library and test targets.

Fixed simple equality conditions like
                    "condition": {                     "brand": "COM"                   }

Added more tests

Hi, @vkaramov. I will close the pull request because it is outdated.

authors: vazarkevych vkaramov

repo: growthbook/growthbook-swift


text:
Compiling gRPC on PHP 8.0 throws errors

What version of gRPC and what language are you using?
PHP
PHP 8.0.0RC3 (cli) (built: Nov  5 2020 19:24:54) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies

gRPC
Version: 1.33.1
What operating system (Linux, Windows,...) and version?
Docker: php:8.0-rc-cli
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster

What runtime / compiler are you using (e.g. python version or version of gcc)
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without
-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-o
bjc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)

What did you do?
wget https://github.com/FriendsOfPHP/pickle/releases/download/v0.6.0/pickle.phar
mv pickle.phar /usr/local/bin/pickle
chmod +x /usr/local/bin/pickle
pickle install grpc

What did you expect to see?
It succeeding
What did you see instead?
It failing
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/channel_credentials.h:44:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_init_channel_credentials(TSRMLS_D);
2:  ^~~~
2: In file included from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:24,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:24:
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/channel.h:56:30: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:                               TSRMLS_DC);
2:                               ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/channel.h:61:44: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:                                             TSRMLS_DC);
2:                                             ^~~~~~~~~
2: In file included from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:24:
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:44:69: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:  zval *grpc_parse_metadata_array(grpc_metadata_array *metadata_array TSRMLS_DC);
2:                                                                      ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:47:57: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:  zval *grpc_php_wrap_call(grpc_call *wrapped, bool owned TSRMLS_DC);
2:                                                          ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:50:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_init_call(TSRMLS_D);
2:  ^~~~
2: In file included from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:31:
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call_credentials.h:59:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_init_call_credentials(TSRMLS_D);
2:  ^~~~
2: In file included from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:32:
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/completion_queue.h:30:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_php_init_completion_queue(TSRMLS_D);
2:  ^~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/completion_queue.h:33:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_php_shutdown_completion_queue(TSRMLS_D);
2:  ^~~~
2: In file included from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:33:
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/timeval.h:39:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_init_timeval(TSRMLS_D);
2:  ^~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/timeval.h:42:1: error: parameter names (without types) in function declaration [-Werror]
2:  void grpc_shutdown_timeval(TSRMLS_D);
2:  ^~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/timeval.h:45:50: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:  zval *grpc_php_wrap_timeval(gpr_timespec wrapped TSRMLS_DC);
2:                                                   ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:50:47: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:                                                TSRMLS_DC) {
2:                                                ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:60:49: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:                                  *metadata_array TSRMLS_DC) {
2:                                                  ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:184:57: error: expected ';', ',' or ')' before 'TSRMLS_DC'
2:  zval *grpc_php_wrap_call(grpc_call *wrapped, bool owned TSRMLS_DC) {
2:                                                          ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c: In function 'zim_Call___construct':
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:214:45: error: expected ')' before 'TSRMLS_CC'
2:    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "OsO|s", &channel_obj,
2:                                              ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:214:7: error: too few arguments to function 'zend_parse_parameters'
2:    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "OsO|s", &channel_obj,
2:        ^~~~~~~~~~~~~~~~~~~~~
2: In file included from /usr/local/include/php/main/php.h:35,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/php_grpc.h:29,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:22,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:24:
2: /usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
2:  ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
2:                       ^~~~~~~~~~~~~~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:220:49: error: expected ')' before 'TSRMLS_CC'
2:                           "an optional String", 1 TSRMLS_CC);
2:                                                  ^~~~~~~~~~
2:                                                  )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:228:27: error: expected ')' before 'TSRMLS_CC'
2:                           1 TSRMLS_CC);
2:                            ^~~~~~~~~~
2:                            )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:235:27: error: expected ')' before 'TSRMLS_CC'
2:                           1 TSRMLS_CC);
2:                            ^~~~~~~~~~
2:                            )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:209:16: error: unused variable 'host_override_len' [-Werror=unused-variable]
2:    php_grpc_int host_override_len = 0;
2:                 ^~~~~~~~~~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:206:16: error: unused variable 'method_len' [-Werror=unused-variable]
2:    php_grpc_int method_len;
2:                 ^~~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c: In function 'zim_Call_startBatch':
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:281:29: error: expected ')' before 'TSRMLS_CC'
2:                             1 TSRMLS_CC);
2:                              ^~~~~~~~~~
2:                              )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:317:45: error: expected ')' before 'TSRMLS_CC'
2:    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &array) ==
2:                                              ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:317:7: error: too few arguments to function 'zend_parse_parameters'
2:    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &array) ==
2:        ^~~~~~~~~~~~~~~~~~~~~
2: In file included from /usr/local/include/php/main/php.h:35,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/php_grpc.h:29,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:22,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:24:
2: /usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
2:  ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
2:                       ^~~~~~~~~~~~~~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:320:59: error: expected ')' before 'TSRMLS_CC'
2:                           "start_batch expects an array", 1 TSRMLS_CC);
2:                                                            ^~~~~~~~~~
2:                                                            )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:332:60: error: expected ')' before 'TSRMLS_CC'
2:                             "batch keys must be integers", 1 TSRMLS_CC);
2:                                                             ^~~~~~~~~~
2:                                                             )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:344:59: error: expected ')' before 'TSRMLS_CC'
2:                               "Bad metadata value given", 1 TSRMLS_CC);
2:                                                            ^~~~~~~~~~
2:                                                            )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:354:31: error: expected ')' before 'TSRMLS_CC'
2:                               1 TSRMLS_CC);
2:                                ^~~~~~~~~~
2:                                )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:363:33: error: expected ')' before 'TSRMLS_CC'
2:                                 1 TSRMLS_CC);
2:                                  ^~~~~~~~~~
2:                                  )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:372:31: error: expected ')' before 'TSRMLS_CC'
2:                               1 TSRMLS_CC);
2:                                ^~~~~~~~~~
2:                                )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:388:33: error: expected ')' before 'TSRMLS_CC'
2:                                 1 TSRMLS_CC);
2:                                  ^~~~~~~~~~
2:                                  )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:401:33: error: expected ')' before 'TSRMLS_CC'
2:                                 1 TSRMLS_CC);
2:                                  ^~~~~~~~~~
2:                                  )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:409:31: error: expected ')' before 'TSRMLS_CC'
2:                               1 TSRMLS_CC);
2:                                ^~~~~~~~~~
2:                                )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:417:33: error: expected ')' before 'TSRMLS_CC'
2:                                 1 TSRMLS_CC);
2:                                  ^~~~~~~~~~
2:                                  )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:427:31: error: expected ')' before 'TSRMLS_CC'
2:                               1 TSRMLS_CC);
2:                                ^~~~~~~~~~
2:                                )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:450:58: error: expected ')' before 'TSRMLS_CC'
2:                             "Unrecognized key in batch", 1 TSRMLS_CC);
2:                                                           ^~~~~~~~~~
2:                                                           )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:461:37: error: expected ')' before 'TSRMLS_CC'
2:                           (long)error TSRMLS_CC);
2:                                      ^~~~~~~~~~
2:                                      )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:488:17: error: implicit declaration of function 'grpc_parse_metadata_array'; did you mean 'create_metadata_array'? [-Werror=implicit-function-declaration]
2:        recv_md = grpc_parse_metadata_array(&recv_metadata);
2:                  ^~~~~~~~~~~~~~~~~~~~~~~~~
2:                  create_metadata_array
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:488:15: error: assignment to 'zval *' {aka 'struct _zval_struct *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
2:        recv_md = grpc_parse_metadata_array(&recv_metadata);
2:                ^
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:527:15: error: assignment to 'zval *' {aka 'struct _zval_struct *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
2:        recv_md = grpc_parse_metadata_array(&recv_trailing_metadata);
2:                ^
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c: In function 'zim_Call_setCredentials':
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:606:45: error: expected ')' before 'TSRMLS_CC'
2:    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &creds_obj,
2:                                              ^~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:606:7: error: too few arguments to function 'zend_parse_parameters'
2:    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &creds_obj,
2:        ^~~~~~~~~~~~~~~~~~~~~
2: In file included from /usr/local/include/php/main/php.h:35,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/php_grpc.h:29,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.h:22,
2:                  from /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:24:
2: /usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
2:  ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
2:                       ^~~~~~~~~~~~~~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:610:27: error: expected ')' before 'TSRMLS_CC'
2:                           1 TSRMLS_CC);
2:                            ^~~~~~~~~~
2:                            )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c: In function 'grpc_init_call':
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:654:6: error: type of 'TSRMLS_D' defaults to 'int' [-Werror=implicit-int]
2:  void grpc_init_call(TSRMLS_D) {
2:       ^~~~~~~~~~~~~~
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:657:22: error: 'create_wrapped_grpc_call' undeclared (first use in this function); did you mean 'free_wrapped_grpc_call'?
2:    ce.create_object = create_wrapped_grpc_call;
2:                       ^~~~~~~~~~~~~~~~~~~~~~~~
2:                       free_wrapped_grpc_call
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:657:22: note: each undeclared identifier is reported only once for each function it appears in
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c:658:50: error: expected ')' before 'TSRMLS_CC'
2:    grpc_ce_call = zend_register_internal_class(&ce TSRMLS_CC);
2:                                                   ^~~~~~~~~~
2:                                                   )
2: /tmp/grpc/grpc-1.33.1/src/php/ext/grpc/call.c: At top level:
2: cc1: error: unrecognized command line option '-Wno-parentheses-equality' [-Werror]
2: cc1: all warnings being treated as errors
2: make: *** [Makefile:1169: src/php/ext/grpc/call.lo] Error 1

See attached full gcc log gcc.log
Anything else we should know about your project / environment?
No

This is being worked on right now.

PHP 8 is now supported in the latest release candidate 1.34.0RC1. You can try it out by doing sudo pecl install grpc-beta.

PHP 8 is now supported in the latest release candidate 1.34.0RC1. You can try it out by doing sudo pecl install grpc-beta.

Thanks!
@stanley-cheung
I am running into a few issues since version 1.34.0RC1 is not SemVer. Could you change this to 1.34.0-RC1 ?

Hm, I am not sure where the disconnect is. My understanding is that you either do sudo pecl install grpc-beta or sudo pecl install grpc-1.34.0RC1, but never 1.34.0RC1-beta. On the other hand, we had been naming the release candidate similar to 1.34.0RC1 for a while now, and is consistent with some other pecl extensions like xdebug. In about 2 weeks the final released version will be 1.34.0 which should be fine though.

You are correct, there was an issue with the pickle package I was using...
I can confirm gRPC is now compiling correctly on php-8.0-RC!

authors: stanley-cheung stemis

repo: grpc/grpc


text:
Master distribtests seems to be incompatible with ruby 2.3

https://source.cloud.google.com/results/invocations/f4f7d7e6-405e-4916-929d-d1b853d76ae3/targets
+ bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching source index from file:/var/local/git/grpc/gem_source/
Fetching gem metadata from https://rubygems.org/..
Fetching source index from https://rubygems.org/
Resolving dependencies....
grpc-1.36.0.dev-x86_64-linux requires ruby version < 3.1.dev, >= 2.4, which is
incompatible with the current version, ruby 2.3.1p112
+ FAILED=true
+ '[' '' '!=' '' ']'
+ docker rm -f build_and_run_docker_c7268013-1618-4b8e-89a7-dc9ca028f091
build_and_run_docker_c7268013-1618-4b8e-89a7-dc9ca028f091
+ '[' true '!=' '' ']'
+ exit 1

2021-01-22 15:26:21,311 FAILED: distribtest.ruby_linux_x64_ubuntu1604_version_unspecified_package_type_binary [ret=1, pid=6787, time=47.6sec]

Probably related to #25201

Fixed by #25299

Fixed by #25299


text:
cmake: various fixes

A few assorted cmake fixes:
Fixes https://github.com/grpc/grpc/issues/8739
Fixes https://github.com/grpc/grpc/issues/8362
Progress toward fixing https://github.com/grpc/grpc/issues/11378 (our cmake file is using CMAKE_INSTALL_{INCLUDEDIR, BINDIR, LIBDIR, CMAKEDIR} definitions brought in by protobuf's cmakefile and that results in putting gRPCConfig.cmake to a wrong destination under protobuf/... directory).

[trickle] No significant performance differences

[qps] No significant performance differences

@nicolasnoble  friendly ping.

CC @chwarr (this might fix the zlib issue you mentioned).

Thanks. I'll give it a try next week.
It also looks like this resolves some of the #include path issues I've been seeing.

+mehrdada to review

Known failures:
https://github.com/grpc/grpc/issues/11116
https://github.com/grpc/grpc/issues/10512
https://github.com/grpc/grpc/issues/10686
https://github.com/grpc/grpc/issues/10390

Confirming as of commit 7405347 that the #include path problems I mentioned have been fixed. Thanks.
I have yet to verify the zlib changes yet.

authors: chwarr grpc-jenkins jtattermusch


text:
Fix windows performance benchmarks

Fixes https://github.com/grpc/grpc/issues/12148
It appears that without using "python X.py", instead of windows python (C:\Python27\python.exe), the msys python is used an that leads to an error when starting a port server. That in turn prevents the benchmarks from running.
I tested this change locally and it should help.

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

authors: grpc-jenkins jtattermusch


text:
Fix timer manager debug code

This PR prevents dead-stripping of timer manager debug code by explicitly calling initialization. Suspecting the reason that previous debug code (#16714) did not work was because of dead-stripping.

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]     +16  +0.0%

  [ = ]       0 TOTAL      +16  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,735      Total (>)     11,179,731

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,730      Total (<)     11,179,738

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,736      Total (>)     11,179,731

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Basic Tests MacOS [opt] (internal IC) - #17126

authors: grpc-testing muxi


text:
doc/compression.md: Make it clear compression is per-RPC

"initial call" should not be understood as "initial call on the connection" but
"initial call of the RPC". All the data necessary for understanding client's
compression abilities is provide per-RPC, so no connection-level state should
be used. Using such state would break the use of proxies.

@dfawley, friendly ping. Pretty small change.


text:
build_and_run_docker.sh cleanup and simplification

The build_and_run_docker.sh is our main entry point for running run_tests.py, task_runner.py (artifacts, packages, distribtests) and bazel under docker.

Perform some refactoring to improve the structuring and readability of the script (and add a lot of explanatory comments)
simplify the way reports (ie. the ./reports dir and XML test reports) and output files (e.g. binaries that are results of the artifact build tasks) are handled (so that we don't require as much postprocessing by the DOCKER_RUN_SCRIPT).
make some of the well-known kokoro directories (KOKORO_GFILE_DIR, KOKORO_ARTIFACTS_DIR) available from inside the docker container by default, making it simpler to run some special test suites (e.g. bload_diff, memory_diff etc.) under docker.

Overall, this is preparation for making the build_and_run_docker.sh script usable for running tests/experiments under docker locally (without needing to duplicate most of the logic in run_in_docker.sh) and to be able to run bazel under docker much more easily (both locally and on CI). Also it will create more opportunities for simplification of the run_tests.py / task_runner.py stack.

Test failures are unrelated (test flakes and ruby on macos artifact build failure)

This issue might be related to b/231142315 🤔

authors: jtattermusch lidizheng


text:
update dependencies in C# examples to GA versions

This updates the nuget dependencies in csharp examples to use the versions intended to be used in GA (Google.Protobuf.3.0.0, Grpc.1.0.0, and System.Interactive.Async.3.0.0).
It also removes another solution level packages.config file that was missed earlier (./nuget/packages.config) since it no longer works with the new nuget versions.
Note that these won't run as is, but are meant to work when 1.0.0 is published.

LGTM

test this please

test this please

test this please

test this please

test this please


text:
Add all the other fuzzer tests to internal CI

Adding the rest of the fuzzer tests to be run on internal CI. Also, is the fuzzer_nanopb_serverlist test  intentionally disabled?

Any plans to merge this PR?

Test this please

Known errors:
Basic Linux tests - #9150

authors: jtattermusch matt-kwong


text:
Document how to control the size of the tag cloud

Example
<d3-cloud words="ctrl.words" padding="0" slope-base="10" slope-factor="70" rotate="ctrl.noRotate(word)" events="ctrl.cloudEvents"></d3-cloud>     </div>

I notice I have both details in the README as well as on github.io. The README should point to github.io, and the github.io should contain ref docs. The quickstart example should at least point to the reference and mention there are extra options on the directive..

authors: grtjn sashamitrovich


text:
Mypy integration for type inference and combined 2+3 codebase

This looks fantastic.
@JukkaL on the mypy team is looking at a static compile capability using mypy here :  https://github.com/python/mypy/issues/1862
Referencing pyir ideas  here: https://docs.google.com/document/d/1jGksgI96LdYQODa9Fca7EttFEGQfNODphVmbCX0DD1k/edit
Perhaps these efforts could be combined so that a standard mypy/python typed IR can be emmited that  grumpy can consume?
This would have the following advantages:

Integration with type hints for large codebases
improved type inference for fast code
Potentially making 2+3 support easier
development synergy with dropbox (and maybe other players below)

I might be dreaming but perhaps Pyjion (@brettcannon et al) and Numba (@Seibert, @pzwang et al)  can get in on this as well. I think it would be mutually beneficial for python and it's users.

 Comment by datnamer
Wednesday Jan 11, 2017 at 15:29 GMT

For py3 the new variable annotation and frame eval api might help here.

repo: grumpyhome/grumpy


text:
vpc tags are not getting retrieved

Hi Team,
I am creating vpc. In terratest, I want to retrieve the tag for newly created vpc and want to compare with expected tag. I have written below code.
However, below code is not able to get the vpc tags. This looks like problem with function code line: vpc_tags := aws.GetTagsForVpc(t, vpc_id, "eu-central-1").
I can confirm that vpc_id are getting passed correctly (for example : vpc_id = "vpc-0x111x59x111111xx")
Can anyone please help me indentifying what I am missing here?
vpc_test.go file code:
package vpc_test
import (
"testing"
"fmt"
"log"
"encoding/json"
"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/terraform"
"github.com/stretchr/testify/assert"
)
func TestTerraformBasicExample(t *testing.T) {
t.Parallel()
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
	TerraformDir: "../test",
	PluginDir: "/opt/app-root/terraform-plugin-providers",
	NoColor: true,
})

defer terraform.Destroy(t, terraformOptions)

terraform.InitAndApply(t, terraformOptions)

vpc_id := terraform.Output(t, terraformOptions, "vpc_id")

vpc_tags := aws.GetTagsForVpc(t, vpc_id, "eu-central-1")

b, err := json.Marshal(vpc_tags)
if err != nil {
	log.Fatal(err)
}
fmt.Println(string(b))

external_tag, contains_external_tag := vpc_tags["Name"]
assert.True(t, contains_external_tag)
assert.Equal(t, "external", external_tag)

}

Hello,
value of vpc_id should look like vpc-0e1d43f4fac344xyz,
example usage of of GetTagsForVpc can be found in: https://github.com/gruntwork-io/terratest/blob/master/modules/aws/vpc_test.go#L120

Hi @denis256 ,
Yes vpc_id is correct I am getting from terraform output and passing into
vpc_tags := aws.GetTagsForVpc(t, vpc_id, "eu-central-1")
example: vpc_id is something like you mentioned vpc-0e1d43f4fac344xyz
however, I can see vpc_tags is blank and do not have value.
I have 2 tags to vpc that is created using terraform as below:
tags     = {
"Name"  = "external"
"infra" = "true"
}
Am i missing anything

Please check if the region eu-central-1 is specified in the VPC Terraform file. If it is not provided, the VPC will be created in the default region configured by the user, and we won't be able to check the VPC tags with the eu-central-1 region

Will close this issue. Feel free to reopen it if you continue to see the same issue.

repo: gruntwork-io/terratest


text:
Trigger GA only when pushing to the main branch

This disables creating the web page on a push to any branch

Already fixed.

repo: grycap/oscar-landing


text:
🛑 bretterhofer.at is down

In 6105e89, bretterhofer.at (https://bretterhofer.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: bretterhofer.at is back up in f12ee1a.


text:
🛑 h4.bretterhofer.at is down

In 8b6d400, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h4.bretterhofer.at is back up in 657d1b2.


text:
🛑 h4.bretterhofer.at is down

In 6a05e5d, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h4.bretterhofer.at is back up in eec8b2d.


text:
🛑 bretterhofer.at is down

In b9b141d, bretterhofer.at (https://bretterhofer.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: bretterhofer.at is back up in 4b15838.


text:
我找到了个问题，如果子视图名称为class，框架也会停在这里

/*
         如果程序卡在了这里请检查并确保你的cell的子控件添加在cell的contentView上（不要直接添加到cell上）。
         */
        self.modelCell = [_modelTableview dequeueReusableCellWithIdentifier:NSStringFromClass(cellClass)];

更新到最新版本测试下

authors: gsdios jiazufei

repo: gsdios/SDAutoLayout


text:
New components Table, Collapsible and refactoring

The work was divided into several parts to avoid having too long a PR.
This stage includes :

Collapisble component creation
Creation of a generic Table component and refactoring of its use in the doc.
Data generation script. It will evolve during the page UI dev.
Data display in the page. For the moment, data is displayed raw. They will be formatted to respect the layout in a future PR.

Are we going to be able to see the typings of nested types? such as ResponsiveProp?

repo: gsoft-inc/wl-hopper


text:
Fixes #5 by switching from argumentText to text

avoiding the mentions to be removed from the message itself

This can be closed. It's fixed in https://github.com/gsuitedevs/hubot-google-hangouts-chat/pull/11

authors: daconstenla joeyguerra

repo: gsuitedevs/hubot-google-hangouts-chat


text:
Support mypy --strict

This branch adds type annotations to the entire library, along with a number of Airtable-specific types and TypedDicts. It is not compatible with Python 3.7 but it works on all later versions. As with some of the other big branches, it might be easier to review each commit individually.

https://github.com/gtalarico/pyairtable/commit/821e435df80c4cf518116cb81032a7c73249ff68 introduces a number of types and TypedDicts in a new pyairtable.api.types module.

There are some aliases here (like RecordId and FieldName) that simply point to str. This is not strictly necessary, but without them there are so many places where we have things like List[str] or Dict[str, str], and this might make it a bit easier for developers to remember what goes where.
I'm open to adding more but I didn't want to go overboard on the first pass. (I'm not opposed to seeing str in type annotations as long as it's obvious what they represent.)

https://github.com/gtalarico/pyairtable/commit/4aab9e077d3828bc5fd8c20de6ad49062f69a017 switches up how we call mypy to use strict mode and not silence any warnings.

https://github.com/gtalarico/pyairtable/commit/5345b048cc1f56533b3bf73f039c737c037b3313 fills in most of the missing annotations on function/method signatures. It also removes the (deprecated) params.to_params_dict function and introduces Model._get_meta() as a helper for reading the Meta class.

https://github.com/gtalarico/pyairtable/commit/8a28f3470988a0e758df0a1ca8bdc805bec6c054 does a few things:

Turns pyairtable.orm.fields.Field into a generically-typed class, Field[T_API, T_ORM], whose subclasses need to define the API and ORM data types (which might not always match).

Provides the alias BasicField[T] for field classes which do not convert values between types.
Provides the alias AnyField for when a type annotation doesn't care what kind of field it gets.
Renames Field.value_if_missing to Field._missing_value() so it can be typed more flexibly.

https://github.com/gtalarico/pyairtable/commit/b618b55409c2306e66fba26687a2d3fd86fdb5c2 uses typing.cast() on values returned by the Airtable API to conform them to the types introduced above; this assumes the API responses will conform to the data structures we expect. (See below.)

https://github.com/gtalarico/pyairtable/commit/3d9be4731a51605ea1dd581f91ee0bdc0f76a5ca fixes some issues with forward references that caused sphinx_autodoc_typehints to crash.

https://github.com/gtalarico/pyairtable/commit/ffa5c431223f9a0bcde22edaf61147c80eabbea6 introduces some basic types to pyairtable.metadata. I expect to deprecate this module soon, so I didn't spend too much time on it.

https://github.com/gtalarico/pyairtable/commit/46b0950750a3dd9021cbc87e30816de5a40ada05 removes support (introduced in an earlier branch) for setting model.list_field = iterable_object, where iterable_object is a non-list (such as a set, tuple, or generator). Defining this correctly as a type annotation became problematic, and it seems reasonable to expect developers to convert those types to lists before setting field values on a model.

https://github.com/gtalarico/pyairtable/commit/8364a4f916f33d077383851828152199c980ae58 adds a special test file, tests/test_typing.py, which makes a number of type assertions that mypy will validate on each run.

https://github.com/gtalarico/pyairtable/commit/94a93cda63237d3220aae0a6a25a1443d17f87eb changes the approach used in b618b554 (above) to actively validate Airtable's API responses against our TypedDict definitions, instead of simply assuming they match what we expect. This introduces pydantic as a dependency, which we've already discussed using for metadata models in #258.

34eb19f updates the Sphinx configuration to include type annotations and default values in function signatures and parameter descriptions. It also adds a "Types" section.

9b5ecd0 fixes a bug that popped up when I pushed the previous commit, but which I hadn't run across before. I'm stumped why GitHub Actions didn't catch it when I pushed 94a93cda but :shrug: it was a quick fix.

This branch resolves #202.

Going to merge this now. Please feel free to open further issues for discussion if anything looks awry.

repo: gtalarico/pyairtable


text:
Does chromsomer require all blast hits?

Hi,
Does chromosomer expect all the blast hits, or is it valid to use "-max_target_seqs", say 5 or 10.
My current parameter is "-evalue 0,00010" and I want to save compute time with "-max_target_seqs".
Thanks
Best regards,
Jenny

Hello Jelly,
Chromosomer considers BLAST hits between at most two sequences: the highest-scoring one and the one following it, so you should specify the -max_target_seqs option equal to 2. The hits are scored by their bit score values and alignments to sequences other than the first two are ignored by Chromosomer.
Best regards,
Gaik

Great! Thanks for your reply!

authors: JennyHTLee gtamazian

repo: gtamazian/chromosomer


text:
Ocelot does not build on windows

From gregory....@gatech.edu on April 21, 2011 14:52:58
The title says it all, we need someone to actually step through the entire build process on windows.
Original issue: http://code.google.com/p/gpuocelot/issues/detail?id=51

From ganesh.p...@amd.com on May 11, 2011 14:35:14
Ocelot uses functions provided in cfenv/fenv.h. This header file is not part of MSVC standard library implementation.
Has anyone got around this isse? Perhaps by changing the source/ supplying own functions etc?
Thanks,
Ganesh

From SolusStu...@gmail.com on May 11, 2011 15:57:46
See https://code.google.com/p/gpuocelot/source/browse/trunk/branches/ocelot-windows/ocelot/executive/implementation/CooperativeThreadArray.cpp?r=1001 for what I did to get around this the last time I tried.  I couldn't immediately find an equivalent to fenv on windows so I just turned it off.  Ideally, we would want a way to set the rounding modes on windows...

From sschuberth on June 23, 2011 05:29:39
The FPU rounding mode can be set via _control87 on Windows, see http://msdn.microsoft.com/en-us/library/e9b52ceh(v=VS.100).aspx If there's currently no one working on Windows support, I'd be willing to give it a try.

From gregory....@gatech.edu on June 23, 2011 10:28:12
Thanks for the link.  I think that we would have to do something to ensure that once we set the mode, the x87 FPU is used rather than the SSE unit (which I think most compilers end up choosing by default).  Also, we would probably want to wrap both fenv and _control87 behind a wrapper library.
I don't think that anyone is working on this now, although I am tracking it.
If you are willing, I would encourage you to give it a try.

From gregory....@gatech.edu on June 23, 2011 15:05:53
Issue 32 has been merged into this issue.

From sschuberth on July 29, 2011 09:29:32
I'm currently working on compiling gpuocelot with VS2010 and will hopefully be able to send some patches to the mailing list soon.

From gregory....@gatech.edu on September 27, 2011 10:52:47
There is currently support in the source code as well as the build system for windows.  I need someone to independently try this out and verify it.
Status: Started

From basiliom...@gmail.com on September 27, 2011 10:58:39
I'm up. What is needed?

From gregory....@gatech.edu on September 27, 2011 14:27:02
I added some experimental build instructions to the Installation wiki page.  You need to make sure that you have all of the prerequisites installed and then try out the commands listed.

From chantak...@gmail.com on February 01, 2012 15:37:35
any news about this subject? I would like to use it on my windows. Thanks.

From sschuberth on February 02, 2012 01:26:26
I believe this has been resolved quite some time ago already, starting with https://code.google.com/p/gpuocelot/source/detail?r=1405

From chantak...@gmail.com on February 02, 2012 08:56:19
All right, but I see no version, or public package available for windows... there is any possibility to see this?
Thanks.

From SolusStu...@gmail.com on February 02, 2012 09:08:48
I'm currently leaving this open until we have a library available on the website.

From chantak...@gmail.com on February 02, 2012 15:11:20
Thanks for the info. I will wait for news about it, because I plan to use Ocelot in many projects for windows I am developing, I have many cuda codes that needs to be executed on AMD GPU or CPU (My desktop currently have a low-end Nvidia card, one high-end AMD card, and an 2 x 8 core cpu, and I will greatly take benefit if I could use all of them at the same time). Best regards. Thanks.

From dmitrinesteruk on May 30, 2012 01:31:14
Any news on this?

From SolusStu...@gmail.com on May 30, 2012 08:48:32
There is preliminary support for building on windows.  Just run build.py from the command line.
The emulator is supported (although there are a few minor issues with rounding modifiers that makes floating point precision slightly different than on linux in some rare cares).
The multicore CPU backend has been tested a few times.
The NVIDIA and AMD backends build, but they have not been tested.
It would be useful to have someone donate a windows machine for running regression tests.

From chantak...@gmail.com on June 01, 2012 15:08:15
Very nice! I am going to try this. But for what I saw, in the code, I feel it is a very nice piece of tech, very well written. Thanks very much!
PS.: I dont found the Opencl backend, it is me, or it is really not present at the moment in trunk?
PS.: I saw here to find details about how to build for windows, https://code.google.com/p/gpuocelot/wiki/Installation , but, it seems something is omitted. A little more details would not hurt.

From 1472583...@seznam.cz on August 24, 2012 12:14:31
Hi, is it still possible to get the codes somewhere? I have VS 2010 Proffesional at my disposal and since my laptop doesnt have NVIDIA card, I would like to use Ocelot to emulate it in Windows environment. While I was able to get Ocelot working after about day and a half on Ubuntu 12.04, I wont be able to use it for active development since everybody around uses VS to develop CUDA apps. I can imagine it being pretty painful to keep linux and VS project synchronized. I am working on a naive "hybrid" solution involving virtual machine with linux and a shared folder containing project sources hosted on the host computer. Then, in theory, it could be possible to edit all files in VS, switch to virtual machine, compile the stuff in linux and see the result there too. Its just a thought, though, how efficient and comfortable that can be, no idea.
Still, if I could download the Windows sources for Ocelot from somewhere, I would certainly give it a try. Is there still such a place available, please?

From laughing...@gmail.com on October 18, 2012 18:39:04
I've actually managed to get Ocelot to compile under win7 with 2010 pro in both 32 and 64 bits after some work, but now when I try to link the ocelot.lib it complains about missing symbols.
for a very basic program that does nearly nothing:
C:\Users\micha-f\Documents\test>nvcc -m32 -c main.cu
main.cu
tmpxft_0000344c_00000000-5_main.cudafe1.gpu
tmpxft_0000344c_00000000-10_main.cudafe2.gpu
main.cu
tmpxft_0000344c_00000000-5_main.cudafe1.cpp
tmpxft_0000344c_00000000-15_main.ii
C:\Users\micha-f\Documents\test>cl main.obj C:\Programs\Ocelot\lib\ocelot.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.
/out:main.exe
main.obj
C:\Programs\Ocelot\lib\ocelot.lib
main.obj : error LNK2019: unresolved external symbol _cudaFree@4 referenced in function _main
main.obj : error LNK2019: unresolved external symbol _cudaConfigureCall@32 referenced in function _main
main.obj : error LNK2019: unresolved external symbol _cudaMemcpy@16 referenced in function _main
main.obj : error LNK2019: unresolved external symbol _cudaMalloc@8 referenced in function _main
main.obj : error LNK2019: unresolved external symbol _cudaSetupArgument@12 referenced in function "void __cdecl __device_stub__Z5helloPcPi(char *,int *)" (?__device_stub__Z5helloPcPi@@YAXPADPAH@Z)
main.obj : error LNK2019: unresolved external symbol ___cudaRegisterFatBinary@4 referenced in function "void __cdecl __sti____cudaRegisterAll_39_tmpxft_0000344c_00000000_8_main_cpp1_ii_794ab5f2(void)" (?__sti____cudaRegisterAll_39_tmpxft_0000344c_00000000_8_main_cpp1_ii_794ab5f2@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol ___cudaUnregisterFatBinary@4 referenced in function "void __cdecl __cudaUnregisterBinaryUtil(void)" (?__cudaUnregisterBinaryUtil@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol ___cudaRegisterFunction@40 referenced in function "void __cdecl __nv_cudaEntityRegisterCallback(void * *)" (?__nv_cudaEntityRegisterCallback@@YAXPAPAX@Z)
main.obj : error LNK2019: unresolved external symbol _cudaLaunch@4 referenced in function "enum cudaError __cdecl cudaLaunch(char *)" (??$cudaLaunch@D@@YA?AW4cudaError@@PAD@Z)
main.exe : fatal error LNK1120: 9 unresolved externals

From jipe4...@gmail.com on August 18, 2014 13:54:43
I could definetly see about donating a windows machine to help further develop this project (if that's what's really needed, maybe it's actually more devs. that is needed?).
Meanwhile I'm also gonna give the windows build a go... How many have been successful so far?

repo: gtcasl/gpuocelot


text:
STI Support and validates_associated

This adds two new features: support for STI classes and validates_associated.
With the STI support, you can now have a parent class with a validation scope and a child class which adds to the same validation scope.  (With the current gem, the validation_scope in the child would overwrite the parent).
The built in Rails validates_associated method automatically checks the valid? method, so I added one that check the current scope's no_#{scope}? method.
This branch also contains a few patches from other people to maintain compatibility with modern Rails (4+).  If you would like me to split these features out into a completely separate pull request, I would be happy to do so.

Thank you for the PR.  I've just cherry-picked some of the earlier contributions and released 0.5.2 with full tests over 3.2, 4.0, 4.1 and 4.2 in Travis.  I noticed your changes have no test coverage and they break one test.  Can you rebase your work and add some tests to verify the functionality?  If you do so I promise to reply in a more timely fashion :)

So wow... no who's not timely.  Now I remember seeing this when you first responded to me, but it somehow fell off the end of my list and I forgot about it.  I apologize for never getting back to you.  I'm going to try and get this rebased and fix those tests for you.  Hopefully I'll have it to you by the end of today.

Ok, that should fix the broken test.  I'm not looking to add new tests for the new functionality.

I don't understand these test failures.  @gtd can you help me figure this out.  It's says its failing during bundle install, something about spec being an undefined method.

K.  The last test have been pushed.  These test STI inheritance.  All the tests pass with rake test on my machine, but bundle is still failing on Travis.  Is this something I need to or can fix?

Hi @CyborgMaster, once again, sorry for the delay.
I fixed the build failures (it was due to an old bundler bug).  The question now is whether this patch can be made applicable to Rails 3.2 or at least 4.0, both of which are failing.  I am open to the possibility of doing a major release and requiring Rails 4.1, but if we can support <= 4.0 I would prefer that.  What are your thoughts?

At least 4.0 support sounds like a great idea.  How, do I get the tests for other versions of Rails to run on my local box?  Right now rake test gives all passes for me.

It's done with the Appraisal gem from Thoughtbot.  Essentially just appraisal rake test will do it, or maybe bundle exec appraisal rake test.

Thanks.  I'll try to get the tests passing for at least 4.0.

Wow.  I'm at a bit of a loss.  I tried to get through the test failures for Rails 4.0 (there is only one), and I'm really stumped.
If I comment out all of the tests except test_sti_inheritance_of_scopes it passes, but if I comment back in test_validates_associated then it fails.  I've been debugging for an hour, but I can't for the  life of me see how running that other test first would make any difference.  They are even operating on different User objects.
Note:  I had to add i_suck_and_my_tests_are_order_dependent! and change the test name to test_z_sti_inheritance_of_scopes to make sure it always runs last.  Otherwise it depends on the random order.
I'm going to keep debugging, but if you have any ideas @gtd, I'm all ears.

Holy crap.  Adding a few lines to the top of the test (even with all the other commented out) causes a failure.
  def test_z_sti_inheritance_of_scopes
    user = User.find(3)
    user1 = User.find(1)
    user1.has_warnings?
    user.has_warnings?
    assert_instance_of ImportantUser, user
    assert user.no_warnings?
    # Make sure super class validations work
    user.email = nil
    assert user.has_warnings?
    user.email = 'a@b.com'
    assert user.no_warnings?
    # Make sure child class validations work
    user.bio = nil
    assert user.has_warnings?
  end

Looks like if an instance of User calls has_warnings? before the subclass does, the subclasses validations get skipped, wild.

Ok.  That was a crazy adventure.  After spending several hours tracing through ActiveRecord::Validations and ActiveSupport::Callbacks code, I finally figured it out.
It turns out that prior to Rails 4.1, ActiveSupport callbacks were actually compiled into a named function the first time they were run and then never inspected again.  They had to come up with the function name and used the following to get it (from here):
      def __generate_callback_runner_name(kind)
        "_run__#{self.name.hash.abs}__#{kind}__callbacks"
      end

Because the class name is used to generate the function name it was causing craziness for inheritance issues.  Due to the fact that all the validation proxy classes for a given validation scope, that are created for an ActiveRecord STI class tree, inherit from each other, and were anonymous classes, if a parent classes validation callback was called before the child class, the callback function would be created in the parent class.  Then, when the child class went to run it's validation callback, it would see that the function name is already defined and use it instead of recompiling (See here).  This of course wouldn't cause any problems if the child class ran first, because the parent class wouldn't see the child class's function when it ran its callbacks.
The answer was to give the anonymous proxy classes a name.  Now everything works all the way back to Rails 3.2.  Yay!

@gtd, I believe this is finally ready to be merged.

Incredible sleuthing!  Thanks for all the hard work!  I will release it now.

Thanks for the quick merge and release!  Sometimes a PR of mine will be merged and then sit for months before a new version is released to rubygems, so I have to keep maintaining my fork.  So nice to be able to simply nuke the thing.

authors: CyborgMaster gtd


text:
Fixed bug, added lots of tests

The problem was with one of the packages.

should fix 2.0.4, hopefully

authors: AlexeyMK samcorcos

repo: gterrono/houston


text:
Add ImageMenuItem

cc @gkoz
cc @EPashkin

Before merging this, I need to add some manual doc to lgpl-docs repository.

+1

No need to wait for the lgpl-docs changes. It might even be easier to test the docs changes with this merged.

I let you handle it then. :)

authors: EPashkin GuillaumeGomez gkoz

repo: gtk-rs/gtk


text:
widget for personal stream

there's http://hitchticker.meteor.com/stream/uLHL6ik5AspPjPbSc and
http://hitchticker.meteor.com/widget
http://hitchticker.meteor.com/stream/uLHL6ik5AspPjPbSc/widget doesn't work yet
cc @simison

duplicate with #1
actually should have been done in https://github.com/guaka/hitchticker/commit/1f25e3ecdf48cba736bcea6c40c86d8bf2402c68  as  http://hitchticker.meteor.com/widget/uLHL6ik5AspPjPbSc
but it's not working there, keep it to #1

repo: guaka/hitchticker


text:
有人测试过医保的签名和验签吗？

gmssl进行签名的数据，医保平台验证签名不通过，使用java的签名就可以通过。有人这个怎么处理吗？

你自己比较一下两者签名的差异啊，如果都正确，无非就是签名格式的问题。

authors: emmansun xglabc

repo: guanzhi/GmSSL


text:
Add a "Time taken" column to the history page

It shows how long completed builds took to complete.
I think this is a metric that people should be looking at and trying to reduce, so I'd like to increase its visibility.
Note: I didn't bother setting up RiffRaff to run locally, so I've no idea if it works. But it compiles!

:+1: Happy for this to go in. This used to be impossible, but glad it is being surfaced now. Slightly concerned about the width of the table though.

You can deploy to CODE to test this.

How do I deploy to CODE? Don't tell me RiffRaff can deploy itself?!

It can! (It's a nasty hack). Code Riff-Raff is at http://riffraff.code.dev-gutools.co.uk/

What an age we live in.

Here's what it looks like on CODE.

@sihil ok to merge this myself?

Yes, please do.

repo: guardian/deploy


text:
feat: added makeRelativeDate

What?
Adds the makeRelativeDate() function.
Takes an absolute date in epoch format and returns a string representing relative time ago.
Usage
        type RelativeDateOptions = {
            notAfter?: number;
            format?: FormatType;
            showTime?: boolean;
        };

        type FormatType = 'short' | 'med' | 'long';

        const makeRelativeDate = (
            epoch: number,
            opts: RelativeDateOptions = {},
        ): false | string

        const twoDaysAgo = new Date(Date.UTC(...etc)).getTime();

        expect(
            makeRelativeDate(twoDaysAgo, {
                format: 'med',
            }),
        ).toBe('2d ago');

        expect(
            makeRelativeDate(twoDaysAgo, {
                format: 'short',
            }),
        ).toBe('2d');

        expect(
            makeRelativeDate(twoDaysAgo, {
                format: 'long',
            }),
        ).toBe('Friday 15 Nov 2019');

Why?
This function has existed for a long time in Frontend and also in DCR. It's stable and unlikely to change and it's not unreasonable to expect that other projects might benefit from using it (@JamieB-gu this kind of function is useful on pages with live content)

 makeRelativeDate in /libs

other projects might benefit from using it

Sounds very sensible. Datetime-type helpers sound like a strong candidate for standardising/sharing. This functionality is currently duplicated in AR.

There's an RFC for date formatting in Source here https://github.com/guardian/source/discussions/503

There's an RFC for date formatting in Source here guardian/source#503

Ah, interesting, I wasn't aware of this, thanks.
It is a big area for sure. Maybe we should be looking at an off the shelf solution 🤷♂ maybe what we have in Frontend is already okay as it is. Absolutely worth having that discussion and 👍 to that happening in Source.
I do think we might get benefit from /libs as a stopgap for these types of things ahead of then though? If we want to share code like this we have three options at the moment

Put it in Source
Put it in a repo like here in /libs
Copy paste it and accept the duplication

Option 1. Is ultimately the right place but it's slow, 2 is perhaps not the correct location ultimately but it is a location from where the code can be shared with minimal effort, and 3 is also a valid possibility, it's certainly the easiest and quickest!

Future date
What happens if the date is in the future?

I think it returns false in this situation
if (delta < 0) {

Long months
Doesn’t Monday 1 February 2021 feel more appropriate that Monday 1 Feb 2021 if you have the space? Why truncate the months in long from. Why would the day of the week get special treatment?

@mxdvl & @sndrs 🙇 amazing reviews - thanks both!
I've gone though each point and hopefully we're in a good place. I was originally trying to maintain the orginal api from Frontend but I think you have both made really good points that justify moving away from that to something better

(also, maybe update the PR title the new method name? that's what will be squashed into git history)

are you all good with this now @oliverlloyd?

are we there with this now, do you think @oliverlloyd?

are we there with this now, do you think @oliverlloyd?

I'm happy 👍
Again, thanks both for giving this one so much time and thought, really amazing input. I'm keen to import this new and improved dateAgo function into DCR!

authors: JamieB-gu gtrufitt oliverlloyd sndrs

repo: guardian/libs


text:
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Describe the bug

ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Steps to Reproduce the Problem

execute the command cd carla_apollo_bridge/docker && ./build_docker.sh && ./run_docker.sh
enter cyber container : docker exec -ti carla_cyber_0.9.13 bash

Screenshots or Video

Environments (please complete the following information):

System info: Linux jia 5.15.0-69-generic #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Cuda version: NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: 12.0
Docker version: Docker version 20.10.17, build 100c701
Docker-compose version: Docker Compose version v2.0.1

Hi @NavyHub , Have you solved this issue? I meet this problem too.

I also encountered this problem, but it does not seem to affect the normal operation, let's troubleshoot this problem together.
root@f0a9ff4d588e:/apollo# ./apollo.sh build_cyber opt
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
System check passed. Build continue ...
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
ERROR: ld.so: object 'libcaffe2_gpu.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Running build under CPU mode. No GPU is required to run the build.
[INFO] Start building, please wait ...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
Extracting Bazel installation...
.......
____Downloading file:/home/tmp/v1.14.2.tar.gz: 9,158,656 bytes
____Loading package: cyber/examples
[INFO] Building on x86_64...
[INFO] Building with --jobs=12 --ram_utilization_factor 80 for x86_64
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (05-10 02:52:32.147) Found 547 targets...
Slow read: a 35277032-byte read from /root/.cache/bazel/_bazel_root/540135163923dd7d5820f3ee4b306b32/external/fastrtps/lib/libfastrtps.so.1.5.0 took 5115ms.
INFO: (05-10 02:54:47.015) Elapsed time: 136.972s, Critical Path: 34.37s
[INFO] Skipping revision recording
============================
[ OK ] Build passed!
[INFO] Took 882 seconds
============================

Hi @NavyHub , Have you solved this issue? I meet this problem too.

The same problem can be found here:https://github.com/ApolloAuto/apollo/issues/8833
You can modify the /apollo/apollo_base.sh file and comment out the following configuration line of code
  export LD_PRELOAD="$PRELOAD"

Hi @NavyHub , Have you solved this issue? I meet this problem too.

@JasonBourne1998 We have fixed this error, you can pull the code, delete the carla_cyber_0.9.13 image of this machine, and build.

It looks like this issue hasn’t been active in longer than a few weeks. In the absence of more information, we will close it, If you find that this is still a problem, please feel free to reopen it.

authors: JasonBourne1998 NavyHub WilliaJing meua newwj


text:
请问翻译完成后的经费如何结算？

如题，翻译了第一章，已经被采用，但对于经费结算还是很迷茫。 @guenchi

:thinking: 是个好问题，第五章已经翻译完1年半了。竟然是去年的事，这个项目进展得真慢:disappointed:

authors: WongRuoran tclfs

repo: guenchi/TSPL


text:
Add strong-name signing.

Add strong-name signing for using it with Terminal.Gui v1 library
See https://github.com/gui-cs/Terminal.Gui/pull/3191

All tests passed

repo: gui-cs/NStack


text:
Update AppVeyor Configuration by Removing SONAR_TOKEN

User description

Closes #
📑 Description

✅ Checks

[ ] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required
[ ] All the tests have passed

☢ Does this introduce a breaking change?

[ ] Yes
[ ] No

ℹ Additional Information

Description

Enhanced the AppVeyor configuration by removing the SONAR_TOKEN environment variable.
Updated the dotnet_csproj settings for better compatibility.

Changes walkthrough 📝
Relevant filesConfiguration changes

appveyor.ymlUpdate AppVeyor Configuration by Removing SONAR_TOKEN

appveyor.yml
Removed SONAR_TOKEN from the environment variables.  Updated the configuration for dotnet_csproj.

+0/-2

Summary by CodeRabbit

Chores

Removed the SONAR_TOKEN environment variable, which may impact SonarQube integration.
Corrected indentation for the CODECLIMATE_TOKEN environment variable for consistent formatting.
Disabled the build process by setting the build directive to off.
Updated build script logic to conditionally include the SonarQube token.
Enhanced the after_build section to include commands for managing build artifacts.
Specified deployment conditions for NuGet and GitHub to ensure proper artifact uploads.

:white_check_mark: Build GuiStracini.Mandae 8.0.656 completed (commit https://github.com/guibranco/GuiStracini.Mandae/commit/5a22511d84 by @guibranco)

authors: AppVeyorBot guibranco


text:
fixed TIE Interceptor to follow XWS ID rules

fixing this so I can match it up with xwing fonts.

It's TIE/in Interceptor because that's what they use in the FFG squadbuilder app and what they have in their API:
{
  "id": 41,
  "name": "TIE/in Interceptor",
  "description": "",
  "icon": "https://sb-cdn.fantasyflightgames.com/ship_types/I_TIEInterceptor.png"
}

In addition, I am hesitant to change xws ids after they've been set. There might be other projects that have hardcoded the tieininterceptor value and this change would break things for them.

Well that's annoying because that's what's printed on the card. https://sb-cdn.fantasyflightgames.com/card_images/Card_Pilot_106.png
I recommend you change the XWS2 ids rules then in your README. Or are those rules owned by xws-spec?

I’ve ticketed the naming issue in xwing-miniatures-font:
https://github.com/geordanr/xwing-miniatures-font/issues/68

authors: davidhorm guidokessels mludowise


text:
[BUG] global ::selection breaks transparent color

having selection selector in the global.css changes the input color
::selection {
   @apply bg-highlight text-foreground;
 }

Expected Behavior
Color is transparent
Current Behavior
Input text color takes the value defined in selection

Possible Solution
Make color transparent for a selection selector
Not sure if this should be done at the library level or in shadcn-ui?
.selection\:text-transparent *::selection {
  color: transparent;
}

https://github.com/shadcn-ui/ui/issues/3085

That makes sense! the input ::selection should be indeed transparent in ALL situations. Should be done at library level.

authors: andrewdoro guilhermerodz

repo: guilhermerodz/input-otp


text:
Creating SRT/TXT Files

Is there a way to have the code automatically create a .srt and .txt file like the original whisper?

This project does not output any files.
You could write you own code that does this (see for example #93) or use another tool based on faster-whisper such as whisper-ctranslate2.

Looks like there's a way with pysubs library as outlined here:
https://github.com/guillaumekln/faster-whisper/discussions/93#discussioncomment-5621833

authors: altryne guillaumekln joseph2mi

repo: guillaumekln/faster-whisper


text:
Don't trigger validation on certain buttons

I have a form with to submit-buttons. One is labelled "submit" the other "cancel". Now I want to trigger the parsley validation on every submit except when the "cancel" button triggered the submit.
Is there a way to achieve this?
I think there should be a config+markup only way to achieve this, but looking at the source code I haven't found one.

But you want the 'cancel' button to nevertheless submit the form?
I imagine that in the 'cancel' case, you don't actually want the content of the inputs, so couldn't you put that button in a separate <form>?

Yes I could. I still would need to "link" those forms on the server-side, which makes that more complex/fragile: Two forms manipulating the same "form state" …
Having non-validating submit-buttons is something that is so common that there even is a HTML5 attribute for that: http://www.w3schools.com/tags/att_input_formnovalidate.asp . That alone is a reason to support it.

Great, thanks for pointing out formnovalidate. I guess the best thing would be to support it, at least for the submit buttons...

Fixed in master, thanks again :smile:

Super useful when validating with a CMS like Shopify.
https://help.shopify.com/themes/development/templates/customers-activate-account
Using formnovalidate here on 'Decline Invitation' should do the trick ;)
Thanks again @marcandre

authors: marcandre torotil xavianaxw


text:
Code refactoring for gutil.PluginError

I added sudo: false to .travis.yml for faster CI build.

It makes the build really faster than ever. Read the blog post Faster Builds with Container-Based Infrastructure and Docker for details.

I updated dotfiles.

I added .jshintrc.
I removed .npmignore and added files field to package.json instead.

I replaced lodash with smaller modules to reduce source size.

_.defaults -> object-assign
_.uniq -> array-uniq

I updated dependencies and devDependencies.

Maybe it will fix this issue but I cannot confirm the problem.

I introduced istanbul-coveralls to the coveralls script.
I updated test script to let JSHint work correctly.
I updated badge URLs in readme.
I updated test script.

I replaced .should.not.equal(-1) with .containEql.
I removed all the unused variables.

Could you release a new patch version?
Although this module will be depreceted, it's worth doing that.

@shinnn 3.0.2

@contra Thanks!

authors: contra shinnn

repo: gulpjs/gulp-util


text:
Acme Thread fails

  acme = AcmeThread(size="1/4", length=1 * IN) results in:
File "/home/nathaniel/projects/gardenia/.venv/lib/python3.12/site-packages/bd_warehouse/thread.py", line 743, in init
super().init(
File "/home/nathaniel/projects/gardenia/.venv/lib/python3.12/site-packages/bd_warehouse/thread.py", line 605, in init
self.lead = pitch * starts
^~
TypeError: can't multiply sequence by non-int of type 'float'

The problem is that the TrapezoidalThread class has a new starts parameter which isn't being set correctly.

Fixed with commit 53a69f7ba925596ed8d627e7e38cd49f8ff03ffb


text:
Added call to i18n module and missing configuration

Added call to localization module
Added missing configuration to pom.xml

@gundisalwa @marcoslarsen @candentira @francisco-guilherme please review

repo: gundisalwa/pentaho-table-viz


text:
Avoid problems in str.format() with char accents

Hi,
I down know if is new, but str.format(input_statement.text), have problems with accents chars.
I think the problem occurs only in TerminalAdapter,
Thanks,
Davi

Hi @davizucon, I can't confirm what this fixes. Could you provide me with the steps needed to replicate the issue so I can test this?

Hi @gunthercox , If you input a char like "é" or "ã" with terminalAdapter, in log method it uses str.format(), if no unicode .format(() raise a error.
To reproduce, just clone master, and run with IN/OUT using TerminalAdapter.
Thanks,
Davi

@gunthercox , Ill submit this fix again, there is a lot code changes here, Ill clean up.

authors: davizucon gunthercox

repo: gunthercox/ChatterBot


text:
硬件配置问题

请问目前2T左右算力的最低配置有推荐吗？感觉成本好高。。。。

对于算力配置一块我也了解的不多，也没有什么可以推荐的。

authors: fengbozs guojin-yan

repo: guojin-yan/OpenVINOSharp


text:
Fix PullRequestMergeCommandTest failing for some tests

Q
A

Fixed tickets

License
MIT

@sstok could you please reference the error that is giving while running the tests here? Thanks

Aborted. Because of pat it expects a selection from the list.

authors: cordoval sstok

repo: gushphp/gush


text:
Improve TLE data presentation

Hey, @fivitti, I'm working on better TLE visualization. One thing I'm struggling with is the bootstrap classes. The current TLE presentation is broken. We don't preserve spaces, so if you try to copy and use it, you'll get errors).
Here's what I came up with:

The first is a basic
 tag that shows plain TLE data. That's boring, but at least it lets users copy the data. The second is more interesting, as each element is color-coded differently and you can hover your mouse over it to get an explanation. It's all cool, but I've encountered the problem.
I've tried to define classes in bootstrap-custom.css:
.tle1 span { white-space: pre; color: green }
.tle2 span { white-space: pre; color: blue }
.tle3 span { white-space: pre; color: black }
.tle4 span { white-space: pre; color: orange }

and then use it:

    01 2  3   4    X

Sadly, it doesn't work. This, however, works fine:

    01 2  3   4    X

Any idea why?

The code is now ready for review. This is how it looks like. The next step (in a separate PR) will be to present orbital data in more useful manner (apogee, perigee, inclination, altitude, type of an orbit, etc.). Maybe sub-satellite points for AOS, TCA and LOS?

One tip - tags as ,  or
 are for simple text documents. For HTML pages you should to use the CSS properties as font-weight, font-decoration and display.

Looks great! thanks.

authors: fivitti tomaszmrugalski

repo: gut-space/aquarius


text:
s/systemi/system

I found a typo while reading the docs. Hope this is helpful!

Thank you.

authors: gvalkov mambocab

repo: gvalkov/jenkins-autojobs


text:
AbstractForm.IFrameTemplate iframe should have title attribute for accessibility

AbstractForm creates a target iframe without a title attribute. Accessibility guidelines indicate that frame and iframe elements should contain a title attribute to describe the contents of each frame. This provides a label for the frame so users can determine which frame to enter and explore in detail.
WCAG 2.0
Quick Reference Guide to Section 508 Requirements and Standards

This iframe is created just for technical use (for example : pick the server response once submitted). So technically, it's not mandatory. Just to be clear, what you want is something like this ?
<iframe src="javascript:;" name="something" tabindex="-1" title="Form submit helper frame"
style="position:absolute;width:0;height:0;border:0">

An iframe with a "static" title attribute ?

Yes. A static title attribute would do the trick. I'm assuming that browsers won't let you target a hidden iframe. Is that why the iframe template has this inline styling instead of an HTML5 hidden attribute and an inline style rule display: none: to hide the iframe from all users (including assistive technology)?

authors: crevete dvlpr-o


text:
为什么我的边距会失效？

我用的是androidX版本

系统的fitsSystemWindows属性或者方法会导致padding实现，你可以检查一下是否使用了相关方法或者属性，比如检查是否使用了ImmersionBar的setFitsSystemWindows静态方法

repo: gyf-dev/ImmersionBar