Contribute to Open Source. Search issue labels to find the right project for you!

Picker on iOS needs explicit width set, documentation doesn't explain it

facebook/react-native

Description

Picker reference doesn’t indicate that it requires width to be set explicitly. See: https://snack.expo.io/r1orbz1NZ for working example. Remove the width and notice it doesn’t work.

Solution

Explain that width is required for Picker on iOS.

Additional Information

  • React Native version: All with Picker
  • Platform: iOS
  • Development Operating System: macOS
  • Build tools: Snack
Updated 27/06/2017 00:00 1 Comments

Implement Functional Testing

GMOD/Apollo

Functional testing should be incorporated in the development process.

The TestScript.md file should be ‘translated’ for behavior-driven development, for example, using Python libraries and behave.

Some attempt was made at Python libraries for Selenium in 2015, as seen here. Selenium could be used for implementation.

For an example of successful functional testing using behave for other projects at BBOP, see the overview for AmiGO testing pages. This is an example of a behave test for the autocomplete function in AmiGO.

screen shot 2017-06-26 at 3 05 03 pm

Updated 27/06/2017 00:17 13 Comments

gevectorimport doesn't crop features

google/earthenterprise

ne_bounding_box Specifying a bounding box on a polygon vector resource does not crop or clip features. If any part of a polygon is inside the bounding box, then that whole polygon will be included when the resource is built.

REPRO:

  1. Grab the following state boundary dataset: http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip

  2. Define a bounding box to constrain the import to say, the Eastern US States between -85 and -68 degrees longitude. Build the resource:

COMMAND: gevectorimport –layer 0 –filelist /gevol/assets/Resources/Vector/NE_States_Admin1.kvasset/ver001/files.list –output /gevol/assets/Resources/Vector/NE_States_Admin1.kvasset/ver001/product.kvp –encoding ISO 8859-8-I –north_boundary 48 –south_boundary 24 –east_boundary -68 –west_boundary -85

  1. Preview the resource in Fusion (see attached), and note that none of the polygons in the geographical AOI are cropped, even though some of their boundaries fall outside of the bounding box.

EXPECTED BEHAVIOR: Polygons should be clipped exactly along the bounding box. This is especially important when a vector resource consists of say, one large feature, but only a piece of it needs to be imported.

It may be the intended behavior to keep polygon features whole. If so, it should be documented better. The gevectorimport help suggests that it actually does crop features:

usage: gevectorimport [Options] {-o, --output <outfile>} <source file>... 

Options: 
  -e, --encoding <name>        specify text encoding of source file 
  -f, --filelist <file>        text file listing sources to import 
  -l, --layer <layer id>       source layer id to import 
  -q, --query_encodings        dump list of supported encodings 
  -v, --validate               validate command without doing any work 
  -s, --scale <to-meters>      convert to meters while importing 
      --force3D                enforce 3D coordinates 
      --force2D                enforce 2D coordinates 
      --ignore_bad_features    ignore bad features in source 
      --north_boundary <double> Crop to north_boundary (latitude in decimal deg) 
      --south_boundary <double> Crop to south_boundary (latitude in decimal deg) 
      --east_boundary <double> Crop to east_boundary (longitude in decimal deg) 
      --west_boundary <double> Crop to west_boundary (longitude in decimal deg) 
Updated 26/06/2017 21:56

pager not found

justwatchcom/gopass

after installing gopass on macOS I couldn’t run it because of the following error.

$ gopass

Error: exec: "pager": executable file not found in $PATH
$

It’s really hard to find out what this means, Google does not yield any good results since I didn’t know what it’s supposed to do. After reading the source I found out the binary name can be overwritten by the PAGER env variable, so I thought it’s a bash builtin. This showed me that a program like less is meant. Then it’s simple to run gopass. Nevertheless, not the best UX

Updated 26/06/2017 18:40

Comparison of objects containing floats

nlohmann/json

The operator==() method for json objects uses ‘==’ on the underlying number_float_t type. This may result in false negatives and is contrary to the function’s documentation which states “Floating-point numbers are compared indirectly: two floating-point numbers f1 and f2 are considered equal if neither f1 > f2 nor f2 > f1 holds”. Could this behavior be changed to abs(f1 - f2) < std::numeric_limits<number_float_t>::epsilon() ?

Updated 26/06/2017 21:17 4 Comments

Update import documentation for 5 resources

terraform-providers/terraform-provider-google

Update the documentation of 5 more of our importable resources to include Import blocks specifying how to import them.

We now have explicit documentation for:

  • google_compute_route
  • google_compute_target_pool
  • google_dns_managed_zone
  • google_project
  • google_storage_bucket

As in #119, to review:

In each Import block;

  • The fields specified as being used to import a resource should match their names in the schema exactly.
  • The resource address and properties used to perform the example import should be the values used in the example.
  • The properties used to perform an import should not be ambiguous; they should not share the same name, for example.
Updated 26/06/2017 23:25

[Examples] Scalar image function inspector is broken on Py3

enthought/chaco

Running the example raises a ValueError. Py3.6.0 and OSX. See http://docs.enthought.com/chaco/user_manual/annotated_examples.html#scalar-image-function-inspector-py

(empty_py3_env)examples (master)$ python demo/advanced/scalar_image_function_inspector.py 
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/array_data_source.py:123: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._data = newdata
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/traits/trait_handlers.py:1603: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if value in self.values:
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/image_data.py:194: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._data = newdata
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:498: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  for tickpos in mapped_tick_positions]))
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:499: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._tick_label_list = tick_list
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:500: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._tick_label_positions = self._tick_positions
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1308: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1318: UserWarning: findfont: Could not match (['Bitstream Vera Sans'], 'normal', None, 'normal', 500, 10.0). Returning /Library/Fonts/Andale Mono.ttf
  UserWarning)
Traceback (most recent call last):
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 198, in paintEvent
    self.handler.paintEvent(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 50, in paintEvent
    self._enable_window._paint(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/abstract_window.py", line 468, in _paint
    self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 424, in draw
    self._draw(gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 776, in _draw
    self._dispatch_draw(layer, gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 272, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 270, in _dispatch_draw
    component._draw(gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 766, in _draw
    self._dispatch_draw(layer, bb, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 272, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 796, in _dispatch_draw
    handler(gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/base_2d_plot.py", line 204, in _draw_image
    self._render(gc)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 46, in _render
    self._update_polys()
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 86, in _update_polys
    c = Cntr(xg, yg, data, ~mask)
ValueError: Arguments x, y, z, mask (if present) must have the same dimensions.
Traceback (most recent call last):
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 198, in paintEvent
    self.handler.paintEvent(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 50, in paintEvent
    self._enable_window._paint(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/abstract_window.py", line 468, in _paint
    self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 424, in draw
    self._draw(gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 776, in _draw
    self._dispatch_draw(layer, gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 272, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 270, in _dispatch_draw
    component._draw(gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 766, in _draw
    self._dispatch_draw(layer, bb, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 272, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 796, in _dispatch_draw
    handler(gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/base_2d_plot.py", line 204, in _draw_image
    self._render(gc)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 46, in _render
    self._update_polys()
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 86, in _update_polys
    c = Cntr(xg, yg, data, ~mask)
ValueError: Arguments x, y, z, mask (if present) must have the same dimensions.
Traceback (most recent call last):
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 198, in paintEvent
    self.handler.paintEvent(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 50, in paintEvent
    self._enable_window._paint(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/abstract_window.py", line 468, in _paint
    self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 424, in draw
    self._draw(gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 776, in _draw
    self._dispatch_draw(layer, gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 272, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 270, in _dispatch_draw
    component._draw(gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 766, in _draw
    self._dispatch_draw(layer, bb, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 272, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 796, in _dispatch_draw
    handler(gc, view_bounds, mode)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/base_2d_plot.py", line 204, in _draw_image
    self._render(gc)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 46, in _render
    self._update_polys()
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 86, in _update_polys
    c = Cntr(xg, yg, data, ~mask)
ValueError: Arguments x, y, z, mask (if present) must have the same dimensions.
Updated 26/06/2017 15:26

[Examples] Scrollbar example raises RuntimeError on exit

enthought/chaco

Running the example creates an interactive plot and the RuntimeError is only generated when I close the plot. Python 3.6.0, OSX.

(empty_py3_env)examples (master)$ python demo/basic/scrollbar.py 
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/array_data_source.py:123: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._data = newdata
scrollrange: (-2.0, 10.0, 12.0, 1)
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:498: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  for tickpos in mapped_tick_positions]))
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:499: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._tick_label_list = tick_list
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:500: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._tick_label_positions = self._tick_positions
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1308: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1318: UserWarning: findfont: Could not match (['Bitstream Vera Sans'], 'normal', None, 'normal', 500, 10.0). Returning /Library/Fonts/Andale Mono.ttf
  UserWarning)
Exception ignored in: <bound method NativeScrollBar.__del__ of <chaco.plotscrollbar.PlotScrollBar object at 0x124c303b8>>
Traceback (most recent call last):
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/scrollbar.py", line 122, in __del__
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/scrollbar.py", line 115, in destroy
RuntimeError: wrapped C/C++ object of type QResizableScrollBar has been deleted
Updated 26/06/2017 15:13

Allow specifying the start of an isolated range (security.isolated.start)

lxc/lxd

Last time I worked on this issue, was over a year ago, when the documentation wasn’t quite as friendly. Nice job guys on improving it. It’s allowing us to use all those great features you’ve added. But one issue I could never get to work nicely, was initial creation of container with different ids. My first go around, I would use a script, to sed the subuid/gid file to a new initial value, restart lxd service, launch my container with a matching lxc.id_map, sed the values back, restart lxd service again, and move on to the next container. Works fine for one container at a time, but does not scale well and certainly doesn’t work in parallel. Since then, you have come out with security.isolated and a few other things, but for my use case, I use variations of the following simplified: raw.lxc: | lxc.id_map = lxc.id_map = u 0 100000 200 lxc.id_map = g 0 100000 200 lxc.id_map = u 200 200 1800 lxc.id_map = g 200 200 1800 lxc.id_map = u 2000 102000 63536 lxc.id_map = g 2000 102000 63536 With the script, I can vary the first values: containerX u 100000 200 containerY u 100200 200 containerZ u 100400 200

the idea, being that the first 200 uid, are typically id part of the base image, I create a uid/gid on the host named after the container/service, and can more easily view what is doing what. While the isolated map provides security, from container to container, it’s not predictable for creating the host user/group. Would it be possible, to expose more of that LXC functionality to allow this type of use case in LXD. FYI, I’ve tried a few work arounds, above mentioned script, uidmapshift, etc, but none really work when deploying a whole environment with IAC, aka terraform, etc. Hopefully, I just didn’t miss something obvious that already allows it. BTW, https://github.com/sl1pm4t/terraform-provider-lxd has done a great job so far of making a provider for terraform to work with your lxd, in case you hadn’t seen it yet.

Updated 26/06/2017 21:30 10 Comments

Zooming on a ColorBar raises NotImplemented error

enthought/chaco

Panning the colorbar works fine but trying to zoom on the colorbar raises an error. See below for the exact traceback.

This issue might be related to https://github.com/enthought/chaco/issues/5

(empty_py3_env)examples (master)$ python demo/basic/zoomable_colorbar.py 
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/array_data_source.py:123: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._data = newdata
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:498: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  for tickpos in mapped_tick_positions]))
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:499: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._tick_label_list = tick_list
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/axis.py:500: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self._tick_label_positions = self._tick_positions
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1308: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1318: UserWarning: findfont: Could not match (['Bitstream Vera Sans'], 'normal', None, 'normal', 500, 10.0). Returning /Library/Fonts/Andale Mono.ttf
  UserWarning)
/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/kiva/fonttools/font_manager.py:1318: UserWarning: findfont: Could not match (['Bitstream Vera Sans'], 'normal', None, 'normal', 500, 16.0). Returning /Library/Fonts/Andale Mono.ttf
  UserWarning)
Traceback (most recent call last):
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 228, in wheelEvent
    self.handler.wheelEvent(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/qt4/base_window.py", line 118, in wheelEvent
    self._enable_window._handle_mouse_event("mouse_wheel", event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/abstract_window.py", line 349, in _handle_mouse_event
    self.component.dispatch(mouse_event, event_name)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 918, in dispatch
    self._new_dispatch(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 958, in _new_dispatch
    self._dispatch_stateful_event(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/container.py", line 514, in _dispatch_stateful_event
    component.dispatch(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 918, in dispatch
    self._new_dispatch(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 953, in _new_dispatch
    overlay.dispatch(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 918, in dispatch
    self._new_dispatch(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/component.py", line 958, in _new_dispatch
    self._dispatch_stateful_event(event, suffix)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/enable/base_tool.py", line 133, in _dispatch_stateful_event
    handler(event)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/tools/better_zoom.py", line 273, in normal_mouse_wheel
    self.zoom_in()
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/tools/better_zoom.py", line 140, in zoom_in
    self._do_zoom(new_index_factor, new_value_factor)
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/tools/better_zoom.py", line 88, in _do_zoom
    x = x_map.map_data(location[0])
  File "/Users/rahulporuri/.edm/envs/empty_py3_env/lib/python3.6/site-packages/chaco/abstract_colormap.py", line 43, in map_data
    raise NotImplementedError()
NotImplementedError
Updated 26/06/2017 15:04

Wiki documentation

lealeelu/pixi-vn

The wiki should have complete start-to-finish instructions on how a creator would… - [ ] Install everything they need to start working - [ ] How to write a script with all of the currently available functions - [ ] How to add pictures - [ ] How to add scripts - [ ] How to make the story available to others - [ ] Documentation for advanced users (design patterns used and what each class does)

Updated 26/06/2017 14:57

IconClass property of command columns has to be documented and added to MVC server wrappers

telerik/kendo-ui-core

Bug report

The iconClass property used in fix for #2715 is not documented in the API reference and there isn’t a corresponding method for it in the Fluent API. This leads to breaking changes for customers, who wrote code targeting the span element dependent on this property setting.

Also, this example has to be fixed to accommodate the changes in the custom command buttons rendering (and the changes icon classes in the Grid).

Environment

  • Kendo UI version: 2017.2.621

Ticket ID: 1116130

Updated 26/06/2017 15:54

Document usage with styling libraries

styleguidist/react-styleguidist

I’m sue Styleguidist works with most of CSS in JS and styling libraries our of the box but set up could be not obvious. Would be nice to try all of them, find a working set up and document it.

Updated 26/06/2017 14:48

Document the jenkins setup, including the ceajenkins.py script

architecture-building-systems/CEAforArcGIS

Document the Jenkins setup, including the ceajenkins.py script (add it to the repository and create an installation guide).

The goal is to have a set of steps to re-creating a continuous integration server for the CEA should the one currently being used break - the hard drive is probably close to failure and I will be ordering a new one soon: That would be an ideal time to do the documentation.

Updated 26/06/2017 11:48

rule "no-new" examples incorrect

eslint/eslint

What did you do? Please include the actual source code causing the issue.

The example rule no-new specifies

Examples of correct code for this rule: ```js /eslint no-new: “error”/

Thing(); but, if without **new** appear error js class Test { } Test(); ```

Uncaught TypeError: Class constructor Test cannot be invoked without 'new'
    at 1.self-2a6e1f9328605df6da3ed9b2e72f8eefb89782162e8c81b0ac2cedcfa2ac8ebe.js?body=1:3
Updated 26/06/2017 18:33 4 Comments

Update 'debugging using vscode' doc

dotnet/corefx

The documentation on debugging using vscode is a bit out-dated and can be improved: https://github.com/dotnet/corefx/blob/master/Documentation/debugging/unix-instructions.md#using-visual-studio-code

Open the folder containing the source you want to debug in VS Code

Can this be the toplevel corefx folder? Or does this need to be a folder with a csproj? Is debugging limited to source code in that folder?

set program to the full path to corerun in the test directory

There is no corerun in the test directory.

set args to the command line arguments to pass to the test something like: [ “xunit.console.netcore.exe”, “<test>.dll”, “-notrait”, …. ]

An example launch configuration (e.g. for Linux including typical traits) would be nice.

Updated 27/06/2017 00:21 1 Comments

Mention numpy in the docs?

python-pillow/Pillow

I’m new to Pillow, and was trying to convert data from and to Numpy arrays.

Currently searching for numpy in the Pillow docs doesn’t give a single result: http://pillow.readthedocs.io/en/4.1.x/search.html?q=numpy&check_keywords=yes&area=default

With Google I found https://stackoverflow.com/a/384926/498873 which points to http://effbot.org/zone/pil-changes-116.htm which gives what I think is the way to do it now: i = Image.open('lena.jpg') a = numpy.asarray(i) # a is readonly i = Image.fromarray(a)

Is it worth adding that info in a small section “converting to / from Numpy arrays” somewhere in the Pillow docs?

Updated 26/06/2017 09:16

Fix links in the documentation to the examples repo

PMEAL/OpenPNM

Hi everyone, I am Dezhao Huang. I am currently a PhD in mechanical engineering at University of Notre Dame.I am new to OpenPNM. I have already finished the first tutorial to get the resulting pressure gradient across the network, but I don’t know how to visualize it by using the paraview software. I have tried to click the instruction link below, but it does not exist anymore. <img width=“721” alt=“image” src=“https://user-images.githubusercontent.com/23017857/27522765-1405dcca-5a5b-11e7-86ed-d36ebe81ac57.png”> I would be really appreciated if anyone can give me a clue! Thanks!

Updated 26/06/2017 15:01 3 Comments

Versioned Documentation

storybooks/storybook

why

We need a way to document preview releases of storybook. We may also want docs for people using old versions.

what

  • [ ] Docs for the latest stable release of Storybook, statically hosted at https://storybook.js.org
  • [ ] Docs for a preview release, clearly labeled as preview with disclaimers and pointers to the main docs
  • [ ] Docs for previous minor releases of Storybook, with disclaimers and pointers to the main docs
Updated 25/06/2017 23:37 1 Comments

[doc] Wrong words in ScalaWS.md

playframework/playframework

https://www.playframework.com/documentation/2.6.x/ScalaWS#Using-WSClient-with-unreliable-networks

“You should size the pool to leave a safety margin large enough to account for futures, and consider using play.api.libs.concurrent.Futures and a Failsafe Circuit Breaker.”

account for failures – also don’t specify Failsafe, many other circuit breakers as well…

Updated 25/06/2017 22:16

Update ReactiveCocoa documentation to ReactiveSwift

Moya/Moya

The documentation still refers to ReactiveSwift as ReactiveCocoa in both the examples' README as well as the documentation itself (including the document’s name).

This should be updated to use the ReactiveSwift name. Make sure to also fix all references to these documents - it seems like the only reference to it is in the README: https://github.com/Moya/Moya/search?l=Markdown&q=reactivecocoa.md&type=&utf8=✓.

Updated 25/06/2017 21:58

Documentation request: Joining datasets

solvebio/solvebio-r

Hi,

Could you provide an example of how to annotate or join across datasets using the R client?

For example, how could I replicate something like below if I had the datasets “planes” and “flights” saved to a vault?

library(nycflights13) library(dplyr) planes%>% filter(engines==2)%>% left_join(flights)

Thanks!

Iain

Updated 26/06/2017 11:25 3 Comments

doc/lxd-ssl-authentication.md unclear

lxc/lxd

This is a documentation ticket. I noticed that the docs on “LXD REST API’s security done right” is a bit sparse, spread over multiple files and still requiring to delve deep to understand its possibilities and caveats. Assuming a server with lxd called mightyserv and a devs notebook with lxd called devnb and a setup along the following:

### setup mightyserv
mightyserv # lxc config set core.https_address 192.168.1.100:48443 # listen on a nonstandard port
mightyserv # lxc config set core.trust_password MYSECRETPASS
### review mightyserv
mightyserv # lxc config get core.https_address
mightyserv # lxc config get core.trust_password
# setup devnb
lxc remote add mightyserv 192.168.1.100:48443
### review devnb
devnb # lxc remote list
devnb # lxc remote list mightyserv:
devnb # lxc list mightyserv:

i found it hard(er) to find info on the following:

  1. when are certs generated in ~/.config/lxc (on devdb)?
  2. how are these certs generated, how can one force their regeneration (i.e. if the used cipher would develop a major vulnerability)
  3. where are client certificates stored (on mightyserv)?
  4. how do you disable client’s (devnb) to mightyserve, when devdb is identified with its specific certificate? lxc trust remove lxc config trust list
  5. how do you list client certificates? lxc config trust list
  6. why would one not want to open the api port to the world if access to it is protected with a strong cipher (https://github.com/lxc/lxd/blob/master/doc/lxd-ssl-authentication.md)? why bother with a ssh tunnel (https://stgraber.org/2016/04/12/lxd-2-0-remote-hosts-and-container-migration-612/#comment-235914) if access to the api should be similarly secure as with key-based ssh access to the server? (apart from the obvious reasons such as doubling the security layers and protecting from dos attacks)
  7. how does the api server prevent dos attacks? are there i.e. some fail2ban rules that can be used, or is there a way to white-list access from certain ips?
  8. what do people actually use in production to secure their lxd-api instances?
  9. how do you disable adding new clients (on mightyserv)
  10. best practices, or what does the developer team use in production (everything from nonstadanard api port to guarding servers with war elephants)

Maybe additions to https://github.com/lxc/lxd/blob/master/doc/lxd-ssl-authentication.md might be helpful? Or am I missing a document covering the above?

  • https://stgraber.org/2016/03/15/lxd-2-0-installing-and-configuring-lxd-212/
  • https://github.com/lxc/lxd/issues/1858
  • https://github.com/lxc/lxd/blob/master/doc/lxd-ssl-authentication.md
Updated 26/06/2017 02:40 3 Comments

Documentation Inaccessible for some User-agents (403 Forbidden)

saltstack/salt

The documentation pages (eg https://docs.saltstack.com/en/latest/contents.html) return a 403 Forbidden error when the User Agent is set to certain strings, making the documentation inaccessible in some cases for people with visual disabilitites.

User agent strings such as libwww are used by some textual web browsers, which are often used by the visually impaired (or those who just need/prefer to use a console).

I work with a visually impaired engineer who uses the console browser Lynx. He was unable to access the saltstack documentation links I sent him because of this.

His User-Agent header was set to the Lynx default of “Lynx/2.8.9dev.11 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.0.2k”, which returned a 403 when accessing any of the documentation pages. I’ve reproduced this issue in Firefox by using the User Agent Switcher plugin to change my User-Agent string to “libwww-perl 5.820”. Changing the User-Agent to almost anything else (say “Wii 2.0.4.7-7”) displays the documentation pages as expected.

Steps to Reproduce Issue

1) Set the User Agent string in your browser to “libwww-perl 5.820”

2) Browse to https://docs.saltstack.com/en/latest/contents.html

Updated 26/06/2017 16:03 2 Comments

Studio message text syntaxes should be documented

howdyai/botkit

It seems studio message text syntaxes are not properly listed in the documentation, on-site or github. It took me around 30 minutes to find out that a user response variable can be accessed as {{responses.question_1}}. If the studio message text syntaxes are documented, it will be easier for developers to edit scripts on the studio. I am editing the onboarding script now. I would like to know the syntax for the user’s name i.e. the equivalent of message.original_message.data.personDisplayName.

Updated 26/06/2017 14:33

Update documentation on Verto 'relative-link' behaviour

uccser/cs-unplugged

I’ve configured the relative-link Verto tag to use the following HTML template:

{% autoescape false %}<a href="{{ '{% url' }} {{ link_path }} {{ '%}' }}">{{ text }}</a>{% endautoescape %}

So with the following Markdown:

You need to find the factors of the number (see [challenge 4.1]('topics:programming_challenge' 'unplugged-programming' 'check-if-divisor')).

The following HTML is created:

You need to find the factors of the number (see <a href="/en-gb/topics/unplugged-programming/programming/check-if-divisor">challenge 4.1</a>).

This is really useful as the URLs are less likely to break, however we need to explain the basics of the Django URL command to authors.

Updated 25/06/2017 07:10

Finish iteration 4 and Project

alonshmilo/MedicalData_jce

Issue: Finish Iteration 3

Explanation:

Making sure all assignments are done, and on time! According to checklist.

Checklist:

  • [ ] All issues closed
  • [ ] Project book - updates
  • [ ] Presentation
  • [ ] Exam preparation
  • [ ] Wiki pages:
    • [ ] Iteration 4 - Fill all gaps
    • [ ] Sumamry
  • [ ] Poster:
    • [ ] File
    • [ ] Print
  • [ ] Milestone closed
  • [ ] Notification on Diary’s site
  • [ ] Submission on Project’s site:
    • [ ] Stav
    • [ ] Alon
  • [ ] Update links to wiki pages in first README

<!— @huboard:{“order”:21.006300630021,“milestone_order”:41,“custom_state”:“”} –>

Updated 25/06/2017 16:48

Unable to add a saml private key using tower cli

ansible/tower-cli

trying to use tower-cli to input the saml cert private key..

I got the public cert to be accepted by removing the headers and removing newlines.

For the private key I tried the following * first just removed the headers of the key and removed the newlines * then just tried without doing anything.

All attempts say key is invalid. But if I input the key into the UI it works.

Here is the output I get, key is redacted

# first just try remove new lines
(tower-cli)% tower-cli setting modify SOCIAL_AUTH_SAML_SP_PRIVATE_KEY `cat aws.key | tr -d '\n'`
Error: no such option: -----BEGIN

# then try remove --begin private key -- and --end private key -- headers
(tower-cli) :% tower-cli setting modify SOCIAL_AUTH_SAML_SP_PRIVATE_KEY `sed -e '/^-/d'  aws.key | tr -d '\n'`
Error: The Tower server claims it was sent a bad request.

PATCH https://mytowerserver/api/v1/settings/all/
Params: None
Data: {"SOCIAL_AUTH_SAML_SP_PRIVATE_KEY": "[removed]"}

Response: {"SOCIAL_AUTH_SAML_SP_PRIVATE_KEY":["Invalid certificate or key: u'MIIEvQIBADA[removed]'..."]}
Updated 26/06/2017 13:42 1 Comments

Fork me on GitHub