[Anushiya] Update the navigation bar

Task Summary
Update the navigation bar to navigate to public feed, stats, community and user page.

Closing since this is done.


[RESTEASY-2404] Ensure that Spring's ControllerAdvice works properly …

…with ResponseEntity
Relates to: https://github.com/quarkusio/quarkus/issues/5374

@asoldano would it be possible to have a patch release with this fix? It would be great to have it in for Quarkus 1.0.0.Final

Thanks!

Thanks for merging!


Can't embed to iFrame

Problem/Motivation
By default, Uptime Kume doesn't allow being embedded in an iframe. Because of that, it cannot be added to the Home Assistant sidebar.
Expected behavior
Being able to access it from the sidebar
Actual behavior
Doesn't work
Steps to reproduce

(How can someone else make/see it happen)

Proposed changes
A UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN environment variable can be set to allow embedding in an iframe.

Can this ticket be re-opened? I'd like to know if @marciogranzotto proposed solution would work to have uptime kuma in HA sidebar

Can this ticket be re-opened? I'd like to know if @marciogranzotto proposed solution would work to have uptime kuma in HA sidebar

yes, I'm using my fork as a local add-on on my instance


Refactor ECS to reduce the dependency on a 1-to-1 mapping between components and real rust types

Objective
There is currently a 1-to-1 mapping between components and real rust types. This means that it is impossible for multiple components to be represented by the same rust type or for a component to not have a rust type at all. This means that component types can't be defined in languages other than rust like necessary for scripting or sandboxed (wasm?) plugins.
Solution
Refactor ComponentDescriptor and Bundle to remove TypeInfo. Bundle now uses ComponentId instead. ComponentDescriptor is now always created from a rust type instead of through the TypeInfo indirection. A future PR may make it possible to construct a ComponentDescriptor from it's fields without a rust type being involved.

cc @BoxyUwU re your relationships PR.

bors r+

bors retry

nice that worked!


Update the annotations required for authentication and routes

Signed-off-by: Anish Asthana<EMAIL_ADDRESS>

/lgtm

/restest

/retest

/lgtm


Cannot assign a device for operation when using multiple embedding columns

System information

Have I written custom code (as opposed to using a stock example script
provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux, Amazon Deep Learning Image, Amazon Linux 2
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device:
No
TensorFlow installed from (source or binary):
Binary
TensorFlow version (use command below):
2.3
Python version:
3.7.7
Bazel version (if compiling from source):
N/A
GCC/Compiler version (if compiling from source):
N/A
CUDA/cuDNN version:
CUDA Version: 11.0
GPU model and memory:
NVIDIA Tesla M60 - 16 GB (Amazon EC2 g3s.xlarge - single GPU)
Exact command to reproduce:
python repro.py

Describe the problem
When using the functional API with Keras with more than one embedding input, I get device placement issues. The actual error is:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation functional_1/first_embed_layer/test_embedding/test_embedding_weights/embedding_lookup_sparse/embedding_lookup: Could not satisfy explicit device specification '' because the node {{colocation_node functional_1/first_embed_layer/test_embedding/test_embedding_weights/embedding_lookup_sparse/embedding_lookup}} was colocated with a group of nodes that required incompatible device '/job:localhost/replica:0/task:0/device:GPU:0'. All available devices [/job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:0, /job:localhost/replica:0/task:0/device:GPU:0]

I've found several workarounds:

Instead of using the functional API, use keras.model.Sequential() with a single DenseFeatures layer containing both of my embedding columns (I was trying to avoid this because I can't find an easy way to pull out the weights of only one of the columns when doing it this way, without searching by dimension size).
Run it without a GPU. Also not ideal because of the slow down.

I also tried doing a single DenseFeatures layer with both of my embedding columns using the functional API, but that results in the same placement errors. For some reason not using the functional API fixes it.
A minimal example from my code that repros the problem reliably:
import tensorflow as tf

def create_model():
  test_input = tf.keras.Input(shape=(None,), dtype='string', name='test')
  test2_input = tf.keras.Input(shape=(None,), dtype='string', name='test2')
  feature_layer_inputs = {}
  feature_layer_inputs['test'] = test_input
  feature_layer_inputs['test2'] = test2_input

  vocab_list = ['This', 'That', 'Thing']
  feature_col = tf.feature_column.categorical_column_with_vocabulary_list(
      key='test', vocabulary_list=vocab_list,
      num_oov_buckets=0)
  embed_col = tf.feature_column.embedding_column(
      categorical_column=feature_col, dimension=4, combiner='mean')
  first_embed_layer = tf.keras.layers.DenseFeatures(
      feature_columns=[embed_col], name="first_embed_layer")

  second_vocab_list = ['a', 'b', 'c']
  feature_col_two = tf.feature_column.categorical_column_with_vocabulary_list(
      key='test2', vocabulary_list=second_vocab_list,
      num_oov_buckets=0)
  embed_col_two = tf.feature_column.embedding_column(
      categorical_column=feature_col_two, dimension=4, combiner='mean')
  second_embed_layer = tf.keras.layers.DenseFeatures(
      feature_columns=[embed_col_two], name="second_embed_layer")

  x = first_embed_layer(feature_layer_inputs)
  y = second_embed_layer(feature_layer_inputs)
  x = tf.keras.layers.concatenate([x, y])

  hidden_layer = tf.keras.layers.Dense(units=35, use_bias=False,
      name="user-embeddings-layer")(x)

  model = tf.keras.Model(
    inputs=[v for v in feature_layer_inputs.values()],
    outputs=[hidden_layer]
  )

  model.compile(optimizer=tf.keras.optimizers.Adagrad(lr=.01),
                # loss=loss_func,
                loss="sparse_categorical_crossentropy",
                metrics=['accuracy'])
  return model

in_tensor = tf.constant(['This', 'That'])
other_tensor = tf.constant(['a', 'b'])

features = {
  'test': in_tensor,
  'test2': other_tensor,
}
y = tf.constant([1, 2])

model = create_model()
history = model.fit(x=features, y=y,
                    epochs=10, shuffle=False,
                    batch_size=1,
                    verbose=1,
                    callbacks=[])

@rosssketchup
I am able to replicate this issue on GPU, please find the gist here, i do not observe any slowness when GPU is not used.

It won't be slow with that toy data, but I don't think I'd want to run my full dataset with a CPU.
Updating what I said in the bug, I actually can't get my own code to work with the Sequential API. I get the same colocation errors, even though it seemed to work with the toy example above.
I also get: Layers in a Sequential model should only have a single input tensor, but we receive a <class 'dict'> input: Consider rewriting this model with the Functional API.
So I guess I really should be using the Functional API.

We are moving away from feature columns in favor of Keras Preprocessing Layers starting in 2.3

Good to know, so the proper way to do this would be using several instances of keras.layers.Embedding?
I liked the feature columns because dealing with combining/averaging and out of vocabulary values seemed easier. With raw keras, I have to use globalaveragepooling1d and manual masking. But if that's the proper way to go, then I'll switch to using that.
Thanks

Good to know, so the proper way to do this would be using several instances of keras.layers.Embedding?
I liked the feature columns because dealing with combining/averaging and out of vocabulary values seemed easier. With raw keras, I have to use globalaveragepooling1d and manual masking. But if that's the proper way to go, then I'll switch to using that.
Thanks

Yes that is the proper way. I think shared embedding column + keras doesn't work today?
Re manual masking -- if you're using ragged tensor, I think for many use cases you don't need masking at all

Ok great, and good point, I didn't even think of using Ragged Tensors. I'm using variable length string arrays as input, and you're right, Ragged Tensors would remove the need for masking.
I will give it a shot. I think we can close this issue as won't fix if the feature columns are being deprecated.
Thanks for the help.

Closing per comments above.


update CLI README

Main changes:

[x] add diagnostic command
[x] add state command
[x] fix typos

Codecov Report

Merging #1349 into master will decrease coverage by -1.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1349      +/-   ##
==========================================
- Coverage   70.13%   68.82%   -1.31%
==========================================
  Files         168      171       +3
  Lines       25163    26827    +1664
  Branches     3163     3369     +206
==========================================
+ Hits        17647    18464     +817
- Misses       6182     6939     +757
- Partials     1334     1424      +90

Impacted Files
Coverage Δ

src/core/thread/mesh_forwarder.cpp
75.52% <ø> (-0.47%)
:x:

src/core/thread/mle_router.cpp
79.47% <ø> (-0.17%)
:x:

third_party/mbedtls/repo/library/bignum.c
50.82% <ø> (-0.14%)
:x:

src/core/thread/mle.cpp
80.4% <ø> (-0.08%)
:x:

src/ncp/hdlc.cpp
76.34% <ø> (ø)

src/ncp/ncp_uart.cpp
85.13% <ø> (ø)

src/ncp/ncp_base.cpp
38.47% <ø> (ø)

src/core/thread/network_data_leader_ftd.cpp
68.24% <ø> (+0.23%)
:white_check_mark:

src/core/mac/mac.cpp
79.2% <ø> (+0.76%)
:white_check_mark:

src/ncp/ncp_buffer.cpp
96.56% <ø> (+0.85%)
:white_check_mark:

... and 3 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 0e81219...7a02f03. Read the comment docs.


Proxy Support

Had to keep adding proxy support when pulling down so might as well try to get it in master .  I use it for documenting the attempt  time and response in Burp/seeing status codes/troubleshooting.  Also needed it when target was not directly accessible.
Feel free to delete any extraneous spaces etc, sorry.

Hey, thanks. Will take a look shortly.


C++ code highlight anomaly

Seems like VS Code does not highlight correctly function calls which have "pthread_t" prefix in the name:
Examples:
pthread_threadid_np();
pthread_tfoo()
Screenshot:

Are you using any C++ extensions? Does the problem also happen if you launch with all extensions disabled? If not, please report the issue to the repository of the extension.

No C++ extension was installed, I also tried the latest insiders build with no extensions and default theme. The result is the same.
Version: 1.43.0-insider (system setup)
Commit: b0be0672c210f1fa76109ce675365bb785657e84
Date: 2020-02-26T05:30:24.470Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.16299

Moved to owning repo: https://github.com/jeff-hykin/cpp-textmate-grammar/issues/452


Add Ukrainian language support

Add Ukrainian language support.

Hi @click0
We use GPT-4mini to translate strings to all languages. Out script takes whole en.js and translate it to all languages.
What if I add Ukrainian to list of supported languages and you check result of GPT-4?

What if I add Ukrainian to list of supported languages

In my experience, the 1/5-1/10 phrase after AI requires correction.

and you check result of GPT-4?

Only if he will translate only new phrases or changes in existing ones.
In general - yes, I am ready to check.


Typos in default.nip

I would like to raise a PR for this, but I do not have permission.
There are more, but first one is:
[Name] == Chippedaamethyst > [Name] == Chippedamethyst

And necromancersummoningskilltab

It's open source anyone can make a pr for this. However you can let us know if theres more you find and we can review it.

Interesting, I wonder why I couldn't push:
(base) hutber@hutber:/var/www/botty$ git push --set-upstream origin fix-default.nip-typos
remote: Permission to aeon0/botty.git denied to hutber.
fatal: unable to access 'https://github.com/aeon0/botty.git/': The requested URL returned error: 403

You have to fork and create a new branch. You cant merge directly to master.

I know necromancersummoningskilltab is causing issues anywhere it is used on the default.nip, but what is the fix?

Resolving this ticket as it should be fixed in master


correcting the error SQLSTATE[HY000]: General error: 1 near "SHOW": syntax error (SQL: SHOW TABLES)

Hello everyone, my name is Jonatas and I'm new to this issue of contributions here at guithub, I found a problem with migration:
✗ php artisan drafts:migration blogs

   Illuminate\Database\QueryException

  SQLSTATE[HY000]: General error: 1 near "SHOW": syntax error (SQL: SHOW TABLES)

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
    667▕         // If an exception occurs when attempting to run a query, we'll format the error
    668▕         // message to include the bindings with SQL, which will make this exception a
    669▕         // lot more helpful to the developer instead of just the database's errors.
    670▕         catch (Exception $e) {
  ➜ 671▕             throw new QueryException(
    672▕                 $query, $this->prepareBindings($bindings), $e
    673▕             );
    674▕         }
    675▕

      +10 vendor frames
  11  /var/www/github/nova-drafts/src/Commands/CreateDraftsMigration.php:52
      Illuminate\Support\Facades\Facade::__callStatic()

  12  /var/www/github/nova-drafts/src/Commands/CreateDraftsMigration.php:36

For my development environment I am using sqlite, and I believe that this code snippet will fix this error, please evaluate if it is coherent, I will be waiting to be able to have my first contribution.
$schema = collect(DB::getDoctrineSchemaManager()->listTableNames())->map(function (string $item, int $key) {
    return $item;
});
return $schema->all();

the code I added was this, about the formatting of the file, if you think it is not necessary, without problems I will remove.

Resolved the confirmation myself and released v1.1.4.

@KasparRosin I apologize, I was going to do this, but I was very busy at work and with that I was unable to write this code, but thank you, I will send more contributions to the project.


Correction for raw affiliation CIRAD, UMR TETIS, Montpellier, France

Correction needed for raw affiliation CIRAD, UMR TETIS, Montpellier, France
raw_affiliation_name: CIRAD, UMR TETIS, Montpellier, France
new_rors: 05kpkpg04;0458hw939
previous_rors: 05kpkpg04
works_examples: W2069231303;W1497922424;W2798607458;W4372329842
contact: cd51fcb1a15ff45b20ba9b92a796ffed:b5b8a822035b1f2205aa443ca3af2a11d099 @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


project authors - delete

after providing a list of authors and saving the list, the user can not delete all the authors, at least one should stay, even if the project is still private.
Expected behavior is to be able to delete all the authors as long as the project is private.

Will be fixed as part of #521


#1681 fix

added null check when heron reads the config file

origin 1861 link
https://github.com/twitter/heron/issues/1681

👍

👍

Did you test it locally with null config-value? @huijunw

updated. tested.
For the null value in the map, there are 4 options:

put null there. exception thrown and test failed.
Neither protobuf nor heron definition allows null value config.
put "" there.
put "null".
The string semantic is inconsistant within heron during parsing process.
ignore that config entry.
The null value basically means the entry is not a meaningful config. A warning is logged.

Thanks for @maosongfu suggestion.

👍

Looks good to me. 👍


TEM2015 Test 02: Public Information Map Description missing spaces between words

The Description text for the Public Information Map, item 4bbe2b10e96c4bb59093496941bf80cf has several missing spaces between words.

Also missing a space in description of 6e2199d78cb4415db8a8b9105a12cccb  and 6e2199d78cb4415db8a8b9105a12cccb between "to" and "view".
Multiple similar issues in description of b03b5ec0ffeb45829844160c52781a3c.

Will not fix. These items are taken directly from the EM released content and not modified.


Request: be able to search the source code

One of the limitations of pdb (vs the Perl debugger for example) is to be able to search the source code/text of the file being debugged. For example, if I want to set a breakpoint at a specific line that has the variable say my_var, I would be able to do so by just typing something like:
 /my_var
and pdbr can jump to the first instance of my_var in the code.
Repeating the action with either /my_var or a simple /, would jump to the next occurrence of my_var, and loop back to the beginning of the file if needed.
What do you think?

Would be great. After reading your message I thought that we can use jump[https://docs.python.org/3/library/pdb.html#pdbcommand-jump] command with search argument instead integer. But jump is limited with the current frame.
Could you elaborate more what you mean instance? If you expect to check entire source of the current frame, we might have to jump the next-previous frames and i am not sure how it is done with a proper way.

I can traverse related lines of the current frame like below but i am not sure it is sufficient.

https://github.com/cansarigol/pdbr#search--src


Relative Pivot position support for GLTF

We have to manually set the pivot location for all meshes in GLTFs, to be the origin because their relative transforms are not being respected by Sceneform.
As seen below, everything that was displaced relative to each other is just put either at their "zero" positions or somewhere wrong.
Incorrect:

Correct: (After manual change in 3DS Max)

@khonakr - Thanks for the report and the workaround.  This will be fixed in our next release.

This is fixed in versions 1.3+ of Sceneform.


Update device shadow fails

Hi, Expert
I'm running a sample project with Amazon FreeRTOS.
I got a problem when update device shadow by updating LED status. If QoS=0, I will not receive Updated topic and lead to timeout, If QoS=1, i will not be able to publish. It seems the packet was not accept by AWS MQTT broker.
But it is always OK to update device shadow when I build a sensor packet.
They follow the same API, the only difference is the JSON document, but I can't see problem.
Check two SHADOW_Update() below
Thanks.
int buildJsonAccel()
{
    /* Read data from accelerometer */
    vector_t vec = {0};
    bool read_ok = false;
    read_mag_accel(&vec, &read_ok, g_accelResolution);
    if (read_ok == false)
    {
        return -1;
    }

    /* Convert raw data from accelerometer to acceleration range multiplied by 1000 (for range -2/+2 the values will be
     * in range -2000/+2000) */
    vec.A_x = (int16_t)((int32_t)vec.A_x * g_accelDataScale * 1000 / (1 << (g_accelResolution - 1)));
    vec.A_y = (int16_t)((int32_t)vec.A_y * g_accelDataScale * 1000 / (1 << (g_accelResolution - 1)));
    vec.A_z = (int16_t)((int32_t)vec.A_z * g_accelDataScale * 1000 / (1 << (g_accelResolution - 1)));

    char tmpBufAccel[128] = {0};
    sprintf(tmpBufAccel, "{\"accel\":{\"x\":%d,\"y\":%d,\"z\":%d}}", vec.A_x, vec.A_y, vec.A_z);

    int ret = 0;
    ret = snprintf(pcUpdateBuffer, shadowBUFFER_LENGTH,
                   "{\"state\":{"
                   "\"desired\":{"
                   "\"accelUpdate\":null"
                   "},"
                   "\"reported\":%s},"
                   "\"clientToken\": \"token-%d\""
                   "}",
                   tmpBufAccel, (int)xTaskGetTickCount());

    if (ret >= shadowBUFFER_LENGTH || ret < 0)
    {
        return -1;
    }
    else
    {
        return ret;
    }
}

/* Reports current state to shadow */
static uint32_t prvReportShadowJSON()
{
    memset(pcUpdateBuffer, 0, shadowBUFFER_LENGTH);
    return snprintf(pcUpdateBuffer, shadowBUFFER_LENGTH,
                    "{"
                    "\"state\":{"
                    "\"reported\":{"
                    "\"LEDstate\":%d"
                    "}"
                    "},"
                    "\"clientToken\": \"token-%d\""
                    "}",
                    ledState, (int)xTaskGetTickCount());
}

//  Received delta update from Apps, change LED or report sensor
...
 if (parsedLedState != ledState)
            {
                for (int i = 0; i < ledCount; i++)
                {
                    /* change from 0 to 1 */
                    if (((ledState & (1 << i)) == 0) && ((parsedLedState & (1 << i)) != 0))
                    {
                        /* turn on led */
                        configPRINTF(("Turn on %s\n", ledName[i]));
                        turnOnLed(i);
                    }

                    /* change from 1 to 0 */
                    if (((ledState & (1 << i)) != 0) && ((parsedLedState & (1 << i)) == 0))
                    {
                        /* turn off led */
                        configPRINTF(("Turn off %s\n", ledName[i]));
                        turnOffLed(i);
                    }
                }
                ledState = parsedLedState;

                /* update device shadow */
                xOperationParams.ulDataLength = prvReportShadowJSON();
                xReturn = SHADOW_Update(xClientHandle, &xOperationParams, shadowDemoTIMEOUT);
                if (xReturn == eShadowSuccess)
                {
                    configPRINTF(("Successfully performed update.\r\n"));
                }
                else
                {
                    configPRINTF(("Update failed, returned %d.\r\n", xReturn));
                }
            }
            if (parsedAccState == 1)
            {
                configPRINTF(("Update accelerometer.\r\n"));
                xOperationParams.ulDataLength = buildJsonAccel();
                xReturn = SHADOW_Update(xClientHandle, &xOperationParams, shadowDemoTIMEOUT);
                if (xReturn == eShadowSuccess)
                {
                    configPRINTF(("Successfully performed update.\r\n"));
                }
                else
                {
                    configPRINTF(("Update failed, returned %d.\r\n", xReturn));
                }
                parsedAccState = 0;
            }

I tried to reproduce your problem by writing some similar code but I could not reproduce it. Would you please share a minimal working code (i.e. standalone compilable) showing the problem you are facing so that we can help you solve it.
Thanks.

Sorry, it was caused by hardware, turn on led will turn off WiFi. Thanks for help


Some way to skip frames

E.g. grow frames, but have them not be visitable or exportable somehow

Ideally they'd both not show up when you advance next/prev in the webapp, but also not be exported. Might be as simple as having next/prev not resting on any frame with 'skip' set to true, unless it's the first or last frame. So the frame count in the URL (and all other machinery) looks the same, they're just not possible to access.

Also a way to disable a frame, to just entirely pretend like it doesn't exist, so it's easy to remove blocks while testing and debugging

The next/prev logic and current index should be encapsulated in the FrameCollection (but hmm ideally the state is actually stored in the redux store...

Call it hide, since it actually runs just isn't visible?


Import Error in Mask_R-CNN_demo

Hi! Facing this import error on running the mask_r-cnn_demo! I followed the instruction on Install.md as well.
ImportError                               Traceback (most recent call last)
 in
1 from maskrcnn_benchmark.config import cfg
----> 2 from predictor import COCODemo
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/demo/predictor.py in
4 from torchvision import transforms as T
5
----> 6 from maskrcnn_benchmark.modeling.detector import build_detection_model
7 from maskrcnn_benchmark.utils.checkpoint import DetectronCheckpointer
8 from maskrcnn_benchmark.structures.image_list import to_image_list
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/init.py in
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from .detectors import build_detection_model
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/detectors.py in
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from .generalized_rcnn import GeneralizedRCNN
3
4
5 _DETECTION_META_ARCHITECTURES = {"GeneralizedRCNN": GeneralizedRCNN}
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py in
9 from maskrcnn_benchmark.structures.image_list import to_image_list
10
---> 11 from ..backbone import build_backbone
12 from ..rpn.rpn import build_rpn
13 from ..roi_heads.roi_heads import build_roi_heads
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/modeling/backbone/init.py in
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from .backbone import build_backbone
3 from . import fbnet
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/modeling/backbone/backbone.py in
5
6 from maskrcnn_benchmark.modeling import registry
----> 7 from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform
8 from . import fpn as fpn_module
9 from . import resnet
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/modeling/make_layers.py in
8 from torch.nn import functional as F
9 from maskrcnn_benchmark.config import cfg
---> 10 from maskrcnn_benchmark.layers import Conv2d
11 from maskrcnn_benchmark.modeling.poolers import Pooler
12
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/layers/init.py in
7 from .misc import BatchNorm2d
8 from .misc import interpolate
----> 9 from .nms import nms
10 from .roi_align import ROIAlign
11 from .roi_align import roi_align
~/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/layers/nms.py in
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2 # from ._utils import _C
----> 3 from maskrcnn_benchmark import _C
4
5 nms = _C.nms
ImportError: /home/asif/PyTorch-Tutorial/maskrcnn_benchmark/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs

Hi,
This problem is caused when you compiled maskrcnn_benchmark using the different version of PyTorch.
Just rm -rf build and compile the code again. This should fix your problem.
Once it is done. You can run the following script to test the compiled module is loaded successfully or not.
import torch
import maskrcnn_benchmark._C

Thanks @chengyangfu for the reply.
The solution to this problem is exactly the one that was given by @chengyangfu .
I'm closing this issue but let us know if you still face problems

@chengyangfu @fmassa Thanks for the quick reply. I compiled this using Pytorch 1.0.1 version. Should I not compile using that version?

An update! Followed your instructions and it works fine! Thank You!

can u tell me which version of PyTorch I should use to compile?

@LLH1818  I used Pytorch 1.0.1 and it compiled fine!

ImportError                               Traceback (most recent call last)
 in ()
1 from maskrcnn_benchmark.config import cfg
----> 2 from predictor import COCODemo
~/maskrcnn-benchmark/demo/predictor.py in ()
4 from torchvision import transforms as T
5
----> 6 from maskrcnn_benchmark.modeling.detector import build_detection_model
7 from maskrcnn_benchmark.utils.checkpoint import DetectronCheckpointer
8 from maskrcnn_benchmark.structures.image_list import to_image_list
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/modeling/detector/init.py in ()
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from .detectors import build_detection_model
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/modeling/detector/detectors.py in ()
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from .generalized_rcnn import GeneralizedRCNN
3
4
5 _DETECTION_META_ARCHITECTURES = {"GeneralizedRCNN": GeneralizedRCNN}
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py in ()
9 from maskrcnn_benchmark.structures.image_list import to_image_list
10
---> 11 from ..backbone import build_backbone
12 from ..rpn.rpn import build_rpn
13 from ..roi_heads.roi_heads import build_roi_heads
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/modeling/backbone/init.py in ()
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from .backbone import build_backbone
3 from . import fbnet
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/modeling/backbone/backbone.py in ()
5
6 from maskrcnn_benchmark.modeling import registry
----> 7 from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform
8 from . import fpn as fpn_module
9 from . import resnet
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/modeling/make_layers.py in ()
8 from torch.nn import functional as F
9 from maskrcnn_benchmark.config import cfg
---> 10 from maskrcnn_benchmark.layers import Conv2d
11 from maskrcnn_benchmark.modeling.poolers import Pooler
12
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/layers/init.py in ()
7 from .misc import BatchNorm2d
8 from .misc import interpolate
----> 9 from .nms import nms
10 from .roi_align import ROIAlign
11 from .roi_align import roi_align
~/maskrcnn-benchmark/demo/maskrcnn_benchmark/layers/nms.py in ()
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2 # from ._utils import _C
----> 3 from maskrcnn_benchmark import _C
4
5 nms = _C.nms
ImportError: cannot import name '_C'
I don't know how to solve this

@13012476909 Have you fixed it？Meet the same error.

@chengyangfu I don't understand how  simple rm -f can solve the problem. When I downloaded the folder, I followed Install.md instructions and compiled: python setup.py build develop. I don't understand how deleting build and doing the same thing again will solve the problem. However, I did it and still face the same problem as @Asif6511. I don't understand what I am supposed to do. Can someone help me please ?

The problem was caused by compiling and running the code in different versions of PyTorch.
Check the PyTorch in your system first and make sure you are using the "same" PyTorch for compiling and running the code. So the command rm -f  is only for deleting the old compiled binary.

@chengyangfu Thank you very much for answering. I am using Pytorch 1.0.1. I know that in install.md it says that this version should not work, however, many people like @Asif6511 have done the same and found out that it works. I unfortunately can't find the problem...

Hi @M-Alami ,
I also use PyTorch 1.0 or PyTorch.1.0.1. Both versions work for me. But I install PyTorch by compiling the source code instead of using the precompiled binary.
In order to run the code, I would suggest you just updated the PyTorch to the suggested version. That would be an easier way. Besides, are you using the conda or Virtualenv to create a virtual python environment? If not, please try conda or Virtualenv, it would save a lot of problems.

Thanks @chengyangfu for all your answers. I finally managed to make it work. I used pytorch 1.2.0.dev20190620 and cuda '10.0.130'.

I rebuilt the apex and the maskrcnn-benchmark,and it worked.I am using pytorch1.2.0 ,cuda10.0.


Recreate option for Stacks (with pull)

Is your feature request related to a problem? Please describe.
Containers have a "Recreate" button, with the option to pull new images.
Stacks should have the same.
(i.e. the equivalent of running docker-compose pull && docker-compose up -d)
Describe the solution you'd like
Add a Recreate button to the Stack screen, operating the same as the Recreate button on the Container screen.
Describe alternatives you've considered
It is possible to do this on each individual container, but this could lead to inconsistency and broken dependencies etc.
Additional context
Would also be nice if this was a bulk option (same applies to container recreate as well).

Hi, this request seems to be similar to https://github.com/portainer/portainer/issues/4977.

Yes possibly similar - but the stack update option implies a change to the stack configuration, and doesn't do anything if it hasn't changed (which is good).
Also for consistency with the containers I think "Recreate" is more accurate and intuitive.


Colonies gain independence

And supposedly they shouldn't. Save here: https://steamcommunity.com/sharedfiles/filedetails/?id=1747850243

Link for this goes to inspector's civ mod. Is there a better source to investigate? Otherwise we can probably close until needed again.

I don't think there is.


[bug] bundleresources is not working for Android

Describe the bug
It won't bundle the resources specified in the bundleresources config for Android (yarn tauri android dev). Does this option apply to Android?
"bundle": {
    "resources": [
        "resources/*"
    ]
}

Reproduction
No response
Expected behavior
No response
Full tauri info output
[✔] Environment
    - OS: Windows 10.0.22000 X64
    ✔ WebView2: 121.0.2277.128
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.71.0 (8ede3aae2 2023-07-12)
    ✔ cargo: 1.71.0 (cfd3bbd8f 2023-06-08)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.16.0
    - yarn: 1.22.19
    - npm: 9.5.1

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.21
    - tauri-build [RUST]: 2.0.0-alpha.14
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.24.0
    - tauri-cli [RUST]: 1.3.1
    - @tauri-apps/api [NPM]: 2.0.0-alpha.13
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.20

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace
No response
Additional context
No response

I am having the same issue.

I am using this for a school project. I found a workaround. By making a zip file in the build.r.s Then extracting the files if needed. I know it isn't the best option. However, this is a small school project.

@wyatt-herkamp FYI. I just follow android doc and handle the files with an android plugin.

I had the same issue and decided to move towards using this library https://github.com/pyrossh/rust-embed. It works very well and simplifies a lot the data management.


Use *url.URL instead of string in request.go

Fixes https://github.com/knative/serving/issues/5419 - Part I
See corresponding knative.dev/serving change: https://github.com/knative/serving/pull/5503
/hold

/hold cancel

/assign @vaikas-google

/assign @mattmoor

/approve
/hold
This change is breaking, and so we should wait until after the downstream repos are picking up changes again before landing it, and stage changes to import this into repos that it breaks.

@mattmoor, the corresponding knative.dev/serving is https://github.com/knative/serving/pull/5503.
These methods are not used in knative.dev/eventing.
Do you I something do something else?

@JRBANCEL no, that's the usual routine, but serving is parked on the knative/pkg release-0.9 branch until tomorrow morning.  I left a couple comments on the serving PR, but once that's ready then this is good to go, I just want to minimize the amount of downtime due to breaking changes here.

https://github.com/knative/serving/pull/5503 tests are passing.
/hold cancel


Implement Minestom Platform

I am running a few Minestom servers and I really wanted to enable them to work with PlasmoVoice.  I saw that someone had asked for this a few months ago but it was decided not to do this.
IMO this project does a great job at abstracting away everything so it was really easy for me to jump in and port it myself. Awesome work really!
I don't know whether you want to support the platform or not, but I'd like to at least offer the result of my work back to the plasmo voice project! I think it would make a great addition to the already wide coverage.
I have tested this on a server and it seems to work as expected. The Minestom API is not that wildly different from Bukkit after all.
If you decide to accept this, I will also open a PR in the PlasmoVoice repository for the loader.

Server Logs:
➜  minecraft-server git:(main) ✗ java -jar lobby-server/build/libs/lobby-server-all.jar
SLF4J(I): Connected with provider of type [org.slf4j.simple.SimpleServiceProvider]
[main] INFO co.infinytum.minestom.infinilink.InfiniLinkManager - InfiniLink is not configured and will be disabled.
Preparing spawn area... (1/16)
Preparing spawn area... (2/16)
Preparing spawn area... (3/16)
Preparing spawn area... (4/16)
Preparing spawn area... (5/16)
Preparing spawn area... (6/16)
Preparing spawn area... (7/16)
Preparing spawn area... (8/16)
Preparing spawn area... (9/16)
[ForkJoinPool.commonPool-worker-4] WARN net.minestom.server.instance.block.BlockManager - Block minecraft:beacon does not have any corresponding handler, default to dummy.
You may want to register a handler for this namespace to prevent any data loss.
Preparing spawn area... (10/16)
Preparing spawn area... (11/16)
Preparing spawn area... (12/16)
Preparing spawn area... (13/16)
Preparing spawn area... (14/16)
Preparing spawn area... (15/16)
Preparing spawn area... (16/16)
[main] INFO PlasmoVoice - UDP server is started on /[0:0:0:0:0:0:0:0]:25565
[main] INFO net.minestom.server.command.ConsoleSender - §b       §3 __
[main] INFO net.minestom.server.command.ConsoleSender - §b  |    §3|__)   §2LuckPerms§r §bv5.4.0
[main] INFO net.minestom.server.command.ConsoleSender - §b  |___ §3|      §8Running on Minestom - InfiniMC
[main] INFO net.minestom.server.command.ConsoleSender -
[main] INFO luckperms - Loading configuration...
[main] INFO luckperms - Loading storage provider... [JSON]
[main] INFO luckperms - Loading internal permission managers...
[main] INFO luckperms - Performing initial data load...
[main] INFO luckperms - Successfully enabled. (took 255ms)
[main] INFO net.minestom.server.ServerProcessImpl - Starting InfiniMC server.
[main] INFO net.minestom.server.ServerProcessImpl - InfiniMC server started successfully.
[Ms-TickScheduler] INFO PlasmoVoice - Sent player info request packet to NilaTheDragon
[Ms-TickScheduler] INFO PlasmoVoice - Sent connection packet to NilaTheDragon
[defaultEventExecutorGroup-3-1] INFO PlasmoVoice - Set remote address for NilaTheDragon from null to /<IP_ADDRESS>:65410
[defaultEventExecutorGroup-3-1] INFO PlasmoVoice - NilaTheDragon (/<IP_ADDRESS>:65410) connected
[defaultEventExecutorGroup-3-1] INFO PlasmoVoice - Sent ConfigPacket(serverId=db1f3e8b-66e5-4ff1-abea-7d0918086d5f, captureInfo=CaptureInfo(sampleRate=48000, mtuSize=1024, encoderInfo=CodecInfo(name=opus, params={mode=VOIP, bitrate=-1000})), encryption=EncryptionInfo(algorithm=AES/CBC/PKCS5Padding, data=[<redacted>]), sourceLines=[VoiceSourceLine(id=d9392647-f6b2-332d-9adf-30a6400828d6, name=proximity, translation=pv.activation.proximity, icon=plasmovoice:textures/icons/speaker.png, defaultVolume=1.0, weight=1, players=null)], activations=[VoiceActivation(id=4aec07ba-d109-3345-9a0a-92022a116cd0, name=proximity, translation=pv.activation.proximity, icon=plasmovoice:textures/icons/microphone.png, distances=[8, 16, 32], defaultDistance=16, proximity=true, transitive=true, stereoSupported=false, encoderInfo=Optional.empty, weight=1)]) to NilaTheDragon
[Ms-Tick-0] INFO PlasmoVoice - NilaTheDragon disconnected

In-Game Screenshot

Thanks for contributing to the project! I'm looking forward for a PR to the Plasmo Voice.


dispatch event click node event

Want to dispatch a click node event, when clicked from outside the graph(from a list of node labels).

Is this supported

What all information needs to be dispatched (as part of fakeNode).
Trying it using the following code snippet
foundNode = sigma_obj.graph.nodes(node_id);
if (foundNode !== null) {
// create fake data object
var fakeData = {
node: foundNode,
};
// dispatch event
sigma_obj.dispatchEvent('clickNode', fakeData);

Have binded(bound)  the clicknode event too, hence I know for sure, that the click node event is dispatched.
However, the label is not shown, which is shown when the node in the graph is actually clicked, that is the default clickNode behavior is not invoked.
Thanks
Renu

i'm also waiting for this answer
:+1:

My understanding is that the label is shown on hover rather than click. I've looked at the source code for hovering and I know that label display is definitely shown there, though I can't say whether or not the same code is available in click.
Regardless, it sounds like you need to be dispatching the event to the renderer rather than the sigma object. I posted an example of triggering node hovers in https://github.com/jacomyal/sigma.js/issues/448 that might be adaptable for this purpose. Modifying the provided code:
foundNode = sigma_obj.graph.nodes(node_id);
if (foundNode !== null) {
  // create fake data object
  var fakeData = {
    node: foundNode,
};
// dispatch event to renderer
// jasontschool: assuming there's only one renderer. If not, you'll need to have a reference to the right renderer (see the issue I linked)
sigma_obj.renderers[0].dispatchEvent('clickNode', fakeData);


feat: improve support for verification material

Support bot blockchainAccountID and pubKeyHex
Also implements a better management of the verification material such that it can be used by third party components.
Specifically a did created using the cli lke
{
  "didDocument": {
    "context": [
      "https://www.w3.org/ns/did/v1"
    ],
    "id": "did:cosmos:cash:123456789",
    "controller": [],
    "verificationMethods": [
      {
        "id": "did:cosmos:cash:123456789#cosmos18pvst9kycwd5zmhwvk734tk0nch5f3u9cu4vfc",
        "type": "EcdsaSecp256k1RecoveryMethod2020",
        "controller": "did:cosmos:cash:123456789",
        "publicKeyHex": "03cc017f83489ad096d25a936a0b9d894a00218471a1b8ed267f54fc7ca5cf8c87"
      }
    ],
    "services": [],
    "authentication": [
      "did:cosmos:cash:123456789#cosmos18pvst9kycwd5zmhwvk734tk0nch5f3u9cu4vfc"
    ],
    "assertionMethod": [],
    "keyAgreement": [],
    "capabilityInvocation": [],
    "capabilityDelegation": []
  },
  "didMetadata": {
    "versionId": "1456cf05d4a2f3471bd5a92e7d09a608796c8155942e54422356d12e920eaab4",
    "created": "2021-08-12T20:33:30.375497253Z",
    "updated": "2021-08-12T20:33:30.375497253Z",
    "deactivated": false
  }
}

while an account address (in case of controllers) resolves to:
{
  "didDocument": {
    "context": [
      "https://www.w3.org/ns/did/v1"
    ],
    "id": "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh",
    "controller": [],
    "verificationMethods": [
      {
        "id": "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh#cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh",
        "type": "CosmosAccountAddress",
        "controller": "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh",
        "blockchainAccountID": "cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh"
      }
    ],
    "services": [],
    "authentication": [
      "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh#cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh"
    ],
    "assertionMethod": [
      "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh#cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh"
    ],
    "keyAgreement": [
      "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh#cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh"
    ],
    "capabilityInvocation": [
      "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh#cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh"
    ],
    "capabilityDelegation": [
      "did:cosmos:key:cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh#cosmos17km4mldepzm4xxc50wv24ygrumtmskrd8f4tfh"
    ]
  },
  "didMetadata": {
    "versionId": "29bff1f0488f56db53fcf8a886b41ba441fd7c54096685bd6c7c1eb85c343214",
    "created": "2021-08-12T21:16:57.244349013Z",
    "updated": "2021-08-12T21:16:57.244349013Z",
    "deactivated": false
  }
}

Great work, works really well, but I found one issue!
I created a PR into this PR with a fix, please review and lmk if you think that's ok?
https://github.com/allinbits/cosmos-cash/pull/196
Will update that PR shortly to fix the FIXME outlined in the code! :smile:

Sorry my original comment was correct :sweat_smile:


no implicit conversion of String into Integer (TypeError)

##################
I attempted the same install on an OS X El Capitan Version 10.11.3 as well as on a Parallels Desktop running Windows 10 Enterprise Version 10.0.10240 Build 10240 and I am getting the same error message when running.
##################
Step 1
brew install ruby
—version 2.3.0 installed
Step 2
brew install imagemagick
—version 6.9.3-0_1 installed
Step 3
brew install homebrew/versions/phantomjs192
—version 1.9.2 installed
—attempted to install version 1.9.8 but get a warning message “phantomjs198: This formula either does not compile or function as expected on OS X versions newer than Yosemite due to an upstream incompatibility.”
Step 4
sudo gem install wraith
—version 3.1.2 installed
Step 5
ran wraith setup in folder Test2
##################
up until this point, it appears everything is installed successfully
I have made no changes to the provided config.yam file
when running the capture mode, I am getting the below error.  Does this have anything to do with the versions I am running.
##################
wraith capture configs/config.yaml
/usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:172:in []': no implicit conversion of String into Integer (TypeError) 	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:172:in verbose'
from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:11:in initialize' 	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/validate.rb:10:in new'
from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/validate.rb:10:in initialize' 	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:132:in new'
from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:132:in block in capture' 	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:28:in within_acceptable_limits'
from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:131:in capture' 	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run'
from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' 	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch'
from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' 	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/bin/wraith:5:in <top (required)>'
from /usr/local/bin/wraith:23:in load' 	from /usr/local/bin/wraith:23:in '
##################
capture.yam file contains:
browser: "phantomjs"
domains:
current:  "http://www.example.com"
new:      "http://develop.example.com"
paths:
home:     /
about:    /about
contact:  /get-in-touch
screen_widths:

320
600x768
768
1024
1280
before_capture: 'javascript/disable_javascript--phantom.js'
directory: 'shots'
fuzz: '20%'
threshold: 5
gallery:
template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
thumb_width:  200
thumb_height: 200
mode: diffs_first
##################

Hi @sumaoang, could you paste the contents of your YAML file inside backticks as per GitHub markdown so we can see the contents properly formatted? It's very difficult to debug otherwise.
Could you also add verbose: true to your config file, and then just run wraith validate configs/config.yaml and copy and paste the output (again, ideally in backticks) so we can help diagnose the issue.
Thanks

Thank you Chris. The contents of the config.yaml file:
'browser: "phantomjs"
domains:
  current:  "http://www.hudl.com"
  new:      "http://www.hudl.com"
paths:
  home:     /
screen_widths:
  - 320
  - 600x768
  - 768
  - 1024
  - 1280
before_capture: 'javascript/disable_javascript--phantom.js'
directory: 'shots'
fuzz: '20%'
threshold: 5
gallery:
  template: 'slideshow_template'
  thumb_width:  200
  thumb_height: 200
mode: diffs_first
verbose: true'

And the output:
ssumaoang16m:TEST2 shannon.sumaoang$ wraith capture configs/config.yaml
/usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:172:in `[]': no implicit conversion of String into Integer (TypeError)
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:172:in `verbose'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:11:in `initialize'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/validate.rb:10:in `new'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/validate.rb:10:in `initialize'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:132:in `new'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:132:in `block in capture'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:28:in `within_acceptable_limits'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:131:in `capture'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/bin/wraith:5:in `<top (required)>'
	from /usr/local/bin/wraith:23:in `load'
	from /usr/local/bin/wraith:23:in `<main>'
ssumaoang16m:TEST2 shannon.sumaoang$

Thanks, can you paste the output of wraith validate configs/config.yaml (not wraith capture).
Also, copy and paste your YAML into http://codebeautify.org/yaml-validator and see if it validates. It looks like you've got an extra ' character at the beginning where you shouldn't, but that may just be how you copied and pasted it here.

My bad.  Looks like no difference. The yaml-validator returns "Valid YAML"
ssumaoang16m:TEST2 shannon.sumaoang$ wraith validate configs/config.yaml
/usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:172:in `[]': no implicit conversion of String into Integer (TypeError)
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:172:in `verbose'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/wraith.rb:11:in `initialize'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/validate.rb:10:in `new'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/validate.rb:10:in `initialize'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:48:in `new'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:48:in `block in validate'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:28:in `within_acceptable_limits'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/lib/wraith/cli.rb:47:in `validate'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
	from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
	from /usr/local/lib/ruby/gems/2.3.0/gems/wraith-3.1.2/bin/wraith:5:in `<top (required)>'
	from /usr/local/bin/wraith:23:in `load'
	from /usr/local/bin/wraith:23:in `<main>'
ssumaoang16m:TEST2 shannon.sumaoang$

Chris please ignore this issue.  This is a silly/stupid mistake on my part.  It is a misspelled file name so not a problem at all with Wraith.
Was typing in: wraith validate configs/config.yaml
When I should have been typing wraith validate configs/configS.yaml
My apologies. I will close this issue.

Thanks for keeping us informed. Nevertheless, you should have had a more helpful error message than the one you had! I'll make a mental note to double check that Wraith produces a proper error message if it cannot find the config file.

For fix this issue, need:
Edited .bash_profile
added
export PATH=/Users/MyAccName/.rvm/gems/ruby-2.3.0/bin/wraith:$PATH


Gem update stuck

I discovered this after an update of fastlane on my Travis builds got stuck and the build would timeout.
I tried it locally and I can reproduce it as well (so it's not Travis' problem)
When I issue the command gem update fastlane, It starts fetching and installing gems but after a while it gets stuck at this point:
…
Parsing documentation for retriable-2.1.0
Installing ri documentation for retriable-2.1.0
Installing darkfish documentation for retriable-2.1.0
Parsing documentation for google-api-client-0.9.2
Installing ri documentation for google-api-client-0.9.2
Installing darkfish documentation for google-api-client-0.9.2

and then nothing happens. The thing is, I don't even pretend to upload anything to Google Play Store (if that is what the gem is for, I don't even know). Or perhaps it is unrelated and that is just the last gem installed before it breaks?
If I ^C out of the gem update command and try again, then it says 'nothing to update'. But I can't do that on Travis, so I'd like to know how to avoid that in the future.

I encountered this too. I was on 1.59.0 and it happened when updating to 1.62.0.

I encountered this too and was about to post here but it completed as I was typing this. I don't know what took so long though.

Im going to close this issue as this was likely an issue with ruby gems. gem update is unfortunately not something in our control :(.


Add The Output of Spring (Auto) Rest Docs to Springfox

Feature Request: Add The Output of Spring (Auto) Rest Docs to Springfox

The following Projects are really useful to provide a complete API Documenation:

https://spring.io/projects/spring-restdocs
https://github.com/ScaCap/spring-auto-restdocs
It's picking up JavaDoc/KDOc, Integration Tests and outputting Snippets that are generated.

I love Swagger/OpenAPI as an API Specification Language

I don't like Swagger Annotations in my Code. Also if you use both tools, you would need to duplicate the Documentation

Goal: Pickup spring-(auto)-restdocs Snippets in Springfox

That is a great idea, I love rest-docs. Unfortunately Im thinking its going to be a little harder to correlate the endpoints in restdocs with your request mappings. Plus reactive spring will pose some different challenges. There is another option to use java docs

Thanks for the hint to https://github.com/springfox/springfox-javadoc
I didn't knew that option exists, will try that.
Spring Rest Docs generates the *.json Output according to the Class/Object names, so the mapping should not be so hard.
But if it's already possible the add the javadoc to the swagger-spec, the most important step is done.


[KeyVault]  updating secret, key and certificate commands to take 'id' argument

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

View a preview at https://prompt.ws/r/Azure/azure-cli/6146
This is an experimental preview for @microsoft users.

Also, to fix CI, get the latest from dev branch (i.e. this commit - https://github.com/Azure/azure-cli/commit/e9d8d7ccb8b102b2aad09527309010358a4516c2)

@tjprescott yes this fixes #3499, but we should probably leave it open until these changes are merged back into dev.


Position control with Ignition Fortress

Hi,
this is my first contribution to ROS2. So please forgive me if I have made any mistakes.
I have tried to run ros2 launch ur_simulation_ignition ur_sim_moveit.launch.py, but it did not work. The following command is working in my setup with the following code changes.
My setup
ROS2 version: Galactic
Ignition version: Fortress
Moveit2 version: Binary install for ROS2 Galactic
Command
Example command to launch Moveit and Ignition with UR5e model:
ros2 launch ur_simulation_ignition ur_sim_moveit.launch.py ur_type:=ur5e
Code changes

ur_moveit.launch.py  was added from ur_bringup, because there is no launch file with this name in the ur_moveit_config and to set use_sim_time=True in the parameters of the move_group_node. I am not sure why this package was changed in #1
update_rate in ur_controllers.yaml was set to 1000 Hz to get rid of Ignition warning: "Desired controller update period (0.002 s) is slower than the gazebo simulation period (0.001 s).".
Position control with ign_ros2_control only works with the galactic branch (see bug fix #29).
delay_rviz_after_joint_state_broadcaster_spawner in ur_sim_control.launch.py caused the launching of 2 RVIZ windows. So I have removed it.

Output

Hi @destogl, what do you think about my last commits and comments? Are further adjustments required?


Reorder facets in the Facet search setting page

#1337
Checklist

[x] the [contributor license agreement] is signed
[x] commit message follows [commit guidelines]
[ ] tests are included
[ ] screenshots are included showing significant UI changes
[ ] documentation is changed or added

Description of change
The way to implement this feature is to use a plugin called react-beautiful-dnd. Basically, put the MUI List inside a Droppable and wrap each MUI ListItem by a Draggable.
What's more important is updating the order indexes of facets when a drag and drop is triggered. Please see code comments for more details.
Also, this PR ensures order indexes are properly updated when a facet is deleted.
Please note that a warning will be given in the Jest test caused by react-beautiful-dnd.  There are discussions around it (https://github.com/atlassian/react-beautiful-dnd/issues/1593) . This issue may be a bug of this plugin.

For tests, I have been thinking for a while.  I feel we need an integration test for this feature but not a Jest, because testing drag and drop is basically testing the plugin.


Match readme

修复dssm和simnet链接问题

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: yinhaofeng:x: rootroot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Update LRUCache to TTLCache #134

Update the LRUCache to a TTLCache to avoid GStreamer Forbidden errors

This is to address https://github.com/natumbri/mopidy-youtube/issues/134. I have tried running with this the past couple of days and it seems like the issue is gone now. I don't know exactly how long the cached URL is valid so the TTL may need to be adjusted accordingly.


Add puma as a dependency

This was removed from the standard lib in ruby 3. It's required for the preview app.

Thanks @kevindew  - yup I've spun it up locally. Kind of fortuitous timing as I'm looking at CD for content schemas and feel like at least a cursory check that this can be spun up as part of our test suite would be worth it.


Struct defined in yaml uses map

In GitLab by @ksiero on Jan 26, 2021, 10:18
Struct defined in yaml uses map. It must use a list to be sure the correct order of members are read.

In GitLab by @ksiero on Feb 26, 2021, 10:47
mentioned in commit 41ad98e0132b3a6df35a99228cd8ecac0ffcd2ad

In GitLab by @ksiero on Feb 11, 2021, 11:52
mentioned in commit 4b6ba30892a462b4f8cb36bf4932a07eb8c8e0e0

In GitLab by @ksiero on Feb 24, 2021, 16:17
mentioned in commit 5c9d78be640f38332ff0d4a3ddb0871a1aea1b9a

In GitLab by @ksiero on Feb 26, 2021, 12:17
mentioned in commit e77b05239785afe034836d065758017e40fee2ad

In GitLab by @ksiero on Feb 26, 2021, 11:12
mentioned in commit f9f0d937524e561e2d60e764f559644517786607


Nginx.conf

set configuration of Nginx as the webserver.
HTTPS, localhost, /login, /register

fixed, nginx proxy pass


Is it possible without gazebo and rviz simulation to run vehicle directly through OpenTCS

Hi Nielstiben,  I have followed your you tube and documentation but AGV and openTcs working according to gazebo simulation. Is it possible without gazebo and rviz simulation to run real AGV. if yes then how to do?

Hello akashpawar9595,
Yes, this is possible. In fact, that was the purpose of the development of this driver. I choose the Simulation as a starting point because everyone can play around with it, regardless if you actually own a robot. I don't own robots and the use of a simulation makes development much easier.
Gazebo is primarily for vehicle simulation and can be replaced with a 'real' robot. RVIZ is used for navigation and SLAM and is a very useful tool for monitoring, it's not only useful for the simulation but also for real robots (see here). But to give an answer to your question, you don't need RVIZ for operating robots with OpenTCS Nena.
As long as your host PC (that runs OpenTCS-NeNa) can connect to the AGV, it should work. Regardless to say, the namespace and domain ID should match on the vehicle-side and host-PC-side. These parameters can be set in the KernelControlCenter.

Thanks a lot for quick response...!


Add support for send-template endpoint

when sending an email using a template we need to hit a different endpoint /messages/send-template.json also we need to specify a template_content for the sending template and that is obligatory but can be blank.
closes #174

@stevedomin done :)

Thanks for the PR @sescobb27!

@sescobb27 released in 0.12 FYI


Custom environments based on user groups

Depending on a users group they should be able to access different environments (sudo access, more mem / cpu) This allows us to manage shortlisted users with the public on the same cluster.

This is done now


Deleting the prev key only if deleted in db

...Or was that actually intended behaviour?

This is a bit safer, for sure :) The existing code relies on us using memdown as db.del is synchronous.  If we ever need to change that assumption we'll have to update a few other things too.
At this point I think we might actually get rid of _eventKeys altogether and just use the single memdown. Want to have a go at making that update?

Got it. Sure will do that update.


Implement sentiment analysis. (UPDATED)

Blog post contents now read from separate .txt files, which are processed with sentiment analysis. Font colours are changed if significant positivity (green) or negativity (red) is found. Next steps would be to read entire blog posts (title and date included) from .txt, and analyzing files line by line (averaged sentiment is usually neutral), and adding this feature to the comments as well.

Made commits regarding .gitignore before merging. Was stuck for a bit due to it not seeming to work, but resolved it with this fix: https://stackoverflow.com/a/25436481

Made commits regarding .gitignore before merging. Was stuck for a bit due to it not seeming to work, but resolved it with this fix: https://stackoverflow.com/a/25436481
git status now shows the following:

ah, nice find! Can confirm that I don't see the file in the list of committed files


Organise Imports on JavaScript React removes needed imports

VSCode Version: 1.23.1
OS Version: 1.23.1

On some of my project files the imports will be removed when I use the newly added feature "Organize imports'.
All of the removed objects are only used in objects.
Steps to Reproduce:

Create a file with the content

import data from '../data/array.js'

export default { data }

Use the Organize imports feature
The file will now contain the following code

export default { data }

Does this issue occur when all extensions are disabled?: Yes

I've checked the linked issues and #47310 seems to be the most relevant issue, but the removal tracked there only happens on aliased imports.
This issue happens regardless of whether there is an alias or not.


Home Assistant full unresponsive a soon as v1.4.3 installed and used

As soon as version v1.4.3 via HACS is installed and configured in configuration.yaml my entire home assistant is unresponsive. As soon as I delete the config and uninstall via hacs it comes back to normal.
If installed and configured I see the CPU of HA (via Glances) going to almost 100% (always 89.1%) where user cpu is 78.8 and  system 10.2.
something is definitely VERY WRONG here
If configured in the first few minutes it works well and even the TV responds to some commands, but they take very long time to "reach" the TV.
My config:
media_player:

platform: samsungtv_tizen
host: 192.168.1.x
port: 8002
mac: xxx

i see these errors in logging:
2020-03-08 14:03:28 ERROR (MainThread) [custom_components.samsungtv_tizen.media_player] Unsupported media type

This doesn't make much sense, did any previous version work better?
The only way a simple component such as this can freeze HA and increase CPU so much is if it goes in an infinite loop, and I don't see how that could happen, but it wouldn't be the first time I would be surprised.
You should try setting the app_list value, it may be what's causing ur issues.

How to set that app_list and why could it cause an issue?

how to set that app_list

Read the docs: https://github.com/jaruba/ha-samsungtv-tizen/blob/master/README.md

why could it cause an issue?

Because if u don't set it, it tries to get the app_list from the TV. The only way an infinite loop can happen is within repeating logic. There is a for loop that iterates the app_list, so maybe that fails somehow. It's a far fetched scenario, but I can't think of a different scenario yet.

As soon as I install via HACS the pugin, HA is slower and unresponsive after a while with high user cpu load. First I thought is was due to update to hassos 3.12 but that seems unrelated. I always had some issue with a slow starting system and lots of errors, but as soon as I uninstall this addon all that is gone!? (-sorry-)
I also added the list to try, no difference:

Only uncommenting the configuration.yaml does not help, only full uninstall via hacs does.
Some info:

Happy to provide more info.

From what you're saying, this component simply cannot be at fault for your issues. And I'll tell you why.

Only uncommenting the configuration.yaml does not help, only full uninstall via hacs does.

If you don't set a config for the component, the code of the component is not ran AT ALL, and if you add 2 configs (for 2 TVs) then this component WILL RUN TWICE. So if you still have issues when you remove the config, then it simply cannot be because of this component.
The warnings you posted are absolutely normal, you will get those warning for ANY component installed from HACS (or manually).
Furthermore, there are many many users that use this component, and you're the only one with CPU load issues and HA getting slow / frozen.
If you want my opinion, then your issues are either from:

a bad HA setup (can be anything from bad hardware, what you installed in HA or even HA itself)
human error (you are misreading data and making wrong presumptions)

Whatever the case may be, at this point (after analysing everything you said) I am certain that this component cannot be at fault. As my responsibilities are to this component and nothing more, I cannot help you find the reason this is happening to you, as it's not this component that's causing issues for you.


Not initiating hyprlock

Hyprlock is not getting triggered if the listener time is more than ~40 not sure to be exact but fails to work on 100 and 240
general {
    lock_cmd = hyprlock
    unlock_cmd = killall -q -s SIGUSR1 hyprlock
    before_sleep_cmd = loginctl lock-session
    ignore_dbus_inhibit = false
}

listener {
    timeout = 240
    on-timeout = loginctl lock-session
}

listener {
    timeout = 300
    on-timeout = sleep 1 && hyprctl dispatch dpms off
    on-resume = sleep 1 && hyprctl dispatch dpms on
}

listener {
    timeout = 420
    on-timeout = systemctl suspend
}

# vim: commentstring=#\ %s

if lock timeout is 10 then it works.
but fails if the timeout is 240. (Suspend works, DPMS works but locking does not work)

I found a workaround wherever I call hyprlock i will call pidof hyprlock || hyprlock or just install hyprlock-git
source


WFLY-14988 Inside clustering remove unnecessary unboxing to clean code

Issue: https://issues.redhat.com/browse/WFLY-14988

@pferraro please take a look once you get back.

@pferraro can you please review this :)


Create assets in build.rs

What would be the best way to include those generated files. I tried:

directly generate into dist/public - but this results in the file not being included at all
generate into public - this works, but it gets into an infinite loop, because the file creation triggers a rebuild
do 2. but run trunk serve --ignore public - does not include the files

`index.html`
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>Material Components</title>
  <base data-trunk-public-url />
  <link data-trunk rel="copy-dir" href="public" />
  <link data-trunk rel="scss" href="style.scss" />
</head>

</html>

My work around currently is to have a compare the file contents and only write the file if it is different.


add AWS Secrets Manager Actions

GitHub Action for defining environment values from AWS Secrets Manager secrets

@say8425 your changes have been merged, thanks for your contribution 👍


Comparison to ig-json-parser?

I see you guys are comparing it to GSON and Jackson, but have you thought in comparing it with another Jackson based code generation thingy like ig-json-parser?

Since they work the same way and generate very similar code, I'm sure performance will be more or less identical to ig-json-parser. Considering that ig-json-parser has been abandoned and doesn't really do half the stuff this library does, it doesn't seem worth the comparison.


tiny cleanup?

Not important at all, but you could change this code:
  // Create horizontal operator
  vips::VImage sobelX = vips::VImage::new_matrixv(3, 3,
    -1.0, 0.0, 1.0,
    -2.0, 0.0, 2.0,
    -1.0, 0.0, 1.0);
  // Create vertical operator
  vips::VImage sobelY = vips::VImage::new_matrixv(3, 3,
    1.0, 2.0, 1.0,
    0.0, 0.0, 0.0,
    -1.0, -2.0, -1.0);

  // Apply Sobel operators
  vips::VImage sobelFiltered = grey.conv(sobelX) + grey.conv(sobelY);

to be:
  vips::VImage sobel = vips::VImage::new_matrixv(3, 3,
    -1.0, 0.0, 1.0,
    -2.0, 0.0, 2.0,
    -1.0, 0.0, 1.0);
  vips::VImage sobelFiltered = grey.conv(sobel) + grey.conv(sobel.rot90());

It seems a little clearer to me. Sobel is also often defined as:
  vips::VImage sobelFiltered = (grey.conv(sobel) - 128).abs() + grey.conv(sobel.rot90()) - 128).abs();

So the sum of the absolute response. This way you detect positive and negative going edges, and it's symmetrical.

Great, thanks John. Your suggestion to use abs() should improve the overlap with the distance-from-average mask (with thresholds reduced accordingly).
If you've not already seen it, there's been some recent interest in adding this sort of feature to sharp e.g. https://github.com/lovell/sharp/issues/295
I'll probably fold some of this work into sharp after it's migrated to the new C++ bindings.

This suggestion made its way into the sharp-based implementation, thank you. https://github.com/lovell/sharp/blob/18b9991fe7bf22852a6e3b56f03d026a971bad48/src/operations.cc#L314


php installation fails

Installation doesn't finish as php didn't get installed. Invoking the build script again brings the same error as on first try.
bash-4.1$ ./build
nginx up to date, version: 1.7.10.
PHP not installed.
Libtool up to date, version: 2.4.6.
LibMCrypt up to date, version: 2.5.8.
ICU up to date, version: 54.1.
Bison up to date, version: 2.7.12.
Re2c up to date, version: 0.14.3.
/tmp/build /var/lib/openshift/56xxxxxxx0f2/app-root/runtime/repo/.openshift/action_hooks
Downloading php-5.6.6.tar.gz:

skipping file exists.
Unpacking php-5.6.6.tar.gz:
skipping directory exists.
/tmp/build/php-5.6.6 /tmp/build /var/lib/openshift/56xxxxxxx0f2/app-root/runtime/repo/.openshift/action_hooks
Configuring PHP.
/var/lib/openshift/56xxxxxxx0f2/app-root/runtime/repo//.openshift/action_hooks/build_php: line 22: ./configure: No such file or directory

Try sshing into the cartridge and remove the build php build directory (rm -rf ${OPENSHIFT_TMP_DIR}/build/php-5.6.6/ and rm ${OPENSHIFT_TMP_DIR}/build/php-5.6.6.tar.gz).

Well I've deleted the application twice and tried it again, and at the end the compilation run without error. So this can be closed, but thanks for your help.

@josefstr No problem, guess third time was the charm :smile:


[stable/redis-ha] Added Service Type / Annotations Support to redis-ha chart

Signed-off-by: Aaron Layfield<EMAIL_ADDRESS>What this PR does / why we need it:
Currently, for bare metal and other cloud providers, LoadBalancer services are used to make the services externally accessible. ClusterIP does not support this which was the original value that could not be changed.
Updated redis-ha to support this.
Special notes for your reviewer:
@ssalaues
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/ok-to-test

/retest

@ssalaues Is there a fundamental issue with the service here? I have actually just noticed I can't connect to the service using the service hostname (redis.redis-ha.svc.cluster.local).
I'm taking a look into this.

@DandyDeveloper yeah it looks like it. I ran it again just to make sure but it seems like it can't connect to the service.

/lgtm

/lgtm cancel

@ssalaues A little off-topic, but did something else break recently on the announce/master assignment? I'm getting
READONLY You can't write against a read only replica.
On occasional attempts to connect / write to the Redis service. I see an old PR to fix this, but I'm still getting this problem.

@ssalaues I'm closing this in favour of PR #15305.
This new PR actually fixes the problem with externally accessible Redis. It will work as a proxy, it also for internal communication prevents the user having to query sentinel for the client (although this is still recommended).

@DandyDeveloper Thanks for the updates, I'll review the new PR.


Close does not unblock pending Read call

I am running go1.8 on Linux carbonite 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux.
Consider the following test:
func main() {
	iface, _ := water.NewTUN("tunnel")
	exec.Command("/sbin/ip", "addr", "add", "<IP_ADDRESS>/24", "dev", "tunnel").Run()
	exec.Command("/sbin/ip", "link", "set", "dev", "tunnel", "up").Run()

	c := make(chan bool)
	go func() {
		iface.Read(make([]byte, 1<<16))
		fmt.Println("Read returned")
		c <- true
	}()

	time.Sleep(5 * time.Second)

	fmt.Println("calling Close")
	iface.Close() // This should unblock Read
	<-c           // Wait for Read to unblock
}

Running this program hangs forever with the following output:
$ go build main.go
$ sudo ./main
calling Close

But never prints "Read returned" because the Read call is never interrupted even though the iface has been closed.
While it is blocked, ifconfig still shows the device is up:
$ ifconfig
tunnel    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:<IP_ADDRESS>  P-t-P:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Interestingly, if you ping -b <IP_ADDRESS>, then the Read operation returns with a valid packet, but if you were to try calling Read again, it properly reports that the device is closed.
The fact that Close does not interrupt pending Read calls is unexpected behavior since it is contrary to how other networking handlers like sockets operate.

@dsnet If we set the interface underlying file descriptor to non-blocking mode:
if err := syscall.SetNonblock(int(fd), true); err != nil {
                return err                              (https://github.com/songgao/water/blob/80efdb69919407412ee56a5e3abb0a4b6499657a/ipv4_test.go#L26) failed. Change the code to:

if err := syscall.SetNonblock(int(fd), false); err != nil {
return err
}

works for both.

it will be  blocked when open a net device to read or write, maybe u can set deadline to before operate file descripitor :smile:.


Error Installing MSI in Windows Server 2016

Hi,
The Windows Installer found an error while installing the MSI Package, issuing the following error:

So I can only cancel the installation and quit.
PS: It doesn't happen in earlier versions, only in 2016

Note: Actually no service 'wmi_service' was ever installed.

We'll need the msi logs to troubleshoot this. Uninstall the package first, if the installation succeeded, then run msiexec /i <absolute path to .msi-file> /l* c:\msi.log and upload the msi.log file as a gist.
Also, what edition of Windows Server 2016 are you using? Any particular lock-downs using GPOs or similar?

We found out that the "WMI Service" was disabled on the server ¬¬
After enabling it it worked fine.
My apologies and thanks for your time!


Default timestamp (without time zone) to UTC & Remove select DB time zone

Inserting a timestamp (without time zone) just truncates the time zone from timestamp with time zone. So the previous PR does not work.
Changed default time zone to UTC.
@mattn Please create version 0.0.2 and delete broken version 0.0.1.

@mattn ?

LGTM

Thank you

Thank you @mattn
Could you set this to version 0.0.1 ?

okay, I'll release v0.0.2.


Setting a _pages file as landing page

Hi, I'm trying to set my "About" page as my landing page. I do not want a landing page that shows the most recent posts. Just trying to keep the website as simple as possible.
I created an about.md file under _pages. I tried adding permalink: /about/ and layout: single to the header in index.html, however that seems to be the wrong move.
Thanks!

Please delete your index.html or index.md and change to permalink: / in your about.md.

Works like a charm, thanks!


Upgrade peer dependencies

Description
Installing lint-staged (via Yarn in this case) produces the following warnings:
warning lint-staged > micromatch > snapdragon > base > cache-base ><EMAIL_ADDRESS>Critical bug fixed in v3.0.1, please upgrade to the latest version.

warning lint-staged > micromatch > snapdragon > base > cache-base > union-value ><EMAIL_ADDRESS>Critical bug fixed in v3.0.1, please upgrade to the latest version.

warning lint-staged > micromatch > snapdragon > base ><EMAIL_ADDRESS>Critical bug fixed in v2.0.1, please upgrade to the latest version.

Could these dependencies be updated at some point?
(Additionally, will anything break if I force the packages to upgrade using a selective dependency resolution?)
Steps to reproduce
$ yarn add lint-staged --dev
Environment

OS: Ubuntu 18.04
Node.js: 12.2.0
lint-staged: 8.2.1

Please submit a fix.

Fair enough :)


Wireguard doesn't work

This is probably due to kernel headers being missing/mismatched.

Install wireguard via apt (this is tested on debian unstable)
configure your connection
run wg-quick up wg0
receive the following error(s)

Error: Unknown device type.
Unable to access interface: Protocol not supported

This appears to be because we're lacking the wireguard kernel module.
installing wireguard-dkms (or running dpkg-reconfigure wireguard-dkms) fails/skips as the kernel headers for the running kernel are not installed.
$uname -r
5.10.106

linux-headers-amd64 5.18.16-1 are installed
Even if we could install the correct version I doubt they would match the running (chromebook) kernel.

Yes it's custom kernel modified by google so mainline headers doesn't work, but since kernel 5.6 there is a wireguard module build in. I'm on kernel 5.15 with working wireguard. Try this sudo modprobe wireguard if that doesn't work you will have to change kernel config and rebuild kernel with wireguard module https://cb-linux.github.io/breath/docs.html#/kernel?id=new-build-script, this config needs to be enabled https://www.kernelconfig.io/search?q=CONFIG_WIREGUARD&kernelversion=5.10.137&arch=x86


Keybind / option for read-only / protected mode

Abstract
A new keybind action, perhaps not bound to anything by default, should be added that, when pressed, disable passing input to the underlying programs.
Motivation
Sometimes I have long-running applications, output I would like to monitor, but I'm scared that pressing ^C will kill potentially hours' worth of computation. Idea taken from KiTTY that has a "Protected" mode: if enabled, you can't interact with the shell (no mouse events or keys are forwarded), and you can't even close the window -- but output is still being refreshed on your side.

That's a very interesting idea and should be trivial to implement. It should be shown to the user in some way or the other, such that the user won't be disappointed why nothing is happening.

That's a very interesting idea and should be trivial to implement. It should be shown to the user in some way or the other, such that the user won't be disappointed why nothing is happening.

All KiTTY does is put a (PROTECTED) into the title of the window, which is not quite enough. My first idea would be to change the running window's icon (I guess that is possible?) to a contour logo with a lock on it? (Get one of the nice coloured lock icons from Wikipedia! :wink: )
But I guess a lock could also be drawn somewhere in the viewport of the window, where it is expected to be unobtrusive. Top right corner?

While I agree that changing some sort of window decoration is nice, but keep in mind that some of us have decorations disabled

What about changing color scheme when in readonly-mode?

While the logic itself is trivial to implement, it's probably best to simply wait for #687 to be implemented, such that the visual feedback is easy, too. :)


use SafePull at top of all flowgraph goroutines

After the nuke-driver branch is merged, we need to make sure all flowgraph goroutines use SafePull as the new expr package calls panic for unrecoverable errors and we need to catch these.

@mccanne and @nwt think this is done, but it could use an audit before we close it out.


Implement public transport line syncing

Finally, after like ten months of work, public transport line syncing works :)
Tested with bus, metro and train lines (Not sure if the DLC stuff works, but that's something to try out later).
(Closes #71)

Oh my! Awesome Job!

Oh my! Awesome Job!

Thought that's some job ads while checking my email,
"oh my! come to our website to find those awesome jobs!"
And click into the website below, it's GitHub lmao!


Pods 8682 - PSA ID not accepted on PSP declaration with spaces

Thank you for submitting a pull request on this HMRC repository. A member of the HMRC team will review your changes and action accordingly.
HMRC reviewer: please reference this runbook for guidance on how to proceed.


[SMALLFIX] Remove reference of alluxio-env.sh as we recommend alluxio-site.properties

To reduce confusion, we recommend to use alluxio-site.properties rather than alluxio-env.sh to set properties.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17935/
Test PASSed.


Database target: connection string, with encryption and NLog

Type:  Question
NLog version: 4.4.3
Platform:  .Net 4.5
I use connection string, with encryption like this:
add name="CompanyDB1" providerName="System.Data.SqlClient"
         connectionString="Data Source=JD_jwE_uegzwClsGYRzXnLEjLpgvXddazABmqda3adadadfa323;Initial Catalog=TvA93OkLi1;User ID=Ui8837a-4o5a2JI9_AB3at3;Password=6Ruk5ILhw2eARTGHUaCx3Q1;"

add name="CompanyDB2" providerName="System.Data.SqlClient"
         connectionString="Data Source=zXiUe7b1f8DfFTYU45ThY;Initial Catalog=yObRU-adaUIIO8jIUjiIYj;Integrated Security=SSPI;"

if ProviderName is System.Data.SqlClient
connectionString = new Utils().DesencriptDatabaseConnectionString(c.ConnectionString);

if ProviderName is System.Data.EntityClient
      public MyDBContext(string  nameDBConn)
          : base("name=" + nameDBConn)
      {
          Database.CommandTimeout = (ConfigurationManager.AppSettings["DB_TimeOut"] != null) ? int.Parse(ConfigurationManager.AppSettings["DB_TimeOut"]) : Database.CommandTimeout;
          Database.Connection.ConnectionString = new Utils().DesencriptDatabaseConnectionString(Database.Connection.ConnectionString);
          Database.SetInitializer<AdeccoContext>(null);
      }

Can I use it in NLog Database target ? Maybe using custom class ? I would like if you have any suggestions about it.

What's we're you looking for? The connectionstring is encrypted in the .config and should be somewhere decrypted?
Would setting the connectionstring by the API a solution? e.g.
        var dbTarget = LogManager.Configuration.FindTargetByName<DatabaseTarget>("db1");
        dbTarget.ConnectionString = new Utils().DesencriptDatabaseConnectionString(Database.Connection.ConnectionString);

You could set DBProvider with created the connection. Example:
            DatabaseTarget dt = new DatabaseTarget()
            {
                CommandText = "INSERT INTO FooBar VALUES('${message}')",
                ConnectionString = "FooBar",
                DBProvider = typeof(MockDbConnection).AssemblyQualifiedName,
            };

 public class MockDbConnection : IDbConnection
        {
            public static string Log { get; private set; }
            public static string LastConnectionString { get; private set; }

            public MockDbConnection()
            {
            }

            public MockDbConnection(string connectionString)
            {
                this.ConnectionString = connectionString;
            }

            public IDbTransaction BeginTransaction(IsolationLevel il)
            {
                throw new NotImplementedException();
            }

            public IDbTransaction BeginTransaction()
            {
                throw new NotImplementedException();
            }

            public void ChangeDatabase(string databaseName)
            {
                throw new NotImplementedException();
            }

            public void Close()
            {
                AddToLog("Close()");
            }

            public string ConnectionString { get; set; }

            public int ConnectionTimeout
            {
                get { throw new NotImplementedException(); }
            }

            public IDbCommand CreateCommand()
            {
                return new MockDbCommand() { Connection = this };
            }

            public string Database
            {
                get { throw new NotImplementedException(); }
            }

            public void Open()
            {
                LastConnectionString = this.ConnectionString;
                AddToLog("Open('{0}').", this.ConnectionString);
                if (this.ConnectionString == "cannotconnect")
                {
                    throw new InvalidOperationException("Cannot open fake database.");
                }
            }

            public ConnectionState State
            {
                get { throw new NotImplementedException(); }
            }

            public void Dispose()
            {
                AddToLog("Dispose()");
            }

            public static void ClearLog()
            {
                Log = string.Empty;
            }

            public void AddToLog(string message, params object[] args)
            {
                if (args.Length > 0)
                {
                    message = string.Format(CultureInfo.InvariantCulture, message, args);
                }

                Log += message + "\r\n";
            }

ow same TS  ;)

that's also a good idea!

I assume your question has been answered, if not, let us know!


Running wis2box without ipv6

User story
As an admin, I want to install wis2box on a virtual machine without ipv6 support so that we can run a wis2 node.
The container wis2box-ui:latest does not start because /etc/nginx/nginx.conf, which is copied into the container at build time, has an ipv6-specific line.
The nginx docker image, which is included in wis2box-ui image, checks upon starting if ipv6 is available and only if it is available, it adds the according ipv6-specific line (listen  [::]:80;).
Proposed solution
We could do something similar to the nginx docker image approach by adding some lines to our entrypoint script:

We could either delete the ipv6-specific line (listen  [::]:80;) from nginx.conf and only add ipv6-specific line if ipv6 is available
or we could delete the line if ipv6 is available by appending a few lines to our entrypoint script

# check if we have ipv6 available
if [ ! -f "/proc/net/if_inet6" ]; then
    # log only if not quieted by variable
    if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
        ME=$(basename "$0")
        echo "$ME: info: ipv6 not available
    fi
    #disable ipv6 on listen sockets
    sed -i '/[::]:80/d' /etc/nginx/nginx.con
fi

(nested logging if-statement could be omitted ...
Acceptance criteria

[ ] python3 wis2box-ctl.py start runs successfully on machines without ipv6.

Definition of done

[ ] unit/functional tests added/updated
[ ] documentation updated
[ ] live demonstration provided

@gespau thank you for posting this issue
@tomkralidis wis2box-ui was meant to be proxied via the host, so I don't think this line is required at all inside the container:
https://github.com/wmo-im/wis2box-ui/blob/main/docker/nginx.conf#L12


direction: rtl for fa translation

hi
direction: rtl for fa translation

[x] Have you followed the contributing guidelines?
[x] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

hi @MikeMcQuaid
This error ""Process completed with exit code 1."" has been coming for all changes since two days ago!
Please help me to solve it

Thanks again @ciminbinazadeh!

Thanks again @ciminbinazadeh!

@MikeMcQuaid
🙏🏻🙏🏻🙏🏻🙏🏻🌸

hi direction: rtl for fa translation

[x]  Have you followed the contributing guidelines?
[x]  Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

945ef88

hello @Swansoppia
Why revert? :)

@ciminbinazadeh: I've come here investigating @Swansoppia's behavior having received a couple of "contributions" myself. I suspect this is either a bot gone wrong, or spam of some description. I'll be reporting the user to GitHub to investigate.

@jskeet @ciminbinazadeh Yeh, this repository gets huge amounts of spam. They are flagged as spammy now; best to report (or, if not, ignore). Thanks and sorry ❤

Thank you


Issue with AADSTS7000218 -  'client_assertion' or 'client_secret'.

Hello,
I get this error:
ServerError: invalid_client: 7000218 - [2020-09-25 07:40:47Z]: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

after removing "Mail.Read" from scope, because I don't need it:
scopes: ["Mail.Read", "openid", "profile", "User.Read"],

what could be the issue here?

Actually I found the issue.
It was a configuration under Azure AD Application Registration where I have selected WEB and now SPA and there was checkbox under Implicit for ID token.


Bug: 404 Page Not Found on refreshing a page on gh-pages

When refreshing a page I get a 404 Page Not Found error. This happens because GitHub pages don't support single-page apps. It doesn't have access to front-end routes.  You can go back and forth without any issue until you refresh the page. I tested it in Chrome, Safari on iPhone, and MacBook Air M1.

Steps to reproduce the error:

Visit: https://catherineisonline.github.io/rest-countries/
Click on any country to be redirected to the single country page
Refresh the page

I have been researching this for almost a month and have not found any solution yet.

I think this is because of how the CSR route mechanism behaves (it's perfectly normal).
The workaround is by creating a custom 404 page, and writing some javascript to redirect to the index.html.
Resource: React app hosted as Github Project Page. How to display custom 404 page?

Thank you for the feedback. I believe that will be the best solution for now


CSHTML formatting fatally broken when not using CRLF line endings

This issue has been moved from a ticket on Developer Community.

[severity:I'm unable to use this version] [regression] [worked-in:16.10.x I believe]
The latest version of Visual Studio community as of writing (16.11.3) is broken to the point where development has grinded to a halt on my MVC projects as I cannot comprehend what's on the page.
I would love to be able to revert to an earlier version, but there doesn't seem to be an archive for Community. Does anyone have a link to an earlier version without this bug please? There are many articles stating the issue has been fixed but it seems to keep getting reintroduced. None of the proposed measures online on any forums from earlier iterations of the issue seem to have worked.

Original Comments
Feedback Bot on 9/30/2021, 01:30 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Taylor Mullen [MSFT] on 10/1/2021, 09:20 AM:
Thank you for taking the time to report this issue!
Did you still reproduce this issue in the latest stable version of Visual Studio installed from https://visualstudio.microsoft.com/vs/preview/vs2022/? If so, in order for us to investigate this further, can you provide the repro steps or a sample project?
Why do we ask for more info?
We try to reproduce all issues reported with the information provided in the description and comments. When we can’t reproduce the issue, we ask you for more information so we can resolve the issue as quickly and efficiently as possible.
In our guidelines, you can get tips on how to provide clear and simple reproducible steps.
james on 10/1/2021, 05:36 PM:
Hi,
We have tried using the 2022 preview, and actually there was no recognition, code highlighting, or intellisense available in the cshtml files at all, so the issue was a different one and we weren’t able to use this version.
We also have tried the experimental razor editor setting in the latest 2019 version, but this didn’t seem to make any difference at all.
The above mentioned workaround has been the only successful avenue for us so far.
Thank you.

Original Solutions
james solved on 9/30/2021, 05:26 PM, 0 votes:
[Workaround]
Thank you.
We have so far managed to remedy the issue with the workaround as described below, so I hope this helps you solve the issue of why the latest update to visual studio caused the change in behaviour;
We were able to correctly format our older cshtml files by (whilst in the file in latest visual studio) hitting File > Save As, then in the dropdown next to save, choose with Encoding, clicking yes to the subsequent overwrite prompt, and then in the dialog box, change the line endings to Windows CR LF. With this configuration, the old file is now formatting correctly again.
With the newly created files in the system, we needed to ensure that in Tools, Options, Evnironment > Documents > “Save documents as Unicode when data cannot be saved in codepage” is set to true. Then, newly created files with this configuration are formatting correctly.
This workaround isn’t ideal because every cshtml file created in a previous install must now be re-saved which is a frustration that we could do with out, and we’re also unsure if this will cause us any headaches later on.
james solved on 9/30/2021, 05:26 PM, 0 votes:
[Workaround]
Thank you.
We have so far managed to remedy the issue with the workaround as described below, so I hope this helps you solve the issue of why the latest update to visual studio caused the change in behaviour;
We were able to correctly format our older cshtml files by (whilst in the file in latest visual studio) hitting File > Save As, then in the dropdown next to save, choose with Encoding, clicking yes to the subsequent overwrite prompt, and then in the dialog box, change the line endings to Windows CR LF. With this configuration, the old file is now formatting correctly again.
With the newly created files in the system, we needed to ensure that in Tools, Options, Evnironment > Documents > “Save documents as Unicode when data cannot be saved in codepage” is set to true. Then, newly created files with this configuration are formatting correctly.
This workaround isn’t ideal because every cshtml file created in a previous install must now be re-saved which is a frustration that we could do with out, and we’re also unsure if this will cause us any headaches later on.

The workaround is the important bit here. Not sure of the exact repro but obviously non-CRLF is likely, or files with a different codepage

Another report of this here: https://developercommunity.visualstudio.com/t/VSNET-2019-Razor-View-Format-Document-i/1431516#T-N1434542

Having the same issue here. The work around works. VS2022 is just so buggy


Keep supplied extension in macOS save dialogues

The dialogue should keep the extension if it's among the allowed ones, or append the first one in the allowed list to the file name otherwise. Closes aseprite/aseprite#1835.
For some reason setAllowedFileTypes: overwrites the extension provided in setNameFieldStringValue:, so it needs to be done before the latter. Apparently authors of electron have run into the same issue... Does this count as an upstream bug in AppKit? (=~=)

Hi @kawa-yoiko, I've tested this change on macOS 10.14.5 and the file extension is still not showing up 😢 Anyway after applying an extra change (c1a4379bf215caeb934f299bd684c8f2c0680e3c) it does work, so I've merged this change 👍