text:
Traceback (most recent call last)

Что-то я скорее всего сделал не так, не подскажите ?
Ошибка:
Select an action:
1. Create session
2. Run clicker

2
Traceback (most recent call last):
File "C:\Users\disas\Desktop\HamsterKombatBot-main\main.py", line 13, in
asyncio.run(main())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\disas\Desktop\HamsterKombatBot-main\main.py", line 8, in main
await process()
File "C:\Users\disas\Desktop\HamsterKombatBot-main\bot\utils\launcher.py", line 91, in process
tg_clients = await get_tg_clients()
File "C:\Users\disas\Desktop\HamsterKombatBot-main\bot\utils\launcher.py", line 50, in get_tg_clients
raise FileNotFoundError("Not found session files")
FileNotFoundError: Not found session files

у тебя в папке сессий нет по всей видимости

repo: shamhi/HamsterKombatBot


text:
Repository description has to be updated "for WT 0.9"

It still says "for WT version 0.9" in the description. Might be confusing.

:shipit:

source: gharchive/issue

authors: AkdenizKutayOcal shanselman

repo: shanselman/WindowsTerminalHere

license: MIT

license_type: permissive

license_source: github-api


text:
How to enter a video

hi, I want to input video path, output a result video. What should I do？ Thank you

hi, our system needs video and IMU input to run. You can use view_aist function in evaluate.py to visualize the results. Before that, you should download the AIST++ video from its official site.

I tried to input offline video and IMU data. Do I need to write forward_offline function in sig_mp.py file? Is it an image or a 2D sequence of joints?

No need to rewrite the forward function. Just provide the 2d keypoints detected by mediapipe and transform them onto Z=1 plane, and the orientation and acceleration of 6 IMUs in the camera coordinate system. How to run the forward function can refer to evaluate.py.

Due to the deformity of the generated 3D model, I have a few questions to ask.

For camera correction, do I place the black and white checkerboard horizontally within camera range or vertically?
Rectify the IMU. Does the initial posture also need to refer to the correction method in Transpose?
I see that first_tran in evaluate.py is related to the rotation matrix of 24 keypoints in the first frame. How can I obtain it?

Don't you need to fix the camera position?
If you want to achieve real-time effect, how to get the gt of the initial frame?

I dont know what is your problem. Camera correction means calibration? To calculate R or K? If you means calibration, you need to modify your camera‘’s position. If you means capture human motion, you should fix the camera.
evaluate.py is the code to achieve the result in the paper. If you want to run live, please refer the live demo code.

Hi, I still have some questions. Is the resulting pose data converted to the Euler Angle relative to Tpose? If I wnt to get the real value of this action, just seq='xyz' in this function rotation_matrix_to_euler_angle(r: torch.Tensor, seq='xyz')？

Hello, I just corrected it according to the way of T-pose, the generated posture is crooked, and the movement is strange. Is it because I'm missing jump sync?

authors: point-1 shaohua-pan xobeiotozi

repo: shaohua-pan/RobustCap


text:
Shapely operations return geometries with incorrect winding

Geometry operations like intersection, union, difference... produce incorrectly (clockwise) winded objects. Even if input geometries were CCW winded.
Expected behavior and actual behavior.
The operations should produce geometries with correct CCW winding.
Steps to reproduce the problem.
b = box(0, 0, 1, 1)

print(b.exterior.is_ccw)
print(b.intersection(b).exterior.is_ccw)
print(b.union(b).exterior.is_ccw)
print(b.difference(b).exterior.is_ccw)

Shapely version
shapely==2.0.1

"incorrect" is a matter of opinion / implementation...
This is expected behavior from GEOS, which is the C/C++ library used by Shapely.  My understanding is that the implementation of winding order for exterior / interior rings in GEOS / JTS (the companion Java library on which it is based) predates winding order being established in the OGC Simple Features standard (counter clockwise for exterior rings, clockwise for interiors).
For inputs, GEOS doesn't care about winding order because exterior and interior rings are specified directly; in other implementations winding order is used to determine which ring is exterior vs interior.  For outputs, except for rare functions where Shapely has more direct control over the coordinate order, they have clockwise exterior rings.
For box specifically, you can specify the ccw; however, most functions do not provide direct control over winding order.
Elsewhere you can use is_cw / is_ccw / reverse and in the future probably force_ccw to check and manipulate winding order.
Since this issue is about winding order, which is technically correct given the underlying geometry engine, and not a bug in Shapely, I'm going to close this.

I have been meaning to open an issue on the GEOS side about that it would be nice to provide some way to tweak this default orientation for newly created geometries (not necessarily a trivial change though)

repo: shapely/shapely


text:
User flows for v2 staking contract

We will be adding a new staking contract to replace the old one. To do this we need to get the users to unstake from the v1 contract and stake into the new v2 contract.
The follow flow would be:

When the user loads the external app we will need to redirect them to the unstake screen if they have LP and are currently staking with the v1 contract.
If the user has provided LP but has not staked, we will redirect them to the screen to stake to the v2 contract.
If the user has not provided LP we will redirect them to the provide LP screen.

The prototype can be found here --- https://www.sketch.com/s/2278216c-d095-44df-a62a-8dc791c2a29c/a/m1zZoaJ/play

Mobile will be similar.

On mobile if the user goes directly into their LP details, they will also see the CTA to unstake and claim

Mobile Prototype: https://invis.io/KF11O37SUCWG#/457995227_Removed_Partial_Copy

Mobile_LP&Farming_NewRewards.pdf

Updated Mobile Prototype: https://invis.io/ZU11P64CYGF8#/458252158_Removed_Partial_Copy_3

I've updated the mobile prototype https://projects.invisionapp.com/d/main#/console/21655687/458252158/preview
Also, I've added some additional screens for when a user is in BOTH staking contracts at once. It will be very clear that one has ended and one is runni

ng

repo: shapeshift/foxfarm


text:
fix: allow thor trades for wallets that require signAndBroadcast

we previously missed this and only native/keepkey support thor trades as they support offline
signing
this uses the signAndBroadcast method if it is available, e.g. metamask/xdefi/tally ho/walletconnect

tested and working with metamask/tally ho

source: gharchive/pull-request

repo: shapeshift/lib


text:
fix: fees part 1 cleanup

remove fees returning from buildSendTx
remove recipients from buildSendTx
add btc specific fee data and stub out return values

Can you link to a ticket for this for context, or if there's no ticket, provide context. I don't understand the implications of the changes.

authors: cjthompson elmutt


text:
custom import tokens follow up and cleanup

after custom import tokens is added, audit app for any issues rendering these assets
they shouldn't be included in portfolio balances and never should be converted to fiat values

depends on https://github.com/shapeshift/web/issues/7213

repo: shapeshift/web


text:
feat: fiat currencies support for application

Description
Blocked by: https://github.com/shapeshift/lib/pull/495
also needs: #1342 for tests to pass.
WIP: adding support for top 20 fiat currencies other than USD
Notice

[x] Have you followed the guidelines in our Contributing guide?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
Risk
Sending crypto with the amount chosen in fiat is not tested yet... so test it at your own risk (there probably will be a small difference in the fiat amount).
Testing
Open up the settings modal and change your currency to the 20 options available,
all of the prices in the app should respect the chosen fiat.
Screenshots (if applicable)

@stackedq You might want to mergefix this, currently there are 27 conflicted files

closing in favor of

https://github.com/shapeshift/web/pull/1859
https://github.com/shapeshift/web/pull/1873

authors: 0xdef1cafe gomesalexandre stackedq


text:
feat: cosmos defi UI part 2: update translations

Description
This updates the translations for use in the new Cosmos DeFi UI. TODO
copy description from 2233
Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

Risk

Testing

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #2293

PR #2294   👈

PR #2295

This comment was auto-generated by Graphite.


text:
feat: gatefi fiat ramp

Description

reopening from https://github.com/shapeshift/web/pull/4343

this requires a spec and product owner
asset selection in popup window doesn't work
fiat selection in popup window doesn't work

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

n/a
Risk
low - new fiat ramp integration only

Testing

Engineering

Operations

Screenshots (if applicable)

closing for housekeeping until product can come up with an owner


text:
add HSV

toHSVA :: Color.Color -> {h :: Number, s :: Number, v :: Number, a :: Number}
toHSVA color = case Color.toHSLA color of
  ({h, s, l, a}) ->
    let
      s' = s * (if l < 0.5 then l else 1.0 - l)
    in
      { h
      , s: 2.0 * s' / (l + s')
      , v: l + s'
      , a
      }

hsva :: Number → Number → Number → Number → Color.Color
hsva h s v a = Color.hsla h s' l a
  where
  tmp = (2.0 - s)*v
  s' = s * v / (if tmp < 1.0 then tmp else 2.0 - tmp)
  l = tmp / 2.0

hsv :: Number → Number → Number → Color.Color
hsv h s v = hsva h s v 1.0

adopted from https://gist.github.com/xpansive/1337890

If you know some more elegant implementation let me know.
Will open PR shortly.

Actually this conversion function is not what i wanted as it is not lossless I.e.:
If I have hsl(0,100%,0%) I expect to get hsv(0,100%,0%)  or
If I have hsl(0,50%,0%) I expect to get hsv(0,66.6%,0%)
But all algorithms I found:
http://ariya.blogspot.com/2008/07/converting-between-hsl-and-hsv.html
https://stackoverflow.com/questions/3423214/convert-hsb-hsv-color-to-hsl
Involve multiplication which results in hsv(0,0%,0%), they loose s when color is black.

Actually this conversion function is not what i wanted as it is not lossless

I think this is something we could tolerate. It's related to this comment in src/Color.purs:
-- | The representation of a color.
-- |
-- | Note:
-- | - The `Eq` instance compares two `Color`s by comparing their (integer) RGB
-- |   values. This is different from comparing the HSL values (for example,
-- |   HSL has many different representations of black (arbitrary hue and
-- |   saturation values).
-- | - Colors outside the sRGB gamut which cannot be displayed on a typical
-- |   computer screen can not be represented by `Color`.
-- |
data Color = HSLA Number Number Number Number

This means that - given the current Eq instance - those colors would still be the same after converting back and forth(?).

Yah I have red that and that's fine from Eq perspective.
But I wanted it to be "lossless" as I wanted it for color picker module, which showed HSV square like in photoshop.
So when users choices a color I know HSV values but as color stores only HSL version I can't use just color in my state (as I want to read exact same HSV values back to show pointer on color picker).
I believe there would be a way to convert HSV to HSL without losing data, but I haven't found one and it was not trivial for me, so I stooped.
Do you know any lossless implementation of HSV <-> HSL?
I just thought: maybe converting HSV to XYZ, Lab or LCh and then to HSL will solve the looseness issue? (I don't understand this color formats will need to play with converters to check it)

Do you know any lossless implementation of HSV <-> HSL?

I don't... but what about just adding a special case for V=0?
In the HSL representation, hsl(H, S, 0) = hsl(0, 0, 0) = black for all values of H ans S. This means, that we are free to choose values for S (and H) if L = 0. So in this case (when V=0 and therefore L=0), we can simply choose the value for S to be what the formula tells us in the proper limit of V -> 0, which is:
S = S_HSV / (2 - S_HSV)
What do you think?

How do you know that S = S_HSV / (2 - S_HSV) ? (like can you give a link or something as I couldn't find such relation before)
Given S = S_HSV / (2 - S_HSV) , S_HSV = 2 * S / (1 + S):
S = S_HSV / (2 - S_HSV)
(2 - S_HSV) * S = S_HSV
(2 - S_HSV) * S / S_HSV = 1
2 * S / S_HSV - S_HSV * S / S_HSV = 1
2 * S / S_HSV - S = 1
2 * S / S_HSV = 1 + S
2 * S = (1 + S) * S_HSV
2 * S / (1 + S) = S_HSV -- BINGO
2 * S = (1 + S) * S_HSV
2 * S = S_HSV + S * S_HSV
2 * S - (S_HSV + S * S_HSV) = 0
2 * S - S_HSV - S * S_HSV = 0
(2 - S_HSV) * S - S_HSV = 0
(2 - S_HSV) * S = S_HSV
S = S_HSV / (2 - S_HSV)

So I have updated code and it works fine, will open PR shortly:
toHSVA :: Color.Color -> {h :: Number, s :: Number, v :: Number, a :: Number}
toHSVA color = case Color.toHSLA color of
  ({h, s, l, a}) ->
    if l == 0.0 then
      { h
      , s: 2.0 * s / (1.0 + s)
      , v: 0.0
      , a }
    else
      let
        s' = s * (if l < 0.5 then l else 1.0 - l)
      in
        { h
        , s: 2.0 * s' / (l + s')
        , v: l + s'
        , a
        }

hsva :: Number → Number → Number → Number → Color.Color
hsva h s v a = Color.hsla h s' l a
  where
  tmp = (2.0 - s)*v
  s' =
    if v == 0.0
    then s / (2.0 - s)
    else s * v / (if tmp < 1.0 then tmp else 2.0 - tmp)
  l = tmp / 2.0

hsv :: Number → Number → Number → Color.Color
hsv h s v = hsva h s v 1.0

How do you know that S = S_HSV / (2 - S_HSV) ?

I calculated the limit for v -> 0. Take a look at tmp = (2.0 - s)*v. If v -> 0, we have tmp -> 0. So the if-clause in (if tmp < 1.0 then tmp else 2.0 - tmp) will always evaluate to the first expression tmp. This, in turn, yields s' = s * v / tmp = s * v / ((2.0 - s)*v) = s / (2.0 - s)

Nice! need to revisit calculus :D
The snippet I have here is not quite right, in the PR #27  I have added tests and cople edge cases

authors: safareli sharkdp

repo: sharkdp/purescript-colors


text:
[SharpDX.Direct3D11] Added DirectX11.3 support

Hello, since I noticed it was missing, I added mappings for directx11.3.
I tried to reuse the existing regular expressions instead of adding new ones, and naming should be consistent with other features.
Thanks

Thanks! This is merged.

authors: mrvux xoofx

repo: sharpdx/SharpDX

license: mit

license_source: bigquery


text:
chore: support more basic types

Which issue does this PR solve? (这个 PR 解决了什么问题)
#36 #37
Retionable for this PR Change (这个 PR 做了什么改变)
支持了更多的基础类型, 以及修复了 varchar(usize) 类型的parse.

cc @Tangruilin  PTAL.

repo: shaun-io/shaun-rs


text:
feat: handle ddos attack by adding capcha and rate limit to processes

[ ] use cloudflare Turnstile

done

repo: shawakash/payBox


text:
Add "In Memory" cache backend.

This looks like a solid cache tool, but lack of an in memory backend to both avoid filesystem interaction and not require an external dependency like running mongodb, is a pretty big hinderance for me.

@techdragon cachier is meant to provide persistent cache - as in persistent over different sessions, kernel and even machines - so I naturally thought in-memory storage is not relevant for this.
Couldn't you just use Python's built-in functools.lru_cache for fast in-memory caching?
Or are you thinking about Python processes that live for a long time - weeks or months - like servers, for which you want to cache the return values of different functions for different periods of time, so cachier's stale_after functionality is what you're missing in Python's lru_cache?

@techdragon Anyway, is should be the easiest core yet to implement, so I can try and find time for this soon, if you think it will be usefull for you.

Noted. Do you happen to have the time to implement such a component? :)

Again, due to the package design, this should be pretty simple; you only need to implement an in-memory core, using the structure of the pickle or MongoDB cores as a template, and simply having some in-memory data structure (probably a dictionary).

@shaypal5 I also have the same interest - would you be willing to accept a PR for this?

Willing? I would be delighted!
I saw your PR regarding the backend keyword, so I'll tell you what:
I think this should be an API breaking change that will warrant version 2.0.
Let's come up with a generalized scheme on how cores should get their kwargs - it should be streamlined, and not have the decorator itself changing its constructor signature on every change in a core keyword. Adding **kwargs and having cores looking there is definitely an option.
This will also bring us one step closer to multi core functionality, have a series of cores ordered linearly, having cache calls cascading fro memory to pickle to mongo, for example.

Released in v1.5.0 !!! 🥇 🥳
Congrats and great work, @cthoyt ! First major outside contribution to this project!
I'm so proud. May it be the first of many (by you and/or users of the package)!

authors: cthoyt shaypal5 techdragon


text:
How to run this model properly ?

So I installed all the libraries needed.... I run python3 /Users/aneeshmuppidi/Downloads/Colorization.tensorflow-master/image_colorization.py --mode test  --data_dir Images/Test --model_dir /Users/aneeshmuppidi/Downloads/Colorization.tensorflow-master/imagenet-vgg-verydeep-19.mat
(aneeshmuppidi is my username)
Then the program doesn't return anything.... it's like the program exited. What would be the proper way to run this?  Or does it save the output in a specific directory?

The mode has to be set to "train" to train the model? This is the default value for mode - so just running the command in your question without specifying mode argument should start training model.

@shekkizh oh yea I forgot to include that  in that example.... But usually when I tried I would put the mode to test .... Does only train work ?

Train mode is to train the model. Test mode uses trained model to predict colored images on random images in the dataset.
Also please make a pull to get the latest code - I updated the code for Test mode 0629324dfe394c533fc231f95fc6126b9747b121

authors: Aneeshers shekkizh


text:
プロンプトが「 > 」のときにCtrl+Cで抜け出せない。

実装する。

実装した。


text:
Would you be interested in a PR for open?

I wanted to open a file as part of a workflow, but realised I need to .exec('open ...') on linux and .exec('start ...') on windows.
Would you be interested in a PR providing a new function .open(...) that opens a file/folder ?

Check out the plugin
open is not a standard POSIX command, so we thought it safer to implement as an example plugin. When we announce official plugin support, we'll add a better link in our README (so this is clearer to users 😄 )
If you encounter bugs with that module, file an issue on its own repo and I'll take a look.

authors: mathiasrw nfischer

repo: shelljs/shelljs


text:
Effacer les projets entiers

À ce stade, il serait très utile de pouvoir effacer des projets analytiques entiers. Il existe par exemple ici [1] un projet "Cadences" créé par "N".  Est-il possible d'effacer ce projet (ou au moins toutes les annotations indviduelles – je ne sais pas qui a créé ce projet).
https://data-iremus.huma-num.fr/tonalities/project/5f58efc2-3091-4b53-a235-0afc02b0ee7e/score/28fae3a2-3510-4ea7-b783-8f2f7e5be86d

ticket de résolution côté serveur

authors: felix-commits guillotel-nothmann

repo: sherlock-iremus/sherlock-tonalities


text:
扩充词表后能否直接进行SFT呢？

Describe the Question
Please provide a clear and concise description of what the question is.
请问扩充词表后能否直接进行SFT呢？如果可以的话，需要改变哪些参数么？

我想是不可以的，扩充词表后，需要训练embed_token和lm_head，更新对应词的语义向量，即先需要pt，然后在进行sft，我觉得这样是比较好的

好的，谢谢您了！


text:
Allow to convertEmptyValues

Is your feature request related to a problem? Please describe.
Updating DybamoDB values with empty string fail.
Describe the solution you'd like
Dynamo Document Client enables to set convertEmptyValues.
I'd love to have the ability to do that

hi @roni-frantchi
We never had the need for this feature and right now there are other issues we'd like to address first. But of course we're open for PRs :)
--> for a specific property I guess it would be possible with a custom mapper

@simonmumenthaler of course.
But since the issue isn't resolved, it'd be great if you could leave the issue open so that me or someone else may find it, track it, open a PR, and resolve it.

authors: roni-frantchi simonmumenthaler

repo: shiftcode/dynamo-easy


text:
[WIP] shirasagi job 2.0

概要
Rails 4.2 から ActiveJob というジョブ実行の仕組みが追加されました。
Shirasagi Job は、Rails 4.1 時代にバッチ処理を実行する仕組みとして開発しました。
ActiveJob と Shirasagi Job を統合するプルリクです。
Shirasagi Job をつかって幾つかジョブを書いてきましたが、こうだった良いのにといった改善点を取り入れることを目指します。
ActiveJob
ActiveJob では次のようなジョブ・クラスを作成し、
class ExampleJob < ApplicationJob
  def perform(param)
    puts "hello #{param}"
  end
end

次のように実行します。
ExampleJob.perform_later('world')

ShirasagiJob
問題点1
シラサギでは、どのサイトをターゲットにしているのか、どのノードをターゲットとしているのかという実行コンテキストを把握することが重要です。
ShirasagiJob では、次のようにパラメータに実行コンテキストを指定していました。
class ExampleJob
  include Job::Worker

  def calll(site_id, node_id, param)
    @cur_site = Cms::Site.find_by(site_id)
    @cur_node = Cms::Node.find_by(node_id).becomes_with_route

    puts "hello #{param}"
  end
end

サイト、ノードといったボイラープレート的コードを毎度書かなければならず面倒に感じており、
実行コンテキストについてはフレームワーク側でサポートできないかと考えていました。
問題点2
シラサギジョブでジョブを実行するには
ExampleJob.call_async('world')

としますが、ジョブを実行した後、手動で rake タスクを実行しなければなりませんでした。
ActiveJob と ShirasagiJob の統合
改善1
統合に際してシラサギジョブでは、次のように実行できるようにします。
ExampleJob.bind(site_id: @cur_site.id, node_id: @cur_node.id).perform_later('world')

※bind としたのは「ジョブ（の実行コンテキスト）をサイト/ノードにバインドする」の意からです。
ジョブの実装は次のようになります。
class ExampleJob < Cms::ApplicationJob
  def perform(param)
    puts "hello #{param} @ #{site.domain}"
  end
end

ジョブからは、単に site や node とするとバインドしている実行コンテキストを取得できます。
改善2
次のようにしてジョブを実行すると、必要な Rake タスクを実行します。
ExampleJob.bind(...).perform_later('world')

その他の改善

シラサギジョブではなく、delayed_job や rasque なども使えるようになります。delayed_job や rasque を使う場合も bind は使えます。
テスト時には inline で実行します。シラサギジョブが rake タスクを起動しないのでテストが高速で動作するようになります。また、Rake タスクで起動した方のコードのカバレッジは計測されないため、カバレッジが低くなりがちでしたが、inline で実行することでカバレッジが計測されるようになります。

Coverage increased (+0.4%) to 81.63% when pulling 9758f2a4cf2f83ce110e688c811725b85b48cefa on sunny4381:study/ss-job-2.0 into fbd9ef630ab7c42bd389a2e1a826f91b5d2a681e on shirasagi:master.

Coverage increased (+0.5%) to 83.436% when pulling d84152456364987bb85c0ebf1dd88d58a370e447 on sunny4381:study/ss-job-2.0 into 5d139e7884e772be68fc64a3507e7b7fbd96d3f4 on shirasagi:master.

ShirasagiJob の改善点: Job 実行サービス側
Job 実行サービスを Rake タスク job:run として提供しており、
Rake タスク job:run は、DB に登録されている Shirasagi Job を全て実行し終わると終了するプログラムです。
Rake タスク job:run が常駐するプログラム（いわゆるデーモン）ではないため、ジョブを DB に登録する度に Rake タスク job:run を実行していました。
Rake タスク job:run は多重起動される可能性があり、多重起動を防止するため特定の DB のフィールドをロックしていました。
ここで幾つかの問題点がありました。
問題点1
リクエストがほぼ同時期に殺到し、ShirasagiJob をいくつもほぼ同時期に実行すると、ShirasagiJob の数だけの Rake タスクが起動します。例えば 10 個のリクエストがほぼ同時に到着し、10 個の ShirasagiJob を登録すると、10 個の Rake タスクが起動します。
1 Rake タスクあたり最低でも 250 MB ~ 300MB ぐらいのメモリを消費するため、
10 個もの  Rake タスクを起動すると、消費されるメモリは 2.5 GB ~ 3.0 GB となり、最悪スワップが発生し、まともに処理を実行できなくなります。
問題点2
Rake タスク job:run は、正常に処理が終了するとロックを正しく解放しますが、異常終了した場合、ロックを解放できません。
長く運用していると、Ruby プログラムが Segmentation Fault を起こしたり、OOM Killer により殺されたりして異常終了する場合があります。
異常終了しロックが獲得されたままの状態となったら、手動で特定の DB のフィールドのロックを解除しない限り、ShirasagiJob は実行されなくなります。
改善
改善1
Rake タスク job:run を、常駐するプログラム（いわゆるデーモン）として実行できるようにしました。
あわせて、Rake タスク job:run が常駐プログラムとして実行されている場合、ShirasagiJob を登録しても Rake タスク job:run を実行しないようにしました。
改善2
Rake タスク job:run は、すべての ShirasagiJob を実行し終わると速やかに終了することを前提としていたため、途中で安全に停止させる方法が存在しませんでした。
TERM シグナルを送信することで安全に停止するようになりました。
改善3
もともと Rake タスク job:run は多重実行されても問題のない作りをしていました。
多重実行を防止していたのは、単に多重実行しても CPU やメモリが無駄だからです。
今回、特定の DB のフィールドのロックをやめました。
多重実行すると実行した分だけ Rake タスク job:run が起動しますが、
反面、これにより異常終了した後、回復操作をせずとも Rake タスク job:run を実行するだけで、ShirasagiJob が実行されるようになります。
通常は、以下に紹介する systemd 定義ファイルを用いて systemd により起動されるため、
無駄に Rake タスク job:run が多数も起動することはないかと思います。
systemd 定義ファイル
Rake タスク job:run を、常駐するプログラム（いわゆるデーモン）として構成し、
以下のような systemd 定義ファイルを、特に本番環境では利用する想定です。
[Unit]
Description=Shirasagi Job Server
After=mongod.service

[Service]
User=root
WorkingDirectory=/var/www/shirasagi
ExecStart=/usr/local/rvm/wrappers/default/bundle exec rake job:run
Type=simple
Restart=always

[Install]
WantedBy=multi-user.target

ExecStart に Rake タスク job:run の実行コマンドを指定します。
加えて、Restart に always を指定することで、異常終了しても自動で再起動します。

repo: shirasagi/shirasagi


text:
Update imagick@7.2

Build imagick@7.2

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-extensions


text:
Update grpc@7.1

Build grpc@7.1

:beers: @BrewTestBot has triggered a merge.


text:
Update php@8.4-debug-zts

Build php@8.4-debug-zts

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-php


text:
Update php@8.2

Build php@8.2

:beers: @BrewTestBot has triggered a merge.


text:
there is no core unlearning part of the code

Thank you very much for open-source the code.  my current research topic is very similar to your paper, so I want to see how your masking code is implemented, but there is no core code, could you please share? thank you very much!

Thank you for your interest in our work
The training code is the main function of the train.py file, however, this work was experimental and there are a few bugs in the code


text:
装袋算法的表述不是很清楚啊？ 没有后面随机森林的表述那么清楚

问题链接：https://www.shiyanlou.com/questions/165541
学员昵称：书山压力大EE
提问时间：2019-05-14T08:34:27.000Z

问题：

装袋算法  的取样   是有放回的取样吗？

表述中T的意思：  是不是     最后有T个样本集，并且 每个样本集有T个样本数?

假设现在有多个个体训练器， 是不是   每个个体训练器  都要用 所有的T个样本集数据进行训练？ 还是只用T个样本集中的一个样本集进行训练？

已回答

authors: huhuhang songyer

repo: shiyanlou/louplus-ml


text:
Scrubbing on the seek handle works intermittently on android chrome

The seek handle is not draggable sometimes on android, though it works out well as expected in iOS safari. When we try to drag the seek handle to and fro, it feels like it got locked out and will not move at all and occurs intermittently.

The seekbar on the phone is relatively small and may be difficult to touch

Hello,
the issues is occurring rampantly, only on mobile browser in android, tested only in chrome, safari in iOS is working flawlessly.
To reproduce, play any videos on mobile chrome browser on android, and try to drag the seekbar, if it works for the first time, wait for a bit and try dragging to and fro again, repeat 2-4 times.

Try https://onime.netlify.app/v/3724
How'd it go?

http://139.162.61.196/demo.html
Please try to move the seeker 2,3,4 times, often times, it becomes undraggable.

authors: evmatic shiyiya

repo: shiyiya/oplayer


text:
added first version of bigtesting framework

WIP merging flash with Shogun. Code is not following Shogun's standard yet.

feature branch. merging.

repo: shogun-toolbox/shogun


text:
4.23　ワークフローの実行

以下のエラーにて困っています。
githubのソースコードとdiffを実施しても差異はなく、何度試してもエラーです。
何か解決策はありますでしょうか？

Step 7/11 : COPY --from=node /usr/local/bin /usr/local/bin
---> 632b51e78fe2
Step 8/11 : COPY --from=node /usr/local/lib /usr/local/lib
---> 08da824825be
Step 9/11 : COPY --from=node /opt /opt
---> 248ee479f53e
Step 10/11 : COPY ./infra/docker/nginx/*.conf /etc/nginx/conf.d/
---> 483c02e5cebe
Step 11/11 : WORKDIR /work/backend
---> Running in 25b19a27f196
Removing intermediate container 25b19a27f196
---> a3b15f8a797c
Successfully built a3b15f8a797c
Successfully tagged laravel-fargate-app2_web:latest
Creating laravel-fargate-app2_web_1 ...
Creating laravel-fargate-app2_app_1 ...
Creating laravel-fargate-app2_web_1 ... error
ERROR: for laravel-fargate-app2_web_1  Cannot create container for service web: invalid mount config for type "bind": bind source path does not exist: /home/runner/work/laravel-fargate-app2/laravel-fargate-app2/backend
Creating laravel-fargate-app2_app_1 ... error
ERROR: for laravel-fargate-app2_app_1  Cannot create container for service app: invalid mount config for type "bind": bind source path does not exist: /home/runner/work/laravel-fargate-app2/laravel-fargate-app2/backend
ERROR: for web  Cannot create container for service web: invalid mount config for type "bind": bind source path does not exist: /home/runner/work/laravel-fargate-app2/laravel-fargate-app2/backend
ERROR: for app  Cannot create container for service app: invalid mount config for type "bind": bind source path does not exist: /home/runner/work/laravel-fargate-app2/laravel-fargate-app2/backend
Encountered errors while bringing up the project.
Error: Process completed with exit code 1.

1

repo: shonansurvivors/laravel-fargate-app


text:
Improve Documentation

Documentation is currently subpar, and would benefit from attention. Goals are to write full docs with Sphinx to then host on Read the Docs. Anyone who wants to help is welcome to do so.

Hey @shonin  I would love to help on this

hey @ChristopherLandaverde, great, any idea what you can contribute? Things that need to get done are

Sphinx setup
convert the current readme into the bare-bones new documentation, which should be written in .rst
update the documentation to be more robust
proofreading

if you had something else in mind that I didn't list feel free to let me know

Hey @shonin
So I will be working on converting the read me,  sphinx set up, and proofreading.
Do you mind if I continue to use? .md and would you be interested in adding docstrings?

👍

authors: ChristopherLandaverde shonin

repo: shonin/django-manifest-loader


text:
🛑 Shopstar API is down

In 1488729, Shopstar API (https://api.shopstar.co.za/) was down:

HTTP code: 502
Response time: 1238 ms

Resolved: Shopstar API is back up in e117420 after 3 minutes.

repo: shopstarco/shopstatus


text:
Migration not working

PHP Version
8.1.3
Shopware Version
6.4.13
Expected behaviour
migration from magento 1.9 to shopware works
Actual behaviour
Doesn't work. Migration Assistant has issues which i fixed manually by type casting.
Migration worked once in december (sw 6.4.7 + migration assistant),
but now the migration finishes, then runs indexing, but nothing was migrated

How to reproduce
Have a Magento 1.9 db dump and try to migrate it like i do ?!

My issues will relate to https://issues.shopware.com/issues/MIG-817 i guess.

repo: shopware/platform


text:
log broken thumbnail images and continue generating

1. Why is this change necessary?
When generating thumbnail images with php bin/console media:generate-thumbnails, the generation stops once an image is broken/missing. This is not a big problem when having a small amount of images. You can easily find which are the broken images by the message thrown with the image id and fix them. However this is a problem when a shop has many images that has to be generated as thumbnails or with media that is migrated from another platform like Magento. It's irritating that the thumbnail generation script stops executing once it faces a broken image, instead of skipping the broken images and finishing with the rest.
2. Describe each step to reproduce the issue or behaviour

run php bin/console media:generate-thumbnails.
If image is broken or missing an error with the image id is trown and the script stop executing:

3. What does this change do, exactly?
This change applies a try catch handling that will print every broken image when thumbnail generation command is executed and also logs the broken images in the var/log/(dev/prod.log)

After the patch, the script logs the broken/missing image and continues executing til it's done:

info.Error is trown in dev/prod.log:

4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

This PR was closed due to inactivity. If this change is still important to you, feel free to create a new pull request.
For more information about our contribution guidelines, see https://docs.shopware.com/en/shopware-platform-dev-en/contribution/contribution-guideline.

authors: shopwareBot wexollm


text:
Update extraction.md  and Update multimodal.md

grammar correction: "names, dates, address" to "names, dates and addresses".
grammar and tense correction: "retrieving from a text corpus" to "retrieving it from a text corpus", "Check out out Chroma" to "Check out Chroma", "supports single vector store" to "supports a single vector store", "can generate structured output" to "can generate a strucutred ouput", "structure of output" to "structure of the output".

@AryamanJaiswalShorthillsAI , Please fix the conflicts.

@ShorthillsAI  resolved

authors: AryamanJaiswalShorthillsAI ShorthillsAI


text:
Major refactoring for the 2.0 release

This is a major, backwards-incompatible refactoring intended to simplify long-term maintenance. See pull request #42 for previous discussion – these are the same changes, only updated for the current master branch.
Vadim, we can review the changes once more and if everything looks fine, we’ll merge this into master? Before that, we can create a 1.x branch to keep the older codebase for people who don’t want to update to 2.0 for whatever reasons.

Sorry, I forgot to address your concern about CocoaPods:

I'm not sure how to start the second version for CocoaPods with your proposed changes. Any advise?

I’m no CocoaPods expert (I have just started using it), but I think we can continue releasing both 2.x (regular development) and 1.x (bugfixes on the old codebase). According to the CocoaPods Podfile Guide, you can use the ~> operator to smart-match release version numbers: for example ~> should stick to the 1.x branch for people who want to.

Okay Tomáš, I reviewed all changes and shouldBypassis the only functionality I would like to restore. Could you please return those lines?

Great, thanks! I’m on the shouldBypass feature at the moment. You’re right, the recording should be cancelled by Cmd-W and Cmd-Q, but isn’t at the moment. I’ll document the possible cases and fix the Cmd-W/Q input.

Done. I have also created a maintenance-1.x branch to keep track of the development in the 1.x line. Now you can merge this into master, I’ll test the result in CocoaPods and if everything works, we can release the new version on CocoaPods. You can add me as a contributor if you want to, so that I can release updates to CocoaPods.

I already added you as a collaborator, so feel free to merge the Pull Request yourself.
P. S. Please check your Inbox for CocoaPods email verification.

Please check the Demo launched for the first time with empty user defaults. In this case, Xcode 6.1 generates warnings, the app omits error -[__NSDictionaryM removeObjectForKey:]: key cannot be nil into Console and Command-2 does not work. Thanks in advance!

The removeObjectForKey was a nice catch, fixed by an explicit nil-check. I have simplified the demo to the basic use case, now it works out of the box.

authors: shpakovski zoul

repo: shpakovski/MASShortcut


text:
How can I use the same for background-images

If I am using background-images , can you please tell, how can I define the different images for different screens. I am able to do it for images.

This is not supported sorry.

Hi @shprink ,
Is there any reason, why we are not supporting this. I am using this till now with images, but now my requirements are of using background-image..
Till now, I haven't seen the code . Can you please tell, whether the architecture supports the same. If so, I will add a support for the background-images and submit a patch here (will send you a pr for the same)

I am sorry but I do not recall why it is not supported. I do not wish to support this project anymore, if you find a way and you want to share with others I will be happy to accept your PR.
THanks

repo: shprink/BttrLazyLoading


text:
Handle timeout gracefully in case of condor_vault_storer timeout

With the release of 0.11.1, I noticed in testing that if we time out, then the CondorVaultStorerWorker doesn't attempt to put an old token file back in place.  That is, if we move in a stored token, try to run condor_vault_storer, and it times out, we don't put the stored token back, and so it's effectively "deleted".  This isn't a show-stopper, but it should be fixed.
Perhaps we check the context deadline BEFORE running condor_vault_storer, and if it's expired, we put the file back immediately and THEN return the error.

This is done.

repo: shreyb/managed-tokens


text:
evaluation datasets image

Hello respected author. I trained hmr2 on my own server. However, when I wanted to perform an evaluation, I found that I need the following data: "download the Human3.6M, 3DPW, LSP-Extended, COCO, and PoseTrack dataset images". Could you please provide the relevant download links? I would be extremely grateful.

You can download LSP Extended from here: http://datasets.d2.mpi-inf.mpg.de/hr-lspet/hr-lspet.zip
For PoseTrack, you can follow the instructions here: https://github.com/anDoer/PoseTrack21
For Human3.6M, the dataset website is here: http://vision.imar.ro/human3.6m/
For 3DPW, the dataset website is here: https://virtualhumans.mpi-inf.mpg.de/3DPW/
For COCO, the dataset website is here: https://cocodataset.org/

Hi authors. For Human3.6M, could you please show how to generate h36m/images folder which is indicated in the config file ? It seems the original Human3.6M dataset does not have such a folder. Thank you very much in advance.

authors: geopavlakos starashima xiaoyudanaa


text:
ADD: Joke Generator

All the rules are followed.


text:
Added version functionality

It now prints version numbers with "--version" and properly adds the "version" property.

Generally, looks good,  I have few requests before I merge

could you post the output of vncdo --version
could you also adjust https://github.com/sibson/vncdotool/blob/master/makefile#L18 so the release process continues to work
does this work for vnclog as well?

thanks

Here is the output of vncdo/vnclog:
MacBook-Pro:Dinero kevin$ vncdotool --version
vncdotool 0.11.2
MacBook-Pro:Dinero kevin$ vnclog --version
vnclog 0.11.2
MacBook-Pro:Dinero kevin$

Need to work on the makefile patch next.

I tried updating the makefile, but need a pointer... When I did "make release", I get errors. When I do "make version", works as expected.
MacBook-Pro:vncdotool kevin$ make version
python setup.py --version
0.11.2
MacBook-Pro:vncdotool kevin$ make release
nosetests tests/unit
make: nosetests: No such file or directory
make: *** [test] Error 1
MacBook-Pro:vncdotool kevin$

provided make version-2.0.1 properly updates init.py I think we will be in a good place.  'make release' requires you to have a python environment setup with the requirements-dev.txt

This is all 100% new to me. Thanks for being patient. Set up my development environment with the requirements-dev.txt file. I think the version part is working as expected. I still may not have twine setup properly.
MacBook-Pro:vncdotool kevin$ vi vncdotool/__init__.py
MacBook-Pro:vncdotool kevin$ make release
nosetests tests/unit
..................................................
----------------------------------------------------------------------
Ran 50 tests in 0.089s

OK
git tag -a v0.11.5 -m"release version 0.11.5"
git push --tags
Counting objects: 1, done.
Writing objects: 100% (1/1), 167 bytes | 167.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://github.com/gottsman/vncdotool.git
 * [new tag]         v0.11.5 -> v0.11.5
python setup.py sdist
running sdist
running egg_info
writing requirements to vncdotool.egg-info/requires.txt
writing vncdotool.egg-info/PKG-INFO
writing top-level names to vncdotool.egg-info/top_level.txt
writing dependency_links to vncdotool.egg-info/dependency_links.txt
writing entry points to vncdotool.egg-info/entry_points.txt
reading manifest file 'vncdotool.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'vncdotool.egg-info/SOURCES.txt'
running check
creating vncdotool-0.11.5
creating vncdotool-0.11.5/tests
creating vncdotool-0.11.5/tests/functional
creating vncdotool-0.11.5/tests/functional/data
creating vncdotool-0.11.5/tests/unit
creating vncdotool-0.11.5/vncdotool
creating vncdotool-0.11.5/vncdotool.egg-info
copying files to vncdotool-0.11.5...
copying LICENSE.txt -> vncdotool-0.11.5
copying MANIFEST.in -> vncdotool-0.11.5
copying README.rst -> vncdotool-0.11.5
copying TODO.txt -> vncdotool-0.11.5
copying requirements-2.6-dev.txt -> vncdotool-0.11.5
copying requirements-2.6.txt -> vncdotool-0.11.5
copying requirements-dev.txt -> vncdotool-0.11.5
copying requirements.txt -> vncdotool-0.11.5
copying setup.cfg -> vncdotool-0.11.5
copying setup.py -> vncdotool-0.11.5
copying tests/__init__.py -> vncdotool-0.11.5/tests
copying tests/functional/test_proxy.py -> vncdotool-0.11.5/tests/functional
copying tests/functional/test_screen.py -> vncdotool-0.11.5/tests/functional
copying tests/functional/test_send_events.py -> vncdotool-0.11.5/tests/functional
copying tests/functional/data/example.png -> vncdotool-0.11.5/tests/functional/data
copying tests/functional/data/example_nocursor.png -> vncdotool-0.11.5/tests/functional/data
copying tests/functional/data/simple.png -> vncdotool-0.11.5/tests/functional/data
copying tests/unit/__init__.py -> vncdotool-0.11.5/tests/unit
copying tests/unit/mock.py -> vncdotool-0.11.5/tests/unit
copying tests/unit/test_client.py -> vncdotool-0.11.5/tests/unit
copying tests/unit/test_command.py -> vncdotool-0.11.5/tests/unit
copying vncdotool/__init__.py -> vncdotool-0.11.5/vncdotool
copying vncdotool/api.py -> vncdotool-0.11.5/vncdotool
copying vncdotool/client.py -> vncdotool-0.11.5/vncdotool
copying vncdotool/command.py -> vncdotool-0.11.5/vncdotool
copying vncdotool/loggingproxy.py -> vncdotool-0.11.5/vncdotool
copying vncdotool/pyDes.py -> vncdotool-0.11.5/vncdotool
copying vncdotool/rfb.py -> vncdotool-0.11.5/vncdotool
copying vncdotool.egg-info/PKG-INFO -> vncdotool-0.11.5/vncdotool.egg-info
copying vncdotool.egg-info/SOURCES.txt -> vncdotool-0.11.5/vncdotool.egg-info
copying vncdotool.egg-info/dependency_links.txt -> vncdotool-0.11.5/vncdotool.egg-info
copying vncdotool.egg-info/entry_points.txt -> vncdotool-0.11.5/vncdotool.egg-info
copying vncdotool.egg-info/requires.txt -> vncdotool-0.11.5/vncdotool.egg-info
copying vncdotool.egg-info/top_level.txt -> vncdotool-0.11.5/vncdotool.egg-info
Writing vncdotool-0.11.5/setup.cfg
Creating tar archive
removing 'vncdotool-0.11.5' (and everything under it)
twine upload dist/vncdotool-0.11.5.*
Invalid command: upload
make: *** [upload] Error 1
MacBook-Pro:vncdotool kevin$

Thanks for sticking with it.  I didn't get the markdown formatting right for my last comment which made it confusing.  You won't be able to make release because you don't have write access to pypi.  What you need to test is the new version command works properly.  Something like the following should work.

make version-1.1.1
cat vncdotool/init.py
version = 1.1.1
make version
1.1.1

Corrected the makefile.... Looks like it works, but as you said, no pypi access.

thanks, ✨ 🍰 ✨

authors: gottsman sibson

repo: sibson/vncdotool


text:
Enable versions in saved objects

The saved objects have a "version" field which is not used. SInce the system is now versioned, this should be used.

Depends on #47

repo: sicklybeans/sjb-tools


text:
Return u/int8, u/int16, u/int32 (sign-extend Int24), float32, float64 for interface{} as appropriate

Related to Issue #26 the previously merged PR maintains the same return types always int64 for integral and float64 for floats.
This PR will return variable width and also the unsigned versions of types. This is somewhat of a breaking change, so consider if this seems better to you. It means that users will have to check for float32 as well as int8, uint8, ... int64, uint64 when interface{} is returned. The plus is that there's less chance of getting the wrong value. In particular for replication/row_event.go since there's no 'unsigned' meta info, signed is always returned. So an int32 for a value like 0x80000000 cast to uint32 will mean the right thing. Without this PR an int64 returned for a MYSQL 32-bit LONG with value 0x0000000080000000 will return 0xFFFFFFFF80000000 (with sign extension) and cast to uint64 will not be the intended value. Cast to uint32 is, but then user must remember to downcast width for unsigned.
Hope this is all clear. If very concerned with backward compatibility, perhaps a mode setting?

Thanks @karmakaze , but I think it is not necessary here.
As you said above, handling multi int types  is not easy, sometimes we should write
case n := v.(type) {
    case int8:
    case int16:
    case int32:
    ....
    case uin64:
}

It is a little redundant and not convenient than only using int64/uint64, maybe user will define its own ToInt64/Uint64 conversion function for outer use  to make thing simple. :-)
You may see that for go database/sql lib, it only uses int64.

I agree it's more convenient when it works. However it can lead to incorrect data when it doesn't. For the RowsEvent integral values are returned in interface{} as int64, say in v.
switch n := v.(type) {
    case int64:
        // for known unsigned value, cast to unsigned:
        u64 := uint64(v.(int64))
    // other cases are non-integral
}

Now if the original value was from a LONGLONG all is well. If it was from an unsigned LONG, say 0x80000000 the int64 will be 0xFFFFFFFF80000000 and the u64 will have a huge value, instead of 2147483648.
To handle this correctly the user code has to first have a type case for int64 then for each field name know what it's size is supposed to be when converting to unsigned. There's no automatic way of doing it, e.g.
func getUnsignedIntValue(v interface{}) uint64 {
    switch n := v.(type) {
    case int8:
        return uint64(uint8(v.(int8))
    case int16:
        return uint64(uint8(v.(int8))
    case int32:
        return uint64(uint8(v.(int8))
    case int64:
        return uint64(uint8(v.(int8))
    }
}

Such a function will continue to work without the user hardcoding field widths and even if a field in the db changes between unsigned int sizes. [The MySQL INT24 when unsigned requires masking out bits 25+ either way.]

Hi @karmakaze
I think the problem is that we only return int64 for integer type now, maybe we will change it to returning int64/uint64 directly.
But I don't know whether this change will affect outer use like my go-mysql-elasticsearch or others.

We don't know in advance whether to return int64 or uint64 in the case of RowsEvent--the column information doesn't include 'unsigned' meta info (in my testing).
Yes, this change can/will break some programs as behaviour is different (regardless of correctness of values).

Hi @karmakaze
I dive into python mysql replication and find that it selects the column information(including unsigned flag) from INFORMATION_SCHEMA.COLUMNS table using schema name and table name when meets table map event, and I think we can use this way too.
But this may have a risk, the table with same schema name and table name may be altered, so when we meet a table map event and use its schema name and table name to fetch the column information, the table may have been altered. So we must check the table id validation in INFORMATION_SCHEMA.INNODB_SYS_TABLES, if the table id exits, the table is not altered, if not, we can't use the columns information.
Btw, I still think using int64/uint64/float64 is enough.  :-)

SELECTing column meta info with table id protection sounds like a good idea.
I'm currently using a fork/branch with the int8...int64 return types, and otherwise stay in sync with upstream for now.

Merged

authors: karmakaze siddontang

repo: siddontang/go-mysql


text:
Switch to user-runtime config approach

Closes #9
This PR switches our auth-endpoint setup approach to one where the user does it at runtime. We then provide the helpers for it, but the user creates the module with config.
This has some advantages:

follows nextauth convention,
all imports are made by the user at runtime, so no more de-/serialization of options required

It has the disadvantage of forcing the user to do more work.
This PR is WIP and untested, but the implementation is very easy based on our existing work, so it should hopefully not be much more to make this work. Once it's done I would rip out all of the code that is only there to support the "old" approach, that should also simplify the module quite a bit.
Checklist:

[x] issue number linked above after pound (#)

replace "Closes " with "Contributes to" or other if this PR does not close the issue

[x] manually checked my feature / checking not applicable
[ ] wrote tests / testing not applicable
[ ] attached screenshots / screenshot not applicable

Status:

impl done
open:

[ ] update docs
[ ] check out useSession.ts credential related todos -> they may apply here now
[ ] fix tests

repo: sidebase/nuxt-auth


text:
chore: bump deps

Update talos deps to 1.8.0
Pull Request

What? (description)
Why? (reasoning)
Acceptance
Please use the following checklist:

[ ] you linked an issue (if applicable)
[ ] you included tests (if applicable)
[ ] you ran conformance (make conformance)
[x] you linted your code (make lint)
[x] you linted your code (make unit)

See make help for a description of the available targets.

/m


text:
Advancing PB4D connectivity management

PB4D 4.1.0 / Ubuntu 16.04:
PB for desktop is quite mature and usable. An even further improvement would be to make the connection status more tangible for the user, Skype-style.
IMHO, this implies adding a set of icons/icon decorations to represent the connectivity status of PB4D client at the tray icon. For example, when the client is disconnected, we can add a small "x" at the icon corner. When attempting reconnection (either manually or automatically), we can add a small "play" triangle at the corner. When connection is established, the tray icon should have no decorations at all. Alternatively, we can play with the colors: green background for operational, gray background for disconnected, yellow background for attempting reconnection . The icon changes can be accompanied by a mouse hover message.

The new offline icon is in v5.0.0. Please test.

Installed. Basic regression tests - startup, connection - PASS.
However, I pressed on "disconnect", clicked "Yes" and the icon remained the same (green).
Either disconnect is not working or the offline icon is not properly configured.
Thank you for your the effort!

It turns out that after disconnect, reconnect requires full login - username + password. Would it be possible to save those credentials, so that reconnecting is the same as a fresh start of the app?

Forgot the important stuff, per my previous comment - disconnect is WORKING. So it's a matter of improperly configured status icon, that needs to show "offline".

@erezhdd
Cannot reproduce the reconnect requires full login issue. Reconnect merely restarts the application, leaving everything untouched. Only 'Log out' resets configuration and cache and therefore requires a new login.

@erezhdd Does this issue still occur? Will close otherwise.

Will verify tomorrow

@erezhdd Closing this until further input.

authors: erezhdd sidneys

repo: sidneys/pb-for-desktop


text:
The CLI help for swirl.py isn't working correctly (MacOS)

Doing either of the following in the swirl-directory results in the same output to the terminal window.
./swirl.py -h
./swirl.py -help
Output to the Terminal window:

@erikspears Excellent catch. The workaround is:
python swirl.py help

-h is not supported for py, see workaround above

authors: erikspears sidprobstein

repo: sidprobstein/swirl-search


text:
IOT2050 WITH NODE RED VERSION 3 AND NODE JS VERSION - PROBLEM WITH READING GPIO PINS

Hello ,
I have IOT2050 FS:05 WITH NODE RED VERSION 3 AND NODE JS VERSION 20.7 .
WORKS FINE BUT WHEN I AM TRYING TO READ GPIO PINOUT USING NODE RED INTEL GPIO NODE.
I HAVE A A LOTS OF PROBLEMS ;

I CANT INSTALL IT.
THE NODE ONLY SUPPORT NODE JS VERSION 12. WHEN NODE RED 3 NEED MINIMUM 16.X VERSION OF NODE JS....

IF I CANT READ THE PINS I CANT WRITE ANY PROGRAM UNLESS I AM USING SIEMENS PLC. ( WORKED FINE) .
ANY CLUE ??
THANKS

Compile the image from the master branch (or use the output of a recent CI run), and you will get Debian 12 with NodeJS 18 with a working GPIO node.
Installing your own NodeJS version into a custom image implies that you have to take care of recompiling mraa, the foundation of node-red-node-intel-gpio, for that NodeJS yourself. Possible but not a beginner's task.

Hey again,
I want to compile the image but as I understood there is still a problem with the ethernet cards that they are not recognized by the Debian system? was it fixed?
thanks,
aviran
Dec 12 13:24:01 iot2050-debian kernel : OF /bus@100000/pcie@5600000: phandle pcie-mode@4070 needs 1, found 0
Dec 12 13:24:01 iot2050-debian kernel : OF /bus@100000/pcie@5600000: phandle pcie-mode@4070 needs 1, found 0
Dec 12 13:24:01 iot2050-debian kernel : keystone-pcie 5600000.pcie: Phy link never came up

Ethernet on PG1 needs some patches here, PG2, M.2 etc are fine already. For PG1, we are waiting for more feedback on https://lore.kernel.org/netdev/20231219174548.3481-1-diogo.ivo@siemens.com/.

authors: aviranp jan-kiszka


text:
modularizing outputs and adding some default values

Suggest we include a default region (ex: us-west-1) as sometimes Terraform might not recognize a default VPC in some regions. Alternatively, can create a VPC as part of main.tf.

@a-staebler @p-hagen Could you review this PR please? Many thanks!

@hagen-p @a-staebler Hi Gents, can this PR be closed?

Closing as we are currently reworking deployment, will look at  the suggestions while we do the rework

authors: bblinder hagen-p rcastley

repo: signalfx/observability-workshop


text:
Redefinition error of sqlite with existing libraries in iOS

Hi,
Encountering this issue with existing WCDB library when integrating splunk in iOS. Is it possible for splunk to only contain sqlite within the package to avoid redefinition error when integrating it to apps with third party libraries already using sqlite?

Hello @celinahiyasjavier,
I was wondering if you had a little bit more details on your exact issue and how you are setup? I am guessing that WCDB is being added through CocoaPods? Some users have solved this issue in the past by removing the use_frameworks! line (if present and adding use_modular_headers! instead.

@jnino-splunk Thank you for this. Current workaround we made was renaming conflicting symbols in WCDB.

authors: celinahiyasjavier jnino-splunk

repo: signalfx/splunk-otel-ios


text:
🛑 LM-A is down

In 934aaef, LM-A (https://lm-a.ch/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: LM-A is back up in 2235bf8 after 10 minutes.

repo: signalwerk/uptime


text:
WIP: Rename layout/positions public methods

This branch points to fr/layout-feat to make code review easier.

[ ] Rename event payloads from "position/s" to "role/s"
[x] Rename method args from "role/s" to "position/s" before execute (Added transformParams)

Closing since we decided to not follow this path anymore.

repo: signalwire/signalwire-js


text:
CSVParse() step issue?

Should we expect the step function in the CSVParse() options to pass the result down the chain?
const { StringStream } = require('scramjet');
const fs = require('fs');
const args = process.argv.slice(2);

// seq.csv
//
// line
// 002
// 003
// 004
// 005

const opts = {
  header: true,
  delimiter: ','
}

if(args[0]==='step') {
  opts['step'] = (results, parser) => { return results };
}

if(args[0]==='step-worker') {
  opts['step'] = (results, parser) => { return results };
  opts['worker'] = true;
}

console.log('Running with opts: ', opts);

StringStream
  .from(fs.createReadStream('./seq.csv') )
  .CSVParse(opts)
  .map( async (l) => {
    return await l;
   })
  .each( (l) => {
    console.log(l);
  })

node main - as expected
node main step - nada
node main step-worker - nada
Repo: https://github.com/kenzik/scramjet-csvparse-step
Goal is to dynamically inject a field in each row in the CSV to use later in the map function.

Checked doing the same with only papaparse and had same issue. May not be supported. Not a scramjet issue.

Checked doing the same with only papaparse and had same issue. May not be supported. Not a scramjet issue.

repo: signicode/scramjet


text:
Create helper for fulcio config yaml

Description of the change
I noticed that this condition was not working properly when I was bumping the fulcio version in scaffold.
Then I managed to move the logic of create the config with yaml format into the helper and setting the indent correctly.

Existing or Associated Issue(s)

Additional Information

Checklist

[x] Chart version bumped in Chart.yaml according to semver. Where applicable, update and bump the versions in any associated umbrella chart
[x] Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
[x] JSON Schema generated.
[x] List tests pass for Chart using the Chart Testing tool and the ct lint command.

Just wondering, what was the error you were getting with the previous code?

I've got this one:
        * ConfigMap in version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal object into Go struct field ConfigMap.data of type string```

To confirm, this was tested locally with json and yaml configs and was working?

I tested for the default value, that is json. I'm doing a double check here.

To confirm, this was tested locally with json and yaml configs and was working?

I tested for the default value, that is json. I'm doing a double check here.

Tested! We're good

To confirm, this was tested locally with json and yaml configs and was working?

I tested for the default value, that is json. I'm doing a double check here.

It is 100% tested now, working properly for json and yaml

repo: sigstore/helm-charts


text:
support keyless signing and verification from github action

Signed-off-by: hirokuni-kitahara hirokuni.kitahara1@ibm.com

This PR adds support for keyless signing & verification that are done by GitHub action.

When the signing is done from a github action, the subject in the certificate will be empty. Instead, it saves the signer info (eg. a URL to the PR which triggered the action) in X509v3 Subject Alternative Name as an extension. So this PR makes it possible to read the signer info from there if no other names were found.

Example of the signer info: "https://github.com/sigstore/k8s-manifest-sigstore/.github/workflows/github_oidc.yaml@refs/pull/106/merge"

Add a github action which test keyless signing and verification.

Related issue: https://github.com/sigstore/k8s-manifest-sigstore/issues/105

I found out that using OIDC in a github action requires write permission in the repository settings, but it is disabled now.
I will close this PR for now and soon submit the new one without github action test.


text:
fix verification scripts to point to repository/

Signed-off-by: Asra Ali asraa@google.com

Summary

Allows you to verify repository/ rather than a repostiory formatted as ceremony/$(date)

Ticket Link

Fixes
Release Note

YES! great point. this is a good default for verification.

repo: sigstore/root-signing


text:
Add fuzzer for FulcioClient

Summary

Add fuzzer for FulcioClient class
Release Note

Documentation

This PR should be rebased after https://github.com/sigstore/sigstore-java/pull/439 has been merged before merging in.

@AdamKorcz

closing for now, we can increase fuzzing coverage at another time. These have been open for too long.

authors: arthurscchan loosebazooka

repo: sigstore/sigstore-java


text:
Use PUT when the agent deregisters a service

According to Consul's documentation, when deregestering a service, a PUT request should be used while in the code GET is used. This commit fixes that.

Caused the build to fail as I changed the wrong test. Will fix.

repo: silas/node-consul


text:
Neither the property "redirect" in @WebProfiler/Profiler/layout.html.twig

Hi,
I just update to Silex 2.0 and i have a bug with the WebProfiler.
I can access to my web page but the profiler wont load and throw this error:

Twig_Error_Runtime in Template.php line 590:
Neither the property "redirect" nor one of the methods "redirect()", "getredirect()"/"isredirect()" or "__call()" exist and have public access in class "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector" in "@WebProfiler/Profiler/layout.html.twig" at line 23

Here is my composer.json
{
    "name": "",
    "description": "A pre-configured skeleton for the Silex microframework with Grunt tasks added",
    "license": "Copyright",
    "type": "project",
    "require": {
        "php": ">=5.6",
        "silex/silex": "~2.0",
        "silex/web-profiler": "^2.0",
        "symfony/class-loader": "^2.8",
        "symfony/config": "^3.0",
        "symfony/console": "~2.8",
        "symfony/debug": "~2.8",
        "symfony/finder": "~2.8",
        "symfony/form": "~2.8",
        "symfony/monolog-bridge": "~2.8",
        "symfony/process": "~2.8",
        "symfony/security": "~2.8",
        "symfony/translation": "~2.8",
        "symfony/twig-bridge": "~2.8",
        "symfony/validator": "~2.8",
        "symfony/http-kernel": "^2.8",
        "twig/extensions": "^1.3",
        "doctrine/dbal": "~2.2",
        "pimple/pimple": "~3.0",
        "dflydev/doctrine-orm-service-provider": "~2.0",
        "symfony/serializer": "^3.0",
        "swiftmailer/swiftmailer": "^5.4",
        "gedmo/doctrine-extensions": "v2.4.13",
        "symfony/yaml": "^2.8",
        "symfony/routing": "^2.8",
        "jms/serializer": "^1.1",
        "cnam/security-jwt-service-provider": "dev-master",
	"m1/vars": "dev-silex-v2"
    },
    "autoload": {
        "psr-0": {
			"": "src/"
		}
    }
}

Do you have any idea ?

For information if i use Symfony 3.0 it's work ...

I think you should try to upgrade the symfony/http-kernel to 3.1 accordingly to the WebProfilerBundle (which may cause a conflict here), maybe by using symfony/http-kernel: ~3.0 in your composer.json.

I've opened https://github.com/symfony/symfony/pull/19159.

make sure all of your symfony packages are on ~2.8, check your composer.lock and see if any packages have downloaded as v3+.
I had the same issue, and it turns out symfony/web-profiler-bundle was 3.1.1 and symfony/dependency-injection was also 3.1.10

authors: HeahDude k20human rwitchell

repo: silexphp/Silex-WebProfiler


text:
remember me

I am confused with remember me, when the cookie is set, then what to do when user is coming back in order to authenticate them? How to validate the cookie value or what should I do? _username and _password is a condition that remember me recognizes them to automatically allow user?

the firewall will automatically know this, you shouldn't have to do anything except configure the firewall to accept the remember me token

Thanks. Any idea about this? https://github.com/symfony/symfony/issues/24797

I did read https://silex.symfony.com/doc/2.0/providers/remember_me.html
and here is my code. I expected a cookie will be set, but I see no REMEMBERME cookie in developper tool. What wrong I did?
$app = new Silex\Application();
$app->register(new Silex\Provider\SecurityServiceProvider());
$app->register(new Silex\Provider\RememberMeServiceProvider());
$app['security.firewalls'] = array(
'my-firewall' => array(
'pattern'     => '^/secure$',
'remember_me' => array(
'key'                => 'Choose_A_Unique_Random_Key',
'always_remember_me' => true,
/* Other options */
),
),
);

Closing as support should be done on StackOverflow instead.

authors: eman1986 fabpot nimasdj

repo: silexphp/Silex


text:
[BUG] Silicoin blockchain is not syncing.

Running 1.2.0 version on windows on 3 computers. It at least once a week is getting stuck on syncing. Nothing helps to get it continuing syncing, the only way I can do it is to delete mainnet folder and get it syncing all the way from the beginning. Very frustrating.

You can use the latest db snapshot to restore.

Hi, thank you, can you please elaborate. I do not understand what you have wrote.
Thank you
Sent from iPhone

On Jan 15, 2022, at 3:00 AM, Albert Coady @.***> wrote:

You can use the latest db snapshot to restore.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.

You can join our discord, there is a channel for db

authors: albertcoady gdiloyan

repo: silicoin-network/silicoin-blockchain


text:
Update convertConfig

From TODO.md; Needs more details
Handle:

Background images?
Layouts?
Styles?

Layouts are done by #291

Background images are done by #301
I believe styles are done too.

repo: sillsdev/appbuilder-pwa


text:
deployment failure

Hi,
I've been following the guide on README.md.
I have a basic deployment that fails with this error: "The following resource(s) failed to create: [IamRoleLambdaExecution, WebsiteBucket].".
Here is the serverless.yml:
service: oak

# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"

provider:
  name: aws
  runtime: nodejs12.x
  profile: treelet
  region: us-east-1
  stage: ${opt:stage, 'offline'}
  memorySize: 128
  timeout: 3

custom:
  webpack:
    webpackConfig: ./webpack.config.js
    includeModules: true
    packager: 'yarn'   # Packager that will be used to package your external modules

  stages:
    - offline
    - production

  objectPrefix: ${self:service}-${self:provider.stage}

plugins:
  - serverless-webpack
  - '@silvermine/serverless-plugin-cloudfront-lambda-edge'

package:
  exclude:
      - 'node_modules/**'

functions:

  originBroker:
    name: '${self:custom.objectPrefix}-origin-request'
    handler: src/origin_broker.handler
    memorySize: 128
    timeout: 1
    lambdaAtEdge:
      distribution: 'WebsiteDistribution'
      eventType: 'origin-request'

resources:
  Resources:
    WebsiteBucket:
       Type: 'AWS::S3::Bucket'
       Properties:
          BucketName: '${self:custom.objectPrefix}'
          AccessControl: 'PublicRead'
          WebsiteConfiguration:
             IndexDocument: 'index.html'
             ErrorDocument: 'error.html'

    ## Specifying the policies to make sure all files inside the Bucket are avaialble to CloudFront
    WebsiteDistribution:
      Type: 'AWS::CloudFront::Distribution'
      Properties:
         DistributionConfig:
            DefaultCacheBehavior:
               TargetOriginId: 'WebsiteBucketOrigin'
               ViewerProtocolPolicy: 'redirect-to-https'
               DefaultTTL: 600 # ten minutes
               MaxTTL: 600 # ten minutes
               Compress: true
               ForwardedValues:
                  QueryString: false
                  Cookies:
                     Forward: 'none'
            DefaultRootObject: 'index.html'
            Enabled: true
            PriceClass: 'PriceClass_100'
            HttpVersion: 'http2'
            ViewerCertificate:
               CloudFrontDefaultCertificate: true
            Origins:
               -
                  Id: 'WebsiteBucketOrigin'
                  DomainName: { 'Fn::GetAtt': [ 'WebsiteBucket', 'DomainName' ] }
                  S3OriginConfig: {}

dependencies:
"aws-sdk": "^2.751.0"
"serverless": "^1.82.0",
"@silvermine/serverless-plugin-cloudfront-lambda-edge":"^2.1.1",

The IAM user for the .aws/credentials has an 'AdministratorAccess' policy.

Anything I am missing?

In case anyone hits the same issue, the fix was to give the bucket a different name:
BucketName: '${self:custom.objectPrefix}-website-bucket'
perhaps ${self:custom.objectPrefix} alone was conflicting with the Stack name.


text:
Not working with latest versions?

I try to enable chromecast plugin but seems like it does not work or I am missing something. Here is JSFiddle
It does not work if I load plugin through player options neither if I load it dynamically. But player's activePlugins_ property shows like plugin is successfully registered.

Need to follow the instructions more closely.

You're missing the cast framework:

You didn't define the techOrder:
techOrder: ['chromecast', 'html5']

Also it won't work in jsfiddle's sandbox:

I added missing script and defined the techOrder as suggested but I still can't make it work - JSFiddle - I tried this JSFiddle example on real server without success.

copied your fiddle and it works fine on my end. only issue I'm seeing is that after casting, I need to hit play again to start playback on the chromecast.

authors: izupet ziddey

repo: silvermine/videojs-chromecast


text:
Add an easier way to disable select BuildTasks

Issue
For safety reasons, I would like to have an option to disable select BuildTasks. Currently you have to build an injector to do it. Which IMO isn't optimal.
There is ofc, the DevConfirmationController which stops you from just mis-clicking a task that you don't want to run. But I would rather not even have them show up at all.
Suggestions
Through config
Add a way to configure the tasks via a config file. And change the isEnabled method.
Example:
---
Name: DevTasks
---
MyNameSpace\Dev\MyTask:
    enabled: false

   /**
     * @return bool
     */
    public function isEnabled()
    {
        return $this->config()->get('enabled');
    }

Are there any Security concerns that I am overseeing? Or can this just be implemented like suggested? Please let me know, I'll create a PR if this seems good 👍

We would probably need to keep the protected $enabled as changing that could be breaking someone's tasks that extend from the core tasks. So it would be a BC breakage and should be done in a major version, unless we find a way how to make it as an enhancement and then it could go into the next minor.

Yes it should be configurable, we can do this in a non-bc way.
abstract class BuildTask
{
    // change this to `bool` for CMS6
    private static ?bool $is_enabled = null;

    // @deprecated - remove in CM6
    protected $enabled = true;

    public function isEnabled(): bool
    {
        $isEnabled = $this->config()->get('enabled');
        if ($isEnabled === null) {
            Deprecation::warning('Null values not allowed in CMS6 ...');
            $isEnabled = static::$enabled;
        }
        return $isEnabled;
    }

Created the PR: https://github.com/silverstripe/silverstripe-framework/pull/10801
Thanks for the suggestions!

PRs merged. This feature will be available from 5.1.0

authors: GuySartorelli emteknetnz kevingroeger michalkleiner

repo: silverstripe/silverstripe-framework


text:
API Move CMSPreviewable to admin module

This isn't used for anything without silverstripe/admin installed, so it doesn't belong in framework.
See also https://github.com/silverstripe/silverstripe-admin/pull/1340
Parent issue

https://github.com/silverstripe/silverstripe-admin/issues/1339

Some time ago I wanted to have a preview similar to the one the Pages have.
My thoughts were: imagine a class is CMSPreviewable, and this makes the CMSEditForm automatically turn into a split-screen similar to the Pages editor...
However, that was not the case, but could be handy sometimes - when the edited DataObject can be represented as HTML.

Some time ago I wanted to have a preview similar to the one the Pages have.
My thoughts were: imagine a class is CMSPreviewable, and this makes the CMSEditForm automatically turn into a split-screen similar to the Pages editor...
However, that was not the case, but could be handy sometimes - when the edited DataObject can be represented as HTML.

That's something that can be done easily as-of 4.11.0: https://docs.silverstripe.org/en/4/changelogs/4.11.0/#cms-preview
The caveat that this PR (along with the other PRs linked in the associated issue) resolve is that you need silverstripe/cms installed to use it - which most projects will anyway.

Thank you for the pointer!
I agree on the subject, though.

I've changed my mind about moving CMSPreviewable - it makes more sense to leave where it is. That way modules can include models that are previewable if silverstripe/admin is installed on the project, but they don't necessarily have to have admin as a dependency for that model to be useful.

authors: GuySartorelli gurucomkz kourawealthtech


text:
NEW: Allow for user-created objects to have values passed in the constructor

This change extends isSingleton into a tri-state creationType, which
recognises a new option, CREATE_HYDRATED. This is used to create records
from database content, which bypasses both setters and defaults.
Which that in place, the default, non-hydrated call will use setters
via DataObject::update(), and is therefore allowable for user-code
instantiating new objects.
Some quirks of existing behaviour are retained, notably that for new
objects data created by populateDefaults() will register as a change in
$this->original vs $this->record, but not $this->changed.
Parent issue

#6460

To do

[x] Remove stray var_dump
[x] Fix type-hint on creationType: boolean|int
[x] Add another test case for all 3 creation modes

Some quirks of existing behaviour are retained, notably that for new
objects data created by populateDefaults() will register as a change in
$this->original vs $this->record, but not $this->changed.

I might actually revisit this — it looks like both original and changed should reflect the content currently in the database, which in the case of new records should have none of the content derived from populateDefaults(). However, I'll get the tests passing without touching this before diving into that, and I'll see if there are tests that rely on this quirky behaviour, and if so, why...

Damian gave some feedback here that I don't really think should be incorporated into this PR. I feel it pushes towards more like "possible bigger refactor in SS5", when here I have an SS4-appropriate fix.
There's one suggestion I had for partially addressing his concern:

So, if we wanted to reduce the use of the conditional here, we could potentially deprecate createDataObject() in favour of hydrateDataObject() and createNewDataObject(). I'd probably still leave this code as-is, but at least the messiness would be contain in a deprecated API.

Should I do this? If I do that, shall we merge it?
Cc @dhensby @chillu @kinglozzer @tractorcow for good measure.

Cool I’ll address feedback on hackday.

Ok I've squashed the 3 agreed bits of feedback into the

Remove stray var_dump
Fix type-hint on creationType: boolean|int
Add another test case for all 3 creation modes

Should be good to merge now?

OK got a few weird failures here I think when I rebased... a couple of fixes dropping in now.

A side-effect of this change is that NULL column values are now included in toMap(), whereas previously they were excluded. This is because the code previously had an "if  !== null" check when populating $this->record.
I can't tell where this is a bugfix or a breaking change, although it has caused some issues with calculated field comparison when assertListEquals is passed the result of toMap() for a DataObject with calculated fields.
In particular:

MigrateSiteTreeLinkingTaskTest passes the result of toMap to assertListEquals, to test SiteTree records.
MenuTitle shows up as NULL in the toMap() result, but on the object a getMenuTitle() method returns the value of Title.
This means the record doesn't match and the test fails.

So, what's our conclusion? Should toMap() exclude NULL fields (the current behaviour on 4) or should MigrateSiteTreeLinkingTaskTest not rely so much on toMap() results (it's a bit of a nasty coding pattern at the mo)
@silverstripe/core-team is the restoration of NULL values to toMap() results a bugfix or an API change?

The CMS PR https://github.com/silverstripe/silverstripe-cms/pull/2441 will fix the failing test on this, but it would be good to confirm whether what I've fixed is, in fact, an API change before merging this.

What was the behaviour in SilverStripe 3? I think having null values present would be making the API honest about its intention, but I also recognise that it might break someone's code somewhere

So, what's our conclusion? Should toMap() exclude NULL fields (the current behaviour on 4) or should MigrateSiteTreeLinkingTaskTest not rely so much on toMap() results (it's a bit of a nasty coding pattern at the mo)

I've looked at 3. The behaviour of 4 matches 3, so there's no regression there. This is just one of those tightening up activities that is likely easier to achieve because of the type-integrity work I added in 4.4.

Would it be silly to suggest we change it but also provide a configuration option to revert back if people find it breaks something?

Would it be silly to suggest we change it but also provide a configuration option to revert back if people find it breaks something?

I don't think this will help much. I think the hard thing will be identifying that this is what's happening; once it's identified it's pretty easy to fix. And config flags for such deep behaviour is likely to make the system less reliable overall.
If we do change it, we should list it in the upgrade notes though.
I might break this out to a separate bug card.

If this breaks someone's code, the proper fix would probably be to add a null check in their loop, not tweak some random configuration flag that they will never have heard off
If it's actually breaking our own existing test, it sounds like a sensible expectation that this will be breaking someone's code somewhere. So I would err on the side of not returning nulls.

In my view it broke a test that abused assertListEquals by pushing the result of toMap into it, and https://github.com/silverstripe/silverstripe-cms/pull/2441/files shows what was the right way to do it. But, yeah, a bit of a value-judgement there.

Broke out a separate bug card here #9021

Context for the test that broke:

The specific issue came with a field whose database value is a null but whose calculated value isn't. This happened in the case of MenuTitle, which defaults to return the value of Title if the database MenuTitle is null. assertListEquals was being passed the result of a toMap() in one badly written test, and because the null MenuTitle wasn't included in toMap(), it side-stepped this issue. So fixing this bug broke a test, but it was a very brittle situation to begin with.

Following up form my comment on #9021, I'm going to amend this PR to do the following:

Fix toMap() so that it doesn't return NULL values
Update the docblock of toMap() so that it says "neither NULL values nor results of custom getters will be included"
Add a test to highlight this odd behaviour.

@sminnee Do you have time to work on those amendments, or shall we close this out for the time being?

Thanks for the nudge @Cheddam I've addressed the final work on this now

okay this is ready for another review thanks

authors: Cheddam maxime-rainville robbieaverill sminnee


text:
Update copyright file for colormaps

closes #838

LGTM

repo: silx-kit/silx


text:
Some Flashback in Harmonyos device

i meet some flashback in Harmonyos device,if i use normal text ,it worked,but when i use autosizetext it beaked. but it work in other device like Redmi,
it is my flutter doctor:
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.1 23B81 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.1)
[✓] VS Code (version 1.84.1)
[✓] Connected device (4 available)
[✓] Network resources

and it worked in constant like AutoSizeText("123"), when the text is not sure ,it will flashback


text:
Return all validation errors at once

Right now, when somebody tries to change their password to one that doesn't meet all required standards they will see only error message for the first violation. As it is simply bad User Experience we should return all violations at once.
We should:

[x] Split validators into separate files
[x] Prepare factory to create objects of needed validators
[x] Loop through registerd validators and combine all error messages

Done in a325f38

repo: simivar/matomo-password-policy-enforcer


text:
[Feature request] "Use Suggestions" on Entire personal Library

Google has been improving quite a bit the "Use Suggestions" Feature when Editing the Album Information.
So that means, that a lot of the Music uploaded since the "beginning of time" doesn't have the better information associated with album (names, year, genre, album cover image quality, etc).
I was thinking about some way to automate the process, that can be dreadful if you try to update by hand all the albums you have.
First was thinking of some kind of javascript extension plug-in.
But did some googling and yours API popped right way (congrats btw, looks very good).
To conclude, do you think it would be easy to implement this kind of functionality (Use Suggestions for entire library, or artist or genre or etc)? It would probably fit in Webclient Interface.
Additionally any guidelines of where I could start to try to implement the functionality on the API would be most welcomed :)

I haven't really looked into this, but I suspect "use suggestions" just means copying metadata from their store database when they were able to match it. That'd be pretty straightforward, but #224 blocks it.

Ouh too bad, when updating the metadata i could even use a better source than the store.
Is it remotely possible to workaround #224? Any tips of where to start to try and fix it?

#229 mostly worked at one point; the only blocker was the webclient/mobileclient mismatch on metadata keys. If that endpoint is still around you could do that conversion yourself and it should work.

I was looking at the code for change_song_metadata, and see that BatchMutateTracks and think that the endpoint is https://mclients.googleapis.com/sj/v1.10/trackbatch, where can I find the specification online? Googling got me nothing.

There is no specification. The Google Music API is not really a public one. Endpoints are mainly found through traffic monitoring and then reverse engineered. Fiddler is a common tool for finding calls and responses.

Any news on this feature?
Is change_song_metadata working again and is there a call to get the suggestions for a given song?

Any news on this feature?

Not that I know of. Following this issue is the best way to get updates.

that would be awesome feature !

Yes, this would be a very cool feature :)

Any update on implementing the updating of metadata with "Use suggested"

No updates; sorry.

pls

As far as I know, the mobileclient still doesn't allow changing metadata. There's not a great way to implement this without that.

seems like you can change the song metadata. idk about using suggetions yet.
https://unofficial-google-music-api.readthedocs.io/en/latest/reference/mobileclient.html#gmusicapi.clients.Mobileclient.change_song_metadata

Sorry, the docs for that note that it doesn't work on any fields but rating:

Currently, only the rating key can be changed. Set it to '0' (no thumb), '1' (down thumb), or '5' (up thumb).

This is unlikely to be something we can do unless Google makes changes on their end.

also wishing for this feature...
any news here?

Yes, please!

I vote for this too. Not looking likely now though :-(

authors: Charlie37 Lapayo RASMiranda Scott-G bfaure chincherpa cyberval freeslugs hcwjcasey rrhobbs simon-weber thebigmunch

repo: simon-weber/gmusicapi


text:
🛑 Snow Boards NZ is down

In 34cba53, Snow Boards NZ (https://$SZ_SITE1/) was down:

HTTP code: 503
Response time: 1022 ms

Resolved: Snow Boards NZ is back up in 6503f85.


text:
Always insert text when calling insertText(_:) programmatically

I came across another subtle difference in behaviour when switching to Runestone: When the TextView is not the first responder, programatically calling insertText with some text didn't do anything, while my previous implementation that used UITextView did append the text.
This PR changes the behaviour of TextView.insertText(_:) to also append the text at the end. I kept the behaviour of TextInputView.insertText(_:) the same (i.e., it will not insert the text if there's no marked or selected range) in case that this was on purpose.

@simonbs I've resolved the merge conflicts.

@nighthawk Thanks! WWDC week has been busy so I haven't had much time to look into this unfortunately. I've made a note to look into it during the weekend.

@nighthawk I've tested this and it works perfectly! I think we should be able to remove the alwaysInsert parameter though. I have the changes ready that removes the alwaysInsert parameter and would like to contribute them to the PR. Any chance you can enable "Allow edits from maintainers" in the PR?

@simonbs I'd like to, but I can't find that option. It might be that it's not available for forks from organisations rather than private accounts...
Do you have a patch file? Then I can apply that as a new commit.

@nighthawk That could be. This patch file should do the trick.
From e03e7a3c0ddfa6971f55682f65a4f0746eae0a85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20St=C3=B8vring?= <mail@simonbs.dk>
Date: Sun, 12 Jun 2022 11:52:33 +0200
Subject: [PATCH] Removes alwaysInsert

---
 .../TextView/TextInput/TextInputView.swift       | 16 +++-------------
 Sources/Runestone/TextView/TextView.swift        |  2 +-
 2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/Sources/Runestone/TextView/TextInput/TextInputView.swift b/Sources/Runestone/TextView/TextInput/TextInputView.swift
index a7ef8f2..a85da88 100644
--- a/Sources/Runestone/TextView/TextInput/TextInputView.swift
+++ b/Sources/Runestone/TextView/TextInput/TextInputView.swift
@@ -918,20 +918,10 @@ extension TextInputView {
 // MARK: - Editing
 extension TextInputView {
     func insertText(_ text: String) {
-        insertText(text, alwaysInsert: false)
-    }
-
-    /// - Parameters:
-    ///   - text: Text to insert
-    ///   - alwaysInsert: Set to `true` to ensure that the text is always inserted, even if no
-    ///       caret is present, i.e., even if TextInputView is not the first responder.
-    func insertText(_ text: String, alwaysInsert: Bool) {
         let preparedText = prepareTextForInsertion(text)
-        var selectedRange = markedRange ?? selectedRange
-        if selectedRange == nil, alwaysInsert {
-            selectedRange = NSRange(location: stringView.string.length, length: 0)
-        }
-        guard let selectedRange = selectedRange, shouldChangeText(in: selectedRange, replacementText: preparedText) else {
+        // If there is no marked range or selected range then we fallback to appending text to the end of our string.
+        let selectedRange = markedRange ?? selectedRange ?? NSRange(location: stringView.string.length, length: 0)
+        guard shouldChangeText(in: selectedRange, replacementText: preparedText) else {
             return
         }
         // If we're inserting text then we can't have a marked range. However, UITextInput doesn't always clear the marked range
diff --git a/Sources/Runestone/TextView/TextView.swift b/Sources/Runestone/TextView/TextView.swift
index e99fbfc..c747655 100644
--- a/Sources/Runestone/TextView/TextView.swift
+++ b/Sources/Runestone/TextView/TextView.swift
@@ -718,7 +718,7 @@ public final class TextView: UIScrollView {
     /// Inserts text at the location of the caret or, if no selection or caret is present, at the end of the text.
     /// - Parameter text: A string to insert.
     public func insertText(_ text: String) {
-        textInputView.insertText(text, alwaysInsert: true)
+        textInputView.insertText(text)
         // Called in TextView since we only want to force the text selection view to update when editing text programmatically.
         textInputView.sendSelectionChangedToTextSelectionView()
     }
--
2.31.1

Great, looks good to me. I've applied your commit.

authors: nighthawk simonbs

repo: simonbs/Runestone


text:
Registration

@JuliaRegistrator register branch=main

Registration pull request created: JuliaRegistries/General/63375
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" a6e69b87d05c03284bf49a47bacedd8789e0f5c8
git push origin v0.1.0

@JuliaRegistrator register branch=main

Registration pull request created: JuliaRegistries/General/63427
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" f474f232acc21200beb6602f4c9aec5a856eff5f
git push origin v0.2.0

Also, note the warning: This looks like a new registration that registers version 0.2.0.
Ideally, you should register an initial release with 0.0.1, 0.1.0 or 1.0.0 version numbers
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Registration pull request updated: JuliaRegistries/General/63427
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" 51971fd6e508850a8bc5c3f54020dfcadf71b369
git push origin v0.2.0

@JuliaRegistrator register branch=main

Registration pull request updated: JuliaRegistries/General/63427
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" 51971fd6e508850a8bc5c3f54020dfcadf71b369
git push origin v0.2.0

@JuliaRegistrator register branch=main

Registration pull request updated: JuliaRegistries/General/63427
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" 51971fd6e508850a8bc5c3f54020dfcadf71b369
git push origin v0.2.0

@JuliaRegistrator register branch=main

Registration pull request created: JuliaRegistries/General/63584
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.1 -m "<description of version>" b2db9567f7b74ccd8fb92561e3f1fbbc3b370593
git push origin v0.2.1

@JuliaRegistrator register branch=main

Registration pull request created: JuliaRegistries/General/66811
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.2 -m "<description of version>" 5b318de65c09308c57091100350f5368b20bf3f0
git push origin v0.2.2

@JuliaRegistrator register branch=main

Registration pull request created: JuliaRegistries/General/75481
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.3 -m "<description of version>" 83ffafbce78cafca9d12b364c4d1f07a5f700eb7
git push origin v0.2.3