Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position

Expected Behavior
Login as normally it does
Actual Behavior
`2016-08-27 20:06:46,812 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-27 20:06:46,825 [       cli] [INFO] commit: not found
2016-08-27 20:06:46,846 [       cli] [INFO] No config argument specified, checking for /configs/config.json
2016-08-27 20:06:46,851 [       cli] [WARNING] The daily_catch_limit argument has been moved into the CatchPokemon Task
2016-08-27 20:06:46,862 [       cli] [INFO] Configuration initialized
2016-08-27 20:06:46,864 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-27 20:06:46,865 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-27 20:06:46,881 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-27 20:06:47,660 [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-28 12:09:38.660000
2016-08-27 20:06:47,841 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-27 20:06:47,842 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-27 20:06:47,842 [PokemonGoBot] [INFO] [location_found] Location found: -33.859221,151.208805 (-33.859221, 151.208805, 8.0)
2016-08-27 20:06:47,844 [PokemonGoBot] [INFO] [position_update] Now at (-33.859221, 151.208805, 8.0)
2016-08-27 20:06:47,845 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-27 20:06:51,598 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-27 20:06:51,631 [PokemonGoBot] [INFO] Found encrypt.dll! Platform: win32 encrypt.dll directory: C:\poke\PokemonGo-Bot
2016-08-27 20:06:51,632 [PokemonGoBot] [INFO]
Traceback (most recent call last):
File "pokecli.py", line 746, in
main()
File "pokecli.py", line 170, in main
bot.event_manager.emit(
AttributeError: 'bool' object has no attribute 'event_manager'
2016-08-27 20:06:52,421 [sentry.errors] [ERROR] Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https://app.getsentry.com/api/90254/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 1053, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1093, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1049, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 891, in _send_output
msg += message_body
File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte
2016-08-27 20:06:52,424 [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'bool' object has no attribute 'event_manager'", u'  File "pokecli.py", line 746, in ', u'  File "pokecli.py", line 170, in main']
Something went wrong and the bot needed to be restarted. Please investigate the cause.
Waiting for 24 seconds, press a key to continue ...
`
Your FULL config.json (remove your username, password, gmapkey and any other private info)
`{
"auth_service": "google",
"username"<EMAIL_ADDRESS>"password": "**;",
"location": "-33.859221,151.208805",
"favorite_locations":[
    {"name": "Sydney", "coords": "-33.859221,151.208805"}
],
"gmapkey": "***",
"encrypt_location": "",
"websocket_server": false,
"heartbeat_threshold": 10,
"enable_social": true,
"live_config_update": {
  "enabled": false,
  "tasks_only": false
},
"tasks": [
  {
    "//NOTE: This task MUST be placed on the top of task list": {},
    "type": "RandomAlivePause",
    "config": {
      "enabled": false,
      "min_duration": "00:00:10",
      "max_duration": "00:10:00",
      "min_interval": "00:05:00",
      "max_interval": "01:30:00"
    }
  },
  {
    "type": "HandleSoftBan"
  },
  {
    "type": "RandomPause",
    "config": {
      "enabled": false,
      "min_duration": "00:00:10",
      "max_duration": "00:10:00",
      "min_interval": "00:10:00",
      "max_interval": "02:00:00"
    }
  },
  {
    "type": "CompleteTutorial",
    "config": {
      "enabled": false,
      "// set a name": "",
      "nickname": ""
    }
  },
  {
    "type": "CollectLevelUpReward",
    "config": {
      "collect_reward": true,
      "level_limit": -1
    }
  },
  {
    "type": "IncubateEggs",
    "config": {
      "enabled": true,
      "longer_eggs_first": true,
      "min_interval": 120,
     "infinite": [2,5,10],
     "breakable": [2,5,10]
    }
  },
  {
    "type": "UpdateLiveStats",
    "config": {
      "enabled": false,
      "min_interval": 10,
      "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
      "terminal_log": true,
      "terminal_title": true
    }
  },
  {
    "type": "UpdateLiveInventory",
    "config": {
      "enabled": false,
      "min_interval": 120,
      "show_all_multiple_lines": false,
      "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
    }
  },
  {
    "type": "ShowBestPokemon",
    "config": {
      "enabled": true,
      "min_interval": 60,
      "amount": 5,
      "order_by": "cp",
      "info_to_show": ["cp", "ivcp", "dps", "hp"]
    }
  },
  {
    "type": "TransferPokemon",
    "config": {
      "enabled": true,
      "min_free_slot": 5,
      "transfer_wait_min": 3,
      "transfer_wait_max": 5
    }
  },
  {
    "type": "NicknamePokemon",
    "config": {
      "enabled": false,
      "nickname_above_iv": 0.9,
      "nickname_template": "{iv_pct}_{iv_ads}"
    }
  },
  {
    "type": "EvolvePokemon",
    "config": {
      "enabled": false,
      "evolve_all": "none",
      "first_evolve_by": "cp",
      "evolve_above_cp": 500,
      "evolve_above_iv": 0.8,
      "logic": "or",
      "min_evolve_speed": 25,
      "max_evolve_speed": 30,
      "use_lucky_egg": false
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "enabled": true,
      "min_empty_space": 15,
      "max_balls_keep": 150,
      "max_potions_keep": 50,
      "max_berries_keep": 70,
      "max_revives_keep": 70,
      "item_filter": {
        "Pokeball":       { "keep" : 100 },
        "Potion":         { "keep" : 10 },
        "Super Potion":   { "keep" : 20 },
        "Hyper Potion":   { "keep" : 30 },
        "Revive":         { "keep" : 30 },
        "Razz Berry":     { "keep" : 100 }
      },
      "recycle_wait_min": 3,
      "recycle_wait_max": 5,
      "recycle_force": true,
      "recycle_force_min": "00:01:00",
      "recycle_force_max": "00:05:00"
    }
  },
  {
    "type": "CatchPokemon",
    "config": {
      "enabled": true,
      "catch_visible_pokemon": true,
      "catch_lured_pokemon": true,
      "min_ultraball_to_keep": 5,
      "berry_threshold": 0.35,
      "vip_berry_threshold": 0.9,
      "treat_unseen_as_vip": true,
      "catch_throw_parameters": {
        "excellent_rate": 0.1,
        "great_rate": 0.5,
        "nice_rate": 0.3,
        "normal_rate": 0.1,
        "spin_success_rate" : 0.6,
        "hit_rate": 0.75
      },
      "catch_simulation": {
        "flee_count": 3,
        "flee_duration": 2,
        "catch_wait_min": 3,
        "catch_wait_max": 6,
        "berry_wait_min": 3,
        "berry_wait_max": 5,
        "changeball_wait_min": 3,
        "changeball_wait_max": 5,
        "newtodex_wait_min": 20,
        "newtodex_wait_max": 30
      }
    }
  },
  {
    "type": "SpinFort",
    "config": {
      "enabled": true,
      "spin_wait_min": 3,
      "spin_wait_max": 5
    }
  },
  { "type": "UpdateWebInventory",
    "config": {
      "enabled": true
    }
  },
  {
    "type": "MoveToFort",
    "config": {
      "enabled": true,
      "lure_attraction": true,
      "lure_max_distance": 2000,
      "walker": "StepWalker"
    }
  },
  {
    "type": "FollowSpiral",
    "config": {
      "enabled": true,
      "diameter": 4,
      "step_size": 70
    }
  }
],
"map_object_cache_time": 5,
"forts": {
  "avoid_circles": true,
  "max_circle_size": 50,
  "cache_recent_forts": true
},
"pokemon_bag": {
  "// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start": {},
  "show_at_start": true,
  "// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)": {},
  "show_count": false,
  "// if 'show_candies' is true, it will show the amount of candies for each pokemon": {},
  "show_candies": false,
  "// 'pokemon_info' parameter define which info to show for each pokemon": {},
  "// the available options are": {},
  "// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']": {},
  "pokemon_info": ["cp", "iv_pct"]
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 500,
"alt_max": 1000,
"sleep_schedule": [
  {
    "time": "12:00",
    "duration": "5:30",
    "time_random_offset": "00:30",
    "duration_random_offset": "00:30",
    "wake_up_at_location": ""
  },
  {
    "time": "17:45",
    "duration": "3:00",
    "time_random_offset": "01:00",
    "duration_random_offset": "00:30",
    "wake_up_at_location": ""
  }
],
"gps_default_altitude": 8.0,
"replicate_gps_xy_noise": false,
"replicate_gps_z_noise": false,
"gps_xy_noise_range": 0.000125,
"gps_z_noise_range": 12.5,
"debug": false,
"test": false,
"walker_limit_output": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"logging_color": true,
"daily_catch_limit": 800,
"catch": {
  "any": {"candy_threshold" : 400 ,"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"},
  "// 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 best (based on IV) Zubat:": {},
  "// Zubat": {"keep_best_iv": 2},
  "// Keep no more than 3 best IV pokemon for every pokemon type": {},
  "// any": {"keep_best_iv": 3},
  "// Discard all pokemon in bag except 100 pokemon with best CP": {},
  "// all": {"keep_best_cp": 100},
  "// 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},
  "// Example of custom order of static criterion": {},
  "// Zubat": {"keep_best_custom": "iv, cp, hp_max", "amount":2}
},
"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": {}
}

}
`
Output when issue occurred
`2016-08-27 20:10:10,471 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-27 20:10:10,482 [       cli] [INFO] commit: not found
2016-08-27 20:10:10,493 [       cli] [INFO] No config argument specified, checking for /configs/config.json
2016-08-27 20:10:10,497 [       cli] [WARNING] The daily_catch_limit argument has been moved into the CatchPokemon Task
2016-08-27 20:10:10,497 [       cli] [INFO] Configuration initialized
2016-08-27 20:10:10,499 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-27 20:10:10,499 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-27 20:10:10,509 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-27 20:10:11,007 [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-28 11:31:03.008000
2016-08-27 20:10:11,209 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-27 20:10:11,210 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-27 20:10:11,210 [PokemonGoBot] [INFO] [location_found] Location found: -33.859221,151.208805 (-33.859221, 151.208805, 8.0)
2016-08-27 20:10:11,211 [PokemonGoBot] [INFO] [position_update] Now at (-33.859221, 151.208805, 8.0)
2016-08-27 20:10:11,213 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-27 20:10:15,051 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-27 20:10:15,052 [PokemonGoBot] [INFO] Found encrypt.dll! Platform: win32 encrypt.dll directory: C:\poke\PokemonGo-Bot
2016-08-27 20:10:15,052 [PokemonGoBot] [INFO]
Traceback (most recent call last):
File "pokecli.py", line 746, in
main()
File "pokecli.py", line 170, in main
bot.event_manager.emit(
AttributeError: 'bool' object has no attribute 'event_manager'
2016-08-27 20:10:17,365 [sentry.errors] [ERROR] Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https://app.getsentry.com/api/90254/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 1053, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1093, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1049, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 891, in _send_output
msg += message_body
File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte
2016-08-27 20:10:17,371 [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'bool' object has no attribute 'event_manager'", u'  File "pokecli.py", line 746, in ', u'  File "pokecli.py", line 170, in main']
Something went wrong and the bot needed to be restarted. Please investigate the cause.
Waiting for  0 seconds, press a key to continue`
Steps to Reproduce
I just ran the bot using windowsstart.bat .. I tried using another account it worked...could this be because I have been banned (I can't login on my phone also "Unable to authenticate .." is what I get on my phone) I haven't received a ban notice from Ninantic in my email... If I this is a ban is there a way you can know for sure in this bot or in another app something like banchecker.com .
Thanks in adavnce.
Other Information
OS:
Windows 10 Pro Build 14393.82
Branch:
Master
Git Commit:
ed095936e8fb2bdb7442c9966630664f0cb739ea
Python Version:
Python 2.7.10
Any other relevant files/configs (eg: path files)

Same problem here. Other account is working normal with the bot. No problems on phone.

I suspect you're banned. The error you're seeing appears to be in the code to raise a permaban exception.

I agree @Gobberwart
I am closing the issue.

@updatesvc there's still a bug. There's supposed to be an error message shown, not a complete crash.

Looking at it now

No the account is not banned. It is working fine on phone. I can spin stops and catch pokemons.

You sure about that @jane0815 ? The code referenced in the error is specifically related to permaban:
2016-08-27 20:10:17,371 [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'bool' object has no attribute 'event_manager'", u' File "pokecli.py", line 746, in ', u' File "pokecli.py", line 170, in main']

Do you see that exact error?

PR being submitted now for this error.

for me the error is a bit different in this line:
2016-08-27 19:53:40,131 [sentry.errors.uncaught] [ERROR] [u'ValueError: end is out of bounds', u' File "pokecli.py", line 746, in ', u' File "pokecli.py", line 115, in main', u' File "pokecli.py", line 83, in initialize', u' File "pokemongo_bot/__init.py", line 123, in start', u' File "pokemongo_bot/inventory.py", line 1234, in init_inventory', u' File "pokemongo_bot/inventory.py", line 1086, in init', u' File "pokemongo_bot/inventory.py", line 1096, in refresh', u' File "pokemongo_bot/inventory.py", line 1116, in update_web_inventory', u' File "json/init.py", line 291, in load', u' File "json/init.py", line 339, in loads', u' File "json/decoder.py", line 364, in decode', u' File "json/decoder.py", line 380, in raw_decode']

look like it could be another unrelated issue..not sure though

Yep, that's a different error. Please log a new issue @jane0815

looks like the inventory file is corrupted.
can you post the inventory file found in web/inventory-.json ?

I was thinking that too @rawgni
You can test by stopping the bot, renaming the inventory file "web/inventory-USERNAME.json" to something like "inventory-USERNAME.test.json" and restart the bot. It should recreate the inventory file on startup.

Bot is working again after i delete all and pulled a new clone.
But your guess is right i think. Bot was stopped after web showed it had 0 eggs left.

Please open a new issue if you have problems (it should be showing a new error log).


lost title bar sometimes

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

Version: 1.81.1 (Universal)
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:20:33.924Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.5.0
Steps to Reproduce:
it happens most of time after updating the vscode, the exist vscode window will close then restore after update is finished.
the restored window maybe lost title bar, I have to exit vscode then reopen the window, Close Window  not works

@deepak1556 dupe?

/duplicate https://github.com/microsoft/vscode/issues/161586


Support SetVariable request

Set the variable with the given name in the variable container to a new value

The https://github.com/jerryscript-project/jerryscript/pull/2583 is landed, we could merge this PR after a second approve.

@LaszloLango : Thanks for the review, I've updated the PR.


SQL logic error: there is already another table or index with this name: sessions (1)

Describe the bug
Okt 19 22:47:24 SK-RPI-01 evcc[26224]: [db    ] TRACE 2022/10/19 22:47:24 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="transactions" -1 <nil>

Okt 19 22:47:24 SK-RPI-01 evcc[26224]: [db    ] TRACE 2022/10/19 22:47:24 ALTER TABLE `transactions` RENAME TO `sessions` 0 SQL logic error: there is already another table or index with t
Okt 19 22:47:24 SK-RPI-01 evcc[26224]: [main  ] FATAL 2022/10/19 22:47:24 failed configuring site: SQL logic error: there is already another table or index with this name: sessions (1)

Steps to reproduce
After update from 0.104.2+1665114631 to new release, evcc start failed
Configuration details
`# open evcc at http://evcc.local:7070
network:
schema: http
host: *****
port: 7070
log: trace
#log: info
levels:
cache: error
lp-1: trace
site: trace
eebus: trace
interval: 10s #  control cycle interval
meters:

type: template
template: kostal-plenticore
id: *****
host: *****
port: 1502
usage: pv
modbus: tcpip
name: pv1
type: template
template: kostal-plenticore
id: *****
host: *****
port: 1502
usage: battery
modbus: tcpip
name: battery2
type: template
template: kostal-ksem-inverter
id: *****
host: *****
port: 1502
usage: grid
modbus: tcpip
name: grid3

chargers:

type: template
template: ellipro
ski: D5E1 516B CBDA 56DC 288D 8B9A 9E58 85EF BF7B 00DD
ip: <IP_ADDRESS>
name: wallbox5

vehicles:

type: template
template: skoda
title: Octavia iV
user: *****
password: *****
capacity: 11
phases: 1
name: ev4

loadpoints:

title: Garage
charger: wallbox5
vehicle: ev4
mode: pv
phases: 0
mincurrent: 6
maxcurrent: 16
resetOnDisconnect: true

site:
title: PV Nutzung
residualPower: 200
meters:
grid: grid3
pvs:
- pv1
batteries:
- battery2
tariffs:
currency: EUR # (default EUR)
grid:
# static grid price
type: fixed
price: 0.344 # [currency]/kWh
feedin:
# rate for feeding excess (pv) energy to the grid
type: fixed
price: 0.064 # [currency]/kWh
sponsortoken: *****
eebus:
certificate:
private: |

  public: |
      -----BEGIN CERTIFICATE-----

      -----END CERTIFICATE-----

`
Log details
Okt 19 22:47:24 SK-RPI-01 evcc[26224]: [db    ] TRACE 2022/10/19 22:47:24 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="transactions" -1 <nil>

Okt 19 22:47:24 SK-RPI-01 evcc[26224]: [db    ] TRACE 2022/10/19 22:47:24 ALTER TABLE `transactions` RENAME TO `sessions` 0 SQL logic error: there is already another table or index with t
Okt 19 22:47:24 SK-RPI-01 evcc[26224]: [main  ] FATAL 2022/10/19 22:47:24 failed configuring site: SQL logic error: there is already another table or index with this name: sessions (1)

What type of operating system are you running?
Linux
Version
evcc version 0.105.2

I fix it with delete the db file ~/.evcc/evcc.db and lost all charging logs

In that case not much we could do now. If you still have the old database file please email to<EMAIL_ADDRESS>for testing.


Warden Key Missing - Action Cable

I've got an up to date Rails 5 app running Devise, and Action Cable. I can authorize the connection just fine, that is not the problem. The issue is using current_user helper within a notification partial that's pushed out using Action Cable. It's causing an error because no middleware is exec in Action Cable.
TLDR;

model record contains an after action that creates a notification record
notifications are background jobs, thus they do NOT stem from a controller
current_user helper causing error of missing warden key when used in a partial broadcasted with action cable

This sums it up better than I can. Here's the accompanying link: https://evilmartians.com/chronicles/new-feature-in-rails-5-render-views-outside-of-actions

I've tried a few work arounds and haven't had much luck, and I'm definitely not in the mindset of monkey patching. Any thoughts?

I'm bumping this again after researching on Google how to fix this error, and coming across my own bug report from back in March. I realize you don't get paid to maintain this gem but if you have any thoughts, I'd love to hear them.

Any idea on how to get this fixed? I have tried many things that did not work. Having issue with user_signed_in? as well. Any help or idea on how to fix this will be appreciated.

Hi @bearded-avenger, thank you for reporting this. Sorry for taking this long to reply, I've started to looking into the issues recently and there were a lot of them.
Unfortunately, I haven't worked with Action Cable before, so I'm not sure what would be an ideal solution for this problem.
I'm not sure if I'm missing something. The article suggests to mock a rack env, but if we do, we won't have any real values on it, right?
Let's say that we make #current_user handle the case were warden isn't initialized: what would the method return? nil?

I'm closing this issue because it has not had recent activity.
If you're still facing this on the latest version, please open a new one with all the information requested in the template.
Thank you!

This is still an issue, and yeah the above bug is just like it.
Our app uses notifications. Each notification is in a partial. Each partial has something like current_user.has_read_notification?. With the way things are now, as you mentioned, there's no way to get a handle on current_user. Passing the user through the partial and doing a lookup isnt an option.
Ideally, we have access to current_user in partials rendered outside of the scope of the app.

@bearded-avenger I just want to know what the ideal solution would be in order to tackle this. I don't have previous experience with action cable or Application.renderer, so I'm a little lost here.
Since no rack middlewares are called, I don't see how we could access the current user. The blog post mentioned above says we should "mock a request". But if that's the case, current_user would always return nil, right? Am I missing something here?

@bearded-avenger oh, ok. Thanks for your reply.
The thing is: we use Warden for authentication. It is a rack middleware that is called in a request and reads the current session to define whether a user is authenticated or not. By reading the previous comments, it seems like in this case, no rack middlewares are called - which is why you're getting this error message. So I'm not sure how we could handle this without any middlewares being called.

[ActiveJob] [CommentBroadcastJob] [29558acd-658a-4a3a-b870-f447881740b8] Error performing CommentBroadcastJob (Job ID: 29558acd-658a-4a3a-b870-f447881740b8) from Async(default) in 34.14ms: ActionView::Template::Error (Devise could not find the Warden::Proxy instance on your request environment.
Make sure that your application is loading Devise and Warden as expected and that the Warden::Manager middleware is present in your middleware stack.
If you are seeing this on one of your tests, ensure that your tests are either executing the Rails middleware stack or that your tests are using the Devise::Test::ControllerHelpers module to inject the request.env['warden'] object for you.):
I cannot find any solution for it.
any updates?

I've run into this as well. I'm trying to bring the notifications feature from this app into my own:
https://github.com/gorails-screencasts/gorails-episode-125/
I'm running ActionCable on a separate server (using docker compose) and Apartment for multi-tenancy with subdomain scoped cookies. My action-cable-url was set to ws://lvh.me:28080. It needs the subdomain in there to access the env['warden'] key. It can be fixed with something like this in your application layout:
- if current_account.present?
   -# TODO account for wss protocol for production (wss)
   %meta{name: "action-cable-url", content: "ws://#{current_account.subdomain}.lvh.me:28080"}
- else
  = action_cable_meta_tag

Or something more graceful that works with the existing action_cable_meta_tag helper.

Hi there,
I'm running a project that uses:

Ruby 2.3.0
Rails 5.0.1
Actioncable 5.0.6

We are using Action Cable, and for authentication using Devise and Warden, we have the following code in the app/channels/connection.rb file.
module ApplicationCable
  class Connection < ActionCable::Connection::Base
  identified_by :current_user

 def connect
    self.current_user = find_verified_user
    logger.add_tags 'ActionCable', current_user.email
  end

  protected

  def find_verified_user
    if verified_user == env['warden'].user
     verified_user
    else
      reject_unauthorized_connection
    end
  end
end

Hope it helps. Regards.

I'm closing this since it looks like the way to is to manually pass the current user to the views. Because we rely on Warden there must be a rack request in order for it to work.

I was facing the same problem, when I tried to use ApplicationController.render to render the partial view that I want to pass to the action cable.
I've got the solution from the article linked below, but this solution makes sign_in_count increase whenever rendering a partial view using ApplicationController.render_with_signed_in_user.
 def self.render_with_signed_in_user(user, *args)
   ActionController::Renderer::RACK_KEY_TRANSLATION['warden'] ||= 'warden'
   proxy = Warden::Proxy.new({}, Warden::Manager.new({})).tap{|i| i.set_user(user, scope: :user) }
   renderer = self.renderer.new('warden' => proxy)
   renderer.render(*args)
 end

https://www.stefanwienert.de/blog/2016/04/05/using-rails-5-new-renderer-with-authentication-gems-like-clearance-or-devise/

It can be happening when you try to get Devise current_user in some part of code being managed by action cable. like a background job to render comment or something else. you can resolve it by using something like following in your controller, since you cant access warden at a model or job level(according to my limited knowledge): (I call a job right after creation of my comment in CommentsController create action, which calls a private method to render a comment partial containing edit and delete button, for which current_user was required)

 def create
@product = Product.find(comment_params[:product_id])
@comment = @product.comments.build(comment_params)
@comment.save!

gon.comment_id = @comment.id
gon.comment_user_id = @comment.user_id

ActionCable.server.broadcast "chat", comment: render_comment

render :create, layout: false
end

def render_comment
  CommentsController.renderer.instance_variable_set(:@env, {"HTTP_HOST"=>"localhost:3000",
    "HTTPS"=>"off",
    "REQUEST_METHOD"=>"GET",
    "SCRIPT_NAME"=>"",
    "warden" => warden})

  CommentsController.render(
    partial: 'comments/comment_detail',
    locals: {
      product: @product,
      comment: @comment
    }
  )
end

this will help you resolve warden issue, if you have used devise's current_user in that partial, it will give you the commentor user (as it should since that user initiated the rendering of partial). Now to solve this, if you have a front end framework you might need to fetch the current user from cookies in order to restrict some actions like edit/delete. but if you are working in pure rails the solution I came across is that you have to make a hidden field in the dom having current users id, and you will fetch that id for comparison in a script. you might need to access rails variables in javascript, for that you can use GON gem. I know this answer might contain much more than asked but I've searched alot and no where I found a satisfactory solution to this problem, feel free to discuss.

env['warden'].user

I found this approach on a lot of places, but for me env['warden'].user is nil.
UPDATE:
I had multiple models configured for authorization, so https://stackoverflow.com/a/49884788/4738391 solved the issue.

I found a blog post with a slightly different way to solve this: https://dev.to/briankephart/rendering-views-through-action-cable-with-devise-and-cancancan-k38

Also, adding layout: false to the render call can eliminate the issue in some cases, and speeds up rendering a lot


Investigate Destination gas fee

Describe the bug
Is the observed changes in Destination gas fee quoted on bridge, in high and low gas conditions, as expected ?
To Reproduce
Steps to reproduce the behavior:

Go to https://amarok.bridge.connext.network/USDC-from-polygon-to-ethereum?amount=200

Additional context
Destination gas fee: 13.997755 MATIC when avg gas was 16 gwei

Destination gas fee: 33.75 MATIC when avg gas was 27 gwei

@preethamr please make sure to move this

Need more info.


Split commands out of main plugin class

I found it a little difficult to navigate our codebase when some of the command handling logic was in the main plugin class and some of it was in other classes. I did my best to isolate all the command logic in other classes, which has these benefits:

Makes it easier to add new commands
Easier to understand where command logic is
Easier tab completion implementation

This, of course, changes a LOT of stuff in staging, hence the breaking change label. I did my best to keep code untouched when I moved it around so you should be able to copy/paste your changes with minimal adjustments.
I also was wondering if it would be better to have a separate class for each command when I started this refactor, but by the end of it I'm leaning toward keeping one class per group of commands. I don't mind either way, just something to think about.
I did my best to test every command on my server before making this PR, and I threw in tab completion as a treat.

I just didn't like how adding a new command meant adding big chunks of code to two classes. I tried my best to minimize changes, and most of the code that was originally in MinecraftRP.onCommand is in the command class' .onCommand()


Use of hard-coded passwords is a bad practice

Greetings,
I am a security researcher, who is looking for security smells in Puppet scripts.
I noticed instances of hard-coded passwords, which are against the best practices
recommended by Common Weakness Enumeration (CWE) [https://cwe.mitre.org/data/definitions/259.html] and also by other security practitioners.
I have added hiera support to mitigate this smell. Feedback is welcome.
Here is where I noticed hard-coded passwords:
https://github.com/Juniper/contrail-puppet/blob/master/contrail/environment/modules/contrail/manifests/ha_config.pp
Pull request : https://github.com/Juniper/contrail-puppet/pull/26

I also noticed instances of keeping admin users as default in Puppet classes. I think this is a smell related to security. The smell can violate the ‘principle of least privilege (https://en.wikipedia.org/wiki/Principle_of_least_privilege)’ property, which recommends practitioners to design and implement system in a manner so that by default the least amount of access necessary is provided to any entity.
Would you agree with my finding?
Source: https://github.com/Juniper/contrail-puppet/blob/master/contrail/environment/modules/contrail/manifests/init.pp

I also found instances where the HTTP protocol is used instead of HTTPS (HTTP with TLS). According to the Common Weakness Enumeration organization this is a security weakness (https://cwe.mitre.org/data/definitions/319.html).  I was wondering why HTTP is used? Is it because of lack of tool support?
I am trying to find out if developers are forced to adopt bad practices due to lack of tool support when it comes to the HTTPS protocol. Maybe it is due to dependency on a resource that uses HTTP?
Any feedback is appreciated.
Source: https://github.com/Juniper/contrail-puppet/blob/master/contrail/environment/modules/contrail/manifests/params.pp (Line 1037)


Helm repo address

I've been through the repo multiple times but I'm struggling to understand how I can use this image. I did manage to get it running with helm install proxmox-cloud-controller-manager oci://ghcr.io/sergelogvinov/charts/proxmox-cloud-controller-manager, however when I try and install the chart with Fluxcd I cannot find a combination of OCI repo and chart name which works. I see a lot of this happening:
HelmChart 'kube-system/kube-system-proxmox-cloud-controller-manager' is not ready: chart pull error: failed to download chart for remote reference: failed to get 'oci://ghcr.io/sergelogvinov/charts/proxmox-cloud-controller-manager/proxmox-cloud-controller-manager:v0.4.0': failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://ghcr.io/token?scope=repository%!!(MISSING)!(MISSING)A(MISSING)sergelogvinov%!!(MISSING)!(MISSING)F(MISSING)charts%!!(MISSING)!(MISSING)F(MISSING)proxmox-cloud-controller-manager%!!(MISSING)!(MISSING)F(MISSING)proxmox-cloud-controller-manager%!!(MISSING)!(MISSING)A(MISSING)pull&service=ghcr.io: 403 Forbidden

The helm install command in the readme doesn't explain where the chart is stored - does it exist in a standard https helm repo or is it only accessible as an OCI artifact?

OK, for anyone who may be interested, I did finally manage to get this to work with the following manifests:
kind: HelmRepository
apiVersion: source.toolkit.fluxcd.io/v1beta2
metadata:
  name: proxmox-cloud-controller-manager
  namespace: kube-system
spec:
  interval: 5m0s
  type: "oci"
  url: oci://ghcr.io/sergelogvinov/charts
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
  name: proxmox-cloud-controller-manager
  namespace: kube-system
spec:
  releaseName: proxmox-cloud-controller-manager
  chart:
    spec:
      chart: proxmox-cloud-controller-manager
      sourceRef:
        kind: HelmRepository
        name: proxmox-cloud-controller-manager
        namespace: kube-system
      version: "0.2.0"

Thanks


database needed?

Hello
on virustotal website I see some request answered after some hours , how we can handel it ? any database needed ?
do you have any method on your script for it?
thanks

@voltan sorry I don't follow your question, are you saying the requests take potentially a long time to process and you are looking for ways to pull the results?

Yes

There are many different ways to go around it, just to name a few:

long polling
cron job to refresh periodically (which you will need to maintain the url & result state and thus require some sort of persistent storage like db or redis)
wait & retry by increasing the wait time exponentially (back off algorithm)

This library is meant to simplify accessing virus total's api, these requirement goes beyond the design goal and you should implement it on your side.


[OCP-4.x][GCP] Can't find created instances when doing post install

When running with post_install set to true, notice that machines are created however they fail as they can't be found, checked console and see no new machines created, error looks as follows:
root@ip-172-31-83-228: ~/scale-ci-deploy/scale-ci-gcp # oc get machines -A
NAMESPACE               NAME                            PHASE     TYPE            REGION     ZONE         AGE
openshift-machine-api   perf44-4ss7h-infra-a-4h6hk      Failed    n1-standard-4   us-east4   us-east4-a   4m40s
openshift-machine-api   perf44-4ss7h-infra-b-nw2s6      Failed    n1-standard-4   us-east4   us-east4-b   4m40s
openshift-machine-api   perf44-4ss7h-infra-c-vb5nv      Failed    n1-standard-4   us-east4   us-east4-c   4m40s
openshift-machine-api   perf44-4ss7h-m-0                Running   n1-standard-4   us-east4   us-east4-a   39m
openshift-machine-api   perf44-4ss7h-m-1                Running   n1-standard-4   us-east4   us-east4-b   39m
openshift-machine-api   perf44-4ss7h-m-2                Running   n1-standard-4   us-east4   us-east4-c   39m
openshift-machine-api   perf44-4ss7h-w-a-5zrxd          Running   n1-standard-4   us-east4   us-east4-a   21m
openshift-machine-api   perf44-4ss7h-w-b-zfbxv          Running   n1-standard-4   us-east4   us-east4-b   21m
openshift-machine-api   perf44-4ss7h-w-c-8pjkt          Running   n1-standard-4   us-east4   us-east4-c   21m
openshift-machine-api   perf44-4ss7h-workload-a-qmshf   Failed    n1-standard-4   us-east4   us-east4-a   4m39s

Status:
  Addresses:
    Address:
    Type:         InternalIP
    Address:      perf44-4ss7h-infra-a-4h6hk.us-east4-a.c.openshift-perfscale.internal
    Type:         InternalDNS
    Address:      perf44-4ss7h-infra-a-4h6hk.c.openshift-perfscale.internal
    Type:         InternalDNS
  Error Message:  Can't find created instance.
  Last Updated:   2020-04-28T19:19:39Z
  Phase:          Failed
  Provider Status:
    Conditions:
      Last Probe Time:       2020-04-28T19:19:19Z
      Last Transition Time:  2020-04-28T19:19:19Z
      Message:               machine successfully created
      Reason:                MachineCreationSucceeded
      Status:                True
      Type:                  MachineCreated
    Instance Id:             perf44-4ss7h-infra-a-4h6hk
    Instance State:          PROVISIONING
    Metadata:
Events:
  Type     Reason        Age    From           Message
  ----     ------        ----   ----           -------
  Warning  FailedCreate  3m34s  gcpcontroller  requeue in: 20s
  Warning  FailedUpdate  3m33s  gcpcontroller  requeue in: 20s

fixed by #75 , issue was around not using the right service account


[Feature] Allow setting DacDeployOptions in DacpacDeployer when publishing SqlServer porjects from dacpac

Background
I'm working in a project where we have a base dacpac with common schema elements for multiple instances of different databases building on top of the common schema elements. The dacpac is referenced as a PackageReference in the SqlServer project and normally published with the IncludeCompositeObjects=true option to deploy alle schema elements required.
As we attempt to adopt .Net Aspire, we are not easily able to do this without re-implementing the functionality of the CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects package only to override the use of new DacDeployOptions() in DacPacDeployer.Deploy().
It seems like a very usable feature to allow modifying the many DacDeployOptions properties passed to the Deploy operation for the dacpac in question.
Proposal
I thus propose an overload of the WithDacpac extension method for SqlProjectResource resource builders to set a new DacDeployOptionsMetaDataAnnotation which can be picked up when deploying the dacpac in the SqlProjectPublishService class.
Alternatively, the DacDeployOptions can be created and populated with supported property values from the sqlproj file in a new GetDacDeployOptions method in the SqlProjectResource class similar to how the SqlTargetPath and TargetPath are attempted read in the GetDacpacPath method.
Help us help you
Yes, I'd like to be assigned to work on this item, but am new to contributing on github.

@jmezach

I agree that this would be a very useful feature to have and should be fairly easy to add. Not sure when I'll have time to add this, but if anyone wants to take a stab at it feel free to create a PR

I can give it a go.
Any comments as to the design?
I do not see any good ways to incorporate the settings into the fluent syntax.
I think an overload with an DacDeployOptions parameter for the settings works best.
And given that Microsoft.SqlServer.DacFx package is already referenced, I prefer using the existing options class rather than adding and then maintaining some form of copy with similar values.
I would also like to try parsing mirrored settings values from the sqlproj file as is done for the dacpacpath.
But I think that this could a breaking change in the current behavior for some.
I would appreciate any comments as to how to approach this. Otherwise I will leave it out for now.

Since we need an instance of DacDeployOptions regardless I'm wondering if we should provide a WithConfigureDacDeployOptions method that gets passed an Action<DacDeployOptions> delegate and we'll then call that delegate before performing the deployment.

Since we need an instance of DacDeployOptions regardless I'm wondering if we should provide a WithConfigureDacDeployOptions method that gets passed an Action<DacDeployOptions> delegate and we'll then call that delegate before performing the deployment.

I like this, alternatively adding a overload with a Action<DacDeployOptions> configureDacDeployOptions parameter to WithDacpac, similar to the configureContainer parameters for RunAsContainer available on some of the integrations.
My thinking behind using a parameter approach is that future usages of AddSqlProject might not be dacpac deployment oriented. WithConfigureDacDeployOptions seem to only be relevant when used with WithDacpac. So an extension method might then introduce a future need for breaking change where WithDacpac is updated to return a new SqlProjectDacpPacResource type and then WithConfigureDacDeployOptions updated to work on this (having a Parent property to navigate back to the SqlProjectResource in the call chain).
But that is just speculation. Script based deployments are already possible with the core SqlServer integration. I'm not sure what other usages than dacpac deployment the SqlDatabaseProjects library would serve.

I just realized that WithConfigureDacDeployOptions would be needed to support when .WithDap when `WithDacpac is not used to specify a local path. So this indeed seems the best way to go. I will create a PR and any implementation comments can then be done via the PR.

Deploy dacpac is very easy. As Someone mentioned, you need the Microsoft.SqlServer.DacFx NuGet package.
Then this code works:
using Microsoft.SqlServer.Dac;

// Display the command line arguments using the args variable.
foreach (var arg in args)
{
    Console.WriteLine($"Argument={arg}");
}

foreach (var env in Environment.GetEnvironmentVariables())
{
    Console.WriteLine($"Environment={env}");
}

DacServices dacServices = new("Server=localhost;Integrated Security=true;");

// Create a new DacPackage object by loading the .dacpac file.
DacPackage dacpac = DacPackage.Load("C:\\Users\\johndoe\\Documents\\Visual Studio 2019\\Projects\\MyDatabase\\MyDatabase\\bin\\Debug\\MyDatabase.dacpac");

// Deploy the .dacpac file to the database.
dacServices.Deploy(dacpac, "MyDatabase", upgradeExisting: true, options: new DacDeployOptions
{
    BlockOnPossibleDataLoss = false,
    CreateNewDatabase = true
});

Having ".WithDacPac()" in SqlServer ApplicationBuilder would execute the deployment every time.
I would rather create a migration Console Project which do not start in aspire.
Only when I click the run button, it will do the create / migration stuff.
I could not figure out how to add a project in stopped state in aspire.
But the biggest issue is how to pass the dacpac.
Normally you use a SSDT project which produces the dacpac and also the Pre/Postpublish Scripts.
And you configure the DacDeployOptions inside the SSDT profile.
It would be awesome just Add the SSDT Project to Aspire and connect my sqlServer database with SSDT.
You can add the SSDT Project to Aspire Host but as soon as you start Aspire, a connect dialog will appear. Closing the dialog closes aspire as well.
Maybe someone has an idea how to solve this issue?
When you set the SSDT Project as Start project in Visual Studio and start debug, you will have the same result.
Conclusion:
In think the best way to go is to connect the sqlServer database and a migration Project which itself has a reference to SSDT would be the best way to go.


You can add multiple duplicated fields in graph values section breaking the UI

ID <274>
Reporter <@StrongestNumber9>

Should be fixed in new drag&drop component


2117 tools

This makes it possible to skip the tests on alpine, for #2117

https://github.com/iovisor/bpftrace/actions?query=branch%3Amaster++


add player position and look packet

The final packet sent when connecting:
see https://wiki.vg/Protocol#Player_Position_And_Look_.28clientbound.29

I have not tested this and from what I understand you mean that if Gate would send this packet after auth then the player would have a shorter loading screen and see the world more quickly. Should Gate send this packet only once or every time the player joins/switches the backend server?
I agree @xXNurioXx, this could be a feature that users can enable or disable in the config.
If we add this packet, we also need to support the packet IDs starting from Minecraft 1.7 in the state package.

I have not tested this and from what I understand you mean that if Gate would send this packet after auth then the player would have a shorter loading screen and see the world more quickly.
Should Gate send this packet only once or every time the player joins/switches the backend server? Does it not matter which coordinates we send in this packet since it gets sent by the backend server anyways?
I agree @xXNurioXx, this could be a feature that users can enable or disable in the config. If we add this packet, we also need to support the packet IDs starting from Minecraft 1.7 in the state package.

I agree with him, this would be great for high cracked network servers like most brazillian servers, because we could make some agree of requirement, authorization, checking or whatever we could do in a light-weight server.
This specific case would be just pulled out only once in player joins.

Should Gate send this packet only once or every time the player joins/switches the backend server?

It can be used to dismiss the loading screen, so possibly sending it when switching backend servers could be helpful, especially if you wanted to add a custom loading screen.

Does it not matter which coordinates we send in this packet since it gets sent by the backend server anyways?

Correct, there doesnt' seem to be any validation on the client end.


reorged

test pipeline updated
https://dev.azure.com/iiric/PS1/_build/results?buildId=1018&view=results


'setPinDirection' appears to reset pin value

(In the mock sysfs implementation, anyway.)

Never mind, this functions as intended. See https://www.kernel.org/doc/Documentation/gpio/sysfs.txt:
	"direction" ... reads as either "in" or "out". This value may
		normally be written. Writing as "out" defaults to
		initializing the value as low.`


Add command grouping

Is your feature request related to a problem? Please describe.
There are almost 400 commands listed on one page. It is a kinda messy.
Describe the solution you'd like
Add command grouping with an easy way to switch between groups or switch to another command within a group.
Describe alternatives you've considered
mmm...website search?
Additional context

Agreed. I think we need an alpha and command category list.
There is some odd complexity here in the data we inherited. The site sources data from the command JSON files and they have group field but they aren't exactly what you might think - e.g. there is a group called 'generic' which probably needs a better explanation.
I'm open to some other method of categorization as long as it's data-driven.


Fix the build on Read the Docs by following optuna #4659

Motivation

Due to the release of urllib3 v2.0.2, the build on Read the Docs fails. This PR fixes the build by following https://github.com/optuna/optuna/pull/4659.
Description of the changes

Fix .readthedocs.yml as same as https://github.com/optuna/optuna/pull/4659.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@b354509). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@          Coverage Diff           @@
##             main     #20   +/-   ##
======================================
  Coverage        ?   0.00%
======================================
  Files           ?       9
  Lines           ?     505
  Branches        ?       0
======================================
  Hits            ?       0
  Misses          ?     505
  Partials        ?       0

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Sieve of atkins in C++

Have you read the Contributing Guidelines on Pull Requests?
YES
Description
Adding the code for Sieve_Of_Atkins in C++
Sieve of Atkin is a modern algorithm for finding all prime numbers up to a specified integer. Compared with the ancient Sieve of Eratosthenes, which marks off multiples of primes, the Sieve of Atkin does some preliminary work and then marks off multiples of squares of primes, thus achieving a better theoretical asymptotic complexity.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Issue Resolved - (#2665 )

@bhav09 Please review this.

@bhav09 Requested Change has been done. Please review it

Great work! Keep it up :)


Increase the minimum Swift tools version to 5.9

Filing this issue early to properly relate other issues that might be blocked on it. Timing of when this happens is TBD.

This will be 4 PRs, across runtime, package, urlsession and AHC transports.


Steps towards recursive repos

Added the following:

is_blackbox_repo()

Checks to see if "keyrings" exists in a given directory

enumerate_blackbox_repos()

outputs all blackbox repos contained in a provided directory ($1)

Changes:

change_to_vcs_root()

a directory can now be provided ($1) which will check for a valid blackbox directory and then  be used in place of $REPOBASE.(There's probably more needed here, possibly updating $REPOBASE and other variables?)

new files:

blackbox_recurse

namespace for the blackbox recursion script.

Partial update for issue https://github.com/StackExchange/blackbox/issues/81
potentially also issue https://github.com/StackExchange/blackbox/issues/52

@tlimoncelli Thanks for the fast feedback, I think I updated all your concerns.

LGTM
When you add the recurse feature, please add tests to tools/confidence.sh


feat: load env vars from .env file (development feature)

Enables .env file support for wdio.  (This lets me use my alternate browserstack account for this project, without affecting other projects).
To test: create a .env file in project root that looks something like this:
BROWSERSTACK_USER=your_user_name
BROWSERSTACK_ACCESS_KEY=your_access_key

I'm a huge fan of https://direnv.net/ for this purpose. I like the fact that it doesn't require any code changes. Would that be an option for you as well?
It's really helpful for other use cases. For example uuid is one of the few projects where I still want to run node@12 instead of node@14, so I just put
PATH_add /usr/local/opt/node@12/bin

to my .envrc and automatically get node@12 whenever inside the uuid project.

Got direnv working... nice!


Added a onetime send [sms] bash script for the Hologram IoT platform

Extremely useful when you need to manually send a one time text (outside of the daemon checker)

Check unsuccessful


Work with blueprint

Hey guys,
first of all...scout is trully awesome. However I'd like to know if it is possible to start a SASS/COMPASS project with blueprint (http://compass-style.org/reference/blueprint/) via scout?!
Thanks in advance

Blueprint is a fairly dated CSS framework. It has not been updated is 2011. I would recommend looking into a more modern framework to handle page layout/grid systems. Bootstrap, Foundation, and Bulma are all popular alternatives.

Scout-App.io

Closing issue as "will not fix".


Long processing time in misc.py for data handling

Hi,
Thank you for sharing the LAMP project. I've been experimenting with your code, particularly interested in prediction tasks on the GDELT data.
However, I've encountered a significant performance issue that I hope to get some guidance on. For "Step 3: we setup the samples to train the ranking model", when executing the script referenced in this line of code, the processing time seems excessively long for the amount of data being handled. A 24-hour run did not complete processing even 50 data items, which seems unusual.
I'm running this on a server equipped with GPU 3090s, and both CPU and memory specs are sufficiently high, so I believe hardware limitations are unlikely to be the cause.
Could there be any specific configuration or optimization I might be missing, or is this processing time expected for the task at hand?
Thank you for your time and assistance.

Hi,
If i remember right, the event retrieval should not be taking too long time. what type of distance are you using?  edit distance?

Dooray! Failure Notice
    Failure Notice

    Your message sent to

@.***)
has failed to be delivered.
      Please refer to the below for details.

        * Recipient :

@.***)
        * Sent time :

2024-04-04T01:08:24
        * Subject :

Re: [iLampard/lamp] Long processing time in misc.py for data handling (Issue #6)
            * Remote host said :

Your mail was denied from the receiver.
      This message was sent from a notification-only address that cannot accept incoming email.
      For more information, please contact<EMAIL_ADDRESS>

    © Dooray!.

I am using the default distance metric specified in the code, which is 'bert'. I haven't made any changes to that configuration.
Additionally, I realized that I'm using a newer version of PyTorch than what is listed in the README. Could this be the reason for the long processing times I'm experiencing?
Thank you again for your assistance.

Hi
I will have a look at this and get back to you shortly

Hi,
I have investigated the function retrieve_event_from_source_data and test it again on my m1 mac.
setting: torch==2.1.2
running script:

    source_data_fn = 'gdelt_emb.pkl'
    pred_data_fn = '../../logs/ke_gdelt_test.pkl'
    source_data = file_uri_reader_processor(source_data_fn)['data']
    pred_data = file_uri_reader_processor(pred_data_fn)

    make_samples_for_energy_function(
        gpt_db_name='gdelt_chatgpt/object',
        source_data=source_data,
        pred_data=pred_data,
        pred_type='relation',
        topk=5,
        # pred_type='object',
        # topk=20,
        ebm_db_name='ke_gdelt_bert_ebm_dataset_v0509'
        retro_top_n=2,
        distance_type='bert')

i put a timer inside the function retrieve_event_from_source_data
elif distance_type == 'bert':

    target_text = encoder_model.encode(target_event)

    start_time = time.perf_counter()

    scores = [event_distance(target_text, event[-1], distance_type=distance_type) for event in source_data_]

    end_time = time.perf_counter()

    elapsed_time = end_time - start_time

    print(f"The code took {elapsed_time} seconds to run.")

the score constantly takes 2-3 secs to run. The source_data_ contains ~10k event vectors(already computed) and then we compute the distance between the query event and all these 10k events, which normally should not take a very long time.
Can you add a timer in your code to see which submodule works abnormally long?


Prerender crashes every 3 hours or so

We have Prerender running on a box with 16 cores and 31gb of RAM. It crashes every 3 hours or so

Our configuration is as follows;
var prerender = require('./lib');
var os = require('os');

process.env.PAGE_TTL = 259200;

var server = prerender({
    workers: os.cpus().length,
    iterations: 120
});

server.use(prerender.sendPrerenderHeader());
server.use(prerender.blacklist());
server.use(prerender.removeScriptTags());
server.use(prerender.httpHeaders());
server.use(require('prerender-redis-cache'));
server.start();

CPU load and RAM is consistently under 50% until it crashes.
Any idea why this might be happening and why it is at regular intervals? Our site is quite consitently busy and this is killing us SEO wise.
Thanks

Thanks for sending that over. Can you provide any more info on the crash you are experiencing? Is it a worker that is crashing? Does Prerender restart the worker after the crash? Or is the entire process crashing without a restart? Is there an error on the console when that happens?
I'd suggest setting the soft iterations parameter to something like 15 so that each worker will try to restart itself often if there are no requests in flight. Leave your normal iterations like you have it so that it will still restart itself in the case that soft iterations can't restart the server if there is always a request in flight.
How many requests per minute are you sending to that machine and what's the cache hit vs miss ratio since you are using a redis cache?

From looking at the logs both workers and phantom crashes.
2016-10-21T07:09:19.299Z worker 15 died, restarting!
2016-10-21T07:09:26.275Z worker 17 died, restarting!
2016-10-21T07:29:26.146Z worker 198 died, restarting!
Should there not be an equal number of workers to cores?
Also;
2016-10-21T07:28:59.971Z phantom crashed, restarting...
2016-10-21T07:28:59.971Z starting phantom on port [12498]
2016-10-21T07:29:00.169Z started phantom

Phantom crashes regularly.
Below are the bandwidth stats before it stopped serving traffic.

Thanks

Adding softIterations only seems to make it crash more regularly

Also getting following errors in kernel log
Oct 21 09:31:43 prerender-002 kernel: [12268443.092524] traps: phantomjs[2185] general protection ip:f5d7a0 sp:7fff24115830 error:0 in phantomjs[400000+228e000]
Oct 21 09:31:44 prerender-002 kernel: [12268444.290527] traps: phantomjs[2133] general protection ip:f5d7a0 sp:7fffedabb790 error:0 in phantomjs[400000+228e000]
Oct 21 09:31:58 prerender-002 kernel: [12268458.508866] traps: phantomjs[2343] general protection ip:f5d7a0 sp:7fffdf04a0d0 error:0 in phantomjs[400000+228e000]
Oct 21 09:32:07 prerender-002 kernel: [12268466.742643] traps: phantomjs[2453] general protection ip:f5d7a0 sp:7fff66d2a8a0 error:0 in phantomjs[400000+228e000]
Oct 21 09:31:58 prerender-002 kernel: [12268458.508866] traps: phantomjs[2343] general protection ip:f5d7a0 sp:7fffdf04a0d0 error:0 in phantomjs[400000+228e000]
Oct 21 09:32:07 prerender-002 kernel: [12268466.742643] traps: phantomjs[2453] general protection ip:f5d7a0 sp:7fff66d2a8a0 error:0 in phantomjs[400000+228e000]
Oct 21 09:32:18 prerender-002 kernel: [12268477.947317] traps: phantomjs[2525] general protection ip:f5d7a0 sp:7fffa775e4a0 error:0 in phantomjs[400000+228e000]
Oct 21 09:32:24 prerender-002 kernel: [12268483.718674] traps: phantomjs[2317] general protection ip:f5d8c2 sp:7ffffc5e79b0 error:0 in phantomjs[400000+228e000]
Oct 21 09:32:50 prerender-002 kernel: [12268509.809186] traps: phantomjs[3182] general protection ip:f5d7a0 sp:7fff62090fb0 error:0 in phantomjs[400000+228e000]
Oct 21 09:32:57 prerender-002 kernel: [12268517.544077] traps: phantomjs[3129] general protection ip:f5d7a0 sp:7fff8ce218d0 error:0 in phantomjs[400000+228e000]

The workers dying and PhantomJS crashing is perfectly normal. Setting sofIterations is supposed to make workers kill themselves more often, but they should always be restarted.
It's weird that it just stops serving requests. We don't see that happen on our machines. Which version of Node are you using?
Since you are using the redis cache, that should still be serving pages even if PhantomJS is having trouble. If you aren't seeing the pages served from redis, that means the entire process crashed or might mean redis is having issues.
After Prerender stops serving pages, are you seeing any console output? Can you paste the last console output you see before it stops working?

We are using node 0.10.25.
It completely stops serving pages, so it's the entire process that stops.
There is a longer message when phantom crashes sometimes.
I am getting the logs from our host, I can only SSH in and reading the logs ins a pain. I will post when I have them.
Have I got the
process.env.PAGE_TTL = 259200;
In the right place to keep the pages cached?

I haven't used the redis prerender cache so I don't know about the PAGE_TTL environment variable.
With the version of node you are on, you'll want to upgrade node and the Prerender server. Our latest Prerender server doesn't run with that old version of node anymore. I'd upgrade node to at least v4 and make sure to use our latest prerender server.

does prerender need a lot of CPU power and RAM?
Can I run prerender on EC2 t2nano or t2micro ? we are going to server about 1 million pages

In the future, please open a new issue instead of hijacking someone else's open issue.
Yes, Prerender needs lots of CPU and RAM because it uses PhantomJS behind the scenes which is a real web browser. If you have 1 million pages you're probably going to need a couple machines behind a load balancer. Make sure you cache your pages too.
@DanielFitzgerald feel free to reopen this issue if you still have problems after you upgrade as I suspect that's the issue here.

@thoop Sorry for delay getting back, upgraded server and it helped. The RAM and CPU now seem to gradually rise though, it takes about ~24 hours for it to max out and crash.
The only other error I can find in the logs which I haven't posted is
phantom stdout: Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.5.8/$rootScope/infdig?p0=10&p1=%5B%5D

Which seems like an angular error in our code somewhere, we only see it on the prerender server though.
I'll keep digging. It could be the redis plugin not disposing of comments properly.
Thanks for your help.

The Prerender iterations and softIterations parameters should kill PhantomJS and reclaim that memory. Make sure you have those set low enough so that Prerender keeps restarting itself.
Feel free to reopen if you still run into issues.


Support deploy k8s on coreOS.

Issue Description
Type: feature request
coreOS has ostree and /usr/bin is read-only filesystem. so sealer cannot install binarys to /usr/bin, can we change binary install-root to /usr/local/bin.
Describe what feature you want
Change binarys dir /usr/bin to /usr/local/bin.
Additional context
Add any other context or screenshots about the feature request here.

emm,  I also think it's not a good idea to use path /usr/bin.

It's easy to change the binary dir from /usr/bin to /usr/local/bin , and we will finish it ASAP.
However, maybe it's a low priority to support coreOS systematically at the current stage.
@mahmut-Abi Would you mind testing other issues currently in coreOS except for this issue?
And if you need any help, we'll be glad to support you. So how do you think?


KAFKA-10787: Apply spotless to group-coordinator and group-coordinator-api

This PR is sub PR from https://github.com/apache/kafka/pull/16097.
It is part of a series of changes to progressively apply [spotless plugin(import-order)] across all modules. In this step, the plugin is activated in the

group-coordinator-api
group-coordinator

Module and history

Please see the table below for the historical changes related to applying the Spotless plugin

module
apply
related PR

:clients
❌
future

:connect:api
✅
https://github.com/apache/kafka/pull/16299

:connect:basic-auth-extension
✅
https://github.com/apache/kafka/pull/16299

:connect:file
✅
https://github.com/apache/kafka/pull/16299

:connect:json
✅
https://github.com/apache/kafka/pull/16299

:connect:mirror
✅
https://github.com/apache/kafka/pull/16299

:connect:mirror-client
✅
https://github.com/apache/kafka/pull/16299

:connect:runtime
❌
future

:connect:test-plugins
✅
https://github.com/apache/kafka/pull/16299

:connect:transforms
✅
https://github.com/apache/kafka/pull/16299

:core
❌
future

:examples
✅
https://github.com/apache/kafka/pull/16296

:generator
✅
https://github.com/apache/kafka/pull/16296

:group-coordinator:group-coordinator-api
✅
https://github.com/apache/kafka/pull/16298

:group-coordinator
✅
https://github.com/apache/kafka/pull/16298

:jmh-benchmarks
✅
https://github.com/apache/kafka/pull/16296

:log4j-appender
✅
https://github.com/apache/kafka/pull/16296

:metadata
✅
https://github.com/apache/kafka/pull/16297

:server
✅
https://github.com/apache/kafka/pull/16297

:shell
✅
https://github.com/apache/kafka/pull/16296

:storage
✅
https://github.com/apache/kafka/pull/16297

:storage:storage-api
✅
https://github.com/apache/kafka/pull/16297

:streams
❌
future

:streams:examples
❌
future

:streams:streams-scala
❌
future

:streams:test-utils
❌
future

:streams:upgrade-system-tests-0100
❌
future

:streams:upgrade-system-tests-0101
❌
future

:streams:upgrade-system-tests-0102
❌
future

:streams:upgrade-system-tests-0110
❌
future

:streams:upgrade-system-tests-10
❌
future

:streams:upgrade-system-tests-11
❌
future

:streams:upgrade-system-tests-20
❌
future

:streams:upgrade-system-tests-21
❌
future

:streams:upgrade-system-tests-22
❌
future

:streams:upgrade-system-tests-23
❌
future

:streams:upgrade-system-tests-24
❌
future

:streams:upgrade-system-tests-25
❌
future

:streams:upgrade-system-tests-26
❌
future

:streams:upgrade-system-tests-27
❌
future

:streams:upgrade-system-tests-28
❌
future

:streams:upgrade-system-tests-30
❌
future

:streams:upgrade-system-tests-31
❌
future

:streams:upgrade-system-tests-32
❌
future

:streams:upgrade-system-tests-33
❌
future

:streams:upgrade-system-tests-34
❌
future

:streams:upgrade-system-tests-35
❌
future

:streams:upgrade-system-tests-36
❌
future

:streams:upgrade-system-tests-37
❌
future

:trogdor
✅
https://github.com/apache/kafka/pull/16296

:raft
✅
https://github.com/apache/kafka/pull/16278

:server-common
✅
https://github.com/apache/kafka/pull/16172

:transaction-coordinator
✅
https://github.com/apache/kafka/pull/16172

:tools
✅
https://github.com/apache/kafka/pull/16262

:tools:tools-api
✅
https://github.com/apache/kafka/pull/16262

How to test:
We can run ./gradlew spotlessCheck  check for code that does not meet requirements.
If we get report that error , we can run ./gradlew spotlessApply to review my code.
In this PR, all change(exclude build.gradle) byspotlessApply`

@gongxuanzhang please add spotlessJava.dependsOn 'processMessages' to the module having processMessages task. Otherwise, spotless may ignore those generated code

@gongxuanzhang please add spotlessJava.dependsOn 'processMessages' to the module having processMessages task. Otherwise, spotless may ignore those generated code

I updated it , let’s wait CI

@gongxuanzhang could you please add targetExclude '**/generated/**.java' to skip generated code? We should keep the generated code as they are.

It seems to be working

Failed test
JDK 21 and Scala 2.13

test
jira

testSyncTopicConfigs
https://issues.apache.org/jira/browse/KAFKA-14971

testConsumptionWithBrokerFailures
https://issues.apache.org/jira/browse/KAFKA-15146

testCoordinatorFailover
https://issues.apache.org/jira/browse/KAFKA-9007

shouldBootstrapTwoBrokersWithFollowerThrottle
https://issues.apache.org/jira/browse/KAFKA-4265

JDK 8 and Scala 2.12

test
jira

testAlterSinkConnectorOffsetsZombieSinkTasks
https://issues.apache.org/jira/browse/KAFKA-15917

shouldRestoreState
https://issues.apache.org/jira/browse/KAFKA-10405

@chia7712  plz take a look


(Tennis/Live)*Jannik Sinner vs Taylor Fritz LIVE Streams ON TV Channel 8 September 2024

(Tennis/Live)*Jannik Sinner vs Taylor Fritz LIVE Streams ON TV Channel 8 September 2024
US Open Tennis 2024 Men's Final: TV Schedule, Start Time and Live Stream By defeating Frances Tiafoe, Taylor Fritz became the first American man to reach a Grand Slam men's singles final since 2009.
On Sunday, he'll aim to break one more long drought: No American man has won a major final since 2003, when Andy Roddick won on these same courts.
Fritz will face top seed Jannik Sinner, who has breezed through competition to advance to his second grand slam final of the year.
Here's everything you need to know about Sunday's final.
Location: Arthur Ashe Stadium in Flushing, New York
Time: 2:00 p.m. EST
TV: ABC
Streaming: ESPN+, ESPN Deportes
Prize Money: $3,600,000 (winner), $1,800,000 (runner-up)
Taylor Fritz erased a two-set to one deficit to reach his first Grand Slam final.
Down the stretch, the No. 11 seed was able to outlast his opponent, who, following the fourth set, felt a sudden wave of fatigue.
In the final, the 26-year-old American will face the hardest task in all of men's tennis.
Jannik Sinner has won 33 of 35 matches on the hard-court surface this year, including hoisting his first Grand Slam title at the Australian Open and winning two ATP Maters 1000 hard-court tournaments (Miami Open, Cincinnati Open).
An American crowd eager to see a champion for the first time since 2003 will motivate Fritz, but it's unclear if this will have a significant impact.
The top-seeded Italian is performing significantly better right now, and in order for Fritz to stay in this match, he'll have to rise to the physical occasion and avoid playing defense.


Clarify final and working schema in docs

Denote Alignments and various metadata schema as from definitions.yaml as unfinished, but still include them in the docs.

Done in #124. Denoted Alignment as experimental. Removed metadata text.


Improve record viewer's back navigation

Is your feature request related to a problem? Please describe.
The record viewer's back button can send the user to some strange state, that resolves in a bad UX -- it uses a simple this.$router.back().
Describe the solution you'd like
Give it better logic to determine where the user should actually be sent to.

@darh there was a reason for this decision, can you remind me what it was?


⚠ Bofrost.de has degraded performance

In e748a6c, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1316 ms

Resolved: Bofrost.de performance has improved in b0557b6.


Move federated auth concept and update links to match data access issue 30

Data access issue https://github.com/SuperOfficeDocs/data-access/issues/30 has moved, renamed, and merged files pertaining to online authentication. Need to fix links in this repo going to affected files. PRs should be coordinated.
Also, federated-auth.md should be moved here from data access. To be listed in IM section between Overview and
Federated ID and identity providers

Done


Paragraph - enable paragraph to have a custom content

Currently, the paragraph component allows only to have a value however it should allow it to contain custom content something like:
<Paragragraph>
   <ImCustomComponent>
</Paragraph>

The current paragraph however is already used in production so we can't remove the value property the only thing we can do is to extend the use by adding this extra ability.
We need to make sure however that is you using the new function you not using the old one so something like this:
<Paragragraph value="im the value">
   <ImCustomComponent>
</Paragraph>

will not happen.

[ ] make the change in the src/abbreviate/Abbreviate.tsx adding the property
[ ] make sure that if children is passed you can't use value as well and vice-versa
[ ] make the change in the src/abbreviate/tests/Abbreviate.test.tsx adding the test to cover the use case
[ ] change all the storybook sections to add the documentation

an Idea on how it can be implemented
type BaseProps = {
  test: string;
  a?: string;
  b?: string;
};

type PropsA = BaseProps & { a: string };
type PropsB = BaseProps & { b: string };

type Props = PropsA | PropsB;

function Component(props: Props) {
  if (props.a) {
    // do something
  }

  if (props.b) {
    // do something
  }

  return null;
}

This looks like arbitrary composition. Have the Paragraph accept a prop that is either of type 'value' or another component.
function Component({value, children}) {

    return (
        <Paragraph value={<AnotherComponent />} />
        <Paragraph value={"A string as p text"} />
    )
}

you suggest only one way with prop value. this approach makes the component less complex but i feel more natural the paragraph  works like higher-order component. I think we will use this more.
<Paragraph>
  This is the simple custom-content of the
  <strong>
    paragraph
  </strong>
</Paragraph>

@kjzweerts you can review https://github.com/Capgemini/dcx-react-library/pull/567 and you get feedback.

hi @kjzweerts thanks for your comment and I think your point is valid however I do agree with @jgonza16 .... it will looks more natural to use the component like an html native component:
<Paragraph>content</Paragraph>

the only reason we want to leave value property there is because some other projects are already using the Paragraph and we don't want to introduce a breaking change

On the other side can I ask you if you using the library? just out of curiosity

No I am not a user. I am in an Angular project and my react knowledge is starting to get vague 😅.
So I’m maybe looking to contribute to have best of both worlds.
I work for Sogeti and found this when browsing GitHub.

absolutely @kjzweerts ... let me know when you want to get involved and in which way and we can discuss a ticket as starting point. Feel free to contact me on msTeam

Closed by https://github.com/Capgemini/dcx-react-library/pull/567


devc failed for "*(n)" projects

devc failed to start if you are working with projects with (path)names like "abc(1)".  Note the special characters.
devc from command line failed with an exception.  devc from tools (e.g., VS Code extension) failed too.
We should fix this in all relevant places.

Cc @kathrynkodama


html scroll bar

Hi,
I try to use your plugin for html
$('html').perfectScrollbar();
it's show the bar but does not work

Please check and refer to this issue.
https://github.com/noraesae/perfect-scrollbar/issues/72

As already said, html or body is not a normal container element, so PS may not work properly. Please consider implementing it with a full-fetched div wrapping the whole body.


Use environment variables instead of k8s secret for passwords

When deploying the cluster, is there some other way to set the password for the root/app user other than a k8s secret?
The only place I see to set the passwords are here: https://github.com/bitpoke/mysql-operator/blob/master/deploy/charts/mysql-cluster/values.yaml#L14-L17 which requires a kubernetes secret.
For example, is there a way to use a  SecretProviderClass?

I don't know about an option for this unfortunately, but the workaround I found was this:
In Gitlab CI/CD to use an environment variable to setup the config I use helmfile and I created a File type CI/CD variable for the values.yaml file of my chart which contains my mysql-cluster.
Then in the secret I just read the variables from the values.yaml file.
apiVersion: v1
kind: Secret
metadata:
  name: my-mysql
type: Opaque
data:
  ROOT_PASSWORD: {{ .Values.rootPassword | b64enc }}
  DATABASE: {{ .Values.database | b64enc }}
  USER: {{ .Values.user | b64enc }}
  PASSWORD: {{ .Values.password | b64enc }}


syntax highlighting on ocaml breaks with %s in string

let () = "test %s" x
  foo

everything after the %s is seen is highlighted as a string as you can see here:

Weird. I can't reproduce this with reason-vscode directly in vscode, and updating the ocaml syntax to the latest from the rls repository didn't fix it. So looks like this might be an issue with the syntax highlighter itself.

Indeed, looks like a bug in reason-textmate - we should add an OCaml test case and see what's going on.
I tried out an alternate syntax here: https://github.com/hackwaly/vscode-ocaml/tree/master/syntaxes
(They are tmLanguage/xml which we previously could not load - but @glennsl recently added this in https://github.com/onivim/oni2/pull/1616)
and it seems to work better for me, at least in this case:

larger files seem to look OK too:

So perhaps in the short-term - we can port over the ocaml syntaxes from that repo to use, until we get a chance to fix the reason-textmate bug.


Change to 'ssh' transport

We're having SSH stability issues, so I wante to see what changing
the transport to standard 'ssh' would do (or how it fails).

retest

retest

Marking as needs work so that we don't accidentally merge this.

retest


MINOR: [C++][CI] Pin CMake to fix builds failing due to aws-sdk-cpp

See: https://gitlab.kitware.com/cmake/cmake/-/issues/22524

Quick update just to make sure we don't conflict with https://github.com/apache/arrow/pull/12320 (shoulda thought of that ahead of time)

The CI failure looks unrelated, merging: https://github.com/apache/arrow-rs/issues/1398


fix files in package.json

Now *.d.ts files are not contained in snap-api package, so app-consumer gets an error:

Everything should work after this small fix


Replace cargo xwin clippy with native clippy run on Windows again

Adds #8181 again
This failure is taking up way too much time and cache misses are feeling frequent.

How do they compare performance wise?


refactor: ♻ pipeline conversion function

Codecov Report
Attention: Patch coverage is 2.22222% with 176 lines in your changes are missing coverage. Please review.

Project coverage is 18.43%. Comparing base (c237c8a) to head (eceda27).

Files
Patch %
Lines

pyfairdatatools/utils.py
2.22%
176 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           staging      #17      +/-   ##
===========================================
- Coverage    21.34%   18.43%   -2.91%
===========================================
  Files           12       12
  Lines          970     1150     +180
  Branches       202      274      +72
===========================================
+ Hits           207      212       +5
- Misses         706      882     +176
+ Partials        57       56       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


SetState

If a page change is performed while loading Catalogs component data is not finished, a series of error appears.
This is due to the promises that are not completed.
warning.js:36 Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Catalog component.

À tester:
https://hashnode.com/post/preact-with-redux-and-react-router-cit04gxwy0jxg8k53wodpyl3m

Fixed


fix(client-cli): Support Open API records dictionaries

Address https://github.com/platformatic/platformatic/issues/3397

Thanks! There is still room improvement for cases in which both properties and additionalProperties are set, but those should be pretty rare.


JVM crash after open/close/open

I'm testing on Windows 10 on a Surface Pro 4, with built-in camera.
Here is my test case:
`package client;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
public class ErrorCase
{
private Webcam webcam;
private WebcamPanel webcamPanel;
    public ErrorCase() {
    webcam = Webcam.getDefault();

   System.out.println("trying to open");
  webcam.open();
  System.out.println("opened");
    System.out.println("trying to close");
  webcam.close();
    System.out.println("closed");
    System.out.println("getting camera");
    webcam = Webcam.getDefault();
    System.out.println("trying to open");
  webcam.open();
    System.out.println("opened again");
    System.out.println("trying to close");
  webcam.close();
    System.out.println("closed again");
    System.exit(0);
  }

  public static void main(String[] args)
      {
       ErrorCase e = new ErrorCase();
      }

}
`
Here is the error:
Exception in thread "main" com.github.sarxos.webcam.WebcamException: Cannot execute task
at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.process(WebcamProcessor.java:72)
at com.github.sarxos.webcam.WebcamProcessor.process(WebcamProcessor.java:140)
at com.github.sarxos.webcam.WebcamTask.process(WebcamTask.java:46)
at com.github.sarxos.webcam.ds.cgt.WebcamOpenTask.open(WebcamOpenTask.java:20)
at com.github.sarxos.webcam.Webcam.open(Webcam.java:302)
at com.github.sarxos.webcam.Webcam.open(Webcam.java:251)
at com.github.sarxos.webcam.Webcam.open(Webcam.java:236)
at client.ErrorCase.(ErrorCase.java:35)
at client.ErrorCase.main(ErrorCase.java:46)
Caused by: com.github.sarxos.webcam.WebcamException: Cannot start native grabber!
at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDevice.open(WebcamDefaultDevice.java:334)
at com.github.sarxos.webcam.ds.cgt.WebcamOpenTask.handle(WebcamOpenTask.java:38)
at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:81)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
My use cases are....A) Use may use webcam only periodically.  I'd like to close webcam in between uses.  2) I want to allow uses to change resolution, and it is my understanding webcam must be closed to change resolution.
Is there a preferred way to close & re-open the webcam?

I see a possible similar issue in #421.

I've got exactly the very same  problem today.

I ran the same test case through, but used the NativeDriver from https://github.com/frankpapenmeier/webcam-capture-driver-native and it looks like it is working.   @ChenzhengUESTC , I would recommend trying the Native driver if you are developing for Windows 8 or 10.


Have the developers abandoned this extension? Is it on its deathbed? [IMPORTANT]

It seems that the freezing error (which happens 75% of the time), which is a quite fatal problem, is being ignored. No efforts are being made to fix the problem by anyone, and that includes the main developer.
I am not saying it's his fault because maybe he is busy, or doesn't understand the problem very well. Perhaps it has something to do with the code of the original developer (reuuke or something) that Kalab built off of. But no one has decided to invest energy into fixing this extension. So now the big question is, is this extension dead? On its deathbed?

@reflexin  The freezing has been put out by the game developers (I assume so) since PowerOfUniverse stopped working on the extension and zbot173 (i think thats the right name) took care of it too.
And every update they change some variables making it a pain to keep updated

wow, this is probably the most profound issue ever opened on this github. I appreciate you for your input in the development of this extension and I wish to hear more from you. People like you are the reason why lesbian dance theory is a top-paying major in the United States of America.

wow, this is probably the most profound issue ever opened on this github. I appreciate you for your input in the development of this extension and I wish to hear more from you. People like you are the reason why lesbian dance theory is a top-paying major in the United States of America.

 You're incredibly unprofessional.

 What are you 12?

that I agree with,
and you're a great and amazing complainer that provides no value for anyone.

 All he does is advertise his shitty channel on this repository.

You can code, but you are useless in this repository, therefore have significantly lower value than a developer, who actively MAINTAINS the hack so that IMMATURE FUCKS like you can win the game. Sorry this wasn't clear, but the only thing I ask is for people not to open RETARDED and USELESS issues on this repository. It logically made sense in my developed mind, but I have realized this isn't the case for ALL people.
 Dare to respond, I'm done with you, buddy.

Wow quite a few points that are left exposed and unedited.
 All he does is advertise his shitty channel on this repository.

You can code, but you are useless in this repository, therefore have significantly lower value than a developer, who actively MAINTAINS the hack so that IMMATURE FUCKS like you can win the game. Sorry this wasn't clear, but the only thing I ask is for people not to open RETARDED and USELESS issues on this repository. It logically made sense in my developed mind, but I have realized this isn't the case for ALL people.
 Dare to respond, I'm done with you, buddy.

And your screenshot proves what lmao?
 Your "developed" mind has only led you to hardly 300 subscribers.

Not only againts  @iBLiSSINYT like it affect me too even if I'm not implicated.
 Is it on its deathbed? [IMPORTANT]"

It seems that the freezing error (which happens 75% of the time), which is a quite fatal problem, is being ignored. No efforts are being made to fix the problem by anyone, and that includes the main developer.

YES IT IS BEING ABANDONED AND YOU KNOW WHY ?

 People yelled at each other like americans while cussing as much as australians while in a thread and said "have a nice day goodbye" like canadians would in the end.  Is it on its deathbed? [IMPORTANT]"

It seems that the freezing error (which happens 75% of the time), which is a quite fatal problem, is being ignored. No efforts are being made to fix the problem by anyone, and that includes the main developer.

YES IT IS BEING ABANDONED AND YOU KNOW WHY ?

  Is it on its deathbed? [IMPORTANT]"

It seems that the freezing error (which happens 75% of the time), which is a quite fatal problem, is being ignored. No efforts are being made to fix the problem by anyone, and that includes the main developer.

YES IT IS BEING ABANDONED AND YOU KNOW WHY ?

Hey genius, maybe if they were fixed people would stop complaining.


Wrong url to Packaged Managed App in GitHub

Attn: The url is incorrect in the documentation.  Currently it is showing this ...
https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/samples/201-managed-storage-account/managedstorage.zip
... but should be this ...
https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 647701e3-8324-a7b2-10a0-c8b4360d1576
Version Independent ID: d212ef9d-0daa-42c2-5a37-b300c67c0998
Content: Create Azure managed application definition
Content Source: articles/managed-applications/publish-managed-app-definition-quickstart.md
Service: managed-applications
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@brentfunk Thanks for the comment. We are actively investigating on the issue and will get back to you shortly with an update.

@brentfunk - thanks for making us aware of the issue. I have submitted a fix that will get published this afternoon.


Cassandra 5 persistence backend

Adds implementation of an experimental Cassandra-5 persistence backend that includes additional vector search and SAI indexing features that have been proposed for Cassandra 5 via the Cassandra Enhancement Proposal (CEP) process. Fixes #2663.
This PR includes:

Experimental Cassandra 5.0 backend. The source code of this backend is based on the Cassandra 4 persistence backend and changes were made as required to run against an experimental fork of Cassandra 4.0.7 containing changes proposed for the Cassandra 5.0 release (which may or may not be accepted into the Apache Cassandra codebase). These changes are found at https://github.com/datastax/cassandra/tree/vsearch.
Scripts to generate a Cassandra Docker image containing the datastax/cassandra:vsearch code. This is used for testing and in docker-compose scripts that can be used to run an experimental Cassandra 5-based configuration locally.
Changes to Maven projects and CI workflows as required to build and test the new persistence module.

Co authors: @tatu-at-datastax @jeffreyscarpenter
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
[x] Documentation added/updated
[x] CLA Signed: DataStax CLA

Todo list:

[x] Create classes for new persistence module
[x] Add new persistence module to CI workflows (apis v2.1, coordinator v2.1)
[x] Pass unit tests
[ ] Pass integration tests
[x] Create docker image for new persistence module
[ ] Create docker image for cassandra fork
[ ] Add docker-compose configuration (partially complete)
[x] Optimize maven profiles to streamline building persistence modules (i.e. for CI workflows)
[x] Add new persistence module to v2.1 release workflow
[ ] Fix brittle logic in Starter for loading correct persistence module
[ ] Fix logic in StargateExtension that ties persistence module identification to ccm version
[ ] (nice to have) modify stargate ITs to use containers instead of ccm
[ ] Run postman tests against docker compose using new persistence module (update the CI workflow)
[ ] Final update of README to make sure it makes sense

@kathirsvn @maheshrajamani ready for you to have a look

I think most code are copied from Cassandra 4.0 persistence. Can we add marker what is changed? It will make it easier to review.

We were talking about ways to diff; I probably need to go commit-by-commit to find changes from original copy-paste.
Unless you have some suggestions of a better way -- I assume git diff could somehow be used, just not sure how.

Need to add vector type.

Yes. I can try to do that.

@tatu-at-datastax @mahesh for diff between cassandra 4 and cassandra 5 persistence modules, I suggest:
cd coordinator
diff -r persistence-cassandra-4.0/src persistence-cassandra-5.0/src > persistence-diff.txt

It's not too bad in terms of output.
persistence-diff.txt
If you want to compare files with different names such as:
Only in persistence-cassandra-4.0/src/test/java/io/stargate/db/cassandra: Cassandra40PersistenceActivatorTest.java
Only in persistence-cassandra-5.0/src/test/java/io/stargate/db/cassandra: Cassandra50PersistenceActivatorTest.java
you'd have to compare those one at a time.

Ok, so, VectorType addition should be ok as is: code was copied from JD's version. It is bit unintuitive wrt control flow, code path, but does work (afaik).

One general observation is that the LICENSE header is not consistently added in all the java files. This is not related to just this PR, may be it's a separate ticket.


Cannot complete payment without being administrator

Attempting to make a payment as a normal registered Xenforo user the payment screen never appears, however when an administrator attempts this the payment box appears and I can complete the payment.
When a normal user tries to make a payment an invoice is generated on the BTC server but the user never sees the payment box so they cannot make a payment.
Is there some hidden code that only allows administrators to make payments ?

Hello!
No, payments should work for all users. What add-ons do you have installed?

There are the addons. Again I as an admin can make payments with no issue but a normal user can generate an invoice which I see on the BTC server but the popup payment box never appears.
Very strange.

Please choose a valid payment profile to continue with your purchase.  but it was working fine when i started now its not for user upgrade

Please choose a valid payment profile to continue with your purchase. but it was working fine when i started now its not for user upgrade

Hello! Could you please post the settings for the upgrade you can't purchase but which used to work?


Including Bower

It's now on npm - is this enough, do you think?
https://www.npmjs.com/package/jsnes

YES


Error on solution installation

Hi, I have an error in the step on solution instalation, When I'm going to install the solution from the package deployer. The error is:
errorDetails - Message  - Error while importing workflow {9977f8ed-8189-ea11-a812-000d3a3b478b} type ModernFlow name Portal User Request: Send Email to Admins on Request Creation: String or binary data would be truncated.......The statement has been terminated.
I try to install to US environment it's correctly but when I try to install to EMEA environment throw this error. Please, can anyone help me? We want to use this application in hospitals, but we need it to be installed in a tenant in europe
Thanks!!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e7f563b0-b40f-3359-14bc-f26ea846ed62
Version Independent ID: 3b1df36e-47d8-18bf-8037-cd45ec53b7b0
Content: Deploy the Regional Government Emergency Response and Monitoring solution - Power Apps
Content Source: powerapps-docs/sample-apps/regional-emergency-response/deploy.md
Service: powerapps
GitHub Login: @KumarVivek
Microsoft Alias: kvivek

Hello, I informed Microsoft technical support about this problem and the response received is this:
"Contact the solution publisher to fix your solution. The locations of the Spanish flow display name are above the 100 character limit that is causing the problem and should fix it.
https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-solutions-support-multiple-languages"
Thnx

Thanks for contacting us. Unfortunately, we're unable to handle Support requests for the product here. To contact Support, visit https://powerapps.microsoft.com/support/.
Closing this issue.


Array-elements are deactivated within selectfieldsets

I adjusted example.html by adding a select-fieldset that contains an array of objects:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <title>Getting started with JSON Form</title>
    <link rel="stylesheet" style="text/css" href="deps/opt/bootstrap.css" />

Getting started with JSON Form

    <form></form>

Unfortunately all elements but the first are deactivated. When adding new elements using the +, those elements are active. After switching the personality from active->lazy->active, newly added elements are also deactivated.

please try it on http://ulion.github.io/jsonform/playground/

This error seems to be there from the beginning on:
196486e The 'selectfieldset' field type may now be linked to a schema key.

@ulion : There I only get the Error-message: The JSONForm defines an element of type "text" but no "key" property to link the input field to the JSON schema

I added the issue to the ulion-fork: https://github.com/ulion/jsonform/issues/5

fixed in my fork.

@ulion Any idea if this will ever get merged? Seems like a pretty important fix.

It should be fixed now, can you confirm ?


waitUntilHittable never waits?

Hi from Japan👋🏻
I see waitUntilHittable in testcases a lot, but it seems like self.defaultTouchLocation is never nil or throws error, so what is the point?

 That was a mistake when copying it over from our internal repo into the open source one. Submitting a fix that completely removes self.defaultTouchLocation to avoid accidental issues like this. https://github.com/lyft/Hammer/pull/6


feat: create update command

Closes #5

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


move config from /data to somewhere else

i have about 300 session files from another rtorrent installation and the mount point for the out directory was inside /data.
since /data is being used for the config and mounting the config inside of my data share (i use unraid) would make eveything messy. is there a way where i can move the config files from /data to something else like /config ?

We don't have migration path from other containers. You should start from scratch and copy over the session files to the new instance.