text:
docs:  Bottom swap example does not work on my machine / browser.

On which page do you see this issue?
https://daisyui.com/components/swap/
Describe the issue
The bottom example of swap (2 emoji's) does nothing on my browser.
I use firefox and dark reader, I disable dark reader (which I sometimes have to do in order to see daisyui elements). However, with this particular example, after disabling / reloading page nothing happens in this example's swap. I then tried this example in chromium as well, still does not work.
What browsers are you seeing the problem on?
Firefox, Other

@luckynumberke7in  It will not do anything unless you add or remove swap-active class from the two icon labels respectively. The mentioned example is to swap icon on the basis of activating using the class name and not the checkbox.
You can compare the last two examples by their code.

repo: saadeghi/daisyui


text:
Make evaluation subclass for twitter_sent

The twitter_sent dataset needs evaluation subclass(es).

Added in https://github.com/saattrupdan/ScandEval/commit/af4ad8e343684b0f71356331587d0876fe4f0760.

source: gharchive/issue

repo: saattrupdan/ScandEval

license: MIT

license_type: permissive

license_source: github-api


text:
IntelliJ code completion for logicalDelete named parameter in delete()

Currently the IntelliJ GDSL doesn't add auto-complete for the logicalDelete named parameter in the delete method. Theoretically it's possible to describe named parameters with GDSL, however the GDSL definition doesn't take precedence over the existing one. There's a open ticket describing this limitation in GDSL.
A possible workaround is to define another signature for the method with the extra named parameter (reference). While that does work it also defines a non-existent signature, and I don't consider that a acceptable trade-off.

According to Maxim Medvedev, from JetBrains:

Currently there is no way to override existsing methods with gdsl. We will try to implement the feature in 15

repo: saboya/gorm-logical-delete

license_source: bigquery


text:
READMEのCONTRIBUTEのリンクが無効になってる

READMEのCONTRIBUTEのリンクが無効になっていた為、修正する必要があるかと感じました！
If we tap the CONTRIBUTE link in README,

we access to this page

hope you will check out our PR here when you have a chance!
お手隙の際に、こちらのPRをご確認頂けば幸いです🙇♂
https://github.com/sadnessOjisan/blog.ojisan.io/pull/154
@sadnessOjisan

#154 mergeいたしましたっm

#154 mergeいたしましたっm

authors: kazuhitonakayama sadnessOjisan


text:
Unify readonly class variables name convention

Changes

Changes several variable naming conventions at CoingeckoApi to meet the screaming snake case format

Pull Request Test Coverage Report for Build 8142912951
Details

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.06%) to 93.244%

Files with Coverage Reduction
New Missed Lines
%

src/routes/transactions/entities/tests/human-description.builder.ts
2
80.0%

Totals

Change from base Build 8141876613:
-0.06%

Covered Lines:
6382

Relevant Lines:
6602

💛  - Coveralls

source: gharchive/pull-request

authors: coveralls hectorgomezv

repo: safe-global/safe-client-gateway


text:
🛑 Forum Sumiswald is down

In 3196697, Forum Sumiswald (https://www.forum-sumiswald.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Forum Sumiswald is back up in 2e6d0b6 after 8 minutes.


text:
feat: add code block language display

[功能] 新增在 Markdown 代码块的右上角显示代码块的语言
效果如下：
https://github.com/user-attachments/assets/c9d1ad27-d35d-4e4c-a8cd-de2581117e99
且代码块语言使用主题颜色，修改主题颜色时代码块语言也会改变，效果如下：
https://github.com/user-attachments/assets/0c3ad18b-078e-40b7-ba97-2717d6e6c3fe
该功能参考了 VitePress 代码块的显示效果，如下：
https://github.com/user-attachments/assets/73aa5f7e-3821-41e0-a53b-33878fcde6c0

感谢 PR！不过我觉得当前的实现视觉效果不算太好，我可能需要时间来重新设计一下这个

authors: CosmoLau saicaca

repo: saicaca/fuwari


text:
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

How to install without CUDA_HOME environment variable? For example https://github.com/mapillary/inplace_abn don`t ask about CUDA_HOME.
xxx@xxx:~$ python3 -m pip install git+https://github.com/sail-sg/Adan.git
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/sail-sg/Adan.git
  Cloning https://github.com/sail-sg/Adan.git to /tmp/pip-req-build-zs78qhzq
  Running command git clone --filter=blob:none --quiet https://github.com/sail-sg/Adan.git /tmp/pip-req-build-zs78qhzq
  Resolved https://github.com/sail-sg/Adan.git to commit 8f559205f67e565b3bea09554354d69000bd819c
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-zs78qhzq/setup.py", line 5, in <module>
          cuda_extension = CUDAExtension(
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1047, in CUDAExtension
          library_dirs += library_paths(cuda=True)
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1179, in library_paths
          if (not os.path.exists(_join_cuda_home(lib_dir)) and
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2230, in _join_cuda_home
          raise EnvironmentError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

We didn't test to install without CUDA_HOME environment variable. Cause this is required by default when we try to install adan as a CUDA extension.
Can you try use export CUDA_HOME=/path/to/cuda ?
The path could use which nvcc command to locate. The output path might looks like /usr/local/cuda/bin/nvcc, then CUDA_HOME should be /usr/local/cuda.

CUDA extension needs only for FusedAdan. How to install only pure python Adan without coping the code?

Understand. Currently, we are using torch.cuda.is_available() to judge wether install CUDA extension.
We might need to add a manual args to enable fusion or not.
I will fix it today later.

Can you try this command?
pip install --install-option="--unfused" git+https://github.com/AlexwellChen/Adan.git

xxx@xxx:~$ pip3 install --install-option="--unfused" git+https://github.com/AlexwellChen/Adan.git
Defaulting to user installation because normal site-packages is not writeable
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option / --install-option. Consider using --config-settings for more flexibility.
DEPRECATION: --install-option is deprecated because it forces pip to use the 'setup.py install' command which is itself deprecated. pip 23.1 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11358
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting git+https://github.com/AlexwellChen/Adan.git
  Cloning https://github.com/AlexwellChen/Adan.git to /tmp/pip-req-build-yswhvtpn
  Running command git clone --filter=blob:none --quiet https://github.com/AlexwellChen/Adan.git /tmp/pip-req-build-yswhvtpn
  Resolved https://github.com/AlexwellChen/Adan.git to commit 962913e3bcdb58103030c1188672577b5c1062bc
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-yswhvtpn/setup.py", line 6, in <module>
          cuda_extension = CUDAExtension(
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1047, in CUDAExtension
          library_dirs += library_paths(cuda=True)
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1179, in library_paths
          if (not os.path.exists(_join_cuda_home(lib_dir)) and
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2230, in _join_cuda_home
          raise EnvironmentError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Please try this again
pip install git+https://github.com/AlexwellChen/Adan.git --install-option="--unfused"

Defaulting to user installation because normal site-packages is not writeable
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option / --install-option. Consider using --config-settings for more flexibility.
DEPRECATION: --install-option is deprecated because it forces pip to use the 'setup.py install' command which is itself deprecated. pip 23.1 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11358
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting git+https://github.com/AlexwellChen/Adan.git
  Cloning https://github.com/AlexwellChen/Adan.git to /tmp/pip-req-build-f9ol36qq
  Running command git clone --filter=blob:none --quiet https://github.com/AlexwellChen/Adan.git /tmp/pip-req-build-f9ol36qq
  Resolved https://github.com/AlexwellChen/Adan.git to commit 7f8a1186312a5916530235fa3d586102a7281f32
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-f9ol36qq/setup.py", line 12, in <module>
          cuda_extension = CUDAExtension(
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1047, in CUDAExtension
          library_dirs += library_paths(cuda=True)
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1179, in library_paths
          if (not os.path.exists(_join_cuda_home(lib_dir)) and
        File "/home/xxx/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2230, in _join_cuda_home
          raise EnvironmentError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

That's weird.
Maybe you could try to install the history branch.
Try this.
pip install git+https://github.com/sail-sg/Adan.git@9613f61c0e780f74a17b13aa7d37eb87d0de61a7

Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/sail-sg/Adan.git@9613f61c0e780f74a17b13aa7d37eb87d0de61a7
  Cloning https://github.com/sail-sg/Adan.git (to revision 9613f61c0e780f74a17b13aa7d37eb87d0de61a7) to /tmp/pip-req-build-5vqynes5
  Running command git clone --filter=blob:none --quiet https://github.com/sail-sg/Adan.git /tmp/pip-req-build-5vqynes5
  Running command git rev-parse -q --verify 'sha^9613f61c0e780f74a17b13aa7d37eb87d0de61a7'
  Running command git fetch -q https://github.com/sail-sg/Adan.git 9613f61c0e780f74a17b13aa7d37eb87d0de61a7
  Running command git checkout -q 9613f61c0e780f74a17b13aa7d37eb87d0de61a7
  Resolved https://github.com/sail-sg/Adan.git to commit 9613f61c0e780f74a17b13aa7d37eb87d0de61a7
  Preparing metadata (setup.py) ... done
Requirement already satisfied: torch in ./.local/lib/python3.8/site-packages (from adan==0.0.1) (1.13.1+cu117)
Requirement already satisfied: typing-extensions in ./.local/lib/python3.8/site-packages (from torch->adan==0.0.1) (4.5.0)
Building wheels for collected packages: adan
  Building wheel for adan (setup.py) ... done
  Created wheel for adan: filename=adan-0.0.1-py3-none-any.whl size=8250 sha256=d2d7b4f15accfc5b4e6609bf2acfbc2acc83b267e465481eed8871a827befed2
  Stored in directory: /home/xxx/.cache/pip/wheels/3f/b2/c6/42cd9ca726afb02bbae34d988bb78e814bdb8bdea9a851a966
Successfully built adan
Installing collected packages: adan
Successfully installed adan-0.0.1

But how to install Adan with new commits?

One way is to clone this repo and use python setup.py install --unfused in the repo directory to install the latest commit.
Or we have to fix the command line argument passing problem when using pip install git+https:xxxx, the current solution doesn't seem to work.

authors: AlexwellChen MichaelMonashev

repo: sail-sg/Adan


text:
fix: removing .encode() in call to register_custom_call_target

The function envpool.python.xla_template._make_xla_function wrongfully passes bytes instead of str for the name parameter when calling xla_client.register_custom_call_target.
This leads to errors when calling envs.xla().
Removing .encode() fixes the issue.

The lint issue is not related to this change.

repo: sail-sg/envpool


text:
Add Steps of Solving Roundoff

function Roundoff Calculator
Try to understand the code and show steps of what we are doing

Example:
Input Number: 6473
Place of Roundoff: Hundred

Thousand
Hundred
Tens
Ones

6
4
7
3

Thousand
Hundred
Tens
Ones

4
7

Thousand
Hundred
Tens
Ones

7>5

Thousand
Hundred
Tens
Ones

4+1

Thousand
Hundred
Tens
Ones

5
0
0

Thousand
Hundred
Tens
Ones

6
5
0
0

6473 after rounding off to nearest Hundred is 6500

Special Case:
Example:
Input Number: 6473
Place of Roundoff: Ten Thousand

Ten Thousand
Thousand
Hundred
Tens
Ones

0
6
4
7
3

Ten Thousand
Thousand
Hundred
Tens
Ones

0
6

Ten Thousand
Thousand
Hundred
Tens
Ones

0
6>5

Ten Thousand
Thousand
Hundred
Tens
Ones

0+1

Ten Thousand
Thousand
Hundred
Tens
Ones

1
0
0
0
0

6473 after rounding off to nearest Ten Thousand is 10000

Hey can you assign me??

Feel free to ask doubts, if any.
Can you please tell are you a GSSOC'21 participant?

Yes I am GSSOC21 participant.

Hi, I would like to work on this issue can you please assign it to me . I'm a GSsoc21 participant.

Feel Free to ask your doubts,if any

@Abhisheka394 Any update? are you able to solve this.
There are some changes in our code kindly, update in your local machine

@sairish2001 I have started working on the task and I think I would be able to finish it on time. In case, I have some doubts I will ask you.

There are some changes in the code kindly, update in your local machine, otherwise while creating PR conflicts may occur

@Abhisheka394 Any update?


text:
Number of perfect cubes between two given numbers.

Proposal
I would like to add this tool, please assign it to me

Go ahead
Deadline 29 April,2021


text:
Compound Interest Calculator

Proposal
I would like to add compound interest calculator

@sairish2001  i would like to work on this issue

@shubhdeep123 Please check site once compound interest calculator is already present

@abhijeet141 it wasn't mentioned in search bar.


text:
SAK-49564 sitemanage. Include Templates in list of sites for import

https://sakaiproject.atlassian.net/browse/SAK-49564

@ottenhoff Thanks for the review. You were the best man for the job :)

repo: sakaiproject/sakai


text:
SAK-41175 Allow floating point numbers in rubrics points

https://jira.sakaiproject.org/browse/SAK-41175

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 2

Complexity increasing per file
==============================
- samigo/samigo-app/src/webapp/js/samigo-global.js  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 2

Complexity increasing per file
==============================
- samigo/samigo-app/src/webapp/js/samigo-global.js  1

See the complete overview on Codacy

authors: adrianfish steveswinsburg


text:
didSelectRowAtIndexPath and didSelectSubRowAtIndexPath ISSUE

First of all thanks for your hard and great work.
My first issue is once I click on the first expandable cell and then click on other cell its crash and I get this issue "unrecognized selector sent to instance 0x13f5618f0'" but if I click on other expandable cell's and again click on other cell's expandable or not it works fine. The only issue with the first cell.
It is only crashes when I add the code below with the first cell.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{   //Isn't this way to control if it is expandable or not?
  SKSTableViewCell *cell = (SKSTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
  if (cell.isExpandable) {
      NSLog(@"YES");
  }
  else{
      [self performSegueWithIdentifier:@"123" sender:self];
  }
}

My second issue is when the row expand and I select from the sub row I get the cell name instead of the sub row name.
- (void)tableView:(SKSTableView *)tableView didSelectSubRowAtIndexPath:(NSIndexPath *)indexPath
{
  UITableViewCell *selectedCell = [_tableView cellForRowAtIndexPath:indexPath];
  _selectedCellTxt = selectedCell.textLabel.text;
  NSLog(@"SELECTED %@", _selectedCellTxt);
}

Please I hope you can help me with this?

Hello cancem111, I solved subrow selection by this sample of code:
UITableViewCell *selectedCell = [tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:(indexPath.row + indexPath.subRow) inSection:indexPath.section]];

repo: sakkaras/SKSTableView

license: mit


text:
Need help on installation

How can I install this in my localhost and web hosting server?
I tried following the installation instructions but the command seems not to be working. I tried installing docker but it doesn't work either. I have no idea how to do it. FYI, I am not a programmer, hence I have little to zero knowledge. I just really wanted to try this.
I would appreciate it if anyone here could guide me in detail on how to install it. Thank you very much!

Same here, can't get this installed. Tried both with docker, and manually with composer.
Docker keeps throwing the following error:
`docker run --rm
-u "$(id -u):$(id -g)"
-v $(pwd):/var/www/html
-w /var/www/html
laravelsail/php81-composer:latest
composer install --ignore-platform-reqs
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "proc" to rootfs at "/proc": mount proc:/proc (via /proc/self/fd/6), flags: 0xe: permission denied: unknown.`
I'm trying to run this inside a proxmox LXC container, but I checked and nested virtualisation is enabled so that shouldn't be the problem, although it looks to be some sort of permission issue, sudo-ing gives the same error. I also tried setting folder permissions to 777 which didn't solve it.
Using the composer installer throws the following error:
composer install PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /usr/share/php/Composer/IO/BaseIO.php on line 163
Any ideas on what's wrong here? I'd love to use the app! It looks impressive and useful.
Thanks!

Hello,
Yes, I was able to reproduce this and this was due to the recent Laravel 10 upgrade which requires php > 8.2.
I fixed the Dockerfile now and it should be working as expected. Please try again and sorry for the inconvenience.

authors: dreyerm richjr93 saleem-hadad

repo: saleem-hadad/finance


text:
Add runtime theme support for CV media upgrade dialogs

Jira issue:
https://glia.atlassian.net/browse/MOB-1991
Additional info:
Also updated a bit of code for all other dialogs as some of them missed font family in buttons and to overall make the code more consistent
Additionally, it seems that BaseConfigurableButton.setTheme(UiTheme) does not apply themes correctly. I marked it as deprecated and replaced it in Dialogs.kt.
Screenshots:

@gugalo Honestly, I don't have an answer right away.
Maybe @DavDo has any assumptions?

@DavDo I think there is no need to investigate at the moment
P.S: Just rebase this branch on the master to resolve merge conflicts and removed those comments.

!merge

authors: andrews-moc gugalo

repo: salemove/android-sdk-widgets


text:
Checkout mutations should allow to assign only active shipping methods

This PR should be merged only after https://github.com/saleor/saleor/pull/8347, as it is strictly based on its changes.
Also, to have a clear diff, we really need current branch api-for-filter-shipping-methods-3-0 to be merged into logic-for-filter-shipping-methods-3-0, as this PR doesn't actually include 35 files changed, like the Github compare states at the moment.
Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[x] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Codecov Report

Merging #8361 (dd1eb77) into logic-for-filter-shipping-methods-3-0 (813d82d) will decrease coverage by 0.04%.
The diff coverage is 94.62%.

@@                            Coverage Diff                            @@
##           logic-for-filter-shipping-methods-3-0    #8361      +/-   ##
=========================================================================
- Coverage                                  93.05%   93.00%   -0.05%
=========================================================================
  Files                                        475      477       +2
  Lines                                      35956    36286     +330
  Branches                                    3802     3849      +47
=========================================================================
+ Hits                                       33459    33748     +289
- Misses                                      1718     1743      +25
- Partials                                     779      795      +16

Impacted Files
Coverage Δ

saleor/graphql/meta/permissions.py
92.45% <ø> (ø)

saleor/graphql/meta/resolvers.py
91.48% <ø> (ø)

saleor/graphql/translations/types.py
95.55% <ø> (ø)

saleor/graphql/shipping/resolvers.py
83.33% <69.23%> (-16.67%)
:arrow_down:

saleor/graphql/shipping/utils.py
82.60% <82.60%> (ø)

saleor/graphql/channel/types.py
93.05% <88.88%> (-6.95%)
:arrow_down:

saleor/graphql/shipping/types.py
96.50% <93.93%> (-3.50%)
:arrow_down:

saleor/graphql/order/resolvers.py
98.41% <96.66%> (-1.59%)
:arrow_down:

saleor/checkout/fetch.py
96.20% <100.00%> (+0.61%)
:arrow_up:

saleor/graphql/checkout/resolvers.py
98.75% <100.00%> (+2.32%)
:arrow_up:

... and 56 more

Continue to review full report at Codecov.

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

authors: codecov-commenter kczan

repo: saleor/saleor


text:
3.1 Do not put street_address_2 into errors in billing address update

Port changes #9078

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-3961 Optional fields raising a REQUIRED error in Address validation


text:
Drop down menu on Lookup with menuPosition="overflowBoundaryElement" doesn't align correctly

When creating a lookup with menuPosition="overflowBoundaryElement", the drop down menu doesn't align to the start of the input (see screenshot).

I looked at the code and I think there's a bug in the function getPopperOffsets(popper, referenceOffsets, placement) on this line:
popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;
If mainSide is "left", we should just be setting popperOffsets[mainSide] = referenceOffsets[mainSide].
I actually don't understand why we would do + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2 in that particular case.
Any help?

I just realized that this bug is in a dependency package. I'm still interested in knowing whether you guys have faced this issue before when using the lookup ?

PopperJS was just added this fall. I believe the inheritTargetWidth should be turned on but it doesn't look like it's working. Can you confirm that inheritTargetWidth is broken in ≤Dialog/> utility component?

I think inheritTargetWidth is fine. For Lookup, it's always set to true and that prop is used to calculate the width of the popper.
I think the issue is that when alignment is "bottom left", it should really just calculate from the left of the screen with popperOffsets[mainSide] = referenceOffsets[mainSide] instead of popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;. That probably holds true for "top left".
I'm thinking I can either make a PR in popper.js or make the change in Dialog in function getPopperStyles() on line : const left = `${popperData.offsets.popper.left + propOffsets.horizontal}px`;
What do you think?
Have we had any consumer of SLDSLookup using align= "bottom left" and menuPosition="overflowBoundaryElement" facing this issue in the past?
Another option is to try ComboBox but it's also using Dialog / Popper.js so I guess I would get into the same issue.

Ah, if it's not the default, then it hasn't been tested reviewed, etc. Popover is really the only dialog that has examples written for it for review in the Storybook. BTW, Lookup is deprecated and shouldn't be used in new work.
We should probably have a Storybook story for each component that has all alignments for components with dropdowns. MenuDropdown, Combobox, etc. then we can use image snapshots to make sure we don't break them once they are fixed.

Yes, makes sense.
Okay, now I know how to get unblocked. I need to use placement="bottom-start" in Popper.js, or align="bottom left" on <Dialog> in DSR.
Either I make a PR in DSR to allow passing align as a prop to <Lookup> but since it's deprecated I can probably use Combobox, as you suggested, since it's using "bottom left" by default.
What do you suggest ?

Combobox is more accessible, so you get the benefit of that.
It looks like you can do a separator:
https://lightningdesignsystem.com/components/menus/
or a subheading
https://lightningdesignsystem.com/components/menus#With-Subheaders
The custom renderer menuItem exists in Combobox, but that would make it part of the selectable list and we don't want that, we need the internal state of Combobox activeOption to skip the subheadings and the separators. A default subheading and a separator would be the best for everyone.
If you just need the default separator and subheaders, I'd love to see
	{
		label: 'Menu Sub Heading',
		type: 'separator',
	},
	// Divider line separator
	{
		type: 'separator',
	},

as the API. If folks want to then use menuItem to change the look of separator and subheaders in order to do something custom, they can override the render with that function.
I think you'd want to do something like add a notSelectable parameter to combobox.jsx's getNewActiveOptionIndex or handleNavigateListboxMenu and it would make the offset +2 instead of +1. We could say in the proptypes that we don't support two subheaders right after each other. At least that's my quick thoughts on it.
Does that sound good?

Yes, sounds good.
One oversight is that I only want to use a custom renderer for separators. Would it make sense to have a new prop menuItemSeparator that similar to menuItem but used only when an option is of type: 'separator' ?

I don't think there's a benefit. You'd just add a conditional within your render function and do whatever you want based on the contents of option.

Yes, I could do that but then I won't be able to use the  code from Menu.jsx for regular menu items, that is
{props.menuItem ? (
  <MenuItem
    assistiveText={props.assistiveText}
    selected={selected}
    option={optionData}
  />
 ) : (
   // I would like to keep using this code for menu items that are not separator.

     {selected ? (

         {props.assistiveText.optionSelectedInMenu}

 ) : null}{' '}
   {optionData.label}

)}

I can copy that part of jsx into my custom renderer but that's not great..
That's why I was either proposing a menuItemRenderer prop that is a custom render for "separator" only.
What do you think?

I thought you needed complete control/flexibility. If you are following the default selectable menu, sub headings, and separator markup, then please add the default into combobox/private/menu.jsx and don't have any custom renderers.

authors: davidlygagnon interactivellama

repo: salesforce/design-system-react


text:
Use onClickOutside wrapper for Edit Dialog, add docs for BuilderHeaderMisc

Fixes #

The Edit Dialog now closes when a user clicks outside the component. All of the other popover variations implement this behavior already. This was done by importing from index.js (an onClickOutside wrapper for popover.js instead of popover.js itself.

Added documentation for the BuilderHeaderMisc component. It was added in https://github.com/salesforce/design-system-react/pull/2287, but the docs were never updated.

Additional description

CONTRIBUTOR checklist (do not remove)
Please complete for every pull request

[x] First-time contributors should sign the Contributor License Agreement. It's a fancy way of saying that you are giving away your contribution to this project. If you haven't before, wait a few minutes and a bot will comment on this pull request with instructions.
[x] npm run lint:fix has been run and linting passes.
[x] Mocha, Jest (Storyshots), and components/component-docs.json CI tests pass (npm test).
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[x] Review the appropriate Storybook stories. Open http://localhost:9001/.
[x] Review tests are passing in the browser. Open http://localhost:8001/.
[x] Review markup conforms to SLDS by looking at DOM snapshot strings.

REVIEWER checklist (do not remove)

[ ] TravisCI tests pass. This includes linting, Mocha, Jest, Storyshots, and components/component-docs.json tests.
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] The Accessibility panel of each Storybook story has 0 violations (aXe). Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at DOM snapshot strings.

Required only if there are markup / UX changes

[ ] Add year-first date and commit SHA to last-slds-markup-review in package.json and push.
[ ] Request a review of the deployed Heroku app by the Salesforce UX Accessibility Team.
[ ] Add year-first review date, and commit SHA, last-accessibility-review, to package.json and push.
[ ] While the contributor's branch is checked out, run npm run local-update within locally cloned site repo to confirm the site will function correctly at the next release.

I'm seeing 2-3 failures with the browser tests (1 is a flapper, 2 of them ar combobox tests). These are also failing in master, so I assume they're not caused by my changes.


text:
Fix crash due to incorrect condition variable usage

There was a race condition on the condition variable, when ChangeList::Flush called notify_all. After the waiter (in this case, the main thread) is woken up, notify_all might not have returned just yet. If the main thread proceeded and called Clear on the ChangeList object in the meantime, the condition variable is deleted when notify_all is still executing, causing a crash. This occurs frequently on my machine when running the tool in "branching mode", and there are changelists happening on lots of "uninteresting" branches (in other words: changelists with 0 files to be committed).
As part of the bugfix, synchronization in the ChangeList class is reworked: instead of multiple atomic variables, mutexes, and condition variables, a single condition variable and mutex is used, with a state machine.

Some additional thoughts:

Depending on the condition variable implementation (in general), a signal/broadcast operation might be performed without holding the lock associated with the CV. However, most use cases are never exposed to this "edge case", because they signal/broadcast after modifying the shared state, and they acquire the lock before doing so.
Even if the implementation allows this, deleting the CV after a wakeup can lead to a crash in this case, as code in a signal/broadcast operation might run after waiters are woken, accessing internal state of the condition variable (e.g. see the glibc source).
According to my measurements (with Instruments), synchronization overhead is barely measurable in this tool, so this change from atomic variables has no performance implications, at all.

This is an interesting case that you have found, thanks for sending in this PR. I agree the possibility of a crash is here and this is one easy way to fix it.

authors: peter-esik twarit-waikar


text:
Adds json output

What does this PR do?
Adds json output

url to release notes
raw release note string

@W-10190622@
To test:

Pull branch
Run sfdx plugins:link
Confirm json output sfdx whatsnew --json
Confirm json error output sfdx whatsnew --json -v 9.9.9

QA notes:
👎🏻 compile warnings on link
warning " > marked-terminal@4.2.0" has incorrect peer dependency "marked@^1.0.0 || ^2.0.0".
warning " > ts-node@10.4.0" has unmet peer dependency "@types/node@*".

sfdx-cli/7.140.0 darwin-x64 node-v16.14.0
✅  sfdx whatsnew --json produced body and url
✅  still fine with full command instead of alias
✅  still good without --json
✅  help is ok with --json
✅  good json with good --version
✅  good json error with bad --version (7.500.0)

authors: iowillhoit mshanemc

repo: salesforcecli/plugin-info


text:
Install fasttext on Windows 10 with anaconda

I am trying to install fasttext in anaconda with Windows 10 using the command:
pip install fasttext
The error messages are:
ValueError: Unknown MS Compiler version 1900
and
Command "c:\users\nicol\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\nicol\AppData\Local\Temp\pip-install-pd0xqmlg\fasttext\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\nicol\AppData\Local\Temp\pip-record-4qt38yfk\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\nicol\AppData\Local\Temp\pip-install-pd0xqmlg\fasttext\
Can you tell me how I can fix this problem?
The only requirement listed is Cython, which I have:
(C:\Users\nicol\Anaconda3) C:\Users\nicol>pip install Cython
Requirement already satisfied: Cython in c:\users\nicol\anaconda3\lib\site-packages (0.25.2)

Funny, it's probably because you don't have Microsoft Visual C++ Build Tools (or something like this) installed, to allow for compilation. I just ran into this issue myself, forked the repo, and built a wheel which I pushed up to pip.
If you want to use it as well -- specifically for python 3.6 with 64-bit AMD architecture, you can use:
pip install fasttext_win

@cmoscardi thanks a lot!

How to solve this error for windows 'Failed building wheel for fasttext'

thank you!

@cmoscardi  God Bless you man. Thank you so much.

@cmoscardi Thank you so much.

@cmoscardi Thank you very much

I tried the command but still, the error remains.
here:

I tried the command but still, the error remains.
here:

I am running to same problem how to solve it?

authors: 27arjunbali MohammadHeydari blazejdolicki cmoscardi cscontrolcom dian-ai dingdingdingyinyinyin guha93 pravinsharma9610 vewei


text:
Google Analytics

Added place for Google Analytics Script: You need to create it on your own (Example Here https://github.com/lukec11/webserver-files/blob/master/www/index.html)
analytics.google.com

Leaving this alone for now. I'm a little hesitant to add trackers - especially Google trackers - for privacy reasons.

Closed, Thanks.


text:
🛑 Blog is down

In 296e191, Blog (https://saltbo.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in e4f1e4c after 7 minutes.

repo: saltbo/status


text:
Autonumber an order_id using calculation with standard field ID behaves strange

Describe the bug
My calculation for autogenerating an order-id works fine in the tables management page but not in a order-edit-view.
To Reproduce
This is my order_id calculation:

works fine in the standard table management edit: You can see the order_is counting up to 23008.

But if I use a modal popup for adding a order-record using edit-order then the Order_id always set on 23001. Why?

I think this is because when you create a new row, it doesn't have an id yet. Therefore your ternary operator turns to false. Try using actions assigned to the row insertion event.

Yes you were right. Action on the insert-trigger solved it.

repo: saltcorn/saltcorn


text:
Prevent pokemon img from being dragged

Sí, verás... es que vi que se podia arrastrar la imagen y se veia al Pokemon® sin el filtro :(
He añadido a la imagen la propiedad draggable="false", ¡con un impresionante soporte del 97.55% según caniuse.com! - aunque igual habría sido mejor usar la propiedad pointer-events: none;, pero bueno.
Espero que este cambio sea digno del proyecto.
Love,
Dani :)

Qué buena @Daniserra14 ¡Muchas gracias!

repo: salteadorneo/pokemodle


text:
No attribute as 'entries'

while collections.has_next:
    for collection in collections.entries:
        photos = collection.photos
        for photo in photos.entries:
            print(collection.title, photo.link_download)
# no need to specify per_page: will take from original object
collections = collections.get_next_page()

Traceback (most recent call last):
File "<ipython-input-19-97290a89529d>", line 4, in <module>
for photo in photos.entries:

AttributeError: 'function' object has no attribute 'entries'

This is a documentation issue.
The following line:
`photos = collection.photos`

should correctly read:
`photos = collection.photos()`

I can see a case for making collection.photos a property. Let me think about it though.

Fixed in master.

repo: salvoventura/pyunsplash


text:
Add support rename

Improve rename in swarm so that it can refresh container immediately. Need this Interface
https://github.com/docker/swarm/pull/637
Signed-off-by: Xian Chaobo xianchaobo@huawei.com

ping @vieux @ehazlett @aluzzardi

@vieux Modified it

LGTM

Tested -- works as expected.  Thanks for the contribution!  LGTM

authors: ehazlett jimmyxian vieux

repo: samalba/dockerclient


text:
Requesting examples

Not sure if this is maintained.
I'm confused on the relationship between esp_idf_hal and embedded_hal.
For example:
use embedded_hal::blocking::i2c::{Read, Write, WriteRead};
These traits are implemented in esp_idf_hal::i2c::Operation
use esp_idf_hal::{
delay,
i2c::{I2c, I2cConfig, I2cDriver, I2cError, Operation},
prelude::*,
};
I can't seem to get this code to work on the esp_idf_hal -- and my rust skills aren't presently up to the task.
Examples would be helpful.

nvm.


text:
More Examples

Could you create some more examples of how the various components are used. I am new to rust and have been having difficulties working with the static callbacks (menu items) and things not showing up as expected (windows).

Unfortunately, I can't make good examples for most of the SDK because I haven't found a good design for the APIs that is safe, ergonomic, and functional. The menu and graphics APIs are especially incomplete.
If you learn how to use the low-level C bindings, you can make a better design for safe Rust APIs on top of them.

authors: maarek samcrow

repo: samcrow/rust-xplm


text:
How to use getSource with Client Application

Hi,
I am new to JavaScript.
I want to get all audio & video source in client application (means without any web server e.g. apache).
I used getSources API to get all devices but it doesn,t work without web-server (apache server).
Could you please guide me how to get all local devices in client application (without any web-server)?
Thanks in Advance.

Hi – you need to run getUserMedia() examples from a server.
It's easy enough to run a server locally with SimpleHTTPServer, or stacks
like MAMP or XAMPP.
Alternatively, run Chrome with flags to enable calling getUserMedia() from
a file:// URL:
stackoverflow.com/questions/13723699/chrome-getusermedia-not-requesting-permission-locally
.
Sam
On Tue, Jan 20, 2015 at 7:53 AM, KP Singh notifications@github.com wrote:

Hi,
I am new to JavaScript.
I want to get all audio & video source in client application (means
without any web server e.g. apache).
I used getSources API to get all devices but it doesn,t work without
web-server (apache server).
Could you please guide me how to get all local devices in client
application (without any web-server)?
Thanks in Advance.
—
Reply to this email directly or view it on GitHub
https://github.com/samdutton/simpl/issues/61.

Thanks Sam

authors: KrishPS samdutton

repo: samdutton/simpl


text:
Tree Style Tab History Request

First, to give credit where credit is due, excellent job with the extension! It looks great, is compact in the chrome window, and runs smooth! Keep it up!
Feature User Story
I would like to be able to have each tab have a tree-style tab history, when new tabs are opened from clicking on links/"open link as new tab" within a tab. Additionally, I would like to be able to collapse and/or close the whole branch when finished.
References For Feature
In order to better visually explain what I am envisioning, the extensions Tree Style Tab as well as Forest achieve this, however each has a few flaws from a UX standpoint, such as the extension menu disappearing when the chrome window is interacted with, having the extension as a stand-alone window separate from the current Chrome window, and also the tabs history not being persistent after closing and reopening Chrome.
General Unrelated Feedback (Current Extension Appearance And UX)
I think that your extension does a much better job of the vertical tab view, and the appearance of the extension loading within the Chrome window similar to how the official side-panel for bookmarks and reading list do is excellent. Other extensions only appear as a temporary pop-up menu for the extension when the extension icon is clicked on, or else as a completely separate window but resized as a sidebar, which are both clunky and not a pleasure to interact with. Your solution for the appearance and style of use for your extension is perfect and does not need to be altered... it's just the extra functionality for having the tree-styled intra-tab tab history which would be awesome!
Looking forward to your consideration of this; cheers!

Hey, glad you like the extension!
I certainly see the benefit of having a tree style view, one thing I'm worried about is deeply nested tabs. Did a quick test with the Forest extension and it seems tabs quickly start to become smaller and smaller as it's being indented to the right with every nested level. I'm curious to understand based on your previous use of these extensions, how did you deal with such cases, would you typically widen the extension width (if possible) to have additional space, or is it not very often for you to encounter such scenarios?

I see, thanks for the clarification. Will try out how this works with other features such as tab groups and tab dragging, might not make sense in this case to allow tabs to be moved, or only moving the root parent tab which moves all its children also.

would love to see this as well!
I was actually on my way to forking the repo and starting work on this myself, this is how much i would like to see this.
Only to notice the repo version is not up to date with the live version in chrome web store
Anyway, if you decide to open source the new version, i may help with a pull request :)

authors: InJJWeTrust PaulGiletich samihaddad


text:
Outdated readme

Not a big issue, but readme doesn't include Unreal Engine 4 support.
Unreal Engine 4 syntax highlighter - .usf

Fixed in 5b71b26911fef9d71311455b89221914d7fa5f96

authors: NicolasDe samizzo

repo: samizzo/nshader

license: MS-PL


text:
🛑 Branex UK is down

In 3324134, Branex UK (https://www.branex.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Branex UK is back up in b978db3 after 1 hour, 8 minutes.

repo: sammaryasir/host


text:
Improve the usability of opam submit

We should guide the user more to set-up the GH token things. Also not sure if we should depend on opam-publish or do our own thing, see #3.

Done in #26

repo: samoht/dune-release

license: ISC


text:
Fetching performance

Hi Samuel,
I did some benchmarking&profiling. Fetching is spending time&memory on calling (smd *structMappingDetails) traverseTree method. It is critical especially while scanning high number of rows from results(for reporting).
Full results of benchmarking is at this repo. As for every fetching of rows(single or multiple, after inserts and updates also) godb is calling traverseTree and that puts godb into middle of report. I think it will get better if a caching mechanism is added instead of running reflections for each time. Caching should be implemented specific to db session instance.
For example pg orm make use of this kind of caching.
I've checked if some kind of caching for column mapping is possible, but unfortunately couldn't find a place in code to implement. Can you also check this?
Here is profiling output for scanning rows of SQL with LIMIT 10000:
Showing top 10 nodes out of 81
      flat  flat%   sum%        cum   cum%
  274.51MB 29.92% 29.92%   457.53MB 49.87%  github.com/samonzeweb/godb/dbreflect.(*structMappingDetails).traverseTree /data/Development/MyOpenSource/GODB/src/github.com/samonzeweb/godb/dbreflect/dbreflect.go
   95.01MB 10.36% 40.28%    95.01MB 10.36%  github.com/samonzeweb/godb/dbreflect.(*StructMapping).GetAllFieldsPointers.func1 /data/Development/MyOpenSource/GODB/src/github.com/samonzeweb/godb/dbreflect/dbreflect.go
   58.50MB  6.38% 46.66%    58.50MB  6.38%  github.com/lib/pq.textDecode /data/Development/MyOpenSource/GODB/src/github.com/lib/pq/encode.go
   50.88MB  5.55% 52.20%    50.88MB  5.55%  github.com/lib/pq.(*stmt).exec /data/Development/MyOpenSource/GODB/src/github.com/lib/pq/buf.go
      44MB  4.80% 57.00%       44MB  4.80%  reflect.unsafe_New /usr/local/src/go/src/runtime/malloc.go
      43MB  4.69% 61.69%       43MB  4.69%  reflect.(*structType).Field /usr/local/src/go/src/reflect/type.go
   36.37MB  3.96% 65.65%    42.39MB  4.62%  github.com/samonzeweb/godb.(*SQLBuffer).WriteBytes /data/Development/MyOpenSource/GODB/src/github.com/samonzeweb/godb/sqlbuffer.go
   33.27MB  3.63% 69.28%    33.77MB  3.68%  database/sql.driverArgs /usr/local/src/go/src/database/sql/convert.go
   27.50MB  3.00% 72.28%       38MB  4.14%  github.com/samonzeweb/godb/dbreflect.(*StructMapping).GetNonAutoFieldsValues.func1 /data/Development/MyOpenSource/GODB/src/github.com/samonzeweb/godb/dbreflect/dbreflect.go
   20.22MB  2.20% 74.48%   123.64MB 13.48%  github.com/lib/pq.(*conn).QueryContext /data/Development/MyOpenSource/GODB/src/github.com/lib/pq/conn_go18.go
(pprof)

Sample SQL is:
type GDModel struct {
	Id      int           `db:"id,key,auto"`
	Name    string        `db:"name"`
	Title   string        `db:"title"`
	Fax     string        `db:"fax"`
	Web     string        `db:"web"`
	Age     int           `db:"age"`
	Right   bool          `db:"right"`
	Counter int64         `db:"counter"`
}

func (*GDModel) TableName() string {
	return "models"
}

var models []*GDModel
if err := db.Select(&models).Where("id > ?", 0).Limit(10000).Do(); err != nil {
	fmt.Printf("slice err: %v\n", err)
}

I agree that this code isn't optimal. Some things are already cached : structs (types) details are fetched only one time. But fetching data involve many operations (especially for big structs).
The current version is done to be easy to maintain, not to be the fastest. Before building godb I though about using unsafe code, calculating memory offsets only one time, but it was not the way I choosed. It could be an optimization later. But before doing things like this I prefer writing fastest safe code.
It's perhaps not the fastest, but it's fast. Really blazing fast compared to other tools I used in other ecosystems. Then changing this is not my priority, and I will not do anything without taking time to be sure that's correct, really faster and easy to maintain (it's really an important part of godb).
I made a test with SQLite (because it's easy to setup, except on Windows), the full code is below, and a flamegraph. It's not a full analysis but a good start for me to show what's take time. I made only CPU profile, but it's obvious seeing the graph that many memory operations are implied.
The graph could look different on other OS, or with other database, but it's enough for me to see where the CPU is used. And to bee honest it's not a surprise.
Perhaps for godb 2, writen with Go 2 (joke inside). It's not my priority but I'll take time "a day" on this. It's an interesting subject ;)

package main

import (
	"fmt"
	"log"
	"os"
	"runtime/pprof"

	"github.com/samonzeweb/godb"
	"github.com/samonzeweb/godb/adapters/sqlite"
)

type Record struct {
	ID     int    `db:"id,key,auto"`
	Dummy1 string `db:"dummy1"`
	Dummy2 string `db:"dummy2"`
	Dummy3 string `db:"dummy3"`
	Dummy4 string `db:"dummy4"`
	Dummy5 string `db:"dummy5"`
}

const dataSize int = 100000

func main() {
	db, err := godb.Open(sqlite.Adapter, ":memory:")
	panicIfErr(err)

	_, err = db.CurrentDB().Exec(`
		create table Record (
			id       integer not null primary key autoincrement,
			dummy1   text not null,
			dummy2   text not null,
			dummy3   text not null,
			dummy4   text not null,
			dummy5   text not null)
	`)
	panicIfErr(err)

	massiveInsert(db)
	count, err := db.Select(&Record{}).Count()
	panicIfErr(err)
	fmt.Println("Inserted : ", count)

	readAll(db)
}

func massiveInsert(db *godb.DB) {
	db.Begin()
	bulkSize := 100
	records := make([]Record, 0, bulkSize)
	for i := 0; i < dataSize; i++ {
		record := Record{
			Dummy1: "dummy",
			Dummy2: "dummy",
			Dummy3: "dummy",
			Dummy4: "dummy",
			Dummy5: "dummy",
		}
		records = append(records, record)
		if len(records) >= bulkSize {
			err := db.BulkInsert(&records).Do()
			panicIfErr(err)
			records = records[:0]
		}
	}
	if len(records) > 0 {
		err := db.BulkInsert(&records).Do()
		panicIfErr(err)
	}
	db.Commit()
}

func readAll(db *godb.DB) {

	f, err := os.Create("cpu.prof")
	if err != nil {
		log.Fatal("could not create CPU profile: ", err)
	}
	if err := pprof.StartCPUProfile(f); err != nil {
		log.Fatal("could not start CPU profile: ", err)
	}
	defer pprof.StopCPUProfile()

	all := make([]Record, 0, dataSize)
	err = db.Select(&all).Do()
	panicIfErr(err)
	fmt.Println("Read : ", len(all))
}

func panicIfErr(err error) {
	if err != nil {
		panic(err)
	}
}

Thanks for detailed answer. I agree that it is fast enough(for me, especially after using Python SqlAlchemy for years), Go is the way to Go. :-)
I've done tests with adding this code before exit:
	runtime.GC()
	memProfile, err := os.Create("/tmp/godb.mprof")
	if err != nil {
		log.Fatal(err)
	}
	defer memProfile.Close()
	if err := pprof.WriteHeapProfile(memProfile); err != nil {
		log.Fatal(err)
	}

And reported with:
go tool pprof --alloc_space mem /tmp/godb.mprof

And it shows that we let a lot of work to do for GC. That is why CPU usage is high. In my first message I gave an example(by editing issue later, maybe you didn't see it) of pg - please check link
I think because of this pg is slightly faster.
I'm looking forward for your patches on this subject, If you need help please don't hesitate to ask.
Not to scare people with this issue, I'm closing it.
:-)

There is an obvious way to improve performance. It's so obvious that I'm ashamed of not having done it from start.
See this commit : https://github.com/samonzeweb/godb/commit/b0df6939a9a824bc60286d47a2f382d737ed7775
I'll take a little more time to analyze performances. Now it's on a separate branch, i'll see if there are other simple things to fix after doing escape analysis. If I've no time or don't see simple things I'll merge it almost as-is (just fix some comments).
I made a bench targeting GetAllFieldsPointers, the gain is real :smiley:
go test -bench=GetAllFieldsPointers -run=nore ./dbreflect/ -benchmem -benchtime=10s

Before :
BenchmarkGetAllFieldsPointers-4   	  500000	      2002 ns/op	     688 B/op      20 allocs/op

After :
BenchmarkGetAllFieldsPointers-4   	10000000	      1612 ns/op	     544 B/op      17 allocs/op

Wow! Thanks, that is nice!

I didn't see something as obvious (or simple to to in short time).
I made some cleaning, rebased and merged it to master : https://github.com/samonzeweb/godb/commit/18ac3a596c7f6cb3460d6c9853392f9f75a7b380
(the commit in my previous message could be unavailable as I'll remove the corresponding branch)

authors: derkan samonzeweb

repo: samonzeweb/godb


text:
DASH and HLS playback at 1 FPS after reloading page during buffering.

Expected behaviour
Playback should be at a normal speed after the page is reloaded
Actual behaviour
Playback is occurring at 1 FPS while audio is drawn out to the same rate
Steps to reproduce
Plyr is integrated with Shaka
Seek to a location outside the buffered range and reload the page during the buffering
(Load is quick, recommend using hotkey to refresh immediately on seek)
Environment

Browser: Chrome
Version: Version 85.0.4183.121 (Official Build) (64-bit)
Operating System: Mac OS Catalina
Version: 10.15.6

Console errors (if any)
None
Link to where the bug is happening
https://codepen.io/eric-airtime/pen/xxObVQx

@Eric-Airtime I can vouch for that, I'm using it with shaka as well except on windows. Let me know if you figured it out please thank you.

@Eric-Airtime I can vouch for that, I'm using it with shaka as well except on windows. Let me know if you figured it out please thank you.

The workaround is that if you're able to detect this programmatically, reduce/increase play speed and then bring it back to normal. Somehow when you refresh while buffering the play speed setting probably gets messed up.

I too am facing the same. Is there any official fix for this other than the workaround mentioned?

repo: sampotts/plyr


text:
Quieter deprecation warnings, at least for beet completion

https://bbs.archlinux.org/viewtopic.php?id=195893
The warning should only be displayed when beets itself is started. As of now with every start of bash the warning message is shown without any hint where it originates from.

That's very strange—we actually already do this:

The warning should only be displayed when beets itself is started.

The message is printed when beets starts. It must be the case, somehow, that beets was starting every time bash started. Do you have any clues as to why that would be the case?

Apparently, this problem only occures, when the bash-completion package is installed. Maybe it is an Arch bug, as the feature was introduced via this commit: https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/beets&id=c0da9b9e41da2424948173d485621175d0ef4083

Ah, I see—yes, that's running beet completion every time the shell starts up. That's fine, I suppose, but it's not something I expected. Aside from perhaps leaking some output to the console like this, it also can take some time since spinning up the Python interpreter can be slow.
Instead of (or in addition to) asking the packagers not to install the completion script by default, we could make the beet completion command very quiet by default so that warnings are never printed. Or we could just turn off this warning by default—it's not particularly critical that people migrate!

I wanted to open an issue, but it seems that my problem belongs here too.
I too come from Arch Linux where beet completion is starting on each shell login.
But in my case beet's blb file is stored on an external drive which is not always mounted.
So after recent upgrade to version 1.3.11 I started seeing this:
error: database file /var/run/media/dima/Home/dima/data/musiclibrary.blb could not be opened

I guess in this case beets should simply not even try to open this file, or accept failure.

Hmm, actually is a bit worse: without this file in sight I cannot even run diagnostic commands like
beet --version or  beet --help
It throws this error and immediately quits.
Should I create a separate issue?

OK, that's another argument for quieter output in commands that might be run at shell startup. (I'd still recommend that people dump the beet completion output to a file and source it, though, since regenerating it each time could be slow.)
And yes, please do open another issue—it does seem like a good idea to let commands like version and help work without opening the database. I'm not yet sure how we'll actually accomplish that, but it does seem like a good goal. :smiley:

Yeah, 'eval'-ing beet completion on shell start up seems like a bad idea. I think this is questionable decision made by whoever created an AUR (=unofficial) beets package for Arch Linux.
As for the second thing, created an issue #1415.
Unforutnately I can't create a PR or assist otherwise, because I don't know Python (atm)

Apologies for the noise, I got a complaint from someone who thought adding one line to his .bashrc was too much of a hassle :P Adding that one line in /etc/bash_completion.d seemed like the only way to have bash completion enabled by default while taking enabled plugins into account, I went with it since I didn't experience issues, but obviously there are some. Just reverted that change in our repos, sometimes laziness is just not right ;)

@alucryd another solution is sourcing "beet completion" upon a request for completion. I had that at some point but not anymore. This seems to work:
_load_beet_completion() { eval "$(beet completion)"; }
complete -F _load_beet_completion beet

So the first time the user enters "beet " the completion will be produced and replace _load_beet_completion as the complete function.

Well actually I'm not sure I can take care of it: warnings/not critical logs should be silenced when we want to print completion → in beets.ui.commands.print_completion(). However this is triggered way after we read the config, open the library & co.! I don't really see an easy way to solve that.

@brunal True, it is a bit of an enigma—we really want to do lots of setup before we even know which command we're invoking. I also don't see an easy way around it. But if someone does have an ingenious idea, maybe the same mechanism could work for #1415…
Thanks for checking in, @alucryd. It was definitely a nice idea to have completion work out of the box. :smiley:

@brunal Thx for the tip, seems to work like a charm :)
@sampsyo Just gonna run this by those people who had issues, if all goes well I'll push bash completion back in our repos.

:+1:

authors: 45054 alucryd brunal dimsuz sampsyo

repo: sampsyo/beets


text:
beet mv is ineffective

beet mv will read and write the whole file and the unlink the original rather than just calling rename/renameat/renameat2, even if the target and destination files are at the same mountpoint. This is terribly inefficient.

Err, my bad. I actually mounted the same device at two different locations…


text:
Create Repo for Kraken Monitoring Solution

Sub-issue of #876
Create a repository for the Kraken Monitoring work.
Setup and format TBD but some root pieces must be based on other kraken repos (from Solas setup).

initial start of content.  missing solas setup: https://github.com/mikeln/kraken-monitor

p1

moved to samsung-cnct/issues#83

authors: coffeepac mikeln

repo: samsung-cnct/kraken-lib


text:
Allow Map keys to be a typealias of String

build(shadow): remove version suffix from ls and cli fat jars
fix(semantic): allow typealiases of String as Map keys again

The check was moved to the PostProcessor to ensure that typealiases have been fully resolved

repo: samtkit/core


text:
Total Number of Pages needs to exposed as an Option

Above enhancement will help in api dependant pagination.
Crowding up data in an array while initiation is not Api friendly.

@SUVADEEP thanks for the suggestion.

authors: SUVADEEP samu

repo: samu/angular-table


text:
macOS: in-app browser

As per https://forum.newsblur.com/t/macos-app-in-app-browser/10992/3. Let's push a new view for an in-app browser. Something we used to do a long time ago was support a right-ward swipe anywhere on the browser to go back to the story. That would be great and would make the in app browser a lower friction experience.

Let's also add the ability to choose different browsers: https://forum.newsblur.com/t/option-to-set-default-open-in-browser-for-macos-app/10989

repo: samuelclay/NewsBlur


text:
Android: Address lag on version 4.0

Looks like many people are complaining about lag. When most reinstall the app, everything's better. What can we do about this? I want an update about ASAP to either wipe the DB and make things fast or figure out where the lag is coming from.

Since the big DB refactor and addition of the maintenance routines, sqlite DB-wide lag seems to have been tamed.  If lag in any specific actions is found, let's create new issues for the specific problems.

Nicely done.

authors: dosiecki samuelclay


text:
Force fields.Undefined to be a singleton object

Change Summary
In various places of the code, we compare directly to fields.Undefined
since we assume it to be constant.
When new models get created however, the object is deepcopied and
is no longer identical with the original object.
We therefore add __copy__ and __deepcopy__ methods to ensure
that the copied objects are actually the same original object.
Related issue number
While I did does not address the exact error message #1578 had, schema generation on inherited generics that had required generic fields did not work at all,  so it might also fix this.
Checklist

[x] Unit tests for the changes exist
[ ] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)

great, thank you.

authors: daviskirk samuelcolvin

repo: samuelcolvin/pydantic


text:
Add RabbitMqDsn class

Change Summary
This PR is a continuation of #2049. I've respectfully maintained the commits, and fix the code according to @samuelcolvin previous comments.
I've also changed the name of the class RabbitmqDsn to RabbitMqDsn. As the "MQ" case should follow a similar analogy to "DSN".
Checklist

[x] Unit tests for the changes exist
[x] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

The image is from https://github.com/samuelcolvin/pydantic/pull/2049#pullrequestreview-540495435.

I don't understand what I'm supposed to add, as there's the description talking about amqp below. Would you mind clarifying?

please review :wink:

Hi @Kludex!

I think this class should be called AmqpDsn. AMQP is a standard and it's used by other brokers (StormMQ, ActiveMQ...). Also, RabbitMQ supports other protocols with different URI schemes (e.g. MQTT).
amqps should be added as an allowed scheme.
A username is not a requirement for a valid AMQP URI.

Whatever name suits people better is fine by me. I just want the type for AMPQ. But I can also include the other protocols supported for RabbitMQ.
For the two other comments, I'll address later on. Thank you!

please update.

please review

authors: Kludex nuno-andre samuelcolvin


text:
undefined method 'transform'

I'm getting the following error when I build:
jekyll 3.3.0 | Error:  undefined method 'transform' for #<Jekyll::Renderer:0x007fd77d960f58>
I don't get the error and my site builds successfully when I comment out the jekyll-haml gem.

has to do with jekyll-haml/ext/convertible

Patches welcome. I'm not maintaining this package at the moment.

I have the same error.

It's not compatible with Jekyll 3.3.0, somebody would need to submit a pull request for a patch to fix this @jckfa ☹

I don't remember much, but I don't think I got it working. Here's where I got:

Yep, that's it. I was hoping they'd respond upstream.

Oh wait yeah, that was a workaround pending jekyll/jekyll#5052, which stopped the errors, but then JH just had no effect on the Haml files, I couldn't figure out why, and I moved on.

jekyll-haml (0.1.5) released that should close this. Thanks @reivaxm and @joallard.

authors: jckfa joallard samvincent schoenwaldnils svpersteve

repo: samvincent/jekyll-haml


text:
Component lookup

Basic implementation of what is discussed over #23

Not needed anymore. v1.0 won't have the component helper


text:
tes

$bonk:32392$

end it @0xksure


text:
Upgrade to Django 3.2

Fixes https://github.com/sandiegopython/pythonsd-django/issues/112

I saw some errors in the CI log around not finding the Meetup and Youtube data. Is that anything to be concerned about? That's the only thing I have a question about, the rest of the PR is good to go.

That is normal. I'm going to do a separate PR around silencing logging during tests.

repo: sandiegopython/pythonsd-django


text:
[EOC-603] rodo information use solution from sandtime - PART 1 (app)

This branch contains only changes for application. For landing, I'll create separate PR.
Privacy-Policy and TermsOfUse are taken from SandTime. I changed links and email addresses and information about things that we don't use for sure: e.g tracking geolocation, store payment data, etc. I changed also list of vendors that we can pass to or get user data from eg. Amazon WS...
I'll send this policy information to statements to Łukasz for consultation.

I changed the license statement but: MIT license applies to the software, code. Of course, users (developers) can do everything with the software (code) and we provide no warranty for this. But here we have deployed and a full-working web application where Sandstream is the owner and administrator. So I think we have to write certain rules that apply to application users (not developers who can use the code any way they like).

repo: sandstreamdev/eoc


text:
Exec tachikoma update 20150128104854

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io

Coverage remained the same at % when pulling 5142f0b99c0e0ff753ab0b987227d46256504ee6 on tachikoma/update-20150128104854 into ddf31327ec9d3097b29bd6c49c1071d946319912 on master.

authors: coveralls sanemat

repo: sanemat/age


text:
tokens: get raw value from string literal

fixes #62

refs #58

repo: sanemat/go-sql-parser


text:
Command-line binary

From STDIN to STDOUT, all options supported as arguments

Coverage remained the same at 68.198% when pulling 2476682d418eea3103ee52f2512ec6523ec26dc7 on brainsucker-na:cmdline-binary into 48d1c64478fba81454e98372530e4c4edecba532 on sanex3339:master.

thank you!

authors: brainsucker-na coveralls sanex3339


text:
Runtime error on editing asset details.

Unhandled Runtime error on editing asset details from meatball menu option “Media” for images that are within an array/block.
Error:   Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
To Reproduce
Steps to reproduce the behavior:

Go to a image that is inside a block/array in sanity.
From the meatball menu, select "Media"
Select the image you just uploaded.
Add/edit any field in Asset details of that image.
Click "Save and Close

Expected behavior
Expected behavior is to get the details saved, but instead sanity crashes and shows the above error.
Screenshots

Below is the error with latest sanity media plugin version:

Plugin and environment information:

"sanity-plugin-media": "^2.3.2"
"sanity": "^3.47.1",

Having the same issue

authors: andelkocvjetkovic shahanshaada

repo: sanity-io/sanity-plugin-media


text:
Error! Detecting port 45087 timed out after 300000ms

Error! Detecting port 45087 timed out after 300000ms
Unhandled rejection: Error: Detecting port 45087 timed out after 300000ms
at checkForPort (/usr/lib/node_modules/now/dist/index.js:224681:19)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at DevServer.runDevCommand (/usr/lib/node_modules/now/dist/index.js:224485:9)
at DevServer._start (/usr/lib/node_modules/now/dist/index.js:224105:9)

Add token in .env file solved problem
Paste in token, and remove .template from the file name to make it a .env file.
Do not commit the .env file or the token to git!
SQUIZZY_WRITE_TOKEN=

repo: sanity-io/squizzy


text:
fix(visual-editing): Don't show "Open in Studio" offscreen when at top of screen

For things like navbars or logos that might appear on the top of the screen, the overlay could be cut off. This moves the "Open in Studio" below the element in that case.
Before:

After:

@rdunk I'm not sure who to ping for a review, but you seem like a good person to try :)

repo: sanity-io/visual-editing


text:
After adding a song to a playlist the notification is not showing

Do you have the latest versions of Spicetify, Spotify and Better Bloom?

[X] I'm using the latest versions of Spicetify, Spotify and Better Bloom

Is there already an issue for your problem?

[X] I have checked older issues, open and closed

Is your problem definitely caused by the theme?

[X] I have checked the app behavior without the theme and it is different

Environment & Computer Info
Spotify version: 1.2.38.720.ga4a70a0e
- Installed from: (Windows Store, Spotify site, Flatpak, etc) Spotify Site
- Spicetify version:v2.36.11
- Color scheme: Dark
- Bloom installation method: (Spicetify Marketplace/PowerShell script/Bash script/Manual) Marketplace

Description
When i add a song to a playlist the notification is unreadable
Screenshots

it seems like no notification is visible; i tried changing shuffle on and off that also not visible

oops soory for the inconvenence !
i will checkout that issue and fix it rn !

repo: sanoojes/better-bloom


text:
🛑 KUBECOST_URL is down

In e01de80, KUBECOST_URL ($KUBECOST_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KUBECOST_URL is back up in e36a34e after 13 minutes.

repo: santomaharaj/upp


text:
Security Key Invalid Error

Hi ,
i am getting error as security key invalid when we try to access using AWS STS credentials. But using that profile credentials i am able to access all aws services. I am using that same role in other programs for signing it works fine. When i try to use the same credentials in aws-es-kibana  getting security key invalid error. Kindly some one help me to solve this issue.
Mohan

Same problem. This was working, but now amazon rejects it with message "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method."

Seeing the same problem. This was working until very recently. We migrated to an alternative proxy, which doesn't seem to suffer from this issue.

Had the same problem, but the cause was the wrong use of the proxy.
The endpoint argument should be the hostname part of the URL!
This fixed the issue for me.
so instead of:
aws-es-kibana https://search-xxxxxxxxxxxxxxxxxxxxx.eu-west-1.es.amazonaws.com

you should do:
aws-es-kibana search-xxxxxxxxxxxxxxxxxxxxx.eu-west-1.es.amazonaws.com

Resolved, Please drop protocol Thanks @nlv09165

repo: santthosh/aws-es-kibana


text:
Angular 8

@sanuradhag  Getting below error in Angular 8
ERROR in ../node_modules/angular-switchable-grid/grid.component.ts(87,4): error TS2554: Expected 2 arguments, but got 1.

Hi @ashwinichetan,
This library was developed using angular 4. I will update this latest angular version. Feel free to create a pull request if you managed to update the library to latest angular version.

authors: ashwinichetan sanuradhag

repo: sanuradhag/angular-switchable-grid


text:
Execute sub generator, based on some prompt value

Hello.
Its possible to execute a sub-generator only if some prompt has a specific value?

Maybe we can add a new type of action:
{
  action: 'run-generator',
  generator: './generators/some-generator',
  when(answers) {
    return answers.someCondition
  }
}

Yes, I think that would work well.
My use case for this is for example, lets say I want to generate a LICENSE file in multiple generators. I dont want to repeat the code to ask the user to select the type of license for example. Instead I can use another generator to do the task.

authors: brpaz egoist

repo: saojs/sao


text:
Enhance readme.md to include more setup info...

Got several feedback from external users.
It would be great to explain after the backend/front-end setup:

[ ] The Tenant concept and how to access it in the Dashboard
[ ] How to create a super admin user
[ ] How to create a Tenant
[ ] Validate the created Admin user in the created Tenant
[ ] Log into the Tenant + Onboard new charging station (create Token)
Thanks!

Created a wiki page to guide new comers through the maze and give generic tips;
Slightly amended the onboarding guide powerpoint and README.md

repo: sap-labs-france/ev-server


text:
sap_swpm: wrong defaults or check

The role fails with the following error

TASK [community.sap_install.sap_swpm : SAP SWPM Pre Install - Check if installation using SAP Maintenance Planner] ***************************************************************************
fatal: [nodea.lab.example.com]: FAILED! =>
  msg: |-
    The conditional check 'sap_swpm_mp_stack_path | length > 0' failed. The error was: Unexpected templating type error occurred on ({% if sap_swpm_mp_stack_path | length > 0 %} True {% else %} False {% endif %}): object of type 'NoneType' has no len()

    The error appears to be in '/home/student/.ansible/collections/ansible_collections/community/sap_install/roles/sap_swpm/tasks/pre_install/install_type.yml': line 37, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:

    - name: SAP SWPM Pre Install - Check if installation using SAP Maintenance Planner
      ^ here

The corresponding variables in the default file are defined as:
# MP Stack
sap_swpm_mp_stack_path:
sap_swpm_mp_stack_file_name:

The probe is wrong, as the variable is defined and NONE, hence the length cannot be determined.
This could be a possible probe:
(sap_swpm_mp_stack_path is none) or (sap_swpm_mp_stack_path| trim = '')

In pre_install.yml we need then:
./pre_install.yml:    sap_swpm_swpm_command_extra_args: "SAPINST_SKIP_DIALOGS=true SAPINST_START_GUISERVER=false {{ sap_swpm_swpm_command_virtual_hostname }} {{ sap_swpm_swpm_command_mp_stack|d('') }}"

Accidental commit to this dev branch and not my own, fix already in place in dev branch, closing issue

authors: rhmk sean-freeman


text:
[greenhouse-mng apps] write an issue in greenhouse and check with Uwe

[teams]:

no errors if no login succeed or login not done. Just a black window
display errors from api client
embedded prop seems not to be right implemented  {props.embedded === false}
Implement a mock if you want to visualize anything. If not, we'll need to use a real login in the management app, being careful not to commit it accidentally
Remove teams side navigation, instead add a filter section (similar to supernova) where teams can be selected from a Select box

Done. See here: https://github.wdf.sap.corp/cc/greenhouse/issues/54

https://github.wdf.sap.corp/cc/greenhouse/tree/main/ui/team-admin

authors: ArtieReus edda

repo: sapcc/juno


text:
Update Readme.md

I show that option normalize was not documented but it was used on file:
task/engines/fontforge/generate.py (line 68)

Thanks!

repo: sapegin/grunt-webfont


text:
method CONVERT_COLUMNROW2COLUMN_A_ROW

In method CONVERT_COLUMNROW2COLUMN_A_ROW of class zcl_excel_common
there is the search of regex :
FIND REGEX '^(\D+)(\d+)$' IN lv_columnrow SUBMATCHES e_column                                                        pane_cell_row_a.
I guess it should be like this:
FIND REGEX '^(\D*)(\d*)$' IN lv_columnrow SUBMATCHES e_column                                                      pane_cell_row_a.,
i am making some custom code using these classes and i am facing with some problems when i am trying to read coordinates of range with value like this : =Лист1!$B:$C or this =Лист1!$8:$8.
-------------------------------------------------------------------------------------------------------------------------
I have create new method and named it CONVERT_RANGE2COORDINATES
with the following code
 data: lv_column_start_alpha type zexcel_cell_column_alpha,
        lv_column_end_alpha type zexcel_cell_column_alpha.
  CONVERT_RANGE2COLUMN_A_ROW(
    exporting
      I_RANGE        = i_range
    importing
      E_COLUMN_START = lv_column_start_alpha    " Cell Column Start
      E_COLUMN_END   = lv_column_end_alpha    " Cell Column End
      E_ROW_START    = e_row_start    " Cell Row
      E_ROW_END      = e_row_end    " Cell Row
      E_SHEET        =  e_sheet   " Title
  ).
  try.
      e_column_start = CONVERT_COLUMN2INT( lv_column_start_alpha ).
    CATCH zcx_excel.
      e_column_start = 0.
  endtry.
  IF lv_column_start_alpha is not initial and lv_column_end_alpha is initial.
    e_column_end = e_column_start.
  else.
    try.
        e_column_end = CONVERT_COLUMN2INT( lv_column_end_alpha ).
      catch zcx_excel.
        e_column_end = 0.
    ENDTRY.
  ENDIF.

I suppose that method CONVERT_RANGE2COLUMN_A_ROW should return values e_column_start = B and e_column_end = C in first case ( and zeroes in rows because i am using "infinite" range ) and in second case e_row_start = 8 and e_row_end = 8 ( and zeroes in columns ) , but it returns only empty values because regex is wrong. I guess that my solution with new regex could fix the problem ( DEMO_REGEX_TOY show that its fine ).

Hi @ferenci
With PR #853 there will be an additional paramater to allow/enable 1 dimensional ranges like  $2:$7 or $A:$C parsing
method zcl_excel_common=>convert_range2column_a_row parameter i_allow_1dim_range = abap_true

@bigld There's no answer, maybe we can close this issue? Thanks.

authors: bigld ferenci sandraros


text:
Request for "Event-specific Document Ranking through Multi-stage Query Expansion using an Event Knowledge Graph" PDF

Dear saraabdollahi,
I am Lean, and I am highly interested in your work on the "MusQuE" GitHub repository, particularly regarding the "Event-specific Document Ranking through Multi-stage Query Expansion using an Event Knowledge Graph."
In my academic research, I have identified that literature in this area is crucial to my work. I would like to request access to the relevant PDF document to gain a more in-depth understanding of your contributions to this project.
If there are alternative ways to access this information, please let me know. I would greatly appreciate your assistance.

Hi Lean,
Thank you for your interest in my work. Since this is a work of a paper
accepted at the ECIR2024, I can't put the link in the repository yet but
soon it will get published. Although, I'm sending you my submitted paper
here.  Since it's not formally published by the conference yet, I'd
appreciate it if you could keep it confidential. I hope this helps. Please
let me know if you have any questions regarding my paper.
Best regards,
Sara
On Sun, Feb 25, 2024 at 1:30 PM Lean @.***> wrote:

Dear saraabdollahi,
I am Lean, and I am highly interested in your work on the "MusQuE" GitHub
repository, particularly regarding the "Event-specific Document Ranking
through Multi-stage Query Expansion using an Event Knowledge Graph."
In my academic research, I have identified that literature in this area is
crucial to my work. I would like to request access to the relevant PDF
document to gain a more in-depth understanding of your contributions to
this project.
If there are alternative ways to access this information, please let me
know. I would greatly appreciate your assistance.
—
Reply to this email directly, view it on GitHub
https://github.com/saraabdollahi/MusQuE/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOOOLIDPGTANMNYHMYPTEXLYVMVH7AVCNFSM6AAAAABDY2P27WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TENZUGI3TSNY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

authors: Crownzz saraabdollahi

repo: saraabdollahi/MusQuE


text:
Not able to install pystache

RecursionError: maximum recursion depth exceeded
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pystache
Failed to build pystache
ERROR: Could not build wheels for pystache, which is required to install pyproject.toml-based projects

I'm hitting the same problem.  As a workaround, run:
pip install setuptools==58.0.0

before attempting to install pystache.  Similar to this issue https://stackoverflow.com/questions/69100275/error-while-downloading-the-requirements-using-pip-install-setup-command-use-2

$ pipx install pantsbuild.pants
...
Collecting pystache==0.5.3 (from pantsbuild-pants)
  Downloading pystache-0.5.3.tar.gz (74 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.8/74.8 kB 2.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Warning: 'classifiers' should be a list, got type 'tuple'
      error in pystache setup command: use_2to3 is invalid.
      pystache: using: version '67.6.1' of <module 'setuptools' from '/home/user-name/.local/pipx/shared/lib/python3.10/site-packages/setuptools/__init__.py'>
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
...

repo: sarnold/pystache


text:
Fixes #146, fixes #216, fixes #218, and fixes #254

Displays no-address locations on map
Displays all mappable resources unpaginated on map
Removes map marker clustering
Cleans up display of map info window
Displays resource-specific map icons

This PR will also require a resourcreset in order to display the new no-address locations. We may be early enough along that it's not a problem to just run one more reset to display this -- or we may want to consider writing a different script to update those records accordingly. Input needed.

authors: ajlouie eleanorgraham

repo: sartography/star-drive


text:
Combination with print styles ?

Hi there,
I've seen a particular case: a website in made in mobile-first, and it would need for printing output to have desktop styles applied for print.
Would it be possible to generate something like
@media (min-width: 20em), print {

with sass-mq ?
Thanks for your advice,
Nico

Thank you for the question!
With sass-mq the way to serve desktop styles to print would be to output a print-specific stylesheet with responsive mode turned off.
If this is something that you'd rather do with the syntax you suggested, feel free to fork sass-mq and add this feature to it, it should be pretty straightforward.

Closing this as there was no activity for a month.

repo: sass-mq/sass-mq


text:
gulp local sass

Hi,
When I run gulp local it is taking me an hour to run the command. It is getting stuck at the sass for a long time.
I have attached the image below

NPM version (npm -v): 3.10.10
Node version (node -v):6.11.5
Node Process (node -p process.versions):
{ http_parser: '2.7.0',
node: '6.11.5',
v8: '5.1.281.108',
uv: '1.11.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
icu: '58.2',
modules: '48',
openssl: '1.0.2l' }
Node Platform (node -p process.platform): win32
Node architecture (node -p process.arch): x64
node-sass version (node -p "require('node-sass').info"):
npm node-sass versions (npm ls node-sass): `-- (empty)
npm ERR! code 1

There's not much we can do.
A. I don't know what gulp local sass is
B. The output of the node sass version commands suggests you don't even
have node sass installed.
On Fri., 23 Mar. 2018, 3:36 am deepti2511, notifications@github.com wrote:

Hi,
When I run gulp local it is taking me an hour to run the command. It is
getting stuck at the sass for a long time.
I have attached the image below

NPM version (npm -v): 3.10.10
Node version (node -v):6.11.5
Node Process (node -p process.versions):
{ http_parser: '2.7.0',
node: '6.11.5',
v8: '5.1.281.108',
uv: '1.11.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
icu: '58.2',
modules: '48',
openssl: '1.0.2l' }
Node Platform (node -p process.platform): win32
Node architecture (node -p process.arch): x64
node-sass version (node -p "require('node-sass').info"):
npm node-sass versions (npm ls node-sass): `-- (empty)
npm ERR! code 1

[image: capture]
https://user-images.githubusercontent.com/37667623/37784054-fbd46070-2dc4-11e8-821b-b66806e9ef47.PNG
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/2303, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWB7YrnxU9hBvZAtBt8a2gFy43P1cks5tg9MbgaJpZM4S3ZFo
.

repo: sass/node-sass


text:
Ability to add custom loss in OutputLayer

For class imbalance it is sometimes necessary to pass a custom loss function or a weighted loss. Especially for detection and segmentation, imbalance cannot be handled via sampling strategies.

Hi Julian,
While there is no pre-defined weighted loss, we do support FCMP type of loss, which is a user-defined loss function. You can write your own loss function with parameter fcmpAct and fcmpErr.

Hi Julian,
Please let me know if it solves the problem and we can go ahead closing this issue.
Thanks,
Maggie

@JulianMar11  - there is an example in the SAS documentation that shows how to define and use both a custom activation and a custom loss function.  Please see this page.

@JulianMar11 - did the documentation page help with your question?

No further feedback from @JulianMar11 - closing.

repo: sassoftware/python-dlpy


text:
Incorrect variable for property value warning

Fixes an issue with the variable-for-property rule where !important flags and spaces were showing as lint errors. Added extra tests and clarified with example in docs.
Fixes #714
<DCO 1.1 Signed-off-by: Dan Purdy dan@danpurdy.co.uk>

Coverage decreased (-0.05%) to 97.225% when pulling 342620091804946be57d4d91e65b211c584286e1 on DanPurdy:feature/fix-variable-for-property into b2f852393a7a2e492dc3f6e2652b0f11f7da8428 on sasstools:develop.

Coverage decreased (-0.05%) to 97.225% when pulling 557c625f86bcb4cc63ae784c696c05792a59aa4a on DanPurdy:feature/fix-variable-for-property into 66ab2d5a1e763a679f5257ef52f66f9988489c85 on sasstools:develop.

authors: DanPurdy coveralls

repo: sasstools/sass-lint


text:
Layer Cache not found

I use the action with the following code in order to make sure that PRs' cache do not affect master:
    - uses: satackey/action-docker-layer-caching@6b09a11416d285a6bf2a9d1ce2484c878f7c985e
      with:
        key: dlc_${{ github.ref }}_{hash}
        restore-keys: |
          dlc_refs/heads/master_
          dlc_${{ github.ref }}_

However, when the action run on a new PR, I get the following error:
Run satackey/action-docker-layer-caching@6b09a11416d285a6bf2a9d1ce2484c878f7c985e
  with:
    key: dlc_refs/pull/32/merge_{hash}
    restore-keys: dlc_refs/heads/master_
  dlc_refs/pull/32/merge_

    concurrency: 4
Received 14363 of 14363 (100.0%), 0.7 MBs/sec
Cache Size: ~0 MB (14363 B)
/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/6c9bf4f4-3bb5-420a-9886-8bdb81eed2d9/cache.tzst -P -C /home/runner/work/ridewithto_cloudrun/ridewithto_cloudrun
Error: Layer cache not found: {"id":"bfc566732015e74554c940abfdedb5ca215be6a392cad0f189b171298527cc09"}
##[error]Error: Layer cache not found: {"id":"bfc566732015e74554c940abfdedb5ca215be6a392cad0f189b171298527cc09"}
    at LayerCache.restoreSingleLayerBy (/home/runner/work/_actions/satackey/action-docker-layer-caching/6b09a11416d285a6bf2a9d1ce2484c878f7c985e/dist/ttsc-dist/main.js/index.js:33173:19)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Promise.all (index 1)
    at async LayerCache.restoreLayers (/home/runner/work/_actions/satackey/action-docker-layer-caching/6b09a11416d285a6bf2a9d1ce2484c878f7c985e/dist/ttsc-dist/main.js/index.js:33162:58)
    at async LayerCache.restore (/home/runner/work/_actions/satackey/action-docker-layer-caching/6b09a11416d285a6bf2a9d1ce2484c878f7c985e/dist/ttsc-dist/main.js/index.js:33140:42)
    at async main (/home/runner/work/_actions/satackey/action-docker-layer-caching/6b09a11416d285a6bf2a9d1ce2484c878f7c985e/dist/ttsc-dist/main.js/index.js:43988:
25)

Changing the key prefix from dlc to something works, but it's not a practical workaround..

I've investigated it a bit further, the problem is, I think, that while dlc_refs/heads/master_ cache exists, dlc_${{ github.ref }}_ does not.
So it restores root with  dlc_refs/heads/master_ cache but then tries to restore the specific layer with key i.e. dlc_${{ github.ref }}_ and obviously fails.
As seen here:
https://github.com/satackey/action-docker-layer-caching/blob/0c6d193ecc434135211fc290d7d3b32d7a0d1cf2/src/LayerCache.ts#L202-L213
restoring is being done with the store key, it should instead use the same restore key which the root was restored from.

So, I believe the main problem is that single leyer restoration do not use the restore-keys.
But mapping restore keys to layer specific restore key is a bit complicated, because they do not include "{hash}"..
What do you think?

I have a similar issue when running satackey/action-docker-layer-caching@v0.0.5. It doesn't fail every single time, but quite often.

Been having the same issue over here: https://github.com/benmezger/dotfiles/runs/975814502?check_suite_focus=true

Thank you for your report.

restoring is being done with the store key, it should instead use the same restore key which the root was restored from.

You're right. I'll fix this shortly.

So, I believe the main problem is that single leyer restoration do not use the restore-keys.
But mapping restore keys to layer specific restore key is a bit complicated, because they do not include "{hash}"..
What do you think?

Currently the hash of root key is created by the image list to be cached.
I'm going to reduce the complication by using the hash of the metadata file in the root cache as the key.
This allows you to find the key before the {hash} is replaced at restoring step.
Thus, the layer id stored in the root cache metadata can be used as a layer cache key, even when using a different restore-key than the key.

I have reproduced this in this result and fixed it in v0.0.7 (#22).
Please check in your environment that this version works successfully.

@satackey Nice!
Should I use a new cache key for the new version? (I guess it's not compatible with my existing cache)

works for me! Thank you!

@NoamDev
As you say, it's not compatible with the existing cache, but I've made some changes below so you don't have to.
I found that in restoring using @actions/cache library, the cache was not found for different file paths, even if the keys were the same.
I changed the internal temporary path used for the image cache to include the tag or hash specified in the uses.
Thus your existing cache will not be restored with the new version.

occasionally falling for me with satackey/action-docker-layer-caching@v0.0.8

authors: NoamDev benmezger djarecka jayamorin satackey

repo: satackey/action-docker-layer-caching


text:
Bug(qq): 群消息中session.event.message.content未设置

https://github.com/satorijs/satori/blob/8f16bf56407acec3f9a873d0df44ce46844c90ea/adapters/qq/src/utils.ts#L30-L58

cc @XxLittleCxX

repo: satorijs/satori


text:
Missing file VERSION for source installation from PyPI

When doing an install from source from PyPI, the installation fails because the VERSION file is missing:
❯ pip install dask-pytorch --no-binary :all:
Collecting dask-pytorch
  Downloading dask-pytorch-0.1.0.tar.gz (8.1 kB)
    ERROR: Command errored out with exit status 1:
     command: /Users/jqi/miniconda3/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nq/vp3dgt812jgb0q09rh5l706c0000gn/T/pip-install-lwhzmu1h/dask-pytorch/setup.py'"'"'; __file__='"'"'/private/var/folders/nq/vp3dgt812jgb0q09rh5l706c0000gn/T/pip-install-lwhzmu1h/dask-pytorch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/nq/vp3dgt812jgb0q09rh5l706c0000gn/T/pip-pip-egg-info-_i2ttudx
         cwd: /private/var/folders/nq/vp3dgt812jgb0q09rh5l706c0000gn/T/pip-install-lwhzmu1h/dask-pytorch/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/nq/vp3dgt812jgb0q09rh5l706c0000gn/T/pip-install-lwhzmu1h/dask-pytorch/setup.py", line 7, in <module>
        with open("VERSION", "r") as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This won't be a problem for most users because pip will install from the wheel distribution, but in some cases the wheel won't work and pip will fall back to unpacking the tar archive and installing from source. You can download the tar archive manually and see that indeed the VERSION file is missing.
VERSION is a nonstandard file for setup.py builds, so you'll need to create a MANIFEST.in file that explicitly includes it. https://packaging.python.org/guides/using-manifest-in/

Thanks @jayqi !
I can add this and add a test that installs from the tarball produced by python setup.py sdist so we catch other issues with non-wheel installs in the future.

authors: jameslamb jayqi

repo: saturncloud/dask-pytorch


text:
fix: next.js init error.

Please provide enough information so that others can review your pull request:
Motivation
get this error info when use React Native + Next.js:

Explain the motivation for making this change. What existing problem does the pull request solve?

Fix the case where the width is 0 when next.js is initialized.

Test plan

Check if the TabView load.

hi, @satya164!
thank you so much for this library!
we got this error using React Native + Next.js, hope you can review it, let's make your library even better!
( I've added a lot of features to this lib, which will be released soon!)


text:
🛑 cubeent is down

In 6b90b9e, cubeent (http://www.cubeent.co.kr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cubeent is back up in e5c81bc after 10 minutes.

repo: savorfamily/upptime


text:
Some photos are never uploaded

I'm having some problems with photos which are not being uploaded to the server. As a context, if it is relevant, I recently went into a trip in which I was offline, so I tried to sync over 100 photos once I connected to the Internet.
I sent you logs by email (same subject as this issue), in which I manually tried to sync one of the photos that doesn't want to be uploaded.

Duplicate of https://github.com/savvasdalkitsis/uhuruphotos-android/issues/454

authors: nagarrido savvasdalkitsis

repo: savvasdalkitsis/uhuruphotos-android