text:
Improve USBProxy reliability

This PR fixes a few things:

Refactor clear_feature_endpoint_halt arguments in the USB HAL driver to match stall arguments.
Add a clear_feature_endpoint_halt verb to the Moondancer GCP class.
Compiler warnings on the latest rustc release.
Incorrect reference to a Makefile target.
Fixes a compiler error when ladybug is enabled.

Depends on: https://github.com/greatscottgadgets/facedancer/pull/106

I'm seeing rubber-ducky.py fail with this:
INFO    | moondancer     | Using the Moondancer backend.
INFO    | moondancer     | Connected FULL speed device 'facedancer.devices.keyboard.USBKeyboardDevice' to target host.
INFO    | rubber-ducky   | Beginning message typing demo...
INFO    | moondancer     | Disconnecting from target host.
Traceback (most recent call last):
  File "/tmp/./rubber-ducky.py", line 25, in <module>
    main(device, type_letters())
  File "/tmp/f/lib/python3.11/site-packages/facedancer/devices/__init__.py", line 41, in default_main
    device.emulate(*coroutines)
  File "/tmp/f/lib/python3.11/site-packages/facedancer/device.py", line 232, in emulate
    self.run_with(*coroutines)
  File "/tmp/f/lib/python3.11/site-packages/facedancer/device.py", line 217, in run_with
    asyncio.run(inner())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/tmp/f/lib/python3.11/site-packages/facedancer/device.py", line 215, in inner
    await asyncio.gather(self.run(), *coroutines)
  File "/tmp/f/lib/python3.11/site-packages/facedancer/device.py", line 204, in run
    self.backend.service_irqs()
  File "/tmp/f/lib/python3.11/site-packages/facedancer/backends/moondancer.py", line 398, in service_irqs
    events: List[Tuple[int, int]] = self.api.get_interrupt_events()
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/f/lib/python3.11/site-packages/pygreat/comms.py", line 1126, in method
    return self.execute_command(verb_number, in_format, out_format, name=name, class_name=class_name,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/f/lib/python3.11/site-packages/pygreat/comms.py", line 1281, in execute_command
    return self.comms_backend.execute_command(self.CLASS_NUMBER, verb, in_format,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/f/lib/python3.11/site-packages/pygreat/comms.py", line 788, in execute_command
    raw_result = self.execute_raw_command(class_number, verb, payload, timeout,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/f/lib/python3.11/site-packages/pygreat/comms_backends/usb1.py", line 403, in execute_raw_command
    self.device_handle.controlWrite(usb1.TYPE_VENDOR | usb1.RECIPIENT_DEVICE,
  File "/home/mossmann/.local/lib/python3.11/site-packages/usb1/__init__.py", line 1349, in controlWrite
    return self._controlTransfer(request_type, request, value, index, data,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mossmann/.local/lib/python3.11/site-packages/usb1/__init__.py", line 1326, in _controlTransfer
    mayRaiseUSBError(result)
  File "/home/mossmann/.local/lib/python3.11/site-packages/usb1/__init__.py", line 127, in mayRaiseUSBError
    __raiseUSBError(value)
  File "/home/mossmann/.local/lib/python3.11/site-packages/usb1/__init__.py", line 119, in raiseUSBError
    raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorTimeout: LIBUSB_ERROR_TIMEOUT [-7]

I thought this might have been because of the other subtle ZLP I caught in https://github.com/greatscottgadgets/cynthion/pull/183 but both branches are working fine for me?
I see it died during a libgreat RPC call, it could maybe be that the firmware had crashed or gotten in a weird state?
Can you replicate it again if you do a fresh firmware build&boot?

Another thought occurred to me last night, did you also update your Facedancer to: https://github.com/greatscottgadgets/facedancer/pull/106

Another thought occurred to me last night, did you also update your Facedancer to: greatscottgadgets/facedancer#106

No. Should I? I test everything with released versions of dependencies. If a different version of a dependency is required, that should be specified in the PR.

No. Should I? I test everything with released versions of dependencies. If a different version of a dependency is required, that should be specified in the PR.

That would explain it then. 😂
The real question though is how did I manage to forget to add any details to the PR description? 🙈

I'm also facing this issue exactly same. Any update?

Can you please try updating your cynthion & facedancer installs to the latest version and let us know if the problem still occurs:
pip install --upgrade cynthion
cynthion update

pip install --upgrade facedancer

@antoinevg , Failed
cynthion run facedancer Updating SoC firmware flash with 55900 bytes... Operation complete! Uploading target bitstream to FPGA with 441927 bytes... Operation complete!
`cynthion info
Cynthion version: 0.1.6
Apollo version: 1.1.0
Python version: 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]
Found Apollo stub interface!
Bitstream: Facedancer (Cynthion Project)
Vendor ID: 1d50
Product ID: 615b
bcdDevice: 0104
Bitstream serial number: 398162cba3ac60de
For additional device information use the --force-offline option.
`
python ./rubber-ducky.py  INFO    | moondancer     | Using the Moondancer backend. INFO    | moondancer     | Connected FULL speed device 'facedancer.devices.keyboard.USBKeyboardDevice' to target host. INFO    | rubber-ducky   | Beginning message typing demo... INFO    | moondancer     | Disconnecting from target host. Traceback (most recent call last):   File "/facedancer/examples/./rubber-ducky.py", line 25, in <module>     main(device, type_letters())   File "/lib/python3.10/site-packages/facedancer/devices/__init__.py", line 41, in default_main     device.emulate(*coroutines)   File "/lib/python3.10/site-packages/facedancer/device.py", line 228, in emulate     self.run_with(*coroutines)   File "/lib/python3.10/site-packages/facedancer/device.py", line 213, in run_with     asyncio.run(inner())   File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run     return loop.run_until_complete(main)   File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete     return future.result()   File "/lib/python3.10/site-packages/facedancer/device.py", line 211, in inner     await asyncio.gather(self.run(), *coroutines)   File "/lib/python3.10/site-packages/facedancer/device.py", line 200, in run     self.backend.service_irqs()   File "/lib/python3.10/site-packages/facedancer/backends/moondancer.py", line 427, in service_irqs     events: List[Tuple[int, int]] = self.api.get_interrupt_events()   File "/lib/python3.10/site-packages/pygreat/comms.py", line 1126, in method     return self.execute_command(verb_number, in_format, out_format, name=name, class_name=class_name,   File "/lib/python3.10/site-packages/pygreat/comms.py", line 1281, in execute_command     return self.comms_backend.execute_command(self.CLASS_NUMBER, verb, in_format,   File "/lib/python3.10/site-packages/pygreat/comms.py", line 788, in execute_command     raw_result = self.execute_raw_command(class_number, verb, payload, timeout,   File "/lib/python3.10/site-packages/pygreat/comms_backends/usb1.py", line 403, in execute_raw_command     self.device_handle.controlWrite(usb1.TYPE_VENDOR | usb1.RECIPIENT_DEVICE,   File "/lib/python3.10/site-packages/usb1/__init__.py", line 1330, in controlWrite     return self._controlTransfer(request_type, request, value, index, data,   File "/lib/python3.10/site-packages/usb1/__init__.py", line 1307, in _controlTransfer     mayRaiseUSBError(result)   File "/lib/python3.10/site-packages/usb1/__init__.py", line 127, in mayRaiseUSBError     __raiseUSBError(value)   File "/lib/python3.10/site-packages/usb1/__init__.py", line 119, in raiseUSBError     raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value) usb1.USBErrorTimeout: LIBUSB_ERROR_TIMEOUT [-7]

@antoinevg , There was only on chance after reboot:

cynthion run facedancer
Updating SoC firmware flash with 55900 bytes...
Operation complete!
Uploading target bitstream to FPGA with 441927 bytes...
Operation complete!
sudo python rubber-ducky.py
INFO    | moondancer     | Using the Moondancer backend.
INFO    | moondancer     | Connected FULL speed device 'facedancer.devices.keyboard.USBKeyboardDevice' to target host.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | rubber-ducky   | Beginning message typing demo...
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | device         | Host issued a bus reset; resetting our connection.
INFO    | moondancer     | Target host configuration complete.
INFO    | rubber-ducky   | Typing complete. Idly handling USB requests.

After that no more working without reboot:

sudo python rubber-ducky.py
INFO    | moondancer     | Using the Moondancer backend.
INFO    | moondancer     | Connected FULL speed device 'facedancer.devices.keyboard.USBKeyboardDevice' to target host.
INFO    | rubber-ducky   | Beginning message typing demo...
INFO    | moondancer     | Disconnecting from target host.
Traceback (most recent call last):
File "/facedancer/examples/rubber-ducky.py", line 25, in
main(device, type_letters())
File "/usr/local/lib/python3.10/dist-packages/facedancer/devices/init.py", line 41, in default_main
device.emulate(*coroutines)
File "/usr/local/lib/python3.10/dist-packages/facedancer/device.py", line 228, in emulate
self.run_with(*coroutines)
File "/usr/local/lib/python3.10/dist-packages/facedancer/device.py", line 213, in run_with
asyncio.run(inner())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/facedancer/device.py", line 211, in inner
await asyncio.gather(self.run(), *coroutines)
File "/usr/local/lib/python3.10/dist-packages/facedancer/device.py", line 200, in run
self.backend.service_irqs()
File "/usr/local/lib/python3.10/dist-packages/facedancer/backends/moondancer.py", line 427, in service_irqs
events: List[Tuple[int, int]] = self.api.get_interrupt_events()
File "/usr/local/lib/python3.10/dist-packages/pygreat/comms.py", line 1126, in method
return self.execute_command(verb_number, in_format, out_format, name=name, class_name=class_name,
File "/usr/local/lib/python3.10/dist-packages/pygreat/comms.py", line 1281, in execute_command
return self.comms_backend.execute_command(self.CLASS_NUMBER, verb, in_format,
File "/usr/local/lib/python3.10/dist-packages/pygreat/comms.py", line 788, in execute_command
raw_result = self.execute_raw_command(class_number, verb, payload, timeout,
File "/usr/local/lib/python3.10/dist-packages/pygreat/comms_backends/usb1.py", line 403, in execute_raw_command
self.device_handle.controlWrite(usb1.TYPE_VENDOR | usb1.RECIPIENT_DEVICE,
File "/usr/local/lib/python3.10/dist-packages/usb1/init.py", line 1330, in controlWrite
return self._controlTransfer(request_type, request, value, index, data,
File "/usr/local/lib/python3.10/dist-packages/usb1/init.py", line 1307, in _controlTransfer
mayRaiseUSBError(result)
File "/usr/local/lib/python3.10/dist-packages/usb1/init.py", line 127, in mayRaiseUSBError
__raiseUSBError(value)
File "/usr/local/lib/python3.10/dist-packages/usb1/init.py", line 119, in raiseUSBError
raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorTimeout: LIBUSB_ERROR_TIMEOUT [-7]

authors: KeuntaeShin antoinevg mossmann

repo: greatscottgadgets/cynthion


text:
Fix unclaimed

Closes #58

On hold...

@z64 does this look ok? It should work.

source: gharchive/pull-request

repo: greenbigfrog/discordtipbot

license: MIT

license_type: permissive

license_source: github-api


text:
Support for complex expressions?

I'm curious what the state of expression support is. I noticed that we made a change recently in the Stadia Maps base styles that prevent most labels from loading.
Here's an example expression. In plain English, it will render the latin name of a feature and, if a non-latin name exists, it renders the label in local script on a second line.
"text-field": [
  "concat",
  [
    "get",
    "name:latin"
  ],
  [
    "case",
    [
      "all",
      [
        "has",
        "name:nonlatin"
      ],
      [
        "is-supported-script",
        [
          "get",
          "name:nonlatin"
        ]
      ]
    ],
    [
      "concat",
      "\n",
      [
        "get",
        "name:nonlatin"
      ]
    ],
    ""
  ]
]

Apologies if the question title isn't entirely correct, but is this a limitation of expression support in general? Or maybe it's something specific to text rendering limitations? I'm happy to contribute some code if you can point me in the right direction.

Awesome; thanks! I'll probably get back to this early next week, but I think that's enough to point me in the right direction. Thanks again for all your work on this project to date!

Just following up on this, I'll have a PR coming in the next day or so. Looks like the only expression not handled in the original snippet is is-supported-script, and honestly that's a pretty esoteric one that I only realized existed recently ;)

source: gharchive/issue

repo: greensopinion/flutter-vector-map-tiles


text: Images for README

repo: greg-dev/scheduling-algorithms

license: mit

license_source: bigquery


text:
fix: #381 [x] parcel -> parcel-bundler

Summary
fixes #381, migrate from parcel to parcel-bundler and bump version to 6.0.0
Test plan
Tests should be unaffected.

parcel is the new name of the package. Your fix is not correct.

@gregberge Accoding to the version 1 doc's its still parcel-bundler? (Name change is for parcel > 1, i.e. parcel@next)
src: https://parceljs.org/getting_started.html

@chr33s you are right, looks like we should switch back to "parcel-bundler"..

@chr33s can you submit a fix again (without bumping any version please).

repo: gregberge/svgr


text:
Getting a "module not found" error while compiling with webpack

I just changed the file path on the index.js file from require('./src/angular-local-storage.js'); to require('./dist/angular-local-storage.js'); and the error got fixed.

repo: grevory/angular-local-storage


text:
CKEditor disappears when enable highlight.js

Hello!
I'm using flask-ckeditor==0.4.3, and when I enabled CKEDITOR_ENABLE_CODESNIPPET = True , the editor disappears. But when not enable that, the editor can show up normally.
I also checked the console in the browser, and I got the following error:
Error: [CKEDITOR.resourceManager.load] Resource name "codesnippet" was not found at "http://cdn.ckeditor.com/4.9.2/standard/plugins/codesnippet/plugin.js?t=I3I8".
How can I solve this? Thank you!

Hi, sorry for the later response. Although Code Snippet is one of the CKEditor preset plugins,  but it not available on the CKEditor CDN. You have to load it from the local:
{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}
<script>
    // Enable local "codesnippet" plugin from /ckeditor/static/standard/plugins/codesnippet/ path.
    CKEDITOR.plugins.addExternal( 'codesnippet', '/ckeditor/static/standard/plugins/codesnippet/', 'plugin.js' );
</script>

Oh, now I got it. I will try it later, thanks a lot!

On Apr 20, 2020, at 5:12 PM, Grey Li notifications@github.com wrote:
Hi, sorry for the later response. Although Code Snippet is one of the CKEditor preset plugins, but it not available on the CKEditor CDN https://ckeditor.com/cke4/presets-all. You have to load it from the local:
{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/greyli/flask-ckeditor/issues/30#issuecomment-616417517, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQCYENIKPAZPMKIIPFIYO3RNQGWHANCNFSM4K3G6GKA.

authors: greyli samzhangjy

repo: greyli/flask-ckeditor


text:
JavaScript heap out of memory on gridsome develop or gridsome build with large datafiles

Description
I have a project showing about 100 maps with data, their (maps') sizes are between 0.5 and 10 MB.
The list of the maps itself is rather small (~ 10 kB).
It seems to me it is the same/similar problem as in #548, #1192, #627, #1222 or discussed here https://stackoverflow.com/questions/61390199/grisome-build-succeeds-locally-but-fails-on-aws-amplify - but no solution/workaround was given there, which I would have been able to apply to my case.
I add the collection in gridsome.server.js:
const topomaps = require("./src/data/topomaps.json")  //10 kB list of maps

module.exports = function (api) {
  api.loadSource(actions => {
    // Use the Data Store API here: https://gridsome.org/docs/data-store-api/
  const topomapCollection = actions.addCollection({
        typeName: 'Topomaps'
    })
    for (const item of topomaps) {
        topomapCollection.addNode({
            id: item.id,
            title: item.title,
            bbox: item.bbox
        })
    }
  })
}

The gridsome.config.js sets the template:
...
module.exports = {
  templates: {
      Topomaps: [
          {
              path: '/topomap/:id',
              component: './src/templates/Topomap.vue'
          }
      ]
  }
}
...

And I load the (big) files in the template /src/templates/Topomap.vue:
...
<page-query>
query ($id: ID!) {
  topomap: topomaps(id: $id) {
    id
    title
    bbox
  }
}
</page-query>
...
export default {
  ...
  async mounted() {
    this.topodata = require('@/data/maps/' + this.$page.topomap.id + '.json') // the map between 0.5MB and 10MB
    ...
  }
}
...

Expected result
gridsome develop would start the developers mode
gridsome build would run the build process
Actual result
If the number of maps is smaller (80) and the biggest map is around 7MB, it works ok.
If the number of maps is higher (100) and the biggest map is around 10MB, both processes ends with FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Full output:
gridsome build
Gridsome v0.7.19

Initializing plugins...
Load sources - 0.02s
Create GraphQL schema - 0.06s
Create pages and templates - 0.07s
Generate temporary code - 0.09s
Bootstrap finish - 1.23s
90% chunk assets processing
<--- Last few GCs --->

[23499:0x57ca100]    44360 ms: Mark-sweep 2010.9 (2081.3) -> 2000.2 (2087.5) MB, 3121.4 / 0.0 ms  (average mu = 0.094, current mu = 0.040) allocation failure scavenge might not succeed
[23499:0x57ca100]    45616 ms: Mark-sweep 2000.3 (2087.5) -> 2000.3 (2087.8) MB, 1255.5 / 0.0 ms  (average mu = 0.060, current mu = 0.001) allocation failure scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x9fb000 node::Abort() [node]
 2: 0x94845d node::FatalError(char const*, char const*) [node]
 3: 0xb6e01e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xb6e397 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xd17f85  [node]
 6: 0xd18b0f  [node]
 7: 0xd26b7b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 8: 0xd2a73c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 9: 0xcf0062 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
10: 0xce9ee4 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [node]
11: 0xcec231 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [node]
12: 0xf4c685 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [node]
13: 0x10648db v8::internal::Runtime_RegExpExecMultiple(int, unsigned long*, v8::internal::Isolate*) [node]
14: 0x13c9f79  [node]
Aborted (core dumped)

Environment
gridsome info
  System:
    OS: Linux 4.15 Ubuntu 18.04.5 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
  Binaries:
    Node: 14.6.0 - ~/.nvm/versions/node/v14.6.0/bin/node
    Yarn: 1.22.4 - ~/.nvm/versions/node/v14.6.0/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v14.6.0/bin/npm
  Browsers:
    Chrome: 84.0.4147.105
    Firefox: 79.0
  npmPackages:
    @gridsome/source-filesystem: ^0.6.2 => 0.6.2
    @gridsome/transformer-json: ^0.2.1 => 0.2.1
    @gridsome/transformer-remark: ^0.6.1 => 0.6.1
    gridsome: ^0.7.0 => 0.7.19

Have you tried to increase your Node's memory limit?
If you run this command
export NODE_OPTIONS=--max_old_space_size=4096

This will give your Node 4GB of RAM and you should be able to easily get your build (and subsequent ones) to pass. ^  ^

authors: Gregordy michalskop

repo: gridsome/gridsome


text:
Update README.md

More obvious hint for the support of FSR14_4x, FSR14SSR and what needs to be specified.

closed because FSR14 stays for all types of FSR14* like FSR14-4x, FSR14-2x, ... and A5-38-08 not supported as sender eep.

repo: grimmpp/home-assistant-eltako


text:
error in deformable_im2col: a PTX JIT compilation failed

When running the mmdet2trt with my config file and checkpoint, I got the following warning:
root@f406c58d8080:~/space/mmdetection-to-tensorrt# mmdet2trt /home/config_ct2_full.py /home/epoch_24.pth /home/qcgd.trt
/usr/local/lib/python3.6/dist-packages/mmcv/utils/misc.py:304: UserWarning: "deformable_groups" is deprecated in `DeformConv2d.__init__`, please use "deform_groups" instead
  f'"{src_arg_name}" is deprecated in '
/usr/local/lib/python3.6/dist-packages/mmcv/utils/misc.py:304: UserWarning: "out_size" is deprecated in `RoIAlign.__init__`, please use "output_size" instead
  f'"{src_arg_name}" is deprecated in '
/usr/local/lib/python3.6/dist-packages/mmcv/utils/misc.py:304: UserWarning: "sample_num" is deprecated in `RoIAlign.__init__`, please use "sampling_ratio" instead
  f'"{src_arg_name}" is deprecated in '
INFO:mmdet2trt:Model warmup
INFO:mmdet2trt:Converting model
**Warning: Encountered known unsupported method torch.Tensor.new_tensor
Warning: Encountered known unsupported method torch.Tensor.new_tensor**
[TensorRT] INFO: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
[TensorRT] INFO: Detected 1 inputs and 4 output network tensors.
INFO:mmdet2trt:Conversion took 97.33503580093384 s
INFO:mmdet2trt:Saving TRT model to: /home/qcgd.trt

And then I tried to test the converted tensorrt model by using the tools/test.py, and I got the following errror:
root@f406c58d8080:~/space/mmdetection-to-tensorrt/tools# python3 test.py /home/config_ct2_full.py /home/qcgd.trt --ou         t /home/result.pkl
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[                                                  ] 0/176, elapsed: 0s, ETA:error in deformable_im2col: a PTX JIT co         mpilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
error in deformable_im2col: a PTX JIT compilation failed
#assertion/root/space/amirstan_plugin/src/plugin/batchedNMSPlugin/batchedNMSPlugin.cpp,138
Aborted (core dumped)

The mmdet config file contains:
model = dict(
    type='FasterRCNN',
    pretrained='/home/resnet50.pth',
    backbone=dict(
        type='ResNet',
        depth=50,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=1,
        norm_cfg=dict(type='BN', requires_grad=True),
        norm_eval=True,
        style='pytorch',
        dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
        stage_with_dcn=(False, True, True, True)),
    neck=dict(
        type='FPN',
        in_channels=[256, 512, 1024, 2048],
        out_channels=256,
        num_outs=5),
    rpn_head=dict(
        type='RPNHead',
        in_channels=256,
        feat_channels=256,
        anchor_generator=dict(
            type='AnchorGenerator',
            scales=[8],
            ratios=[0.05, 0.1, 0.4, 0.8, 1.0, 1.25, 2.5, 10.0, 20],
            strides=[4, 8, 16, 32, 64]),
        bbox_coder=dict(
            type='DeltaXYWHBBoxCoder',
            target_means=[0.0, 0.0, 0.0, 0.0],
            target_stds=[1.0, 1.0, 1.0, 1.0]),
        loss_cls=dict(
            type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0),
        loss_bbox=dict(type='L1Loss', loss_weight=1.0)),
    roi_head=dict(
        type='StandardRoIHead',
        bbox_roi_extractor=dict(
            type='SingleRoIExtractor',
            roi_layer=dict(type='RoIAlign', out_size=7, sample_num=0),
            out_channels=256,
            featmap_strides=[4, 8, 16, 32]),
        bbox_head=dict(
            type='Shared2FCBBoxHead',
            in_channels=256,
            fc_out_channels=1024,
            roi_feat_size=7,
            num_classes=5,
            bbox_coder=dict(
                type='DeltaXYWHBBoxCoder',
                target_means=[0.0, 0.0, 0.0, 0.0],
                target_stds=[0.1, 0.1, 0.2, 0.2]),
            reg_class_agnostic=False,
            loss_cls=dict(
                type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
            loss_bbox=dict(type='L1Loss', loss_weight=1.0))))
train_cfg = dict(
    rpn=dict(
        assigner=dict(
            type='MaxIoUAssigner',
            pos_iou_thr=0.7,
            neg_iou_thr=0.3,
            min_pos_iou=0.3,
            match_low_quality=True,
            ignore_iof_thr=-1),
        sampler=dict(
            type='RandomSampler',
            num=256,
            pos_fraction=0.5,
            neg_pos_ub=-1,
            add_gt_as_proposals=False),
        allowed_border=-1,
        pos_weight=-1,
        debug=False),
    rpn_proposal=dict(
        nms_across_levels=False,
        nms_pre=2000,
        nms_post=1000,
        max_num=1000,
        nms_thr=0.7,
        min_bbox_size=0),
    rcnn=dict(
        assigner=dict(
            type='MaxIoUAssigner',
            pos_iou_thr=0.5,
            neg_iou_thr=0.5,
            min_pos_iou=0.5,
            match_low_quality=False,
            ignore_iof_thr=-1),
        sampler=dict(
            type='RandomSampler',
            num=512,
            pos_fraction=0.25,
            neg_pos_ub=-1,
            add_gt_as_proposals=True),
        pos_weight=-1,
        debug=False))
test_cfg = dict(
    rpn=dict(
        nms_across_levels=False,
        nms_pre=1000,
        nms_post=1000,
        max_num=1000,
        nms_thr=0.7,
        min_bbox_size=0),
    rcnn=dict(
        score_thr=0.05,
        nms=dict(type='nms', iou_threshold=0.5),
        max_per_img=100))

The docker image is created by using the docker/Dockfile.  Anybody can help to  solve this problem? Thx

The cuda 10.2 is compatible with nvidia display driver >=440.33, updating the drvier solved this problem.

repo: grimoire/mmdetection-to-tensorrt


text:
Auto Create Vector Store Resources

[x] I have read and agree to the contributing guidelines.

Is your feature request related to a problem? Please describe.
When using Vector Store Drivers, users need to manually create the appropriate resources (indexes/collections/etc) before using the Driver. This can be time consuming and error prone.
Describe the solution you'd like
Griptape should have the option to automatically create these resources when first using the Vector Store Driver.
Describe alternatives you've considered
Call use the underlying SDK directly.
Additional context
https://github.com/griptape-ai/griptape/pull/1022#discussion_r1695524314

It was already implemented and removed https://github.com/griptape-ai/griptape/issues/607

Great point, @michal-repo! I had completely forgotten that we intentionally decided to remove that functionality to reduce Griptape's maintenance surface area. Griptape's focus should remain solely on data-plane operations.

authors: collindutter michal-repo

repo: griptape-ai/griptape


text:
Edited renounceMinter example

Proposed changes

Describe your changes to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes
Please put an x in the boxes related to your change.

[ ] Bugfix
[ ] New feature or enhancement
[x] Others

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING GUIDELINES doc
[x] I have signed the CLA
[x] Lint and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
[x] Any dependent changes have been merged and published in downstream modules

Related issues

Please leave the issue numbers or links related to this PR here.

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Eubin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant minishell

repo: ground-x/caver-js-ext-kas


text:
httpcli should support HTTP 1.1

httpcli uses HTTP/1.0.
Istio Envoy requires HTTP/1.1 or above. HTTP 1.0 support is available in Istio 1.1 (PR), which is still in alpha on GKE. On Istio 1.1, users still need to set an environment HTTP10 to enable HTTP/1.0 support.
When using grpc httpcli to contact the metadata server, requests are intercepted by Envoy proxy which returns HTTP 426 Upgrade required for any HTTP/1.0 requests.
What version of gRPC and what language are you using?
1.21
What operating system (Linux, Windows,...) and version?
Linux, Ubuntu 14.04
What runtime / compiler are you using (e.g. python version or version of gcc)
What did you do?
httpcli request to "http://metadata.google.internal.//computeMetadata/v1/instance/service-accounts/default/token" with required "Metadata-Flavor: Google" header
What did you expect to see?
HTTP status 200 and a token
What did you see instead?
HTTP Status 426 upgrade required
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Patched format_request.cc to 1.1 and the request succeeds.
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?
https://github.com/GoogleCloudPlatform/cloud-profiler-java
and other projects where grpc httpcli is used to contact the GCP metadata server.

@kalyanac, can you provide more context about this?  The httpcli code is not part of grpc's public API; it's there purely for our own internal use, and we don't support it for use in other applications.  Given that, I'm curious how you ran into this problem.

We do not use http_cli directly. We use gRPC and that seems to internally use http_cli to get a token from
"http://metadata.google.internal.//computeMetadata/v1/instance/service-accounts/default/token"
We noticed this from the Istio proxy logs.
Please see b/126601115#comment10 for screenshots. This can be easily reproduced.

Ah, okay -- yes, that's done by the gRPC oauth credentials.
I agree that in principle, we should change our HTTP client to support HTTP/1.1 (and maybe even HTTP/2), and I'll keep this issue open to track that work.  However, our team is currently quite busy with other work, and since this has a work-around (you mentioned the HTTP/1.0 support in Istio 1.1), we are unlikely to prioritize this in the near future.

Thank you for triaging this.
Given the importance of Istio and the popularity of gRPC, I suspect this may be affecting others as well.

Any update on this? I was able to workaround the problem by enabling HTTP 1.0 support in Pilot.

No update.  We're still not prioritizing this, since there's a usable work-around, and we have a lot of other higher-priority work.

Any update on this?

No, no change.  We've got too many other higher priorities, so this probably isn't going to get any attention unless someone wants to contribute some code

Hey,
FYI, I just encountered the very same issue when testing out the Google Cloud Platform Anthos Service Mesh setup + GKE + GKE Workload Identity setup at my company. grpc httpcli is being used to obtain service account token, but it fails due to HTTP/1.0 being used which is not supported by Istio.

I also encountered the same problem when I used envoy as a proxy. I hope this could be fixed soon

Ah, it's likely we'll also need a chunked encoding parser.

We may want to consider keeping the connection open for multiple requests once we do this.

authors: SHiftLin ctiller gusior kalyanac markdroth nicolasnoble

repo: grpc/grpc


text:
Cannot build repo from source. GPR_ASSERT(h->count) in histogram.c:215:17

I tried to build this project from source in MAC OS using make command. I get the following error:
src/core/support/histogram.c:215:17: error: implicit conversion turns floating-point number into integer: 'double' to '_Bool' [-Werror,-Wfloat-conversion]
  GPR_ASSERT(h->count);

I do not understand anything about this project, but it turns out that if I remove this line or I change it to h->count != 0, the build will continue without any error.
I attach the log for your reference:
Andy-Chongs-MacBook-Pro:grpc andyccs$ make clean
[CLEAN]   Cleaning build directories.
Andy-Chongs-MacBook-Pro:grpc andyccs$ make
[MAKE]    Generating libs/opt/pkgconfig/grpc.pc
[MAKE]    Generating libs/opt/pkgconfig/grpc_unsecure.pc
[MAKE]    Generating cache.mk
[MAKE]    Generating libs/opt/pkgconfig/gpr.pc
[C]       Compiling src/core/support/alloc.c
[C]       Compiling src/core/support/cmdline.c
[C]       Compiling src/core/support/cpu_iphone.c
[C]       Compiling src/core/support/cpu_linux.c
[C]       Compiling src/core/support/cpu_posix.c
[C]       Compiling src/core/support/cpu_windows.c
[C]       Compiling src/core/support/env_linux.c
[C]       Compiling src/core/support/env_posix.c
[C]       Compiling src/core/support/env_win32.c
[C]       Compiling src/core/support/file.c
[C]       Compiling src/core/support/file_posix.c
[C]       Compiling src/core/support/file_win32.c
[C]       Compiling src/core/support/histogram.c
src/core/support/histogram.c:215:17: error: implicit conversion turns floating-point number into integer: 'double' to '_Bool' [-Werror,-Wfloat-conversion]
  GPR_ASSERT(h->count);
  ~~~~~~~~~~~~~~^~~~~~
include/grpc/support/log.h:98:11: note: expanded from macro 'GPR_ASSERT'
    if (!(x)) {                                       \
          ^
1 error generated.
make: *** [objs/opt/src/core/support/histogram.o] Error 1

This problem not happen on branch release-0_11. Most probably it has been fixed in the latest branch.

Any update?
I have the same problem on mac osx with ruby example bundle install.
Using grpc 0.11.0 from https://github.com/grpc/grpc.git (at master)

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Volumes/HDD/Users/apple/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -r ./siteconf20150928-9694-130lkew.rb extconf.rb
checking for dlopen() in -ldl... yes
checking for inflate() in -lz... yes
checking for gpr_now() in -lgpr... no
Building internal gRPC
[MAKE]    Generating cache.mk
[C]       Compiling src/core/support/histogram.c
src/core/support/histogram.c:215:17: error: implicit conversion turns floating-point number into integer: 'double' to '_Bool' [-Werror,-Wfloat-conversion]
  GPR_ASSERT(h->count);
  ~~~~~~~~~~~~~~^~~~~~
include/grpc/support/log.h:98:11: note: expanded from macro 'GPR_ASSERT'
    if (!(x)) {                                       \
          ^
1 error generated.
make: *** [/Users/dennis/.rvm/gems/ruby-2.0.0-p0/bundler/gems/grpc-0f9a118f4e94/objs/opt/src/core/support/histogram.o] Error 1
checking for gpr_now() in -lgpr... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/Volumes/HDD/Users/apple/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
	--with-grpc-dir
	--without-grpc-dir
	--with-grpc-include
	--without-grpc-include=${grpc-dir}/include
	--with-grpc-lib
	--without-grpc-lib=${grpc-dir}/
	--with-dllib
	--without-dllib
	--with-zlib
	--without-zlib
	--with-gprlib
	--without-gprlib
	--with-gprlib
	--without-gprlib
extconf.rb:97:in `rescue in <main>': gpr not found (RuntimeError)
	from extconf.rb:75:in `<main>'

extconf failed, exit code 1

Issue should fixed now.

authors: Andyccs killme2008 sreecha


text:
Only include System.Memory when framework can not provide it

Is your feature request related to a problem? Please describe.
I want to minimise dependencies in my project by utilising framework dependencies wherever possible
Describe the solution you'd like
A new TFM is added to the nuget package -> net Standard 2.1 &/or NET 6
The system.Memory package becomes conditional so only added for the older frameworks
Describe alternatives you've considered
Accept the additional dependency
Additional context
n/a

Grpc.Core.Api has been done and released.
I looked at submitting a PR got Grpc.Core but couldn't succeed in checking out the branch

Closing since this is an enhancement. We are only providing bug and security fixes for Grpc.Core, at this point.

authors: apolcyn thompson-tomo


text:
typo fix

fix some word spelling

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.
After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

One or more commits are not associated with a GitHub user. The email used in the Git commit must match a verified email address in a GitHub user profile. For more information, please see https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/

Regards,
CLA GitHub bot

this is my first PR after I registered my github account yesterday and I have verified my email address. anything else I need to do?  :O

ok, btw where shall i sign cla?
thanks.
------------------ Original ------------------
From: The Linux Foundation notifications@github.com
Date: Fri,May 24,2019 10:37 AM
To: grpc/grpc grpc@noreply.github.com
Cc: weiyongji 232589621@qq.com, Author author@noreply.github.com
Subject: Re: [grpc/grpc] typo fix (#19130)
Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.
After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.
One or more commits are not associated with a GitHub user. The email used in the Git commit must match a verified email address in a GitHub user profile. For more information, please see https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/
Regards,
CLA GitHub bot
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

authors: thelinuxfoundation weiyongji


text:
Patch typo in iomgr_posix_cfstream documentation

#22737 was accidentally patched to v1.29.x not master (not sure why but I am to be blamed). This PR effectively ports #22737 to master.

#22019, #22760


text:
Split mu_call into a server-wide and a per-call lock

Based on #2304, which should be merged first.
Relevant commit is 76d2c3b

Ran qps_test 100 times through TSAN - some errors, nothing related to these locks however.

(bugs filed for the errors seen)


text:
Added gcc11 and clang12 tests

Update the platforms for C++ portability test to reflect our C++ requirement

Test with the oldest and latest of gcc (4.9 and 11)
Test with the oldest and latest of clang (3.4 and 12)

Removing some not-that-useful tests (gcc 7.4, clang 3.0 and 4.0) because the portability test already spent over 7 hours to finish so I need to remove least useful tests not to increase the total test time.

Update the platforms for C++ portability test to reflect our C++ requirement

Test with the oldest and latest of gcc (4.9 and 11)
Test with the oldest and latest of clang (3.4 and 12)

Removing some not-that-useful tests (gcc 7.4, clang 3.0 and 4.0) because the portability test already spent over 7 hours to finish so I need to remove least useful tests not to increase the total test time.

+1 to making sure the total runtime doesn't increase.

clang 3.4 isn't capable of building gRPC with Abseil now throwing an error
/var/local/git/grpc/third_party/abseil-cpp/absl/numeric/internal/bits.h:305:1: error: constexpr function never produces a constant expression [-Winvalid-constexpr]

hmm clang 3.7 doesn't build protobuf
In file included from /var/local/git/grpc/third_party/protobuf/src/google/protobuf/any.h:38:
/var/local/git/grpc/third_party/protobuf/src/google/protobuf/message_lite.h:208:13: error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]
  constexpr MessageLite() {}
            ^

grpc_portability : running

grpc_portability: running

authors: jtattermusch veblush


text:
Revert "added grpclb support to sockaddr resolver"

Reverts grpc/grpc#5933

This PR broke the build: it conflicts with another change that removed a variable this change depends on.

You were 30 seconds faster than I was in finding the root cause :-).

When restoring, please move URI parsing to the URI parser.

I'll wait for some tests to become green and then I'll merge.

(IOW: query parts should be part of grpc_uri, instead of having a different potentially incompatible parser in each resolver).

@dgquintas  FYI

authors: ctiller jtattermusch


text:
Orb labels not aligned properly

There is logic to measure text size, and size the orb accordingly, but the label itself is mis-positioned..

Seems to be caused by bad x, y calc, and the fact it defaults to Lucida font, which doesn't always exist (causing rendered size to be off)..


text:
Warn for errors from PhantomJS

This helps find issues where files failed to load, which usually causes the PhantomJS process to timeout, without any indicator of the underlying problem.
Any reason not to add this?

Looks like a good addition to me. I´ve hit this more than once, and don't know how many hours of debugging have been wasted caused by a file not loading.

authors: asciidisco jzaefferer

repo: gruntjs/grunt-contrib-qunit


text:
HTTPS options ignored

I'm trying to configure the tast to run under https but can't make it work.
I've added the options settings on task level and one thing that is having effect is port option.
The protocol option is ignored as well as key and cert options. So adding them does nothing except when path to file is not correct the grunt task is throwing missing file error so this is not completely ignored.
Please tell me if this should work or I'm missing something. All plugins are up to date.
Here's my watch part of grunt file. Same effect with or without .toString().
watch : {
    css : {
        files : [ 'css/changes.css' ],
        options: {
            livereload: true,
            key: grunt.file.read('/path/to/ssl.key').toString(),
            cert: grunt.file.read('/path/to/ssl.crt').toString()
        },
    },
},

The grunt plugin version:
"grunt": "~0.4.5",
"grunt-contrib-watch": "~0.6.1",

+1

I can confirm this with 0.6.1, the following configuration is ignored:
options: {
  spawn: false,
  interrupt: true,
  livereload: {
    port: 9000,
    key: grunt.file.read('path/to/ssl.key')
  }
}

Also, there is no option to pass the keystore password.

authors: akoskm ekeren pawelphilipczyk

repo: gruntjs/grunt-contrib-watch


text:
Add terraform command validation

Description
If you specify a misspelled root command, terragrunt does not immediately return an error instead will perform various operations, such as terragrunt init or initialization of the AWS S3 bucket before returning an error.
Related Issues
Fixes #438

@MoonMoon1919 , thanks for the review!

Resolved in v0.50.5 release.

There is no login command, is there are reason for that?

authors: KiraLT levkohimins

repo: gruntwork-io/terragrunt


text:
🛑 kinderundjugendtanz.at is down

In b2b769a, kinderundjugendtanz.at (https://kinderundjugendtanz.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kinderundjugendtanz.at is back up in 5866f55.


text:
🛑 bretterhofer.at is down

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

HTTP code: 0
Response time: 0 ms

Resolved: bretterhofer.at is back up in 92e944e.


text:
🛑 volkstanz.st is down

In 038a3e4, volkstanz.st (https://volkstanz.st) was down:

HTTP code: 0
Response time: 0 ms

Resolved: volkstanz.st is back up in f02770d.


text:
🛑 kinderundjugendtanz.at is down

In a36624e, kinderundjugendtanz.at (https://kinderundjugendtanz.at) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kinderundjugendtanz.at is back up in 65e01e8.


text:
🛑 bretterhofer.at is down

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

HTTP code: 0
Response time: 0 ms

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


text:
🛑 h4.bretterhofer.at is down

In 5be2658, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h4.bretterhofer.at is back up in 7078d07.


text:
🛑 h4.bretterhofer.at is down

In 4e74086, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

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


text:
🛑 h4.bretterhofer.at is down

In 78fceb1, h4.bretterhofer.at (https://h4.bretterhofer.at/toggle.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h4.bretterhofer.at is back up in 1602ee1.


text:
🛑 h4.bretterhofer.at is down

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

HTTP code: 500
Response time: 464 ms

Resolved: h4.bretterhofer.at is back up in 53a971f after 48 minutes.


text:
utils/export.py in wrong folder and cannot access libraries

Hi,
While trying to convert the .pt to .ply file using the script in utils/export.py, I encountered a few import related errors.
Traceback (most recent call last):
  File "/home/jovyan/gsgen/utils/export.py", line 2, in <module>
    import numpy as np
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/__init__.py", line 144, in <module>
    from . import lib
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/lib/__init__.py", line 25, in <module>
    from . import index_tricks
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/lib/index_tricks.py", line 12, in <module>
    import numpy.matrixlib as matrixlib
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/matrixlib/__init__.py", line 4, in <module>
    from . import defmatrix
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/matrixlib/defmatrix.py", line 12, in <module>
    from numpy.linalg import matrix_power
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/linalg/__init__.py", line 73, in <module>
    from . import linalg
  File "/opt/conda/envs/gsgen/lib/python3.10/site-packages/numpy/linalg/linalg.py", line 20, in <module>
    from typing import NamedTuple, Any
  File "/home/jovyan/gsgen/utils/typing.py", line 12, in <module>
    from typing import (
ImportError: cannot import name 'Any' from partially initialized module 'typing' (most likely due to a circular import) (/home/jovyan/gsgen/utils/typing.py)

Traceback (most recent call last):
  File "/home/jovyan/gsgen/utils/export.py", line 6, in <module>
    from gs.gaussian_splatting import GaussianSplattingRenderer
  File "/home/jovyan/gsgen/utils/gs/gaussian_splatting.py", line 6, in <module>
    from utils.camera import PerspectiveCameras
ModuleNotFoundError: No module named 'utils'

Moving export.py to /gsgen and then installing the plyfile library seemed to fix this issue.

Hi coolkite,
This issue can be solved by setting the PYTHONPATH env var:
export PYTHONPATH="."

or
PYTHONPATH="." python utils/export.py <your_ckpt> --type ply

i still got this problem after the operation according to the requirements

Moving the export file outside the utils directory into the gsgen folder
worked for me.
On Fri, Oct 13, 2023 at 4:27 AM Deng_Yao @.***> wrote:

i still got this problem after the operation according to the requirements
[image: image]
https://user-images.githubusercontent.com/87062331/274842794-b880e2ad-12ff-41b8-bb64-064cd34e1e52.png
—
Reply to this email directly, view it on GitHub
https://github.com/gsgen3d/gsgen/issues/13#issuecomment-1761121417, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AK22S65BZTSHO2VGZHCECADX7D3NPAVCNFSM6AAAAAA54LGT32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRRGEZDCNBRG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

I run into the first problem too, didn't forget to set the pythonpath.
PYTHONPATH="." python utils/export.py /mnt/c/Users/Andy
/Documents/gsgen/checkpoints/baby_dragon_with_sunglasses_and_a_red_top_hat/2023-11-05/232556/ckpts/step_14000.pt --ty
pe ply
Traceback (most recent call last):
  File "/mnt/c/Users/Andy/Documents/gsgen/utils/export.py", line 2, in <module>
    import numpy as np
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/__init__.py", line 144, in <module>
    from . import lib
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/lib/__init__.py", line 25, in <module>
    from . import index_tricks
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/lib/index_tricks.py", line 12, in <module>
    import numpy.matrixlib as matrixlib
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/matrixlib/__init__.py", line 4, in <module>
    from . import defmatrix
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/matrixlib/defmatrix.py", line 12, in <module>
    from numpy.linalg import matrix_power
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/linalg/__init__.py", line 73, in <module>
    from . import linalg
  File "/home/user/miniconda3/envs/gsgen/lib/python3.10/site-packages/numpy/linalg/linalg.py", line 20, in <module>
    from typing import NamedTuple, Any
  File "/mnt/c/Users/Andy/Documents/gsgen/utils/typing.py", line 12, in <module>
    from typing import (
ImportError: cannot import name 'Any' from partially initialized module 'typing' (most likely due to a circular import) (/mnt/c/Users/Andy/Documents/gsgen/utils/typing.py)

Are there any other tips you have?

Using python -m utils.export <your_ckpt> --type <export_type> will solve this problem.

Using python -m utils.export <your_ckpt> --type <export_type> will solve this problem.

Yes, that worked for me, thanks a lot! Could you also tell me why that is, so I can learn what happened (wrongly) please?

The file typing.py shares the same name with python built-in typing package, the -m flag tells python to load from the current working directory first. You can refer official documentation for details.

The file typing.py shares the same name with python built-in typing package, the -m flag tells python to load from the current working directory first. You can refer official documentation for details.

Thanks!

authors: Iliceth Taxalfer coolkite heheyas


text:
Add support for validation and custom types

Add some sort of hook or attribute to plug validation into the parser pipeline
similar some similar frameworks use attributes or factory registration to allow an entrypoint for custom validation and type mapping (DI support would be awesome as well ;) )
a typical and widely used usage scenario for this would be filesystem path validation and mapping to IO classes such as FileInfo / DirectoryInfo
an seemingly easy way to  to add this type of validation functionality  would be to allow validation attributes  that inherit from a validation base class or interface and  run custom  or pre-written code
some examples of validation provided in similar frameworks are
[FileExists]
[DirectoryExists]
[FileNotExists]
[DirectoryNotExists]
[RegExValidation]

Powerargs provides a special class called a Reviver for custom type mapping  as well  that the framework looks for to try and map values to a custom or complex type ie  path string  => FileInfo
It is very hard to find a framework that does all 3 of these well currently and make this library a go to framework for myself and many other developers i am sure
as CLP 2.x is still in beta and major rewrite phase i think now would be a good time to look at feature expansion as well to increase the power of this framework

IMHO this would be overkill and it destroys the single-responsibility-principle aspect of this library.

@stanislavromanov what if it was set up to allow you to plug in an existing validation library (e.g. FluentValidation) that's run after all parsing or after each argument is parsed? The validations mentioned in the OP would either be built in (but optional) or compiled to a separate nuget and you could always design your own.

@stanislavromanov,  i agree and disagree with you on this,  without some sort of validation mechanism or custom mapping mechanism it really limits what can be used as an argument  ie : FileInfo DirectoryInfo mapping,  DateTime , TimeSpan, DateTimeOffset , are a few examples for mapping ,   being able to validate path exists is a good example of a custom validation , or an argument is in specified range .. I don't think allowing business rules in your parsing pipeline violates SRP and is a quite common requirement and a feature of many libraries,

+1 from me.
If I have to do my own validation, not only do I need to write code for annoying things like parsing and regex matching, I also don't get the benefits of automatic help text display on parsing errors (including text that explains the exact validation that failed).

Python does this using the type= option.
https://docs.python.org/2/library/argparse.html#type

this project is dead , and has moved to https://github.com/commandlineparser/commandline

authors: clmcgrath donnyv nemec ohadschn stanislavromanov

repo: gsscoder/commandline


text:
Fix 2025 deprecation warning

I think this will also fix https://github.com/gtdiehl/iotawatt_ha/issues/33

Also includes https://github.com/gtdiehl/iotawatt_ha/pull/41


text:
Debug info for panic in FFI

Hi.
I had a lot of trouble to debug this issue, so instead of just having "Uncaught panic, exiting", it would be nice to have more info maybe the stack trace, to be able to debug.
Thanks.

This not under gir control, see https://github.com/gtk-rs/glib/blob/master/src/source.rs#L75-L85

I know this message comes from this code, but perhaps gir could generate code using catch_unwind() or something.
Or perhaps in the code you mentioned we should get the stack trace in the condition using libbacktrace.

Need of CallbackGuard will be removed in 1-2 rust stable release,
as rust will be do it yourself, then I hope RUST_BACKTRACE will works as usual.
See end of https://github.com/gtk-rs/glib/pull/250.

@antoyo As you have panic test case, can you check that panic will be caught without this line https://github.com/gtk-rs/gio/blob/master/src/auto/socket_listener.rs#L99 and that RUST_BACKTRACE=1 works as usual ?

I mean that unwinding already landed in last stable (second time), we just waiting to be sure that it will be not reverted again.

Yeah, I see the backtrace on Rust nightly.

Thanks for confirming, so we just wait for stable 1.26.0 and remove CallbackGuard again

I mean that unwinding already landed in last stable (second time)

It was not ready for 1.25 unfortunately

Then we better wait for stable 1.27.0

authors: EPashkin antoyo sdroege

repo: gtk-rs/glib


text:
gtk: specify template as an attribute of CompositeTemplate

The source can be a file, a resource, or a string.
WIP: because I only quickly tested the file case using the example file
Also, it would be great to automagically hook into class_init instead of requiring to call template_init, but I have no idea on how to do that

CI is unhappy though:
error[E0599]: no method named `init_template` found for reference `&InitializingObject<ExApplicationWindow>` in the current scope
   --> examples/src/bin/composite_template.rs:56:17
    |
56  |             obj.init_template();
    |                 ^^^^^^^^^^^^^ method not found in `&InitializingObject<ExApplicationWindow>`
    |
   ::: /__w/gtk-rs/gtk-rs/glib/src/subclass/types.rs:383:1
    |
383 | pub struct InitializingObject<T: ObjectType>(Borrowed<T>);
    | ----------------------------------------------------------
    | |
    | doesn't satisfy `_: IsA<gtk::Widget>`
    | doesn't satisfy `_: gtk::WidgetExt`
    |
    = note: the method `init_template` exists but the following trait bounds were not satisfied:
            `InitializingObject<ExApplicationWindow>: IsA<gtk::Widget>`
            which is required by `InitializingObject<ExApplicationWindow>: gtk::WidgetExt`
            `&InitializingObject<ExApplicationWindow>: IsA<gtk::Widget>`
            which is required by `&InitializingObject<ExApplicationWindow>: gtk::WidgetExt`

error: aborting due to previous error

CI is unhappy though:
error[E0599]: no method named `init_template` found for reference `&InitializingObject<ExApplicationWindow>` in the current scope
   --> examples/src/bin/composite_template.rs:56:17
    |
56  |             obj.init_template();
    |                 ^^^^^^^^^^^^^ method not found in `&InitializingObject<ExApplicationWindow>`
    |
   ::: /__w/gtk-rs/gtk-rs/glib/src/subclass/types.rs:383:1
    |
383 | pub struct InitializingObject<T: ObjectType>(Borrowed<T>);
    | ----------------------------------------------------------
    | |
    | doesn't satisfy `_: IsA<gtk::Widget>`
    | doesn't satisfy `_: gtk::WidgetExt`
    |
    = note: the method `init_template` exists but the following trait bounds were not satisfied:
            `InitializingObject<ExApplicationWindow>: IsA<gtk::Widget>`
            which is required by `InitializingObject<ExApplicationWindow>: gtk::WidgetExt`
            `&InitializingObject<ExApplicationWindow>: IsA<gtk::Widget>`
            which is required by `&InitializingObject<ExApplicationWindow>: gtk::WidgetExt`

error: aborting due to previous error

Also, it would be great to automagically hook into class_init instead of requiring to call template_init, but I have no idea on how to do that

I think this may be possible through some abuse of specialization... but that won't be stable any time soon.

@sdroege @GuillaumeGomez can we get this one merged so that both gtk3 & gtk4 composite templates support are synced

Ah I thought I merged it already. Sorry!

authors: bilelmoussaoui ids1024 pbor sdroege

repo: gtk-rs/gtk-rs


text:
Fix clippy warnings

cc @GuillaumeGomez

Fixed, I forgot regenerate sys in #58

Thanks!

authors: EPashkin GuillaumeGomez

repo: gtk-rs/sourceview


text:
Document the ClearlyDefined certifier

Closes #131

Added link to configuration guide
Added table of supported command line argument.
Changed Title
Link to clearlydefined.io
Removed official doc link
Added third option to integrate ClearlyDefined into Guac
Formatted document using Prettier
committed along with signoff and gpg-sign

DONE 👍

Ran through Prettier. Came out exactly the same.
Squashed all commits into the initial commit. Kept the commit message same as initial commit.
Added sign off and gpg-key
force pushed the branch

Ran through Prettier. Came out exactly the same.

It shouldn't have. Prettier will wrap lines at 80 characters if you use npx --yes prettier --write --prose-wrap always *.md, which is what the CI build (which just failed) does. Looking at your file, there are still several lines longer than 80 characters

Will I be receiving a swag for the contributions ?

You only need to ask once. I'll send the form to the email address you used for your commit.

authors: Ritesh-Udgata funnelfiasco

repo: guacsec/guac-docs


text:
Is it possible to use a non GPL db?

We have a hard requirement to not use GPL software, it is possible to use a different graph db like ArangoDB which has an Apache license?

Would also be interested to add a non Neo4J DB of various flavors (no specific preference as long as FOSS license is available).

Yup it should be possible to do that! Currently we are doing this with neo4j due to familiarity and availability of the GCP marketplace to run the service. If folks have suggestions and would like to work on it, please do put them here and we can explore what would work! Contributions much welcome! We do have an interface for the assembler (the graph DB portion), and so as long as these can be translated to the creation queries of another DB, it should work seamlessly.

authors: anoop2811 lumjjb tomthebuzz

repo: guacsec/guac


text:
Blank Page After Deployment

Hi,
First of all thanks for this project and you contribution.
the problem
I've been trying to work with it but i've encountered a problem in deployment.
The stack is deployed but I get blank Page when accessing the KibanaURL (plain, with port 8080 and with /__es? path).
the environment
These are my subnets configurations:
Name  | subnet id | AZ | default | auto assign public ip | ipv6
Cloud C  | 172.31.16.0/20 | eu-west-1c | Yes | Yes | No
Cloud B  | 172.31.0.0/20 | eu-west-1b | Yes | Yes | No
Cloud A | 172.31.32.0/20 | eu-west-1a | Yes | Yes | No
The the stack configuration I've mentiond all 3 subnets under private and public subnets.
The private load balancer is getting *InService * status
The public load balancer is getting OutOfService status
Attempts for resolution

I've tried to config the subnets differently without success
I've tried adding 3 more subnets for only private mode
I've tried to use .json file from kibana4.4 branch
I've tried to modify the yaml to explicitly mention the AZ

Related issues
#47
#25
Any help or guidance will be amazing
Thanks

Can you login to the boxes and check for errors in any log files eg. /var/log/syslog ? When logged in also try to connect to the HTTP endpoint using curl. eg curl http://localhost:8080. Let me know what you find.

Hi,
This is the syslog from kibana instance:
c 21 16:02:20 ip-172-31-12-20 logcabin[27771]: events.js:141
Dec 21 16:02:20 ip-172-31-12-20 logcabin[27771]:       throw er; // Unhandled 'error' event
Dec 21 16:02:20 ip-172-31-12-20 logcabin[27771]:       ^
Dec 21 16:02:20 ip-172-31-12-20 logcabin[27771]: Error: connect ECONNREFUSED 127.0.0.1:9200
Dec 21 16:02:20 ip-172-31-12-20 logcabin[27771]:     at Object.exports._errnoException (util.js:870:11)
Dec 21 16:02:20 ip-172-31-12-20 logcabin[27771]:     at exports._exceptionWithHostPort (util.js:893:20)
Dec 21 16:02:20 ip-172-31-12-20 logcabin[27771]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
Dec 21 16:02:20 ip-172-31-12-20 systemd[1]: logcabin.service: Main process exited, code=exited, status=1/FAILURE
Dec 21 16:02:20 ip-172-31-12-20 systemd[1]: logcabin.service: Unit entered failed state.
Dec 21 16:02:20 ip-172-31-12-20 systemd[1]: logcabin.service: Failed with result 'exit-code'.
Dec 21 16:02:20 ip-172-31-12-20 systemd[1]: logcabin.service: Service hold-off time over, scheduling restart.
Dec 21 16:02:20 ip-172-31-12-20 systemd[1]: Stopped logcabin.service.
Dec 21 16:02:20 ip-172-31-12-20 systemd[1]: Started logcabin.service.
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]: Logcabin starting...
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]: Google OAuth2 authentication used
Dec 21 16:02:21 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:21Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:21 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:21Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]: Logcabin listening on 8080
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]: events.js:141
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]:       throw er; // Unhandled 'error' event
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]:       ^
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]: Error: connect ECONNREFUSED 127.0.0.1:9200
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]:     at Object.exports._errnoException (util.js:870:11)
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]:     at exports._exceptionWithHostPort (util.js:893:20)
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27792]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
Dec 21 16:02:21 ip-172-31-12-20 systemd[1]: logcabin.service: Main process exited, code=exited, status=1/FAILURE
Dec 21 16:02:21 ip-172-31-12-20 systemd[1]: logcabin.service: Unit entered failed state.
Dec 21 16:02:21 ip-172-31-12-20 systemd[1]: logcabin.service: Failed with result 'exit-code'.
Dec 21 16:02:21 ip-172-31-12-20 systemd[1]: logcabin.service: Service hold-off time over, scheduling restart.
Dec 21 16:02:21 ip-172-31-12-20 systemd[1]: Stopped logcabin.service.
Dec 21 16:02:21 ip-172-31-12-20 systemd[1]: Started logcabin.service.
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27803]: Logcabin starting...
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27803]: Google OAuth2 authentication used
Dec 21 16:02:21 ip-172-31-12-20 logcabin[27803]: Logcabin listening on 8080
Dec 21 16:02:22 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:22Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:22 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:22Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:23 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:23Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:23 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:23Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:24 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:24Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:24 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:24Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:26 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:26Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:26 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:26Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:27 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:27Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:27 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:27Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:28 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:28Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:28 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:28Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:29 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:29Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:29 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:29Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:31 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:31Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:31 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:31Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:32 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:32Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:32 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:32Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:32 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:32Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:32 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:32Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}
Dec 21 16:02:33 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:33Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"Unable to revive connection: http://localhost:9200/"}
Dec 21 16:02:33 ip-172-31-12-20 kibana5[26908]: {"type":"log","@timestamp":"2017-12-21T16:02:33Z","tags":["warning","elasticsearch","admin"],"pid":26908,"message":"No living connections"}

its private ip is 172.31.12.20

These are the instance permissions
Ports | Protocol | Source | elk-abc-ElkSecurityGroup-1AR94VO00LOT6
8080 | tcp | sg-xxxx1 | ✔
22 | tcp | 0.0.0.0/0 | ✔
6379 | tcp | sg-xxxx2 | ✔
9300-9400 | tcp | sg-xxxx3 | ✔

netstat
ubuntu@ip-172-31-12-20:~$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    200 ip-172-31-12-20.eu-:ssh static-37-142-40-:33168 ESTABLISHED
tcp6       0      0 ip-172-31-12-20.e:44064 52.119.240.0:https      ESTABLISHED
tcp6       0      0 ip-172-31-12-2:http-alt ip-172-31-34-61.e:60588 TIME_WAIT
tcp6       0      0 ip-172-31-12-2:http-alt ip-172-31-34-61.e:60570 TIME_WAIT
tcp6       0      0 ip-172-31-12-2:http-alt ip-172-31-27-14.eu:6587 TIME_WAIT
tcp6       0      0 ip-172-31-12-2:http-alt ip-172-31-27-14.eu:6581 TIME_WAIT
tcp6       0      0 ip-172-31-12-2:http-alt ip-172-31-27-14.eu:6601 TIME_WAIT
tcp6       0      0 ip-172-31-12-2:http-alt ip-172-31-34-61.e:60578 TIME_WAIT
tcp6       1      0 localhost:53400         localhost:9200          CLOSE_WAIT
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  3      [ ]         DGRAM                    826      /run/systemd/notify
unix  2      [ ]         DGRAM                    82431    /run/user/1000/systemd/notify
unix  2      [ ]         DGRAM                    836      /run/systemd/journal/syslog
unix  10     [ ]         DGRAM                    837      /run/systemd/journal/dev-log
unix  7      [ ]         DGRAM                    840      /run/systemd/journal/socket
unix  2      [ ]         STREAM     CONNECTED     14459
unix  2      [ ]         STREAM     CONNECTED     13402
unix  2      [ ]         STREAM     CONNECTED     13346
unix  3      [ ]         STREAM     CONNECTED     14968
unix  3      [ ]         STREAM     CONNECTED     101713   /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    14465
unix  2      [ ]         DGRAM                    14505
unix  2      [ ]         STREAM     CONNECTED     70757    /run/systemd/private
unix  2      [ ]         STREAM     CONNECTED     12152
unix  2      [ ]         STREAM     CONNECTED     44297
unix  3      [ ]         STREAM     CONNECTED     14473
unix  3      [ ]         STREAM     CONNECTED     14511    /var/run/dbus/system_bus_socket
unix  2      [ ]         DGRAM                    10489
unix  3      [ ]         STREAM     CONNECTED     102409
unix  2      [ ]         STREAM     CONNECTED     71083    /run/systemd/private
unix  2      [ ]         STREAM     CONNECTED     70371    /run/systemd/private
unix  3      [ ]         STREAM     CONNECTED     14508
unix  2      [ ]         DGRAM                    14496
unix  2      [ ]         DGRAM                    28127
unix  3      [ ]         STREAM     CONNECTED     14969    /var/run/dbus/system_bus_socket
unix  2      [ ]         STREAM     CONNECTED     15583
unix  2      [ ]         STREAM     CONNECTED     9841
unix  3      [ ]         STREAM     CONNECTED     14509
unix  2      [ ]         STREAM     CONNECTED     14568
unix  2      [ ]         STREAM     CONNECTED     13601
unix  2      [ ]         DGRAM                    14727
unix  3      [ ]         DGRAM                    11050
unix  2      [ ]         STREAM     CONNECTED     45769
unix  3      [ ]         STREAM     CONNECTED     81534
unix  2      [ ]         DGRAM                    11044
unix  3      [ ]         DGRAM                    11051
unix  3      [ ]         DGRAM                    11048
unix  3      [ ]         DGRAM                    9845
unix  3      [ ]         DGRAM                    9846
unix  2      [ ]         DGRAM                    81406
unix  3      [ ]         DGRAM                    11049
unix  3      [ ]         STREAM     CONNECTED     75537
unix  2      [ ]         DGRAM                    14723
unix  2      [ ]         DGRAM                    81481
unix  3      [ ]         STREAM     CONNECTED     81468
unix  2      [ ]         DGRAM                    14275
unix  3      [ ]         STREAM     CONNECTED     14840    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     81535
unix  2      [ ]         DGRAM                    81474
unix  3      [ ]         STREAM     CONNECTED     14510    /var/run/dbus/system_bus_socket
unix  2      [ ]         STREAM     CONNECTED     45524
unix  3      [ ]         STREAM     CONNECTED     13432
unix  3      [ ]         STREAM     CONNECTED     82401    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     14839
unix  2      [ ]         STREAM     CONNECTED     9435
unix  3      [ ]         STREAM     CONNECTED     73257    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    72919
unix  2      [ ]         STREAM     CONNECTED     11029
unix  2      [ ]         DGRAM                    72948

Hi @satterly,
Any further ideas or guidence :)

authors: satterly talbenbasat

repo: guardian/elk-stack


text:
Testing: update target SauceLabs browsers

The new minimum supported versions are FF 36 and Chrome 4.
Updates the Readme and the SauceLabs matrix

:+1:

repo: guardian/scribe


text:
🛑 Sefaz - Mato Grosso is down

In 06c6402, Sefaz - Mato Grosso (https://onboardapi.guichepass.com.br/sefaz?code=5) was down:

HTTP code: 500
Response time: 1400 ms

Resolved: Sefaz - Mato Grosso is back up in 3eb4de7.

repo: guichevirtual/statuspage


text:
remove restriction on gulp-autoprefixer?

I'm going off of the cautionary statement here (far bottom of the page) that gulp-autoprefixer does not retain line information to accurately show sourcemaps.
Sourcemaps seem to work fine with this code:
import autoprefixer from 'gulp-autoprefixer';
import browserSync from 'browser-sync';
import gulp from 'gulp';
import minify from 'gulp-clean-css';
import plumber from 'gulp-plumber';
import rename from 'gulp-rename';
import sass from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';

gulp.task('styles', done => {
	gulp.src('./_sass/theme.scss')
		.pipe(plumber())
		.pipe(sourcemaps.init({ loadMaps: true }))
		.pipe(sass())
		.pipe(autoprefixer('last 2 versions', '> 5%'))
		.pipe(rename({ suffix: '.min' }))
		.pipe(minify())
		.pipe(sourcemaps.write('./'))
		.pipe(gulp.dest(output))
		.pipe(browserSync.stream());
	done();
});

versions:
"gulp-autoprefixer": "^7.0.1",
"gulp": "^4.0.2",
"gulp-sourcemaps": "^2.6.5"

I don't think this makes setting up gulp with autoprefixer any easier or harder, but if someone can confirm this working it may be time to remove the restriction.

That wiki just needs to go away. Also, I suggest you fix your gulp syntax if you do further examples in the future: 1. you need to return your stream, not call the done function in a stream-based task (that is all sorts of broken) and 2. gulp 4 already has built-in sourcemap support.

authors: phated sol-idsnake

repo: gulp-sourcemaps/gulp-sourcemaps

license: isc


text:
Adds a git.add step in order to work on windows and linux

the git.commit command as currently stated doesn't work on all environments. With windows and git version 1.9.5.msysgit.1 it works but with centos and git version 1.8.3.1 it doesn't. By adding the git.add() step it works in both environments

The recipe was renamed: would you be able to update this PR to change the correct file?

+1
Thanks, @klausbayrhammer, I had this issue last night when I tried this recipe.

In the future, leave a comment when you push a new commit: Github sends notifications for comments but not updates!

authors: alferov callumacrae klausbayrhammer

repo: gulpjs/gulp


text:
当我设置了存储路径后，启动app报错

当我设置了存储路径后，app报错日志如下：
2021-09-03 11:10:53.194 25440-25488/org.litepal.litepalsample E/SQLiteLog: (14) cannot open file at line 38589 of [b2325a6e1c]
2021-09-03 11:10:53.194 25440-25488/org.litepal.litepalsample E/SQLiteLog: (14) os_unix.c:38589: (2) open(/storage/emulated/0/.Sample/cache/databases/sample.db) -
2021-09-03 11:10:53.207 25440-25488/org.litepal.litepalsample E/SQLiteDatabase: Failed to open database '/storage/emulated/0/.Sample/cache/databases/sample.db'.
android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/storage/emulated/0/.Sample/cache/databases/sample.db': Directory /storage/emulated/0/.Sample/cache/databases doesn't exist
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:257)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:210)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:516)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:922)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:902)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:766)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:755)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:378)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:321)
at org.litepal.tablemanager.Connector.getWritableDatabase(Connector.java:58)
at org.litepal.tablemanager.Connector.getDatabase(Connector.java:70)
at org.litepal.litepalsample.activity.SaveSampleActivity$1.run(SaveSampleActivity.java:114)
at java.lang.Thread.run(Thread.java:923)
Caused b

在初始化数据库之后, 操作数据库之前必须要先保证你程序拥有外部文件读写权限才能正常创建外部存储路径下的db文件.
db文件创建的时机有下面三种方式, 必须要在执行下面任意方法之前保证程序拥有外部文件读写权限. 否则请不要将数据库保存在外部存储空间:

LitePal.getDatabase()
LitePalSupport的增删改查方法
LitePal的静态增删改查方法

repo: guolindev/LitePal


text:
Improving accuracy of model

Improving accuracy of model by using euclidean distance between hand landmarks rather than their raw coordinate value. Gestures will be better recognised on any part of the screen.

Hi! I also want to work on this issue and will try my best to solve it, please assign it to me.

Alright, I will assign it to you. However do keep in mind that this is slightly harder to resolve.


text:
Make a dark theme

A good improvement would be to have a button in the top of the page to switch from light to dark theme!

Hii @guvarallo i want to contribute into this can I help into this

Hi @utkarsh4321, sure go ahead

Hii @guvarallo is there any preferred colour scheme for the dark theme so I will start working on it

Hey @utkarsh4321 I think would be cool to also choose the dark theme color scheme

what you want a toggle switch that toggles between dark and light theme or colour selection scheme so that we choose a different colour to change portfolio theme.

repo: guvarallo/selfolio


text:
请问还继续维护吗

请问还继续维护吗

全是接口 404 报错，哈哈

全是接口 404 报错，哈哈

我有维护一个https://github.com/lovelyJason/gmgo-admin，最近写的

authors: HHC26 lovelyJason xmlgrg


text:
Docker Port Mapping not working with bridge

Changing to Bridge mode and making custom container and hosts ports doesn't reflect in the running app. It still uses the old web port.
Mapping:

Log:

The same happens in Host Mode and if I change the port.

Found a mistake in my config

repo: guydavis/machinaris


text:
Is there any way to close an outline row by default?

hello
I create outline rows like this
let row = worksheet.addRow(["data1",""data2"]);
row.outlineLevel = 1
That's code creates an outline group but the group is opened by default.
When I used vba I used to use code to close all groups like this
ActiveSheet.Outline.ShowLevels RowLevels:=1, ColumnLevels:=1
Is there any way to close an outline row by default?
thanks

I found the solution.
if you want to collapse a group just set row.hidden = true

repo: guyonroche/exceljs


text:
Proxying via socks5 (simple ssh tunnel) doesn't work

I can't connect via socks5 proxy. Guzzle version = 6.1.0.
The configuration is done like this:
$http_options['proxy'] = 'tcp://127.0.0.1:12345'

but I get the following error:
failed to open stream: Cannot connect to HTTPS server through proxy [file] <...>/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
I also tried using 'socks5' scheme, but it doesn't seem to be defined:
$http_options['proxy'] = 'tcp://127.0.0.1:12345'

Unable to find the socket transport "socks5" - did you forget to enable it when you configured PHP?
I also tried configuring 'curl' like this:
$http_options['curl'] = [CURLOPT_PROXY => 'socks5://127.0.0.1:12345'];

but this is just ignored by Guzzle.
So how it is supposed to be working?
I should say that making the same request via pure cURL PHP lib or curl command line works fine.

Are you sure that curl is installed correctly for PHP?

Thanks for the quick reply, Michael!
I think yes. At least this snippet works fine:
$ch = curl_init();
 // Simple temp service which returns your IP
$url = 'https://php-onkeltem.c9users.io/ip.php';
// Created using: ssh -f -N -D 12345 user@host
$proxy = 'socks5://127.0.0.1:12345';

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
$curl_scraped_page = curl_exec($ch);
echo $curl_scraped_page;
curl_close($ch);

Any updates?

Same

Maybe Shared hosting CURL limitation on all ports except 80?

So, this is not the first time this issue comes up, but it's not one issue really.
cURL options are not used

failed to open stream: Cannot connect to HTTPS server through proxy [file] <...>/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

Since in this case you don't actually use cURL, it's no surprise that curl options doesn't work for you.
Although stream contexts support proxy option, I am not 100% sure that it supports authentication too.
**So you need to make sure that you actually use the cURL handler."
socks5:// transport doesn't work
I believe you can just use tcp://
Authentication
As said above I am not 100% sure that stream contexts support authentication.
As for cURL, it does, but not sure it understands the tcp://user:pass@host:port form.
See:

https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html
https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html

For the moment you can pass these configurations as curl options.
An alternative solution would be to parse the proxy URL and see if it contains a user/password pair, but that still lacks the authentication method. First I would try using the curl options above (see the PHP constants here: http://php.net/manual/en/curl.constants.php)
/cc @DenoBY

What should I do if just wanna add configuration below.
            $param[CURLOPT_PROXY] = "127.0.0.1";
            $param[CURLOPT_PROXYPORT] = "1080";
            $param[CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5;//this must be added

@sagikazarmark help ...

Hm, it works for me.
ssh -D 8123 $USER@localhost
<?php

require __DIR__.'/vendor/autoload.php';

$client = new GuzzleHttp\Client();

$result = $client->get('https://google.com', ['proxy'=>"socks5://127.0.0.1:8123", 'timeout'=>1]);

echo $result->getBody();

Which PHP version do you use? Are you sure you use the cURL handler?
The timeout operation indicates that Guzzle either tried to connect to the host, but it couldn't (because without the proxy it cannot access the host?) or it connected to the proxy, but for some reasons the HTTP request failed.
If it tried to connect to the proxy without success you would see a message like this:
Uncaught exception 'GuzzleHttp\Exception\ConnectException' with message 'cURL error 7: Failed to connect to 127.0.0.1 port 1080: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'

Well.

I do the test in China. It means google was blocked.

I set the socks5 proxy by shadowsocks. It was a nice tool you can search it on github，the one with defalt rm branch and you can just switch master.

When I use guzzle. I can see it was connected to shadowsocks local client but it just give me a regular cURL timeout error as if I did not use the proxy. But it was fine with php curl_* . Weird.

发自我的 iPhone

在 2017年6月7日，上午1:35，Márk Sági-Kazár notifications@github.com 写道：
Hm, it works for me.
ssh -D 8123 $USER@localhost
get('https://google.com', ['proxy'=>"socks5://127.0.0.1:8123", 'timeout'=>1]);

echo $result->getBody();
Which PHP version do you use? Are you sure you use the cURL handler?

The timeout operation indicates that Guzzle either tried to connect to the host, but it couldn't (because without the proxy it cannot access the host?) or it connected to the proxy, but for some reasons the HTTP request failed.

If it tried to connect to the proxy without success you would see a message like this:

Uncaught exception 'GuzzleHttp\Exception\ConnectException' with message 'cURL error 7: Failed to connect to 127.0.0.1 port 1080: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@itbdw
replace scheme socks5 with socks5h. So try this:
$client = new GuzzleClient();
$result = $client->get($url, ['proxy'=>"socks5h://127.0.0.1:1080", 'timeout'=>1]);

@xjchengo
Great! It works.
When I use curl_*, and add a [CURLOPT_FOLLOWLOCATION=>true] option with socks5://, it failed just like what I encountered with guzzle. socks5h:// works fun.
So, maybe there is something guzzle used changed the curl behavior.
cc  @sagikazarmark

Okay....seems quite strange. I am trying to reproduce these errors for months now without any success. I will give it another shot once 6.3 is released. Thanks for the input.

$result = $client->get('https://google.com', ['proxy'=>"socks5://127.0.0.1:1080", 'timeout'=>1]);

echo $result->getBody();

Then reason that above code works fun for @sagikazarmark but not for @itbdw is DNS difference.
When using socks5, hostname will be resolved locally. GET https://google.com will be redirected to https://www.google.com. But DNS cannot resolve right ip of www.google.com in circumstance of @itbdw. When using socks5h, hostname will be resolved by proxy.

$ch = curl_init('https://google.com');
curl_setopt($ch, CURLOPT_PROXY, "socks5://127.0.0.1:1080");

Because guzzle default allow redirects but curl doesn't. So if above code works, following code may work also.
$result = $client->get('https://google.com', ['proxy'=>"socks5://127.0.0.1:1080", 'timeout'=>1 'allow_redirects' => false]);

echo $result->getBody();

@xjchengo thank you very much for the investigation.

@xjchengo @sagikazarmark
Just like @xjchengo said, when I add a CURLOPT_FOLLOWLOCATION=>true option, same thing happened.
This is the final investigation result I believe. Thanks again to @xjchengo

This issue was automatically classified as stale because it lacks information or cannot be reproduced.
If you think the issue is still valid and/or misclassified, please comment on the issue thread
and provide additional information (if possible).
Also, since the time maintainers can spend on the project is limited, please provide
a possible solution if possible, especially if it involves a platform that we cannot
test ourselves (Windows, very old/specific PHP versions, etc).
Issues marked as stale with no further activity will be marked as rotten
at some point and will automatically be closed within 14 days.
We do this so that we can focus on high priority issues. Thank you for your understanding.

Any update on how to use SOCKS5 proxy with guzzle? None of the above worked for me...
// tried using socks5
'proxy' => 'socks5://localhost:8080',

// tried using socks5h
'proxy' => 'socks5://localhost:8080',

Also tried using ALL_PROXY on my env file
ALL_PROXY=socks5://localhost:8080

This issue is related with libcurl version:
Since 7.21.7 the proxy string supports the socks protocols as "schemes".
https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html

The issue for me is that the socks5:// proxy scheme only works with CurlHandler, which is fine most of the time, until you start using the stream option: Guzzle then transparently switches to the StreamHandler, which supports streaming but does not support socks5:// or socks5h://, and does not seem to support SOCKS5 via the tcp:// scheme either.
So you're using your SOCKS5 proxy with Guzzle and everything works fine. Then you attempt to stream a response and you suddenly get:

Error creating resource: [message] fopen(http://...): failed to open stream: Unable to find the socket transport "socks5h" - did you forget to enable it when you configured PHP?

This is all very confusing and should at least be documented.

@BenMorel If I understand this correctly, this is either allowing the use of the socks5 proxy OR allow for concurrent requests through Guzzle.
Is there ANY way to have them both?

@ndobromirov IIRC, no, this prevents from using socks5 and streaming of the response together.
I'm not sure but this shouldn't prevent from using socks5 and concurrent requests, that are supported by CurlHandler AFAIK (ensure that you have the curl extension installed though!)

Well in my case I have an API that I am consuming concurrently (code-wise) and the total time to fetch responses is increasing linearly.

for me work with SOCK5 protocol. need to setup option like this
$httpClient = new GuzzleHttp\Client([
    'proxy' => '127.0.0.1:1080', //use without "socks5://" scheme
    'verify' => true,
    'curl' => [CURLOPT_PROXYTYPE => 7],
]);

the only way I have to guzzle to work with both streaming and using socks5 is by doing:
        $client = new Client();
        $client->get($url, [
            'curl' => [
                CURLOPT_PROXY => $proxy,
                CURLOPT_FOLLOWLOCATION => true,
                CURLOPT_WRITEFUNCTION => function($curl, $data) {
                    // ... your streaming logic
                    return strlen($data);
                }
            ]
        ]);

Which is basically using underlying curl features.

authors: BenMorel OnkelTem bernardwiesner gpressutto5 itbdw mtdowling ndobromirov nesttle sagikazarmark tone87 xjchengo yoander

repo: guzzle/guzzle


text:
Syntax… bug?

Ever since the release of Guzzle 5, I've been seeing an error with even the smallest test cases.
With the latest 5.x release from GH, here is my test case:
require_once __DIR__ . '/vendor/autoload.php';

use GuzzleHttp\Client;

$ghe1 = new Client([
    'base_url' => ['http://ghe.corp.com/api/v3/', []],
]);

$response = $ghe1->get();

Running from the CLI, I get the following FATAL error:
PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /Library/WebServer/Documents/ghe-issue-migration/vendor/guzzlehttp/guzzle/src/Client.php on line 392
PHP Stack trace:
PHP   1. {main}() /Library/WebServer/Documents/ghe-issue-migration/migrate2.php:0
PHP   2. spl_autoload_call() /Library/WebServer/Documents/ghe-issue-migration/migrate2.php:10
PHP   3. Composer\Autoload\ClassLoader->loadClass() /Library/WebServer/Documents/ghe-issue-migration/migrate2.php:10
PHP   4. Composer\Autoload\includeFile() /Library/WebServer/Documents/ghe-issue-migration/vendor/composer/ClassLoader.php:278

Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /Library/WebServer/Documents/ghe-issue-migration/vendor/guzzlehttp/guzzle/src/Client.php on line 392

Call Stack:
    0.0003     250672   1. {main}() /Library/WebServer/Documents/ghe-issue-migration/migrate2.php:0
    0.0019     430240   2. spl_autoload_call() /Library/WebServer/Documents/ghe-issue-migration/migrate2.php:10
    0.0019     430328   3. Composer\Autoload\ClassLoader->loadClass() /Library/WebServer/Documents/ghe-issue-migration/migrate2.php:10
    0.0019     430464   4. Composer\Autoload\includeFile() /Library/WebServer/Documents/ghe-issue-migration/vendor/composer/ClassLoader.php:278

This points to the following piece of code in the GuzzleHttp\Client class:
/**
 * @deprecated Use {@see GuzzleHttp\Pool} instead.
 * @see GuzzleHttp\Pool
 */
public function sendAll($requests, array $options = [])
{
    (new Pool($this, $requests, $options))->wait();
}

…which appears to be perfectly legit code for my runtime, PHP 5.5.x.
$ php --version
PHP 5.5.19 (cli) (built: Nov 19 2014 14:21:38)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans

Manually editing this code to avoid chaining-from-constructor syntax, the errors go away.
/**
 * @deprecated Use {@see GuzzleHttp\Pool} instead.
 * @see GuzzleHttp\Pool
 */
public function sendAll($requests, array $options = [])
{
    $pool = new Pool($this, $requests, $options);
    $pool->wait();
}

I've been seeing this since five-point-oh-point-oh, but it hasn't been addressed yet, so I figured I should report it. I'm actually quite surprised that this passes the unit test suite.

Weird. I'd be ok with that change if you could send a PR.

I made a fix for this, so hopefully that unblocks you. I don't know why this was an issue. I can't promise that this syntax wont be used again, but if it is, I would suggest opening an issue on php.net.

authors: mtdowling skyzyx


text:
replace the search function with NCBI's Entrez API call to return str…

returns a data.frame containing results similar to the NCBI's page, using the Entrez API (E-utils).
Also prints the url like the old function (not disruptive, but maybe redundant?)

NB in the future we might consider moving some part of the code to an Entrez requester module and make it usable for other types of requests, and separate the code specific to "dbgap.search" from the more general part.


text:
Fixes #131 and removes unused method

SetGamePath isn't referenced anywhere.
SelectDirectoryBtn_OnClick should call DeteremineSystemType() to update Bin path.

I am not accepting PRs for the master branch since the code is getting replaced.


text:
Redshift models for Fake PEs generation.

Description

Read the models given in the link.
Also read the cited papers.
Implement those models in GWKokab.
Generate random numbers from those distributions.
Store those numbers in our injections files along with (m1_source, m2_source, a1, a2, ecc) as new column name "z".
Also store them in posterior by using the truncnorm error. However, look into Amenda's code for adding fake error in redshift.
Modify the config file to give freedom to user to choose any redshift model.

Added in #135

repo: gwkokab/gwkokab


text:
Resize the four panes

Is there a way to adjust the horizontal position of the vertical bars that separate the four debugging panes?
Sometimes file paths are too long, and get truncated. You can only increase the entire atom window by a finite amount without it becoming too inconvenient.

Should be addressed in dc909b1 and will be available in the next release.

authors: ahnbizcad cchamplin

repo: gwomacks/php-debug