text:
We should probably not sum joint_logprob by default

Currently, joint_logprob returns a scalar whatever the number of dimensions of the observation variable by default:
from aeppl import joint_logprob
import aesara.tensor as at
import numpy as np

srng = at.random.RandomStream(0)
a_rv = srng.normal(0, 1, size=10)

a_vv = a_rv.clone()
logprob = joint_logprob({a_rv: a_vv})

print(logprob.eval({a_vv: np.ones(10)}))
# -14.189385332046724

I think that this behavior is confusing. To understand why, consider two cases in which we’d want the observation variable above to be a vector:

If we have multiple (10) observations and would like to compute the joint probability of these observations as a function of the parameters, e.g. the likelihood.
We want to sample from the posterior distribution with 10 chains.

In the first case, summation by default will work. In the second it will fail, and one will have to do instead:
logprob = joint_logprob({a_rv: a_vv}, sum=False)
print(logprob.eval({a_vv: np.ones(10)}))
# [-1.41893853 -1.41893853 -1.41893853 -1.41893853 -1.41893853 -1.41893853  -1.41893853 -1.41893853 -1.41893853 -1.41893853]

I would rather have joint_logprob return a vector in this case and require the user to explicitly sum the result when computing the log-likelihood. This make intent more explicit in the code, and avoids the use of a keyword argument.
As an aside, I wouldn't have so much of a problem with the summation by default if we had a canonical way to handle multiple chains e.g. with something like logprobs = elemwise(logprob)(np.ones(10)) (pseudo code). Maybe this exists and I am not aware of it?

The reason we sum by default is that sum=False is doing something "unsafe" at the moment with multiple variables. It is calling elemwise add across the multiple independent logp terms, which may have different shapes or be otherwise unrelated dimension-wise.

Any interest in changing the default to sum=False and returning the tuple of logprobs when multiple variables are requested?

Any interest in changing the default to sum=False and returning the tuple of logprobs when multiple variables are requested?

Don't see why not.

authors: brandonwillard ricardoV94 rlouf

repo: aesara-devs/aeppl


text:
Fix RVTransform.log_jac_det method for vector values

One extra dimension was being added needlessly by not taking the first item of the jacobian

Looks like we need to update some imports for the recent Aesara changes.

Failing test, sounds like something changed upstream in Aesara?

ImportError: cannot import name 'CType' from 'aesara.graph.type'

I started a PR for the Aesara 2.5 updates: https://github.com/aesara-devs/aeppl/pull/124.  Looks like it might only be that one import, though.

This just needs to be rebased now.

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
Callback URL after deeplink call

Redirect to a certain URL provided as a param in the deeplink after signature.

was it implemented in #338?

source: gharchive/issue

authors: davidyuk mradkov

repo: aeternity/superhero-wallet

license: ISC


text:
Switch reproducibility guidance to uv

But make clear may not work for packages that need compilation or complex dependencies (such as PyMC)

Closed in 49f9864

repo: aeturrell/coding-for-economists


text:
Rollup Summary on Case with a SUM of a custom field on Task not working

Found this thread from 2016 that didn't seem to resolve the issue that I am also having (https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/289)   #289 @violetyyyy @afawcett
Here is a screen shot of my rollup:

I also have a parent record filter when I calculated for the only Case Record Types that we are currently using RecordType.Name = 'Resource Navigation' OR RecordType.Name = 'Self-management' OR RecordType.Name = 'Education Consultation'
Any help would be much appreciated!

Update: It appears to be working Realtime, but the Calculate job for all existing records does not seem to work. The In_Person_Meeting_Minutes__c field reads 0 (Zero) until I create a new task on the case or edit an existing task on the case.

Yes, In_Person_Meeting_Minutes__c needs to have a value (not null) in it to be aggregated by SOQL. Make sure that this field is always popupualted.

authors: afawcett mwinklerbiac

license_source: bigquery


text:
hosting my own proxy - getting a script loading error  with JSONP - firefox only

Hi,
I forked the repo (https://github.com/FredHutch/jsonp) and I am running my own proxy at
https://wiki-json-proxy.fhcrc.org/ . I did remember to change PROXY to my host's URL.
The proxy fails to work ONLY when ALL of the following are true:

when used in javascript (as opposed to curl or putting a URL in a browser)
when run in Firefox (Safari and Chrome are OK); this is Firefox 66.0.5 on macOS 10.14.4
when using my hosted/forked version. If I use jsonp.afeld.me it works fine even when the above conditions are true.

Here is the web page in question:

hi

On Firefox I see the following in the Javascript console:
jquery ready!
Loading failed for the

authors: afeld dtenenba

repo: afeld/jsonp

license: mit


text:
Hackerrank - 30 days of coding: day 28 in python added

Hi! Added day 28 for hackerrank 30 Days of Coding written in Python.

Thanks for the pull request. Do follow the same suggested changes as in #5 for this pull request as well.
Rename the folder and files (both cpp and python solution files in it) as Day_28_RegEx_Patterns_and_Intro_to_Databases with their extensions.
It is good for merge after that :100:

The changes look good @ishabes and @IharSha , Well done  :tada: :smile:

@all-contributors please add @IharSha and @ishabes for code

@all-contributors please add @ishabes for code

authors: IharSha afrozchakure


text:
GOA Skate Species disappear from certain years

Issue

I run the GOA skate assessment. This assessment divides skates into three groups. My biomass values from last year's assessment match up with the ones produced from GAP. However the third group "other skates", the biomass values for 1990, 1993 and 1996 do not match up. The GAP values are significantly lower. After doing some investigating, I discovered that species_code 435, 471 and 472 were not present in GAP those years and represent the bulk of the "other skate" biomass in those years. The three species-code start appearing in 1999 and their biomass values from 1999 forward match up from to last years assessment values. So my issue/question is what happened to those species code in 1990, 1993 and 1996.
Attached is an image of how I quaried that data from GAP

Hi Lee,
The taxonomic confidence levels for those three species pre-1999 are fairly low, so we have decided to only include those records from 1999-on as the standard product in GAP_PRODUCTS. Pinging @Ned-Laman-NOAA just in case he has any insight about including these skates pre-1999 in the assessment.
To get those skate records pre-1999, we would need to do a custom pull from gapindex, which is the package used to create the GAP_PRODUCTS tables. So something like:
## devtools::install_github("afsc-gap-products/gapindex")
library(gapindex) #v2.2.0

## Connect to Oracle using your AFSC database credentials
sql_channel <- gapindex::get_connected()

## Pull other skate data, 1990-2023
gapindex_data <- gapindex::get_data(
  year_set = c(1990:2023),
  survey_set = "GOA",
  spp_codes = c(400, 420, 435, 440, 455, 460, 471, 472, 480, 485),
  haul_type = 3,
  abundance_haul = "Y",
  pull_lengths = T,
  sql_channel = sql_channel)

## Fill in zeros and calculate CPUE
cpue <- gapindex::calc_cpue(racebase_tables = gapindex_data)

## Calculate stratum-level biomass, population abundance, mean CPUE and
## associated variances
biomass_stratum <- gapindex::calc_biomass_stratum(
  racebase_tables = gapindex_data,
  cpue = cpue)

## Calculate aggregated biomass and population abundance across subareas,
## management areas, and regions
biomass_subareas <- gapindex::calc_biomass_subarea(
  racebase_tables = gapindex_data,
  biomass_strata = biomass_stratum)

subset(x = biomass_subareas,
       subset = AREA_ID == c(803, 804, 805),
       select = c(SURVEY_DEFINITION_ID, AREA_ID, YEAR, SPECIES_CODE,
                  BIOMASS_MT, BIOMASS_VAR))

Thanks for the clarifying response.
I have been thinking about this and was wondering why weren't the 435, 471 and 472 skates pre-1999 moved to the species code 400 (skate unid)? For the assessment, the 435, 471 and 472 skates only impact the "other skate" category and I don't need to know the species level for skates in that category.

I'd support Lee's notion of rolling up the pre-99 uncertainly ID'd skates into Rajidae/skate unid. (400). We confidently know they were skates and we have the weights and counts so we don't want to just "leave them out."
There is a real challenge here with how we manage the on/off grouping of taxa and is part of an ongoing effort to develop and modernize the taxonomic side of our database and data management systems so I don't want to give the impression that this is trivial. It will take some time to implement this.

Hi @Lee-Cronin-Fine-NOAA
Hopefully these responses and/or code will help you with this issue at least in the short term.
@Ned-Laman-NOAA : would that involve changing species_code values within RACE_DATA/RACEBASE pre-1999 or via the GROUP_CODE functionality in gapindex to create aggregations?

@zoyafuso-NOAA I think we should tap into the taxonomic brain trust on this one, but believe that whenever we're downgrading a species ID due to confidence we should be providing an aggregation option to the higher confidence ID level. So in this case, rolling those skates up to Rajidae from the spp. level during that low spp. confidence stanza makes sense to me. They were there, we have the data, we don't want it to drop out entirely, just get confidently renamed and appropriately aggregated.

My mistake, if we are aggregating to the next taxonomic level up, we would be rolling 435, 471, and 472 up to SPECIES_CODE 405 (Bathyraja sp.) pre-1999 (even though Bathyraja parmifera was renamed to Arcoraja parmifera). SPECIES_CODE 405 is not in the filter that @Lee-Cronin-Fine-NOAA uses in the query above and the inclusion of SPECIES_CODE 405 could introduce other mismatches. So regardless of what we do in the future with GAP_PRODUCTS, I think @Lee-Cronin-Fine-NOAA should use a custom pull from gapindex as provided above as this now creeps into the arena of non-standard requests.
@Lee-Cronin-Fine-NOAA , can you confirm how well the code above matches data you've used in the past.

Hey all, I am just reviewing issues and making sure we've addressed them. @Lee-Cronin-Fine-NOAA did this solution work for you?

I think we can close this and Lee can create another issue if something else comes up.

authors: EmilyMarkowitz-NOAA Lee-Cronin-Fine-NOAA Ned-Laman-NOAA zoyafuso-NOAA


text:
Windows深色模式托盘图标四角残留白色底色

现在在Windows深色模式100%缩放下，托盘的图标四个角仍然有白色残留。是不是因为图标绘制时使用的正方形背景没有做透明处理？望优化。
PS：终于更新了，很多问题都修复了！好耶！支持作者，非常棒的app！

另外，我觉得可以适当增大图标尺寸，apple music的大小就很合适，可以更好的展示图标细节。

repo: agalwood/Motrix


text:
文件内容目录信息

Is your feature request related to a problem? Please describe.
 磁力文件内容希望能够切换按原目录展示（目前是打平成一级展示，可以提供手动切换视图的 icon），否则所有文件打平到一级，无法以目录为组勾选是否下载，而且丢失了目录信息
Additional context

https://github.com/agalwood/Motrix/issues/962#issuecomment-847802079

authors: Jancat agalwood


text:
⚠ AGEG website (prod) has degraded performance

In ea1d55b, AGEG website (prod) (https://www.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2381 ms

Resolved: AGEG website (prod) performance has improved in 41d6bde.


text:
⚠ AGEG website (prod) has degraded performance

In 94d8314, AGEG website (prod) (https://www.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 1887 ms

Resolved: AGEG website (prod) performance has improved in 0db0b2e.


text:
Redirecting after login to a specific route

How hard would it be to implement a redirection to a specific route after the login. Currently if I link a collection from an external system, I can send the url to the author ie:
https://cockpit.mydomain.com/collections/entries/MYCOLLECTION
Right now, he will get the login screen and then the dashboard, I would like for him to get the login screen and then the page MYCOLLECTION.
Thanks

Exactly this was implemented 5 days ago:
https://github.com/agentejo/cockpit/commit/08709873e1e06e2412a65d76a669c96935c84dab

Top!

authors: patricksebastien raffaelj

repo: agentejo/cockpit


text:
Blas GEMM Launch Failed Error when running

from tf_agents.agents.dqn.dqn_agent import DqnAgent

train_step = tf.Variable(0)
update_period = 4 # run a training step every 4 collect steps
optimizer = tf.compat.v1.train.RMSPropOptimizer(learning_rate=2.5e-4, decay=0.95, momentum=0.0,
                                     epsilon=0.00001, centered=True)
epsilon_fn = keras.optimizers.schedules.PolynomialDecay(
    initial_learning_rate=1.0, # initial ε
    decay_steps=250000 // update_period, # <=> 1,000,000 ALE frames
    end_learning_rate=0.01) # final ε
agent = DqnAgent(tf_env.time_step_spec(),
                 tf_env.action_spec(),
                 q_network=q_net,
                 optimizer=optimizer,
                 target_update_period=2000, # <=> 32,000 ALE frames
                 td_errors_loss_fn=keras.losses.Huber(reduction="none"),
                 gamma=0.99, # discount factor
                 train_step_counter=train_step,
                 epsilon_greedy=lambda: epsilon_fn(train_step))
agent.initialize()_

I get the following error when I run this cell for chapter 18.

Blas GEMM launch failed : a.shape=(1, 3136), b.shape=(3136, 512), m=1, n=512, k=3136 [Op:MatMul]
In call to configurable 'DqnAgent' (<class 'tf_agents.agents.dqn.dqn_agent.DqnAgent'>)

All the other code in the section seems to run fine. Does anyone know why this is happening?

I think that has to do with out of memory.
Try to add:
gpus = tf.config.experimental.list_physical_devices('GPU') if gpus:   try:     # Currently, memory growth needs to be the same across GPUs     for gpu in gpus:       tf.config.experimental.set_memory_growth(gpu, True)     logical_gpus = tf.config.experimental.list_logical_devices('GPU')     print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")   except RuntimeError as e:     # Memory growth must be set before GPUs have been initialized     print(e)

Thanks for your feedback, @JollyWanderer , and thanks for your suggestion @Htnek.
Also, I've recently updated all the libraries to the latest versions (including TF 2.4 and TF Agents 0.7). Perhaps try updating to these latest libraries and the latest code (I made minor tweaks)?

This could also happen when your GPU is already used by another process (I had this a couple of times too).

Indeed, thanks @lebaste77 that's a great point. 👍
@JollyWanderer, please make sure you don't have another Jupyter notebook (or any other process) open with TensorFlow loaded, or else it will already have reserved most of the GPU's RAM. In chapter 19, this can easily happen since we import tensorflow and then we run some other processes (like tensorflow serving) that may also reserve RAM.

I see! Thank you guys for the input. I realized that I had a separate software that was using the GPU when I was running the algorithm. The code that @Htnek help as well! Thank you!

authors: Htnek JollyWanderer ageron lebaste77


text:
Chapter 3: plot_digits() error

I have this code:
some_index = 5500
plt.subplot(121); plot_digits(X_test_mod[some_index])
plt.subplot(122) #plot_digits(y_test_mod[some_index])
plt.show()

But there are some errors in the function plot_digits()
def plot_digits(instances, images_per_row=10, **options):
    size = 28
    images_per_row = min(len(instances), images_per_row)
    images = [instance.reshape(size,size) for instance in instances]
    n_rows = (len(instances) - 1) // images_per_row + 1
    row_images = []
    n_empty = n_rows * images_per_row - len(instances)
    images.append(np.zeros((size, size * n_empty)))
    for row in range(n_rows):
        rimages = images[row * images_per_row : (row + 1) * images_per_row]
        row_images.append(np.concatenate(rimages, axis=1))
    image = np.concatenate(row_images, axis=0)
    plt.imshow(image, cmap = plt.cm.binary, **options)
    plt.axis("off")

It shows me this:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-89-2bf391be4bbb> in <module>
      1 some_index = 5500
----> 2 plt.subplot(121); plot_digits(X_test_mod[some_index])
      3 plt.subplot(122); plot_digits(y_test_mod[some_index])
      4 plt.show()
      5

<ipython-input-39-75ce87a65aba> in plot_digits(instances, images_per_row, **options)
      9     size = 28
     10     images_per_row = min(len(instances), images_per_row)
---> 11     images = [instance.reshape(size,size) for instance in instances]
     12     n_rows = (len(instances) - 1) // images_per_row + 1
     13     row_images = []

<ipython-input-39-75ce87a65aba> in <listcomp>(.0)
      9     size = 28
     10     images_per_row = min(len(instances), images_per_row)
---> 11     images = [instance.reshape(size,size) for instance in instances]
     12     n_rows = (len(instances) - 1) // images_per_row + 1
     13     row_images = []

ValueError: cannot reshape array of size 1 into shape (28,28)

How can I solve that? I tried a lot of things like reshape and nothing!

Hi @LuchoGomez24 ,
Thanks for your question. The plot_digits() function excepts a 2D NumPy array containing potentially multiple images. Its shape should be: [batch_size, 784]. But your code passes it X_test_mod[some_index], which is presumably a 1D array of shape [784]. So you should try calling the plot_digit() function instead of plot_digits() (or you could pass X_test_mod[some_index:some_index+1] or X_test_mod[np.newaxis, some_index] to the plot_digits() function).
When you run into an error, I recommend you make sure your code is identical to the one in the Jupyter notebook in this project. In this case, the code in the notebook for chapter 3 contains this code:
some_index = 0
plt.subplot(121); plot_digit(X_test_mod[some_index])
plt.subplot(122); plot_digit(y_test_mod[some_index])

Note that it uses plot_digit() instead of plot_digits().
Hope this helps!

Thanks. I will try to copy plot_digit() instead of plot_digits() but the last time I tried it, it didn't work.

Closing this issue. Please reopen if the problem persists.


text:
Parse error on query with accented characters

Hi,
I have two dataset t1 and t2 in json which contains in theirs properties names some accented characters.
I would to merge them using alasql but I got a parse error when I try to do that.
Someone can help me to solve this issue ?
Here is t1 dataset :
{
  Tiers: "GRDE PHCIE DU COM-PLT",
  "Chiffre Affaire HT": "5000"
}

t2 dataset :
{
  Tiers: "GRDE PHCIE DU COM-PLT",
  "Pièce": "FLP180364",
  Journal: "Remise à l'encaissement BOA N°2"
}

Alasql Query :
SELECT
    t1.Tiers AS t1_Tiers,
    t2.Journal AS t2_Journal,
    t2.Pièce AS t2_Pièce,
    SUM(t1.[Chiffre Affaire HT]) AS t1_Chiffre_Affaire_HT
FROM ? t1 LEFT JOIN ? t2 ON t1.Tiers = t2.Tiers
GROUP BY t1.Tiers, t2.Journal, t2.Pièce
```

The error that I get :
SyntaxError: Parse error on line 1:
...AS t2_Journal, t2.Pi├¿ce AS t2_Pi├¿ce, SUM
-----------------------^
Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'EndTransaction', 'WITH', 'COMMA', 'AS', 'LPAR', 'RPAR', 'SEARCH', 'PIVOT', 'FOR', 'UNPIVOT', 'IN', 'REMOVE', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'DOTDOT', 'CARET', 'EQ', 'WHERE', 'OF', 'CLASS', 'NUMBER', 'STRING', 'SLASH', 'VERTEX', 'EDGE', 'EXCLAMATION', 'SHARP', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'DOLLAR', 'AT', 'SET', 'TO', 'VALUE', 'ROW', 'COLON', 'NOT', 'IF', 'UNION', 'ALL', 'ANY', 'INTERSECT', 'EXCEPT', 'AND', 'OR', 'PATH', 'RETURN', 'REPEAT', 'PLUS', 'STAR', 'QUESTION', 'FROM', 'DISTINCT', 'UNIQUE', 'SELECT', 'INDEX', 'INTO', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'ANTI', 'ON', 'USING', 'GROUP', 'HAVING', 'FIRST', 'LAST', 'DIRECTION', 'COLLATE', 'LIMIT', 'OFFSET', 'JAVASCRIPT', 'CREATE', 'SUM', 'COUNT', 'MIN', 'MAX', 'AVG', 'AGGR', 'ARRAY', 'REPLACE', 'NSTRING', 'NULL', 'RBRA', 'BRAQUESTION', 'END', 'WHEN', 'THEN', 'ELSE', 'REGEXP', 'TILDA', 'GLOB', 'ESCAPE', 'NOT_LIKE', 'BARBAR', 'MINUS', 'AMPERSAND', 'BAR', 'GE', 'LE', 'EQEQ', 'EQEQEQ', 'NE', 'NEEQEQ', 'NEEQEQEQ', 'BETWEEN', 'NOT_BETWEEN', 'IS', 'DOUBLECOLON', 'UPDATE', 'DELETE', 'INSERT', 'DEFAULT', 'VALUES', 'IDENTITY', 'CHECK', 'PRIMARY', 'KEY', 'FOREIGN', 'REFERENCES', 'ColumnConstraints', 'ENUM', 'DROP', 'ALTER', 'RENAME', 'ADD', 'MODIFY', 'ATTACH', 'DATABASE', 'DETACH', 'USE', 'SHOW', 'SOURCE', 'ASSERT', 'ATLBRA', 'LCUR', 'RCUR', 'OFF', 'COMMIT', 'ROLLBACK', 'BEGIN', 'WHILE', 'CONTINUE', 'BREAK', 'PRINT', 'REQUIRE', 'ECHO', 'DECLARE', 'TRUNCATE', 'MERGE', 'OUTPUT', 'CONTENT', 'COLONDASH', 'QUESTIONDASH', 'CALL', 'BEFORE', 'AFTER', 'INSTEAD', 'REINDEX', 'GO', 'SEMICOLON', got 'INVALID'

You cant use è in a table name without wrapping the name in `...` or [...]

repo: agershun/alasql


text:
u-boot patch 0001-dm-core-Move-ofdata_to_platdata-call-earlier.patch does not apply correctly

Description

yocto fails to apply patch
Steps to reproduce the issue:

use machine raspberrypi-cm3
bitbake -c configure u-boot

Describe the results you received:
ERROR: u-boot-1_2020.01-r0 do_patch: Command Error: 'quilt --quiltrc [...]/u-boot/1_2020.01-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch 0001-dm-core-Move-ofdata_to_platdata-call-earlier.patch
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 336d86ebd146905cf4384912f4f27699b6e37c72 Mon Sep 17 00:00:00 2001
|From: Simon Glass <sjg@chromium.org>
|Date: Sun, 29 Dec 2019 21:19:17 -0700
|Subject: [PATCH] dm: core: Move ofdata_to_platdata() call earlier
|
|This method is supposed to extract platform data from the device tree. It
|should be done before the device itself is probed. Move it earlier in the
|device_probe() function.
|
|Upstream-Status: Backport
|
|Signed-off-by: Simon Glass <sjg@chromium.org>
|---
| drivers/core/device.c | 14 +++++++-------
| 1 file changed, 7 insertions(+), 7 deletions(-)
|
|diff --git a/drivers/core/device.c b/drivers/core/device.c
|index 4e03708..291ff4c 100644
|--- a/drivers/core/device.c
|+++ b/drivers/core/device.c
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Patch 0001-dm-core-Move-ofdata_to_platdata-call-earlier.patch does not apply (enforce with -f)

Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Additional details (revisions used, host distro, etc.):
u-boot commit c66dbbe07e5da75c4704aa9b28036e4752814c22
meta-raspberry commit 59c2d6f7a8b1239bd7b587b9180c2a55f9c695a2
using Dunfell
I could propose a PR for working patch since i had to do this myself with devtool modify.

Sounds good. Feel free to push a PR.

Hello,
I can't reproduce this issue with:

poky: dunfell
meta-openembedded: dunfell
meta-raspberrypi: dunfell
MACHINE = "raspberrypi-cm3"

Can we maybe close it?

Thanks for confirming @Mastiggia. Closed.

authors: Mastiggia agherzan emilm

repo: agherzan/meta-raspberrypi


text:
Backports from master in langdale to fix CI and builds

This includes https://github.com/agherzan/meta-raspberrypi/pull/1107 in langdale and other build fixes/backports.

LGTM. Maybe you can just merge master into langdale as they will be identical after this PR (just with different SHAs if not merged as FF).

Absolutely @shr-project. Done.

Well the fast-forward didn't happen in the end (93dadf3 force-pushed here was correct, but then it was merged as 6f5771d), maybe the repo on github isn't configured to do fast-forward when possible?
martin@jama /OE/layers/meta-raspberrypi $ git diff origin/langdale origin/master
martin@jama /OE/layers/meta-raspberrypi $ git log --oneline origin/master..origin/langdale
6f5771d (HEAD -> origin/langdale) raspberrypi4-64: drop DEFAULTTUNE assignment
2d4b292 ci: Fix dco-check job with newer git versions
f581683 ci: Bump actions/checkout to v3
9a5e649 libcamera: rename bbappend to match any version

but that's OK.

@shr-project yeah, that is a limitation of GitHub.It doesn't support fast-forward. Which is just annoying,

@agherzan fast-forward works for me, but maybe you don't have "Allow rebase merging" enabled for PRs.

authors: agherzan shr-project


text:
pond-build fails on Tails 1.7

The setup instructions failed on the latest Tails release (1.7).
The instructions are for version 1.1.1, and I am not familiar enough with Go to check if it is a dependency issue or something else. Will look into documentation on the subject, any suggestions appreciated.

I could not get pond/client to build on tails 1.8, so I attempted tails 2.0rc1 ( available since 12 Jan ) here is what to do to get pond on tails 2.0rc1:
sudo su -
apt-get install -y golang git gcc libgtk-3-dev libgtk-3-dev libtspi-dev pkg-config \
    gtkspell3-3.0 libgtkspell3.3-dev
export GOPATH=/usr/src/gopkg-pond
mkdir -p $GOPATH
chown -R debian-tor:debian-tor $GOPATH
sudo -u debian-tor \
    GOPATH=/usr/src/gopkg-pond go get -d -v github.com/agl/pond/client
cd /usr/src/gopkg-pond/src/github.com/agl/pond/client/
sudo -u debian-tor \
    GOPATH=/usr/src/gopkg-pond go build -o pond-client  && \
    install -o root -m 755 pond-client /usr/local/bin/pond-client

then as amnesia
amnesia@amnesia:~$ pond-client -cli
>>> Pond...
>>> Please enter the passphrase used to encrypt Pond's state file. If you set a passphrase and forgot it, it cannot be recovered. You will have to start afresh.
password>

or just
amnesia@amnesia:~$ pond-client

for the gui

You guys should just be able to install from Debian experimental directly. Like apt-get install -t experimental pond or something like that. It's only CLI because the GUI code is not production-ready yet; see #143.

authors: infinity0 nalck threatnoodle

repo: agl/pond


text:
good paper

Causal Inference via Predictive Coding:   https://arxiv.org/abs/2306.15479
Sophisticated Inference  https://arxiv.org/abs/2006.04120

Excellent choices -- these could be some good candidates for some models to possibly add to the model museum, specifically the first one as it is a predictive coding model.

Neuron-centric Hebbian Learning
https://arxiv.org/pdf/2403.12076


text:
🛑 SIHE Canvas is down

In c051e75, SIHE Canvas (https://canvas.sheridan.edu.au) was down:

HTTP code: 503
Response time: 1230 ms

Resolved: SIHE Canvas is back up in 9f3731e after 6 minutes.

repo: agrez/upptime


text:
Update asset_registry_api.md

https://github.com/agstack/agstack-website/issues/2

Merging this to test the table

repo: agstack/agstack-website


text:
Setting KanBan

We are a team of two members @BonkeGcobo  and @ahangarha
@BonkeGcobo
Will be responsible for working on the rocket part of the project.
@ahangarha
Will be responsible for working on the mission part of the project
Link to the Kanban project: https://github.com/ahangarha/Space-Travelers-Hub/projects/1

Hi Team,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted an issue, that doesn't contain a link to your Github project. You need to submit an issue with a link to your Github project.
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Hi @ahangarha,
Congratulations! 🎉
Your project is complete!  There is nothing else to say other than... it's time to merge it 🚀 :
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

authors: BonkeGcobo FrederickMih dasileker

repo: ahangarha/Space-Travelers-Hub


text:
corona help doesn't work

corona help doesn't work like advised in the readme file, understood ?

Stop creating multiple issues for the same thing understood ?
Update your CLI npm i -g corona-cli

authors: LDdvlp ahmadawais

repo: ahmadawais/corona-cli


text:
Why doesn't anyone explain how to add a context? It's not friendly to beginners.

Why doesn't anyone explain how to add a context? It's not friendly to beginners.

See Kubernetes docs for that.
Typically your cluster creation method creates contexts.

repo: ahmetb/kubectx


text:
🛑 CR Metrics is down

In 22a4279, CR Metrics (34.125.236.8:3000/api/metrics) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CR Metrics is back up in 5b6fffe.


text:
Request

Please, is difficult to develope a function that return true if a signature is present and false if not?
I need to understand if a document has been signed.
Thanks a lot

This is not a bug, you can easily add your need as a new feature so your modified program can understand that any signatures are detected or not...
You can process the output image and if the output image contains any connected pixels then you should return "true" otherwise you should return "false".. That's all...


text:
Error with skimage

Error: 'image' and 'label' must be the same shape
While using the label2rgb function. The labels have (x,y,3) dimensions. How is that possible?

Can you share stack-trace, please?

Hi, maybe this helps:
Traceback (most recent call last):
  File "...deteccionFirma.py", line 86, in FiltradoFirmas
    image_label_overlay = label2rgb(blobs_labels, image=img)
  File "...\AppData\Roaming\Python\Python38\site-packages\skimage\_shared\utils.py", line 66, in fixed_func
    return func(*args, **kwargs)
  File "...\AppData\Roaming\Python\Python38\site-packages\skimage\color\colorlabel.py", line 113, in label2rgb
    return _label2rgb_overlay(label, image, colors, alpha, bg_label,
  File "...\AppData\Roaming\Python\Python38\site-packages\skimage\color\colorlabel.py", line 162, in _label2rgb_overlay
    raise ValueError("`image` and `label` must be the same shape")
ValueError: `image` and `label` must be the same shape

While reading the image, did you read same way as in code?
 img = cv2.imread(image_path, 0)
if you remove 0, you will get this zero

authors: JuanJo57 ahmetozlu seanbenhur sweta-lab


text:
Dep omdbapi key

Add README-OMDBAPI and requirements.txt back to bundle

cancelling this request, incorrect files

repo: ahnooie/automatic-ripping-machine


text:
🛑 Dashboard is down

In 74af6a5, Dashboard (https://guard-bot.ahq-alt.repl.co/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dashboard is back up in 9ea859a.


text:
Create an ansible playbook for an Ubuntu VM

Closes #100

Note: The Ansible workflow is failing because the inventory file does not have the IP of the VM. Once this PR is merged, the IP will be added to the VM, and a modification to the inventory file will be made to apply the playbooks to the VM.

repo: ai-cfia/howard


text:
Support for LangChain

Describe the feature
Hey.
It would be very cool if we could use LangChain. It would add a lot of new ways to use GPT. And we could also take advantage of LangChain's Memory feature, which would save us some tokens and not have to spend so much on the GPT4 API which is so expensive at the moment.

@EzYDark thank you for the great suggestion!

authors: EzYDark genieai-info

repo: ai-genie/chatgpt-vscode


text:
Can't exclude QQAndroid and UCAndroid

My .browserslistrc:
last 2 version
not QQAndroid > 0
not UCAndroid > 0

CLI returns (./node_modules/autoprefixer/node_modules/browserslist/cli.js --config=".browserslistrc"):
and_chr 59
and_ff 54
and_qq 1.2
and_uc 11.4
android 56
android 4.4.3-4.4.4
baidu 7.12
bb 10
bb 7
chrome 59
chrome 58
edge 15
edge 14
firefox 54
firefox 53
ie 11
ie 10
ie_mob 11
ie_mob 10
ios_saf 10.3
ios_saf 10.0-10.2
op_mini all
op_mob 37
op_mob 12.1
opera 46
opera 45
safari 10.1
safari 10
samsung 5
samsung 4

I have tried to use not and_qq > 0 and not and_uc > 0, but it does not work too.
autopefixer 7.2.1 / browserlist 2.2.2

The same thing with Baidu.

You can use last 1 QQAndroid version as a temporary solution.
I will try to look into this problem in Friday.

Same with not ie 10. It's simply ignored.

@thorn0 looks like you have another problem. not ie 10 works pretty well: http://browserl.ist/?q=defaults%2C+not+ie+10.

@thorn0 you must to pass some query before any not-query.
OK< I will add warning for this case, too many people made this mistake.

@thorn0 hm, I already have warning for not-query without query before. What was your browsers query exactly and what tool do you use?

Released in 2.3.2

@ai I'm using grunt-postcss:
postcss: {
    options: {
        processors: [
            require('autoprefixer')({
                browsers: '> 2%, last 2 versions, Android 4, not ie 10, Firefox ESR'
            })
        ]
    },
    dist: {
        src: '<%= files.distDir %>/built.css'
    }
}

@thorn0 everything is good http://browserl.ist/?q=>+2%25%2C+last+2+versions%2C+Android+4%2C+not+ie+10%2C+Firefox+ESR
Maybe you want to remove IE  Mobile? It is different browser right now.

No, I want to remove IE 10. I want to get rid of display:-ms-flexbox in my CSS, but I can't, Autoprefixer keeps adding it. Is it because of IE Mobile?

@thorn0 yeap, IE 10 Mobile uses -ms- prefix too http://caniuse.com/#feat=flexbox

Would be really great if > 2% and last 2 versions were combined as AND, not OR.

@thorn0 don’t speak about different issues in non-relevant issue ;).
If you want new syntax — open new syntax with the suggestion.

authors: ai ozio thorn0

repo: ai/browserslist


text:
Non-random neural net initialization

Maybe we should add an initialization seed for neural nets as a construction parameter. That way it is ensured that across cross-validation folds, the model is truly the same.

see https://github.com/aicenter/GenerativeAD.jl/pull/31/commits/7e0aec5369397468fe8a46d1f913d6dbebdffd33


text:
[9.1.0.281] Mekanism and high power

Hello, I am running Mekanism 9.1.0.281 on 1.7.10 (the latest version I found on the website) on the DNS Techpack.
When I upgraded my induction matrix from 4 ultimate providers and 4 ultimate cells to 32 of each, I was unable to switch (with shift + right click using a crescent hammer) any port to output. I was able to before.
After upgrading my turbines from 11 * 11 * 18 to 17 * 17 * 18, the cryo-stabilized fluxducts I was using were not able to extract the power of the turbine. Mekanism's universal cables were able to but the turbines were outputting too much juice for them to be sufficient. Editing the config file to change the UltimateCableCapacity to either 3.2MJ or 32MJ made the cables unable to transfer any power. Please note that as soon as the turbines' tanks becomes full enough, the GUI's steam tank's content disappears.
When manually editing the reactor's injection rate above 198, similar bugs start to appear.

Please note that in both cases, WAILA printed rubbish values when I clicked on the machines, which, in my humble opinion, makes me think of a too small variable type.
Don't hesitate to ask for more details, I will remain available.

Just a picture of the buggy reactor interface. Please note that the reactor does not output any steam in such an occurrence.

The induction matrix bug was my bad. The stored energy still displayed as negative, though (according to waila, at least).

While the reactor problem does not occur in the usual injection range and the induction cell problem was just a derp on my part, the turbine bug IS problematic as I have no other way than making a universal cable carpet to tranfer the energy of my turbines.
Not to mention the visual bugs: the tank appears empty while it is full and the energy tab displays no energy production, even when hooked up...

I still am ready to provide as much help as you want.

I looked through the source, and there is a maximum steam amount, but you are surpassing it. That seems to be the most likely issue. If this is not the problem, then you probably generated over 2^23 mB of steam in one tick, causing the integer to overflow.

repo: aidancbrady/Mekanism


text:
Release com_github_aignas_rules_shellcheck to bzlmod

Hi! I noticed the MODULE.bazel but don't see any release in https://registry.bazel.build/all-modules could we get this added to the registry?

Looks like ideally there would be a new release first so we didn't have to pin to a commit in the BCR, but otherwise anyone can add it now

https://github.com/bazelbuild/bazel-central-registry/pull/1059

authors: aignas keith luispadron


text:
カテゴリ選択のアップデート

@mafreud @PhongTaKiai
ありがとうございます。
一点ご質問がございまして
こちらの選択肢のUIって一般的でしょうか！？

オリジナルは @rick1919 が https://github.com/ailab-dev/app_buy_sell/pull/37#issuecomment-2021893501 にポスト

@PhongTaKiai
Title: Update các options của catergory


text:
Fix: create custom node directory relative to src/

Closes https://github.com/aimakerspace/PeekingDuck-Private/issues/78
Forces the custom node directory to be relative to path/to/pkd-project/src

LGTM

repo: aimakerspace/PeekingDuck


text:
Several changes to improve the compactness of sidebar

This update includes several changes to improve the compactness of the left sidebar UI. CSS styling updated for small margins and font size, structure updated to use collapsing accordion fields, elements modified to use horizontal rather than vertical alignment (in order to reduce the scrolling required), and scroll margins were adjusted. Still need to create a new collapse panel to contain the form elements currently shown at the top, such as name search, version search etc. This updated also includes some minor tweaks and improvements to the tool tips displayed for node status (so that they are more consistent).
Fixes # (issue)
Type of change

U.I. update

[ x] Local Pre-commit Checks

[x ] CI/CD Build

Checklist

[ x] My code follows the style guidelines of this project
[x ] I have performed a self-review of my own code
[ x] My changes generate no new warnings
[ x] If applicable - I have commented my code, particularly in hard-to-understand areas
[x ] If applicable - I have made corresponding changes to the documentation
[ x] If applicable - I have added tests that prove my fix is effective or that my feature worksx

All tests are passing, however one of the checks is failing due to the current version of django being out of date. I will work to get the latest django setup, however we can merge this branch for now as migrating to the next major version of Django is looking like it's not as straight forward as I'd have liked.

repo: aims-group/metagrid


text:
How to set another request parameters?

Hi! Great library. How to set another request parameters like max_tokens for instance?

Usually, max_tokens is automatically adjusted based on the model, but due to the model being updated at any time, there may not be such timely adaptation. You can specify:
settings.ModelName = "gpt-4-vision-preview";
// After setting ModelName
settings.MaxContextTokens = your value;
settings.MaxResponseTokens = your value;
settings.MaxPromptTokens = your value;

Thank you!!!!

repo: aiqinxuancai/ChatGPTSharp


text:
iPad is not supported

When I try to run this on the iPad I get the following error. is Ipad supported?
ERROR:
Thread 1: Assertion failed:   Calendar metrics and size resulted in a negative-or-zero amount of remaining height
(-460.5 points) after allocating room for calendar elements. If ignored, this
will cause very odd / incorrect layouts
Assert Code:
assert(availableHeight > 0,
        """
          Calendar metrics and size resulted in a negative-or-zero amount of remaining height
          (\(availableHeight) points) after allocating room for calendar elements. If ignored, this
          will cause very odd / incorrect layouts.
        """)
    }

@isaacthedeveloper a temporary workaround would be to increase the available height of CalendarView. I agree that this behavior is super fragile and makes working with horizontal calendars really difficult. I think that the ideal behavior would be to have the calendar's height be determined based on the width + metrics that you set. I'll look into making this improvement soon.

Starting in version 1.11.0 (just released), CalendarView now has an intrinsicContentSize.height equal to the exact amount of space needed to display 1 month, given the current width / other layout metrics. That means that you can add a horizontally-scrolling CalendarView to your view hierarchy, constrain its width, and the height will be set based on the intrinsicContentSize.

authors: bryankeller isaacthedeveloper

repo: airbnb/HorizonCalendar


text:
Can we start re-adding tags for new releases?

Hi bryankeller , I was trying to integrate this on our project via SPM but instead of pointing to a commit or branch point to a version, but I noticed there's none since january.. Would it be possible to get back to release tagging?
Thanks for the project.
Regards

I'm aiming to tag a new release in the next couple of weeks. For now, you can just point SPM / Cocoapods / Carchate to the latest commit hash, instead of a version tag. The next release is going to be 2.0.0, which includes many enhancements, but also some breaking API changes if folks haven't moved off of deprecated APIs in a while.

Thanks! :D

authors: bryankeller emans


text:
[3.x] New initialization makes it difficult to integrate

I'm trying to migrate Facebook to Enzyme 3, but I'm running into the following:
We use Jest, and enzyme is included as an automatic global. This essentially translate to a require('enzyme') call whenever enzyme is used. So to upgrade to Enzyme 3, I would like this require to both load up enzyme and configure it. But this is practically impossible to do at the moment, because enzyme-adapter-react-16 itself has a require('enzyme') call in its source.
The ideal solution would be to pull out the shared dependency (enzyme.EnzymeAdapter) into a separate package, that both enzyme and enzyme-adapter-react-16 require.
What do you guys think?
(cc @mjesun, @cpojer )

If we had a separate package it’d have to work like enzyme-adapter-react-helper does - ie, work for all react versions.
It seems like you could alias all enzyme requires that aren’t inside node_modules (since it’s never a good idea to transform third party code) to your file that requires and configures and re-exports enzyme?

@ljharb The EnzymeAdapter implementation already has to work for all React versions, the way it is implemented today.
Jest unfortunately doesn't know what modules are in node_modules and what modules are in our codebase, it works on the level of Node's module resolution, so it's applied to both. I would have to modify enzyme-adapter-react-16 to use require.requireActual for it to not be affected by Jest (but it would be nice to not have to modify third-party code, as you mention).

Hmm, I'm not sure what you mean. https://github.com/airbnb/enzyme/blob/master/packages/enzyme/src/EnzymeAdapter.js is tightly coupled to the enzyme version, which is why it's not in a separate codebase.
I'm still a bit confused why you can't configure enzyme in a jest setup file, and then use a babel transform to inject an explicit enzyme import/require in tests that need it (or in the jest setup file, set up enzyme as an explicit global)?

Pretty sure this is a dupe of this issue:
https://github.com/airbnb/enzyme/issues/1365
What you're suggesting with transform is not possible, unless it's some super smart transform that checks whether the file uses enzyme, and only then injects the configuration, and ideally checks whether enzyme is already configured, because I guess we wouldn't want to configure it a thousand times. We don't want to put enzyme as a dependency for every Jest test in our codebase.
Module initialize on initial require is the perfect time to do this configuration.

It would take a pretty trivial transform to track all global variables and at program exit, determine if any of them are called "enzyme" and inject enzyme at the top of the file if so; there's a number of babel transforms in the ecosystem that do precisely this for React.

@ljharb FB's system is a bit more complex than the usual Babel set up. Even running a transform only for tests is something we don't have support for atm. Again, it seems like an overtly complex solution. There's already enzyme-adapter-utils, how about moving the EnzymeAdapter there?

There’s no technical reason why it couldn’t; the concern is that when a major change happens, it’d be harder to juggle the dependencies.

FB's system is a bit more complex than the usual Babel set up. Even running a transform only for tests is something we don't have support for atm.

This is incorrect however I do not agree that a babel transform is the right solution in this case.

@cpojer is not having explicit globals (importing enzyme in every file) an option? If not, could the custom global be set up in a jest setup file?

@xixixao @cpojer is this still something that's needed? any thoughts on https://github.com/airbnb/enzyme/issues/1567#issuecomment-373923167 ? (cc @aweary @gaearon)

Closing; happy to reopen if needed.

authors: cpojer ljharb xixixao

repo: airbnb/enzyme


text:
Cannot convert undefined or null to object.

Hi. I am using Jest with Enzyme. I have a component wrapped by few components(Provider, Intl, Relay). When i try to render the component with render function and then call .toMatchSnapshot it works perfect. But when i call mount instead of render it fails. The stack trace is:
TypeError: Cannot convert undefined or null to object

  at Object.<anonymous> (__tests__/common/Header/Header2.test.js:54:76)
  at handle (../node_modules/worker-farm/lib/child/index.js:41:8)
  at process.<anonymous> (../node_modules/worker-farm/lib/child/index.js:47:3)
  at emitTwo (../events.js:87:13)
  at process.emit (../events.js:172:7)
  at handleMessage (../internal/child_process.js:686:10)
  at Pipe.channel.onread (../internal/child_process.js:440:11)

The reason why i am calling mount that i need set props to the component.
Perhaps the problem is not in enzyme but in worker-farm lib. Anyway any help will be appreciated.

Hi! I have the same problem

Can you share the test code?

@ljharb
  const store = configureMockStore()({
    form: {},
    theme: {},
  });
  const Container = Relay.createContainer(HeaderContainer, {
    fragments: {
      viewer: () => Relay.QL`
        fragment on Viewer {
          ${HeaderContainer.getFragment('user')}
        }
      `,
    },
  });
  const mockViewer = {
    ...notification,
    userProfile: {
      photoFile: {},
      account: {},
      impersonator: {},
      sexDictionary: {},
    },
    notificationsQuantity: 1,
    messagesQuantity: 2,
    adminMessagesQuantity: 3,
  };

  const instance = mount(
    <Provider store={store}>
      <IntlProvider
       key={'ru'}
       locale={'ru'}
       messages={[]}>
        <RelayMockRenderer
          render={() => <Container viewer={mockViewer} />}
        />
      </IntlProvider>
    </Provider>
  );
  console.log(toJson(instance))
  expect(toJson(instance)).toMatchSnapshot();

Which line corresponds to __tests__/common/Header/Header2.test.js:54?

the last one expect(toJson(instance)).toMatchSnapshot();

That implies something wrong with the toMatchSnapshot call - is it not expected to take arguments? How is it being bootstrapped?

There is mock for files(svg, png). Everything else is just basic. As i said it works with render but doesn't with mount.

What's the implementation of IntlProvider look like? Where's worker-farm come in?

import { IntlProvider } from 'react-intl'; I don't know where worker-farm comes in. I didn't find in my project where it is being called. I guess it's called by some library.

Hi, maybe I have the same problem
and here is the stack trace
TypeError: Cannot convert undefined or null to object

      at Object.<anonymous> (src/scripts/components/__tests__/Panel.jest.js:32:134)
      at handle (node_modules/worker-farm/lib/child/index.js:41:8)
      at process.<anonymous> (node_modules/worker-farm/lib/child/index.js:47:3)
      at emitTwo (events.js:106:13)
      at process.emit (events.js:191:7)
      at process.nextTick (internal/child_process.js:752:12)
      at _combinedTickCallback (internal/process/next_tick.js:67:7)
      at process._tickCallback (internal/process/next_tick.js:98:9)

Might be a jest thing. What version of jest, and do you have any mocks set up?

Hi, same here. My jest version is 18.1.0.
The account list is not null or undefined The exception happens to the second line of the code:
        console.log(accountList);
        expect(toJSON(accountList)).toMatchSnapshot();

where does toJSON come from?

it's from https://www.npmjs.com/package/enzyme-to-json ..

The error message is:
    TypeError: Cannot convert undefined or null to object

      at Object.<anonymous> (__tests__/container/list/AccountsList.test.js:105:89)
      at process._tickCallback (internal/process/next_tick.js:103:7)

BTW, I will file another issue to enzyme-to-json and link both of them.

Looks like this is an issue with jest, not enzyme.

authors: ErrorPro andrychernysh cettoana john-hu ljharb


text:
Fix Incorrect Item/Cell FoundDuring WillDisplay and DidEndDisplaying Callbacks

Change summary

fixes an issue discovered in the Airbnb app where while during a collection view update, the collection view will provide a didEndDisplay item callback for a cell that is only in the new data, this would cause a runtime assertion and incorrect view callbacks from being propagated

How was it tested?
How did you verify that this change accomplished what you expected? Add more detail as needed.

[ ] Wrote automated tests
[ ] Built and ran on the iOS simulator
[x] Built and ran on a device

Pull request checklist
All items in this checklist must be completed before a pull request will be reviewed.

[x] Risky changes have been put behind a feature flag, e.g. CollectionViewConfiguration
[x] Added a CHANGELOG.md entry in the "Unreleased" section for any library changes

Will be following-up with the same fix for supplementary items, wanted to split these PRs up.

repo: airbnb/epoxy-ios


text:
showClearDate option for SingleDatePicker

Is there a built-in way to clear date for SingleDatePicker?

Not yet, but would be happy to take in a PR.

authors: majapw subicura

repo: airbnb/react-dates


text:
Updating orientation to HORIZONTAL hides the calendar.

Hi people from the internet.
When using the DayPickerRangeController and changing from VERTICAL to HORIZONTAL orientation the calendar is not render correctly.
Until I hit some arrow, then it re-renders correctly.
I'm using  window.matchMedia to change the properties of the component.
updateDimensions(){
        if (window.matchMedia("(min-width: 1158px)").matches) {
        /* the viewport is at least 1158px pixels wide */
            this.setState({orientation: HORIZONTAL_ORIENTATION, numberOfMonths: 2})
        } else {
        /* the viewport is less than 1158px pixels wide */
            this.setState({orientation: VERTICAL_ORIENTATION, numberOfMonths: 1})
        }
    }

EDIT:
Found out that the element transition-container transition-container--horizontal is missing its height.

Hi @rafinskipg, this seems like a bug with when we're calling adjustDayPickerHeight() inside of the DayPicker.
It should either get triggered by https://github.com/airbnb/react-dates/blob/master/src/components/DayPicker.jsx#L179-L182 or by https://github.com/airbnb/react-dates/blob/master/src/components/DayPicker.jsx#L191-L195 and it seems to be getting triggered by neither! Changing the orientation seems like a good reason to make sure that the height is recalculated properly.
If you want to put up a PR for this, feel free to. O/w I will get to it ASAP!

@danedavid I was experiencing it when I was on v12, now updated to v20.2.5 - and the issue is gone.

Closing pending repro.

authors: ljharb majapw mib32 rafinskipg


text:
Keyboard navigation issues

cc: @backwardok for clarification on these issues

Down arrow to activate the calendar interferes with JAWS standard keyboard shortcuts
When opening the keyboard shortcuts panel, it does not take focus. This makes it somewhat difficult to exit when using some screen readers.

o.O @majapw I just noticed this because I'm terrible at checking github on my personal account.
The 1st point may not be too bad since I think the field should trigger focus/forms mode, which will accept keyboard shortcuts.
The 2nd point is actually worse than described - because it doesn't take focus, it doesn't get read. This means screen reader users will have no idea what the shortcuts are, and it's not particularly easy to figure out how to get there since the months auto advance when trying to navigate out. Additionally, for sighted keyboard users, it's a bit confusing that you can't tab to the close button. You can close the keyboard shortcut menu by hitting the esc key, but then you've lost your previous spot and would need to go back to wherever you were again.

I'll take a shot at working on this. :crossed_fingers:

Ok PR submitted: https://github.com/airbnb/react-dates/pull/825.

Auto focus for keyboard shortcuts panel doesn't work, "react-dates": "^15.4.0"
OC: ubuntu 16.04;
Browser: Google Chrome Version 61.0.3163.100;

@yaroslav-perec can you describe this a little more?  What is not working about it?  What is it doing instead?

@erin-doyle  Sure, I use SingleDatePicker, it looks like this:

It seems close button has focus, but when I press Enter key shortcuts panel popup window doesn't close, I know if i click ESC it will close, but if you use SingleDatePicker inside modal window (that often have the same logic for ESC key), you will close modal window too, I think we should have possibility to close the pop-up by pressing the Enter key when focus on Close button.

Right now it is coded to close when you hit the spacebar.  It is my understanding (which could be incorrect) that spacebar is what keyboard only users expect to use when they are making selections or actions on elements.  This is in main part because some browsers will automatically submit a form when the enter key is pressed anywhere on a page that has a form.  So again the expected keys for navigation used by keyboard only and screen reader users is to only use Enter to submit a form and spacebar for all selections/actions.

@erin-doyle I understood, thanks!

It would probably be good to support enter as well, since native buttons activate on both enter and space.

Ok I can work on making that change then.

Pull Request #916 added with this change.

authors: backwardok erin-doyle majapw yaroslav-perec


text:
test_config unit tests fail for different cluster config files

Background
Three unit tests in test_config.py fail when the cluster config file prod.json doesn't exist.
In my setup, the production cluster is named production.json. The contents of the cluster config are supposed to be mocked in test_config.py, but CLIConfig() will list the actual contents of the conf/clusters directory to retrieve the cluster filenames.
Subsequently CLIConfig attempts to open conf/clusters/production.json and doesn't get the mocked content (or mocked prod cluster name) leading to KeyErrors.
======================================================================
ERROR: CLI - Adding CloudWatch metric alarm, cluster
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/Users/jeremy/projects/streamalert/tests/unit/stream_alert_cli/test_config.py", line 98, in test_cluster_alarm_creation
    config.add_metric_alarm(alarm_info)
  File "/Users/jeremy/projects/streamalert/stream_alert_cli/config.py", line 366, in add_metric_alarm
    self._add_metric_alarm_per_cluster(alarm_info, metric_function)
  File "/Users/jeremy/projects/streamalert/stream_alert_cli/config.py", line 205, in _add_metric_alarm_per_cluster
    function_config = (self.config['clusters'][cluster]['modules']
KeyError: 'prod'

======================================================================
ERROR: CLI - Metric toggling
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/Users/jeremy/projects/streamalert/tests/unit/stream_alert_cli/test_config.py", line 62, in test_toggle_metric
    config.toggle_metrics(True, ['prod'], ['alert_processor'])
  File "/Users/jeremy/projects/streamalert/stream_alert_cli/config.py", line 161, in toggle_metrics
    [function]['enable_metrics'] = enabled
KeyError: 'prod'

======================================================================
FAIL: CLI - Aggregate alarm check
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/jeremy/projects/streamalert/tests/unit/stream_alert_cli/test_config.py", line 77, in test_cluster_alarm_exists
    assert_true(result)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 353 tests in 68.910s

FAILED (errors=2, failures=1)

Desired Change
Create a mock filesystem using pyfakefs instead of only mocking out __builtin__.open(), so that os.path.listdir() will return conf/clusters/prod.json.
I'm happy to submit a PR for this.

Hi @stoggi - great catch, thanks for this!! You're welcome to submit a PR if you have a fix in mind (which it sounds like you do). If not, we can try to get a fix in place asap. Just let us know if you decide to work on it!

On Oct 18, 2017, at 9:24 PM, Jeremy Stott notifications@github.com wrote:
Background
Three unit tests in test_config.py fail when the cluster config file prod.json doesn't exist.
In my setup, the production cluster is named production.json. The contents of the cluster config are supposed to be mocked in test_config.py, but CLIConfig() will list the actual contents of the conf/clusters directory to retrieve the cluster filenames.
Subsequently CLIConfig attempts to open conf/clusters/production.json and doesn't get the mocked content (or mocked prod cluster name) leading to KeyErrors.
======================================================================
ERROR: CLI - Adding CloudWatch metric alarm, cluster
Traceback (most recent call last):
File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "/Users/jeremy/projects/streamalert/tests/unit/stream_alert_cli/test_config.py", line 98, in test_cluster_alarm_creation
config.add_metric_alarm(alarm_info)
File "/Users/jeremy/projects/streamalert/stream_alert_cli/config.py", line 366, in add_metric_alarm
self._add_metric_alarm_per_cluster(alarm_info, metric_function)
File "/Users/jeremy/projects/streamalert/stream_alert_cli/config.py", line 205, in _add_metric_alarm_per_cluster
function_config = (self.config['clusters'][cluster]['modules']
KeyError: 'prod'
======================================================================
ERROR: CLI - Metric toggling
Traceback (most recent call last):
File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "/Users/jeremy/projects/streamalert/tests/unit/stream_alert_cli/test_config.py", line 62, in test_toggle_metric
config.toggle_metrics(True, ['prod'], ['alert_processor'])
File "/Users/jeremy/projects/streamalert/stream_alert_cli/config.py", line 161, in toggle_metrics
[function]['enable_metrics'] = enabled
KeyError: 'prod'
======================================================================
FAIL: CLI - Aggregate alarm check
Traceback (most recent call last):
File "/Users/jeremy/.local/share/virtualenvs/streamalert-iKoON-og/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/jeremy/projects/streamalert/tests/unit/stream_alert_cli/test_config.py", line 77, in test_cluster_alarm_exists
assert_true(result)
AssertionError: False is not true

Ran 353 tests in 68.910s
FAILED (errors=2, failures=1)
Desired Change
Create a mock filesystem using pyfakefs instead of only mocking out builtin.open(), so that os.path.listdir() will return conf/clusters/prod.json.
I'm happy to submit a PR for this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@ryandeivert, yep! I can submit a PR. I've got a working proof of concept with pyfakefs. If you are happy with the new dependency then I'll tidy it up and submit.

The new dependency is fine - just add it to the requirements.txt with a min version. We'll have other uses for pyfakefs anyway 👍

authors: ryandeivert stoggi

repo: airbnb/streamalert


text:
[airbyte_connection] cron_expression is always marked as changed

When using TerraForm we have found that cron_expression for the connection is always marked as changed, even when it hasn't, for example:
  # airbyte_connection.postgres_to_snowflake will be updated in-place
  ~ resource "airbyte_connection" "postgres_to_snowflake" {
        name                                 = "Postgres -> Snowflake"
      ~ schedule                             = {
          + cron_expression = "0 0 * * * * UTC"
            # (1 unchanged attribute hidden)
        }
        # (9 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Ahhh curious, I wonder if it's because I also do schedule_type = "manual" at the moment whilst I configure some things and it's resetting it.

Seems that was it, if I go to cron it works as expected. Thanks for the input.

repo: airbytehq/terraform-provider-airbyte


text:
typo in sync/_helpers/* file names

What is the bug?
I think the file names in https://github.com/airflow-helm/charts/tree/main/charts/airflow/templates/sync/_helpers shall be renamed, to have 'sync' as part of the name and not snyc.
What is your Helm version?:
version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"dirty", GoVersion:"go1.16.5"}

Great job with this helm chart, btw! Thanks for it.

@NikolaySokolov thanks for raising this, and the kind words!

authors: NikolaySokolov thesuperzapper

repo: airflow-helm/charts


text:
Fix run arguments for PowerShell 7

Fixes airpower run command arg1, arg2 which does not work properly in PowerShell 7.

Can you provide an example function that does not work? I just tried locally and can't seem to reproduce your error case.
function AirpowerPrint {
	param($a, $b)
	"A=$a, B=$b"
}

air run print 1 2 3
A=1, B=2

Here's an example of the problem
function AirpowerEx {
    param (
        [string[]]$Params
    )
    Write-Host $Params.Count
}

Run this command air run ex 1, 2, 3 - in PowerShell 5 prints 3. Prints 1 in PowerShell 7.
My fix makes both print 3.

authors: tbateson troyaf

repo: airpwr/airpwr


text:
[WIP] Setup linters and reporting to sonarcloud

🚧 WIP

Reporting works for both SwiftFormat and SwiftLint. 🎉

repo: airsidemobile/JOSESwift


text:
为什么没有地址选择器

我没有看到有地址选择器，就是可以在底部依次选择省市县的功能。

XAddress

authors: airyland yzqiang

repo: airyland/vux


text:
Update join.html

made the input text on the join page black

I'll have to close this pull request and manually merge the new changes with the updated page.

authors: Abhishaike Michael-Hollister


text:
sphinxcontrib-mermaid broken on Sphinx >= 4.0

Hi there!
sphinxcontrib-mermaid is currently broken for Sphinx >= 4.0, here is the PR fixing it.
For now, trying to run make livehtml returns the following error:
Extension error:
Could not import extension sphinxcontrib.mermaid (exception: cannot import name 'ENOENT' from 'sphinx.util.osutil' (/Users/jonatasbaldin/aiven/devportal/venv/lib/python3.8/site-packages/sphinx/util/osutil.py))
Command exited with exit code: 2
The server will continue serving the build folder, but the contents being served are no longer in sync with the documentation sources. Please fix the cause of the error above or press Ctrl+C to stop the server.

And I got 404 on the index page on the live server,
Disabling out the sphinxcontrib.mermaid from conf.py:extensions fixes the issue temporarily.
We have a couple of options:

Disable it for now until the PR is merged.
Use an earlier version of Sphinx.

What do you think?

I think we should have pinned all the versions of all the libs anyway. Lets get sphinx with < v4.0 and see how that goes?

authors: jonatasbaldin lornajane

repo: aiven/devportal


text:
Billing information

I am adding the article with Tax Information from help center https://help.aiven.io/en/articles/1484583-tax-information-regarding-aiven-services.
Fixes #940

The concepts page is this one https://developer.aiven.io/docs/platform/concepts

@dewan-ahmed , I applied the fixes, it's ready for review.

we have a lot of small commits, maybe is good to squash before merging.

Could be good to squash (meaning to combine the work into fewer separate commits) but given that this is a PR from a new contributor, I'd expect the reviewer to handle it.

Using Dewan's rebased version of this PR, if the build passes I think we are in good shape now :)

authors: ewe-gra laysauchoa lornajane


text:
Postgres Database service resource creation finishes prematurely

Provider version: 2.0.4.
Target cloud: AWS, London Region
I'm currently experiencing an issue when spinning up a service of type pg.
Consider the following example script
resource "aiven_service" "myservice" {
    project = "example-project"
    cloud_name = "aws-eu-west-2"
    plan = "business-8"
    service_name = "example"
    service_type = "pg"
    project_vpc_id = "${aiven_project_vpc.vpc_aws_eu_west_2.id}"
    termination_protection = true
    pg_user_config {
        ip_filter = ["0.0.0.0/0"]
        pg_version = "10"
    }

    timeouts {
        create = "20m"
        update = "15m"
    }
}

resource "aiven_database" "mydatabase" {
    project = "example-project"
    service_name = "example"
    database_name = "exampledb"
}

resource "aiven_service_user" "myserviceuser" {
    project = "example-project"
    service_name = "example"
    username = "user"
}

The issue that I'm having is that on terraform apply after the service is created Terraform goes on to immediately create the database and user, which returns with 404 errors saying that the service doesn't exist. Running terraform apply again creates the database and user. Is it possible to wait until the service is ready for further updates before marking it as created?

We have a couple of solutions here:

Use references between resources and Terraform will build a dependency graph out of thoughts.

resource "aiven_service" "myservice" {
    project = "example-project"
    cloud_name = "aws-eu-west-2"
    plan = "business-8"
    service_name = "example"
    service_type = "pg"
    project_vpc_id = "${aiven_project_vpc.vpc_aws_eu_west_2.id}"
    termination_protection = true
    pg_user_config {
        ip_filter = ["0.0.0.0/0"]
        pg_version = "10"
    }

    timeouts {
        create = "20m"
        update = "15m"
    }
}

resource "aiven_database" "mydatabase" {
    project = aiven_service.myservice.project
    service_name = aiven_service.myservice.service_name
    database_name = "exampledb"
}

resource "aiven_service_user" "myserviceuser" {
    project = aiven_service.myservice.project
    service_name = aiven_service.myservice.service_name
    username = "user"
}

Use depends_on

resource "aiven_service" "myservice" {
    project = "example-project"
    cloud_name = "aws-eu-west-2"
    plan = "business-8"
    service_name = "example"
    service_type = "pg"
    project_vpc_id = "${aiven_project_vpc.vpc_aws_eu_west_2.id}"
    termination_protection = true
    pg_user_config {
        ip_filter = ["0.0.0.0/0"]
        pg_version = "10"
    }

    timeouts {
        create = "20m"
        update = "15m"
    }
}

resource "aiven_database" "mydatabase" {
    project = "example-project"
    service_name = "example"
    database_name = "exampledb"

    depends_on = [
        aiven_service.myservice
    ]
}

resource "aiven_service_user" "myserviceuser" {
    project = "example-project"
    service_name = "example"
    username = "user"
    depends_on = [
        aiven_service.myservice
    ]
}

authors: d-cs ivan-savciuc

repo: aiven/terraform-provider-aiven


text:
low JHMDB PCK

Hi, thanks for the great work!
I just use the following command to run CRW on JHMDB:
python code/test.py \
    --filelist jhmdb_testlist_split1.txt \
    --model-type scratch \
    --resume ../pretrained.pth \
    --save-path jhmdb_results \
    --topk 10 \
    --videoLen 7 \
    --radius 5 \
    --temperature 0.05 \
    --cropSize 320

Here're the PCK number I got:
0.1: [53.41509394]
0.2: [75.56534539]
0.3: [84.21850545]
0.4: [89.00846776]
0.5: [92.19968561]

seems to be much lower than the ones reported in the paper.

I basically borrowed the command from another related issue. The filelist I used is from the original UVC repo.
Could you please take a look and see if there's anything I did wrong here?
Thanks!

#10

repo: ajabri/videowalk


text:
No module named path

"Neural-Photo-Editor-master/GANcheckpoints.py", line 7, in
from path import Path
ImportError: No module named path

sudo pip install path.py

repo: ajbrock/Neural-Photo-Editor


text:
Catchable fatal error - could not be converted to string

I've cloned and upload on my host the LAST VERSION (packagist v0.17.0), but if i run example-set.php on a host with php 5.4 and i will get this error:

Catchable fatal error: Object of class Longman\TelegramBot\Entities\ServerResponse could not be converted to string in /var/www/vhosts/XXXXXXXXXXX/XXXXXXXXXX/weiddolo/set.php on line 16

If i will change echo $telegram->setWebHook($url); in print_r($telegram->setWebHook($url)); and i get this:
Longman\TelegramBot\Entities\ServerResponse Object ( [ok:protected] => 1 [result:protected] => 1 [error_code:protected] => [description:protected] => Webhook was set [bot_name:protected] => )
Response is proteced. It's Normal?

anyone can help me?

You can try to set the Webhook manually using an url formed as this
https://api.telegram.org/bot12345:ABCDEFGHIJKL/setWebhook?url=https://yourdomain.com/path_to_bot_directory/hook.php
12345:ABCDEFGHIJKL is the token that FatherBot has created for your bot

After i have set manually the webhook, how do I check that the ALL works properly?

Using the telegram app, open a chat with your bot. After that, send the /help command, and you must see response and also something in botname.log and mysql database if enabled. If not, check your server logs.

The log file is not created. I have not set the bot with mysql, but I have enabled the log file in the setting in hook.php.

I've fix the error with setWebhook in 0.17.1 let me know if you still have problems.

Weiddolo if the file it's not created, check that your web server has granted permissions to write on the folder, if not, you can create the file and change ownership (I'm assuming that you are using an OS that this considerations matters)

@MBoretto now Webhook was set! How i can test if the bot works properly?
@sanok Thanks for your help, i have also checked the folder permissions.

When I use Webhook Method and visit set.php, I get "Webhook was set" but:
The bot doesn't reply
The log file is empty
I have server with self-signed certificate.
I don't know how can I upload my public key certificate according https://core.telegram.org/bots/api#setwebhook method.
When I use getUpdate Method and run "while true; do ./getUpdatesCLI.php; done", I get below error on my error log:
[17-Sep-2015 10:12:08] PHP Catchable fatal error:  Object of class Longman\TelegramBot\Entities\ServerResponse could not be converted to string in /home//.com/php-telegram-bot-master/vendor/longman/telegram-bot/src/Request.php on line 80

@WISTFUL12 have you update with 0.17.1 versions?

Yes. I have installed fresh version on yesterday...

Try to disable logging i verified that it cause some problems

2015-09-17 17:35:54 - Fail fetch updates

Are you under Windows?

Dedicated Server Linux - Aruba

@MBoretto :+1:
https://github.com/akalongman/php-telegram-bot/issues/35#issuecomment-141195216

My getUpdatesCLI.php is like this:

It's Ok?

My getUpdatesCLI.php is like this, it's ok?

authors: MBoretto WISTFUL12 sanok weiddolo

repo: akalongman/php-telegram-bot


text:
Can't update-property for multiple datacenters (for mirror failover properties)

In 0.4.0 gtm release, we were able to update multiple datacenters for weighted load balancing properties.
But when it comes to failover properties, the enabled flag does enable or disable but also marks both datacenters as primary.
command:
akamai gtm --section default --edgerc .edgerc update-property abc.ca.akadns.net abc.def.piv -target '{"datacenterId": 3131,"weight":1,"enabled":true}' -target '{"datacenterId": 3132,"weight":1,"enabled":true}' --json --complete
Expected: both datacenters are enabled but only 1 is set primary

Actual: both datacenters were enabled and both were marked primary

Request:
Can we have a separate flag that can help enable the dc & separate flag that sets a dc as primary.

@edglynes tagging you since you helped out with the earlier feature :)

repo: akamai/cli-gtm


text:
Introduce caching in CI/CD process

Is your feature request related to a problem? Please describe.
Implement caching in CI to speed up the build and CD process
Describe the solution you'd like
Use actions/cache@v3 to cache libs and skip yarn install if is not needed
Example
      - name: Cache dependencies
        id: cache-dependencies
        uses: actions/cache@v3
        with:
          path: ./node_modules
          key: modules-${{ hashFiles('yarn.lock') }}

      - name: Install dependencies
        if: steps.cache-dependencies.outputs.cache-hit != 'true'
        run: yarn --frozen-lockfile

      - name: Build the project
         ...

moved to internal infra repo and closing this

authors: anilmurty jtary

repo: akash-network/console


text:
chore: v2.11.2 (identical to v2.11.0; to skip v2.11.1)

掲題どおり。
レビュー中の #177 を作業ミスで v2.11.1 として publish してしまったので、事故防止のため現在の main が latest になるよう更新します。差分自明のためセルフマージします。

……と思ったものの見間違いでした。 v2.11.1 の publish を途中で止めたのが間に合っていたので悪影響なし。クローズします。

repo: akashic-games/game-driver


text:
App Bundle Issue

In case if you are using app bundle to publish your application on Play Store, then locale change won't work for certain languages. App Bundle splits the resources for languages as well based on device requirements. I was facing this issue and later solved it by adding the following to app's build.gradle file.
android {     bundle {         language {             enableSplit = false         }     } }
Please mention this for people who are using your library so they do not face the problem.
Good work with the library.

Unfortunately, the library doesn't support for split language in App Bundle automatically. You've to use the Additional Languages API in Play Core library to download the language before.
For more information about Additional Language API  : https://android-developers.googleblog.com/2019/03/the-latest-android-app-bundle-updates.html

Thank you for your concern. I've updated this issue in readme
Unfortunately, the library doesn't support for split language in App Bundle automatically. You've to use the Additional Languages API in Play Core library to download the language before.
For more information about Additional Language API : https://android-developers.googleblog.com/2019/03/the-latest-android-app-bundle-updates.html

Yes with downloading additional languages from Play Core Library can also solve the problem.
I don't see any mentions of split apk on Readme

authors: akexorcist sunnykinger

repo: akexorcist/Android-Localization


text:
futures_comm_info 接口报错

接口futures_comm_info调用失败, 报错如下:
SSLError: HTTPSConnectionPool(host='www.9qihuo.com', port=443): Max retries exceeded with url: /qihuoshouxufei (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))

接口futures_comm_info调用失败, 报错如下: SSLError: HTTPSConnectionPool(host='www.9qihuo.com', port=443): Max retries exceeded with url: /qihuoshouxufei (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))

感谢反馈问题，已修复该问题，升级到 AKShare 1.13.32 使用

repo: akfamily/akshare


text:
Support object keys with known lengths, saving many strlens

For all functions that accept or returns an object key, provide a variant that pairs it with a length.  This saves may strlens... potentially all of them, except for json_pack (for now!).

Coverage increased (+0.2%) to 96.193% when pulling 8d7b46913c659c351b2381c5d858de31bfe99180 on chipdude:keylen into aed855e6920923898b94a1b922fbace27a34ddf2 on akheron:master.

I don't know why the autoconf tests failed.

@chipdude the autoconf 'make check' target checks that src/jansson.def contains all exports.  I have not had a chance to review your changes yet but you need to apply the following patch to fix testing:
diff --git a/src/jansson.def b/src/jansson.def
index 15f35c9..625c00e 100644
--- a/src/jansson.def
+++ b/src/jansson.def
@@ -34,17 +34,23 @@ EXPORTS
     json_object
     json_object_size
     json_object_get
+    json_object_getn
     json_object_set_new
     json_object_set_new_nocheck
+    json_object_setn_new
+    json_object_setn_new_nocheck
     json_object_del
+    json_object_deln
     json_object_clear
     json_object_update
     json_object_update_existing
     json_object_update_missing
     json_object_iter
     json_object_iter_at
+    json_object_iter_atn
     json_object_iter_next
     json_object_iter_key
+    json_object_iter_keyn
     json_object_iter_value
     json_object_iter_set_new
     json_object_key_to_iter

This feature has already been implemented in #520. This PR needs to be closed.

authors: Mephistophiles chipdude coreyfarrell coveralls

repo: akheron/jansson


text:
Trouble importing phpBB any help appreciated.

Wondering if you had any input into this issue I just submitted. After 4 days of learning nodebb and digging into this and the phpbb import code I have an ok idea how stuff works but this has me stuck :(
https://github.com/psychobunny/nodebb-plugin-import-phpbb/issues/11
Thanks!
Best
SM

Hello, I answer myself: the solution was simple... My server did not allow external connections. I had to allow outside connections for the module to work (in fact, for security and performance questions I exported my phpbb database instead, installed it on the same database as the target nodeBB and performed the import with the module)

repo: akhoury/nodebb-plugin-import


text:
ble-face: face 'vim_airline_error_default' not found

Setting vim_airline_theme= to minimalist, transparent, solarized, or monochrome produces the following error on startup:
ble-face: face 'vim_airline_error_default' not found

Should the above themes be updated?

Thanks for the report. I checked them. Those faces ending with _default should be removed. They are produced by a bug in the auto-conversion of the theme files from the upstream vim-airline.
I'll fix them later. For the time being, you can remove the lines for ble-face vim_airline_{error,term,warning}_default in contrib/airline/<theme name>.bash.

I fixed the script to generate the theme files (https://github.com/akinomyoga/ble.sh/commit/59787ee5528a8489e78ba09f712ed4b1f5a8e62f) and re-generated the theme files. I also added other theme files that I haven't included in the master branch of the contrib repository.
@alexalekseyenko Could you update ble.sh by running ble-update and check the behavior?
Note: If you've already edited the theme files in the contrib repository, please restore the original contents before attempting ble-update (To revert the changes, you can run e.g. git reset --hard inside the contrib directory.

I can confirm that this has been fixed [even before I got a chance to try the workaround :D] --- thank you very much for creating and maintaining this awesome software!!

Thank you for the confirmation!

authors: akinomyoga alexalekseyenko

repo: akinomyoga/blesh-contrib


text:
Responsive initialSlide setting not working

The initialSlide setting doesn't seem to have any effect when added to a responsive breakpoint: https://jsfiddle.net/20bumb4g/241/
responsive: [
  { breakpoint: 768, settings: { slidesToShow: 2, initialSlide: 3 } }
]

slickGoTo, on the other hand, is working (I'm actually getting a 'Keys Missing' error on jsfiddle that I'm not experiencing locally, however): https://jsfiddle.net/20bumb4g/240/
responsive: [
  { breakpoint: 768, settings: { slidesToShow: 2, slickGoTo: 3 } }
]

(Note that you may have to adjust the size of the Result tab on jsfiddle to view the issue at the specified breakpoint).
Is this by design for some reason? Thanks in advance!

Yes,  initialSlide is only for initial mount and slickGoTo is to change slide after mounting.
This is by design

authors: akiran dougmacklin

repo: akiran/react-slick


text:
Performance improvement for Config class.

Make Config to use the cached Root value to do value lookup instead of relying on the fallback chain to improve performance.

Also, should probably put the benchmark into its own PR

Turns out that this approach is a 10 magnitude slower than the regular approach.
Scrapping this PR.

authors: Aaronontheweb Arkatufus

repo: akkadotnet/HOCON


text:
CASA 5.6 introduces NaNs into the model

tclean with CASA 5.6 gave a lot of NaN pixels in many channels of .image and .model products, which affect, for example, imstat output, so that we cannot properly estimate the total flux of clean model cubes.
Currently, we know this happens
(1) when CASA 5.6.1,
(2) when deconvolver="multiscale",
(3) when niter > 0, and
(4) when all channels are selected.
(2) and (3) are inevitable to create products.  In order to avoid this, do not use flagged/masked channels (typically edge channels) in ms files, or running handlerImaging with the previous CASA versions.
P.S. I am getting in touch with the ALMA helpdesk.

Patched with Eric K's fix. Dumb that this is still a thing.


text:
Add a implementation to add different virtual backgrounds across faces like in google meets, zoom etc.

add you work in awesome face operations folder by creating your implementation folder inside it

I can work on this. Please assign this issue to me.

I have created a Real-Time Background Replacement using OpenCV and CVzone. Please assign this to me. I will give a PR for a review. @akshitagupta15june. Working on this for hacktoberfest and SLoP 2.0

Was this one already implemented? Or should I work on it?

can i work on this issue?

I would like to take a spin at this one, I will be Image segmentation and OpenCV to implement the said features, I can also further quantize the Image Segmentation Model to ensure better performance on low power devices!

Hi, I would like to solve this issue, using OpenCv and segmentation.
I can create an optimized model to ensure high frame rates on lower end devices
Please assign me this issue under SSOC'23


text:
Snapchat Festive Filters

Is your feature request related to a problem? Please describe.
Want to add different festive filters to an image.
Describe the solution you'd like
Using python libraries to Implement this.

good

try to craete different issues for different filter will assign you score according to per filter you add

Here you can add holi filter just rename the issue


text:
[FEATURE REQUEST] Adding hover effect to the Scroll to top button and making it responsive

I would like to add a hover effect to the Scroll to Top button. Also I would like to add media queries to the buttons css and make it responsive .

@akshitagupta15june  Please check this issue


text:
[BUG] the learn-more button is not designed correctly in motivation.html page

Description
the learn more button is mixed with the color of the background
Expected behavior:
it should be kept with some good styling
Actual behavior:
when we hovering and not hovering on it.

Reproduction Steps
we can give it good styling by increasing the font of the text inside the button and giving it appropriate colors so that it looks good.

please assign me this issue

@khadar1020 The Shlok page is currently being revamped, please explore other issues for the time being.
Thank you


text:
Light Theme Adopt Me Button => Issue Fixed

Hello @akshitagupta15june ,
I have fixed the Issue No. #861
Video -
Screencast from 21-06-23 06:41:33 PM IST.webm
Now the button is proper 👍🏻
It is ready to Merge.

You were not assigned this issue, so can't merge


text:
The product zoomer is not visible

there is extra div in product zoomer elements
which are height and width and those are set to 0px
But when i removed them using inspection they were not working fine.
code is given below
<div data-v-033bd07e="" class="zoomer-bottom-base-container scroller-at-bottom" style="height:NaNpx;width:0px;position:relative">
  <img data-v-033bd07e="" draggable="false" class="responsive-image preview-box">
  <div data-v-033bd07e="" class="thumb-list" style="width:0px;height:NaNpx;grid-template-columns:calc(100%/6/2) repeat(4, auto) calc(100%/6/2);visibility:visible;">
    <img data-v-033bd07e="" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGc+CiAgICAgICAgPHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMC44MjggMTJsNC45NSA0Ljk1LTEuNDE0IDEuNDE0TDggMTJsNi4zNjQtNi4zNjQgMS40MTQgMS40MTR6Ii8+CiAgICA8L2c+Cjwvc3ZnPg==" alt="move thumb icon" class="zoomer-control responsive-image">
<img data-v-033bd07e="" draggable="false" src="https://images.unsplash.com/photo-1495856458515-0637185db551?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80" class="responsive-image"> <img data-v-033bd07e="" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGc+CiAgICAgICAgPHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy4xNzIgMTJsLTQuOTUtNC45NSAxLjQxNC0xLjQxNEwxNiAxMmwtNi4zNjQgNi4zNjQtMS40MTQtMS40MTR6Ii8+CiAgICA8L2c+Cjwvc3ZnPg==" alt="move thumb icon" class="zoomer-control responsive-image">

</div>
<div data-v-033bd07e="" id="zoomer-bottom-pane-container" class="pane-container" style="width:0px;height:2px;left:5px;"></div>
</div>

Sorry for issue I think I didn't provide valid data or something.

repo: akulubala/vue-product-zoomer


text:
Reuse Pages

Is it possible with ngx-admin to reuse pages saving their state when navigating away and coming back?
So if I go to pages/users and start filling out a form but then need to briefly navigate to another page
say pages/info and come back and still have the form partially filled out, etc?
Thanks.

you can use redux to save page state

Hey @Thorski, as @rafsanulhasan noted you can use any state management library like redux. There is no built-in functionality for this.

authors: Thorski nnixaa rafsanulhasan

repo: akveo/ngx-admin


text:
Hide menu when changing route to mobile

Issue type

[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Issue description
How do I automatically hide the menu when changing routes?
The page (https://www.akveo.com/ngx-admin/pages/dashboard) is working, but in my application it is not.
I tried to find the responsible function in the repository but I didn't find
    <nb-layout windowMode>
      <nb-layout-header fixed>
        <ngx-header></ngx-header>
      </nb-layout-header>

      <nb-sidebar class="menu-sidebar" tag="menu-sidebar" responsive>
        <ng-content select="nb-menu"></ng-content>
      </nb-sidebar>

      <nb-layout-column>
        <ng-content select="router-outlet"></ng-content>
      </nb-layout-column>

      <nb-layout-footer fixed>
        <ngx-footer></ngx-footer>
      </nb-layout-footer>
    </nb-layout>

Other information:
Angular, Nebular
    "@angular/router": "^8.2.14",
    "@nebular/auth": "4.4.0",
    "@nebular/eva-icons": "4.4.0",
    "@nebular/security": "4.4.0",
    "@nebular/theme": "4.4.0",

My solution:
In pages.component.ts subscribe to menu item click, then toggle the sidebar.
 constructor(private sidebarService: NbSidebarService, private menuService: NbMenuService) {
    menuService.onItemClick().subscribe(item => {
      sidebarService.toggle(true, 'menu-sidebar');
    });```

My solution:
in header.component.ts extend the ngOnInit method: if the window's size is less than is then colapse sidebar on menu item click event.
userPictureOnly: boolean = false;
hideMenuOnClick: boolean = false;
// ...
const {xl} = this.breakpointService.getBreakpointsMap();
const {is} = this.breakpointService.getBreakpointsMap();
this.themeService.onMediaQueryChange()
  .pipe(
    map(([, currentBreakpoint]) => currentBreakpoint),
    takeUntil(this.destroy$),
  )
  .subscribe(currentBreakpoint => {
    this.userPictureOnly = currentBreakpoint.width < xl;
    this.hideMenuOnClick = currentBreakpoint.width <= is;
  });
// ...
this.menuService.onItemClick().subscribe(() => {
  if (this.hideMenuOnClick) {
    this.sidebarService.collapse('menu-sidebar');
  }
});

Thanks alot

My solution:
in header.component.ts extend the ngOnInit method: if the window's size is less than is then colapse sidebar on menu item click event.
userPictureOnly: boolean = false;
hideMenuOnClick: boolean = false;
// ...
const {xl} = this.breakpointService.getBreakpointsMap();
const {is} = this.breakpointService.getBreakpointsMap();
this.themeService.onMediaQueryChange()
  .pipe(
    map(([, currentBreakpoint]) => currentBreakpoint),
    takeUntil(this.destroy$),
  )
  .subscribe(currentBreakpoint => {
    this.userPictureOnly = currentBreakpoint.width < xl;
    this.hideMenuOnClick = currentBreakpoint.width <= is;
  });
// ...
this.menuService.onItemClick().subscribe(() => {
  if (this.hideMenuOnClick) {
    this.sidebarService.collapse('menu-sidebar');
  }
});

I really appreciate this comment as it resolves the issue for me, and I was unable to find assistance elsewhere. This issue has been reported many times since 2018 and all other responses are 1 liners describing a solution that requires understanding of the modules.
I have a couple of notes for others and the developers of this project. I noticed as others have stated that this problem does not exist in the demo environment. I checked out the material theme branch and a couple others and noticed the issue persists. The demo theme must be using a branch not available in the code base or some obscure branch that has different code. On the surface it seems this issue is known but for some reason isn't fixed.
Studying briefly with my limited angular background, I can see the menu is closed based on the position of the user photo. In the demo site, when the viewport gets to around 550px the image is automatically hidden and the menu change is also triggered. In the code obtained from the branch, the user photo is always shown no matter the breakpoint. IMO, this is either a bug or intentionally introduced behavior/problem considering the age of the issue.

authors: aliomattux endroca hananfci nkelemen18


text:
fix(autocomplete): fixed the double-click required to select an item …

Please read and mark the following check list before creating a pull request:

[x] I read and followed the CONTRIBUTING.md guide.
[x] I read and followed the New Feature Checklist guide.

Short description of what this resolves:
There is a bug in the auto-suggest which requires the user to click out of the keyboard before selecting an item on the list. This line solves this issue by utilising the keyboardShouldPersistTaps prop from ScrollView (and by extension FlatList, which is what in under the hood of autocomplete). I leave this hardcoded as I don't suggest you would want the current behaviour in any scenario.
Please see below, current behaviour vs fix:
https://user-images.githubusercontent.com/10847190/117220214-b1219a80-adfe-11eb-8fd1-eab7f011d8ff.mov
https://user-images.githubusercontent.com/10847190/117220221-b252c780-adfe-11eb-803f-137bd2b2c4da.mov

Hello, when will this fix be available?

Hi, when will this be tagged and released please?

Hi, it doesn't seem to work with autocomplete components inside scrollviews, any ideas why?

Hi @Gondolav
Do you mean that here might be a need to add a new prop to control keyboardShouldPersistTaps on component itself?

Hi, while testing it would work only by setting manually to handled, but cleaning and re-installing made it work as it is now with always, so I guess for now there is no such need.

authors: AlexBatorykLeliw AntonBorovoi BenMillsPerkins Gondolav

repo: akveo/react-native-ui-kitten


text:
add nicole's citation and pre-commit changes

I also used the pre-commit command and it changed a lot of docs so please check them and just let me know if I have to change something.
best wishes,
Nicole.

@nicolerivera1 Yo recien hice unos cambios, podrias hacer un fetch primero aceptar mis cambios y luego si hacemo el pull request?


text:
Getting bot to enter room and do things... it's a mystery!

We chatted earlier - I created a folder with a file, main.js:
var Bot    = require('../index');
var AUTH   = 'auth+live+...';
var USERID = '...';
var ROOMID = '...';
var bot = new Bot(AUTH, USERID, ROOMID);
bot.on('speak', function (data) {
   // Get the data
   var name = data.name;
   var text = data.text;
// Respond to "/hello" command
   if (text.match(/^/hello$/)) {
      bot.speak('Hey! How are you '+name+' ?');
   }
});
Just trying to get the bot in the room.  I created the file in text edit.  The main.js file is in /bot folder, so I open mongoDB, connect to mongo shell, and in a seperate terminal window i cd to the bot folder and say $ node main.js
This is what happens.
$ node main.js
/bot/main.js:1
{\rtf1\ansi\ansi
^
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:429:25)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
I hate that I don't know what all that means.  I have node installed, node_modules is located in my root, and I have ttapi, mongoose, and mysql.  MongoDB is running and I have the shell open.  I don't know what is wrong.  Anyone?  Grrrr.
Thanks so much.
Vega

Ok... the rtf parser in text edit was giving me the ansi syntax error... but when I redo in Dreamweaver I get this:
$ node main.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '../index'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/bot/main.js:1:76)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
I'm guessing it's looking for all those modules and not finding them?  I feel really dumb.  lol
Thanks again...
Vega

You don't need require index
you need
var Bot = require('ttapi');

The bot has entered the building!  I can't tell you how happy this makes me.  LoL
KISS KISS KISS KISS

Not a problem.

Thanks again @yayramen ! :)

authors: VegaChastain alaingilbert yayramen

repo: alaingilbert/Turntable-API