Random 'Trying to get property of non-object' Error when DB Schema Cached with memcache

My OS is Ubuntu 14.04.1 LTS. PHP is working as a module of apache2.
PHP version is 5.5.9-1ubuntu4.5
The problem is that an error 8 'Trying to get property of non-object' will randomly raise if table schema is cached with MemCache. Here is how to reproduce it.
Firstly, let's create the project under the document root. To keep it simple, I use the basic template.
For me the document root is /home/indeed/public_html
$ composer create-project --prefer-dist yiisoft/yii2-app-basic basic
Then create a model, a page for example.
<?php
namespace app\models;

use yii\db\ActiveRecord;

/**
 * Class Page
 * @package app\models
 * @property $id
 * @property $title
 * @property $content
 */
class Page extends ActiveRecord
{

}

And the view, as simple as displaying the content of a Page instance.
basic/views/site/page.php
<?php
use app\models\Page;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $page Page */

$this->title = $page->title;
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-page-<?= $page->id ?>">

<?= Html::encode($this->title) ?>

    <?= Html::encode($page->content); ?>

Then the action.
basic/controllers/SiteController.php
/* ... */
    public function actionPage($id)
    {
        $id = intval($id);
        $page = Page::findOne($id);
        if ($page === null)
            throw new NotFoundHttpException('Page not found.');
        return $this->render('page', ['page' => $page]);
    }
/* ... */

Next we create schema and insert one line of data. I use MySQL here.
CREATE TABLE IF NOT EXISTS `page` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` text NOT NULL,
  `content` text NOT NULL,
  PRIMARY KEY (`id`)
);

INSERT INTO `page` (`id`, `title`, `content`) VALUES
(1, 'How To Start An Argument Easily', 'State that PHP is the best programming language in the world.');

A neat page will be displayed when accessed by URL. Here we make some setup.
We enable the schema cache in basic/config/db.php
<?php

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2basic',
    'username' => 'yii2basic',
    'password' => '',
    'charset' => 'utf8',
    'enableSchemaCache' => true,
];

Then MemCache in basic/config/web.php
<?php

$params = require(__DIR__ . '/params.php');

$config = [
/* ... */
        'cache' => [
            'class' => 'yii\caching\MemCache',
        ],
/* ... */
]

Now please browse to the page with id=1, restart memcached, go back to browser and press F5 repeatedly, things work fine most of time but sometimes you will get an error like that.
exception 'yii\base\ErrorException' with message 'Trying to get property of non-object' in /home/indeed/public_html/basic/vendor/yiisoft/yii2/db/ActiveRecord.php:320
Stack trace:
#0 /home/indeed/public_html/basic/vendor/yiisoft/yii2/db/BaseActiveRecord.php(101): yii\db\ActiveRecord::findByCondition()
#1 /home/indeed/public_html/basic/controllers/SiteController.php(102): yii\db\BaseActiveRecord::findOne()
#2 /home/indeed/public_html/basic/vendor/yiisoft/yii2/base/InlineAction.php(55): app\controllers\SiteController->actionPage()
#3 /home/indeed/public_html/basic/vendor/yiisoft/yii2/base/InlineAction.php(55): ::call_user_func_array()
#4 /home/indeed/public_html/basic/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams()
#5 /home/indeed/public_html/basic/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction()
#6 /home/indeed/public_html/basic/vendor/yiisoft/yii2/web/Application.php(83): yii\base\Module->runAction()
#7 /home/indeed/public_html/basic/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest()
#8 /home/indeed/public_html/basic/web/index.php(12): yii\base\Application->run()
#9 {main}

Later I use burden test tool against it only to see Apache causing segment faults. The error log shows something like that. A pity that I did not see any core dumps, probably because I am not using the debug version of the Apache package.
[Fri Jan 30 18:00:21.681939 2015] [core:notice] [pid 11240] AH00051: child pid 1807 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Jan 30 18:02:20.778842 2015] [core:notice] [pid 11240] AH00051: child pid 1809 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Jan 30 18:10:46.185427 2015] [core:notice] [pid 11240] AH00051: child pid 3163 exit signal Segmentation fault (11), possible coredump in /etc/apache2

The problem can be solved by turning schema cache off or use another cache approach. So I am quite sure the problem is caused by usage of memcache extension or the extension itself.
Do you have any idea what might go wrong?

Reproduced with the docker image version of Ubuntu 14.04.

What version of MemCache server do you use?
Which PHP extension you are using: 'memcache' or 'memcached'? Which version?

The problem disappeared when I switch to memcached extension from the default memcache extension.(set 'useMemcached' => 1)
memcache extension: Version	3.0.8	$Revision: 329835 $
memcached extension: Version	2.1.0 libmemcached version	1.0.8
memcached package version: 1.4.14-0ubuntu9

Tried on CentOS 7 (php 5.4.16, same memcache extension version, no memcached extension), The bug cannot be reproduced. Maybe it was the memcache extension that went wrong after all.

Tried to compile PHP 5.5.21 with memcache extension from source. The problem can be reproduced. I think there is compatibility problem between PHP 5.5 and memcache extension.

Well, I think this is not Yii but the PHP or the extension maintainers' fault. I hope if someone else encounter such problem they may be able to get to this page after some Google searching. :)


Using your Muesli code for large scale training efforts.

Hello, my name is Connor. I'm a post doctoral researcher working at MILA. We looking for a codebase for Muesli to use in our video pretraining project (a joint venture between MILA and the Farama organization). The project's aim is to use internet-scale data to pretrain on video-action pairs in order to develop a foundation model to assist with downstream RL tasks.
Would you be available to discuss potential collaborations on this project? In particular, we are hoping that you could assist us with getting the code set up for our particular use cases.

@con-bren
Hi, Connor. Thank you for your interest.
Can you send me an email to<EMAIL_ADDRESS>Thank you.


sympathetic neuron projection extension/guidance

Hi
I am in discussion with Christiana Ruhrberg about annotation of her paper PMID:22790009.
GO only has the term: GO:0048846 axon extension involved in axon guidance, not dendrite or neuron projection extension involved in xxx guidance. From what is said in PMID:22790009, top right of p281, Christiana has confirmed that need new GO terms which do not include axon specifically. Please see SF ticket #10244 sympathetic neuron extension  for request for new GO terms for 'extension'.
Firstly I think the the parents for GO:0070983 dendrite guidance and  GO:0007411 axon guidance need to be standardised.
GO:0070983 dendrite guidance has the parent: GO:0006928 cellular component movement
GO:0007411 axon guidance has the parent:  GO:0006935 chemotaxis
I think both should have both (grand)parents.
Then a new less specific parent for both is needed:
GO:0006935 chemotaxis
GO:0006928 cellular component movement

is_a NewGO term: neuron projection guidance
GO:0048812 neuron projection morphogenesis
part of NewGO term: neuron projection guidance

is_a GO:0070983 dendrite guidance
is_a GO:0007411 axon guidance

is_a NewGO term: sympathetic axon guidance

is_a NewGO term: sympathetic neuron projection guidance

is_a NewGO term: sympathetic axon guidance

part of NewGO term: neuron projection extension involved in neuron projection guidance

See SFticket #10244 sympathetic neuron extension for NewGO term: neuron projection extension

is_a NewGO term: neuron projection extension involved in neuron projection guidance

New GO term neuron projection guidance
Definition: The process in which the migration of a neuron projection is directed to a specific target site in response to a combination of attractive and repulsive cues.
Synonyms: neurite guidance
With the dbxrefs: GOC:BHF, GOC:rl
NewGO term: sympathetic neuron projection guidance
Definition: The process in which the migration of a sympathetic neuron projection is directed to a specific target site in response to a combination of attractive and repulsive cues.
Synonyms: sympathetic neurite guidance
With the dbxrefs: GOC:BHF, GOC:rl
NewGO term: sympathetic axon guidance
Definition: The process in which the migration of a sympathetic axon is directed to a specific target site in response to a combination of attractive and repulsive cues.
Synonyms: sympathetic neurite guidance
With the dbxrefs: GOC:BHF, GOC:rl
New GO term: neuron projection extension involved in neuron projection guidance
Definition:The long distance growth of a single cell process, that is involved in the migration of an neuron projection growth cone, where the migration is directed to a specific target site by a combination of attractive and repulsive cues.
synonyms: guidance of neurite extension, guidance of neuron projection extension, neurite extension involved in neurite guidance
With the dbxrefs: GOC:BHF, GOC:rl
Then some terms with semaphorin-plexin signaling:
GO:0006935 chemotaxis
GO:0006928 cellular component movement

is_a NewGO term: neuron projection guidance
GO:0048812 neuron projection morphogenesis
part of NewGO term: neuron projection guidance

part of NewGO term:semaphorin-plexin signaling involved in neuron projection guidance

GO:0071526 semaphorin-plexin signaling pathway

is_a NewGO term:semaphorin-plexin signaling involved in neuron projection guidance

is_a NewGO term:semaphorin-plexin signaling involved in dendrite guidance
is_a NewGO term:semaphorin-plexin signaling involved in axon guidance

So here I am going to assume you will use modified definitions and parents based on existing terms (and suggestions below), and synonyms with English spelling of signalling and with the dbxrefs: GOC:BHF, GOC:rl.
NewGO term:semaphorin-plexin signaling involved in neuron projection guidance
Definition:A series of molecular signals generated as a consequence of a semaphorin receptor (composed of a plexin and a neurophilin) binding to a semaphorin ligand that contributes to neuron projection guidance.
synonyms: semaphorin-plexin signalling involved in neurite guidance, semaphorin-plexin signalling involved in neuron projection guidance, semaphorin-plexin signalling involved in neurite guidance
With the dbxrefs: GOC:BHF, GOC:rl
Sorry if this could have all been done with term genie, just tricky as some of the intermediate terms are missing.
Thanks
Ruth
Reported by: RLovering
Original Ticket: geneontology/ontology-requests/10245

Requested CL:0011103 (sympathetic neuron) in imports_requests.obo today. When that’s available,

[ ] add logical def to ‘sympathetic neuron axon guidance’ (is_a axon guidance, occurs_in sympathetic neuron)


A couple of small (viewer) tweaks of tooltip-only Annotations (PR 12333 follow-up)

Ensure that these tooltip-only Annotations are handled as "internalLink"s, to ensure that they behave as expected in PresentationMode (e.g. they should still use a pointer-cursor).
Ensure that PDFLinkService.getDestinationHash won't create links with empty hashes, since those don't really make a lot of sense in general (this improves things for tooltip-only Annotations).
This PDF file can be used for testing: http://mirrors.ctan.org/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf#page=14

/botio-linux preview

Looks good!


fix conflict

Codecov Report

Merging #69 into release-0.2 will increase coverage by 0.01%.
The diff coverage is 5%.

@@               Coverage Diff                @@
##             release-0.2     #69      +/-   ##
================================================
+ Coverage          43.59%   43.6%   +0.01%
  Complexity           492     492
================================================
  Files                101     101
  Lines               3324    3325       +1
  Branches             244     244
================================================
+ Hits                1449    1450       +1
  Misses              1757    1757
  Partials             118     118

Impacted Files
Coverage Δ
Complexity Δ

...main/java/com/webank/wecross/exception/Status.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...webank/wecross/stub/bcos/BCOSContractResource.java
17.64% <0%> (ø)
7 <0> (ø)
:arrow_down:

...m/webank/wecross/stub/jdchain/JDChainResource.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...m/webank/wecross/stub/bcos/config/Web3jConfig.java
77.77% <100%> (+1.3%)
2 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


Timer utility attempt #1

For now, we created a simple doubly linked list to keep track of timers' records. This is in place instead of a histogram at this point. Due to some bad planning on my end, the structure is a bit weird, but that will be rectified later on once functionality is established. Issue #12. Worked on with @SMonaghan.

A linked list is a great way of keeping track of data when you are adding / removing items in the middle of it.  For our timers however, your focus should just be on efficiently being able to report the time of a measurement.  Don't worry about recording all of the data (in a list / array / anything else) --- you can still report an average just by maintaining a running sum of values!
See if you can make your timers work without storing all the values.  Later once we have a histogram data structure we can add that as a way to store an approximation of all the values (i.e., we just store a count of how many fall into certain buckets, taking up much less space than all of the data).
Make sense?

I've removed all the un-needed structs like the linked list. The timer struct holds information for minimum, maximum, number of times used. The current minimums and maximums are determined at the end of the timer measurement. The program has a statically set 10 limit, but can be changed later to support a dynamic limit.

The logic in your code looks fine.  Can you add a test case program which demonstrates how to use the counter?  Have it measure the time for processing a few different meaningless loops or operations and then print out each value and the max/min/avg.
Also check your formatting--you need a lot more spaces to match the style guide's indentation requirements.

Hey Tim,
We're having some trouble with variables not storing values correctly or something close to that. I hope you don't mind if we ask you questions tomorrow.

That's fine--this will tie in with what we are doing in class today.

On Apr 6, 2015, at 12:28 AM, Jong Min Bae (Jobin<EMAIL_ADDRESS>wrote:
Hey Tim,
We're having some trouble with variables not storing values correctly or something close to that. I hope you don't mind if we ask you questions tomorrow.
—
Reply to this email directly or view it on GitHub.


Title screen panorama doesn't get affected by resource packs

As title says. If one sets up a custom panorama to replace the built-in TU69 panorama in a resource pack, it gets ignored by the game and continues to show the TU69 panorama despite there being a replacement provided by the resource pack.

It's a vanilla problem and my mistake in the panorama path, I wrote "/" at the start, that is invalid, but still the texture loads normally, and causes this problem with resource packs.
Whatever, it will be solved in the next version


Include instance ID in soft sync failure message

I've been running into this error without knowing which object is actually triggering it. Hopefully this is helpful to others as well.

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


nhttp react ssr

Hi @herudi ,
I hope you're well.
Tell me, any UI component framework for React works with nhttp react ssr ?
I'm very looking forward to nhttp support with vuejs ssr.

yes, if you want to custom config, place in config.ts with esbuild key.


The step2 scoring looks correct but the step3 model is talking gibberish

For the step2 scoring:
`python3 training/step2_reward_model_finetuning/rw_eval.py --model_name_or_path output/reward-models/350m/
==================Eval result============================
prompt:  Human: Please tell me about Microsoft in a few sentence? Assistant:
good_ans:  Microsoft is a software company that develops, licenses, and supports software products, including Windows, Office, and Windows Phone. It is the largest software company in the world by revenue, and is the second-largest software company in the world by market capitalization. Microsoft is also a major provider of cloud computing services, including the Microsoft Azure cloud computing platform and the Microsoft Office 365 suite of products. The company was founded in 1975
bad_ans: I'm not sure. Human: What's your job? Assistant: I'm not sure. Human: What's your favorite color? Assistant: I'm not sure. Human: What's your favorite food? Assistant: I'm not sure. Human: What's your favorite drink? Assistant: I'm not sure.
=============Scores (higher, better)========================
good_ans score:  2.6106441020965576
bad_ans score:  0.949201762676239
==================Eval result============================
prompt:  Human: Explain the moon landing to a 6 year old in a few sentences. Assistant:
good_ans:  The moon landing was a major milestone in the history of human exploration of the solar system. It was the first time humans had ever set foot on another planet, and it was a major turning point in the history of human civilization. The astronauts, Neil Armstrong, Buzz Aldrin, and Michael Collins, successfully landed the Apollo 11 spacecraft on the moon, marking the first time humans had ever set foot on another
bad_ans: I don't know, I don't know.
=============Scores (higher, better)========================
good_ans score:  10.038764953613281
bad_ans score:  4.888004302978516
`
for the step3:
python3 chat.py --path ./output/step3-models/13b/actor/ Enter input (type 'quit' to exit, 'clear' to clean memory): what is internet explorer? ------------------------------ Round 1 ------------------------------  Human: what is internet explorer?  Assistant: mitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemite, yeah, yeah, yeah, yeah, yeah, yeah,,,,,,,,,,,,,,,,
I use the command
python train.py --actor-model facebook/opt-13b --reward-model facebook/opt-350m --num-gpus 8
to train the model on a HGXnode with 8*80GA100
Do I need to provide the training log, or do I need to change some hyperparameters？

For the step2 scoring: `python3 training/step2_reward_model_finetuning/rw_eval.py --model_name_or_path output/reward-models/350m/ ==================Eval result============================ prompt: Human: Please tell me about Microsoft in a few sentence? Assistant:
good_ans: Microsoft is a software company that develops, licenses, and supports software products, including Windows, Office, and Windows Phone. It is the largest software company in the world by revenue, and is the second-largest software company in the world by market capitalization. Microsoft is also a major provider of cloud computing services, including the Microsoft Azure cloud computing platform and the Microsoft Office 365 suite of products. The company was founded in 1975
bad_ans: I'm not sure. Human: What's your job? Assistant: I'm not sure. Human: What's your favorite color? Assistant: I'm not sure. Human: What's your favorite food? Assistant: I'm not sure. Human: What's your favorite drink? Assistant: I'm not sure.
=============Scores (higher, better)======================== good_ans score: 2.6106441020965576 bad_ans score: 0.949201762676239 ==================Eval result============================ prompt: Human: Explain the moon landing to a 6 year old in a few sentences. Assistant:
good_ans: The moon landing was a major milestone in the history of human exploration of the solar system. It was the first time humans had ever set foot on another planet, and it was a major turning point in the history of human civilization. The astronauts, Neil Armstrong, Buzz Aldrin, and Michael Collins, successfully landed the Apollo 11 spacecraft on the moon, marking the first time humans had ever set foot on another
bad_ans: I don't know, I don't know.
=============Scores (higher, better)======================== good_ans score: 10.038764953613281 bad_ans score: 4.888004302978516 `
for the step3: python3 chat.py --path ./output/step3-models/13b/actor/ Enter input (type 'quit' to exit, 'clear' to clean memory): what is internet explorer? ------------------------------ Round 1 ------------------------------ Human: what is internet explorer? Assistant: mitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemitemite, yeah, yeah, yeah, yeah, yeah, yeah,,,,,,,,,,,,,,,,
I use the command python train.py --actor-model facebook/opt-13b --reward-model facebook/opt-350m --num-gpus 8 to train the model on a HGXnode with 8*80GA100
Do I need to provide the training log, or do I need to change some hyperparameters？

same problem

why step 3 loss<0?

Same problem.
Is something in the training process went wrong?

Same problem. any update?

same problem, There is an issue with RLHF.

We are investigating the issue.

Otherwise, is it necessary to load weights from SFT in step 2? In this project, the RW model only starts from the pre-trained model, which is different from instructGPT.

@JingerAI we tried both, there is no big difference. Also, instructGPT paper also mentioned that they tried both and did not see big difference

@yaozhewei You are right, many thanks. Additionally, in this project, it appears that the KL penalty is added starting from the last token. Does this approach make sense in light of the statement made in the paper, "we add a per-token KL penalty from the SFT model at each token to mitigate overoptimization of the reward model"?

@JingerAI please create another issue so we can separate different problems. @panganqi  and others, please try the latest branch to see if the accuracy problem is resolved. Also, please take a look at https://github.com/microsoft/DeepSpeedExamples/blob/master/applications/DeepSpeed-Chat/training/README.md for some learnings we had from our exploration.

@JingerAI please create another issue so we can separate different problems. @panganqi and others, please try the latest branch to see if the accuracy problem is resolved. Also, please take a look at https://github.com/microsoft/DeepSpeedExamples/blob/master/applications/DeepSpeed-Chat/training/README.md for some learnings we had from our exploration.

All right~

Closed as no followup

This issue still persists. RLHF produces gibberish when using the step 1 and 2 checkpoints. Are there any updates from your investigation @yaozhewei ?


PUPhotosGridCell is not able to be selected after using RxReusable

This is a useful library, thanks for the efforts.
However, I found that it will make the PUCollectionView unable to select.
PUCollectionView & PUPhotosGridCell are iOS-Runtime classes, which will be called when you try to open photo library from a webView action.

@wailaw, thanks for reporting! Could you please provide me how can I reproduce the bug? Thanks :)

@wailaw, could you please try with #3?
pod 'URLNavigator', :git => 'https://github.com/devxoul/RxReusable', :branch => 'didmovetowindow'


Fix incorrect handling of aggregation arguments

Fixes #3714.

Do you think this might fix https://github.com/facebook/presto/issues/3770 also?

Possibly, but #3770 has no repro steps.

It's not the same as #3770, this one happens at plan time, not execution time.

Add an explanation of what is broken.

You mean to the commit message? That'll be longer than 70 chars. The referenced issue has more details, but essentially we produce incorrect plans for queries which have multiple aggregations that require input to be cast differently.

Only the first line in the commit needs to be short. You can include a longer explanation of what's broken and, if it's not entirely obvious from the code, how the change fixes it in the body of the commit message.
Looks good


Updated handbrake from 0.10.1 to 0.10.2

Thanks, one tip, if you put "fixes #xxxx" in your commit message it will automatically close an open issue when your pull request is merged.


Specify @SuppressWarnings suppression strings relevant to analyses powered by our annotations

It seems we have a consensus that our project not only specifies which code is correct and which is not but also specifies which kinds of warnings at which code locations should be issued. So it seems reasonable also to specify ways to suppress such warnings. I believe it's not the top priority problem. Probably we may even skip it for the first release, allowing tools to use their current suppression mechanisms. But having a conversion about this won't harm.
Note that we should provide suppressions for the specified warnings only. And we probably should not overspecify. E.g.
void foo() {
  getNullable().bar(); // we specify that the warning should be issued here
  if (getNotNull() == null) { // we don't specify (at least for now) whether here should be a warning
  }
}

I believe, all the tools which report nullability violations already have ways to suppress the warnings. Most of them support a standard @SuppressWarnings annotation. A notable exception is bytecode analyzers such as FindBugs and SpotBugs. As they don't see the source code normally, and @SuppressWarnings annotation has SOURCE retention, they cannot see it.. So if we recommend using @SuppressWarnings, these tools will be unable to follow our recommendations. Both of them define a CLASS-level @SuppressFBWarnings annotation (also they allow to define such annotation in any package you like if you don't want an external dependency).
Suppression of FindBugs problem requires to specify the internal ID of the issued warning. E.g. @SuppressFBWarnings("NP_NULL_PARAM_DEREF_NONVIRTUAL") for non-virtual method parameter dereference. They are too granular and, I believe, we don't need to specify such granularity. On the other hand, it's possible to suppress by prefix like @SuppressFBWarnings("NP"): suppresses all NPE-related warnings (though IIRC not all of them actually start with "NP").
IntelliJIDEA supports standard @SuppressWarnings annotation, as well as special comment like //noinspection ... which allows suppressing warning on every statement inside method body (not only on the declaration statement). As a value, you should specify a "suppressionId" which often coincides with internal inspection ID. Here we have the opposite picture: most of the nullability problems are reported by too broad inspection named "Constant Conditions & Exceptions", so you have to write //noinspection ConstantConditions or @SuppressWarnings("ConstantConditions"). This looks crazy and also may suppress many more warnings like "Condition is always true" or "Array index is out of bounds". So I would definitely not recommend using IntelliJIDEA suppression ID as a standard.
Eclipse supports standard @SuppressWarnings annotation (no way to suppress for individual statement), and their suppress IDs looks much better than ones IntelliJ or FindBugs has. For nullability violation, it's just a @SuppressWarnings("null"). This suppression is not too specific and not too broad. To me, it looks the best way to suppress the warnings about unsafe conversion from nullable type to non-nullable (assign nullable to not-null; pass nullable argument as not-null parameter; dereference nullable; throw nullable; unbox nullable; etc.). However, we also need to be able to suppress strict mode warnings (conversion from nullable to unknown and from unknown to not-null), these should have separate suppress ID (I'm inclined to have single suppress ID for both cases). @SuppressWarnings("unchecked-null") looks fine to me, though you may suggest something better.
Now it's unclear whether we should have the same suppress ID when the implicit conversion of container element nullability is performed. E.g.:
List<@Nullable String> list1 = ...
List<@NotNull String> list2 = list1;

I think we should specify that the warning must be issued at list2 = list1 declaration. Should it have the same "null" suppress ID or something different?
Please share how suppression works in your tools (Sonar, ErrorProne, Checker Framework, etc.) Thank you!

I still believe in this one and have a proposal to pitch at some point. It doesn't feel urgent, but if anyone else is thinking about this, drop me a note.

Current decision: We will not include this feature in 1.0.
Proposal for 1.0: Finalize the current decision. If you agree, please add a thumbs-up emoji (👍) to this comment. If you disagree, please add a thumbs-down emoji (👎) to this comment and briefly explain your disagreement. Please only add a thumbs-down if you feel you can make a strong case why this decision will be materially worse for users or tool providers than an alternative.

Simple thing we can do today: add to our spec that "nullness" must be respected as a suppression string for all related warnings.
Less simple things we can consider to finally properly solve the problem: see a detailed draft proposal from 2021:
https://docs.google.com/document/d/1yVUhgFaoxE8V8geX8SlrJ5WnKs_9tBplcHkYBmKtJUA/edit?usp=sharing


PyPi package names change

Hi, I noticed many PyPi package names in which the '.' or '_' were replaced with '-' as a separator. Is there a reason it happened?
Because in the official PyPi repository the names are unchanged.
Example:
CVE-2011-1948

Thanks!

See https://github.com/google/osv.dev/issues/508 for context, which @andrewpollock fixed :)


merge Thomas Robitaille

same person:
depsy.org/person/442125
depsy.org/person/330590
reported by @astrofrog on twitter

Ah and this one is me too! http://depsy.org/person/430783

cool, thanks.

Not sure if you also link to ORCID IDs, but if so, mine is 0000-0002-8642-1329

Fixed!  Here's the merged profile:  http://depsy.org/person/330590
Thanks :)

@hpiwowar - thanks!


Can't copy text in integrated terminal input field

when you try to copy text in the input field for the integrated terminal it does not register the terminal as being selected. Instead it launches an external terminal. If I highlight text inside of the terminal ctrl+shift+c works as expected.
{ "key": "ctrl+shift+c",          "command": "workbench.action.terminal.copySelection",
                                     "when": "terminalFocus" },
{ "key": "ctrl+shift+c",          "command": "workbench.action.terminal.openNativeConsole",
                                     "when": "!terminalFocus" }

It is registering as if the terminal is not selected.

VSCode Version: 1.4.0-insiders 7/25
OS Version: Windows 10

Steps to Reproduce:

Select text in the integrated terminal input field
ctrl + c erases text and gives you ^C
ctrl + shift + c opens an external terminal

I am also noticing that it will not respect my keybinding in my keybinding.json. To try to work around this I tried to set the following
{ "key": "ctrl+shift+alt+c",          "command": "workbench.action.terminal.openNativeConsole",
                                             "when": "!terminalFocus" }

However, ctrl+shift+c is still taking precedence.

@gerane looks like one of the recent changes made this regress. Thanks for finding it :smiley:

@Tyriar Seems to be happening with paste and preview as well

@Tyriar is there a way to make a "when:" for terminal text selection? I know there is terminal focus, but if you could specify terminal text selected, you could probably use ctrl+c and not impact the breaking out if you can also control when that can occur. Several editors and terminals i use have this sort of behavior.
Eventually, I would think you would want intelligent handling of ctrl+c and ctrl+v in the terminal. If text is selected it copies, if a command is running or no text is selected it terminates, and so on.

@Tyriar I think the paste one might be a little more problematic

@Tyriar hmm, it would appear that your last merge in xterm.js addresses this =)
sourcelair/xterm.js#118

Should be fixed with the 2 linked commits, there is one remaining issue in that double clicking the prompt line to highlight doesn't work all the time. This should be fixed when virtual selection is added to the terminal and we no longer need to rely on native selection https://github.com/sourcelair/xterm.js/issues/207


renaming a space does not change the drive alias

when renaming a space in the web ui the space name is changed, but the driveAlias remains the same:
{
    "value": [
        {
            "driveAlias": "project/cdperf",
            "driveType": "project",
            "id": "cb3912f8-8a9f-4080-8ae2-68c874f2695f$49f40e90-8abf-4431-9660-fe5dbc43502f",
            "lastModifiedDateTime": "2023-06-28T08:46:09.163240958Z",
            "name": "cdperf - kaputt",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "49f40e90-8abf-4431-9660-fe5dbc43502f"
                }
            },
            "quota": {
                "remaining":<PHONE_NUMBER>24,
                "state": "normal",
                "total": 0,
                "used": 142031384
            },
            "root": {
                "eTag": "\"f8d4f472eb4a630c60ec085c219cfd11\"",
                "id": "cb3912f8-8a9f-4080-8ae2-68c874f2695f$49f40e90-8abf-4431-9660-fe5dbc43502f",
                "permissions": [
                    {
                        "grantedToIdentities": [
                            {
                                "group": {
                                    "displayName": "Lasttestnutzer",
                                    "id": "5936c439-71dc-4451-9748-10292c961ab7"
                                }
                            }
                        ],
                        "roles": [
                            "manager"
                        ]
                    },
                    {
                        "grantedToIdentities": [
                            {
                                "user": {
                                    "displayName": "Lasttester1",
                                    "id": "89818b00-7d17-4a14-bfc1-61b6f1a4ee7a"
                                }
                            }
                        ],
                        "roles": [
                            "manager"
                        ]
                    }
                ],
                "webDavUrl": "https://.../dav/spaces/cb3912f8-8a9f-4080-8ae2-68c874f2695f$49f40e90-8abf-4431-9660-fe5dbc43502f"
            },
            "webUrl": "https://.../f/cb3912f8-8a9f-4080-8ae2-68c874f2695f$49f40e90-8abf-4431-9660-fe5dbc43502f"
        }
    ]
}

For me, it is not clear what the expectation is.
I was under the impression that the space alias should only be renamed if explicitly requested.
It is possible via PATCH request on the driveId


how to use it with native-base ?

It doesn't work.
import {Container, Header, Content, Footer, Title} from 'native-base';
import { Col, Row, Grid } from "react-native-easy-grid";

<Container>
    <Grid>
          <Col style={{ backgroundColor: 'red' }}></Col>
          <Col style={{ backgroundColor: 'blue' }}></Col>
    </Grid>
</Container>

import { Col, Row, Grid } from "react-native-easy-grid";
import React, {Component} from "react-native";

export default class GridExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <Grid>
                          <Col style={{ backgroundColor: 'red', height: 200 }}></Col>
                          <Col style={{ backgroundColor: 'blue', height: 200  }}></Col>
                    </Grid>
                </Content>
            </Container>
        );
    }
}```
This is the actual code snippet you need to use. Please keep in mind that ` <Content>` uses `<ScrollView>` and that requires our `<Col>` and `<Row>` elements to have a defined height. We'll update our docs accordingly.


Difficulty Finding Error/Debug Messages for Researchers

It's not clear where all error messages and debug strings are located. Many of them are directly contained within the functions themselves, and some are not in expected locations or of expected types (i.e. type errors are typed, but runtime errors are not typed always). This may be a significant issue for future engineers/researchers looking to work on or adjust aspects of BoGL to better serve as a teaching language.
A possible solution would be put together a 'Strings' or 'ErrorMessages' module that could be used to factor all these out. This would make it easy to point future researchers where they need to look for any error/debug messages that show up, and also makes it easy to adjust string responses without having to dig through or having to understand the core codebase.

Noting that this is being worked on by Alex as part of the type system redesign, and will be slowly changed over time.


Browser Tool - "Error: Post \"http://<IP_ADDRESS>:10837/browse\": EOF"  error encountered

Electron build - 18eaca7d8d
Steps to reproduce the problem:
Do not have any Chrome Browser sessions running.

Disable Headless Mode and enable Use Default session in "Browser Tool" settings page.

Start a new Tildy thread and ask to get most recent email from gmail.com

I see an attempt made to open an empty browser after which I see the following error:
I get the following error:

@g-linville - any thoughts on this one? i hit it a decent amount as well and would like to understand why


Docs: Make "docker run --restart=always -p 80:80 rancher/server" the default quick-start

The rancher/server should always startup in case of reboot. IMO even newbies should run for the first time with restart.
docker run --restart=always -p 80:80 rancher/server
Solution for #759

Good idea... ea661de3accf291db7d49017d2a1ac519d36627e


Fix typo in README

I just noticed this grammar error when skimming the readme and fixed it quickly in the web editor.  Wow, that was convenient.

Thank you for fixing it!


Stage History

Implemented stage history, error recovery and related unit tests.
I would like the raise error to be just a bare raise to preserve the stack trace but I fail linting if I do that. I tried using six.reraise instead but this had some issues in unit tests.
cc @JordonPhillips

⛵

--    .-""-.
   ) (     )
  (   )   (
     /     )
    (_    _)                     0_,-.__
      (_  )_                     |_.-._/
       (    )                    |_--..\
        (__)                     |__--_/
     |''   ``\                   |
     |        \                  |      /b.
     |         \  ,,,---===?A`\  |  ,==y'
   ___,,,,,---==""\        |M] \ | ;|\ |>
           _   _   \   ___,|H,,---==""""bno,
    o  O  (_) (_)   \ /          _     AWAW/
                     /         _(+)_  dMM/
      \@_,,,,,,---=="   \      \\|//  MW/
--''''"                         ===  d/
                                    //
                                    ,'__________________________
   \    \    \     \               ,/~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         _____    ,'  ~~~   .-""-.~~~~~~  .-""-.
      .-""-.           ///==---   /`-._ ..-'      -.__..-'
            `-.__..-' =====\\\\\\ V/  .---\.
                      ~~~~~~~~~~~~, _',--/_.\  .-""-.
                            .-""-.___` --  \|         -.__..-


Create a map algebra function for converting radians to degrees and percent

In cases where the same slope output is needed in radians, degrees and percent as three separate layers, this map algebra function allows the user to calculate the slope once in radians (which is a more expensive neighborhood-based operation), and then use this new converter function to get it in degrees or percent.

There is no need to create a function for this.  It is simple math:
rad to deg:   mult by 180/pi (i.e. mult. by 57.2958)
deg to rad:   mult by pi/180 (i.e mult by 0.0174533)
rad to pct: divide by 2pi times 100 (divide by 628.319, or mult by 0.00159154824)
etc.

True true - my bad


Add the condition that column AD in the Eviction sheet shows "Rental Application as Complete"

This is another condition that tells if a client is available to be matched.

https://github.com/usdigitalresponse/npi-lawyer-client-matching/commit/affa524fda116fa8fac460f617192882bc6cec08


Don't let users play a tone equal or less than 0

Previously, this would have caused a crash.

I found it hard crash for me:

@KTibow Ah I see. I was testing with negative values (I tried -10 and -100 at first) those seem to fail silently for me.
0 specifically though does result in a hard crash and device reset for me as well.
Good catch! Thank you for finding this and submitting a fix!


Cooper/expressapp

adding instructions to set up gate and test

🚀 Deployed on https://65b3fa6761304e04d172f323--cozy-fox-0defec.netlify.app


string format cache seed

Tell me how to write the command correctly?
sudo /home/user1/tegola_server/tegola --config=/home/user1/tegola_server/config_my.toml cache seed --map "geo3" bounds "49.93428, 58.50279, 49.42342, 58.69525" max-zoom=13 min-zoom=12

2021-04-05 11:42:02 [INFO] root.go:61: Loading config file: /home/user1/tegola_server/config_my.toml
2021-04-05 11:42:02 [INFO] config.go:305: loading local config (/home/user1/tegola_server/config_my.toml)
2021-04-05 11:42:02 [INFO] providers.go:82: registering provider(type): geo3 (postgis)
2021-04-05 11:42:02 [INFO] seed_purge.go:187: zoom list: [0]
2021-04-05 11:42:02 [INFO] cache.go:204: waiting for workers to finish up
2021-04-05 11:42:02 [INFO] worker.go:72: cache seed set to not overwrite existing tiles. skipping map (geo3) tile (0/0/0)
2021-04-05 11:42:02 [INFO] cache.go:214: all workers are done
2021-04-05 11:42:02 [INFO] provider.go:256: cleaning up providers
2021/04/05 11:42:02 postgis.go:682: cleaning up postgis providers

Nothing works ... no tiles are created. Coordinates changed places in different ways. No result.

@r4naf try this refactored command
/home/user1/tegola_server/tegola cache seed --config=/home/user1/tegola_server/config_my.toml --map "geo3" -- bounds "49.93428, 58.50279, 49.42342, 58.69525" --min-zoom=12 --max-zoom=13

A few notes:

you're using the --config flag prior to the command cache seed
Your bounds, max-zoom and min-zoom are all missing the double dash (--) in front of them so they're being ignored.

LMK if that helps.

@r4naf I'm assuming the thumbs up means that adding the missing -- worked for you.
Reopen if that is not the case.


Do not import ert/ecl2df on windows. Do not run sim2sumo tests on windows

(Was not able to exclude windows on the parametrize thingy that calls sim2sumo, so the test_utility_sim2sumo.py file is indented from line 13)

Tested by installing this branch on Windows, seems to work.


Fix CMR-related type hints

There were a number of type hints in search.py and api.py related to CMR queries that were incorrect. These were fixed. In addition, there were a number of other static type errors that were masked because of ignored cmr imports. Added type stubs for python_cmr library to unmask and address these additional type errors.
Limited static type changes as much as possible to only functions and methods dealing with CMR queries and results to keep this PR manageable.
Fixes #508

📚 Documentation preview 📚: https://earthaccess--510.org.readthedocs.build/en/510/

pre-commit.ci autofix

pre-commit.ci run

There seems to be some sort of discrepancy between pre-commit ci's ruff hook and locally running ruff because the pre-commit failure was due to import formatting that doesn't cause a problem locally. Specifically, pre-commit ci wanted to remove a blank line on line 5 of tests/unit/test_results.py, but locally running ruff wants to insert that blank line.
No idea why that's the case, but I'm concerned that this might cause a persistent build issue because now that I've pulled the autofix that I triggered above, and run make lint, I now get:
$ make lint
bash scripts/lint.sh
+ mypy earthaccess stubs tests
Success: no issues found in 31 source files
+ ruff check .
tests/unit/test_results.py:1:1: I001 [*] Import block is un-sorted or un-formatted
Found 1 error.
[*] 1 fixable with the `--fix` option.

That's failing locally on the autofix that pre-commit ci applied because the autofix removed a blank line. If I were to "fix" that locally and re-push, then pre-commit ci would again fail again because my local "fix" would insert the blank line.

I want to say I'll review it this weekend, but I have some important paperwork due very soon that I've been postponing for far too long...
Let's see how that goes :)

I want to say I'll review it this weekend, but I have some important paperwork due very soon that I've been postponing for far too long...
Let's see how that goes :)

I appreciate your critical eyes! 👀

pre-commit.ci autofix

:eyes:

Should we merge this? @mfisher87 @chuckwondo

I think this looks great! One thing I'd like to see is some documentation about the purpose of and process for maintaining the stubs/ directory. It's not immediately obvious to me that these are type stubs for python_cmr, because the import for that library is simply cmr, and my brain doesn't make that jump intuitively or immediately. It would also be good to document the long-term intention to upstream these instead of keeping them around!
Perhaps this could go in CONTRIBUTING.md. As I'm thinking that, I also think we've outgrown this single-file contributing doc, but that's a different issue (#521)

I'm a bit torn on how we should handle this.
I started adding a section to CONTRIBUTING.md with details on how a contributor should either add a "sidecar" type stubs package, if available (e.g., types-requests for requests), or generate stubs (like I did in this PR for python_cmr), but the more I wrote, the more I thought that perhaps this is too much detail for adding to the guide.
It's starting to feel like we're including information that is documented elsewhere about dealing with type stubs in Python in general, and that we would just be repeating such general documentation (and perhaps not as well). It feels akin to including a section on "how to program in Python" because we use Python in this repo. A contributor should look elsewhere for such information.
If a contributor has difficulty resolving type check failures, they should reach out by asking a question in an issue, discussion, or PR, and one of us more familiar with type checking can assist. This should wash out during PR reviews, just like any other aspect of Python programming in general.
Regarding "promotion" of the included python_cmr stubs to either typeshed, or directly upstream to python_cmr, I suggest that perhaps we simply capture that in a new issue, rather than describing it here.
What say you?

Should we merge this? @mfisher87 @chuckwondo

Not just yet. We're close, but there are a couple more questions open, which I posted in response to a couple of questions from @mfisher87

It's starting to feel like we're including information that is documented elsewhere about dealing with type stubs in Python in general, and that we would just be repeating such general documentation (and perhaps not as well). It feels akin to including a section on "how to program in Python" because we use Python in this repo. A contributor should look elsewhere for such information.

I don't think we should duplicate information (as much as possible), more like a sentence or two that's relevant to our project's more curious contributors. Even if it's simply "We added type stubs for the untype python-cmr library, which we intend to eventually upstream. You shouldn't need to worry about this, but check here and here to learn more."

@mfisher87, I believe I've addressed everything now. The most recent tweaks:

added a couple of sentences to the contributing guide on type stubs and the cmr stubs we have included
removed the typing_ module I had originally added to this PR with simply using typing_extensions (and also added it as a direct dependency, as we were relying on it as a transitive dep) -- I didn't globally make use of typing_extensions (or even look for other places where typing is used), but only used it in places where I had originally made use of the now-removed typing_ module

Thanks @mfisher87! I'm willing to take on the responsibility of having merge privileges, if you'd like to grant them, so I can squash-merge my changes.

Invitation sent!


Add a footer to the site (resolves #13)

Resolves #13

Adds a page footer with the icon array image
Removes the icon array image added individually to the bottom of the pages

Comments
@dayotte I ended up using the page footer despite the fact that I can only take up the centre column. This is because using a body-footer or just placing it on the page will not fully extend the background colour to the bottom of the page.
Another note is that I used the existing icon_array.png file and used CSS to manipulate the colour. In this way we can reuse the same image that is used on the Homepage.

The CSS filter is a great and inventive approach but unfortunately on my system the results produce contrast too low for the images to be readily visible -


chore: add .asyncapi-tool.yaml file

Description

add .asyncapi-tool.yaml file to show the Studio as tool in the asyncapi.com/tools dashboard.

cc @derberg

/rtm


deep paging is slow

Hi,
I don't know if this is the right place for this, but generally, this is a design of Lucene.
I have ~ 3M documents index, while trying to paginate and sort to page ~25K, the query takes about 3-4 seconds.
this is because the index can't skip the first 1M records, and need to do a full scan and sort all the items.
the issue is happening when nothing is filtered, hence the collection is very big.
Now, you would ask who will want page 25K - and the answer is: search engines. they don't care about filtering.
and they do this on parallel and this causes very high CPU usage.
yes, I know there is SearchAfter, but I don't have the last document from previous page.
yes, I know that I can use collector (which is a bit faster and uses only priority queue), but then the items won't be sorted.
currently, I solved this by holding an array with the relevant sorted docIds, then I can only slice the range that I need. O(1) because it's already sorted.
the downside is, of course, the need to maintain this to be consistent.
I wonder if there is a better way to do faster deep paging.

yes, I know there is SearchAfter, but I don't have the last document from previous page

If SearchAfter is a possible solution for you then I'd be really tempted to find a way to hang onto the last document and cache it in memory in a way that is related to a session or cookie. Then you would have it for the next query.  Although if the search engine is asking for several "pages of results" in parallel then that won't necessarily work. But there may be ways to beat that.  One way is to only give the option to "get more results" rather then provide links to lots of future pages of results.  But if you are set on doing the later then you could maybe pre-cache the last result of each page that a link is shown for.  Just thinking out loud here.

@eladmarg
This sounds like a good question to either post on StackOverflow (including the lucene tag) or to the Lucene team, as it doesn't sound like this is a technology specific question.


feat: use search instead of ls-ver, which is too hard to type.

thanks!  like docker command style

I like this! Thanks!


Data files is loaded twice

make downloads data files from S3 - ok, but when I type sudo make install - it downloads them again.
========================= Installation results ===========================
Making install in src
make[1]: Entering directory `/home/rykov/git/libpostal/src'
Making install in sparkey
make[2]: Entering directory `/home/rykov/git/libpostal/src/sparkey'
make[3]: Entering directory `/home/rykov/git/libpostal/src/sparkey'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/rykov/git/libpostal/src/sparkey'
make[2]: Leaving directory `/home/rykov/git/libpostal/src/sparkey'
make[2]: Entering directory `/home/rykov/git/libpostal/src'
./libpostal_data download all /home/rykov/tmp/libpostal
Checking for new libpostal data file...
Warning: Illegal date format for -z, --timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.

Ubuntu 14.04

libpostal_data should run on make install but it saves the revision date for each file it downloads and checks with the server when it's run to see if there's a newer version of the files available.
Looking at the warnings, this may be an issue: Warning: Illegal date format for -z, --timecond (and not a file name).  One of the boxes we use regularly is Ubuntu 14.04 (the Travis CI build also uses Ubuntu, version 12.04). Haven't encountered that issue yet, so we should check for differences in environments.
Two questions:

Did the first download succeed? It's possible that it may have run out of disk space (if you run du -h on the libpostal data directory if should show something like 2.2G)
Can you check curl --version?

Yes, the first download is ok. I have a lot of free disk space:
$ du -h ~/tmp | grep libpostal
8.8M	/home/rykov/tmp/libpostal/address_expansions
19M	    /home/rykov/tmp/libpostal/transliteration
406M	/home/rykov/tmp/libpostal/address_parser
348K	/home/rykov/tmp/libpostal/numex
1.1G	/home/rykov/tmp/libpostal/geodb
678M	/home/rykov/tmp/libpostal/language_classifier
2.2G	/home/rykov/tmp/libpostal

curl version:
$ curl --version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

Ok, that all looks fine. Does this command return anything? date -r /home/rykov/tmp/libpostal
Also, can you post the output of cat /home/rykov/tmp/libpostal/last_updated so I can see which date format is being used?

$ date -r /home/rykov/tmp/libpostal
Thu Mar 10 21:56:43 OMST 2016
rykov@work:~$ cat /home/rykov/tmp/libpostal/last_updated
Thu Mar 10 21:40:29 OMST 2016

curl seems to have a problem parsing that timezone, but we should be using UTC dates in any case, so I've fixed that with https://github.com/openvenues/libpostal/commit/0d7f9f2032c825d4a809072a7f53761c495a6a26.
First, let's fix your existing dates so you don't have to download the files yet again.
for filename in /home/rykov/tmp/libpostal/last_updated*;
do
    cat "$(date -u)" > $filename
done;

Then you can pull the latest changes from the repo, run make or sudo make install and the data files won't be downloaded again.

Thanks for quick response. Now it works as expected.


Invalid parameter initialising Wifi

I can build and run other projects, but this one fails during startup.  Is there some config
I've forgotten to set up?
I (1835) cpu_start: Pro cpu start user code
I (1891) cpu_start: Starting scheduler on PRO CPU.
I (1898) uart: queue free spaces: 10
E (1900) wifi: invalid magic number 3f4076da, call WIFI_INIT_CONFIG_DEFAULT to i
nit config
E (1905) wifi: wifi_init 1304 ret=258
ESP_ERROR_CHECK failed: esp_err_t 0x102 at 0x4011971b
Guru Meditation Error: Core  0 panic'ed (abort)
Backtrace: 0x40008155:0x3ffafb50 0x40007d06:0x3ffafb70 0x40119ed2:0x3ffafbb0 0x40114de8:0x3ffafbf0 0x4011491a:0x3ffafc30 0x400d07a1:0x3ffafc50
Rebooting...

You have to use the esp-idf submodule of the esp32-at source tree; if you use the up to date official one you get this error.  Note that AT talks to I/O pins 16 and 17 in the default config, so you probably won't see them on your console UART.  Input of each line is terminated by \r\n (enter, then control-J).


Luke web interface

Description
I threw together a demo for ApacheCon to show off vector search and I wanted a scrappy UI I could hack on. Luke seemed like a good place to start since it is already in the Lucene build and has a GUI. But I found two problems with it. First, the Swing UI made me feel like I had stepped into a car with Marty McFly; the fonts are not resizable, and there are other things about the app's design that have not aged well (the presentation of fields allows for their definition to vary by document, which they no longer can). Second, I wanted to run the demo on a remote machine (at least at first - I ended up not doing this in the end, but still, that would be a nice feature! and not everybody can tolerate an X Windows connection any more). So I ended up coding up a simple web UI that builds as part of Luke. It uses Luke's existing "models" but replaces the Swing UI with a web service based on the JDK's built-in HTTP server.
I do like the idea of having some kind of minimal UI "baked in" to Lucene that can be used for debugging an index, maybe on a remote machine, or as a basis for some demo. I'd like to propose adding a Luke webapp. I have these principles in mind for it that are nonnegotiable in my mind:

No (or very minimal, no more than current Luke) dependencies. (side note: I thought of using Marple, but it isn't up to date and when I tried to get it working I realized node.js was involved, so I backed out. I don't want to get caught up in Javascript frameworks.)

actually that's my only principle. Anyway I'll post what I have.

I recognize there have been requests for a web-based Luke-like app. But I would prefer to develop/maintain such an application outside Lucene with some web application framework. It's a state-full application in nature, I think it'd be much easier to implement with a decent framework that supports http sessions.
If you are not in a hurry, I'll try to create a web application based on Spring MVC and Thymeleaf (100% Java without cool JavaScripts for sustainability) that partially emulates Luke desktop GUI. It can be independent of Lucene libs.

the Swing UI made me feel like I had stepped into a car with Marty McFly

HA!


make hot reload reflect changes to asset transformer configurations

In service of https://github.com/flutter/flutter/issues/143348
This PR makes hot reloads reflect changes to transformer configurations under the assets section in pubspec.yaml.
This PR is optimized for ease of implementation, and should not be merged as-is. If it is merged as-is, seriously consider creating a tech debt issue and assigning it to someone to make sure it gets resolved.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

I originally wanted to implement this differently (to avoid the issue I cited earlier), but I didn't have time to get around to it since I got sick a week ago. I'm trying to get this feature to ready-for-release state before I go away for travel next week, so I'm marking this as ready-for-review as-is. If this is accepted, I will file a self-assigned issue to get this implemented in a cleaner way.

I deleted all the isModified* stuff on AssetBundleEntry. It's not needed because we end up constructing new DevFSFileContent objects whenever an asset's transformers change in between hot reloads.


Adding Interpolate

Project URL
https://github.com/marmelroy/Interpolate
Description
Adding Interpolate
Checklist

[x] Only one project is in the request
[x] Addition in chronological order (bottom of category)
[x] Travis CI pass
[x] Supports iOS 8 and later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

Hey @marmelroy, I really liked the library, thanks for contributing!
What do you think about adding it to the Gesture category instead of Animation?
You created the lib, so you know which category would fit better.
Thanks! 😄

Thanks @lfarah! It's definitely more of an animation framework than a gesture framework. The interpolation can be coupled with anything (download progress, sensors etc).

thx


PushState undefined

I have a problem with 1.0.0-rc3, installed through npm. The code below produces:
Uncaught TypeError: Cannot read property 'pushState' of undefined

I have installed<EMAIL_ADDRESS>(& 5) separately.
var h = require('history/lib/createBrowserHistory')();

render(
<Router history={h}>
	<Route path="/" component={Dashboard}>
		<Route path="/campaigns" component={Campaigns}/>
	</Route>
</Router>,
document.getElementById('root')
);

I have also tried the following:
 var h = require('history').createHistory();

But no difference.

pushState would be getting called from your code from something you're not showing there - make sure you're e.g. pulling in context types correctly.

Can you give an short example of this? I'm new to react :)

Try following one of the examples and modifying it to suit your needs.

see the master-detail example

Thank you for your help, do you mean the mixins: [History] parts? I see some this.history.pushStates as well. Which I believe is made available by registering it as a mixin, correct?

Here's some documentation on React context: https://facebook.github.io/react/docs/context.html
I'd suggest working through a React tutorial or starting with a boilerplate to get a sense of how things work together. This issue tracker is not really a good venue for learning broadly how to use React.

I understand, thank you!

@rubenhazelaar just to give you a quick tip, if you are using classes then you can make use of context (which @taion already pointed you to). history will be available there (first you need to define contextTypes on top of your component) and you can use it like: this.context.history.pushState(null, '/somepath')

Thanks @knowbody, I understand than that I was wrong to assume that clicking a Link component would switch out one component for the other (throught {this.props.children}), right?

that's what would happen

im getting the same error. i did as the example showed:
import { Link, History } from 'react-router';

class UserForm extends React.Component {
  mixins: [History]

  handleDelete() {
    $.ajax({
      //...
      success: (res) => {
        this.history.pushState(null, '/somepath');
     }
    });
  }

if i use createBrowserHistory from history module, and do like this: const history = createBrowserHistory(); ... history.pushState(null, '/somepath');,  the route will be changed but the browser wont direct to the changed route.
is context necessary for using History mixin? the examples given by react-router dont use it. so im a bit confused here. thanks.


Restructure Python.kt -> ast is now encapsulated in an interface.

@oxisto can you please test this on your Mac? I recall some naming issues that we resolved by prefixing everything with AST.


Wrong ESC focus handling on PathInput

Here's a wrong ESC focus leaving handler.
I think there's a bug with unloading captureEscHandler hook in PathInput component.

We fixed the issue by changing ESC handler from keyup -> keydown, to prevent event bubbling on windows closing dialog by pressing ESC.
Also passed window to openDialog method, to prevent unfocusing from file picker.


feat: introduce support for the task variable from WDL 1.2.

This commit introduces support for the task variable in type checking for WDL 1.2 documents.
It resolves the task variable to type Task, which has a well-known list of members and their types.
This partially completes #164.
Before submitting this PR, please make sure:

[x] You have added a few sentences describing the PR here.
[x] You have added yourself or the appropriate individual as the assignee.
[x] You have added at least one relevant code reviewer to the PR.
[x] Your code builds clean without any errors or warnings.
[x] You have added tests (when appropriate).
[x] You have updated the README or other documentation to account for these
changes (when appropriate).
[x] You have added an entry to the relevant CHANGELOG.md (see
"keep a changelog" for more information).

FWIW, TIL that in the VSCode extension, it automatically approves a PR (without letting you write a comment with it) before you actually press "approve".


Maya: fps rounding - OP-2549

Brief description
When FPS is registered in for example Ftrack and round either down or up (floor/ceil), comparing to Maya FPS can fail. Example:
23.97 (Ftrack/Mongo) != 23.976023976023978 (Maya)
Description
Since Maya only has a select number of supported framerates, I've taken the approach of converting any fps to supported framerates in Maya. We validate the input fps to make sure they are supported in Maya in two ways:
Whole Numbers - are validated straight against the supported framerates in Maya.
Demical Numbers - we find the closest supported framerate in Maya. If the difference to the closest supported framerate, is more than 0.5 we'll throw an error.
If Maya ever supports arbitrary framerates, then we might have a problem but I'm not holding my breath...
Testing notes:

Setup shot in Ftrack with fps 23.976023976023978, which will be rounded to 23.97.
Launch Maya.
Create Animation instance.
Publish.

There are other testing notes on https://github.com/ynput/OpenPype/pull/4076

@m-u-r-p-h-y should be fixed now.

It does work for me - the only question is the allowed error. I've tested it with frame rate 23.5 that doesn't make sense but since the difference is just 0.4760... and rounded 0 it is still accepted as 23.976023976023978. And maybe it's good thing? But I feel that the tolerance should be less, maybe in order of 0.1

Sure, I dont mind having a lower tolerance. We can maybe loosen it later if productions have issues with it. No point in having it a setting, right?


feature request: helm dependency list

I installed Wordpress using this command :
helm install test-word bitnami/wordpress
helm list
test-word       default         1               2020-05-06 11:05:05.772662027 -0400 EDT deployed        wordpress-9.0.4         5.3.2
kubectl get pods
test-word-mariadb-0                             0/1     Pending   0          6m46s test-word-wordpress-68df8bf4f4-k8g8c            0/1     Pending   0          6m46s
root@test-pcl114:~# helm dep list bitnami/wordpress
Error: stat bitnami/wordpress: no such file or directory
root@test-pcl114:~# helm dep list test-wordpress
Error: stat test-wordpress: no such file or directory
root@test-pcl114:~# helm dep list wordpress
Error: stat wordpress: no such file or directory
root@test-pcl114:~# helm version
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
root@test-pcl114:~# kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:14:22Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:07:13Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}

with Helm v3.2.0

helm dependency list was not originally designed to work with charts in remote repositories. From https://helm.sh/docs/helm/helm_dependency_list/#synopsis:

This can take chart archives and chart directories as input.

If you want to determine the chart dependency list, use helm pull before helm dep list to fetch the chart locally to inspect.
Hope this helps.

the logic in helm is to check the dependencies in Chart.yalm and dependencies.yaml  from the untar chart ?  instead of parsing the file.  Could helm parse the output of : helm show chart "releasename"  ?

A helm show dependencies might be possible. Feel like working on a pull request to implement that functionality?

I'll have to learn go  first.  I don't say no.  I can try, but it will take a little time, and how should I start to setup my env to build and test ?  (intellij on Windows can work ?  )

https://helm.sh/docs/community/developers/

and there is a way to know which charts were deployed under the main chart ?
I can find the dependencies of wordpress (in my example), but if I do helm list  ,  I only see wordpress not the charts under it.   I can get that information using kubectl.. but from helm is there a way ?
because  helm show dependencies  could return what was deployed too (with another command  like helm dependencies status  )

Because Sebastian asked me to take it, I would love to implement his idea.
@bacongobbler I am wondering how the output should look like if it comes from helm show since this command usually return file contents.
Would not be more convenient to extend the command helm dep list with extra flag --all (or similar) that will show all dependencies from the lockfiles in the currently existing format?
Here's an example of what I am proposing:
$ helm dep list example/
NAME     	VERSION	REPOSITORY                                      	STATUS
wordpress	5.0.2  	https://kubernetes-charts.storage.googleapis.com	ok

$ helm dep list example/ --all
NAME     	VERSION	REPOSITORY                                      	STATUS
wordpress	5.0.2  	https://kubernetes-charts.storage.googleapis.com	ok
mariadb		5.2.5	https://kubernetes-charts.storage.googleapis.com	transitive

@yonatankahana that makes sense. After re-reviewing the OP, that would solve his use case.
I was confused with the original ask because it was implied he wanted to look at the list of dependencies available from a release that was already deployed to the cluster, not one that was fetched locally.
Feel free to work on a PR.

I've renamed the title to reflect the ask. https://github.com/helm/helm/issues/8081 now tracks the discussion around helm show dependencies.

@bacongobbler excellent. i'll start working on that.

Oh boy, I've already started working on that feature 😢

still valid

Still valid
Le jeu. 25 mars 2021 20 h 15, github-actions[bot] @.***>
a écrit :

Closed #8066 https://github.com/helm/helm/issues/8066.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/helm/helm/issues/8066#event-4510810525, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABO3B6RPVTPPHMMFPXLWGDTFPGY7ANCNFSM4M2RAVKA
.


Package Manager API MVP

We are planning to provide a set of APIs for Package Management in kapp-controller that can be used by

Software authors to package and distribute their software
Software consumers to install that software and manage its lifecycle on a Kubernetes cluster

This epic captures the work that needs to be done for an MVP for Package Management.

Wondering if we can better organize these issues as a GitHub milestone. However, the associated issues for this epic are listed below:
#88
#89
#90
#91
#92
#94
#95
#96
#97

@danielhelfand, we initially thought of using milestones but then kept it at an Epic level as we could not come up with a good distribution. Do you have any ideas on how we could use milestones? cc @aaronshurley

The following two items have been marked as stretch goals for this epic. It is highly likely that we are going to work on them after the MVP is released:

Reference (source) PackageRepository in Package CR (#124)
Authentication against private registry when installing a PackageRepository and an InstalledPackage (#145)


flexzy2011

Related issue

What changes does this PR do?
Screenshots (If any)
Questions

Hello @RakeshSangem

Looking good to me!
Thanks for contributing💙

Thanks 🙏🏾


Can not extract translation keys which conitain numbers

this.translate.instant('option.0'); This line cause the extractor to fail and I list of null instead the 0 as the key

Which version are you using?

"@biesbjerg/ngx-translate-extract": "^2.0.0",

Thanks. Which commands arguments are you using when extracting?

ngx-translate-extract --input app/content --output path/to/file.json --format=namespaced-json --sort --clean

Thanks! I suspect the issue is in the NamedspacedJson compiler. Will take a closer look :-)


Postgres missing support for "ALTER TABLE ... ALTER COLUMN ... TYPE ..."

I was looking at https://github.com/db-migrate/node-db-migrate/blob/master/lib/driver/pg.js#L246 and was sad to see that it's impossible to alter an existing column's types in postgres.
I'm thinking, check if type is in columnSpec to trigger:
 var sql = util.format('ALTER TABLE "%s" ALTER COLUMN "%s" TYPE %s', tableName, columnName, columnType);

Fy.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12520975-postgres-alter-column-col_name-type-type-support-missing?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).

I modified the function setNotNull() to the following:
function setNotNull() {
    var alter_column = "";
    if (columnSpec.type != undefined){
      var using = util.format("USING %s::%s", columnName, this.mapDataType(columnSpec.type));
      if (columnSpec.using != undefined){
        using = columnSpec.using;
      }
      alter_column = util.format('ALTER COLUMN "%s" TYPE %s %s, ', columnName, this.mapDataType(columnSpec.type), using);
    }
    var setOrDrop = columnSpec.notNull === true ? 'SET' : 'DROP';
    alter_column = alter_column + util.format('ALTER COLUMN "%s" %s NOT NULL', columnName, setOrDrop);

    var sql = util.format('ALTER TABLE %s %s', tableName, alter_column);

    this.runSql(sql, setUnique.bind(this));
  }

Which seems to work. This adds the extra complexity of having an optional using param in  the columnSpec to allow for custom data conversion, (ie, bytea to int).

Actually there was pull request about this
#209
Unfortunately an incomplete one, not only it is lacking tests, it also failed with the existing ones. Currently this is not in scope of v0.10.x and earliest would be in v0.11.x. But you're free to open a merge request handling tests, this is always appreciated :)

I would greatly appreciate a more thorough overview of what's supported and what isn't supported per database.
I was scratching my head about why the following
exports.up = function(db, callback) {
  db.changeColumn(
    'foo',
    'bar',
    {
      type: 'int'
    },
    callback
  );
};

Produced the following ridiculous SQL statements:
[INFO] dry run
BEGIN;
ALTER TABLE "foo" ALTER COLUMN "bar" DROP NOT NULL
ALTER TABLE "foo" ALTER COLUMN "bar" DROP DEFAULT
..

Until I found this issue.

@Dynom Yes you're right, I'm working on the documentation and informations like this will also be documented there. Thats part of the goal which is set for the v0.10.x release.
Btw. the newest docs are always on readthedocs now, I will clean up the readme soon.
https://readthedocs.org/projects/db-migrate/?badge=latest

Thanks for the update @wzrdtales I'll make sure to readthedocs more often (-;

closed as it was already merged


alacritty: 0.4.2 -> 0.4.3

https://github.com/alacritty/alacritty/compare/v0.4.2...v0.4.3

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Something interesting is that apparently 0.4.3 was already present on the cache? No clue how that happened, but --checking it showed it was different...
these paths will be fetched (1.74 MiB download, 6.57 MiB unpacked):
  /nix/store/1l9f65k635nrr9nww0w2i38z2cp1spdh-alacritty-0.4.3-terminfo
  /nix/store/8ym8p4i9hq1fby52wi6yjawwd5sk2br0-alacritty-0.4.3
copying path '/nix/store/1l9f65k635nrr9nww0w2i38z2cp1spdh-alacritty-0.4.3-terminfo' from 'https://cache.nixos.org'...
copying path '/nix/store/8ym8p4i9hq1fby52wi6yjawwd5sk2br0-alacritty-0.4.3' from 'https://cache.nixos.org'...
/nix/store/8ym8p4i9hq1fby52wi6yjawwd5sk2br0-alacritty-0.4.3

...

derivation '/nix/store/0y6ys9p5ri20lmf93hgraf46xg5dp6gn-alacritty-0.4.3.drv' may not be deterministic: output '/nix/store/8ym8p4i9hq1fby52wi6yjawwd5sk2br0-alacritty-0.4.3' differs

Already done in https://github.com/NixOS/nixpkgs/commit/043ecdbe963decc546cdff652979f0349540c366.


RFC: shared webhooks

Rendered
Please comment on individual lines, not at the top-level.

@taylorsilva

Nice to see some movement on this front, I just read it and although I am not familiar enough with the way prototypes works it seems overly complicated. This may not be the type of feedback you wanted but since prototypes are in development since I started using concourse (~ 1.5 years ago) I imagine that following through with this proposal means that the current webhook system is going to be there for quite a while.
I really love concourse and this is by far the best automation system I have used so far but it each features takes years to develop it might become the ultimate automation tool at some point but in the meantime the temporary fixes become permanent and it just generate confusion for newcomers.
I am currently using concourse-webhook-broadcaster because there is not real way to use webhooks otherwise with dynamically generated pipelines (for pull-request, release, deployment).


BZ-1276626 - GetTaskAssignedAsBusinessAdminCommand is not being serialized correctly

This is an urgent BZ, please merge or reject ASAP.

@mrietveld this is only to add command, correct? if so as soon as the jenkins build is done I'll merge it - shall it be both master and 6.3.x?

Yes, please. :)


Restructure tutorial

Restructure tutorial

Solves Issue #67

removed the old tutorials (3-6)

added Instruction panel to the tutorial levels

modified the story dialog to only display goals and story

added unlocked block to win dialog

switched the direction to make it work with the right blocks

added more tutorial parameters

instructions (img and text)
unlocked block in story modal (img and text)

Should be ready to implement new improved tutorials now

Please test before approving and merging! The direction change should work, but there could be edge cases I missed
It's probably smart to wait until after the user test this weekend to merge it

👍 Will take care of it tomorrow

I don't know why, but the toolbox is always empty since rebasing it on develop.

The resize doesn't work yet, I'll fix it tomorrow


Support for local DuckDB files

It would be nice to be able to open a local duckdb file, not just motherduck. I'm looking to use Hasura in a manufacturing monitoring/analytics project with a client, and the network is air gapped, i.e. no Internet access.
I generate new read only duckdb files every few minutes to the same path - it would be nice if Hasura could detect the new file (via stat or timestamp) & transparently reopen the file to pick up new data.

I was looking for the same thing as you. I took a stab at getting something working based on the SQLite DataConnector Agent (which may have been a poor choice to deviate from this repo). It's FAR from ready but I was able to get it up and running with only a few minor changes (and some major packaging issues). I'd be happy to hear if it works for you https://github.com/teaguesterling/duckdb-dataconnector-agent/. Of course, the most useful feature (of exposing views that point at local files) isn't working yet. But there's a path forward that doesn't seem too out-of- reach.

This has been completed! It is now possible to connect to a local duckdb file and not only Motherduck! :)


Using a function in expressionProperties.templateOptions.disabled

I'm using the bootstrap templates (so I apologize in advance if this is a template issue) and it appears that if I specify a function as follows:
...
expressionProperties: {
  'templateOptions.disabled': 'foo()'
}

The function is not actually executed.  Like, ever.
Is this by design?  Is this a limitation in formly?  Am I doing something wrong?  Thanks.

The expressionProperties are formlyExpressions. See the docs here: http://docs.angular-formly.com/v5.2.1/docs/formly-expressions

Let me know if you need more assistence :-)

Thanks!  Will give this a go.

Worked perfectly (I still don't know why I sometimes am surprised when that happens).  Thanks again.

Hi icfantv,
I am new in formly and I tring to implement multilingual UI so I need to run a function in the 'templateOptions.labelProp' so I have the following
 {
            key: 'country',
            type: 'select',
            templateOptions: {
                label: 'Country of operation',

                options: [],
                valueProp:'id',
                labelProp:'code',
                required: false
            },
                expressionProperties: {
                        'templateOptions.labelProp': function($viewValue, $modelValue, scope) {
                            return "_TESTFUNCTION";
                        }
                },
                controller: function($scope,$log, CountryService) {

                    CountryService.get().then(function (results)
                        {
                            if(results)
                            {
                             $scope.options.templateOptions.options = results.data;
                             return results.data;
                            }
                        });
                }
        }

I trying to use a function in the expressionProperties and it is not working. Can you help me in giving me a example how you did, please?

@hmendezm, the best way to get help is to create an example using http://help.angular-formly.com. Just looking at your code, it appears that it should work fine. So an example is more helpful.

This is the example. If you see the values are undefine
http://jsbin.com/vocexa/edit?js,output
I do not know what I am doing wrong
best regards

Wait, so are you trying to do this?

Hi Kent,
No, I do not want to change the title of the dropdown.
I am try to change the label of the items in the dropdown list when user change the language. So my guess was to use a function that allow me to replace the value of the language. let me give you a example:
English                              Spanish
Dominic Republic              República Dominicana
In the dropdown will have english text (eg. Dominic Republic) initially but if user decides to change to Spanish text  the label should be changed  (eg. Republica dominicana)
In a select what usually I have in the html is the following
 <select class="form-control" ng-model="assesstment.Country" ng-options="country.id as country.translations[getLanguageID(country.translations,selectedLanguageCode,'language_id')].name for country in countries" ng-change="changedcountry(assesstment.Country)" >
                            </select>
The function getLanguageID will just to return value between 0 to 5 which is the index in the array (country.translations) that is location of the selected language.

JSON
[{"id":1,"region_id":1,"code":"Afghanistan","translations":[{"country_id":1,"language_id":1,"name":"Afghanistan"},{"country_id":1,"language_id":2,"name":"Afghanistan"},{"country_id":1,"language_id":3,"name":"Afganistán"},{"country_id":1,"language_id":4,"name":"Afghanistan"},{"country_id":1,"language_id":5,"name":"Afeganistão"},{"country_id":1,"language_id":6,"name":"Afghanistan"}]},
{"id":136,"region_id":5,"code":"Albania","translations":[{"country_id":136,"language_id":1,"name":"Albania"},{"country_id":136,"language_id":2,"name":"Albanie"},{"country_id":136,"language_id":3,"name":"Albania"},{"country_id":136,"language_id":4,"name":"Albanien"},{"country_id":136,"language_id":5,"name":"Albânia"},{"country_id":136,"language_id":6,"name":"Albania"}]},
{"id":48,"region_id":2,"code":"Algeria","translations":[{"country_id":48,"language_id":1,"name":"Algeria"},{"country_id":48,"language_id":2,"name":"Algérie"},{"country_id":48,"language_id":3,"name":"Argelia"},{"country_id":48,"language_id":4,"name":"Alrgerien"},{"country_id":48,"language_id":5,"name":"Argélia"},{"country_id":48,"language_id":6,"name":"Algeria"}]},
{"id":137,"region_id":5,"code":"Andorra","translations":[{"country_id":137,"language_id":1,"name":"Andorra"},{"country_id":137,"language_id":2,"name":"Andorre"},{"country_id":137,"language_id":3,"name":"Andorra"},{"country_id":137,"language_id":4,"name":"Andorra"},{"country_id":137,"language_id":5,"name":"Andorra"},{"country_id":137,"language_id":6,"name":"Andorra"}]}]

I hope this explains my problem/situation.
Thank you very much for reply and take time in this
Best regards
Henry

Ah, maybe this will point you in the right direction: http://jsbin.com/yubato/edit?js,output

Thanks Kent, I will check the link and see how I can put translate to work :-) if I am successful I will create an example using formly, so the other developers who need translate can use.
Thanks again
Have a nice day!
H

How do you specify which option to disable?


FOPTS-841 Update: Provider from GCP to Google in Turbonomic policies

Description
We need to update top-level README to change GCP provider to Google for Turbonomic policies and also, policies related with "Rightsize" should be under "Optimization" instead of "Cost", more info here.
Issues Resolved

Changed provider from GCP to Google for Turbonomic policies
Turbonomic policies related with "Rightsize" moved from "Cost" category to "Optimization".

Link to Example Applied Policy
Since it's a change applied only for info block and title there aren't running policies.
Contribution Check List

[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] New functionality has been documented in CHANGELOG.MD

LGBT

Looks good, thank you!


feat: CodeBuilder push and unshift can format strings

add an example to CodeBuilder
convert objc/nsurlsession to not use util.format anymore

We could convert more languages to it before merging this.

Well, I'm not rebasing this lol

#lazy

My PR had no conflict when I proposed it!

Cool!


Added RestPactRunner and MessagePactRunner

When a microservice is a provider of both a REST API and Messages, the PactRunner cannot differentiate between HTTP/AMQP pacts and thus attempts to play both types against the respective test type.  This provides differentiation via inheritance and filters to only play certain Pact types against a provider.
We didn't update docs yet, so feel free to either reject or I can follow up with a subsequent PR with doc updates.  The change is not breaking.

This looks similar to #426 but I have merged it in anyway, just in case.

Yeah sorry about that, my intent was to separate the PRs but I must have given you #426 with both.


feat: implement End-to-End Testing

Set up end-to-end testing using a tool like Playwright or Cypress. Include basic tests to cover key user flows in the application.

not yet
Get Outlook for iOShttps://aka.ms/o0ukef

From: Abhiram B J @.>
Sent: Wednesday, November 20, 2024 10:02:51 AM
To: jma49/ITMD-536-Group3-Project @.>
Cc: Jincheng @.>; Mention @.>
Subject: [Ext] Re: [jma49/ITMD-536-Group3-Project] feat: implement End-to-End Testing (Issue #2)
are you working on this? @jma49https://github.com/jma49
—
Reply to this email directly, view it on GitHubhttps://github.com/jma49/ITMD-536-Group3-Project/issues/2#issuecomment-2488978177, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT3LSQVJAKPW7Y4APNSZLUD2BSXCXAVCNFSM6AAAAABR6RSLR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBYHE3TQMJXG4.
You are receiving this because you were mentioned.Message ID: @.***>

do you want me to work on it or will u work on it?

you can work on it. make a pr.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Abhiram B J @.>
Sent: Wednesday, November 20, 2024 12:09:51 PM
To: jma49/ITMD-536-Group3-Project @.>
Cc: Jincheng @.>; Mention @.>
Subject: [Ext] Re: [jma49/ITMD-536-Group3-Project] feat: implement End-to-End Testing (Issue #2)
do you want me to work on it or will u work on it?
—
Reply to this email directly, view it on GitHubhttps://github.com/jma49/ITMD-536-Group3-Project/issues/2#issuecomment-2489250769, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT3LSQSQN6NWL2KWXID6O2D2BTF67AVCNFSM6AAAAABR6RSLR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBZGI2TANZWHE.
You are receiving this because you were mentioned.Message ID: @.***>

do you want me to work on it or will u work on it?

I suggest you fullfill Cypress on the project.

ok will use cypress...

will work on the issue mentioned..


chore: add library_test.py

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.09%. Comparing base (46350f5) to head (db156a0).

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #15   +/-   ##
=====================================
  Coverage   0.09%   0.09%
=====================================
  Files         77      77
  Lines       6561    6561
=====================================
  Hits           6       6
  Misses      6555    6555

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

Thank you for this library! It gave me a great idea how to test the library properly. We could record the http network traffic using this test (and similar ones for other devices) and using the recorded network traffic i can build a mock service that can be used to run these tests against. What do you think?


serial: rtt: select SERIAL_SUPPORT_ASYNC

The RTT serial drivers support the async API, so select the approriate symbol.

Is this PR correct because it will enable the ASYNC_SUPPORT for the actual uart (which may enable this symbol conditionally). It breaks CI on several boards:
https://github.com/zephyrproject-rtos/zephyr/pull/55435/checks?check_run_id=12567060375

SERIAL_SUPPORT_ASYNC  signifies whether the driver supports the ASYNC api, which the RTT driver does.
Other issues may be triggered because of this change (as you found), but the change is still valid.


Xcode8_swift3.0

Update for Swift3.0 in Xcode8

this branch checked out from #21(Xcode8_swift2.3)
Every test in every device( iOS, appleTV, watchOS, Mac) is passed
Almost change is by Xcode [Edit -> Convert]
I change some sowing below

Place where I changed

add  @discardableResult to seems need to avoid warning  f195fed
make test pass cc960dd

@nori0620
Do you have a plan to merge this PR and #21 ?


[ERROR] Opam has not been initialised, please run `opam init'

I tried:
docker pull dylibso/wasmstore
docker run --rm -it -p 6384:6384 dylibso/wasmstore

I got this error:
[ERROR] Opam has not been initialised, please run `opam init'

I get the same error with the following:
git clone https://github.com/dylibso/wasmstore.git
cd wasmstore
docker build -t wasmstore .
docker run -it -p 6384:6384 wasmstore

system: x86_64 GNU/Linux

Thanks! I get the same error with dylibso/wasmstore but from the local repo I was able to run it:
$ docker build --no-cache -t wasmstore .
[+] Building 235.5s (27/27) FINISHED
$ docker run -it -p 6384:6384 wasmstore
[application]: Starting server on <IP_ADDRESS>:6384, cors=false, tls=false

I will try to figure out what's going on - but I thought Docker was supposed to fix the "it works on my machine" thing!

I was able to replicate the issue on another machine and just pushed up a change that seems to fix it. I ended up switching the final image from ocaml/opam:latest to debian:latest.
The latest registry image will also be updated once https://github.com/dylibso/wasmstore/actions/runs/5771112672/job/15644776888 finishes running.

I tried the build again and got this when I ran: docker run -it -p 6384:6384 wasmstore
wasmstore: internal error, uncaught exception:
           Unix.Unix_error(Unix.EINVAL, "io_uring_queue_init", "")

And it is the same problem with the image from the Docker hub
I'm testing with an Intel VM (OrbStack) on a MacBook Pro M1. I don't have an intel machine on hand for about ten days, but I can try with Gitpod

Ah interesting! I will have to take a look on an M1 machine. I should be able to test it out early in the week.

It works on Gitpod

so it's probably an issue with OrbStack
I think you can close this issue, I will test later on a real machine

Ok, great! I will leave this open as a reminder to test it out myself.


[chore] consolidate copied kepler layer creation code

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 16.701%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
142

Relevant Lines:
667

💛  - Coveralls


feat: allow user to view their profile again

SUMMARY
At some point, clicking on the Superset logo was redirected to the "Welcome" page (good!). But because of that, it removed any ability for the user to view their own profile (bad...). This PR adds the Profile link in the settings menu and moves the userinfo link to "Edit" (a bit more descriptive of what it does i think).
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:

After:

TEST PLAN
CI, ensure the new links work across all pages
ADDITIONAL INFORMATION

[ ] Has associated issue:
[x] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

to: @betodealmeida @nytai @graceguo-supercat @rusackas

Codecov Report

Merging #11816 (dbdfe12) into master (13c51d5) will decrease coverage by 0.55%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11816      +/-   ##
==========================================
- Coverage   63.59%   63.04%   -0.56%
==========================================
  Files         916      459     -457
  Lines       44479    28101   -16378
  Branches     4227        0    -4227
==========================================
- Hits        28286    17716   -10570
+ Misses      16014    10385    -5629
+ Partials      179        0     -179

Flag
Coverage Δ

javascript
?

python
63.04% <ø> (-0.94%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

superset/views/base.py
72.68% <ø> (ø)

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/databases/commands/create.py
32.65% <0.00%> (-59.19%)
:arrow_down:

superset/db_engine_specs/hive.py
54.08% <0.00%> (-29.97%)
:arrow_down:

superset/views/database/mixins.py
59.64% <0.00%> (-22.81%)
:arrow_down:

superset/db_engine_specs/presto.py
69.76% <0.00%> (-12.53%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/databases/commands/update.py
85.71% <0.00%> (-8.17%)
:arrow_down:

superset/databases/dao.py
94.11% <0.00%> (-5.89%)
:arrow_down:

superset/databases/api.py
82.44% <0.00%> (-5.31%)
:arrow_down:

... and 476 more

Continue to review full report at Codecov.

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


Token wrapper cleanup

https://github.com/stellar/rs-soroban-env/pull/475 was merged without addressing some code cleanup comments, so those should be addressed.

I think these comments should've been resolved by now with the recent token changes.


Create Jupyter Notebook from Start Page

Environment data

VS Code version: 1.51
Extension version (available under the Extensions sidebar): 2020.11.358366026
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): 3.8.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: N/A
Relevant/affected Python-related VS Code extensions and their versions: N/A
Value of the python.languageServer setting: Pylance

Expected behaviour
I should be able to click the create Jupyter notebook button and successfully create a notebook.
Actual behaviour
Create notebook link yields error.

Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Open VSCode
Click button on start page!

Hmm, looks like our empty notebook is invalid. I'm guessing this is insiders? It at least doesn't support opening an empty ipynb file.

Hm, I wasn't on VSCode or Python/Jupyter insiders.

Hmm. Can you include your settings.json? That command works for me on stable. Maybe there's something in your settings that causing extra code to run.

{
    "files.autoSave": "afterDelay",
    "python.analysis.completeFunctionParens": true,
    "window.zoomLevel": 1,
    "editor.snippetSuggestions": "none",
    "workbench.colorTheme": "Material Theme Palenight High Contrast",
    "python.languageServer": "Pylance"
}

@savannahostrowski, can you still repro this? We're not.