text:
Error on MOD + R (rotation shortcut): Could not invoke method (NoSuchMethodException)

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Arch Linux
scrcpy version: 2.4
installation method: Package Manager (pacman)
device model: Redmi Note 1o Pro (model M2101K6G / codename sweet)
Android version: 14

Describe the bug
When I press MOD + R (Alt + R) the screen does not rotate.
It gives an error:
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  xxxxxxxxxxxxxxx              device  M2101K6G
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 21.4 MB/s (69007 bytes in 0.003s)
[server] INFO: Device: [Xiaomi] Xiaomi M2101K6G (Android 14)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.1.1-arch1.1
INFO: Trilinear filtering enabled
INFO: Texture: 2400x1080
[server] INFO: Device rotation requested: portrait
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.view.IWindowManager$Stub$Proxy.freezeRotation [int]
        at java.lang.Class.getMethod(Class.java:2950)
        at java.lang.Class.getMethod(Class.java:2450)
        at com.genymobile.scrcpy.wrappers.WindowManager.getFreezeRotationMethod(WindowManager.java:48)
        at com.genymobile.scrcpy.wrappers.WindowManager.freezeRotation(WindowManager.java:111)
        at com.genymobile.scrcpy.Device.rotateDevice(Device.java:372)
        at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:205)
        at com.genymobile.scrcpy.Controller.control(Controller.java:97)
        at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:105)
        at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)

Edited to remove private info.

Thank you for your report.
It is already fixed in dev branch: #4740.

Great!


text:
About how to specifying frame rate while recording videos

Hello, may I specify a recording frame rate when recording videos? I tried adding -- max-fps 60, but the recorded video didn't have the expected 60 frames per second.
If frame rate can be specified, please tell me how to operate it。
Thanks

The frame rate is intrinsically variable: a new frame is produced only when the screen content changes. For example, if you play a fullscreen video at 24fps on your device, you should not get more than 24 frames per second in scrcpy.

https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#frame-rate

帧速率本质上是可变的：只有当屏幕内容发生变化时才会产生新帧。例如，如果您在设备上以 24fps 的速度播放全屏视频，则 scrcpy 中的帧速率不能超过每秒 24 帧。

https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#frame-rate

yes,I read this document before and thought there may be another way to record at a specified frame rate.
anyway,thank you.

MediaCodec does not provide an option to give a constant frame rate. One possibility is to record to a file, then resample using ffmpeg.

MediaCodec does not provide an option to produce a constant frame rate. One possibility is to record to a file, then resample using ffmpeg.

That could be a way.  i am thinking if i could run a app on the screen, which keep display a small area video at high frame rate. then i use scrcpy to record the whole screen, may be i can get my idea frame rate video?

source: gharchive/issue

repo: Genymobile/scrcpy

license_type: permissive

license_source: bigquery


text:
memleak

Hi.
It seems like memory usage is constantly increasing. After using scrcpy for serveral minutes (8 Minutes to be exact) it uses 1.6 GB of RAM. After 9 Minutes it already uses 1.8 GB of RAM.
I am running it on Windows 10 if this makes any difference.
Regards.

Thank you for your report.
Duplicate of https://github.com/Genymobile/scrcpy/issues/26. It is fixed on master, and will be available in the next release.


text:
tiler : ERROR 1: Too many threads [...] or too many proxy datasets are opened in a cascaded way.

Hi,
I've got an issue when trying to use tiler part.
Trying to generate mesh on french data name RGE Alti 1m on Hauts-de-France administrative boundaries region (about 32 000 km²)
Launch parameters : podman run --name geodan_1_2 -v $(pwd):/data -it geodan/terraintiler -j 10 -s 20
First I've set -j to 80 but I understand it was quite huge but even with -j 10 or no setting to use default one, I've got these message :
or too many proxy datasets are opened in a cascaded way.
Try increasing GDAL_MAX_DATASET_POOL_SIZE.

Thanks for your help

Nearly same method.
Download asc files
Make a vrt with gdal wrap
Generate a single tif file with gdal translate as bilinear and epsg 4326 instead 2154
Launch your first process docker image
Then launch the tiler part.

maybe it's the single tif file? Tiler can use vrt as input

Ok I will try by only convert asc to tif without combing it. I was worried about wrapping tiles and got some holes or overlay when reprojecting

I've try other approach but I got an error when trying to generate VRT.
Probably because I've got too much tiles ?
Terrain tiler 1.1 - Warp
Start: Wed Aug 23 07:59:54 UTC 2023
Temp directory: tmp
Fillnodata maxdistance: 1000
Jobs: 60
tmp directory created.
used s_srs: EPSG:2154
Start processing 32990 GeoTIFFS...
100% 32990:0=0s ./RGEALTI_FXX_0790_6980_MNT_LAMB93_IGN69.tif
Building virtual raster tmp/ahn.vrt...
/process.sh: line 124: /usr/bin/gdalbuildvrt: Argument list too long
VRT created: tmp/ahn.vrt
End: Wed Aug 23 08:13:40 UTC 2023
Elapsed time: 826 seconds.
End of processing

Peraphs it could be fix by using  option -input_file_list with gdalbuildvrt ?

yeah could be many files, how many are there? What happens with a subset?

32990 GeoTIFFS ^^
On a smaller subset it works.
I will make manually the VRT and continue process to see what happen.
On wrap step, each tiles are reproject and nodata filled, is there a risk that some part had some overlap or holes between tiles ?

authors: Doctor-Who bertt

repo: Geodan/terrain

license: MIT

license_source: github-api


text:
Add missing Imagery_on_web_map.ipynb notebook to index

Kirill's notebook was missing from the index and not rendered in the docs
Imagery_on_web_map.ipynb

Good catch -- sorry I forgot to do that one!

source: gharchive/pull-request

authors: caitlinadams robbibt

repo: GeoscienceAustralia/dea-notebooks


text:
Added check for window.scatter before scatterLoaded event listener

Fixes #4
This PR adds a check in src/scatter.js to see if window.scatter has already been loaded. This resolves an issue where the event listener would be added after the scatterLoaded event had fired, causing Scatter to never connect.
I also bumped the version in package.json and added rollup as a dev dependency.
I'm not sure why there are StorageService changes in the dist files -- maybe these weren't included in the last build?

There's a new version out which should handle this: https://github.com/GetScatter/scatter-js/commit/01d29857af1d26abb96a0e47673d7fbd6e38bcdc

authors: liamcurry nsjames

repo: GetScatter/scatter-js


text:
NuGet package 1.2.1 doesn't have the config transform

Hi, the NuGet package 1.2.1 doesn't have the configuration transform. So the clientresources give 404 and you need to manually add the "add name="geta-epicategories" to the protected modules.

I will fix this ASAP.

I recently uploaded version 1.2.3 which closes this issue. Should be available in the next few days.

Thanks by the way! :)

You are welcome :)

authors: MattisOlsson alasvant

repo: Geta/EpiCategories


text:
[Suggestion] Glass Panel as java

My suggestion is that, add to the texture pack a texture that makes the same glass panel look the same as in java.

Thanks for the suggestion! There are already packs that do this, such as https://mcpedl.com/vanilla-deluxe-mixed-ui/. Therefore, because Geyser isn't needed for these changes, we don't think it's necessary to implement. Thanks anyway!

Thanks for the suggestion! There are already packs that do this, such as https://mcpedl.com/vanilla-deluxe-mixed-ui/. Therefore, because Geyser isn't needed for these changes, we don't think it's necessary to implement. Thanks anyway!

But that texture pack does not include the glass panels

Sorry! https://mcpedl.com/lukass-java-parity-pack/ this one was the one.

The problem with this texture is that it works but it is very laggy and it is created for version 1.16

Sorry! https://mcpedl.com/lukass-java-parity-pack/ this one was the one.

That pack claims to do this but it doesn't. In fact I can't find it anywhere and I can't figure out how to implement it.

authors: Camotoy TheDiego845 lukeeey

repo: GeyserMC/GeyserOptionalPack


text:
Update README.md

参照#10  修改了一下
安装时指定 selenium 和 beautifulsoup4 的版本即可正常使用

补充一下，Python 3.12正常运行

repo: Ghauster/BilibiliCommentScraper


text:
Align ML-DSA to the finalised NIST draft

https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.204.pdf

[Ignore] Adding a comment so that I get notified about the updates

@AdityaMitra5102 if you wanted a ping :)

Thanks a lot

repo: GiacomoPope/dilithium-py


text:
🛑 MCSkinHistory is down

In 1135062, MCSkinHistory (https://mcskinhistory.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MCSkinHistory is back up in e140534.


text:
utf-8 encode codec issue on multiscan post

Environment

ggshield version: 1.13.6
Operating system (Linux, macOS, Windows): macOS
Operating system version: 12.6
Python version: 13.10.8

Describe the bug
On Secret scan, this error is happening. The error does not happen on version 1.11.0
A clear and concise description of what the bug is.
Steps to reproduce:
Command
/usr/local/Cellar/ggshield/1.13.6/bin/ggshield --debug  secret scan --exclude tmo-common --json -b 'Generic Password' -b 'Username Password' -o gg-secret-detection-report-path.json --verbose   path -r -y .

I'm unable to share the source code that is being scanned.

Setup steps required to reproduce the issue
Run command ggshield scan something
…

Actual result:
The error received
Scanning Path... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% 0 files scanned out of 92 -:--:--2022-10-20 12:36:48,802 DEBUG 123145446203392 urllib3.connectionpool:_new_conn:1003 Starting new HTTPS connection (1): api.gitguardian.com:443
Scanning Path... ━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  22% 20 files scanned out of 92 -:--:--2022-10-20 12:36:48,908 DEBUG 123145464066048 urllib3.connectionpool:_new_conn:1003 Starting new HTTPS connection (2): api.gitguardian.com:443
Scanning Path... ━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━  43% 40 files scanned out of 92 0:00:012022-10-20 12:36:49,136 DEBUG 123145480855552 urllib3.connectionpool:_new_conn:1003 Starting new HTTPS connection (3): api.gitguardian.com:443
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 1100, in emit
    msg = self.format(record)
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 943, in format
    return fmt.format(record)
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 678, in format
    record.message = record.getMessage()
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 368, in getMessage
    msg = msg % self.args
TypeError: %d format: a real number is required, not NoneType
Call stack:
  File "/usr/local/Cellar/ggshield/1.13.6/bin/ggshield", line 8, in <module>
    sys.exit(main())
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/ggshield/cmd/main.py", line 180, in main
    return cli.main(args, prog_name="ggshield", standalone_mode=not show_crash_log)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/ggshield/cmd/secret/scan/path.py", line 50, in path_cmd
    results = files.scan(
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/ggshield/scan/scannable.py", line 294, in scan
    return scanner.scan(self.files, progress_callback, scan_threads)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/ggshield/scan/scannable.py", line 428, in scan
    return self._collect_results(chunks_for_futures)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/ggshield/scan/scannable.py", line 391, in _collect_results
    handle_scan_chunk_error(scan, chunk)
  File "/usr/local/Cellar/ggshield/1.13.6/libexec/lib/python3.10/site-packages/ggshield/scan/scannable.py", line 555, in handle_scan_chunk_error
    logger.error("status_code=%d detail=%s", detail.status_code, detail.detail)
Message: 'status_code=%d detail=%s'
Arguments: (None, "'utf-8' codec can't encode character '\\udbde' in position 943: surrogates not allowed")
Scanning Path... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━  87% 80 files scanned out of 92 0:00:012022-10-20 12:36:49,349 DEBUG 123145497645056 urllib3.connectionpool:_new_conn:1003 Starting new HTTPS connection (4): api.gitguardian.com:443
Scanning Path... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 92 files scanned out of 92 0:00:002022-10-20 12:36:49,554 DEBUG 123145446203392 urllib3.connectionpool:_make_request:456 https://api.gitguardian.com:443 "POST /v1/multiscan HTTP/1.1" 200 None
2022-10-20 12:36:49,594 DEBUG 123145464066048 urllib3.connectionpool:_make_request:456 https://api.gitguardian.com:443 "POST /v1/multiscan HTTP/1.1" 200 None
Scanning Path... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 92 files scanned out of 92 0:00:002022-10-20 12:36:49,694 DEBUG 123145480855552 urllib3.connectionpool:_make_request:456 https://api.gitguardian.com:443 "POST /v1/multiscan HTTP/1.1" 200 None
Scanning Path... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 92 files scanned out of 92 0:00:002022-10-20 12:36:49,856 DEBUG 123145497645056 urllib3.connectionpool:_make_request:456 https://api.gitguardian.com:443 "POST /v1/multiscan HTTP/1.1" 200 None
Scanning Path... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 92 files scanned out of 92 0:00:00
Error: Error scanning, network error occurred: 'utf-8' codec can't encode character '\udbde' in position 943: surrogates not allowed

Expected result:
Scan completes normally.
If applicable, add logs or screenshots to help explain your problem.

I haven't been able to reproduce the bug but I think I have discovered the source of the bug. The exception occurs within GGClient.multi_content_scan (based on the trace above). This error (utf-8' codec can't encode character '\udbde' in position 943: surrogates not allowed) can be reproduced with the following code:
>>> from ggshield.core.config import Config
>>> from ggshield.core.client import create_client_from_config
>>> client = create_client_from_config(Config())
>>> r = client.multi_content_scan([{"document": "password=t0ps3creTP@ssW0rd!\udbde", "filename": "test.txt"}])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sguillaume/.local/share/virtualenvs/gg-shield-vxiT8E2t/lib/python3.10/site-packages/pygitguardian/client.py", line 297, in multi_content_scan
    request_obj = Document.SCHEMA.load(documents, many=True)
  File "/Users/sguillaume/.local/share/virtualenvs/gg-shield-vxiT8E2t/lib/python3.10/site-packages/marshmallow/schema.py", line 717, in load
    return self._do_load(
  File "/Users/sguillaume/.local/share/virtualenvs/gg-shield-vxiT8E2t/lib/python3.10/site-packages/marshmallow/schema.py", line 860, in _do_load
    self._invoke_field_validators(
  File "/Users/sguillaume/.local/share/virtualenvs/gg-shield-vxiT8E2t/lib/python3.10/site-packages/marshmallow/schema.py", line 1119, in _invoke_field_validators
    validated_value = self._call_and_store(
  File "/Users/sguillaume/.local/share/virtualenvs/gg-shield-vxiT8E2t/lib/python3.10/site-packages/marshmallow/schema.py", line 495, in _call_and_store
    value = getter_func(data)
  File "/Users/sguillaume/.local/share/virtualenvs/gg-shield-vxiT8E2t/lib/python3.10/site-packages/pygitguardian/models.py", line 59, in validate_document
    encoded = document.encode("utf-8")
UnicodeEncodeError: 'utf-8' codec can't encode character '\udbde' in position 27: surrogates not allowed

GGClient.multi_content_scan expects the content of the documents to be a encodable in UTF-8. But since ggshield v1.13.3 and this commit, we detect the encoding of the source document and respect them, meaning in rare case we can send invalid UTF-8 to GGClient.multi_content_scan.
I'll propose a fix and open a PR.

Note:
If the surrogate character is in the filename, the error is already handled:
>>> from ggshield.core.config import Config
>>> from ggshield.core.client import create_client_from_config
>>> client = create_client_from_config(Config())
>>> r = client.multi_content_scan([{"document": "password=t0ps3creTP@ssW0rd!", "filename": "test\udbde.txt"}])
>>> r.success, r.status_code
(False, 400)
>>> r.detail
'["filename:: [ErrorDetail(string=\'Surrogate characters are not allowed: U+DBDE.\', code=\'surrogate_characters_not_allowed\')]"]'

Can you tell us which version of pygitguardian is installed? You can get this information with pip show pygitguardian.

We just released py-gitguardian 1.3.6, which should address the bug. Please reopen this issue if you still experience the bug.

authors: Walz agateau-gg cyprianbergoniatmo

repo: GitGuardian/ggshield


text:
Notification does not work on Windows 10 prints (<_winsdk_Windows_Foundation.HResult object at 0x000001CBC67CB9F0>,) instead

Notification does not trigger for Win10
Not sure if it is Python or Windows related

why not use win10toast ?
This one has specifically win11 in the name :)


text:
使用scss怎么切换elemen ui的主题？

我使用的是vite，通过按需方式引入的element plus，根据你写的scss方式配置了插件，虽然能够替换项目中自己写的样式的主题，但对element plus不起作用

只要提供给这个插件多个scss变量文件就可以编译多份主题的css， 所以你要把element-plus的主题scss变量写进变量文件；
首先按需加载element-plus的组件的scss

再把 element-plus/packages/theme-chalk/src/common/var.scss 里面哪些需要当作主题改变的scss变量在  multipleScopeVars主题文件中重写

感谢, 昨天不知道什么情况, 无论怎么配置总是有问题, 今天貌似好了.
我又试了下你的这个插件, 现在也可以了. 再次感谢

貌似针对element-plus的需要像下面这么写, 实际是有效的, 能帮我看下, 这种写法是不是对的, 或者说有没有更简单的写法?
@forward "node_modules/element-plus/theme-chalk/src/common/var.scss" with (
  $button-background-color: (
        'primary': green,
        'success': yellow
    ),

  $colors: (
    "primary": (
      "base": #003261,
    ),
    "success": (
      "base": #21ba45,
    ),
    "warning": (
      "base": #f2711c,
    ),
    "danger": (
      "base": #db2828,
    ),
    "error": (
      "base": #db2828,
    ),
    "info": (
      "base": #42b8dd,
    ),
  ),

  $button-padding-horizontal: (
    "default": 80px
  )
);

其他方式也是有，比如 $colors.primary.base 被应用于 $color-primary

可以覆盖 $color-primary:#000000;
你的找到对应的这些变量名，少量的可以这样做；
不过最好还是按照官方文档写的那样，覆盖率比较全面。

authors: GitOfZGT free-pan

repo: GitOfZGT/vite-plugin-theme-preprocessor


text:
Multiple classes

Are multiple classes supported? e.g.
/* input.css */
.class,
[type="text"],
[class*="lorem-1 lorem-2"],
[id^="myID"] {
    color: red;
}

/* Output example */
.class,
[type="text"],
[class*="test-lorem-1, test-lorem-2"],
[id^="test-myID"] {
    color: red;
}

@dominicjameskelly hi, not yet, but soon will be. Thanks for the feedback.

Excellent, thanks!

@dominicjameskelly Enjoy :)

Thanks so much! I'll give it a go :)

Trying to grab this from npm:
npm update postcss-attribute-selector-prefix --save-dev
But it's fetching postcss-attribute-selector-prefix@0.0.12 which doesn't seem to include the changes in GIT?

Ignore, got it pulled in fine now.

👍

Thanks again!

authors: GitScrum dominicjameskelly


text:
🛑 uzboys is down

In 9ac6a9a, uzboys (uzboys.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: uzboys is back up in 0c23a8d after 26 minutes.


text:
🛑 twoc is down

In 6d6f8bc, twoc (twoc.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: twoc is back up in 86c5ac4 after 1 hour, 39 minutes.


text:
🛑 rapishare is down

In 192ce29, rapishare (rapishare.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: rapishare is back up in 76b2428 after 40 minutes.


text:
🛑 lings is down

In 34919a7, lings (lings.com) was down:

HTTP code: 403
Response time: 401 ms

Resolved: lings is back up in 5d8354e.


text:
🛑 orkut is down

In 477bfd7, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in bbaaade.


text:
🛑 mclub is down

In 8b1ba31, mclub (mclub.com.ua) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mclub is back up in 3c6c975.


text:
🛑 orkut is down

In e6a275d, orkut (orkut.com.br) was down:

HTTP code: 403
Response time: 238 ms

Resolved: orkut is back up in ba2db28.


text:
🛑 orkut is down

In a3718c0, orkut (orkut.com.br) was down:

HTTP code: 403
Response time: 237 ms

Resolved: orkut is back up in f25e583.


text:
🛑 orkut is down

In fcdca05, orkut (orkut.com.br) was down:

HTTP code: 403
Response time: 235 ms

Resolved: orkut is back up in 45a13fa.


text:
🛑 orkut is down

In e900c0a, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 710f6b0.


text:
🛑 da100 is down

In 4f41ab6, da100 (da100.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: da100 is back up in fd6bd6d.


text:
🛑 orkut is down

In 94b5beb, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 4ca996b.


text:
🛑 ojolink is down

In a71eed3, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in 2c1ffac.


text:
🛑 ojolink is down

In b5dbc5f, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in cde8d70.


text:
🛑 hcr is down

In 5672477, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 650 ms

Resolved: hcr is back up in 18a413b.


text:
🛑 ojolink is down

In 214ba0a, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in f3e107a.


text:
🛑 ojolink is down

In 38c8e09, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in fa40ca7.


text:
🛑 mynewsize is down

In 47ea847, mynewsize (mynewsize.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mynewsize is back up in 4c8f734.


text:
🛑 hcr is down

In 45b99b2, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 1156 ms

Resolved: hcr is back up in 3b36169.


text:
🛑 letsgo is down

In 8c2ca38, letsgo (letsgo.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: letsgo is back up in 62edde9.


text:
🛑 orkut is down

In febd78d, orkut (orkut.com.br) was down:

HTTP code: 429
Response time: 876 ms

Resolved: orkut is back up in f3698f0.


text:
🛑 orkut is down

In 0d194cc, orkut (orkut.com.br) was down:

HTTP code: 429
Response time: 681 ms

Resolved: orkut is back up in fbe2140.


text:
🛑 ojolink is down

In 4de342c, ojolink (ojolink.net) was down:

HTTP code: 403
Response time: 424 ms

Resolved: Ojolink is back up in dd4b4cb.


text:
🛑 ojolink is down

In c0ecac1, ojolink (ojolink.net) was down:

HTTP code: 403
Response time: 504 ms

Resolved: Ojolink is back up in 3027460.


text:
🛑 ojolink is down

In 41d2cdf, ojolink (ojolink.net) was down:

HTTP code: 403
Response time: 515 ms

Resolved: Ojolink is back up in 1dab5c2.


text:
🛑 orkut is down

In 5d00ec5, orkut (orkut.com.br) was down:

HTTP code: 429
Response time: 851 ms

Resolved: orkut is back up in 54a4afd.


text:
🛑 ojolink is down

In 2bb19c1, ojolink (ojolink.net) was down:

HTTP code: 403
Response time: 442 ms

Resolved: Ojolink is back up in 4134899.


text:
🛑 orkut is down

In 5acf8c4, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in e59324c.


text:
🛑 orkut is down

In 232a1f9, orkut (orkut.com.br) was down:

HTTP code: 429
Response time: 991 ms

Resolved: orkut is back up in 5be3c38.


text:
🛑 mynewsize is down

In 8f8305c, mynewsize (mynewsize.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mynewsize is back up in d721a96.


text:
🛑 sohu is down

In e82e941, sohu (sohu.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sohu is back up in ebe0dfb.


text:
🛑 ojolink is down

In 77f47dd, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in fc4aa3b.


text:
🛑 ojolink is down

In 349ce3c, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in 12c3857.


text:
🛑 ojolink is down

In a51a38d, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in c7d8570.


text:
🛑 ojolink is down

In a4f4f69, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in e8531e7.


text:
🛑 omegawow is down

In 0e50c98, omegawow (omegawow.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: omegawow is back up in 12e4f4e.


text:
🛑 mynewsize is down

In ce58c53, mynewsize (mynewsize.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mynewsize is back up in 487d507.


text:
🛑 carlinha is down

In 8ab0ee1, carlinha (carlinha.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: carlinha is back up in 1c4d544 after 6 hours, 43 minutes.


text:
🛑 ojolink is down

In 4314e02, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in 968cdd6 after 10 minutes.


text:
🛑 uzboys is down

In 1a13ed5, uzboys (uzboys.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: uzboys is back up in 9cd51ea after 46 minutes.


text:
🛑 orkut is down

In 3cf57ce, orkut (orkut.co.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 083ec57 after 5 minutes.


text:
🛑 orkut is down

In 46e5cc1, orkut (orkut.co.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 1e8377c after 11 minutes.


text:
🛑 ojolink is down

In bc4519b, ojolink (ojolink.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ojolink is back up in 9cb4838 after 19 minutes.


text:
🛑 orkut is down

In 448c645, orkut (orkut.co.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 09f16bb after 10 minutes.


text:
🛑 orkut is down

In e09d96d, orkut (orkut.co.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 2048557 after 7 minutes.


text:
🛑 orkut is down

In 0900fa7, orkut (orkut.co.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in fbf7653 after 8 minutes.


text:
🛑 twoc is down

In ed908dd, twoc (twoc.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: twoc is back up in b43f9b2 after 1 hour, 17 minutes.


text:
Add new projectsUpdate query for improved pagination and memory

Related to https://github.com/Giveth/Roadmap/issues/43

@MoeNick New Query for frontend to implement:
export const fetchLatestProjectUpdates = `
  query (
    $projectId: Int,
    $take: Int,
    $skip: Int,
    $orderBy: OrderBy
  ) {
    projectUpdates(
      projectId: $projectId,
      take: $take,
      skip: $skip,
      orderBy: $orderBy
    ) {
      projectUpdates {
        id
        title
        projectId
        userId
        content
        isMain
        totalReactions
        reaction {
          id
          userId
          reaction
          projectUpdateId
        }
      }
      count
    }
  }
`;

I feel like depending on the design I might have to update this query... so I am unsure if this is enough. Should we add more filters? or is this enough? @WhyldWanderer @MoeNick
Right now this filters by createdAt. So the latest projectUpdate added  to giveth will show first. It's paginated.

do not merge until design is done.

@MoeNick New Query for frontend to implement:
query (
    $take: Int,
    $skip: Int
  ) {
    projectUpdates(
      take: $take,
      skip: $skip
    ) {
      projectUpdates {
        id
        title
        projectId
        userId
        content
        isMain
        totalReactions
        createdAt
        reaction {
          id
          userId
          reaction
          projectUpdateId
        }
        project {
          id
          slug
          totalReactions
        }
      }
      count
    }
  }

@MohammadPCh
This PR has been merged, you can use this query

repo: Giveth/impact-graph


text: Fix tail-call optimized

repo: Gizra/elm-radix-tree


text:
wip(rpcproxy tls): obtain ca

This is just focusing client-side atm

Refactor = done
Get CA = wip

update URL
Test(s)
Error handling

Make RemoteClient using CA cert

Then I'll update the server-side

Also need to update rpcsrv/src/proxy.rs connect() where the metadata vars that got removed in this change are used.

let's add the TODOs to the epic?

Issues created and added.
Issues now on the epci:

https://github.com/GlareDB/glaredb/issues/1828
https://github.com/GlareDB/glaredb/issues/1829

Additional issues:

https://github.com/GlareDB/glaredb/issues/1830
https://github.com/GlareDB/glaredb/issues/1831

repo: GlareDB/glaredb


text:
Not able to run rbeautify because of "Could not find 'ruby-beautify' (>= 0) "

Works in console with
ruby /Users/alexwait/.rvm/gems/ruby-1.9.3-p448/bin/rbeautify

Path is set in settings page of package.
Also tried restarting atom multiple times (after each step).

I'm getting this, too, but tried view->reload and it still gives the same error. Is there some other config required to get RVM's ruby to be the same one Atom is using?

@suranyami: I just released v0.25.0 (and v0.26.0) which includes support for Rubocop (see #226 and #275 ) and also auto-detects environment variables from Shell. This may help you with having Atom Beautify use RVM's Ruby, as it should perform just like your Shell does, now.

license: mit


text:
Could not get Shell environment for python

Description
When I try to beautify a .py script, I get an error.
Input Before Beautification
Any .py file
Expected Output
Expecting a beautified file as output.
Actual Output
I get an error.
Could not get Shell Environment. Exit code: 1, Signal: null

Steps to Reproduce

Add beautifier to atom
Run command Atom Beautify to a python file.
An error is returned.

Debug
Here is a link to the debug.md Gist: https://gist.github.com/mehdibaha/692c19ce132dc218af277dc3944a37fb
Checklist
I have:

[x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[x] Reloaded (or restarted) Atom to ensure it is not a caching issue
[x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
so I know this is not a duplicate issue
[x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
[x] Generated debugging information and added link for debug.md Gist to this issue

?

I have not been involved with the integration of autopep8 or yapf.  I can the error is generating from here: https://github.com/Glavin001/atom-beautify/search?utf8=✓&q=could+not+get+shell+environment
There are similar issues like this in the past: https://github.com/Glavin001/atom-beautify/search?q=could+not+get+shell+environment&type=Issues&utf8=✓
Is yapf installed on your system?

Yapf is installed on my system, in addition to autopep8...

Adding @Glavin001

I seem to have the same issue with Latex.
Here is my debug file
https://gist.github.com/juliaanvaneijndt/11ec5f1d00dc40a2d30ba3b794528bc9

What do you get when you run $(which yapf) from the command line?
I used conda to install yapf, and adding the following line to my Atom init script fixed it for me:
process.env.PATH = '/home/username/anaconda/bin:' + process.env.PATH

I get this : /usr/local/bin/yapf
Afraid this is not going to help :(

Closing as duplicate of https://github.com/Glavin001/atom-beautify/issues/1113
Please discuss of at https://github.com/Glavin001/atom-beautify/issues/1113

authors: Glavin001 juliaanvaneijndt mehdibaha ostrokach prettydiff


text:
Use local phpcs config file if available.

What does this implement/fix? Explain your changes.
PHP CodeSniffer and phpcbf have support for a settings file, for example phpcs.xml, so I think that should be used if available.
...
Does this close any currently open issues?
Not that I know of.
...
Any other comments?
I couldn't find any tests for the phpcbf beautifier so I did not add any for this.
...
Checklist
Check all those that are applicable and complete.

[x] Merged with latest master branch
[ ] Added examples for testing to examples/ directory
[ ] Travis CI passes (Mac support)
[ ] AppVeyor passes (Windows support)

Thank you for contributing!

Published to v0.29.19


text:
Update Documentation to reflect new services

The documentation is not current with the functioning services. Need to update the documentation to described the new services.

Pi is the way to go whenever you want to share data quicker

repo: GlobalNamesArchitecture/BioGUID


text:
4.7.2MythicMobs无法读取实体属性

4.7.2MythicMobs无法读取实体属性
已确认配置无误 与wiki一模一样 在4.11版本下的MythicMobs可以读取属性
4.7.2不可以

只能升级了，Bro

repo: Glom-c/AttributeSystem


text:
validate mod structure when zip peeking

existence of mandatory files and also setting flags for optional ones (overrides)
todo from #416

We can rewrite load_manifest() to access the zip data.
https://github.com/GodotModding/godot-mod-loader/blob/3a889664c8557fedb3315076d205a3bf8aab6e8b/addons/mod_loader/resources/mod_data.gd#L92-L105

repo: GodotModding/godot-mod-loader


text:
Diagram picture sql interpretation

Created a new repo for this project.
Created a file named schema_based_on_diagram.sql where you implement the database from the above diagram.
Join tables from many-to-many relationships might not appear in the diagram, but we added them.
We added the FK indexes.

Thank you

Hi @Goldinium,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project, that does not have a professional README and because this is a pair programming activity make sure you all participated
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

authors: DeliceLydia Goldinium


text:
when using graphics arc, how to stop drawing continuously

I am not fully sure if I am looking at a feature or a bug, but what I am trying todo is drawing 2 arcs (without a line in between them)

so that straight line in between is NOT wanted ;)
var testGraphic = new PIXI.Graphics();
testGraphic.lineStyle(3, 0);
testGraphic.arc(100,100,50,(180-130)/57, (180+130)/57, true);
testGraphic.arc(100,100,50,(130)/57, (-130)/57, false);
stage.addChild(testGraphic);

Is there some function call I could do after the first arc fnCall ? with straight lines and clear coords one can off course use the moveTo function, but in this context I cannot.
here's a fiddle showing an example:
http://jsfiddle.net/332gdcna/11/
ps: this is on pixi v3 rc4

That looks like a bug to me!

I rebuild pixi.js (I was looking at a slightly older version from a week ago) https://github.com/photonstorm/phaser/commit/93dc67be71e1d6b5401572428dc4411f99e63d98
the problem is fixed now I think.

Ok, cool thanks for the update. Glad it is working for you now.

authors: NikkiKoole englercj


text:
add: hcaptcha

Description
Switch recaptcha with hcaptcha
A lot of bots are able to pass re-captcha, lets see if hcaptcha is any better

@vldkhh please verify hcaptcha this works on different web platforms, desktop, web android, web ios

@sirpy I see that it is still using recaptcha instead captcha
is it deployed on dev?

authors: sirpy vldkhh

repo: GoodDollar/GoodDAPP


text:
Maximum Size of The Push Manifest

What is the max size of the push manifest? It seems that whenever push manifest larger than certain size, GAE will ignore the link header.

See https://github.com/GoogleChrome/http2push-gae/blob/master/EXPLAINER.md#http2-push-on-app-engine

authors: HW-Siew ebidel


text:
Cannot get values from table

Steps to reproduce
Tell us about your environment:
Hi all,
I want to extract table information (such as number of replies) from this forum
(for example, the number of 3rd posts in the forum on the first page)
https://forums.ni.com/t5/LabVIEW/bd-p/170
This is my code
const puppeteer = require('puppeteer');
const POST_REPLIES = '#grid_2 > tbody > tr:nth-child(3) > td:nth-child(3) > div > span';
async function run() {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('https://forums.ni.com/t5/LabVIEW/bd-p/170');
let Replies = await page.evaluate((sel) => {
document.querySelector(sel).innerText;
}, POST_REPLIES);
console.log('Replies:', Replies);
browser.close();
}
run();
Everytime I run this code, it tells me cannot read the property of undefined. It looks like a simple issue but i got stuck here.
Any help is appreciated.

You have a small typo in the selector: tbody is not an immediate child of '#grid_2 but a descendant.
You need not {} in arrow function if you just need to return an expression, otherwise undefined is returned.

Try this (comments // ! mark changed lines):
const puppeteer = require('puppeteer');
const POST_REPLIES = '#grid_2 tbody > tr:nth-child(3) > td:nth-child(3) > div > span'; // !
async function run() {
  const browser = await puppeteer.launch({headless: false});
  const page = await browser.newPage();
  await page.goto('https://forums.ni.com/t5/LabVIEW/bd-p/170');
  let Replies = await page.evaluate((sel) =>                                           // !
    document.querySelector(sel).innerText
  , POST_REPLIES);                                                                     // !
  console.log('Replies:', Replies);
  browser.close();
}
run();

You have a small typo in the selector: tbody is not an immediate child of '#grid_2 but a descendant.
You need not {} in arrow function if you just need to return an expression, otherwise undefined is returned.

Try this (comments // ! mark changed lines):
const puppeteer = require('puppeteer');
const POST_REPLIES = '#grid_2 tbody > tr:nth-child(3) > td:nth-child(3) > div > span'; // !
async function run() {
  const browser = await puppeteer.launch({headless: false});
  const page = await browser.newPage();
  await page.goto('https://forums.ni.com/t5/LabVIEW/bd-p/170');
  let Replies = await page.evaluate((sel) =>                                           // !
    document.querySelector(sel).innerText
  , POST_REPLIES);                                                                     // !
  console.log('Replies:', Replies);
  browser.close();
}
run();

It works! Thanks at first!
Could you please explain a little more about the usage  about {}?

authors: ilfei vsemozhetbyt

repo: GoogleChrome/puppeteer


text:
Adopt plznavigate in puppeteer

Recentrly, plznavigate was enabled on Chromium Trunk.
plznavigate changed protocol behavior in a few subtle ways that we relied upon in pptr
plznavigate causes a protocol bug that blocks our adoption

crbug.com/767683

For the reference: a wip of pptr migration over to plznvigate: aslushnikov/puppeteer:plznavigate
The plan is to roll with --disable-browser-side-navigation flag passed over to launcher and
remove it as soon as the upstream is fixed.

Two blocking upstream bugs:

crbug.com/759388
crbug.com/767683


text:
feat(browser): add browser.disconnected event

This patch add browser.disconnected event :

[x] when browser.close() called.
[x] when browser.disconnect() called.
fix #952

this just take one point on existing issues.
When the other one still open i will take care of it when i got free time.

@aslushnikov dude, i need help on browser.closed, when it crashes. I have no idea how to make the browser crashes and how to make spec about it. I already trying a couple of hour but no result.

@brutalcrozt the page chrome://crash/ will crash the browser. you can use that for testing!

@ebidel Thanks Eric, i notice that now. But surely i still don't know how to make browser._onCrash. Maybe that because my lack of understanding the relation browser and page in the codebase.

Since now we get Browser.pages and Browser.targets ,
Browser.closed now should only fired when get closed via Browser.close.
ping @aslushnikov  for review, fix #952

@aslushnikov  IDK why this PR fail on node 7 when running yarn run lint.

ping @aslushnikov  for review

@aslushnikov This one is ready captain. :smile:

Thanks!

authors: aslushnikov brutalcrozt ebidel


text:
Docs should mention "when to load"

To some it might be obvious, but the readme does not mention when to load the library. It mentions install, it mentions how to use (the methods of the lib), integrations in other stuff, but not "when to load".
Only in this Codelab it is mentioned

Copy this module script, and paste it just before the closing </body> tag.

Not everyone reads this Codelab, and I also don't think everyone using the web-vitals knows what to do best.
Questions like:

"Can/Should I lazy load the lib?"
"Do I need to load it as early as possible to not miss any values?"
"Do I register the callbacks on DOMContentLoaded/onLoad/using requestIdleCallback?"

are open questions I can think of in the environment of performance, because there is no guideline.

Have a look at the wording in #305 and let me know if that is clear enough.

To me yes. Thank you!

Closed with #305

authors: kurtextrem tunetheweb

repo: GoogleChrome/web-vitals


text:
Background sync RequestQueue doesn't re-populate

The initQueue method calls .concat(idbQueue) here when it should be calling .push(...idbQueue), and as a result the queue is not initialized with existing data in the store.
In addition to fixing this, we should probably also add a test covering this case. @prateekbh are you able to do this? If not I can take a look.

will check and fix this ASAP

I am unable to reproduce this, need more info on this.
idbQueue is supposed to be an array of requests, hence the .concat call

The expression this._queue.concat(idbQueue) will return the new array, but it won't modify the value of this._queue, which means this._queue never gets populated with the values from IndexedDB.
If you replace that line with this._queue.push(...idbQueue) it will work as expected. But that's the easy part. The hard part is writing a test for this :)

So stupid of me! Yeah i'll change it to the spread operator

authors: philipwalton prateekbh

repo: GoogleChrome/workbox


text:
knox.sh script compatibility fix across different image versions

The knox.sh script has been updated to ensure compatibility across various Dataproc image versions. Here's a summary of the changes:
2.0.X-debian10:
Addressed an issue where the script failed for image versions less than or equal to 2.0.102-debian10 due to original keys had expired at https://keyserver.ubuntu.com.
Note: Cluster creation with these versions requires the cloud-platform scope. So Readme need update
2.1.X-debian11: The script functioned correctly with all 2.1.X-debian11 image versions.
2.2.x-debian12: Script was not working for 2.2 images . Resolved a problem caused by the hostname returning an FQDN in 2.2.x-debian12 images.
Testing:
Test was conducted with various cluster naming conventions (e.g., proxy-cluster, proxy-cluster-x, proxy-cluster-x-v) and across 2.0 , 2.1 , 2.2 Debian supported image versions.

Seems my personal account missing CLA agreement


text:
How to Configure the Project?

I have cloned it locally and trying to open in Android Studio. I am getting following Errors:
Error:(16, 0) Gradle DSL method not found: 'runProguard()'
Possible causes:

The project 'Abelana-Android-App' may be using a version of Gradle that does not contain the method.
Gradle settings

The build file may be missing a Gradle plugin.
Apply Gradle plugin

I have tried by changing the Gradle Version to latest one classpath 'com.android.tools.build:gradle:1.5.0' too but no luck
@lesv @zafir can you please check?

We haven't worked with this in a while.  https://github.com/GoogleCloudPlatform/abelana is the current one. I should be fixing things this week w/ it.

Thanks @lesv for sharing the repository link.

authors: Shajeel-Afzal lesv

repo: GoogleCloudPlatform/Abelana-Android


text:
Change boolean to Boolean

Allowing null option to delegate to the underlying tool to
respect its defaults (false OR true)
Explicitly pass true and false values to boolean flags

@meltsufin @etanshaul

lgtm

@loosebazooka As you can see from my code comments, I'm now thinking we shouldn't really be so aggressive with switching everything to Boolean. Only options that map to --flag, --no-flag, and blank [some default] should be of type Boolean. What do you think?

should we just expose no-promote and promote? @meltsufin or we do special work on the promote parsing?

looks like every boolean gcloud flag has a --no equivalent so i think what I'm going to do is:

use Boolean everywhere for consistency
create a (ex:force) --force and --no-force for each Boolean flag

LGTM :ship:
Good stuff with the Args utility, and it get us closer to the auto-generation of args with reflection.

authors: etanshaul loosebazooka meltsufin


text:
Reduce log level for VmApiProxyDelegate

We should change VmApiProxyDelegate logging (e.g. for makeApiCall) to DEBUG (Using LogLevel.FINE).  Currently every request would have at least 4 separate log entries for, I guess, the session management (2 for datastore and 2 for memcache).
Also, I think we should start adding `'traceId' to the structured log metadata (which hopefully will allow combining related log lines).

See comment on #240 for traceId

authors: aozarov gregw


text:
Batch timer is now Info level instead of debug

This will allow batches to be part of the logging that's enabled via
SLF4J.

LGTM


text:
Add option for NFSv4 to Filestore creation

Hello, we had some requests from users for NFSv4 support to be added.
Currently it is possible to manually create the Filestore, then attach the cluster to it using pre-existing-network-storage, but a better fix would be to include the 'Protocol' field as per:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/filestore_instance#protocol-1

/gcbrun

repo: GoogleCloudPlatform/cluster-toolkit


text:
Error while deploying the cortex demand sensing

Hi,
I am following the user guide from demand sensing and in the first step while running the docker image as below
gcloud auth configure-docker gcr.io && \ docker run -it --rm \ marketplace.gcr.io/cortex-public/cortex-demand-sensing:latest
It is giving the following error from the docker image itself
Collecting wcwidth==0.2.5
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting googleapis-common-protos<2.0dev,>=1.56.2
ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    googleapis-common-protos<2.0dev,>=1.56.2 from https://files.pythonhosted.org/packages/f0/2a/25d8c1ceedc5af97de37434c9c5e38ce28aaa45960aa2bd7aa215fc420c0/googleapis_common_protos-1.57.0-py2.py3-none-any.whl#sha256=a9f4a1d7f6d9809657b7f1316a1aa527f6664891531bcfcc13b6696e685f443c (from google-api-core[grpc]==2.8.2->-r requirements.txt (line 19))

🛑 Python Virtual Environment initialization failed.
Check Logs from the output above.

Please advice
Thanks

It looks like the image generated in Aug 17 works fine this is the name of the image gcr.io/cloud-marketplace/cortex-public/cortex-demand-sensing@sha256:2712cfefb8435796f40d67d5e1be4e629bbbe488fcdd33c21ea9ab9b9b9b368d

@ilterpehlivan Thank you for reporting the issue!
It has been fixed now. Please try once again with gcloud auth configure-docker gcr.io && \ docker run -it --rm \ marketplace.gcr.io/cortex-public/cortex-demand-sensing:latest

@ilterpehlivan I can see you reacted with a thumbs up to the fix, so I assume the error has been resolved and will close this issue now. Feel free to re-open it in case the deployment is still failing.
If you have any further questions, please continue to reach out to us and we will be happy to assist :slightly_smiling_face:

authors: benschuler ilterpehlivan vladkol


text:
gcloud components update causes timeout during dataproc create

Hello!
Due to the default gcloud sdk version included in Dataproc cluster having a bug in python2 path resolution (see: https://code.google.com/p/google-cloud-sdk/issues/detail?id=355), I am targeting the following shell script as an initialization action to update gcloud components (which resolves the python2 pathing issue). It looks like this:
#!/usr/bin/env bash

# Update Google Cloud SDK
if [[ "${ROLE}" == 'Master' ]]; then
    gcloud components install alpha beta -q
fi
gcloud components update -q
exec -l $SHELL

Unfortunately, the Dataproc cluster errors on creation (logs attached below)
Waiting on operation [operations/projects/bombora-dev/operations/81b2e287-bcba-4d64-be7c-b253d19de47e].
Waiting for cluster creation operation...done.
ERROR: (gcloud.beta.dataproc.clusters.create) Operation [operations/projects/bombora-dev/operations/81b2e287-bcba-4d64-be7c-b253d19de47e] failed: Multiple Errors:
 - Google Cloud Dataproc Agent reports failure. If logs are available, they can be found in 'gs://dataproc-e66c6e3d-80da-4211-b66c-0109bbe4567a-us/google-cloud-dataproc-metainfo/04a941d2-8eff-4ab1-b2f0-3c6988c1fb85/spark-cluster-m'.
 - Google Cloud Dataproc Agent reports failure. If logs are available, they can be found in 'gs://dataproc-e66c6e3d-80da-4211-b66c-0109bbe4567a-us/google-cloud-dataproc-metainfo/04a941d2-8eff-4ab1-b2f0-3c6988c1fb85/spark-cluster-w-1'..

google-cloud-dataproc-metainfo-04a941d2-8eff-4ab1-b2f0-3c6988c1fb85-spark-cluster-w-1-dataproc-startup-script_output.txt
google-cloud-dataproc-metainfo-04a941d2-8eff-4ab1-b2f0-3c6988c1fb85-spark-cluster-m-dataproc-startup-script_output.txt
Any help greatly appreciated—thanks much. :)

I believe it's actually the exec -l $SHELL, that is your issue. Initialization actions need to complete and exit 0, whereas that will just hang forever. If you remove that last line, it should work.

@pmkc, thanks for the tip! I will try it out soon, and let you know! In the meantime, do you have any timeline on when you will be updating the default version of gcloud sdk provided with dataproc? Thanks again. :)

@pmkc, thanks much—that resolved the issue. Closing.

authors: nehalecky pmkc


text:
chore: removing unsupported samples

go/cloud-ai-2021-snippet-cleanup
Devsite:
cl/363755327 [submitted]
cl/363758676

Info on non-vision failures:

Storage failure: #1272
Spanner, transient failure. We are retrying but in this case it wasn't enough. This should fall within normal expeced behaviour.
Asset failure: #1278

There's one tag reported by snippet-bot as being deleted but used in docs.
And also Vision tests seem to be failing, most of them.

one region tag should be fixed by now.
cl/363982019

Region tags look good.
Vision tests consistently failing though. See here for instance.

Region tags look good.
Vision tests consistently failing though. See here for instance.

Looks like I did not delete tests related to removed samples.

Still lots of failures for Vision tests. Some files seem to be missing.

@amanda-tarafa Should be good now.

F# failure is related to this PR, see #1289. I'll fix it.

F# failure is related to this PR, see #1289. I'll fix it.

how do I see test failures related to vision?

I already fixed #1289 so no worries about it.
Vision runs in Kokoro CI Windows 3 and Kokoro CI Linux 3. You can click on Details link of those machines (on the widget at the end of the PR that shows checks passing and failing). And there you can click on the Vision related link.

@amanda-tarafa PTAL something failed outside of my changes

Failures are unrelated and being tracked:

SQL Server: #1311

authors: amanda-tarafa munkhuushmgl

repo: GoogleCloudPlatform/dotnet-docs-samples


text:
When nothing is available to scan return empty set

This resolves a problem where the Enabled API and IAM Rules scanners have no results.  Previously they issued a system exit, now they return empty results.

I signed it!

I signed it again!

I signed it!

I will resubmit with the proper author

repo: GoogleCloudPlatform/forseti-security


text:
Use custom triplet for buildpack to disable debug+release builds

This should reduce the build time by 1/2, and reduce the size by more than that as the debug symbols are bulky.

This should help with #172


text:
Specify error responses for CloudEvent signatures

The CloudEvent signatures should allow for an error return. This can signal the sender that there has been a delivery failure, at which point the sender can determine whether to retry event delivery.
For example, here are some relevant areas of the Knative spec: http support, errors
This implies that, for example, the golang CloudEvent Receiver signature should support the form:
func myFunction(ctx context.Context, event cloudevents.Event) error
and not just:
func myFunction(ctx context.Context, event cloudevents.Event)
(Note that it could be possible that a Functions Framework SDK support both forms, but minimally the requirement would be to allow the function developer to return an error in a language-idiomatic way)

There's nothing in the FF cloudevents signature preventing a return value/error return.

The developer's function must either explicitly or implicitly signal that it has completed performing useful work. The function may explicitly signal this condition by explicitly returning. The function may implicitly signal this condition by simply evaluating until it reaches the end of the function's code block.

from https://github.com/GoogleCloudPlatform/functions-framework#cloudevents-functions-signature-type-cloudevent
The sample interface change seems like a request for the Go Functions Framework. Is that right?

Yep, minimally its a request for the Go Framework, and also the starting point of the discussion of whether the FF contract should more explicitly indicate that each language SDK should allow the the function developer to "return an error in a language-idiomatic matter"

I don't see how the signature disallows this. Can you make a PR with more concrete details?

We do allow errors in responses, stated here:
https://github.com/GoogleCloudPlatform/functions-framework#http-status-codes
Closing due to inactivity.

We do allow errors in responses, stated here:
https://github.com/GoogleCloudPlatform/functions-framework#http-status-codes
Closing due to inactivity.

authors: cooperneil grant

repo: GoogleCloudPlatform/functions-framework


text:
0.3-beta

Release of new minor version.

Hey @tomerlf1, could you pls review and merge this PR ? thx

repo: GoogleCloudPlatform/gce-rescue


text:
storage.NewClient requires Scope to be usable

This doesn't seem to be mentioned in the docs and is not shown in the examples, but if a scope is not included somehow in the storage.NewClient call, it fails API error 9 (app_identity_service: UNKNOWN_SCOPE).
Running the AppEngine example code produces the same results.
The documented example shows the scope being passed in via cloud.WithTokenSource which won't apply to AppEngine usage.  I was able to sort this out eventually by guessing there were other parameters available to NewClient that I could find in the google.golang.org/cloud package that would sort things out, which led me to the following:  storage.NewClient(c, cloud.WithScopes(storage.ScopeReadWrite))
I suppose at some point that was implied, but the error was only barely helpful and the docs and examples were misleading.  It'd be good if the following were done:

cloud.WithScopes mentioned in the API docs (e.g. what the included scopes are for)
AppEngine example in the docs showing cloud.WithScopes
Update executable example to work (perhaps run as integration test)
Try to stuff something into the log message indicating a scope wasn't specified.
Perhaps default to a read-write scope if the user doesn't specify one -- this seems like the least surprising thing for someone making a client and attempting to write with it.

/cc @broady @okdave @rakyll

Thanks!
On Fri, Dec 4, 2015 at 12:38 PM Chris Broadfoot notifications@github.com
wrote:

Closed #192
https://github.com/GoogleCloudPlatform/gcloud-golang/issues/192 via
611d740
https://github.com/GoogleCloudPlatform/gcloud-golang/commit/611d740931060fd0d58921a3946c9a6133220814
.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-golang/issues/192#event-483063497
.

Oddly enough, even without the default scope being set, the integration test ran successfully. Perhaps there's something else going on with the service accounts?

It definitely didn't work for me.  I'm not sure what the difference is.
It's possible I was picking up some older appengine code.  I had just
downloaded the latest sdk, and statting around, I don't see anything older
than a couple of days ago in $GOPATH/src/google.golang.org
On Fri, Dec 4, 2015 at 12:47 PM Chris Broadfoot notifications@github.com
wrote:

Oddly enough, even without the default scope being set, the integration
test ran successfully. Perhaps there's something else going on with the
service accounts?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-golang/issues/192#issuecomment-162077781
.

oh, I meant outside of App Engine, everything works, but I would not expect it to.

Oh, ha.  Yeah, I've only used inside so far.  I've got more use cases now
that I've started using Cloud Storage, though.
For this particular thing, we're collecting breakpad crashes in the wild.
I'm probably going to end up storing symbol tables out of the builders
(possibly directly to Cloud Storage) as well as needing to run analysis.
On Fri, Dec 4, 2015 at 3:11 PM Chris Broadfoot notifications@github.com
wrote:

oh, I meant outside of App Engine, everything works, but I would not
expect it to.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-golang/issues/192#issuecomment-162106965
.

authors: bradfitz broady dustin

repo: GoogleCloudPlatform/gcloud-golang


text:
[TASK] Add possibility to use CLOUDSDK_PYTHON var on linux

Until now, the environment variable for an alternative python interpreter ist only used on windows boxes.
This patch applies a similar condition to check for it even when no windows is present.

Any updates?

Checking: Did you sign the CLA agreement? https://cla.developers.google.com/about/google-individual

I did so now. Thx for taking care.

authors: cedricziel ludoch

repo: GoogleCloudPlatform/gcloud-maven-plugin


text:
Require pathname library in gcloud

Snippet:
require 'gcloud'
gcloud = Gcloud.new project_id, key_file

bigquery = gcloud.bigquery

dataset = bigquery.dataset 'logging'
table_name = 'logs_dev'
table = dataset.table table_name

load_job = table.load 'site_access.csv'

Exception
$ time ./bin/bq_uploader
GEM_HOME/gcloud-0.3.0/lib/gcloud/bigquery/connection.rb:583:in
`load_media': undefined method `Pathname' for #<Gcloud::Bigquery::Connection:0x9d94de8 (NoMethodError)
	from /home/ana/.rvm/gems/ruby-2.2.2@bq_uploader/gems/gcloud-0.3.0/lib/gcloud/bigquery/connection.rb:305:in `load_resumable'
	from /home/ana/.rvm/gems/ruby-2.2.2@bq_uploader/gems/gcloud-0.3.0/lib/gcloud/bigquery/table.rb:758:in `load_resumable'
	from /home/ana/.rvm/gems/ruby-2.2.2@bq_uploader/gems/gcloud-0.3.0/lib/gcloud/bigquery/table.rb:750:in `load_local'
	from /home/ana/.rvm/gems/ruby-2.2.2@bq_uploader/gems/gcloud-0.3.0/lib/gcloud/bigquery/table.rb:613:in `load'
	from /home/lz/projects/cc/bq_uploader/lib/cc/bq_uploader.rb:40:in `initialize'
	from ./bin/bq_uploader:10:in `new'
	from ./bin/bq_uploader:10:in `<main>'

If I add require 'pathname' before requiring gcloud it works.

Thank you for opening this issue.

authors: blowmage vitaliel

repo: GoogleCloudPlatform/gcloud-ruby


text:
Changes for feedback from the Pub/Sub team

Make changes requested by the Pub/Sub team during their review. #58

[x] Ensure Message#attributes returns a Hash (and not a Google API Client object)
[x] Topic#pull should return immediately by default
[x] Add Subscription#wait_for_messages alias for pull immediate: false
[x] Add auto acknowledgement when pulling messages (Subscription#pull autoack: true)
[x] Add Subscription#listen code
[x] Document listen feature in main pub/sub docs
[x] Add docs for subscribing to topic in a different project
[x] Add project syntax (pubsub.topic "name", project: "project-id")
[x] Add Topic#policy and Topic#policy= code/docs
[x] Add Subscription#policy and Subscription#policy= code/docs

/cc @tmatsuo @remi @jgeewax This includes the auto acknowledgement feature when pulling messages, as well as the listen feature. Thoughts?

@tmatsuo and @remi, thoughts?

@tmatsuo/@remi ping

@tmatsuo / @remi ping

LGTM for docs

@remi Thoughts? We'd like to get this released soon. :)

We will consider this is good to go and accept it so we can cut a new release.

authors: blowmage tmatsuo


text:
Uncaught exception from servlet java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.

Uncaught exception from servlet
java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/http/HttpRequestInitializer;Ljava/lang/String;Ljava/lang/String;Lcom/google/api/client/json/JsonObjectParser;Lcom/google/api/client/googleapis/services/GoogleClientRequestInitializer;Ljava/lang/String;Z)V
at com.google.api.services.drive.Drive.(Drive.java:135)
at com.google.api.services.drive.Drive$Builder.build(Drive.java:8036)
at com.valeo.redalerts.helper.ReportsHelper.fetchSpreadsheet(ReportsHelper.java:77)
at com.valeo.redalerts.web.controller.HomeController.exportreports(HomeController.java:1909)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
at com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at com.google.apphosting.runtime.jetty9.ParseBlobUploadHandler.handle(ParseBlobUploadHandler.java:119)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1182)
at com.google.apphosting.runtime.jetty9.AppEngineWebAppContext.doHandle(AppEngineWebAppContext.java:171)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:296)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:539)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
at com.google.apphosting.runtime.jetty9.RpcConnection.handle(RpcConnection.java:202)
at com.google.apphosting.runtime.jetty9.RpcConnector.serviceRequest(RpcConnector.java:81)
at com.google.apphosting.runtime.jetty9.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchServletRequest(JavaRuntime.java:699)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchRequest(JavaRuntime.java:661)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:631)
at com.google.apphosting.runtime.JavaRuntime$NullSandboxRequestRunnable.run(JavaRuntime.java:825)
at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:273)
at java.lang.Thread.run(Thread.java:745)

<modelVersion>4.0.0</modelVersion>
<groupId>ISRA</groupId>
<artifactId>ISRA-redalert-dev</artifactId>
<version>0.0.2</version>
<packaging>war</packaging>

<properties>
	<appengine.maven.plugin.version>1.3.2</appengine.maven.plugin.version>
	<appengine.api.sdk.version>1.9.64</appengine.api.sdk.version>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
	<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
</properties>

<prerequisites>
	<maven>3.3.9</maven>
</prerequisites>

<dependencies>

	<!-- https://mvnrepository.com/artifact/com.google.http-client/google-http-client-jackson2 -->
	<dependency>
		<groupId>com.google.http-client</groupId>
		<artifactId>google-http-client-jackson2</artifactId>
		<version>1.27.0</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.google.api-client/google-api-client -->
	<dependency>
		<groupId>com.google.api-client</groupId>
		<artifactId>google-api-client</artifactId>
		<version>1.27.0</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.google.http-client/google-http-client -->
	<dependency>
		<groupId>com.google.http-client</groupId>
		<artifactId>google-http-client</artifactId>
		<version>1.27.0</version>
	</dependency>

	<dependency>
		<groupId>javax</groupId>
		<artifactId>javaee-web-api</artifactId>
		<version>7.0</version> <!-- Put here the version of your Java EE app, in my case 7.0 -->
		<scope>provided</scope>
	</dependency>

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-context</artifactId>
		<version>4.2.0.RELEASE</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-beans</artifactId>
		<version>4.2.0.RELEASE</version>
	</dependency>

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-core</artifactId>
		<version>4.2.0.RELEASE</version>
	</dependency>

	<!-- Below dependency is used for spring mvc framework. -->

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-web</artifactId>
		<version>4.2.0.RELEASE</version>
	</dependency>

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-webmvc</artifactId>
		<version>4.2.0.RELEASE</version>
	</dependency>
	<!-- Below dependency is used for servlet and jsp. -->
	<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
	<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>javax.servlet-api</artifactId>
		<version>3.0.1</version>
		<scope>provided</scope>
	</dependency>

	<dependency>
		<groupId>javax.servlet.jsp</groupId>
		<artifactId>javax.servlet.jsp-api</artifactId>
		<version>2.3.1</version>
		<scope>provided</scope>
	</dependency>

	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>jstl</artifactId>
		<version>1.2</version>
	</dependency>

	<dependency>
		<groupId>taglibs</groupId>
		<artifactId>standard</artifactId>
		<version>1.1.2</version>
	</dependency>

	<!-- <dependency> -->
	<!-- <groupId>com.google.cloud</groupId> -->
	<!-- <artifactId>google-cloud-datastore</artifactId> -->
	<!-- <version>1.40.0</version> -->
	<!-- </dependency> -->

	<!-- <dependency> -->
	<!-- <groupId>com.google.apis</groupId> -->
	<!-- <artifactId>google-api-services-cloudresourcemanager</artifactId> -->
	<!-- <version>v1-rev505-1.25.0</version> -->
	<!-- </dependency> -->

	<!-- https://mvnrepository.com/artifact/com.google.appengine/appengine-testing -->
	<!-- <dependency> -->
	<!-- <groupId>com.google.appengine</groupId> -->
	<!-- <artifactId>appengine-testing</artifactId> -->
	<!-- <version>1.9.24</version> -->
	<!-- <scope>test</scope> -->
	<!-- </dependency> -->

	<!-- https://mvnrepository.com/artifact/com.google.appengine/appengine-api-1.0-sdk -->
	<!-- <dependency> -->
	<!-- <groupId>com.google.appengine</groupId> -->
	<!-- <artifactId>appengine-api-1.0-sdk</artifactId> -->
	<!-- <version>1.3.1</version> -->
	<!-- </dependency> -->

	<dependency>
		<groupId>com.google.appengine</groupId>
		<artifactId>appengine-api-1.0-sdk</artifactId>
		<version>1.9.65</version>
	</dependency>
	<!-- <dependency> <groupId>com.google.endpoints</groupId> <artifactId>endpoints-framework</artifactId>
		<version>2.1.2</version> </dependency> -->
	<!-- <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-translate</artifactId>
		<version>1.44.0</version> </dependency> -->
	<dependency>
		<groupId>com.google.cloud</groupId>
		<artifactId>google-cloud-datastore</artifactId>
		<version>1.50.0</version>
	</dependency>
	<dependency>
		<groupId>com.google.cloud</groupId>
		<artifactId>google-cloud-storage</artifactId>
		<version>1.44.0</version>
	</dependency>
	<dependency>
		<groupId>com.google.cloud</groupId>
		<artifactId>google-cloud-os-login</artifactId>
		<version>0.62.0-alpha</version>
	</dependency>
	<!-- <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-firestore</artifactId>
		<version>0.62.0-beta</version> </dependency> -->

	<dependency>
		<groupId>com.google.code.gson</groupId>
		<artifactId>gson</artifactId>
		<version>2.6.2</version>
	</dependency>

	<dependency>
		<groupId>org.datanucleus</groupId>
		<artifactId>datanucleus-core</artifactId>
		<version>3.1.1</version>
		<scope>runtime</scope>
	</dependency>

	<dependency>
		<groupId>org.datanucleus</groupId>
		<artifactId>datanucleus-api-jdo</artifactId>
		<version>3.1.2</version>
	</dependency>
	<dependency>
		<groupId>com.google.appengine.orm</groupId>
		<artifactId>datanucleus-appengine</artifactId>
		<version>2.1.2</version>
	</dependency>
	<dependency>
		<groupId>org.datanucleus</groupId>
		<artifactId>datanucleus-enhancer</artifactId>
		<version>3.1.1</version>
	</dependency>
	<!-- Dependencies for drive rest api testing -->
	<!-- <dependency> <groupId>com.google.api-client</groupId> <artifactId>google-api-client</artifactId>
		<version>1.23.0</version> </dependency> -->

	<dependency>
		<groupId>com.google.oauth-client</groupId>
		<artifactId>google-oauth-client-jetty</artifactId>
		<version>1.23.0</version>
	</dependency>
	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-drive</artifactId>
		<version>v3-rev130-1.25.0</version>
	</dependency>

	<!-- // for sheets -->

	<!-- https://mvnrepository.com/artifact/com.google.apis/google-api-services-sheets -->
	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-sheets</artifactId>
		<version>v4-rev516-1.23.0</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.json/json -->
	<dependency>
		<groupId>org.json</groupId>
		<artifactId>json</artifactId>
		<version>20140107</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/com.google.gdata/core -->
	<dependency>
		<groupId>com.google.gdata</groupId>
		<artifactId>core</artifactId>
		<version>1.47.1</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.google.apis/google-api-services-drive -->
	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-drive</artifactId>
		<version>v2-rev65-1.13.2-beta</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.fasterxml/jackson-xml-databind -->
	<dependency>
		<groupId>com.fasterxml</groupId>
		<artifactId>jackson-xml-databind</artifactId>
		<version>0.6.2</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/net.sf.jsr107cache/jsr107cache -->
	<dependency>
		<groupId>net.sf.jsr107cache</groupId>
		<artifactId>jsr107cache</artifactId>
		<version>1.1</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
	<dependency>
		<groupId>org.apache.velocity</groupId>
		<artifactId>velocity</artifactId>
		<version>1.7</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.google.api-client/google-api-client -->
	<dependency>
		<groupId>com.google.api-client</groupId>
		<artifactId>google-api-client</artifactId>
		<version>1.23.0</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/com.cedarsoftware/java-util -->
	<!-- <dependency> <groupId>com.cedarsoftware</groupId> <artifactId>java-util</artifactId>
		<version>1.8.0</version> </dependency> -->
	<!-- https://mvnrepository.com/artifact/javax.jdo/jdo-api -->
	<!-- <dependency> <groupId>javax.jdo</groupId> <artifactId>jdo-api</artifactId>
		<version>3.0.1</version> </dependency> -->
	<!-- https://mvnrepository.com/artifact/com.google.api-client/google-api-client -->
	<dependency>
		<groupId>com.google.api-client</groupId>
		<artifactId>google-api-client</artifactId>
		<version>1.26.0</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.google.endpoints/endpoints-framework -->
	<!-- <dependency> <groupId>com.google.endpoints</groupId> <artifactId>endpoints-framework</artifactId>
		<version>2.2.0</version> </dependency> -->
	<!-- https://mvnrepository.com/artifact/com.google.api-client/google-api-client -->
	<!-- <dependency> <groupId>com.google.api-client</groupId> <artifactId>google-api-client</artifactId>
		<version>1.23.0</version> </dependency> -->

	<!-- https://mvnrepository.com/artifact/com.google.oauth-client/google-oauth-client-jetty -->
	<dependency>
		<groupId>com.google.oauth-client</groupId>
		<artifactId>google-oauth-client-jetty</artifactId>
		<version>1.23.0</version>
	</dependency>

	<dependency>
		<groupId>com.vs.gae</groupId>
		<artifactId>baselibrary</artifactId>
		<version>3.0</version>
	</dependency>
	<dependency>
		<groupId>com.vs.gae</groupId>
		<artifactId>baseweblibrary</artifactId>
		<version>4.0</version>
	</dependency>

	<dependency>
		<groupId>com.valeo</groupId>
		<artifactId>cloudservices</artifactId>
		<version>1.3.2</version>
	</dependency>
	<dependency>
		<groupId>com.valeo</groupId>
		<artifactId>contactsearch-proxy</artifactId>
		<version>1.2.1</version>
	</dependency>
	<dependency>
		<groupId>com.valeo</groupId>
		<artifactId>organisationsearch-proxy</artifactId>
		<version>1.0.1</version>
	</dependency>
	<!-- <dependency> <groupId>com.googlecode.objectify</groupId> <artifactId>objectify</artifactId>
		<version>5.1.22</version> </dependency> -->

	<!-- https://mvnrepository.com/artifact/com.google.appengine/appengine-maven-plugin -->
	<dependency>
		<groupId>com.google.appengine</groupId>
		<artifactId>appengine-maven-plugin</artifactId>
		<version>1.9.67</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java -->
	<dependency>
		<groupId>com.sendgrid</groupId>
		<artifactId>sendgrid-java</artifactId>
		<version>3.0.5</version>
	</dependency>

	<dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>22.0</version>
	</dependency>
	<dependency>
		<groupId>org.datanucleus</groupId>
		<artifactId>datanucleus-cache</artifactId>
		<version>3.1.3</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/com.google.http-client/google-http-client-jackson -->
	<dependency>
		<groupId>com.google.http-client</groupId>
		<artifactId>google-http-client-jackson</artifactId>
		<version>1.27.0</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->

	<dependency>
		<groupId>commons-lang</groupId>
		<artifactId>commons-lang</artifactId>
		<version>2.6</version>
	</dependency>
	<!-- <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-appsforyourdomain-meta</artifactId>
		<version>1.0-1.26</version> </dependency> <dependency> <groupId>com.google.gdata</groupId>
		<artifactId>gdata-appsforyourdomain</artifactId> <version>1.0</version> </dependency>
		<dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-core-1.0</artifactId>
		<version>1.41.5</version> </dependency> <dependency> <groupId>com.google.gdata</groupId>
		<artifactId>gdata-spreadsheet-3.0</artifactId> <version>1.41.5</version>
		</dependency> -->
	<dependency>
		<groupId>com.fasterxml.jackson.core</groupId>
		<artifactId>jackson-core</artifactId>
		<version>2.9.7</version>
	</dependency>
	<dependency>
		<groupId>org.codehaus.jackson</groupId>
		<artifactId>jackson-core-asl</artifactId>
		<version>1.9.13</version>
	</dependency>
	<dependency>
		<groupId>org.codehaus.jackson</groupId>
		<artifactId>jackson-mapper-asl</artifactId>
		<version>1.9.13</version>
	</dependency>
	<dependency>
		<groupId>commons-collections</groupId>
		<artifactId>commons-collections</artifactId>
		<version>3.2.1</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>1.7.14</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-aop</artifactId>
		<version>4.2.1.RELEASE</version>
	</dependency>
	<!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-asm</artifactId>
		<version>3.1.1.RELEASE</version> </dependency> -->

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-context-support</artifactId>
		<version>5.1.2.RELEASE</version>
	</dependency>

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-expression</artifactId>
		<version>5.1.1.RELEASE</version>
	</dependency>

	<dependency>
		<groupId>org.springframework.security</groupId>
		<artifactId>spring-security-web</artifactId>
		<version>5.0.0.RELEASE</version>
	</dependency>

	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>servlet-api</artifactId>
		<version>2.5</version>
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>com.monitorjbl</groupId>
		<artifactId>xlsx-streamer</artifactId>
		<version>2.0.0</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.google.appengine/appengine-jsr107cache -->
	<dependency>
		<groupId>com.google.appengine</groupId>
		<artifactId>appengine-jsr107cache</artifactId>
		<version>1.9.64</version>
	</dependency>

	<!-- <dependency> <groupId>com.google.api.client</groupId> <artifactId>google-api-client-json</artifactId>
		<version>1.2.3-alpha</version> </dependency> -->

</dependencies>

<build>
	<finalName>ISRA-redalert</finalName>

	<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>

	<plugins>

		<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>versions-maven-plugin</artifactId>
			<version>2.3</version>
			<executions>
				<execution>
					<phase>compile</phase>
					<goals>
						<goal>display-dependency-updates</goal>
						<goal>display-plugin-updates</goal>
					</goals>
				</execution>
			</executions>
		</plugin>

		<plugin>
			<groupId>com.google.cloud.tools</groupId>
			<artifactId>appengine-maven-plugin</artifactId>
			<version>${appengine.maven.plugin.version}</version>
		</plugin>

		<plugin>
			<groupId>org.datanucleus</groupId>
			<artifactId>maven-datanucleus-plugin</artifactId>
			<version>3.1.2</version>
			<configuration>
				<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
				<verbose>false</verbose>
				<fork>false</fork>
			</configuration>
			<executions>
				<execution>
					<phase>process-classes</phase>
					<goals>
						<goal>enhance</goal>
					</goals>
				</execution>
			</executions>
		</plugin>

	</plugins>
</build>

Any experts ,give me an answer to resolve the subjected issue

This is a Guava version issue. Try using the most recent version of guava. If that still presents an error, then run mvn dependency:treeand try to match the version of Guava required by other libraries. Or remove Guava from your top-level dependencies entirely.

authors: dzlier-gcp nmnschaitanya


text:
fix: update control_plane_user_managed_keys.yaml

Removing forward slash as Cloud KMS nor CA Service recognize the path

@apeabody Hi Andrew, could you help to merge this PR when you get a chance?

@apeabody Hi Andrew, could you help to merge this PR when you get a chance?

Yup!

Thank you!

authors: apeabody chuyang-deng techcet

repo: GoogleCloudPlatform/gke-policy-library


text:
Improve code coverage for Object operations.

We were no doing any integration tests for failures, we should at least
verify that the exceptions raised match our minimal expectations.

This change is

Rebased to resolve conflicts. PTAL.

repo: GoogleCloudPlatform/google-cloud-cpp


text:
Feature Request: Warn the user if they call app.UseGoogleTrace() after app.UseMvc()

If they call app.UseGoogleTrace() after app.UseMvc() they'll see no errors and no warnings and no traces, and have no clue why.
If there is a way to detect and warn users in this scenario, that would save them a lot of time.

Looking at the IApplicationBuilder interface it doesn't provide a way for us to do this.

I wonder if this is something a Roslyn analyzer can help with. I believe you can distribute analyzers with the nuget package (Roslyn itself does this).
I can try to look into the feasibility of the analyzer if we want to do something like that.

@evildour If you don't mind taking a look into this that would be great

I don't mind at all. This is the fun stuff :) Ok, so I'll re-open this then.

Perfect, thanks Mike!

After some prototyping, it seems easy to do the analysis for chained calls, like app.UseMvc().UseGoogleTrace(), even if there are other builder calls in between the two. I'm not sure yet about something like this though:
app.UseMvc();
app.UseGoogleTrace();

Also, it seems relatively easy to get the analyzer used for users of the library: as long as the library includes the analyzer as one of it's own nuget packages (and not a normal reference), anything referencing the Google.Cloud.Diagnostics.AspNetCore library (via nuget or any kind of reference) will have the analyzers run as well.
I'm a little ignorant about the problem here and how it might come up. Can you provide a bit more info so I can try to catch as many issues as possible and provide a helpful message?

What happens when things are in the wrong order?
Will the problem occur with any of the UseMvc... extensions, like UseMvcWithDefaultRoute?
Are there any other methods (extension or otherwise) available on IApplicationBuilder which would have the same issue?
Is it normal to use chained calls always, or will some users prefer to use separate statements, as in the code snippet above?
If possible, should we include a code fix provider to automatically move UseGoogleTrace before UseMvc?

The ordering of these depends on how they are called so for example if we have:
app.UseMvc();
app.UseGoogleTrace();

It's calls will end up like this:
// state mvc request
// start trace
// end trace
// end mvc request.

Where if we do the opposite we have:
app.UseGoogleTrace();
app.UseMvc();

Which leads to:
// start trace
// state mvc request
// end mvc request.
// end trace

Responses to your questions:

In the first case we literately trace nothing.  While in the second we trace the mvc request.  Ideally we would like the UseGoogleTrace before most things so we can trace the full request.

(and 3) Yes this could happen with any extension. The goal with this is to catch some cases which are probably and accident. (unlikely a user wants to use trace and not capture mvc requests).  We can always add more checks as we see issues.

It can be used either way.

No I don't think we should ever fix it as there could be reasons for this just a warning so if they do not see traces and look at logs they will see the message.

Ok thanks. I have an idea for how to analyze the separate statements approach. It isn't pretty, but might work. I'll try to prototype this later today or next week.
As for the code fix provider, these are opt-in: the user has to choose to apply them, so it won't automatically fix intentional code which violates the analyzer's checks.

I like this feature, but I'd like to point out that using the new UseGoogleDiagnostics extension method will eliminate this problem for most applications.

Sorry @henkmollema, I just saw your comment now. I'll publish the analyzer for now and discuss with @iantalarico about what we can do regarding the new method. Is it equivalent? Would it make sense for the analyzer to simply instruct people to use that instead?

It is the equivalent of configured Trace, Logging and Error Reporting Middleware. The startup filter makes sure it is configured before any user middleware is added:
https://github.com/GoogleCloudPlatform/google-cloud-dotnet/blob/0e9dfea904ea70b9a1dab3712f23acff041d987a/apis/Google.Cloud.Diagnostics.AspNetCore/Google.Cloud.Diagnostics.AspNetCore/GoogleDiagnosticsStartupFilter.cs#L53-L63

@evildour Yes I agree.  I'm sure many people will use UseGoogleDiagnostics but for those who don't this will help them

Agreed 😄

authors: SurferJeffAtGoogle evildour henkmollema iantalarico

repo: GoogleCloudPlatform/google-cloud-dotnet


text:
datastore: add metadata operations

There are quite a lot of metadata operations doable (kind, stat, etc retrieval), which is possible currently too, but only if you know the internal data types and related entity kinds.
E.g.
type KindStat struct {
    KindName            string `datastore:"kind_name"`
    EntityBytes         int    `datastore:"entity_bytes"`
    BuiltinIndexBytes   int    `datastore:"builtin_index_bytes"`
    BuiltinIndexCount   int    `datastore:"builtin_index_count"`
    CompositeIndexBytes int    `datastore:"composite_index_bytes"`
    CompositeIndexCount int    `datastore:"composite_index_count"`

    Count     int       `datastore:"count"`
    Bytes     int       `datastore:"bytes"`
    Timestamp time.Time `datastore:"timestamp"`
}

stats := []KindStat{}
datastore.NewQuery("__Stat_Kind__").GetAll(ctx, &stats)

It would be nice to collect all these metadata types, queries, operations, and have them under a more pleasant API :)

+1 Meta queries would be very helpful in the native libs.  (Thanks for the struct def btw, exactly what I needed)

I think we can document these in the package somewhere (perhaps by including the above struct). I don't think more client surface is needed.

Moved to https://github.com/GoogleCloudPlatform/google-cloud-go/wiki/Feature-Backlog.

authors: PerryBirch jba karalabe

repo: GoogleCloudPlatform/google-cloud-go


text:
Initial auto-generated gcloud-java-monitoring

I removed the flattened method (listGroups) that was causing a problem because of the oneof feature in Proto. The surface is still complete since the request-based method variant and callable method variant are still present.

Coverage decreased (-0.3%) to 84.902% when pulling d1d2334d7fedb79fc516ae36ea78ad78063fb93a on garrettjonesgoogle:autogen-cloud-monitoring into 7784e6cbeddda6eb910619fe459232c295241c5b on GoogleCloudPlatform:master.

Any chance this could get merged soon? We would like to do some auto-generation updates across all of the APIs, and it would be less noisy for this to ride along with the rest.

authors: coveralls garrettjonesgoogle

repo: GoogleCloudPlatform/google-cloud-java


text:
Get stats for a Kind

Is there a way to get the number of entitites for a specific kind?

This is working on Google Cloud Console:
SELECT * FROM __Stat_Kind__ WHERE kind_name = 'UserData'
But when I execute from PHP like this:
$userStats = $datastore->runQuery(
        $datastore->gqlQuery("SELECT * FROM __Stat_Kind__ WHERE kind_name = 'UserData'")
    )->current();

I get this error:
{ "error": { "code": 400, "message": "Disallowed literal: 'UserData'.", "status": "INVALID_ARGUMENT" } }

Any solution?

Hi @barreeeiroo,
You're on the right track. Datastore requires you to use parameter binding by default, so try this instead:
$userStats = $datastore->runQuery(
    $datastore->gqlQuery("SELECT * FROM __Stat_Kind__ WHERE kind_name = @kind", [
        'bindings' => [
            'kind' => 'UserData'
        ]
    ])
)->current();

You could enable literals as well, but it's much better to get into the habit generally of using bindings as demonstrated above. If you want literal values, try this:
$userStats = $datastore->runQuery(
    $datastore->gqlQuery("SELECT * FROM __Stat_Kind__ WHERE kind_name = 'UserData'", [
        'allowLiterals' => true
    ])
)->current();

Cool, it worked 👍

authors: barreeeiroo jdpedrie

repo: GoogleCloudPlatform/google-cloud-php


text:
Import local file

In this pull request we have a few things:
1: Import-GcSqlInstance now has local file capabilities.
2: These have been tested.
3: Fixed the prevalent parenthesis documentation issue.
4: Defaulted tier in settings, as per demo request.
5: Fixed an issue where MaintenanceWindow parameters weren't defaulting.

Should have fixed the above.

Since you can't access an instance that's removed, waiting for an instance to be removed isn't that good. it uses up a lot of potential requests and causes user request limits to be hit easier. Do you guys agree that it's fine to remove this?

How long does the removal take? If it is just several seconds. If more, I agree. I think it would be good to have some WriteVerbose feedback about that, however. WriteVerbose("Process to remove instance started").

I'll compromise and raise the time it waits before pinging to see if removal is done, and I should do those WriteVerbose's for most of the cmdlets. Next pull request I suppose

Any other comments?

Last minute quick fix for a bug in delaying for Remove.

LGTM

authors: ILMTitan marceloyuela


text:
VideoIntelligence quickstart crashes on require

Using the quickstart from the samples, here with Ruby 2.3.1, 2.4.1, and mac system ruby I get the following error:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- grpc/google_rpc_status_utils (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/ajahammerly/.gem/repos/machine-learning/gems/google-gax-0.8.11/lib/google/gax/grpc.rb:31:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/ajahammerly/.gem/repos/machine-learning/gems/google-gax-0.8.11/lib/google/gax/errors.rb:32:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/ajahammerly/.gem/repos/machine-learning/gems/google-gax-0.8.11/lib/google/gax/api_callable.rb:32:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/ajahammerly/.gem/repos/machine-learning/gems/google-gax-0.8.11/lib/google/gax.rb:30:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/ajahammerly/.gem/repos/machine-learning/gems/google-cloud-video_intelligence-0.23.0/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb:28:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/ajahammerly/.gem/repos/machine-learning/gems/google-cloud-video_intelligence-0.23.0/lib/google/cloud/video_intelligence/v1beta1.rb:15:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
	from quickstart.rb:16:in `<main>'

@geigerj I thought you yanked the google-gax release that introduced this dependency?

@thagomizer The reason for this is because the google-gax gem is trying to load a file that was introduced in the grpc 1.6.2 gem, but google-gax is not specifying that grpc version on in the dependency. You can solve this by updating your grpc gem to the latest version while we try to get the gem dependencies updated correctly.

Yes, this is my fault. gRPC released a new version (1.6.6) that fixed the issues with this file, and I released a new version of GAX without specifying the right bounds on the dependency. It should be fixed now.

@thagomizer Could you update GAX and close if the issue goes away?

I'll close the issue once the samples in the docs work.

Question from sample side. All that is required now is bundle update and verification of gRPC 1.6.6?

Yes, for this particular issue, that should be it.

@geigerj I see that google-gax 0.8.12 narrows the dependency on grpc, but I think the dependency is now too narrow. A dependency on ~> 1.6.6 means that it won't allow a future 1.7.0 release to be used. I believe the correct dependency to use is >= 1.6.6, < 2.0.

@blowmage Sure, we can be looser in the next release. https://github.com/googleapis/gax-ruby/pull/95

@geigerj ruby-docs-samples work with the latest version of the Video Intelligence gem. I have updated the samples in the following PR.
https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/203

Closing for now since this appears to be resolved. If this is not the case, please re-open.

authors: blowmage frankyn geigerj quartzmo thagomizer

repo: GoogleCloudPlatform/google-cloud-ruby


text:
lastQuery handling in cAdvisor source is wrong

There are two issues:

lastQuery is not set in the loop, resulting in data duplication, because cAdvisor returns last 64 stats instead. Example fix:
https://github.com/arkadijs/heapster/commit/2fc23c2a890e6c77c56ee0640e5601178f461df6#diff-3917589e63e61c59289ec2acb14ebcc8R66

On a medium to large cluster with medium to large number of containers the logic of one lastQuery per all peers would be flawed anyway. It leads to missing data points because Heapster+cAdvisor are not fast enough and Heapster queries all cAdvisor instances serially. A crappy fix that works in practice:
https://github.com/arkadijs/heapster/commit/2fc23c2a890e6c77c56ee0640e5601178f461df6#diff-3917589e63e61c59289ec2acb14ebcc8R37

Thanks for reporting the issue.
I wonder if we can eliminate lastQuery completely and instead just use poll_duration?
We have just started working towards improving the core, and eventually scalability as well. I can imagine polling all cadvisor's in parallel at the least, in the short term. We are aiming for sharding heapster itself from ground up, but that might not happen soon.

Also, adding to (1), numStats is not a cAdvisor HTTP query parameter, but must be supplied via POST JSON: https://github.com/arkadijs/heapster/commit/2fc23c2a890e6c77c56ee0640e5601178f461df6#diff-d506dd5ceb65926ead27b28cd6c5eca3L95

This has been fixed.

authors: arkadijs vishh

repo: GoogleCloudPlatform/heapster