Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range

[root@localhost pogobot]# ./run.sh
2016-08-10 16:37:31,720 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-10 16:37:31,722 [       cli] [INFO] Configuration initialized
2016-08-10 16:37:31,722 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-10 16:37:31,722 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-10 16:37:31,729 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
[16:37:31] Setting start location.2016-08-10 16:37:31,875 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
[16:37:31] Location found: 48.8583736,2.2922926 (48.8583736, 2.2922926, 0.0)
[16:37:31] Now at (48.8583736, 2.2922926, 0)
[16:37:31] Login procedure started.Traceback (most recent call last):
File "pokecli.py", line 530, in
main()
File "pokecli.py", line 138, in main
report_summary(bot)
File "pokecli.py", line 147, in report_summary
metrics.capture_stats()
File "/mnt/hgfs/PhpstormProjects/pogobot/pokemongo_bot/metrics.py", line 76, in capture_stats
response_dict = request.call()
File "/mnt/hgfs/PhpstormProjects/pogobot/pokemongo_bot/api_wrapper.py", line 90, in call
if not self.can_call():
File "/mnt/hgfs/PhpstormProjects/pogobot/pokemongo_bot/api_wrapper.py", line 58, in can_call
raise NotLoggedInException()
pgoapi.exceptions.NotLoggedInException
2016-08-10 16:37:32,032 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/usr/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/usr/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/usr/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib64/python2.7/httplib.py", line 979, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.7/httplib.py", line 1013, in _send_request
self.endheaders(body)
File "/usr/lib64/python2.7/httplib.py", line 975, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 833, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-10 16:37:32,033 [sentry.errors.uncaught] [ERROR] [u'NotLoggedInException', u'  File "pokecli.py", line 530, in ', u'  File "pokecli.py", line 138, in main', u'  File "pokecli.py", line 147, in report_summary', u'  File "pokemongo_bot/metrics.py", line 76, in capture_stats', u'  File "pokemongo_bot/api_wrapper.py", line 90, in call', u'  File "pokemongo_bot/api_wrapper.py", line 58, in can_call']
Wed Aug 10 16:37:32 EDT 2016 Pokebot  Stopped.

Did this happen once, or every time you log the bot? Could you have a ip/soft ban?

Every time. No ip/soft ban, I was able to log in via phone.

double check your credentials, that's an odd error

2016-08-11 03:01:38,615 [PokemonGoBot] [INFO] [bot_start] Starting bot...
2016-08-11 03:01:39,676 [CollectLevelUpReward] [INFO] [level_up_reward] Received level up reward: []
2016-08-11 03:01:39,676 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 0.62 km
2016-08-11 03:01:40,868 [       cli] [INFO]
2016-08-11 03:01:40,868 [       cli] [INFO] Ran for 0:00:18
2016-08-11 03:01:40,868 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-11 03:01:40,868 [       cli] [INFO] Travelled 0.00km
2016-08-11 03:01:40,884 [       cli] [INFO] Visited 0 stops
2016-08-11 03:01:40,884 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-11 03:01:40,884 [       cli] [INFO] Threw 0 pokeballs
2016-08-11 03:01:40,884 [       cli] [INFO] Earned 0 Stardust
2016-08-11 03:01:40,884 [       cli] [INFO]
2016-08-11 03:01:40,884 [       cli] [INFO] Highest CP Pokemon:
2016-08-11 03:01:40,884 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 502, in
main()
File "pokecli.py", line 133, in main
raise e
KeyError: u'And'
2016-08-11 03:01:40,898 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https:
0254/store/)
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send
ca_certs=self.ca_certs,
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 494, in open
response = self._open(req, data)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 512, in _open
'_open', req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 466, in _call_chain
result = func(*args)
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "C:\Python27\lib\httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1097, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-11 03:01:40,914 [sentry.errors.uncaught] [ERROR] [u"KeyError: u'And'", u'  File "pokecli.py", line 502, in ', u'  File "pokecli.py", line 133, in main']

Credentials and running latest on dev branch, yes.

I had the above mentioned issue, then i found that i did something wrong in config. Check your config once again and make sure it is up to date and correct

same problem
config
{
   "username": "xxxxxxx",
    "password": "xxxxxxx",
    "location": "xxxxxxxxxxxxxxx",
    "gmapkey": "xxxxxxxxxxxxxxxxxx",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolvePokemon",
        "config": {
            "evolve_all": "none",
            "first_evolve_by": "cp",
            "evolve_above_cp": 500,
            "evolve_above_iv": 0.8,
            "logic": "or",
            "evolve_speed": 20,
            "use_lucky_egg": true
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "item_filter": {
            "Pokeball":       	{ "keep" : 50 },
            "Greatball":       	{ "keep" : 70 },
            "Ultraball":       	{ "keep" : 90 },
            "Potion":       	{ "keep" : 0 },
            "Super Potion":	{ "keep" : 0 },
            "Hyper Potion":	{ "keep" : 30 },
            "Max Potion":	{ "keep" : 50 },
            "Revive":         	{ "keep" : 25 },
            "Razz Berry":     	{ "keep" : 30 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort",
        "config": {
            "lure_attraction": true,
            "lure_max_distance": 2000
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "diameter": 37,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 150
    },
    "websocket_server": false,
    "walk": 3.5,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "evolve_captured": "NONE",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "// any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
      "any": {"keep_best_iv": 2,"keep_best_cp": 2},
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "vips" : {
         "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}

    }
}

Log
2016-08-10 23:40:36,472 [       cli] [INFO] Ran for 0:02:13
2016-08-10 23:40:36,472 [       cli] [INFO] Total XP Earned: 410  Average: 11122.87/h
2016-08-10 23:40:36,473 [       cli] [INFO] Travelled 0.03km
2016-08-10 23:40:36,473 [       cli] [INFO] Visited 4 stops
2016-08-10 23:40:36,473 [       cli] [INFO] Encountered 1 pokemon, 1 caught, 1 released, 0 evolved, 0 never seen before
2016-08-10 23:40:36,473 [       cli] [INFO] Threw 1 pokeball
2016-08-10 23:40:36,473 [       cli] [INFO] Earned 100 Stardust
2016-08-10 23:40:36,473 [       cli] [INFO]
2016-08-10 23:40:36,473 [       cli] [INFO] Highest CP Pokemon: Drowzee [CP: 41] [IV: 10/6/0] Potential: 0.36
2016-08-10 23:40:36,473 [       cli] [INFO] Most Perfect Pokemon: Drowzee [CP: 41] [IV: 10/6/0] Potential: 0.36
Traceback (most recent call last):
File "./pokecli.py", line 530, in
main()
File "./pokecli.py", line 96, in main
bot.tick()
File "/var/www/USERDIR/PokemonGo-Bot/pokemongo_bot/init.py", line 472, in tick
if worker.work() == WorkerResult.RUNNING:
File "/var/www/USERDIR/PokemonGo-Bot/pokemongo_bot/cell_workers/catch_visible_pokemon.py", line 45, in work
'expiration_timestamp_ms': pokemon['expiration_timestamp_ms'],
File "/var/www/USERDIR/PokemonGo-Bot/pokemongo_bot/base_task.py", line 27, in emit_event
data=data
File "/var/www/USERDIR/PokemonGo-Bot/pokemongo_bot/event_manager.py", line 65, in emit
handler.handle_event(event, sender, level, formatted_msg, data)
File "/var/www/USERDIR/PokemonGo-Bot/pokemongo_bot/event_handlers/colored_logging_handler.py", line 130, in handle_event
terminal_width = self._terminal_width()
File "/var/www/USERDIR/PokemonGo-Bot/pokemongo_bot/event_handlers/colored_logging_handler.py", line 171, in _terminal_width
struct.pack('HHHH', 0, 0, 0, 0)))
IOError: [Errno 25] Inappropriate ioctl for device
2016-08-10 23:40:36,479 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/var/www/USERDIR/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib64/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib64/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-10 23:40:36,480 [sentry.errors.uncaught] [ERROR] [u'IOError: [Errno 25] Inappropriate ioctl for device', u'  File "pokecli.py", line 530, in ', u'  File "pokecli.py", line 96, in main', u'  File "pokemongo_bot/init.py", line 472, in tick', u'  File "pokemongo_bot/cell_workers/catch_visible_pokemon.py", line 45, in work', u'  File "pokemongo_bot/base_task.py", line 27, in emit_event', u'  File "pokemongo_bot/event_manager.py", line 65, in emit', u'  File "pokemongo_bot/event_handlers/colored_logging_handler.py", line 130, in handle_event', u'  File "pokemongo_bot/event_handlers/colored_logging_handler.py", line 171, in _terminal_width']

Have you started getting this issue after getting the latest updated clone or you faced this issue before taking the latest updates?

What happens right before the crash? (Working from a phone so it's hard to trace using the error)

Looks like my account is banned. I can log in with another PTC account. Logging in with the phone, I get 100% vanish rate & no poke stop rewards. Maybe the bot can display a message when this happens? I can't tell if it's a time-based ban or permanent yet. I do know it's not IP based.

I had this error pop a couple times today on 2 different accounts. I restarted the bots and they went on their way. I had this error pop up while running only 1 bot and while running 2. I updated to the latest dev branch today but have had this error before.

The last task (that i can see in the log) that was executed prior to the crash was a [MoveToFort] task, or actually multiple of them. Below is the exact error that i get.
Traceback (most recent call last):
  File "pokecli.py", line 521, in <module>
    main()
  File "pokecli.py", line 95, in main
    bot.tick()
  File "/home/emher/PycharmProjects/PokemonGo-Bot/pokemongo_bot/__init__.py", line 453, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/emher/PycharmProjects/PokemonGo-Bot/pokemongo_bot/cell_workers/transfer_pokemon.py", line 11, in work
    pokemon_groups = self._release_pokemon_get_groups()
  File "/home/emher/PycharmProjects/PokemonGo-Bot/pokemongo_bot/cell_workers/transfer_pokemon.py", line 79, in _release_pokemon_get_groups
    inventory_req = request.call()
  File "/home/emher/PycharmProjects/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/home/emher/PycharmProjects/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/home/emher/PycharmProjects/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 127, in request
    response = self._make_rpc(endpoint, request_proto)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 115, in _make_rpc
    http_response = self._session.post(endpoint, data=request_proto_serialized, timeout=30)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/sessions.py", line 518, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/sessions.py", line 617, in send
    r.content
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/models.py", line 741, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/models.py", line 667, in generate
    raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: error(104, 'Connection reset by peer')", error(104, 'Connection reset by peer'))
2016-08-11 00:09:33,446 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/home/emher/PycharmProjects/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-11 00:09:33,447 [sentry.errors.uncaught] [ERROR] [u'ChunkedEncodingError: ("Connection broken: error(104, \'Connection reset by peer\')", error(104, \'Connection reset by peer\'))', u'  File "pokecli.py", line 521, in <module>', u'  File "pokecli.py", line 95, in main', u'  File "pokemongo_bot/__init__.py", line 453, in tick', u'  File "pokemongo_bot/cell_workers/transfer_pokemon.py", line 11, in work', u'  File "pokemongo_bot/cell_workers/transfer_pokemon.py", line 79, in _release_pokemon_get_groups', u'  File "pokemongo_bot/api_wrapper.py", line 106, in call', u'  File "pokemongo_bot/api_wrapper.py", line 63, in _call', u'  File "pgoapi/pgoapi.py", line 220, in call', u'  File "pgoapi/rpc_api.py", line 127, in request', u'  File "pgoapi/rpc_api.py", line 115, in _make_rpc', u'  File "requests/sessions.py", line 518, in post', u'  File "requests/sessions.py", line 475, in request', u'  File "requests/sessions.py", line 617, in send', u'  File "requests/models.py", line 741, in content', u'  File "requests/models.py", line 667, in generate']

I think my IP address in OVH get a ban so i got same error... looks like You get ban too.

well i tget the same error but i dont think its ban because its fresh account and first try

There are others experiencing ban issues here:
#3682 - META Server busy or offline issues
#3308 - META Stuck between two forts / Moving to 2 forts at the same time / Constant Loop
#3700 - META Soft bans - Try again spins / Pokemon vanishing
These are not related to OPs issue though


Rails 5: deprecation warning regarding the use of uniq

ActiveSupport::DeprecationException:
DEPRECATION WARNING: uniq is deprecated and will be removed from Rails 5.1 (use distinct instead) (called from […])
# /var/lib/gems/2.3.0/gems/groupify-0.8.0/lib/groupify/adapter/active_record/group_member.rb:25:in `block (2 levels) in <module:GroupMember>'
[…]

This (group_member.rb:25) is the only place the warning was triggered in my case, but a cursory search over the groupify source code indicates uniq is used in other places as well.

I noticed that as well. I tried changing uniq to distinct as suggested, but this broke compatibility with Rails 3.2. I think the cleanest thing to do will be to stop supporting Rails 3.2 once Rails 5.1 is released.

@dwbutler Fair enough

@dwbutler I through together a pull request that implements what you have suggested, travis is blowing up over pry... which seems odd, and unrelated.

@rposborne I resolved some dependency issues. It happens - the world of open source is constantly changing around us, even if your own code hasn't changed.
Let's continue the conversation in #53.

Resolved in 0.9.0.


set command box color

set command box color, originally white, green for success command, red for error command

Ok good job

Coverage increased (+0.01%) to 90.553% when pulling bb5d6007dfbc63164acf8ddd56661893ca9f3cdf on Change_command_box_color into d8ba87b2acca04fcdd3b52acf6ecf104df3363aa on master.


Refactored & fixed staff chat name duplication

Refactored some of the code in the main file & fixed the staff chat name duplication issue

All good :+1:


Pipeline compability added with tests. Major changes to 'score' function

The old score function did not work with Pipeline because it needs to follow sklearn's structure.
The old score method is now called general_score.
See the test test_sklearn_compatibility to see how to integrate pyglmnet with Pipeline

Coverage increased (+0.07%) to 94.052% when pulling 26b80dede7ec49b22203be7afdc428a4f3f7d1ec on pipeline_integration into e1a373f79a40d756c623979ce745c8fa2b60ecaa on master.

@daniel-acuna thanks for this! @jasmainak great discussion!
My suggestion

Make score compatible only with sliced object. If we call score without slicing, it should raise an exception.
Have a separate function scoreall which works on slices and the estimator list for all lambdas.
Look into make_scorer for pseudo_R2 which requires an extra ynull argument.

@daniel-acuna @jasmainak as you revisit this PR and my suggestion above, please also note the aim of PR #124 which contains changes to the score() function. If we do go down the path of two methods: score() and scoreall() then perhaps the changes made in PR #124 can be integrated into the scoreall()

@pavanramkumar @jasmainak at the end, I didn't add the score and scoreall function because it seems that the issue is a sklearn "problem". When creating pipelines, sklearn doesn't seem to be calling the last estimator's score function with using pipeline.score(...). Instead, I had to explicitly make the call with pipeline._final_estimator.score(...). @pavanramkumar I added the changes from PR #124


Enable FELIX_WIRGEUARDHOSTENCRYPTIONENABLED for AKS/EKS

Description

Felix needs to explicitly add host IP's to wireguard's trusted IP's list in order to work properly on AKS, and also on EKS so that it can properly encrypt cross-host traffic when making requests through services/nodeports.
This change toggles FELIX_WIREGUARDHOSTENCRYPTIONENABLED flag when using AKS, or when using EKS with CalicoCNI (EKS CNI still a ways off)
Related Felix PR: https://github.com/projectcalico/felix/pull/2897
For PR author

[x] Tests for change.
[ ] If changing pkg/apis/, run make gen-files
[ ] If changing versions, run make gen-versions

For PR reviewers
A note for code reviewers - all pull requests must have the following:

[ ] Milestone set according to targeted release.
[ ] Appropriate labels:

kind/bug if this is a bugfix.
kind/enhancement if this is a a new feature.
enterprise if this PR applies to Calico Enterprise only.

Open question for the operator devs...
If I were to add a felixconfig var that would force this behaviour to "true"/"false", I expect the docstring for it would be messy - There might end up being a lot of defaults to "true" on X and "false" on Y talk, which seems messy compared to the otherwise clear documentation for other felixconfig vars.  Would that be an unacceptable var to have? Thoughts on alternatives?

@aaaaaaaalex I think what you did is correct, I don't think we want this configurable through the felixconfig since this isn't something that a user should be able to override right now. This can always be revisited, but this looks correct to me.


Next - Serverless Next.js Router - Add Unit Tests

Overview

Add unit tests to the serverless next.js router

No longer necessary as serverless-next.js will be removed


Correct syntax typo for import statement

This corrects the syntax for the example import statement.

The suggested change isn't correct for the context it's written in.


AccessibilityManager.setAccessibilityContentSizeMultipliers exception

Description
Since upgrading to React Native 0.44 (from 0.43) when calling AccessibilityManager.setAccessibilityContentSizeMultipliers I get this red screen

Reproduction Steps and Sample Code
We call this method in our root component's componentDidMount and it worked just fine so far. I created a snack https://snack.expo.io/ryOh1Migb but can not reproduce exception there. I am not sure which version of react-native expo v16 uses though.
Additional Information

React Native version: 0.44.0
Platform: iOS
Development Operating System: macOS
Dev tools: Xcode 8.3.2

Looks like the implementation of RCTDeviceInfo.m broke this, as the RCTAccessibilityManagerDidUpdateMultiplierNotification notification is being posted on the JS thread rather than the main thread, breaking the assertion in RCTExportedDimensions.
This is effectively blocking upgrades to RN 0.44 for anyone setting custom accessibility content size multipliers. Is this being looked at for RN 0.45?

just put a fix in for this, let me know if it's still breaking for you

i.e. https://github.com/facebook/react-native/commit/112e3767ceae83e9034c25a0358949a20b379358

LGTM, thanks! 👍


1712.1 release

Merge develop into master.
Updates:

libdispatch is updated to use dispatch_queue_specific APIs
OSSpingLock APIs have been implemented publicly
Localization has been fixed to properly lookup lproj resources in bundles

This change is

nit: please rename this pull request
not a nit: please reword the entire body of the pull request before you merge it, it's riddled with curiosities.

(When Raj does develop -> master merges, he names the pull request after the release name, as in #2814.)

Oh, I was following how he named the merge from master into develop earlier.

further nits:

libdispatch was updated to support the dispatch_queue_specific APIs
OSSpinLock and friends were made available (not OSSpingLock)
Bundles will now load localized resources appropriate for the user's preferred languages.


Return ProcessDefinition ID, Scheduler ID when call the corresponding creation APIS

What is the purpose of the pull request
*Return ProcessDefinition ID when call ProcessController.createProject.
*Return Scheduler ID when call SchedulerController.createScheduler.
Client system need the created object ID to bind the relationship between client system and Dolphinscheduler system.
Brief change log
*changed source files:
-dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionService.java
-dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/SchedulerService.java
Verify this pull request

Manually verified the change by testing locally.

Codecov Report

Merging #2849 into dev will decrease coverage by 0.12%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##                dev    #2849      +/-   ##
============================================
- Coverage     37.22%   37.10%   -0.13%
+ Complexity     2557     2551       -6
============================================
  Files           434      434
  Lines         19992    19994       +2
  Branches       2425     2425
============================================
- Hits           7443     7418      -25
- Misses        11880    11908      +28
+ Partials        669      668       -1

Impacted Files
Coverage Δ
Complexity Δ

...dolphinscheduler/api/service/SchedulerService.java
2.52% <0.00%> (-0.02%)
3.00 <0.00> (ø)

...cheduler/api/service/ProcessDefinitionService.java
60.90% <100.00%> (+0.06%)
75.00 <0.00> (ø)

.../server/worker/processor/TaskExecuteProcessor.java
10.16% <0.00%> (-27.12%)
1.00% <0.00%> (-2.00%)

...he/dolphinscheduler/api/service/LoggerService.java
82.60% <0.00%> (-8.70%)
9.00% <0.00%> (-1.00%)

...nscheduler/server/entity/TaskExecutionContext.java
81.18% <0.00%> (-5.95%)
57.00% <0.00%> (-3.00%)

...he/dolphinscheduler/common/thread/ThreadUtils.java
71.42% <0.00%> (-3.18%)
14.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c15345...afca985. Read the comment docs.


Amoled theme

Everything is great just add a black theme

Isn't "Amoled theme" the same thing as "True dark theme (black)"?
If so, I'll close this one as a duplicate of #93 and you can upvote that issue with a thumbup reaction.

It is the same.


Fix missing new lines in generated html file

Fixes #4945

Not sure even if following write_lines() should not be converted to write():
https://github.com/cython/cython/blob/287a11e55259ffe01cf43a450159be7f946f1cfb/Cython/Compiler/Code.py#L1994-L2005
The bug is fixed by PR but I am thinking if it is not right to convert all write_lines() to write()

It would be great to have unittest for this PR (there are some tests in run/annotate_html.pyx), but it can be tricky to do it right...

I'm not quite sure I understand why this works. write contains
if '\n' in s:
    self.write_lines(s)

So in both the cases you've changed it should be calling write_lines anyway? So if I understand it right this PR shouldn't do anything?

Well at first I was also puzzled but it is due following code:
https://github.com/cython/cython/blob/287a11e55259ffe01cf43a450159be7f946f1cfb/Cython/Compiler/Annotate.py#L24-L54
AnnotationCCodeWriter class is inheriting from CCodeWriter and overrides write() method. Hence if the code uses write_line() instead of write it breaks the logic because AnnotationCCodeWriter.write() is not called anymore.

PR shouldn't do anything?

I checked on my computer and it fixes the issue.

Thanks for clarifying. I hadn't realised that there was inheritance involved. Makes sense now!
To me it sounds like the right fix is would be to provide an implementation for AnnotationCCodeWriter.write_lines. The simplest version might just be calling self.write (really just undoing the optimization in https://github.com/cython/cython/commit/0b4370678e5b00a020cd990f922964d3aba59884 for the annotation code writer).
Possibly there's other fixes which use the inheritance more nicely? Either way I think the fix should change the code writer.

I will ping @scoder though because it's based on his change...

If you find better fix feel free go with it. I am fine with close my PR in favour of better fix.

If you find better fix feel free go with it

I'm working on it, also trying to allow assertions on the generated HTML file.

Closing in favor 8afd932c28d08428d45bba03d6b642093e4c973b


fix silent failure

Hello, not sure are this a "Silent" bug, but when I start demo I only see in browsewer empty console with cursor. Container are starts well, but  no data in console are showing and no error I can find.


Track real-world device status with an RF Receiver

Hi,
thank you for your great job in this project!
I have a feature idea for the window covering part. I have a little problem with the architecture, because if I want to use the original RF remote controller, the % status of the blind doesn't updated. It will be possible to listen to the RF signal of the original remote control and update the blind status.
The best will be, if the broadlink device can listen to the RF signal.
If it's not possible there is a cheap RF receiver for Rasperry Pi and a homebridge plugin. With this solution I can listen to the original remote rf signals and I can make rule in the home app that triggers the right (open, close, stop) switch, which is coupled to the blind accessory in your plugin. (For this I need switches (up, down, stop) which is coupled to the original blind accessory.)
Better solution if you can integrate the whole RF listening part in the plugin and we just have connect the RF receiver to the Raspberry Pi and we don't have to create a rule in the home app.
If it works than it can extended to the other accessories.
I hope that it's possible and you can make it! It will be a real smart home solution!

Unfortunately homebridge plugins can't talk to one another.

As you say though I could incorporate it. The trouble is with recognising codes then knowing what to do with them.

I think it's possible to create 3 rules(up, down, stop) for it within the home app. In this way the two plugin can communicate to each other.
For example the blind is closed, I press the up button on the original rf remote than the rf buttons plugin recognize that I pushed the up button and turn on a switch in the home app, than the up rule triggers a switch, which you create and It's start calculating the blind position. If I press stop than it stops the blind in the same way, and I have a correct calculated position in the app. If don't press nothing during the opening time, than it opens physically and also in the app. So I always have a correct position status, and it doesn't matter if I use the home app, or the rf remote.

That's a pretty messy work-around.
How about this, the receiver code is built into this plugin. Each accessory can then have new options:
"type": "window-covering",
"rfMonitor": {
  "open": "RF_CODE_TO_MATCH_AGAINST",
  "close": "RF_CODE_TO_MATCH_AGAINST",
  "stop": "RF_CODE_TO_MATCH_AGAINST",
}

When the receiver detects an RF code it shall iterate through each accessories' "rfMonitor" list and determine whether an action should occur. If it should then the accessory disables any sending of RF from it for X seconds so that it doesn't get in the way of what the RF remote is doing.
To combat the receiver code detecting the RM Pro RF codes as manual ones it would need to prevent the code being sent from being detected for X seconds.
The same functionality could technically be used with IR.
One problem is that this really only works for simple configs i.e. a single open hex and a single close hex.
Another is that I don't have the necessary hardware at the moment. I have a RaspberiPi Zero W and that's it. No RF remotes or accessories and none of the stuff needed to connect an RF Transceiver to the Rpi

Sounds good. If this method sets and calculates the blind position, I think it's a good solution. I wrote that messy method before because it needs the less effort and work. 😄

It'd be helpful if someone can find a device that plugs into the wall and monitors RF. It would then need an API to retrieve RF codes from it.
It's obviously achievable via the rPi method mentioned but that's much less accessible to people.

This may do it.
https://www.iot-store.com.au/products/sonoff-rf-bridge-433-mhz-to-wifi
It's a shame the RM Pro doesn't have an always-on receiver

Its exactly what i suggested on another topic.. monitore real world commands (using remote).. and sync acessories status.. Its really bad not have aways on received.. but and if you send command to listen hex each 5 seconds (i dont know exactly what is listen duration in seconds..).. then if command detected, it register what was command, see if have some acessorie with same hex, update status, then active listen mode agian and again, each few seconds?!

The Broadlink RM Pro doesn't seem to reliably work as a receiver so something else would need to be used.

That device would definitely allow for this so if anyone's interested and would like to donate one (or the money to buy one) then I'd be happy to work on integrating support for this.

create donation button on paypal.. I am sure that all would contribute for this.. beyond that to be more precise.. Your work is pricesless, would require devices much more expensive.. just put on index page (top position) (github) donation button.. once archieved value.. just buy..

Yeah I just placed requests for contributions on Github and in the code itself. We'll see what happens.

Great! put here: https://github.com/lprhodes/homebridge-broadlink-rm
on top.. Contribute to project and new features.. then link or button to paypal..

First drink bought :)
try give bigger highlight.. bigger and bold text..

Thanks @felipesalomao :)

Cheers! ;-)

Hey - just a quick update. That sonoff bridge I mentioned above doesn't appear to have an always-on receiver either :( It seems like any solution will need to involved a great tutorial for adding RF to the raspberry pi.


NumericUpDown StringFormat doesn't handle percentages correctly.

There's strange behaviour happening with NumericUpDown's StringFormat property, particularly around percentages.
First it looks like the P, % & ‰ format specifiers are being ignored, but when adding those same symbols outside of a format item, the numbers appear to be divided by 100 or 1000.
I do remember more frustrating issues before however - particularly with editing values. Previously, the numbers would look correct initially. After editing, the real value would be multiplied repeatedly.
To Reproduce:
Case 1:

Set NumericUpDown.StringFormat to {0:0.00%} or 0.00%
Set NumericUpDown.Value to 0.25
See that the label now shows 0.25% (expected 25.00%)

Case 2:

Set NumericUpDown.StringFormat to {0:0.00‰} or 0.00‰
Set NumericUpDown.Value to 0.25
See that the label now shows 0.25‰ (expected 250.00%)

Case 3:

Set NumericUpDown.StringFormat to {0:0.0000}%
Set NumericUpDown.Value to 0.25
See that the label now shows 0.0025% (expected 0.2500%)
Additionally, editing this number causes further division to the real value.

Case 4:

Set NumericUpDown.StringFormat to {0:0.00000}‰
Set NumericUpDown.Value to 0.25
See that the label now shows 0.00025‰ (expected 0.25000‰)
Additionally, editing this number causes further division to the real value.

Case 5:

Set NumericUpDown.StringFormat to P
Set NumericUpDown.Value to 0.25
See that the label now shows 0.25% (expected 25.00 %)

Environment:

MahApps.Metro version 2.0.0-alpha0083
OS: Win10 1803
Visual Studio 2017 15.7.1
.NET Framework 4.6.2

I have an issue in the same direction. We use Numerics string format to display inline units for inputs.
Having a string format containing a "p" or "P" results in a display of percentage
e.g StringFormat="{}{0:G3} mPa·s" input "0.986" displays as "0.00986 mPa·s"

I've investigated this issue and these are my findings:
The current implementation in NumericUpDown seems to have special handling of format specifiers such as P, % and ‰. The .NET formatting rules equals 1 to "100%" or "1000%" using the P specifier. In case these format specifiers are used in NumericUpDown  the value will be divided in such a way that the .NET formatting rules will be ignored.
Example:
string.Format("{0:P0}", 1); will become "100%" but NumericUpDown will format the value 1 as 1% using that same format.
It seems to me that @SteffanDonal is expecting the default behaviour in .NET but this is not how NumericUpDown works right now. I can see the usefulness of both variations of how to format P, % and ‰
We could support both variations by adding a property to NumericUpDown such as UseCustomFormatting with the default value of true. This would preserve backwards compatibility. Setting UseCustomFormatting to false would disable the division for preserving the value and the format will be exactly like described in the documentation for the P specifier. If you have suggestions for a better naming of this property, please let me know.
I can provide a PR for this if we want to make NumericUpDown support both the current custom formatting of P, % and ‰ and the native formatting provided by the framework.
@ckaeser-lsi your issue is actually a different bug where NumericUpDown formatting does not take into account where the specifier is used. I have a fix for your issue and will submit it as a PR. Not sure if @punker76 wants us to raise a separate issue and submit the PR there or here. Case 3 & 4 above is related to this issue.

Hi @mgnslndh ,
did you get the standard .NET-Method to work? I tried to change the behaviour for myself in the past, but then i got some strange behaviour. I thought that this was the reason for this implementation. Since then I use a converter which works quite nice.
Happy coding,
Tim

@timunie I haven't tried making it work like .NET default formatting yet. But I guess there might be some issues to work through.
@punker76 have we decided that the current behavior is a bug?
This is my perception of this issue. Is it correct?
Current behavior
Using the P format specifier and entering a value of 100 should result in a value of 100.
Desired behavior
Using the P format specifier and entering a value of 100 should result in a value of 1.
For users that still want the current behavior they could change the formatting to use something like "{}{0} %" which gives them the percentage sign but does not affect the value.

@mgnslndh From my point of view I can confirm that this is what I was expecting when I used the control the first time. But I don't mind if it will not be fixed.
Happy coding
Tim

@mgnslndh @timunie I think we should change the behavior to the .Net default formatting. This should not confuse new users and doesn't make anything unusual you wouldn't expect.

>> value: 100  => P      => 10,000.00 %
>> value: 1    => P      => 100.00 %
>> value: 0.1  => P      => 10.00 %
>> value: 0.01 => P      => 1.00 %

>> value: 100  => %      => 100%
>> value: 1    => %      => 1%
>> value: 0.1  => %      => 0.1%
>> value: 0.01 => %      => 0.01%

>> value: 100  => 0%     => 10000%
>> value: 1    => 0%     => 100%
>> value: 0.1  => 0%     => 10%
>> value: 0.01 => 0%     => 1%

>> value: 100  => 0.0%   => 10000.0%
>> value: 1    => 0.0%   => 100.0%
>> value: 0.1  => 0.0%   => 10.0%
>> value: 0.01 => 0.0%   => 1.0%

>> value: 100  => 0.000% => 10000.000%
>> value: 1    => 0.000% => 100.000%
>> value: 0.1  => 0.000% => 10.000%
>> value: 0.01 => 0.000% => 1.000%

using System;
using System.Collections.Generic;
using System.Linq;

public class Program
{
  public static void Main()
  {
    Console.WriteLine($">> value: 100  => P      => {100:P}");
    Console.WriteLine($">> value: 1    => P      => {1:P}");
    Console.WriteLine($">> value: 0.1  => P      => {0.1:P}");
    Console.WriteLine($">> value: 0.01 => P      => {0.01:P}");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => %      => {100}%");
    Console.WriteLine($">> value: 1    => %      => {1}%");
    Console.WriteLine($">> value: 0.1  => %      => {0.1}%");
    Console.WriteLine($">> value: 0.01 => %      => {0.01}%");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => 0%     => {100:0%}");
    Console.WriteLine($">> value: 1    => 0%     => {1:0%}");
    Console.WriteLine($">> value: 0.1  => 0%     => {0.1:0%}");
    Console.WriteLine($">> value: 0.01 => 0%     => {0.01:0%}");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => 0.0%   => {100:0.0%}");
    Console.WriteLine($">> value: 1    => 0.0%   => {1:0.0%}");
    Console.WriteLine($">> value: 0.1  => 0.0%   => {0.1:0.0%}");
    Console.WriteLine($">> value: 0.01 => 0.0%   => {0.01:0.0%}");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => 0.000% => {100:0.000%}");
    Console.WriteLine($">> value: 1    => 0.000% => {1:0.000%}");
    Console.WriteLine($">> value: 0.1  => 0.000% => {0.1:0.000%}");
    Console.WriteLine($">> value: 0.01 => 0.000% => {0.01:0.000%}");
  }
}

@mgnslndh @timunie The same with ‰
>> value: 100  => ‰      => 100‰
>> value: 1    => ‰      => 1‰
>> value: 0.1  => ‰      => 0.1‰
>> value: 0.01 => ‰      => 0.01‰

>> value: 100  => 0‰     => 100000‰
>> value: 1    => 0‰     => 1000‰
>> value: 0.1  => 0‰     => 100‰
>> value: 0.01 => 0‰     => 10‰

>> value: 100  => 0.0‰   => 100000.0‰
>> value: 1    => 0.0‰   => 1000.0‰
>> value: 0.1  => 0.0‰   => 100.0‰
>> value: 0.01 => 0.0‰   => 10.0‰

>> value: 100  => 0.000‰ => 100000.000‰
>> value: 1    => 0.000‰ => 1000.000‰
>> value: 0.1  => 0.000‰ => 100.000‰
>> value: 0.01 => 0.000‰ => 10.000‰

using System;
using System.Collections.Generic;
using System.Linq;

public class Program
{
  public static void Main()
  {
    Console.WriteLine($">> value: 100  => ‰      => {100}‰");
    Console.WriteLine($">> value: 1    => ‰      => {1}‰");
    Console.WriteLine($">> value: 0.1  => ‰      => {0.1}‰");
    Console.WriteLine($">> value: 0.01 => ‰      => {0.01}‰");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => 0‰     => {100:0‰}");
    Console.WriteLine($">> value: 1    => 0‰     => {1:0‰}");
    Console.WriteLine($">> value: 0.1  => 0‰     => {0.1:0‰}");
    Console.WriteLine($">> value: 0.01 => 0‰     => {0.01:0‰}");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => 0.0‰   => {100:0.0‰}");
    Console.WriteLine($">> value: 1    => 0.0‰   => {1:0.0‰}");
    Console.WriteLine($">> value: 0.1  => 0.0‰   => {0.1:0.0‰}");
    Console.WriteLine($">> value: 0.01 => 0.0‰   => {0.01:0.0‰}");
    Console.WriteLine();
    Console.WriteLine($">> value: 100  => 0.000‰ => {100:0.000‰}");
    Console.WriteLine($">> value: 1    => 0.000‰ => {1:0.000‰}");
    Console.WriteLine($">> value: 0.1  => 0.000‰ => {0.1:0.000‰}");
    Console.WriteLine($">> value: 0.01 => 0.000‰ => {0.01:0.000‰}");
  }
}

Hi @punker76 ,
what will happen if the user enters 100 and omits the % when using StringFormat 'P' ? When I wanted to change NumericUpDown to handle this that was my point where I did not get a solution. My users are using Excel all the day and Excel handles this if the cell is already marked as percentage.
Happy coding
Tim

@mgnslndh @timunie Here we go... I'll make a PR tonight

Make sure you have a test for the following combination
StringFormat={}{0}%
Value=100
Text=100%
This would be how you get the percentage sign without any conversion.

Make sure you have a test for the following combination
StringFormat={}{0}%
Value=100
Text=100%
This would be how you get the percentage sign without any conversion.
Other than that, looking good @punker76


fix(TDI-39964): fix missing jar for datastewardship

What is the current behavior? (You can also link to an open issue here)
https://jira.talendforge.org/browse/TDI-39964?focusedCommentId=556909&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-556909
What is the new behavior?
Fixing deps.
Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[X] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: failure :x:

Pull request test result: success :star:
Sonar results


Support for Sveltekit V1

Thanks for all your efforts to support Sveltekit V2. Can you also add support for V1?
I don't know the afford you should have put for V1, but I would really wanted to help you in case it is too much.

Hello, as you can see in the src/index.ts file, this is a silly helmet wrapper with a little hack to make it compatible with typescript.
I currently don't have much time but I'm open to PR if you want to contribute, it doesn't look that complicated to adapt for sveltekit V1.


Position of node and edges are not rendering correctly

Describe the Bug
React is rendering it correctly for the first time but edges are distorted and nodes placement are not correct
Current functionality is we are rending the parent 3 child at first render. Then user can click on any of the nodes to push it's child nodes. If it's an folder then it's expandable else it's can be expanded
First Render

When I navigate back from other route to this flow route

Nodes Array
https://justpaste.it/btubk
Edges Array
https://justpaste.it/alwha
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Create two different routes suppose home and flow
Navigate to flow and it will render parent and it's all children
Click on children if they are of type folder to further expand
Now navigate to home after expanding 2-3 levels
Come back to flow route

Expected behavior
As a user i expect it to render as it rendered first time
Screenshots or Videos
No response
Platform
Windows
Chrome
Version 118.0.5993.71 (Official Build) (64-bit)
Additional context
No response

could you try to wrap each flow with a <ReactFlowProvider> component?

@moklick , it is already wrapped inside a ReactFlowProvider
The scenario is as follows.
The parent node "Sample Test Plan" has three children.
Clicking on a child will call an API that will return a list of the child's. The response can either be a folder or a file.
After adding certain connection values, we push those children into the node state and the edge state.
When we expand it to a certain level, we navigate to another screen and then we return to the original current screen we get parent with three children with distorted connections

If this is still an issue, please re-open with a codesandbox or repository.


Fix bitsandbytes layer conversion under init_module context manager

What does this PR do?
Fixes #18913

:books: Documentation preview :books:: https://pytorch-lightning--18914.org.readthedocs.build/en/18914/

What would be the best way to install bitsandbytes in the GPU CI @carmocca @Borda ? Should I put it into the workflow or have it in the docker image?

I think the docker image. We could put it in extra.txt but then users might have issues if it fails to install in certain platform (windows? macos?)

The docker build passed, I pushed the image, re-triggered the GPU CI and the test passes now!


License file?

Would it be possible to include a LICENSE file with the text of the license agreement?
Our lawyers are saying that just having "License: MIT" is not sufficient.

Apparently, that was fixed and should be closed.

Thanks @ScottWeinstein @marinintim


Remove express.js

Our memory usage keeps growing with each request
This may be caused by express.js
Express.js is just another module that we barely need for our 3 routes
Node has a built in http.Server

Coverage remained the same when pulling d5ccb72caff4d957b25574218ef161e0632e27fa on no-express into 64948368c59ccb8214c2de4ae9f227e17e8c14a7 on master.

Coverage remained the same when pulling 958b1ea907478f3843d02edbeaea2a33ba3293ca on no-express into 64948368c59ccb8214c2de4ae9f227e17e8c14a7 on master.

Coverage remained the same when pulling 0a8f2e133ed84a3d715d9823d6f21e54e5ad48c4 on no-express into 64948368c59ccb8214c2de4ae9f227e17e8c14a7 on master.

Coverage remained the same when pulling 0009535fc012394ba238902584a2db0e66ba3b3d on no-express into 64948368c59ccb8214c2de4ae9f227e17e8c14a7 on master.

Everything seems to be working, but please also make some tests @Jake0oo0.

Coverage remained the same when pulling fecdc4de8122880347a16510b5170caba18c3b26 on no-express into 64948368c59ccb8214c2de4ae9f227e17e8c14a7 on master.

I first thought the memory usage wouldn't get any lower, but it does. You just have to make a few more requests (so the GC gets active?) :+1:

:shipit:


Optional frontend, backend, mobile

Hi,
at the moment, there is no way to generate only a [back | front].
It could be useful to generate only one of those parts.
What about adding a None value to What Backend do you use and What Frontend do you use ?

It's already possible by running only the sub-generators, for example for just an express backend:
yo @thetribe/project:root
yo @thetribe/express backend --http-path=/

But adding a None option to the main generator wouldn't cost us a lot and could make this use case easier so why not.


Discard county-level data on validation error for Canada/Romania

Fixes #1437

@beshaya let me know if this seems like a reasonable approach.  Obv. getting the Canada feed updated to the new format is a good idea regardless; I may play around with that tomorrow if time allows unless someone else is already on top of it.


fix redis sentinal property

property is named "node" but in the docu it is "nodes"

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


example: adding roblox v2 API

Adding another example - Roblox is
mostly adherent to the AEPs, so can server as
an example for the tools.

closing as the original purpose of this PR was to enable aepc to consume the roblox CLI. However, as aepc can now consume semi aep-compliant OpenAPI specs, it is no longer necessary to generate the OpenAPI schema


chore: define regexp only once in circleci config

For the release tag regexp.

Codecov Report

Merging #36 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #36   +/-   ##
=======================================
  Coverage   81.57%   81.57%
=======================================
  Files           4        4
  Lines         331      331
  Branches       70       70
=======================================
  Hits          270      270
  Misses         61       61

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c16bcde...4d6fd3d. Read the comment docs.


hcloud: 1.29.0 -> 1.29.5

hcloud: 1.29.0 -> 1.29.5

Enable tests

@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
=== RUN   TestSuggestCandidates
=== RUN   TestSuggestCandidates/no_prefix_available
=== RUN   TestSuggestCandidates/prefix_available
--- PASS: TestSuggestCandidates (0.00s)
    --- PASS: TestSuggestCandidates/no_prefix_available (0.00s)
    --- PASS: TestSuggestCandidates/prefix_available (0.00s)
=== RUN   TestSuggestArgs
=== RUN   TestSuggestArgs/suggest_first_argument_but_no_vfs_provided
=== RUN   TestSuggestArgs/suggest_second_argument_but_no_vfs_provided
=== RUN   TestSuggestArgs/suggest_the_only_argument
=== RUN   TestSuggestArgs/suggest_the_second_of_three_possible_arguments
=== RUN   TestSuggestArgs/skip_suggestions_using_SuggestNothing
=== RUN   TestSuggestArgs/skip_suggestions_using_nil
--- PASS: TestSuggestArgs (0.00s)
    --- PASS: TestSuggestArgs/suggest_first_argument_but_no_vfs_provided (0.00s)
    --- PASS: TestSuggestArgs/suggest_second_argument_but_no_vfs_provided (0.00s)
    --- PASS: TestSuggestArgs/suggest_the_only_argument (0.00s)
    --- PASS: TestSuggestArgs/suggest_the_second_of_three_possible_arguments (0.00s)
    --- PASS: TestSuggestArgs/skip_suggestions_using_SuggestNothing (0.00s)
    --- PASS: TestSuggestArgs/skip_suggestions_using_nil (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/cmpl	0.002s
=== RUN   TestValidateFirewallIP
=== RUN   TestValidateFirewallIP/Valid_CIDR_(IPv4)
=== RUN   TestValidateFirewallIP/Valid_CIDR_(IPv6)
=== RUN   TestValidateFirewallIP/Invalid_IP
=== RUN   TestValidateFirewallIP/Missing_CIDR_notation_(IPv4)
=== RUN   TestValidateFirewallIP/Missing_CIDR_notation_(IPv6)
=== RUN   TestValidateFirewallIP/Host_bit_set_(IPv4)
=== RUN   TestValidateFirewallIP/Host_bit_set_(IPv6)
--- PASS: TestValidateFirewallIP (0.00s)
    --- PASS: TestValidateFirewallIP/Valid_CIDR_(IPv4) (0.00s)
    --- PASS: TestValidateFirewallIP/Valid_CIDR_(IPv6) (0.00s)
    --- PASS: TestValidateFirewallIP/Invalid_IP (0.00s)
    --- PASS: TestValidateFirewallIP/Missing_CIDR_notation_(IPv4) (0.00s)
    --- PASS: TestValidateFirewallIP/Missing_CIDR_notation_(IPv6) (0.00s)
    --- PASS: TestValidateFirewallIP/Host_bit_set_(IPv4) (0.00s)
    --- PASS: TestValidateFirewallIP/Host_bit_set_(IPv6) (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/firewall	0.003s
=== RUN   TestDescribe
--- PASS: TestDescribe (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/location	0.003s
=== RUN   TestList
--- PASS: TestList (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/network	0.003s
=== RUN   TestTableOutput
=== RUN   TestTableOutput/AddAllowedFields
=== RUN   TestTableOutput/AddFieldAlias
=== RUN   TestTableOutput/AddFieldOutputFn
=== RUN   TestTableOutput/ValidateColumns
=== RUN   TestTableOutput/WriteHeader
=== RUN   TestTableOutput/WriteLine
=== RUN   TestTableOutput/Columns
--- PASS: TestTableOutput (0.00s)
    --- PASS: TestTableOutput/AddAllowedFields (0.00s)
    --- PASS: TestTableOutput/AddFieldAlias (0.00s)
    --- PASS: TestTableOutput/AddFieldOutputFn (0.00s)
    --- PASS: TestTableOutput/ValidateColumns (0.00s)
    --- PASS: TestTableOutput/WriteHeader (0.00s)
    --- PASS: TestTableOutput/WriteLine (0.00s)
    --- PASS: TestTableOutput/Columns (0.00s)
=== RUN   TestFieldName
--- PASS: TestFieldName (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/output	0.002s
=== RUN   TestCreate
--- PASS: TestCreate (0.00s)
=== RUN   TestDelete
--- PASS: TestDelete (0.00s)
=== RUN   TestDescribe
--- PASS: TestDescribe (0.00s)
=== RUN   TestAddLabel
--- PASS: TestAddLabel (0.00s)
=== RUN   TestRemoveLabel
--- PASS: TestRemoveLabel (0.00s)
=== RUN   TestList
--- PASS: TestList (0.00s)
=== RUN   TestUpdateName
--- PASS: TestUpdateName (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/placementgroup	0.003s
=== RUN   TestAddToPlacementGroup
--- PASS: TestAddToPlacementGroup (0.00s)
=== RUN   TestCreate
--- PASS: TestCreate (0.00s)
=== RUN   TestRemoveFromPlacementGroup
--- PASS: TestRemoveFromPlacementGroup (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/server	0.003s
=== RUN   TestOnlyOneSet
=== RUN   TestOnlyOneSet/only_arg_emtpy
=== RUN   TestOnlyOneSet/only_arg_non-empty
=== RUN   TestOnlyOneSet/first_arg_non-empty,_rest_empty
=== RUN   TestOnlyOneSet/at_least_one_other_arg_non-empty
=== RUN   TestOnlyOneSet/only_one_arg_non-empty
--- PASS: TestOnlyOneSet (0.00s)
    --- PASS: TestOnlyOneSet/only_arg_emtpy (0.00s)
    --- PASS: TestOnlyOneSet/only_arg_non-empty (0.00s)
    --- PASS: TestOnlyOneSet/first_arg_non-empty,_rest_empty (0.00s)
    --- PASS: TestOnlyOneSet/at_least_one_other_arg_non-empty (0.00s)
    --- PASS: TestOnlyOneSet/only_one_arg_non-empty (0.00s)
PASS
ok  	github.com/hetznercloud/cli/internal/cmd/util	0.002s

Minor refactoring

Result of nixpkgs-review pr 170335 run on aarch64-darwin 1

1 package built:

hcloud

Works on darwin-aarch, but could you add in version information via ldflags, as otherwise I get:
[nix-shell:~/.cache/nixpkgs-review/pr-170335]$ hcloud version
hcloud was not built properly

PS, thanks for enabling tests


Imageslideshow crashes when loading before apply template is called.
What is the new behavior?

Remove reference to flip view in onloaded as they can be called on applytemplate after getting _flipview
Checklist
Please check if your PR fulfills the following requirements:

[ ] Documentation has been added/updated
[ ] Automated Unit / Integration tests for the changes have been added/updated
[ ] Contains NO breaking changes
[ ] Updated the Changelog
[ ] Associated with an issue

Other information

@lamonfly this pr is still relevant?

@lamonfly this pr is still relevant?

Shouldn't be relevant anymore.


How accurate/performant is phpFITFileAnalysis::sma() ?

Need to compare performance and output of phpFITFileAnalysis::sma() vs the PHP Trader PECL extension

Tested five FIT files containing power data and captured Critical Power values from 2s to 2hrs and compared results to 3 decimal places.
For three files, results were the same. The other two had just one CP value (20mins in both cases) that were out by only 0.001 watt!
As you can see, using the PHP Trader extension is significantly faster (<0.05s) than using PHP code (25-35s+)!


Ignore commands not in the bot channel

Fix regression where the bot will respond with the help message to posts not in the bot channel.

Wrong repo. Not sure how that happened.


New error in console out of nowhere

This is happening out of nowhere:
https://pastebin.com/RTQjaQ7X
This happens only when new player joins:
https://pastebin.com/1inVRggY

This has been fixed in the latest release.

This has been fixed in the latest release.


Linux ( Elementary OS 5.0 ) Twin Stick Demo Linux64 crash

Hello, Twin Stick Demo works well in HTML5 ( Firefox 62 ) but it crash on native Elementary OS 5.0 Linux. I will try to test on other Distro a soon as possible.
Downloaded here:
https://armory3d.org/download.html
Hardware: Ryzen 1700 + AMD RX 580 Mesa driver.
linux@linux-System-Product-Name:~/Downloads/armory_demo_linux64/armory_demo$ ./game
Uniform voxelBlend not found.
Segmentation fault

Will move this issue to the repository at https://github.com/armory3d/armory_templates, marking this one as deprecated and intended for b27 usage.


Dracula for mousepad

Hey, i made this little tutorial for installing dracula theme for mousepad text editor.
currently is in my github repo https://github.com/spazmantiz/dracula-mousepad

Hey @spazmantiz!
I'm glad to see that you created a theme for Mousepad!
Are you interested in transferring your repository to the official organization (https://github.com/dracula)? You'll continue maintaining this project, the only difference is that we can make it more visible and include it on the site (https://draculatheme.com).
I just sent you an invite to join the organization. If you accept, you'll be able to transfer the repo and we can continue with adding to the site.
Thanks for building it!

thanks @zenorocha for the invitation, i'll try to maintain the repo

hey @zenorocha, i'm new to all of this can you give me detail how to transfer the repo? and i don't receive invitation that you mention.

Hey @spazmantiz, sorry about that, I just sent the invitation. You can now go to Settings > Options > Transfer.

It's live! https://draculatheme.com/mousepad
Thanks @spazmantiz ;)


Input bracket with selected word sometimes got weird behavior

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.70.1
OS Version: Windows 10 Pro (10.0.19044.1826)

Steps to Reproduce:

Write some code and save it.
Select a word.
Call Developer: Reload Window command.
Repeat input [ or { and undo it, it will be happened randomly.

In above gif, it do:

return is already selected
Press shift+[ and become {return{
Press ctrl+z and become {
Press ctrl+z again and become back to return
Do step 2 to 4 several times and always get weird behavior
Click other text and select return again
Press shift+[ and become {return}, finally normal!

I don't understand the gif. What do you mean with weird behavior?
Can someone else reproduce?

In gif, I believe {return} is expected when I select return and input {, but got {return{
Or is it also normal behavior?

I understand, which language is that?

Golang

This is my vscode settings and exts: https://gist.github.com/yujinlin0224/ba1c2172c3932fecc1bb212a5f658342
That git is recorded when I disabled all exts.

I just found when I switch IME to bopomofo en mode, this behavior happened, and english US IME is normal
https://user-images.githubusercontent.com/11353779/186130473-8520d205-f534-4afc-a38f-2e00019c7b30.mp4

In my issue #159290, it is not referred to one specific language, because I tried js、json, even markdown file still so.
It is also not random as this issue, it is consistent with VSCode starts high probability.

@Germxu you are right, its not random, I can easily duplicate it in every language when I switch my IME to bopomofo

Any update?

Duplicate of https://github.com/microsoft/vscode/issues/163115

@alexdima Confirmed that fixed in #147187, thanks a lot


Update README for Paloma v1.13.1 installation instructions

Background
Update README with latest release version number.

Closing.


Add displayName/logo for contracts

Add new attributes to the contract model:

displayName would allow to manually specify the name of a contract when the regular name is not descriptive enough (like proxy instead of GnosisProtocol)
logo would allow us to show an icon identifying known contracts

I would say hosted by us

I would say hosted by us

Currently, name and logo is restricted to contracts, i.e. I cannot give a known address which is not a contract a name. Will this be change later or do we need a separate ticket for this?

Currently, name and logo is restricted to contracts, i.e. I cannot give a known address which is not a contract a name. Will this be change later or do we need a separate ticket for this?

Maybe the naming is not the best one, but the feature is still there... We can just add addresses without ABIs, but that depends on how @jpalvarezl and @rmeissner want to query the core services from the client gateway.
Either I create another model "EOA" or something like that and we have 2 endpoints /contracts/ and /eoas/ or I change the model name and create a single endpoint /known-addresses/, with same structure but abi: null for EOAs
WDYT @jpalvarezl @rmeissner ?

Maybe the naming is not the best one, but the feature is still there... We can just add addresses without ABIs, but that depends on how @jpalvarezl and @rmeissner want to query the core services from the client gateway.
Either I create another model "EOA" or something like that and we have 2 endpoints /contracts/ and /eoas/ or I change the model name and create a single endpoint /known-addresses/, with same structure but abi: null for EOAs
WDYT @jpalvarezl @rmeissner ?

Why can we not use https://github.com/gnosis/safe-transaction-service/blob/master/safe_transaction_service/contracts/models.py#L130 and don't link an abi?

Why can we not use https://github.com/gnosis/safe-transaction-service/blob/master/safe_transaction_service/contracts/models.py#L130 and don't link an abi?

Edit: I know it is called "Contract" but who does this really stop us from putting other addresses there?
Nothing, that's why I said maybe I should rename the class/endpoint

Edit 2: https://github.com/gnosis/safe-transaction-service/blob/master/safe_transaction_service/contracts/models.py#L135 is Cascade the best option here? (since Abi and Contract exists independent from each other)

Good point, it's not the best option

Edit: I know it is called "Contract" but who does this really stop us from putting other addresses there?
Nothing, that's why I said maybe I should rename the class/endpoint

Edit 2: https://github.com/gnosis/safe-transaction-service/blob/master/safe_transaction_service/contracts/models.py#L135 is Cascade the best option here? (since Abi and Contract exists independent from each other)

Good point, it's not the best option

Edit 3: @tschubotz just leave the name field empty

Leaving the name field empty is no problem. But the ABI is currently required. Hence I'm asking whether this could be made optional (+ potentially renaming the model to prevent confusion, yes. address or account could work e.g.)

Edit 3: @tschubotz just leave the name field empty

Leaving the name field empty is no problem. But the ABI is currently required. Hence I'm asking whether this could be made optional (+ potentially renaming the model to prevent confusion, yes. address or account could work e.g.)

Shouldn't be required, that's a typo 🙃

Shouldn't be required, that's a typo 🙃

@tschubotz This is fixed

@tschubotz This is fixed

@tschubotz This is fixed, can you check again? 😃

Looks good, thanks!
Feel free to close this issue or leave open for the potential renaming discussion. Your call @Uxio0

@tschubotz This is fixed, can you check again? 😃

Looks good, thanks!
Feel free to close this issue or leave open for the potential renaming discussion. Your call @Uxio0

I will close if for now, and if we need a rename we can always open a new one 😉

I will close if for now, and if we need a rename we can always open a new one 😉


Welcome message

Hey folks,
Is it possible to send a welcome message once a user join the channel/group? I couldn't find any reference on this.
Thanks in advance.

You can use service notifications:
bot.on('new_chat_participant', (msg) => {
  bot.sendMessage(msg.chat.id, 'Welcome');
});

@kamikazechaser new_chat_member over new_chat_participant?

!CLOSE

answer: https://github.com/yagop/node-telegram-bot-api/issues/337#issuecomment-303474839

I'm trying to follow the answer but it doesn't work
bot.on('new_chat_member', (msg) => {     bot.sendMessage(msg.chat.id, 'Welcome'); });

@kamikazechaser new_chat_member over new_chat_participant?

@ZamoraFTW

@ZamoraFTW @kamikazechaser I've been trying this as well, and it doesn't work new_chat_participant or new_chat_member. Have you found a solution?

new_chat_members
Check This: (https://core.telegram.org/bots/api#message)

Thanks for the link, though I've been testing the one from core telegram - msg. new_chat_members in particular. Is anyone having any success with getting this value?

@NatalieChin80 Your polling error may have nothing to do with the code. It is most likely that your Bot T=token is incorrect or you are attempting to poll with the same token from a different instance. A network issue may also bring about this error.
@saeedhei Thank you for bringing this into notice. From Telegrams changelog

Hi guyz, anyone here found the working solution ?
@0xicingdeath ?
Thanks


Error handling for invalid combinations of parameters

I have been working with some larger optimization runs (~10-15 parameters) for some machine learning models. Every now and then I run into an invalid combination of parameters for the models. For example, when optimizing a convolutional net's kernel filter sizes, strides, etc. over many layers can sometimes lead to impossible intermediate data dimensions. Most of the time I can avoid these issues by carefully selecting the bounds for each of the hyperparameters, but this becomes more difficult as the number of parameters increase.
I have been looking at a way to handle these invalid settings within Scikit-Optimize and wanted to check in with you guys before starting work on it. My initial thought is to add a simple try: except: block here: https://github.com/scikit-optimize/scikit-optimize/blob/master/skopt/optimizer/base.py#L246 . Something along the lines of this:
# skopt.optimizer.base.py

# Optimize
invalid_parameters = []
for n in range(n_calls):
    try:
        next_x = optimizer.ask()
        next_y = func(next_x)
        result = optimizer.tell(next_x, next_y)
        result.specs = specs
        if eval_callbacks(callbacks, result):
            break
    except Exception:
         invalid_parameters.append(next_x)

# ...

Obviously there would be some questions to sort out such as how would you store and return the invalid_parameters. But, what do you guys think, would this be something everyone would be interested in? If so, I can start up a PR.

I think having a good way to deal with "invalid combinations" would be welcome.
Having the objective func raise a particular kind of exception is a good idea to signal this.
One complication is that it is fairly likely that the optimizer will pick the same combination of parameters again the next time you call ask(). This makes some amount of sense as we did not provide any new information you would assume that the acquisition function still recommends the same set of parameters. For a very noisy/low amount of data setting we might get lucky and it recommends a different value. So maybe what we should do is call tell() for the invalid set of parameters with a very large value. And discourage the optimizer from picking this point again.
An alternative is to avoid ask() ever returning points which are invalid. I saw some other packages that do this but I don't have the links handy.

so far when this has happened to me I used the "return very large value" approach as a work around. But something more principled should be added.


[Transactions] Error message when not enough gas fee

Can we add a subtitle on the transaction fail toast when you're balance is not enough for the gas fee?
Transaction failed
Insufficient available balance for transaction fee

@mitchellchou seems there's no specific error code for every error, unless we want to extract text from error logs for each error, would we just show the raw log?
in this case it's something like
"failed to execute message; message index: 0:<PHONE_NUMBER>125nanoekil is smaller than<PHONE_NUMBER>280nanoekil: insufficient funds"

@Rico-Wong
Can we have a prefix System message: or System log: before the raw log?
Transaction failed
System message:"failed to execute message; message index: 0:<PHONE_NUMBER>125nanoekil is smaller than<PHONE_NUMBER>280nanoekil: insufficient funds"

yes


[GetGVKsFromAddToSchem] Identify better ways to handling metrics filter for third-party API's and/or CRD which are cluster scoped.

Feature Request
user-guide: default-metrics-exported-with-3rd-party-resource
Current documentation has gaps in understanding about the implementation to handle third party API schemas and their dependent schemas not registered with the manager. Also, I suspect there is an issue with registered schemes that also failed to be filtered for the OCP environment.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Suggested solution #2794
2794
Added variadic string param to GetGVKsFromAddToScheme for customkinds
it will allow to filter the custom third party or ocp schemas by passing
a list of kinds.
Purpose: Identify a solution that can make it easier either by improving the documentation or  implementation.

@akoserwal For the sake of completeness (and for others having similar problems), can you describe the problem you're having?

The kubemetrics.GenerateAndServeCRMetrics function requires an RBAC rule to list all GroupVersionKinds in the list of watched namespaces, so you might need to filter the kinds returned by k8sutil.GetGVKsFromAddToScheme more stringently to avoid authorization errors such as Failed to list *unstructured.Unstructured. You may also need to add a rule to LIST your third party API schemas and their dependent schemas not registered with the manager.

I do think this section is slightly confusing. GenerateAndServeCRMetrics creates metrics about instances of each of the GVKs passed in, in the set of namespaces passed in. It's been awhile since I've personally looked at this, but IIRC, kube-state-metrics will do a List() for each of these GVKs in each of those namespaces. Therefore the operator needs an RBAC rule to list that GVK in each of the specified namespaces.
The original use case for  k8sutil.GetGVKsFromAddToScheme was to use it only for your operator's APIs, so it would return just the GVKs of the CRDs that your operator owns. Your RBAC roles would already have rules that permit list on these resources so this generally "just works".
So let me ask some more specific questions:

As a sanity check, can you explain which GVKs you're trying to create metrics for? It sounds like you're going for your operator's APIs AND some external APIs?
If you are specifically intending to generate metrics for the external APIs, how are you deciding which of those you want metrics for? If it is a specific subset, have you considered just appending that subset to the list returned by k8sutil.GetGVKsFromAddToScheme when you call it for your operator's APIs?

Oh and lastly, what does your role.yaml file look like? Have you added list rules for each of the GVKs that is being passed into GenerateAndServeCRMetrics()?

HI @akoserwal,
After spoke with @joelanford about it I also agree that  #2794 would not be the best approach.
So, may the possible solution here is to improve the docs as joe describe above and then we can :

Clarify how to customize the filter in the docs by providing some example such as https://github.com/3scale/3scale-operator/blob/master/cmd/manager/main.go#L240
Add the info regards the OCP schemas caveats. See that when we add the OCP schema to the manager it also can add its dependencies schemas and then, if the role file has just the permissions to the schema added the issue can still be faced because of kubemetrics requires permissions to List and Watch all GKVs in all ns informed as well. Example: If we add imagev1 "github.com/openshift/api/image/v1" then others schemas will be added by default. See: https://github.com/openshift/api/blob/c99157bc6492218400b18cde7f66510f9ee56a9a/image/v1/register.go#L16

I hope that it helps.

Operator: https://github.com/teiid/teiid-operator
Issues I got when I try to update the service monitoring and metrics code generated by the operator-sdk(v15 or v16)
Errors:
      Failed to list *unstructured.Unstructured: deploymentconfigs.apps.openshift.io "rollback" not found
      Failed to list *unstructured.Unstructured: nodes is forbidden:
     Failed to list *unstructured.Unstructured: imagesignatures.image.openshift.io is forbidden
     Failed to list *unstructured.Unstructured: pods "proxy"
     Failed to list *unstructured.Unstructured: deploymentconfigs.apps.openshift.io "log" not found

Many more similar to above for different resources.
role.yaml

@akoserwal For the types in those error messages, are you intending to generate metrics for them? Or are you trying to figure out how to tell operator-sdk NOT to generate metrics for them so that those errors stop?
Where in your code are you calling GenerateAndServeCRMetrics()?

we revered the change: https://github.com/teiid/teiid-operator/commit/eb86d2f7d9c8df62b4b240e8aa8a895c515d4200
This case for now: "NOT to generate metrics for them so that those errors stop?"

Errors stopped after the grant all permissions to the resources, not just with verbs [list, watch].

I'm seeing this error too. And I can confirm that is not permission related as it can be reproduced even with cluster-admin role.

HI @raffaelespazzoli  and @akoserwal,
Note that some OCP APIs has NOT the Watch and List verbs that are required for kubemetrics be able to List and to Watch the resources to generate the metrics from them in the specified namespaces.
Example
See that the ImageStreamTags is not implementing the watch which would be important to observe changes in this resource as well.
$ oc api-resources -o wide | grep ImageStream
imagestreamimages isimage image.openshift.io true ImageStreamImage [get]
imagestreamimports image.openshift.io true ImageStreamImport [create]
imagestreammappings image.openshift.io true ImageStreamMapping [create]
imagestreams is image.openshift.io true ImageStream [create delete deletecollection get list patch update watch]
imagestreamtags istag image.openshift.io

So the GKV of ImageStreamTags can NOT be in the filter arg passed to the GetGVKsFromAddToScheme. And see that you cannot grant permission for an action that is not available in the OCP API.
And then, please beware of the purpose of this method as described previously here by @joe

The original use case for k8sutil.GetGVKsFromAddToScheme was to use it only for your operator's APIs, so it would return just the GVKs of the CRDs that your operator owns. Your RBAC roles would already have rules that permit list on these resources so this generally "just works".

So, the question is would really make sense you pass ALL these OCP values to the kubemetrics implementation? I do not think so. See that because of this, would be recommended you filter them as it is done in the 3-scale operator for example. See: https://github.com/openshift/api/blob/c99157bc6492218400b18cde7f66510f9ee56a9a/image/v1/register.go#L16

@camilamacedo86 I admit I am not fully following the discussion here. But I am not trying to do anything special with GetGVKsFromAddToScheme. I am writing a normal operator that uses a few OCP resources. That's all I do and I get all of those errors. When I remove metrics, I stop receiving those errors. Btw, I am not using resources from the image.openshift.io api domain. I'm using apis from the following domains:
network.openshift.io
cloudcredential.openshift.io
config.openshift.io

@camilamacedo86: This makes sense now.
Points of confusion

About the setting the role's permissions correctly and passing ALL these OCP values to the kubemetrics implementation?

"kubemetrics.GenerateAndServeCRMetrics function requires an RBAC rule to list all GroupVersionKinds in the list of watched namespaces, ":

This implies that we need to add the verb "list" to the resource defined in the role.yaml. We can add points that can make it clear to verify the correct permissions for the resources and you need to add custom filter implementation to the existing GKVs defined in the used runtime.Schema for the operator. Reason: "kube-metrics tries to list all of the defined Kinds in the schemas that are passed," including Kinds that the operator doesn't use and thus the role used the operator. We can filter the roles which are not required.
with some example like:
https://github.com/3scale/3scale-operator/blob/master/cmd/manager/main.go#L240

HI @raffaelespazzoli,

@camilamacedo86 I admit I am not fully following the discussion here. But I am not trying to do anything special with GetGVKsFromAddToScheme. I am writing a normal operator that uses a few OCP resources. That's all I do and I get all of those errors. When I remove metrics, I stop receiving those errors.

Note that:

This scenario can just/only be faced when third-party APIs schemas are added on the projects
The usage of third-party API's is not mandatory for Operator's projects works in the specific cluster vendors.

So, what I am trying to clarify here is that:

IMO the default metrics helper provided will attend perfectly well the most common scenarios and users as their needs.

However, if a developer would like to take advantage of OCP APIs and/or any other third-party one which is specific for some kind of vendor or some specific cluster configuration then, some customizations in the project will be required as described in the docs (which I agree as well that has a good hall for improvements).
Also, note that other recommendations would be suggested as well for these very specific solutions and scenarios. I'd like to share with you the blogs Why not couple an Operator's logic to a specific Kubernetes platform? and How to use third-party APIs in Operator SDK projects

Btw, I am not using resources from the image.openshift.io api domain. I'm using APIs from the following domains:
network.openshift.io
cloudcredential.openshift.io
config.openshift.io

That was just an example to illustrate the scenario.
Also, note that OCP Schemas may add other ones which are its dependencies. E.g. If we add “github.com/openshift/api/image/v1” then others schemas will be added behind of the scene. See its implementation here
And then, IMO the appropriate questions for your specific scenario would be that one done by @joelanford above: For the types in those error messages, are you intending to generate metrics for them?  Instead of going there and grant permissions.

The other key here is that GetGVKsFromAddToScheme is a convenience helper function that makes it easier to get your operator's GVKs from the existing registration functions.
However, if those registration functions are pulling in a bunch of other GVKs you don't care about, it is totally reasonable to skip using GetGVKsFromAddToScheme() and manually construct the list of GVKs to pass them into GenerateAndServeCRMetrics().

@camilamacedo86 I am still confused on what is the right thing to do to make the error go away. As I said I import these APIs:
network.openshift.io
cloudcredential.openshift.io
config.openshift.io

for my operator exactly with the method described by this article: How to use third-party APIs in Operator SDK projects. Yet I'm getting this error.
I'm not getting from this conversation what one is supposed to do to create an operator correctly.

HI @raffaelespazzoli,
As described above

The original use case for k8sutil.GetGVKsFromAddToScheme was to use it only for your operator's APIs, so it would return just the GVKs of the CRDs that your operator owns. Your RBAC roles would already have rules that permit list on these resources so this generally "just works".

Then, the suggested solution is to customize your metrics implementation as described in the doc.
Note that filteredGVK should have just the Operator's GKV's in your scenario.  And then, as shared some example over how you can customize the implementation of the metric in your project is: https://github.com/3scale/3scale-operator/blob/master/cmd/manager/main.go#L240

@camilamacedo86 I think I get it now. here is what my code looks like:
	gvkFilters := []schema.GroupVersionKind{

		// Operator resource types
		schema.GroupVersionKind{Group: "redhatcop.redhat.io", Kind: "EgressIPAM", Version: matchAnyValue},
	}

just reporting a small fragment. The rest is the same as the one in the provided 3scale example.
Yet I am still getting the error...

HI @raffaelespazzoli,
Note that you should pass just the operator's GKVs to the GenerateAndServeCRMetrics. Also, you need to ensure that your operator has the required permissions to watch/list them. So, if this information is not enough for you sorted it out, I'd kindly ask for you raise a new issue providing all information as the error faced, your main.go implementation, roles and as the steps used to test/check it.
PS.: Note that the goal of this issue is to  Identify better ways to handling metrics filter for third-party API's and/or CRD which are cluster scoped. which shows that check and help with specific scenarios would be out of context.
Really thank you in advanced for your attention and comprehension.

We captured this issue as an action item to address as part of #2811, so I'm going to close this one since there will likely be larger upcoming changes after the kubebuilder integration lands.
There's been a bunch of discussion here, but I don't think we've properly communicated the origin of this function and some of the assumptions we made when it was added and included in the main.go scaffold. So here goes!

When running operator-sdk new to create a new project, main.go gets scaffolded. From the start, it has this GetGVKsFromAddToScheme() function included. Despite there not being any APIs added to the project, this works! How you ask?
As part of operator-sdk new, we also scaffold pkg/apis/apis.go which includes a global AddToSchemes SchemeBuilder and a global AddToScheme function. In a brand new project, nothing has been appended to AddToSchemes, so GetGVKsFromAddToScheme() returns an empty slice of GVKs.
Next, after running operator-sdk add api --api-version=example.com/v1 --kind=App, the pkg/apis/example/ directory gets scaffolded with the API types AND pkg/apis/addtoscheme_example_v1.go gets scaffolded. That file appends the new API to the global AddToSchemes SchemeBuilder.
Now, without any changes in main.go, GetGVKsFromAddToScheme returns the new GVK. As more APIs are added to the project, this function ensures they are automatically configured for kube-state-metrics instrumentation.
What we didn't foresee was users customizing pkg/apis/addtoscheme_example_v1.go to append extra AddToScheme functions from external CRDs. Instead, we believed these external APIs would be added to the manager's scheme directly in main.go, as documented here.
TL;DR
Our assumptions about how GetGVKsFromAddToScheme() would be used don't hold. I think the correct solution for those facing this problem is to completely stop using GetGVKsFromAddToScheme() and to instead manually manage the set of GVKs passed into  GenerateAndServeCRMetrics()

Just to supplement as described above note that the original use case for k8sutil.GetGVKsFromAddToScheme was to return just the GVKs of the CRDs that the operator owns. Your RBAC roles would have rules that permit List on these resources already. However, following an example over how would be possible to filter the 3rd party resources schemas added to the Manager.
Example
func filterGKVsFromAddToScheme() ([]schema.GroupVersionKind, error) {
    filteredGVK, err := k8sutil.GetGVKsFromAddToScheme(apis.AddToScheme)
    if err != nil {
        return nil, err
    }

    // types that will be ignored
    ignoreList := []schema.GroupVersionKind{
        // OCP types
        schema.GroupVersionKind{Group: "route.openshift.io", Kind: "Route", Version: "*"},
        schema.GroupVersionKind{Group: "image.openshift.io", Kind: "ImageStream", Version: "*"},
        schema.GroupVersionKind{Group: "apps.openshift.io", Kind: "DeploymentConfig", Version: "*"},
        // Others Operators API
        schema.GroupVersionKind{Group: "example.appservice.com", Kind: "AppService", Version: "*"},
        // Kubernetes types
        schema.GroupVersionKind{Kind: "PersistentVolumeClaim", Version: "*"},
        schema.GroupVersionKind{Kind: "ServiceAccount", Version: "*"},
    }

    ownGVKs := []schema.GroupVersionKind{}
    for _, gvk:= range filteredGVK {
        for _, ignoreGKV := range ignoreList {
            if !hasMatch(ignoreGKV, gvk) {
            	ownGVKs = append(ownGVKs, gvk)
            }
        }
    }

    return ownGVKs, nil
}

func hasMatch(ignoreGKV schema.GroupVersionKind, gvk schema.GroupVersionKind) bool {
    if ignoreGKV.Kind == "*" && ignoreGKV.Group == "*" && ignoreGKV.Version == "*" {
        return false
    } else {
        if (ignoreGKV.Kind != "*" && ignoreGKV.Kind != gvk.Kind) ||
            (ignoreGKV.Group != "*" && ignoreGKV.Group != gvk.Group) ||
            (ignoreGKV.Version != "*" && ignoreGKV.Version != gvk.Version) {
            return false
        }
    }
}


Sensors briefly go to Unknown at update

Version of the custom_component
1.0.0
Configuration
Default configuration from integrations page.
Update interval 30
Describe the bug
I notice that at each update, the sensor briefly goes to "unknown" state before retrieving new state. This means that numerical values always go to 0 before updating, so the trends look quite strange there.
Debug log
No logs available

Could you post a screenshot of the trend?
Also, are there any error messages in your log?

What is your configured read timeout?

The trend has been somewhat off, due to some restarts, etc, but you see the main trend there. What is strange, is that when following the trend on the mouse, it is counting up to the next update.
The configured timeout has been tried for both 15 and 30 (is this seconds? No description in the UI). I have tried both update interval 30 and 60 (seconds or minutes?)
Log shows something like this:

The trend you showed here is completely normal. It goes up from 0%-100% when working on a WorkUnit. Then it gets assigned a new Workunit and starts at 0%.

You are right about that one :)
But it still blinks unknown when updating the values. That should not be, right?

While we have been discussing, the number of logged problems has grown:

The dip on the far right is somewhat interesting. It is not that unknown is interpreted as 0, the folding@home client did report back "0".
As for the settings:
Both are in seconds.
It does not make sense to have a bigger update rate than read timeout.
The Integration waits <read_timeout> seconds for the next message from the server. After that it disposes the connection and tries to reconnect again.
The update rate is something which is not controlled by the Integration. The Folding@Home client is told that it should send updates every <update_rate> second.
If you told the F@H client to only provide updates every 30s but you say that the connection is to be handled as dead after 15s (read_timeout). You will actually reconnect every 15s and thus have a short unknown followed by the first update after the reconnect.

Thanks for the explanation. Will I need to restart Home Assistant to update the settings?

No changing the options on an Integration managed via UI never require a restart.

That did it. Set the update rate to 60s and timeout to 70, and it last update no issue. I think it maybe should be default with longer timeout than poll interval to make sure any time discrepancies in polling is not presented with the "issue" I was experiencing. ((?)

Default UpdateRate should be 5 and ReadTimeout 15.
Was this different for you?

I left the timeout and set to 30 and later 60. Works now with 60/70.
Close this issue, it is apparently user error

I will add this to a known issues section in the docs. Thanks for reaching out!


update requirements.txt

1,'json' update to 'jason'
2,'torchvisson==0.8.1' update to 'torchvision==0.8.1'
2,add 'torchsummary'

thx, I agree to point 2 and 3, but the 1 I think it is json instead of jason, maybe u can change it

Thx ur 3 commit, although it still have some problem, I'll merge it and update one later by myself, just for encouraging PR.


fairseq-generate duplication

I have tried to do the back-translation by using fairseq-generate,but the final generation were a lot of duplicated sentences. Is there any configurations about this issue?

Hi !!! I'm facing the same issue. Any insights ?
For me the sentences are repeated at random places, not all together and one after the other as in OP's case.


feat(feature-flags): Add bootstrap option for feature flags

Just like https://github.com/PostHog/posthog-js/pull/444 but for react-native.
@benjackwhite I could use some help figuring out this works for react-native.
Current issues I'm facing:

The CI doesn't seem to be testing posthog-react-native ?
How do I get the new test created specifically for react-native to run? Unfamiliar with expo, and it's complaining about those imports.
Can you help testing a 'live' version of this and confirming it works?

1. The CI doesn't seem to be testing `posthog-react-native` ?

It does - It's right after the standard tests https://github.com/PostHog/posthog-js-lite/blob/master/.github/workflows/ci.yml#L22

2. How do I get the new test created specifically for react-native to run? Unfamiliar with expo, and it's complaining about those imports.

Expo is a hard beast to test but for this we can stick to the unit tests. They have to be run separate to the other tests due to some specific tsconfig rules for React Native...

3. Can you help testing a 'live' version of this and confirming it works?

Sure - I'll check it out!

@neilkakkar trying to fix the tests but not sure what the logic should be.
Currently its doing this:

On load bootstrap the things
If feature flags are given they are set 👍
Immediately after we reload the feature flags

My assumption is we don't want to immediately reload the flags from the API if they are given. Is that correct?

My assumption is we don't want to immediately reload the flags from the API if they are given. Is that correct?

No, this is okay!
The idea is that some flags are available on immediate load, while we wait for /decide or new properties to reflect in the feature flags.
Some flags would be impossible to bootstrap, hence the immediate reload ensures we get those as soon as possible as well.

@neilkakkar this looks good now and everything passes. Turns out memorystorage for RN was always broken anyway so this is a good catch...
Might be worth a quick glance for yourself over what I changed but if that's all good then I'd say we are good to go

Much appreciated, thanks! I just added a test for the async storage as well.


Don't run on API 16, please fix it. thanks you

Currently library min SDK version is 15 as shown below:
defaultConfig {
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
    }


feat(iris): performance tracing

Addresses https://github.com/getsentry/sentry-go/issues/496
Tests will come at a later time (on this PR), probably next weekend.

cc @ribice @cleptric

Will merge this later this week.