Migration fails with MySQL: ValueError: Cannot find a PRIMARY KEY constraint on table cmsplugin_picturepublic

Can't migrate django-cms using MySQL with MYISAM or INNODB as engine. The output:
Python 2.7
mysqld  Ver 5.5.15
django-cms 2.2rc3
./manage.py migrate cms
Running migrations for cms:
 - Migrating forwards to 0035_auto__add_field_globalpagepermission_can_view__add_field_pagepermissio.
 > cms:0001_initial
 > picture:0001_initial
 > picture:0002_link_rename
 > picture:0003_freeze
 > cms:0002_auto_start
 > cms:0003_remove_placeholder
 > cms:0004_textobjects
 > cms:0005_mptt_added_to_plugins
 > cms:0006_apphook
 > cms:0007_apphook_longer
 > cms:0008_redirects
 > cms:0009_added_meta_fields
 > cms:0010_5char_language
 > cms:0011_title_overwrites
 > cms:0012_publisher
 > picture:0004_publisher
 > picture:0005_table_rename
 ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had
 ! to leave it in an interim state between migrations.

! You *might* be able to recover with:   = RENAME TABLE `cmsplugin_picture` TO `picture_picture`; []
   = RENAME TABLE `cmsplugin_picturepublic` TO `picture_publicpicture`; []

 ! The South developers regret this has happened, and would
 ! like to gently persuade you to consider a slightly
 ! easier-to-deal-with DBMS.
 ! NOTE: The error which caused the migration to fail is further up.
Traceback (most recent call last):
  File "./manage.py", line 14, in <module>
    execute_manager(settings)
  File "/Library/Python/2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/Library/Python/2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Library/Python/2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Library/Python/2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/management/commands/migrate.py", line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/__init__.py", line 191, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/migrators.py", line 221, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/migrators.py", line 292, in migrate_many
    result = self.migrate(migration, database)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/migrators.py", line 125, in migrate
    result = self.run(migration)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/migrators.py", line 99, in run
    return self.run_migration(migration)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/migrators.py", line 81, in run_migration
    migration_function()
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/migration/migrators.py", line 57, in <lambda>
    return (lambda: direction(orm))
  File "/Users/sylvain/Documents/Entreprise/sources/Django-Projects/karmapolis_before_new_voting/cms/plugins/picture/migrations/0005_table_rename.py", line 18, in forwards
    db.drop_primary_key("cmsplugin_picturepublic")
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/db/generic.py", line 24, in func
    return getattr(self, attrname)(*args, **kwds)
  File "/Library/Python/2.7/site-packages/South-0.7.3-py2.7.egg/south/db/generic.py", line 721, in delete_primary_key
    raise ValueError("Cannot find a PRIMARY KEY constraint on table %s" % (table_name,))
ValueError: Cannot find a PRIMARY KEY constraint on table cmsplugin_picturepublic

this is a known issue and for NEW installation (as in, new database) please use syncdb --all and migrate --fake. ONLY DO THIS ONCE! After you did that ONCE on a database, use the standard syncdb and migrate again.


Reloading BlueMap makes BlueBridge fail to show worldguard regions.

This was user error, I made too many changes the the defaults, without realizing that plots didn't seem to inherit the template flags readily.


Add back svg files to node_modules

Fixes https://github.com/twitter/twemoji/issues/356

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


After setting the buttons I get the following traceback which seems to be an compatibility issue with discord.py

File "C:\Users\DesiDev\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiofiles\base.py", line 75, in aenter
self._obj = await self._coro
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: init() got an unexpected keyword argument 'linked_to'`

If you're using discord.py 2.0, yes, there's a clash with classes because we both have a Button class. Separating the class names should fix the problem
from reactionmenu import Button as RMButton


Epic/pue 74/deploy

Description

서버 배포 마쳤습니다.

Related Issue

This project only accepts pull requests related to open issues
If suggesting a new feature or change, please discuss it in an issue first
If fixing a bug, there should be an issue describing it with steps to reproduce
Please link to the issue here:
#8 #9

Motivation and Context

Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
NHN클라우드 서버에 업로드 했습니다.

How Has This Been Tested?

Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc.
SSH 클라이언트를 통한 원격 접속 테스트

Screenshots

Task linked: PUE-74 [EPIC]서버배포


BUG: sparse matrix-vector multiplication fails with flattened sparse vectors

Describe your issue.
With a sparse (CSR) matrix A and flat (N,) vector v, sparse matrix-vector multiplication A @ v works as expected.  If v is sparse and flat, then there is a mismatch in dimension.  If v is sparse with dimension (N,1) then the result is fine.  For example:
v = sparse.csr_array([8, 9, 0.])        # does not work
v = sparse.csr_array([[8, 9, 0.]]).T    # works

I think that sparse matrix-sparse vector multiplication should match the sparse matrix-dense vector multiplication behavior, in terms of dimensions.
It looks like array inputs are checked here:
https://github.com/scipy/scipy/blob/c7835c89f2ff593db4f68d8248f91738672d9bd4/scipy/sparse/_base.py#L614
but the error is triggered here: https://github.com/scipy/scipy/blob/c7835c89f2ff593db4f68d8248f91738672d9bd4/scipy/sparse/_compressed.py#L190
Reproducing Code Example
row = np.array([0, 0, 1, 2, 2, 2])
col = np.array([0, 2, 2, 0, 1, 2])
data = np.array([1, 0, 0, 4, 5, 0.])
A = sparse.csr_array((data, (row, col)), shape=(3, 3))
A.eliminate_zeros()

v = sparse.csr_array([8, 9, 0.])        # does not work
#v = sparse.csr_array([[8, 9, 0.]]).T    # works
v.eliminate_zeros()

print(A @ v.toarray())    # sparse x dense
print((A @ v).toarray())  # spasre x sparse (to array for printing)

Error message
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[316], line 12
      9 v.eliminate_zeros()
     11 print(A @ v.toarray())    # sparse x dense
---> 12 print((A @ v).toarray())  # spasre x sparse (to dense for printing)

File ~/.venv/general/lib/python3.12/site-packages/scipy/sparse/_base.py:669, in _spbase.__matmul__(self, other)
    666 if isscalarlike(other):
    667     raise ValueError("Scalar operands are not allowed, "
    668                      "use '*' instead")
--> 669 return self._matmul_dispatch(other)

File ~/.venv/general/lib/python3.12/site-packages/scipy/sparse/_base.py:580, in _spbase._matmul_dispatch(self, other)
    578     if self.shape[-1] != other.shape[0]:
    579         raise ValueError('dimension mismatch')
--> 580     return self._matmul_sparse(other)
    582 # If it's a list or whatever, treat it like an array
    583 other_a = np.asanyarray(other)

File ~/.venv/general/lib/python3.12/site-packages/scipy/sparse/_compressed.py:564, in _cs_matrix._matmul_sparse(self, other)
    562 if new_shape == ():
    563     return np.array(data[0])
--> 564 return self.__class__((data, indices, indptr), shape=new_shape)

File ~/.venv/general/lib/python3.12/site-packages/scipy/sparse/_compressed.py:112, in _cs_matrix.__init__(self, arg1, shape, dtype, copy)
    109 if dtype is not None:
    110     self.data = self.data.astype(dtype, copy=False)
--> 112 self.check_format(full_check=False)

File ~/.venv/general/lib/python3.12/site-packages/scipy/sparse/_compressed.py:164, in _cs_matrix.check_format(self, full_check)
    161 M, N = self._swap(self._shape_as_2d)
    163 if (len(self.indptr) != M + 1):
--> 164     raise ValueError(f"index pointer size {len(self.indptr)} should be {M + 1}")
    165 if (self.indptr[0] != 0):
    166     raise ValueError("index pointer should start with 0")

ValueError: index pointer size 4 should be 2

SciPy/NumPy/Python version and system information
1.14.0 2.0.0 sys.version_info(major=3, minor=12, micro=7, releaselevel='final', serial=0)
Build Dependencies:
  blas:
    detection method: extraframeworks
    found: true
    include directory: unknown
    lib directory: unknown
    name: accelerate
    openblas configuration: unknown
    pc file directory: unknown
    version: unknown
  lapack:
    detection method: extraframeworks
    found: true
    include directory: unknown
    lib directory: unknown
    name: accelerate
    openblas configuration: unknown
    pc file directory: unknown
    version: unknown
  pybind11:
    detection method: config-tool
    include directory: unknown
    name: pybind11
    version: 2.12.0
Compilers:
  c:
    commands: cc
    linker: ld64
    name: clang
    version: 15.0.0
  c++:
    commands: c++
    linker: ld64
    name: clang
    version: 15.0.0
  cython:
    commands: cython
    linker: cython
    name: cython
    version: 3.0.10
  fortran:
    commands: gfortran
    linker: ld64
    name: gcc
    version: 13.3.0
  pythran:
    include directory: ../../../../../../private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-build-env-n5qkg0as/overlay/lib/python3.12/site-packages/pythran
    version: 0.16.1
Machine Information:
  build:
    cpu: aarch64
    endian: little
    family: aarch64
    system: darwin
  cross-compiled: false
  host:
    cpu: aarch64
    endian: little
    family: aarch64
    system: darwin
Python Information:
  path: /private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/cibw-run-4oat_w_z/cp312-macosx_arm64/build/venv/bin/python
  version: '3.12'

Thanks for this bug report @lukeolson !!
I can verify this behavior and agree that it is a bug.
It looks like in the final step of creating the new array, the result is being treated as a mixture of 1D and 2D.
I should have a fix soon. But the real concern for me is why there isn't a test for this case.
There is a workaround: Use<EMAIL_ADDRESS>instead of A@v
That works because the answer is 1D, so it's mathematical transpose is 1D. So the mathematical transpose of the expression, when put into code, computes the desired result too.
Thanks again!!


Only set attributes that exists.

When referencing a static alembic the alembic node is not created. When updating this, the code was hardcoded to set certain attributes rather than setting attributes that exists.

very good catch. thanks


Admin functions on home page

Added admin features and modal to the homepage
ref isue #44

This looks great!  I love how you hid some of the admin functionality behind a small button.  The design updates in the Add Creators modal are a nice touch too.  Here are a couple things I found:
This admin panel should only be visible when connected as the owner or an admin.

Let's capitalize these to be Fund / Rescue Eth / Rescue Token

commited the changes !


Adding corrected gems back in to build.

Description
I accidentally merged a dependabot PR that removed ucrt support for omnibus. Omnibus now uses Ruby 3.1 which requires ucrt support.
Related Issue

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] All commits have been signed-off for the Developer Certificate of Origin.

superceded.


Error in npm install (may due to expo-detox-hook)

What's going on?
got error like this:
error /Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook: Command failed.
Exit code: 1
Command: node scripts/postinstall.js
Arguments:
Directory: /Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook
Output:
+ xcodebuild -version
+++ dirname '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/scripts/build_framework.ios.sh'
++ dirname '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/scripts'
+ rootPath='/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook'
++ node -p 'require('\''/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/package.json'\'').version'
+ version=1.0.10
++ echo 1.0.10
++ xcodebuild -version
++ shasum
++ awk '{print $1}'
+ sha1=5a799e947a5c6a97fffdc373ace463985005b26a
+ frameworkDirPath=/Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a
+ frameworkPath=/Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a/ExpoDetoxHook.framework
+ main
+ '[' -d /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a ']'
+ '[' '!' -d /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a/ExpoDetoxHook.framework ']'
+ echo '/Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a was found, but could not find ExpoDetoxHook.framework inside it. This means that the ExpoDetoxHook framework build process was interrupted.
         deleting /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a and trying to rebuild.'
+ rm -rf /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a
/Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a was found, but could not find ExpoDetoxHook.framework inside it. This means that the ExpoDetoxHook framework build process was interrupted.
         deleting /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a and trying to rebuild.
+ prepareAndBuildFramework
+ '[' -d '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios' ']'
+ sourcePath='/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
+ extractSources '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
+ sourcePath='/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
+ echo 'Extracting ExpoDetoxHook sources...'
+ mkdir -p '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
Extracting ExpoDetoxHook sources...
+ tar -xjf '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ExpoDetoxHook-ios-src.tbz' -C '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
+ buildFramework '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
+ sourcePath='/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src'
+ echo 'Building ExpoDetoxHook.framework from /Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src...'
+ mkdir -p /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a
Building ExpoDetoxHook.framework from /Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src...
+ '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/scripts/build_universal_framework.sh' '/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/ios_src/ExpoDetoxHook.xcodeproj' /Users/jindong.zhang/Library/ExpoDetoxHook/ios/5a799e947a5c6a97fffdc373ace463985005b26a
child_process.js:637
    throw err;
    ^

Error: Command failed: /Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/scripts/build_framework.ios.sh
    at checkExecSyncError (child_process.js:616:11)
    at Object.execFileSync (child_process.js:634:15)
    at Object.<anonymous> (/Users/jindong.zhang/Desktop/React Native/DressUp/node_modules/expo-detox-hook/scripts/postinstall.js:2:27)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  status: 69,
  signal: null,
  output: [ null, null, null ],
  pid: 96585,

Steps to reproduce

run command npx ignite-cli new XXX --expo
error occurs when installing dependencies

ignite doctor results:
System
  platform           darwin
  arch               x64
  cpu                12 cores       Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  directory          React Native   /Users/jindong.zhang/Desktop/React Native

JavaScript (and globally-installed packages)
  node               14.15.0      /Users/jindong.zhang/.nvm/versions/node/v14.15.0/bin/node
  npm                6.14.8       /Users/jindong.zhang/.nvm/versions/node/v14.15.0/bin/npm
    npm              6.14.8
    yarn             1.22.10
  yarn               1.22.10      /Users/jindong.zhang/.nvm/versions/node/v14.15.0/bin/yarn

Ignite
  ignite-cli         6.6.0        /Users/jindong.zhang/.npm/_npx/99760/bin/ignite
  ignite src         build        /Users/jindong.zhang/.npm/_npx/99760/lib/node_modules/ignite-cli/build

Android
  java               1.8.0_281    /usr/bin/java
  android home       -            /Users/jindong.zhang/Library/Android/sdk

iOS
  xcode              12.4
  cocoapods          Not installed

maybe useful:
issue in detox repo
moreover i see expo-detox-hook's last update was in 2 years ago, maybe should consider whether it's out of date and no longer maintained？

Try to install cocoapods

Try to install cocoapods

Thank you, I will try it.

Try to install cocoapods

awesome, it works. thanks very much :)


Can't recognize Ko when attaching AQ to Sabaki in the middle of the game

When attaching AQ to Sabaki in the middle of the game, the order of the game is loaded differently from the actual one, so that AQ suggest "Ko postion" as in the picture.  (The last move is W to J10)

This is not due to AQ, it is the specification of Sabaki.
Sabaki places stones from the upper left to the lower right when telling stone information to the program. At this time, the Ko information is lost.
If you want to avoid this problem, you should use GoGui or other GUI softwares.


Not listed in Package Control?

I can't seem to find this package listed in Package Control. See: https://packagecontrol.io/search/prevent duplicate

@donatj the Package Control screening process can take some time: https://github.com/wbond/package_control_channel/pull/6206
I will close this issue once it has been merged.


KAFKA-6454: Allow timestamp manipulation in Processor API

implements KIP-251

@bbejeck

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/296/

left some minor comments

restest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/332/

Updated this.

thanks @mjsax, LGTM

Updated this.

Updated this.

The Jenkins failures seems relevant:
01:06:44 kafka.api.MetricsTest > testMetrics FAILED
01:06:44     java.lang.AssertionError: Broker metric not recorded correctly for kafka.network:type=RequestMetrics,name=MessageConversionsTimeMs,request=Produce value 0.0
01:06:44         at org.junit.Assert.fail(Assert.java:88)
01:06:44         at org.junit.Assert.assertTrue(Assert.java:41)
01:06:44         at kafka.api.MetricsTest.verifyYammerMetricRecorded(MetricsTest.scala:289)
01:06:44         at kafka.api.MetricsTest.verifyBrokerMessageConversionMetrics(MetricsTest.scala:198)
01:06:44         at kafka.api.MetricsTest.testMetrics(MetricsTest.scala:93)

Updates this. I doubt that the failing test is related to the PRs though.

Rebased to trunk. If there are not further comments, I am going to merge this after tests passed.

Rebased again.


Update utils.py

some files have no 'content-length' i'm from France, CDN trouble ?
i have read the doc 'content-length' if not present response.headers.get('content-length') return None type
so we have to test before doing int()
the download function works well if total_length = 0, but whit a weird progress but it's ok
i have tested in the 2 cases

@bunam even if I had no problem I think that your change is safe and if it works for you for me is fine as well. If you have any other problem feel free to open/re-open the issue.
Thanks!


Update development dependencies

Mostly silences a bunch of logs / warnings / vulnerabilities.
Reviewing commit per commit should make this PR clearer.

Thank you!


[gen_l10n] Provide an option to automatically modify the Info.plist file

When localizing for iOS applications, there is a manual step of adding the following lines to the Info.plist file:
	<key>CFBundleLocalizations</key>
	<array>
		<string>en</string>
		<string>es</string>
		<string>es_419</string>
                # ...
		<string>zh_CN</string>
	</array>

We should make it an integral part of the generation tool to update this list with the locales that an application supports, since it is easy to forget to do. However, I am hesitant from doing this as well, since we would have to:

Be careful about leaving the rest of the Info.plist file intact, and
Make sure that we define the locale in a way that iOS parses locales, since the way we evaluate locale strings might be different from how iOS does it

cc/ @HansMuller

fyi @jmagman

It's not mentioned in the docs that I found (created https://github.com/flutter/website/issues/3998), but orthogonal is adding the InfoPlist.strings files to localize the app name.

So is this a request for the generate_from_arb to detect the WidgetsApp.supportedLocales
and map to ISO 639-1and update the Info.plist?  Or for the flutter tool to do it automatically on a flutter build/run?  Or warn you that they are out of sync and direct to documentation?

This is a request for the gen_l10n tool in Flutter to support updating the Info.plist based on the app's supported locales.
Since WidgetsApp.supportedLocales can be manually modified by devs if they want their app to support only a subset of locales, I think it's better to use the provided ARB files as the source of truth instead, and provide an option to turn this feature off if the developer wants to manually select which locales they want their applications to support.


transparent = false does not work

The following config does not disable transparency
require('onedark').setup({
    style = 'darker',
    transparent = false,
})

However the deprecated option does turn off transparency.
vim.g.onedark_style = 'darker'

hmm the transparency option suddely started working, I don't know how, very weird!


How to change cursor style

Hey there 👋🏻
Just wondering how I can configure the cursor style. It seems that this plugin sets it to a block style which overrides the emulator's style. Is there a way to configure it back to a line instead of a block?
Thanks for this great plugin and everything around it.

Hey @valtism - sorry for the long delay getting back to you. Thank you for the kind words. I've really enjoyed working on this project and pulling in the best stuff from places like OMZ, Prezto, and Zsh-Utils to make something simple and fast.
Configuring the cursor style in Zsh can be a bit tricky. I should probably add something to Zephyr to let you pick the style you want. In the mean time, try something like this in your config and see if it suits you.
function update-cursor-style {
  [[ $TERM = xterm* ]] || return

  local cur_block=$'\e[2 q'
  local cur_line=$'\e[6 q'

  if bindkey -lL main | grep viins > /dev/null; then
    # vi-mode
    case $KEYMAP in
      vicmd)      printf $cur_block;;
      viins|main) printf $cur_line;;
    esac
  else
    # emacs mode
    printf $cur_line
  fi
}
zle -N update-cursor-style

function zle-line-init {
  (( ! $+terminfo[smkx] )) || echoti smkx
  zle update-cursor-style
}
zle -N zle-line-init


Is that possible to get Hub App Id from the Hidden parameters

Hi,
For example, I put the report in the Dashboard in a Customer Service Hub.
I put a hyperlink onto a column.
By default, I can only get CRM_URL. It opens the traditional CRM.
While I need the app id for the current Customer Service Hub
Thanks for any help
Regards,
Zhenyu

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

ID: 8520874a-9082-e6f4-ecd3-3e716c2f9ae4
Version Independent ID: 1a4c6a1f-3d8f-4b8d-3b46-84267fa1a452
Content: Use parameters in reports (Dynamics 365 for Customer Engagement apps)
Content Source: ce/analytics/use-parameters-in-reports.md
Service: crm-online
GitHub Login: @Mattp123
Microsoft Alias: matp

@wingzeroaa Thank you for your request to enhance the documentation. We’ve recorded your request, and we’ll consider it for a future update to the documentation.
Closing the issue.”


Rate limit using different units

Laravel Version 5.7
Laravels api rate limit unit is per minute. I have a autocomplete api endpoint which I would like to rate limit 20 queries per second. Is this possible i.e. to define a rate limit unit?
Note I've already asked on Stackoverflow and no one has any ideas.

Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so feel free to reply and we'll try to have a look.
Thanks!

Hi,
I've updated to 5.8 but I still can't see any way to define the rate limit unit in seconds?

It's ok I've figured it out. The unit value accepts float so I can divide 1 minute by 60 to get the seconds e.g. 0.017 and pass in the paramter as follows:
Route::middleware('auth:api', 'throttle:20,0.017')->group( function ()
{

     Route::get('/locations/{term}', 'LocationController@index');

});


Meta | Need official metric for determining consensus in votes

As PRs are created to propose official adoptions of the working group, we will need a way to vote on them and a specific metric by which we can determine if a proposal has passed.
My baseline assumption is that we will express our votes with :+1: and :-1: reactions to a PR. However, how will we know if a proposal has passed? In other working groups a large majority usually led to a measure passing, while a roughly 50/50 vote would signify additional discussion was needed.
In order for everyone to feel good about measures passing/failing I think it'd be helpful if we determined a vote percentage that we need to consider something passed. It could be 100% could be >50%. Whatever it is, we should all be in agreement on it though.

It could also be good to have an official time-period for voting so that we aren't waiting too long before proceeding.
Can't quite tell if it's related to this, but wanted to mention it.

I suggest instead of voting we produce an opinion, save it as a docusign and working group participants sign it off. If working group participants don't want to sign they can produce an alternative opinion and circulate it for signatures. This is better than voting for the following reasons:
It will help identify participants who are actually participating.
It creates an opportunity for debate and forces dissenters to explain their dissent.
The difference between the two opinions will help us identify key issues that we need to work on as a community.
It also provides a clear chain of documentation.

I'm starting to think we should go with a rough consensus. I propose that pull requests be the main means of producing the official opinions of the working group. If there are no substantial down votes on a pull request after a sufficient period of time, then I think it should be merged in. We can look at the ratio of up votes to down votes on pull requests, it should be obvious when something is controversial.

Agreeing with @lastmjs. In the Ledger and Tokenization Working Group we are discussing using the concept of rough consensus as the basic means for getting agreement within the WG. We are discussing whether WG-level votes make sense or whether they can be eliminated or only used in case rough consensus does not lead to a result. But in this case, the vote will not lead to consensus and thus be suboptimal.

I don't understand the need for consensus in a working group. We are not making decisions, we are doing research and providing opinions. I suggest we shelve this conversation at least until some work has been completed and is ready for publication. Then if:

We decide that we want to do some kind of  GWG seal of approval that requires consensus, and
The work item is controversial

We will have encountered a blocker requiring consensus regarding the seal of approval. This blocker will need to be cleared. However, right now it does not appear to me that this is required.

Let me give you some thoughts on this. A technical working group wants to have consensus in the sense that not too many people have objections to a proposal the group wants to subject to an NNS note. The group is making a standards proposal and not having, at least rough, consensus on it means that the proposal may have room for (technical) improvement, i.e., is suboptimal at the time. This assumes that objections are at a technical level. With a process of having rough consensus, we can increase the technical quality of proposals.
Have a look at how IETF is doing it: https://www.rfc-editor.org/rfc/rfc7282

We have a draft for some governing principles for IC working groups. Would be great if people from the governance WG could have a look and comment and help improve!
https://forum.dfinity.org/t/ledger-tokenization-working-group-update/15298/42


[BUG] Cloud Shell fails to run Terraform Azure AD 2.x (using MS Graph) due to MSI error

To Reproduce
system@Azure:~/cloudshell_msgraph$ cat main.tf
provider "azuread" {
}

data "azuread_client_config" "current" {}

resource "azuread_group" "example" {
  display_name     = "example"
  owners           = [data.azuread_client_config.current.object_id]
  security_enabled = true
}
system@Azure:~/cloudshell_msgraph$ terraform init

Initializing the backend...

Initializing provider plugins...
- Finding latest version of hashicorp/azuread...
- Installing hashicorp/azuread v2.6.0...
- Installed hashicorp/azuread v2.6.0 (signed by HashiCorp)

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
system@Azure:~/cloudshell_msgraph$ terraform apply
╷
│ Error: could not configure MSI Authorizer: NewMsiConfig: could not validate MSI endpoint: received HTTP status 404
│
│   with provider["registry.terraform.io/hashicorp/azuread"],
│   on main.tf line 1, in provider "azuread":
│    1: provider "azuread" {
│
╵

Observed Behavior
│ Error: could not configure MSI Authorizer: NewMsiConfig: could not validate MSI endpoint: received HTTP status 404

Expected behavior
I'm Global Admin, and I was able to use Terraform with AzureAD 1.x modules ( using the old Active Directory Graph API). According to the TF upgrade guide, no special actions must be taken when using Azure CLI authentication https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/guides/microsoft-graph
Is this specific to Cloud Shell?
Yes.
Azure CLI from a workstation works fine
Using Cloud shell, with default credentials, doesn't work with MS Graph API it seems

To disable MSI authentication you have to unset the MSI_ENDPOINT
unset MSI_ENDPOINT
That allows terraform to perform API calls to MS Graph inside cloudshell


fix: import vitePreprocess from vite-plugin-svelte in sveltekit

As of sveltekit v2 vitePreprocess is no longer exported from @sveltejs/kit/vite, So vitePreprocess always is imported from @sveltejs/vite-plugin-svelte.
This fixes the bug where vitePreprocess is imported 2 times

@BlankParticle Thanks for your help. This has just been published!


 IStartupFilter

 IStartupFilter still doesn't make sense to me.
You can control the order of middleware execution via registration order and you can position the code to execute before or after the next statement.
So why use  IStartupFilter at all.

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

ID: 793395fe-c738-22ce-d0e9-29a850c0fa88
Version Independent ID: 0546ce3a-3258-9817-0f3f-13281c2f55da
Content: App startup in ASP.NET Core
Content Source: aspnetcore/fundamentals/startup.md
Product: aspnet-core
Technology: aspnetcore-fundamentals
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@Legends what you want to inject middleware at the beginning or end of the pipeline without an explicit call to Use* in the pipeline.

What's the benefit besides not using use?

It's used commonly by ASP.NET Core itself to add defaults to the beginning of the pipeline without having to make the application author explicitly register pieces of middleware.

What's the benefit besides not using use?

It's really about having a different component call Use on behalf of the app author.


fix(repo): split preview workflow

Matrix deployment didn't work, separated both deployments into two separate workflows

deleted the fix/repo--bridge-preview-workflow branch


[polish] module streamx-console-service's log error info to file instead of print error stack.

[polish] module streamx-console-service's log error info to file instead of print error stack.

LGTM


Return errors instead of panic

We have many places panicking on incorrect input parameters. All of them specify "Immediately panics if parameters are set incorrectly", so it's kinda legitimate to do that. Yet all of them usually return (smth, error), so they might as well return errors. Returning errors is safer in general, yet some ctx == nil cases are a clear programmer error, so panic is justified as well (as a means to quickly give feedback during development). In some cases though parameters may be dynamic and a little less predictable, someone will miss some check that is not needed in 99% of cases, but we'll get an application crash in 1% of cases which may be frustrating for users.
Do we want to rework it or we're OK with panics?

I adhere to a simple rule: errors should not cover developer errors. I still insist on panic if the developer violates the requirements.
What I can suggest is to shift the mindfulness factor down to the source code level (compilation stage). For example:
type Prm struct {
  field any
  option any
}

// REQUIRED
func (*Prm) SetField(any) {}

// OPTIONAL
func (*Prm) SetOption(any) {}

// easy to forget SetField, e.g. pass Prm{}
func Do(Prm) error {
  // panic if SetField was not called or field is incorrect because it's a programmer's mistake
}

is worth to be replaced with
type Options struct {
  option any
}

// OPTIONAL
func (*Prm) SetOption(any) {}

// Options are options, so we can pass event Options{}
func Do(field any, options Options) error {
 // field can't be forgotten, only invalid
}

Again, panics are completely OK to detect developer errors. If it occurs, client should not and will not continue using this software until until the release of fixes. If it will be an error in log - the problem just hangs.

I think using panic in code must require the exceptional situation. Wrong or missing argument is just an input error. The code should notify the caller about this, but with regular mechanism like errors.
According to go.dev we have a convention about panics:

The convention in the Go libraries is that even when a package uses panic internally, its external API still presents explicit error return values.

We are developing the lib. I consider we should simplify using our lib for another developers, in context of error handling and parameters passing. I see two option to achieve this:

First is like example upper, when we should define all required parameters in func definition. But it may be not so convenient in some situations and may require many code changes.
Second is using the constructors for structs. In this case we place all required args in the constructor. This leads to less mistakes from developer side to miss required parameters.

type Prm struct {
  field any
  option any
}

func NewPrm(field any) Prm {
    return Prm{
        field:field,
    }
}

// OPTIONAL
func (*Prm) SetOption(any) {}

// you  can't forget to set field
func Do(Prm) error {
  // return error if `field` has wrong value
}

From my point of view - panic is an something unpredictable and we can't handle it in any way. Using errors is understandable way to describe what happened. We shouldn't try to crash users application because some developer forgot/didn't know to pass some param or fill some field in some structure.
We already using errors mechanism in struct conversion and this work perfect:

https://github.com/nspcc-dev/neofs-sdk-go/blob/dbbb22ca28cd1f60d507c7cec35985dc5f487274/container/container.go#L51

We already using errors mechanism in struct conversion and this work perfect

yeah, because this may be a network input, not developer one
I don't like NewPrm because it doesn't protect from Do(Prm{}) call like Do(field, options{}). It's clearer to me to accept required input as separate function parameters, although prm constructor works too ofc.
@roman-khimov thoughts? Lets sync opinions and implement final approach in v1.0 release

I would vote for only panicking in cases of violations of crucial invariants. IMHO, the rest of the cases, like incorrectly or partially initialized input should be expressed via (result, err) idiom. If, for some reason, you have to stick to an API with required settable properties at risk of ignoring by developers, you can always introduce sensible defaults for those properties.

My ideas coincide with the thoughts of this wonderful person.
When i'm thinking about it, i do imagine the case when an RPC is called quite rare and kills the whole app at e.g. 3 am (it may be some rare replication, some reputation scenario, etc) without any chances to continue its work (at least partly or fully if that RPC is nothing important at all).
I tried brief googling once again for some "classic" answers on that question and i would say that with panic we do force making the "true" answer for a user on the question "is an SDK client fatal for me?" (if use that wording) and that is not smth i would expect from a lib called "SDK". So my vote is for error way.

I adhere to a simple rule: errors should not cover developer errors.

@cthulhu-rider, quite a reasonable rule, i like it. But for self-made code, not an SDK, IMO.

Thanks for all the comments. I think the consensus is that for a library (which an SDK is) panic is not something we should do when we can return an error, so we need to ensure this is the case.
Cases like nil passed to https://pkg.go.dev/bytes#Buffer.WriteTo are still OK to be unhandled (implicitly panicking), because it's a clear violation of the expected method use.

What do you think about removing panicMsgMissingContext at all? I mean not replace this with something ErrMissingContext, but just remove this condition at all.
Context is a very common type in Go. If someone decided to put nil instead of real context, it would get a panic anyway (I had such experience in very begging of my Golang adventure). We shouldn't cover this mistake.

@roman-khimov, @smallhive, @cthulhu-rider, was it intended not to panic ever? More than a year after this issue is closed, I see that the PR that closed it did not delete every panic keyword in every exported code, but just did panic -> error transition where possible. Just returning error where it can be returned in fact. E.g. we have this: https://github.com/nspcc-dev/neofs-sdk-go/blob/1478127a209de8c9eaee40f3ee5d347f5ef1f36f/client/common.go#L33.
So the question is: should it be possible to get a panic with regular user moves when this PR is closed? I thought it was not. But it is now.

Please open a new issue.

Please open a new issue.

@roman-khimov, it was not closed correctly, why? After the PR was merged, some places were left with panics.

Yet all of them usually return (smth, error), so they might as well return errors

We've fixed these cases. Other panics are different.


Option to skip headers in method parameters when using injectHttpHeadersParameter

It might remove a lot of clutter in the method signature if there is an option to skip adding individual headers as method parameters when headers object is added in the parameter.

Hi,
Why would you want to exclude a header as method parameter?
If you want to ignore it - why do you define it?

Its not like ignoring, but the same value is provided twice as method parameters, one as individual param and other as a part of headers. When too many headers are defined, the method length would be too high which might not look good.

That's right. And that's what I actually meant, not sure if my choice of words gave a different meaning.

That would work well. There is no need of headers individually when all headers are available.


ndt7/JavaScript: UX: explicitly say that the speeds are average

We currently do not specify that we're showing an average. We should probably do that somehow?

Possibly obsolete.

I'd say we close this. The UX of the JavaScript client was tentative anyway.


fix: Colors can be stringified with expontential alphas, but cannot b…

bug source

There's a compatibility issue.
Before hsla(0, 0%, 0%, +.) is same as hsla(0, 0%, 0%, 1)
but now hsla(0, 0%, 0%, +.) will throw error.

That's fine, +. is not valid input. Anyone relying on that is masking a bug.

I wanted to save the scientific notation regular expression in a variable (and then write a test case), and pass it to new Regexp to concatenate it with the previous regular expression, but it was a lot of escaping/and made the regular expression even harder to understand.

Sorry, my food arrived right as I published and I got sidetracked. Quesadillas take priority in my life.
Thanks for the PR, published as 1.9.0!


Gutter width ZERO

Even if gutter is set to zero, double pipe evaluates to false... so instead of 0, default value is assigned.
Fixed in this PR.

Of course! Thanks @glafarge


Add validation details for spec.maturity field

Add detailed validation properties for spec.maturity field in CSV per CustomResourceDefinition.
See "maturity" field in https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/olm.yaml

cc @dmesser

/approve
/lgtm
/retest

/retest

/retest

/retest

/retest

/retest
On Fri, May 10, 2019 at 11:59 AM OpenShift CI Robot <
<EMAIL_ADDRESS>wrote:

@tlwu2013 https://github.com/tlwu2013: The following tests failed,
say /retest to rerun them all:
Test name Commit Details Rerun command
ci/prow/e2e-aws-upgrade 57fac2d
https://github.com/operator-framework/operator-lifecycle-manager/commit/57fac2d7810f99eced003ee0d71dba43fee256ce
link
https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/operator-framework_operator-lifecycle-manager/821/pull-ci-operator-framework-operator-lifecycle-manager-master-e2e-aws-upgrade/196 /test
e2e-aws-upgrade
ci/prow/e2e-aws-olm 57fac2d
https://github.com/operator-framework/operator-lifecycle-manager/commit/57fac2d7810f99eced003ee0d71dba43fee256ce
link
https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/operator-framework_operator-lifecycle-manager/821/pull-ci-operator-framework-operator-lifecycle-manager-master-e2e-aws-olm/1905 /test
e2e-aws-olm
Full PR test history
https://openshift-gce-devel.appspot.com/pr/operator-framework_operator-lifecycle-manager/821.
Your PR dashboard https://openshift-gce-devel.appspot.com/pr/tlwu2013.
Please help us cut down on flakes by linking to
https://github.com/kubernetes/community/blob/master/contributors/devel/flaky-tests.md#filing-issues-for-flaky-tests
an open issue
https://github.com/operator-framework/operator-lifecycle-manager/issues?q=is:issue+is:open
when you hit one in your PR.
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/operator-framework/operator-lifecycle-manager/pull/821#issuecomment-491340411,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAOFR7V5DVGVJGEQZSOSWLPUWLXFANCNFSM4HHZGU7Q
.


Bike Rental Count Prediction with deployment on flask

*What is the awesome project you're thinking of?
Predicting Bike sharing demand and deployment on flask
Additional context
https://www.kaggle.com/datasets/lakshmi25npathi/bike-sharing-dataset?select=day.csv

Hello!!  How do I contribute to this project?😊❤

It's OK!! I will participate in the project, thank you ❤

How's the progress @charlottevic

Hi! I'm starting it.. I'm in exploratory analysis  😁

Can't wait to see your project!


Envoy should not alter thrift THeader key

If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing
<EMAIL_ADDRESS>where the issue will be triaged appropriately.
Currently envoy always lowercase thrift THeader key and this is wrong
Description:
Thrift THeader keys are case-sensitive according to the spec, so altering them is a bug.
This is the line that does it: https://github.com/envoyproxy/envoy/blob/0fae6970ddaf93f024908ba304bbd2b34e997a51/source/extensions/filters/network/thrift_proxy/header_transport_impl.cc#L151
Repro steps:
Make a thrift client and send "Foo: Bar" THeader to a thrift server via envoy. The server receives "foo: Bar" instead.

Note: The Envoy_collect tool
gathers a tarball with debug logs, config and the following admin
endpoints: /stats, /clusters and /server_info. Please note if there are
privacy concerns, sanitize the data prior to sharing the tarball/pasting.

Admin and Stats Output:

Include the admin output for the following endpoints: /stats,
/clusters, /routes, /server_info. For more information, refer to the
admin endpoint documentation.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Config:

Include the config used to configure Envoy.

Logs:

Include the access logs and the Envoy logs.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Call Stack:

If the Envoy binary is crashing, a call stack is required.
Please refer to the Bazel Stack trace documentation.

Linking thrift issue requesting clarification on key format in the header spec
https://issues.apache.org/jira/browse/THRIFT-5541

not stale


add InputTextArea

InputType is meant to be <input type="...">. textarea is a different element altogether, so I don't think we want to do <input type="textarea">.

quite right!


Add unity salt-state

@thusoy Added the Android & iOS salts now, ready for another review

Merged #17


DO NOT MERGE YET: Begin changes to encrypt user email addresses

This adds a database migration, loading the openssl gem, and
stub methods to begin implementing email address encryption.
Signed-off-by: David A. Wheeler<EMAIL_ADDRESS>

The goal here is to eventually implement #1138.  The first step is to create the database structures to STORE this data, which the first commit does.  We then need to calculate them and use those calculated results instead (those actions are TBD).

Note: There's no need to create a transaction in the migration, because "On databases that support transactions with statements that change the schema, migrations are wrapped in a transaction."  PostgreSQL certainly does support transactions, so it'll be in a transaction.  I don't have plans to move from PostgreSQL, and even if we did, that would presumably happen after this migration is run.

Hmm, just noticed something annoying.  For gravitars to work (which we use on local accounts), we have to publicly provide the MD5 of the email address.  I figure we should just encrypt anyway, and then separately decide if we want to do something more.  We could make "show gravitar?" a checkbox option for local accounts.

@jdossett @dankohn if you have other ideas about gravitars let me know.

I going to pause this approach.  There are existing gems that make this WAY easier, I'm going to investigate doing that instead.


Remove upload to Azure

This job is failing, and we don't need this (blocks release process)

Codecov Report

Merging #6199 (11ae908) into main (a37eb12) will decrease coverage by 1%.
The diff coverage is 84%.

@@          Coverage Diff           @@
##            main   #6199    +/-   ##
======================================
- Coverage     72%     71%    -2%
======================================
  Files        399     399
  Lines      26869   26895    +26
  Branches    3954    3961     +7
======================================
- Hits       19428   19159   -269
- Misses      5790    6123   +333
+ Partials    1651    1613    -38

Impacted Files
Coverage Δ

...ient/datascience/jupyter/kernels/kernelSelector.ts
87% <76%> (-4%)
:arrow_down:

...rc/client/datascience/commands/notebookCommands.ts
69% <100%> (+1%)
:arrow_up:

...science/jupyter/kernels/kernelDependencyService.ts
89% <100%> (+<1%)
:arrow_up:

...ience/variablesView/variableViewMessageListener.ts
22% <0%> (-78%)
:arrow_down:

...ent/common/application/webviewViews/webviewView.ts
14% <0%> (-72%)
:arrow_down:

...c/client/datascience/variablesView/variableView.ts
18% <0%> (-58%)
:arrow_down:

src/client/datascience/webviews/webviewViewHost.ts
19% <0%> (-53%)
:arrow_down:

...terpreter/nbconvertInterpreterDependencyChecker.ts
47% <0%> (-39%)
:arrow_down:

src/client/datascience/jupyter/jupyterImporter.ts
35% <0%> (-30%)
:arrow_down:

...ient/datascience/export/exportInterpreterFinder.ts
40% <0%> (-30%)
:arrow_down:

... and 35 more


Over 3 GB used for log files

Microsoft PowerToys version
0.61.1
Running as admin

[X] Yes

Area(s) with issue?
General
Steps to reproduce
Powertoys uses over 3 GB of disk space for logs from 2 years ago under \AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\1.0.0 (see below screenshots).

✔ Expected Behavior
Delete old log files.
❌ Actual Behavior
Old log files don't get deleted and take up disk space.
Other Software
No response

/duplicate #8419


CSI node-driver-registrar project updates 1.23 to 1.29

Description of changes:
CSI node-driver-registrar project updates 1.23 to 1.29
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


Updating list_metrics() to Iterator pattern.

NOTE: Has #2651 as diffbase. Unit test changes will be forthcoming.

@daspecster @tseaver PTAL

pyilnt failure:
logging/google/cloud/logging/_gax.py:500:1: E303 too many blank lines (3)

Ahhhh! Darn rebases. PTAL.
Was that your only issue?

I didn't really review it in detail since Travis was red.

OK well it's good to go now. LMK what you think

@tseaver PTAL


einsteinpy.plotting.geodesic.static : AttributeError: 'Poly3DCollection' object has no attribute '_facecolors3d'

🐞 Problem
matplotlib 3.3.3 made changes to some attribute names, leading to AttributeError: Poly3DCollection' object has no attribute '_facecolors3d' in einsteinpy.plotting.geodesic.static, while using the module or running tests with matplotlib 3.3.3.

🎯 Goal

To fix a rather annoying bug.

💡 Possible solutions

_facecolors3d and _edgecolors3d need to be replaced with _facecolor3d and _edgecolor3d everywhere.
📋  Steps to solve the problem

Comment below about what you've started working on.
Add, commit, push your changes
Submit a pull request and add this in comments - Addresses #<put issue number here>
Ask for a review in comments section of pull request
Celebrate your contribution to this project 🎉

#547 fixes this.

#547 fixes this.


Move systemd-lib.nix and systemd-unit-options.nix into utils

There are several modules that redundantly import the systemd-lib.nix and systemd-unit-options.nix files. I thought it'd be good if they all got them from the same place.
Tested with:
nix-build nixos/tests/systemd-*.nix nixos/tests/restic.nix

All test results were fetched from cache, so eval is unchanged.

One minor concern I have for this PR was that I struggled for a little while with an infinite recursion issue. Turns out my issue was putting with systemdUtils.lib; after with lib;. If you put it before, then name resolution for e.g. config = mkIf will check lib first, and not the unprepared utils expression (the module system is quirky like this).
I was thinking about removing all the uses of with on these attrsets just to discourage people from making the same mistake by looking at this code as an example of using systemdUtils. Would that be worthwhile? The networkd module could be a chore to do this to...

Note: This is part of my effort to put systemd in initrd; as I'm about to make another module that uses these utils.

If it's not too much trouble I'd recommend using inherit instead of with
https://nix.dev/anti-patterns/language#with-attrset-expression

@Artturin Yea, there was a discussion about that (regarding this very code) on matrix earlier today. While I generally agree with the sentiment, it's worth noting that e.g. the networkd module would have a really gross let inherit. I suppose I could just prefix all the function calls with foo., but that makes for a frustratingly massive git diff.

You could add a comment warning users above the with and use inherit elsewhere

A lot of this could be refactored into modules. We have some underappreciated possibilities in the module system could be quite helpful for keeping things together.

Submodules can import modules.
Options with internal = true can be used to perform computation in submodules rather than outside of them.
For example the derivation that writes a unit can be a module. Similarly, the derivation that writes an entire systemd configuration (many units) can be a module.

This way, you won't need "utils" files as much.

Here's an example of this kind of refactoring https://github.com/NixOS/nixpkgs/pull/82751#issuecomment-960869264

@roberth I'm not exactly following what you're suggesting. How could the module system be used in this case?

generateUnits could go into an abstract module that reads config.units and some internal options for the other parameters.
config.systemd and config.systemd.user will have to become submodules for that to work, but I don't know if that's feasible.
Currently though, adding a submodule can be disruptive to other modules if they declare options in that part of the tree, see #146882. Might not be a problem, but I'm not sure.
It's probably best to wait for that issue to be resolved first. It seems that such a refactoring would make some of the rewiring in this PR obsolete, but this PR does not make the that change any harder, so there's no need to block this.

lol, turns out this broke eval internally for all our systems on the unstable channel, because we have some cursed code that does systemdLib = import "${modulesPath}/system/boot/systemd-lib.nix" { inherit config lib pkgs; }; @dasJ


module.rules.include forward slash in windows 10

Do you want to request a feature or report a bug?
Report a bug.

What is the current behavior?
Webpack doesn't use the module.rules.include option properly on windows 10.
If the current behavior is a bug, please provide the steps to reproduce.
module.exports = {
  // ... removed for brevity
  module: {
    rules: [
      {
        test: /\.js$/,
        include: `${__dirname}/src`,
        use: [
          {
            loader: 'babel-loader',
            options: {
              presets: ['react'],
              plugins: ['transform-es2015-modules-commonjs']
            }
          }
        ]
      }
    ]
  },
  // ... removed for brevity
};

Because I'm using a forward slash in include: `${__dirname}/src` , the path is actually not included when babel does its work. If I replace it with include: `${__dirname}\\src` , it works. However the entry option works just fine, which is entry: `${__dirname}/src/js/main.js` .

What is the expected behavior?
Webpack should treat forward slashes the same in the entry and module.rules.include options, meaning that forward slashes should work on windows the same as \\.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
windows 10, webpack 3.3.0, node 6.9.1, npm 3.10.10

include matches the absolute path of the resolved file (see also https://webpack.js.org/configuration/module/#condition). Best use path.resolve(__dirname, "src") as value to include.
webpack automatically fixes your incorrect slashes for the entry option.

It would be nice if webpack could fix my incorrect slashes everywhere (since the solution for that is already there).

This unfortunately is the same with the module.rules.test which makes it difficult to use the most common use case; using a regex. You have to [\/\\] each directory  😞


[BUG] PostgreSQL backup fails on upgraded Ubuntu as wrong Python interpreter is used

Describe the bug
PostgreSQL backup fails on upgraded Ubuntu from 18.04 to 20.04.
The issue is caused by backup and recovery engine that does neither generate ansible.cfg file nor use the existing one created by apply or upgrade engine and thus the setting for interpreter_python = auto is lost.
On upgraded OS there are 2 python interpreters:
[operations@ci-10to13azubflannel-postgresql-vm-0 ~]$ python --version
Python 2.7.18
[operations@ci-10to13azubflannel-postgresql-vm-0 ~]$ python3 --version
Python 3.8.10

and python2 is used by postgresql_info module what fails the build.
2022-01-18T11:39:36.7324167Z [31;21m11:39:36 ERROR cli.engine.ansible.AnsibleCommand - fatal: [ci-10to13azubflannel-postgresql-vm-1]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (psycopg2) on ci-10to13azubflannel-postgresql-vm-1's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

How to reproduce
Steps to reproduce the behavior:

deploy v1.0.1 Ubuntu cluster with PostgreSQL component
upgrade OS to 20.04
upgrade epicli to v1.3
Run backup and recovery commands for PostgreSQL component

Expected behavior
Backup should be successful on upgraded cluster.
Environment

Cloud provider: [all]
OS: [Ubuntu]

epicli version: v1.3, develop
Additional context
Add any other context about the problem here.

DoD checklist

[ ] Changelog updated (if affected version was released)
[ ] COMPONENTS.md updated / doesn't need to be updated
[ ] Automated tests passed (QA pipelines)

[ ] apply
[ ] upgrade

[ ] Case covered by automated test (if possible)
[ ] Idempotency tested
[ ] Documentation updated / doesn't need to be updated
[x] All conversations in PR resolved
[x] Backport tasks created / doesn't need to be backported

:heavy_check_mark: Tested backup and recovery on new and upgraded clusters. Everything seems fine now.


Release 0.2

New features:

Undo/Redo support!
UI improvements
A simple tutorial for new users

Closes #13 .


(AzureCXP) Add link for azure example

resolves mspnp/architecture-center#899

OPS Build status updates of commit 94c49de:
:clock10: Preparing: average preparing time is 45 sec(s)

OPS Build status updates of commit 94c49de:
:clock10: Incremental building: average incremental building time is 22 sec(s)

OPS Build status updates of commit 94c49de:
:warning: Validation status: warnings

File
Status
Preview URL
Details

toc.json
:warning:Warning

Details

bread/toc.json
:warning:Warning

Details

building-blocks/extending-templates/toc.json
:warning:Warning

Details

docs/patterns/gateway-offloading.md
:white_check_mark:Succeeded
View

toc.json

[Warning] Error happen when converting toc.json to Pdf. Details: Could not find file 'T:\gwkg\toc.json'.

bread/toc.json

[Warning] Error happen when converting bread/toc.json to Pdf. Details: Could not find a part of the path 'T:\gwkg\bread\toc.json'.

building-blocks/extending-templates/toc.json

[Warning] Error happen when converting building-blocks/extending-templates/toc.json to Pdf. Details: Could not find a part of the path 'T:\gwkg\building-blocks\extending-templates\toc.json'.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

 Details: Could not find a part of the path 'T:\tngy\bread\toc.json'.

building-blocks/extending-templates/toc.json

[Warning] Error happen when converting building-blocks/extending-templates/toc.json to Pdf. Details: Could not find a part of the path 'T:\tngy\building-blocks\extending-templates\toc.json'.

toc.json

[Warning] Error happen when converting toc.json to Pdf. Details: Could not find file 'T:\tngy\toc.json'.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[5.9] Support String Catalogs when using xcbuild

This is a cherry-pick of #6645 to Swift 5.9, to add support for building String Catalogs when using XCBuild as the underlying build system.
rdar://105866061

@swift-ci please smoke test


Issue #28 - Does the "Industry" field can be modeled with the occupation pattern?

In the v.1.5 of the TM, the Industry field is modeled as a simple E55 Type linked directly to the E39 Actor.
But I just realized that the F51 Pursuit in the CIDOC extension FRBRoo has the scope:

This class comprises periods of continuous activity of an Actor in a specific professional or
creative domain or field

That would simply a lot the model, with the professional activity of a person and a group modeled the same way.
Would that also work with the artistic activity of groups of artists?
For example the Group of Seven is dedicated to the painting of Landscapes. Could the groups have as an F51 Pursuit "Landscaping"?

I think it does work yes especially considering how the examples F51 Pursuit are of artists and a Library

yes it's appropriate

If nobody wants to add something, I will close the issue.

+1

You have my blessing. :)


IBroadPhaseFilter works the opposite of the way it should

Check out the docs for IBroadPhaseFilter:
https://github.com/notgiven688/jitterphysics2/blob/e80205d51c3947efaf926d38c121800302be6ceb/src/Jitter2/Collision/CollisionFilter/IBroadPhaseFilter.cs#L38C1-L38C90
It says <returns>False if the collision should be filtered out; true otherwise.</returns>.
However, when setting a filter, if I return true it doesn't do collision, but if I return false, the objects do collide.
IMO the correct behavior is according to docs, ie true = collide, false = don't collide.
It makes more sense that way. But whatever you choose please make it consistent with the comment.
Thanks!

By the way if you want me to do PRs to fix the stuff I find let me know, I can help with that.

@RonenNess Thank you for finding/pointing out all these quirks and small glitches. This is exactly what the issue-tracker is for. I changed the definition of the Filter-Callbacks many times (there is also the NarrowPhase-Filter and the DynamicTree Filter https://github.com/notgiven688/jitterphysics2/blob/main/src/Jitter2/World.cs#L228). This should all be made consistent and consistent with the docs. I will take a look.

@RonenNess Should be fixed now.


superset 2.1.0 frontend start to use the "npm run dev-server", will appear many warnings

npm run dev-server will appear many warnings

I hope that will get the assistance to how to solves the warning and correctly see the superset page

Hi @gufenqing. Superset 2.x versions are not supported anymore. For that reason, I'm moving this to a discussion. I highly recommend upgrading your Superset version.


HTML terminal mode

I was watching your build 2019 presentation..
I'll tell you the feature i've always wanted for terminal windows: ** HTML terminal mode**... why not make a "VT" terminal code that can switch into HTML mode so that a program can directly dump HTML to the terminal window?  HTML is much better suited at advanced formatting than anything VT-terminal codes can do...  then, when the program is finished, the VT code to switch back to non html mode is issued.   Like you switch to "HTML terminal mode", which causes a chromium browser window to be embedded into the terminal window after the terminal prompt, and all the HTML issued from your command to appear there...  like javascript graphics... maybe you need to make a subset of HTML that's compatable with terminal mode?  like obviously no need for HTML header tags and all the formalities of HTML... just everything inside of the body tags to render in the terminal embedded chromium window with x,y set to be the starting point after the prompt.

Don't you already have one of those things, a web browser, isn't that what they're called? :) To be honest, I get where you're coming from, but funnily enough, Microsoft tried something along these lines about 15 years ago in the form of HTA (html applications) and it rode the wave of html-all-the-things for a while, but ultimately it was just another form of Windows lock-in that has long since gone out of vogue. Doing something like this would tie just fork the browser landscape out even more. But really, VT codes aren't that bad and they are far more efficient over the wire than using a complex technology like HTML. And it doesn't just stop at HTML - what about CSS? And then people want JS, etc etc.
Thanks for contributing your idea, but I think it's safe to close this one.

OK... i'll wait for linux support first... ;-)

[xtml;sgksdkjfhskjdghalkdjfsglkjdfgsljkdfhglksjdfhglskjdfhlkgsjdfhlgksjdfhlkgsjdfhgslkjdfhlgksjdgfhskljdgslkjdfhglksjdglksjdflgskdjglskdjflksgjdfsklgjdgksljdfhksljgdfhl[;0

application program:
printf("<esc>[html;<resource file='snoopy.jpg' encode='base64]>4523hkj34h52k3j4h52kj34h52k3j45g2j3kh4g52k3j4hg52j3h4g52kj34hg52kj3h4g52kj3hg452jk3hfg452kj3hg45k2j3hg45k2j3fg745k2j3hg452kj3hf4g52hk3g452kjh3f4g52kj34hg52kj34g52kj3f4g52kj3h4g52kj34g52kj354</resource><img src="snoopy.jpg"/><esc>[0;");

C:> adventureland.exe
resuming where you left off...
as you approach you see a pirate with an empty bottle of rum leaning against an empty treasure chest mumbling incoheriently...
<insert picture of drunk pirate lending against an empty treasure chest>
What do you want to do? hit pirate with empty bottle

C:\> price_of_rice.exe --country china


Add CLK HROW bits

Did some point in the past we already have this?

Did some point in the past we already have this?

Not to my knowledge.  To be clear, this is the HROW driver bits, not the HCLK bits.  Not the same thing.


(git-lfs.install) Update dependeny to Git to 1.8.5

git-lfs requires Git 1.8.5 or higher based on this site.

@AdmiringWorm  Ah, saw the encoding issues just now that you mentioned it. Just let me know if you want me to fix it

@pascalberger I've already fixed it locally.
I'm just now looking through some other packages to see if they also needs to be fixed.


Bundler doesn’t honor --user-install

Hi there,
I have this in my /etc/gemrc:
install: --user-install
update: --user-install

which works fine when installing gems directly with RubyGems (gem install <gemname>). However, when instructing bundler to install from a Gemfile, this doesn’t work and instead asks me to use sudo to install the gems system-wide, which is undesired.
% cat Gemfile
source "https://rubygems.org"

gem "coderay"
(1010) [9:42:23 quintus@roma] /tmp/foo
% bundle install
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Enter your password to install the bundled RubyGems to your system:

SystemExit: exit
An error occurred while installing coderay (1.0.9), and Bundler cannot continue.
Make sure that `gem install coderay -v '1.0.9'` succeeds before bundling.
(1011) [9:42:44 quintus@roma] /tmp/foo
% gem install coderay
Fetching: coderay-1.0.9.gem (100%)
Successfully installed coderay-1.0.9
invalid options: -f emerald, -SNw2
(invalid options are ignored)
Parsing documentation for coderay-1.0.9
Installing ri documentation for coderay-1.0.9
Done installing documentation for coderay after 3 seconds
1 gem installed
(1012) [9:43:01 quintus@roma] /tmp/foo
% gem which coderay
/home/quintus/.gem/ruby/2.0.0/gems/coderay-1.0.9/lib/coderay.rb
(1013) [9:43:06 quintus@roma] /tmp/foo
%

Software in use:
(1017) [9:50:55 quintus@roma] /tmp/foo
% ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
(1018) [9:50:58 quintus@roma] /tmp/foo
% gem -v
2.0.5
(1019) [9:50:59 quintus@roma] /tmp/foo
% bundle -v
Bundler version 1.3.5
(1020) [9:51:01 quintus@roma] /tmp/foo
%

Valete,
Marvin

I'd like to resurrect this issue! Getting this to work would be as simple as loading .gemrc (it's a YAML file), and looking if gem, install, update or uninstall keys have the --[no-]user-install flag in the string, and respect it.
Now that I think of it, it'd be nice if other options were supported as well, and let users opt-out with --[no-]gemrc when running bundler,  and also override those [.gemrc] options when using bundler cmd args.

Bundler doesn't even have a concept of "user install". What would this setting activate?
On Fri, Mar 27, 2015 at 4:12 PM, Nino Miletić<EMAIL_ADDRESS>wrote:

I'd like to resurrect this issue! Getting this to work would be as simple as loading .gemrc (it's a YAML file), and looking if gem, install, update or uninstall keys have the --[no-]user-install flag in the string, and respect it.
Now that I think of it, it'd be nice if other options were supported as well, and let users opt-out with --[no-]gemrc when running bundler,  and also override those [.gemrc] options when using bundler cmd args.
Reply to this email directly or view it on GitHub:
https://github.com/bundler/bundler/issues/2565#issuecomment-87117555

Bundler doesn't even have a concept of "user install". What would this setting activate?

I know Bundler doesn't, but gems do, or at least gem, the command does. It would be similar to --path $HOME/.gem—maybe it would even behave identically. IIRC, you can even get that path using Gem.user_dir (maybe it's userdir; can't test it right now).
The idea is that Bundler is used to manage gems, so one would expect it respects .gemrc.

The gem command manages a single pool of gems used by all Ruby processes, while Bundler manages separate pools of gems, one per project or application. Even though both install gems, I am not aware of any options from the .gemrc file that work as a direct mapping to Bundler.
If you want to relocate the bundle install --system directory to $HOME/~.gem, you can just set $GEM_HOME like chruby does. The $GEM_HOME environment variable is respected by both Bundler and RubyGems.

The gem command manages a single pool of gems used by all Ruby processes, while Bundler manages separate pools of gems, one per project or application. Even though both install gems, I am not aware of any options from the .gemrc file that work as a direct mapping to Bundler.

Agreed. However, by default Bundler installs gems globally (it even elevates using sudo to accomplish this). The problem is that bundle install --system is to be the default behaviour when running bundle install (without $BUNDLE_PATH or $GEM_HOME being set). IHMO, the ideal default behaviour would be --path .bundle/, but I suppose that's too much to ask for since people are already used to bundler installing gems system-wide.

If you want to relocate the bundle install --system directory to $HOME/~.gem, you can just set $GEM_HOME like chruby does. The $GEM_HOME environment variable is respected by both Bundler and RubyGems.

I know it is, but it's a bit of a hacky solution. I believe that:

changing default behaviour (unlikely) to gems in something like ./.bundle,
or respecting .gemrc,

instead of implicitly installing gems system-wide using sudo (which I think is a horrendous default) would be more desirable.
The current behaviour is fine, but I could be better.

I completely agree that it could be better, and Bundler 2.0 will default to --path .bundle for that reason. :)
On Fri, Mar 27, 2015 at 4:51 PM, Nino Miletić<EMAIL_ADDRESS>wrote:

The gem command manages a single pool of gems used by all Ruby processes, while Bundler manages separate pools of gems, one per project or application. Even though both install gems, I am not aware of any options from the .gemrc file that work as a direct mapping to Bundler.
Agreed. However, by default Bundler installs gems globally (it even elevates using sudo to accomplish this). The problem is that bundle install --system is to be the default behaviour when running bundle install (without $BUNDLE_PATH or $GEM_HOME being set). IHMO, the ideal default behaviour would be --path .bundle/, but I suppose that's too much to ask for since people are already used to bundler installing gems system-wide.
If you want to relocate the bundle install --system directory to $HOME/~.gem, you can just set $GEM_HOME like chruby does. The $GEM_HOME environment variable is respected by both Bundler and RubyGems.
I know it is, but it's a bit of a hacky solution. I believe that:

changing default behaviour (unlikely) to gems in something like ./.bundle,
or respecting .gemrc,
instead of implicitly installing gems system-wide using sudo (which I think is a horrendous default) would be more desirable.
The current behaviour is fine, but I could be better.

Reply to this email directly or view it on GitHub:
https://github.com/bundler/bundler/issues/2565#issuecomment-87125407

I completely agree that it could be better, and Bundler 2.0 will default to --path .bundle for that reason. :)

Oh, I wasn't aware of that. This is amazing news! Thanks for being so patient with me about this! :-)
Cheers!

I know necrobumping is bad but I think about those who will end here like me:
Add these lines at the end of your ~/.zshrc or ~/.bashrc
#Setting the GEM_PATH and GEM_HOME variables may not be necessary, check 'gem env' output to verify whether both variables already exist
export GEM_HOME=$(ls -t -U | ruby -e 'puts Gem.user_dir')
export GEM_PATH=$GEM_HOME
export PATH=$PATH:$GEM_HOME/bin

So all what your user install with gem is installed under his own home directory /home/user/.gem/ruby/2.4.0/bin. bundle info [gemname] can show you were the gem is installed and gem env show you the whole RubyGems Environment.
PS : /etc/gemrc with gem: --user-install. This is the archlinux way.

@noraj , thanks a lot for the idea. I just upgraded and I found bundle trying to install with sudo which is very unreasonable for me. So far it has been installing to the users home ~/.gem/ruby. Now it tries to either install with sudo or in a project vendor directory.
So what I did is to put in my bash profile:
export BUNDLE_PATH=$(ls -t -U | ruby -e 'puts Gem.user_dir')
export PATH="$PATH:$BUNDLE_PATH/bin"

Now both gem and bundle install to the same user-wide location. The only issue is that gem installs executables in ~/bin while bundle installs them in $BUNDLE_PATH/bin. But this is bearable.

What is the purpose of piping the output of ls -t -U into ruby? Ignoring for the moment that -t and -U are contradictory, I can't see how sending a directory listing into ruby changes anything in the output.


Feature request - Responsive option

Hi there!
One thing that is missing in flatpickr, and a crucial one, is an option to activate a responsive behavior for the date picker.
For example, below a certain horizontal resolution, flatpickr could be vertical/horizontal centered in the viewport, with some darker background to focus the user to pick a date (pickadate.js behavior).
Also (and this is a current problem), if the input is created at the very right of the viewport, it's calendar will expand the viewport, crashing the layout. This is happening in my website, and I simulate this in the flatpickr example page, by sending one of the inputs to the far right of the page. Here you can see what happens to the layout in this situation:

And the reason for that shows up when you click the input:

In this situation, I think flatpickr should not push the layout, but instead pull itself to the left.
Bests regards.

The calendar is 254px wide and 278px tall, which is small enough even for ancient 320px-wide devices.
I'd also like to point out that pickadate.js creates an overlay and acts more like a modal window (see below).

I find its better for UX to have the calendar inline.
And even at 320px-wide resolutions, I think input sizes shouldn't be smaller than 255px anyways.
However, if supporting smaller widths is important for your project or you want to make the calendar even smaller, you can easily adjust the slot size in .flatpickr-day at flatpickr_base.less

Hi there!
 Flatpickr working directly in the input works perfect as well.
But the problem when the input is at the far right of the screen still occur :(
It pushes the layout to render the calendar, but I think it should pull itself to the left in these situations.

The reason why that happens is because the input and the calendar are wrapped in flatpickr-wrapper which has a relative position, and flatpickr-calendar has
position: absolute; top: 100%; left: 0;
in order to be right below the input. It has absolute positioning so it doesn't make the page jump up and down when opening/closing. So far I haven't found any better solutions

I've pushed some commits for responsiveness, please check if the problem is still there

Hi there!
Compressing the calendar at the far right worked just fine.
But what about changing the absolute position when the calendar is at the far right?
To test this, I forced the calendar width to be 266px, and sent it to the far right again:

I don't know how to detect via js if the calendar is at the far right, but if you can, changing the absolute position left to right can solve this.
Best regards!
Rafael Pacheco.

Hey there!
Just found in SO a code that identifies if the element in inside viewport. I changed it to change the css like I said above, and worked just fine. Here is the example code:
/* Check if the calendar is in viewport, and apply absolute changes to it */
function isElementInViewport(el) {
    /* jQuery helper, goes away in vanila js */
    if (typeof jQuery === "function" && el instanceof jQuery) {
        el = el[0];
    }

    var rect = el.getBoundingClientRect();

    var bottomOffset = (window.innerHeight || document.documentElement.clientHeight) - rect.bottom;
    var rightOffset = (window.innerWidth || document.documentElement.clientWidth) - rect.right;

    if (bottomOffset < 0) {
        /* jQuery example, need to change to vanila js */
        /* Would be better pre-defined classes to achieve this */
        $(el).css("bottom", "100%");
        $(el).css("top", "initial");
        $(el).css("margin-bottom", "3px");
    }

    if (rightOffset < 0) {
        /* same logic, disabling left and enabling right */
    }

    /* if bottom or right are positive, reset to original configuration */
}

This is just an idea of how to solve this problem, a few works needs to be done in it:
1: change it to 100% pure js, no jQuery.
2: run it for every calendar popup open.
3: create helper classes to achieve the desired position, instead of setting the style direct on the element.
4: fix the calendar width to 266px, and disable width compressing.
To test this code, I sent the calendar to the bottom of my page, which caused the same problem, pushed my layout further. Then I run the above command on the calendar element, and it returned negative bottomOffset when the calendar popup didn't fit the viewport, and 0 or positive when it did.
Hope it helps :+1:

There have been major changes to flatpickr's positioning in recent versions.
Is the issue still relevant ?

Hi there!
Still the same problem, layout are still being pushed further.
But now the calendar popup doen't follow window resizes. It stays fixed in it's original position. This could be a problem in mobile, when changing from vertical to horizontal layout.

But now the calendar popup doesn't follow window resizes. It stays fixed in it's original position. This could be a problem in mobile, when changing from vertical to horizontal layout.

Indeed. Thanks for letting me know!
Already fixed in the latest release

It would also be great, if the position of the picker would adjust depending on the space below or above the input field. On the attached screenshot, there is a rather long page. The window is scrolled so the input field is at the bottom of the screen. Above it, there is plenty of space. But the picker opens downwards so the user has to scroll again. It could just open upwards in this situation? Example: Bootstrap Tooltips behave like this.

I think this issue can be closed?
I've had no issue with how the current implantation behaves on mobile/small devices - most of the items mentioned originally have been fixed.

This seems to be the only result on google for 'flatpickr resize', so here is my solution using sass:
  $dayWidth: 32px; /*pixel square for each day - default is 39 */
  $width: $dayWidth * 7;
  .flatpickr-calendar {
    width: $width;
  }
  .dayContainer {
    width: $width;
    min-width: $width;
    max-width: $width;
  }
  .flatpickr-days {
    width: $width;
  }
  .flatpickr-day {
    max-width: $dayWidth;
    height: $dayWidth;
    line-height: $dayWidth;
  }

Here is some hacky CSS I wrote to make the calendar popup more friendly on mobile devices. It overrides all the positioning and centers the dialog on the screen using position: fixed. I post this to give an example of what the mobile view could look like. It would be nice to have an option like this in flatpickr rather than just the option to disable the native browser date picker, which disables all the added functionality of flatpickr.
@media (max-width: 480px) {
    .flatpickr-calendar {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        /* Hacky way to get the background overlay */
        outline: 999999px solid rgba(0, 0, 0, 0.5);
        max-width: 100%;
    }

    .flatpickr-calendar .flatpickr-rContainer {
        margin: auto;
        overflow-x: scroll;
    }

    .flatpickr-calendar.arrowTop:before,
    .flatpickr-calendar.arrowTop:after,
    .flatpickr-calendar.arrowBottom:before,
    .flatpickr-calendar.arrowBottom:after,
    .flatpickr-calendar.arrowLeft:before,
    .flatpickr-calendar.arrowLeft:after,
    .flatpickr-calendar.arrowRight:before,
    .flatpickr-calendar.arrowRight:after,
    .flatpickr-calendar.arrowCenter:before,
    .flatpickr-calendar.arrowCenter:after {
        display: none;
    }
}


DRILL-5259: Allow listing a user-defined number of profiles

Allow changing default number of finished queries in web UI, when starting up Drillbits
-Ddrill.exec.http.max_profiles=100
Alternatively, the page can be loaded dynamically for the same.
e.g. appending the parameter max=<listSize>
https://<hostname>:8047/profiles?max=100

+1


connect SIM800L to T-Display S3 Amoled (or t-display s3 Long)

hello everyone
can i connect and use the SIM800L module to the T-Display S3 Amoled or T-displey S3 long?
i am not sure if it can be done using the TX RX pins
thanks
best regards
zorro

UART interface refer to this, any GPIO can be set as UART
https://github.com/Xinyuan-LilyGO/LilyGo-AMOLED-Series/blob/e33ecc035731502e99f0b86d7d19af1fc75da8f1/examples/QWIIC_GPS_Shield/QWIIC_GPS_Shield.ino#L30

I was afraid there could be conflicts with the display or touch management.
thanks so much


Is v4.0.0 working ?

Hello
I am trying to make a simple poc working with 4.0.0.
https://sdk-cdn.mypurecloud.com/webrtc-sdk/latest/genesys-cloud-webrtc-sdk.bundle.min.js is not working.
https://sdk-cdn.mypurecloud.com/webrtc-sdk/4.0.0/genesys-cloud-webrtc-sdk.bundle.min.js seems ok.
But even with this trick I get 2 errors :
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
    at Module.<anonymous> (genesys-cloud-webrtc-sdk.bundle.min.js:2)
    at Module.<anonymous> (genesys-cloud-webrtc-sdk.bundle.min.js:2)
    at n (genesys-cloud-webrtc-sdk.bundle.min.js:2)
    at Module.<anonymous> (genesys-cloud-webrtc-sdk.bundle.min.js:336)
    at n (genesys-cloud-webrtc-sdk.bundle.min.js:2)
    at genesys-cloud-webrtc-sdk.bundle.min.js:2
    at genesys-cloud-webrtc-sdk.bundle.min.js:2
    at genesys-cloud-webrtc-sdk.bundle.min.js:2
    at genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:2
n @ genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:336
n @ genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:2
(anonymous) @ genesys-cloud-webrtc-sdk.bundle.min.js:2

index4.html:6 Uncaught TypeError: window.GenesysCloudWebrtcSdk is not a constructor
    at index4.html:6

With v3.6.7 it seems to work.
I will continue my poc on 3.6.7 for now but I hope it will be working on v4.0.0 soon.
Best

Apologies, v4.0.0 was release but was later found to have some issues due to the new build process. This issue is being worked on right now and a patched version should be released by EOD tomorrow. These reports are helpful to us so please continue to report any issues in the future.

Also we need to update the documentation since I don't think .../webrtc-sdk/latest/... is still valid.

Yes, /latest/ in the url is no longer used. That update was completely missed in the documentation. I will make sure to update the README and Changelog with that fix. This url will pull in the latest (v4.0.0 currently): https://sdk-cdn.mypurecloud.com/webrtc-sdk/latest/genesys-cloud-webrtc-sdk.bundle.min.js
I am working on fixing the Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'. It is a misconfiguration with the webpack build. Continue using v3.x for the time being. I will notify this issue once it is resolved.

@Loyc59 v4.0.1 was released this morning and will resolve the issue you were facing. I updated the README to account for the new cdn url and import. For quick reference:
New cdn url for the current version

https://sdk-cdn.mypurecloud.com/webrtc-sdk/latest/genesys-cloud-webrtc-sdk.bundle.min.js

Let me know if you run into any other issues and I can open this ticket back up. Thanks!

@djhouseknecht Thank you it is working now.


Update to net7

@dougbu rc2 isn't quite dead yet, could you merge this next week when it is? release/6.0 in aspnetcore is already updated to use the release/6.0 branch, but release/6.0-rc2 isn't

could you merge this next week when it is?

certainly

side note: no submodule would be auto-updated in our RC2 branch; Dependabot is configured to ignore every branch other than 'release/2.1', 'release/3.1', 'release/5.0', 'release/6.0' and 'main'. Further, the .github/dependabot.yml file in other branches (if any) is ignored.


Register button on the Login Screen #21 +The whole flow is breaking the container is not taking proper width #25

Ui changes have been done

Ui changes have been done

Buddy can you please attach a screenshot of the fix I will merge it once it reaches my expectations.

@ankitrout2903  i have fixed both the issues you can check

@ankitrout2903  i have fixed both the issues you can check

Buddy can I get a screenshot from you

i have attached the screenshot


HDDS-6184: EC: put command should create EC key if bucket is EC

What changes were proposed in this pull request?
Handled the client side configuration precedence and passing the null to server if no client configs available. Before this patch, client always passing values.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6184
How was this patch tested?
Added test to check the behavior.

I agree. Thanks @sodonnel and @fapifta for the reviews !!!


Export in only avaliable in ES(use esnext option)

I am using JSHint as sublime linter plugin. Any idea how to fix this?
This is the code:
export.render = function(req, res) {
res.send('Hello World');
};
Thanks.

That code will not work in any existing runtime. export is a FutureReservedWord since ES1 and a Keyword as of ES6, which means it has never been allowed as an Identifier. Is it possible that you meant exports (with an "s")?

I am sorry, my first day with javascript. You are correct. Fixing the export to exports made the error disappear . Thanks for the fast input.

Awesome! Glad to help :)


lack of validation (runAfter)

runAfter does not do validation on its value. If it is not an array, it silently ignores it.
This has got me several times, when dealing with a runAfter dependency on just one task.
I would invariably tend to write it as:
runAfter: otherTask

instead of
runAfter:
  - otherTask

Tekton will accept the first form, then proceed to happily ignore it, so the otherTask will be fired concurrently with the task at hand and I will be left scratching my head about it.
Expected Behavior
Either runTask accepts the first form (it honours the dependency) or throws an error.
Actual Behavior
runAfter accepts the first form, but ignores it (no dependency on otherTask being finished).

@Miguel-Otero-IBM can you share the version of tekton pipeline that is deployed ? Also, can you list the deployments in tekton-pipelines ?
kubectl -n tekton-pipelines get deployment

Tried it out and it does validates :
Error from server (BadRequest): error when creating "workspaces.yaml": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: cannot unmarshal string into Go struct field PipelineTask.spec.tasks.runAfter of type []string

So my guess is that the webhook doesn't seem to run on your cluster :thinking:

Tekton Pipeline is version 0.14.1 running on a private node on IBM Cloud.
kubectl -n tekton-pipelines get deployment
NAME                          READY   UP-TO-DATE   AVAILABLE   AGE
private-worker-agent          1/1     1            1           3d1h
tekton-pipelines-controller   1/1     1            1           3d1h
tekton-pipelines-webhook      1/1     1            1           3d1h


How to Modify Element

Hi
now in bongo there is 3 operations insert , delete and find
what if i need to modify exciting element what i should do

@Ahmad-Magdy Bongo supports updates as well. If you save a document and it has an Id defined it will do an update and not an insert.

There might be cases where I would only want to do an update but not an insert if the document id doesn't exist.
If the documentid doesn't exist I would want to have an error returned.
Is there a way to do this with bongo without using the raw mgo sessiob?


Is this project still active ?

Hi, just wanted to know if this project is still active, if not is there an actively maintained Fork ?
Thank you.

I handed the project over to @arkenoi with the intention that he would continue development, but I think it would be ffaor to say that the project has been abandoned


zplug list shows duplicate "b4b4r0z/zplug" entry

Hi! Amazing framework you've built here.
I've followed the instructions to auto-update zplug with zplug, but when zplug list I get a duplicate zplug entry:
~ [master] λ zplug list
djui/alias-tips  =>  dir:/home/ory/.zplug/repos/djui/alias-tips
zsh-users/zsh-completions  =>  of:src, dir:/home/ory/.zplug/repos/zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting  =>  dir:/home/ory/.zplug/repos/zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search  =>  dir:/home/ory/.zplug/repos/zsh-users/zsh-history-substring-search
b4b4r07/zplug  =>  dir:/home/ory/.zplug/repos/b4b4r07/zplug
b4b4r07/zplug  =>  dir:/home/ory/.zplug/repos/b4b4r07/zplug
sorin-ionescu/prezto  =>  of:init.zsh, do:ln -s /home/ory/.zplug/repos/sorin-ionescu/prezto ~/.zprezto, dir:/home/ory/.zplug/repos/sorin-ionescu/prezto
supercrabtree/k  =>  dir:/home/ory/.zplug/repos/supercrabtree/k

~ [master] λ k .zplug
total 144
-rw-rw-rw- 1 ory ory   616  8 Mar   17:15 | init.zsh
-rw-r--r-- 1 ory ory 12593  8 Mar   17:13 | README.md
drwxr-xr-x 7 ory ory  4096  8 Mar   17:15 | repos
-rw-r--r-- 1 ory ory 48154  8 Mar   17:14 | zcompdump
lrwxrwxrwx 1 ory ory    42  8 Mar   17:15 | zplug -> /home/ory/.zplug/repos/b4b4r07/zplug/zplug

Any idea?

Hmm... I can't seem to reproduce this problem. Could you show us a minimal .zshrc that makes this happen?

I will close this issue since there hasn't been a reply in a while, thus I assumed the problem went away :balloon: Feel free to reopen if the issue persists!


LinearBVH cleanup

Summary

Removes linear_bvh::AABB, linear_bvh::Vec, and linear_bvh::Range; and replaces them with primal::BoundingBox and primal::Point/Vector.
Make some more functions on primal::BoundingBox and primal::Vector host/device-enabled.
Enable using spin::Mortonizer and convertPointToMorton() functions on the GPU.
Use implicitly-generated copy and assignment constructors for BoundingBox,Vector, Point, and NumericArray; this seems to improve performance of the BVH traversal on the GPU.

@bmhan12 the "LGTM" comment is no longer needed to launch the Gitlab CI, or were you just making a comment?

@bmhan12 the "LGTM" comment is no longer needed to launch the Gitlab CI, or were you just making a comment?

Just the comment 👍