Roadmap for next-drupal 2.0 release

Package
next-drupal (NPM package)
Describe the feature request
The goal of the 2.0.0 releases of next-drupal (NPM package) and next (Drupal module) is to have release that is fully compatible with Next.js' App Router. Secondarily, the project is being updated so that it easier to maintain and contribute to.
These are the steps needed to accomplish this

App Router related:

✔ Allow DrupalClient usage in Server components and in Client Components. Fixed with #442
✔ Add Next.js v14 support. Fixed with #578
✔ Support for Draft Mode. Fixed with #502
✔ Add example showing a single app migrating from Pages Router to App Router while supporting both. See /examples/example-router-migration
✔ Add methods to DrupalClient to support App Router. #665
✔ Upgrade starters to App Router. #601
✔ Use "Dynamic Path Segment" or "path" instead of "slug" #718

Maintainability related:

✔ Organize Jest tests by method (adds 100% test coverage). #608
Fix local Jest testing fails #533 (may be fixed after 2.0.0 release)
Improve CONTRIBUTING docs #529 (partially done, still working on it)
Update docs for 2.0.0 release #691

We also have a 2.0.0 milestone to dynamically track which issues we want to add before a 2.0.0 release. https://github.com/chapter-three/next-drupal/milestone/9 I'll try to keep this issue updated with that milestone.

Hey @JohnAlbin sorry for the ping.
We're trying to make decisions on new projects of whether to adopt the app router and write a poor-man's version of next-drupal, or wait for 2.0 and continue on pages router for a bit longer.
Can you give me an idea of how things are going behind the scenes? It looks like things are pretty far along.


Crash when running tensorflow.python.ops.gen_array_ops.upper_bound

Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
No
Source
binary
Tensorflow Version
2.10.0
Custom Code
Yes
OS Platform and Distribution
Ubuntu 22.04
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
A bug happened!

Standalone code to reproduce the issue
import tensorflow as tf
import numpy as np
from tensorflow.python.ops import gen_array_ops
try:
  try:
    with tf.device('/CPU'):
      arg_0_tensor = tf.random.uniform([2, 3], dtype=tf.float32)
      arg_0 = tf.identity(arg_0_tensor)
      arg_1_tensor = tf.random.uniform([2], dtype=tf.float32)
      arg_1 = tf.identity(arg_1_tensor)
      arg_2 = tf.int32
      arg_3 = None
      out = gen_array_ops.upper_bound(arg_0,arg_1,arg_2,arg_3,)
  except Exception as e:
    print("Error:"+str(e))
  try:
    with tf.device('/GPU:0'):
      arg_0 = tf.identity(arg_0_tensor)
      arg_0 = tf.cast(arg_0, tf.float32)
      arg_1 = tf.identity(arg_1_tensor)
      arg_1 = tf.cast(arg_1, tf.float32)
      arg_2 = tf.int32
      gen_array_ops.upper_bound(arg_0,arg_1,arg_2,arg_3,)
  except Exception as e:
    print("Error:"+str(e))
except Exception as e:
  print("Error:"+str(e))

### Relevant log output

```shell
2023-01-22 17:58:29.262403: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-01-22 17:58:29.358214: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-01-22 17:58:29.774374: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/lib/:/home/nimashiri/anaconda3/envs/cuda11.2/lib/:/home/nimashiri/anaconda3/envs/cuda11.2/lib/:/home/nimashiri/anaconda3/envs/tf-2.10/lib/
2023-01-22 17:58:29.774529: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/lib/:/home/nimashiri/anaconda3/envs/cuda11.2/lib/:/home/nimashiri/anaconda3/envs/cuda11.2/lib/:/home/nimashiri/anaconda3/envs/tf-2.10/lib/
2023-01-22 17:58:29.774536: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2023-01-22 17:58:30.250579: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.257130: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.257254: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.257554: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-01-22 17:58:30.258364: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.258530: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.258645: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.611427: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.611587: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.611694: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-22 17:58:30.611786: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 4297 MB memory:  -> device: 0, name: NVIDIA GeForce GTX 1660 Ti, pci bus id: 0000:01:00.0, compute capability: 7.5
free(): invalid pointer
Aborted

</details>

@nimashiri,
I tried to execute the mentioned code with the alternative approach by providing the similar input shape for the both arg_0_tensor and arg_1_tensor and it was executed without any issues. Kindly find the gist of it here. Thank you!

@tilakrayal this is a vulnerability report (which should not be on GitHub, anyway).
@learning-to-play

Tested the code in TF2.10v and got Segmentation fault (core dumped).
(tf2.10) suryanarayanay@surya-ubuntu-22-04:~$ python 59415.py
2023-02-08 09:38:16.564689: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F AVX512_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-08 09:38:17.335082: I tensorflow/core/util/util.cc:169] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-02-08 09:38:17.722850: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-02-08 09:38:19.791230: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/home/suryanarayanay/miniconda3/envs/tf2.11/lib/:/home/suryanarayanay/miniconda3/envs/tf2.10/lib/
2023-02-08 09:38:19.791360: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/home/suryanarayanay/miniconda3/envs/tf2.11/lib/:/home/suryanarayanay/miniconda3/envs/tf2.10/lib/
2023-02-08 09:38:19.791375: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2.10.0
2023-02-08 09:38:25.884439: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F AVX512_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-08 09:38:28.798693: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 38239 MB memory:  -> device: 0, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:04.0, compute capability: 8.0
2023-02-08 09:38:28.801639: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 38239 MB memory:  -> device: 1, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:05.0, compute capability: 8.0
Segmentation fault (core dumped)

Tested with tf 2.12.0-dev20230201 and also got Segmentation fault (core dumped) and on second run got munmap_chunk(): invalid pointer.
(tf) suryanarayanay@surya-ubuntu-22-04:~$ python 59415.py
2023-02-08 09:40:26.733109: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-02-08 09:40:27.027753: E tensorflow/tsl/lib/monitoring/collection_registry.cc:81] Cannot register 2 metrics with the same name: /tensorflow/core/bfc_allocator_delay
2023-02-08 09:40:27.363406: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-08 09:40:29.084974: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2.12.0-dev20230201
2023-02-08 09:40:37.860950: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 38201 MB memory:  -> device: 0, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:04.0, compute capability: 8.0
2023-02-08 09:40:37.863860: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 38201 MB memory:  -> device: 1, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:05.0, compute capability: 8.0
Segmentation fault (core dumped)
(tf) suryanarayanay@surya-ubuntu-22-04:~$ python 59415.py
2023-02-08 09:45:45.421499: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-02-08 09:45:45.461418: E tensorflow/tsl/lib/monitoring/collection_registry.cc:81] Cannot register 2 metrics with the same name: /tensorflow/core/bfc_allocator_delay
2023-02-08 09:45:45.476657: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-08 09:45:46.342253: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2.12.0-dev20230201
2023-02-08 09:45:52.886100: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 38201 MB memory:  -> device: 0, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:04.0, compute capability: 8.0
2023-02-08 09:45:52.887761: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 38201 MB memory:  -> device: 1, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:05.0, compute capability: 8.0
munmap_chunk(): invalid pointer
Aborted (core dumped)

It seems a valid vulnerability that needs fix.Thanks!

tried on the latest TF source code, it works, no issue.

Hi @dmc1778 ,
Myself also tested with latest tf-nightly(2.13.0-dev20230301) and I can see no crash but user error which is intended behaviour.Please refer to the gist.
Thanks!

Closing as stale. Please reopen if you'd like to work on this further. Thanks.


Don't select (bogus) geometries outside of NYC

NYC Open Data sometimes gives incorrectly geocoded values which can be found using the following SQL:
WITH box AS (
  SELECT ST_SetSRID(ST_Extent(the_geom), 4326)::geometry as the_geom,
  666 as cartodb_id
  FROM nyc_borough
)
SELECT
  c.*
FROM
  crashes_all_prod AS c LEFT JOIN
  box AS a ON
  ST_Intersects(c.the_geom, a.the_geom)
WHERE a.cartodb_id IS NULL
AND c.the_geom IS NOT NULL

For example the lon lat -201.2371, 40.7584 in the row with socrata_id 3616997.
Such rows should be excluded from the map SQL query as to not throw off the Leaflet map.fitBounds() call when data updates.

Fixed in ETL script, new data that is outside the bbox for NYC Boroughs gets geom set to null.


L and H need to respect Cursor Surrounding Lines

For the purposes of scrolling (via j/k), Cursor Surrounding Lines seems to be respected. But when jumping to the top or bottom via L / H, the scrolloff (Cursor Surrounding Lines) is not respected, and the cursor goes all the way to the top or bottom.
It would be great if this were addressed, so that by pressing L, the cursor is placed X lines above the bottom of the window, based on the scrolloff/Cursor Surrounding Lines.

Is this related to Vim extension?

Yeesh - it totally is. I was looking at a vim extension but ended up here. Sorry - feel free to close.


Patch for require() issue with Backbone vis-a-vis AMD/RequireJS

Backbone with AMD/RequireJS expects module._ instead of just _.
The added line, allows for all versions to work.

I'm afraid that Backbone is the project that needs to be updated here, not Underscore.


All Systems Go 24

I wasn't aware of this event but I think Kairos could be a good fit for next year 2024, there are no dates announced yet so the actionable date is just a guess for now.
https://all-systems-go.io/

https://cfp.all-systems-go.io/all-systems-go-2024/cfp


Shorter if syntax

[[ 1 == 1 ]] && { command exit 1 } || { this command will exec  }
how to avoid???

I do not understand what you are trying to tell.

Thank you very much.
On Thu, Dec 9, 2021, 4:04 PM Michael Phillips @.***>
wrote:

I do not understand what you are trying to tell.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dylanaraps/pure-bash-bible/issues/112#issuecomment-989989149,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AV7BMB2TZLLR2FZW4FR3FHTUQDHPZANCNFSM4WTEZRYA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I am so confused by this.

Missing terminating quote, bracket or keyword

I'm sure you found a solution by now, but just in-case you didn't:
You have two syntax errors, because you're missing the ; before the final } in each command group. The typical way to group commands (without a subshell) is { like this; }.
The COMMAND && COMMAND || COMMAND approach does not equate to if, then, else, although it can work in a similar way. Likewise, COMMAND || COMMAND && COMMAND does not equate to the opposite.
Why? Because what the first example actually means is that the 2nd command will execute if the 1st one succeeds, or the 3rd command will execute if the 1st command fails. However, if the 1st command succeeds and the 2nd command also happens to fail, then all three commands wind up being executed regardless.
Furthermore, the exit statuses are not contained, unlike with an if statement, which is pretty important if it's the last command in a script or you're checking $?.

"Shorter if syntax" should be removed to stop spreading miss-information.
More context can be found here: http://mywiki.wooledge.org/BashPitfalls#cmd1_.26.26_cmd2_.7C.7C_cmd3

Agreed, it's misleading and incorrect. I see what the author meant, but it's important to be accurate when it comes to complicated matters like programming, IMO. Logical operators can be used similar to an if statement, in  simple way, but it's not technically or actually a replacement or "shorter" version.


application crash when steam folder is selected

When I select my steam folder, the app crash?
And if I re-launch it, it crash again
Error: ENOENT: no such file or directory, open 'S:\STEAM\steamapps\config\loginusers.vdf'
    at Object.fs.openSync (fs.js:646:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:538:29)
    at new e (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\AcfParser.ts:15:15)
    at e.setSteamConfig (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\SteamUserFinder.ts:14:25)
    at C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\SteamUserFinder.ts:44:19
    at new Promise (<anonymous>)
    at Object.t.findSteamUser (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\SteamUserFinder.ts:43:9)
    at e.<anonymous> (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\Server.ts:104:35)
    at C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1
    at Object.next (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1)
    at C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1
    at new Promise (<anonymous>)
    at r (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1)
    at e.clientSettingsAsked (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\Server.ts:95:2)

I believe you chose your steamapps folder instead of the global Steam folder.
That misunderstanding shouldn't be happening, I'll put an indication.
Also, it would be interesting to prevent a global crash for this kind of things.

okay, i had to delete the appdata folder of vitrine.
And I retried the setup and same thing
note: I have a dedicated hdd for my games in S:\STEAM
Error: ENOENT: no such file or directory, open 'S:\STEAM\config\loginusers.vdf'
    at Object.fs.openSync (fs.js:646:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:538:29)
    at new e (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\AcfParser.ts:15:15)
    at e.setSteamConfig (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\SteamUserFinder.ts:14:25)
    at C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\SteamUserFinder.ts:44:19
    at new Promise (<anonymous>)
    at Object.t.findSteamUser (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\api\SteamUserFinder.ts:43:9)
    at e.<anonymous> (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\sources\server\Server.ts:234:34)
    at C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1
    at Object.next (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1)
    at s (C:\Users\guigur\AppData\Local\Programs\Vitrine\resources\app.asar\public\webpack:\node_modules\bluebird\js\release\promise.js:773:1)
    at <anonymous>

Having steamapps somewhere else than the original Steam folder is not handled yet, this bug comes from the fact that the file needed is in Disk:\[...]\Steam\config\loginusers.vdf. However, steamapps` games will be searched starting from here, I believe there is another file to parse in order to get the path to every game source


How can I re-render/re-fresh the calendar ?!!

react-dates version
<EMAIL_ADDRESS>Describe the bug
I want to find a way to re-render it after each time of manipulation. It could just re-render the calendar after clicking on "go to next/prev month" buttons!
Source code (including props configuration)
Steps to reproduce the behavior:
import React, { Component } from "react";
import { DayPicker } from "react-dates";
import JMoment from "moment-jalaali";
//...

class App extends Component {
  state = {
    isShamsi: false
  };

  toggleShamsi = () => {
    const { isShamsi } = this.state;
    this.setState({ isShamsi: !isShamsi });
    /****** The Problem is Here ******/
    /****** It doesn't Re-Render Completely ******/
  };

  renderDayContents = moment => {
    const { isShamsi } = this.state;
    if (!isShamsi) return moment.format("D");
    return JMoment(moment).format("jD");
  };

  renderMonthText = moment => {
    const { isShamsi } = this.state;
    if (!isShamsi) return moment.format("MMMM YYYY");
    return JMoment(moment).format("jMMMM jYYYY");
  };

  render() {
    const { isShamsi } = this.state;

    return (
      <>
        Use Shamsi:
        <input type="checkbox"
               defaultChecked={isShamsi}
               value={isShamsi}
               onClick={this.toggleShamsi}
        />

        <DayPicker
          isRTL
          firstDayOfWeek={6}
          numberOfMonths={1}
          renderDayContents={this.renderDayContents}
          renderMonthText={this.renderMonthText}
        />
      </>
    );
  }
}

export default App;

Screenshots/Gifs

Desktop (please complete the following information):

OS: Ubuntu v18.04
Browser: Chrome, Firefox (all of them)
Version: all

Is the issue reproducible in Storybook?
No, because there is no such an example like this one.
Additional context
I want a method to re-render/re-fresh the calendar whenever I want.

@smrsan76 you can pass isFocused prop, that depend on isShamsi state value:
...
<DayPicker
            firstDayOfWeek={6}
            numberOfMonths={1}
            renderDayContents={this.renderDayContents}
            renderMonthText={this.renderMonthText}
            isFocused={isShamsi}
/>
...

@mmaday Thank you ...
But it doesn't makes any sense to put the calendar type into the isFocused property.
Therefore, It won't work ... (I've tested it)

@smrsan76 here is sandbox:

Main idea to start rerendering on changing isFocused prop

@mmarkelov Yeah... That works very well!!!
But another issue is still exists #755 👎
If there was a good solution for that, I would start using react-dates in my Persian project.


Podman build doc improvements

This PR makes some minor revisions to clarify how to use podman build with a URL, Git repo or archive. It was inspired by this issue https://github.com/projectatomic/buildah/issues/717 with hopes of preventing confusion for others down the road.

bot, test pull request

bot, add author to whitelist

@jdoss You have to sign ALL of your commits
git commit -a --amend -s
git push --force

@rhatdan I redid my commit with it signed and force pushed https://github.com/projectatomic/libpod/pull/822/commits/6157839b0477e129ff08fee2caabdbe95b421fd0.

@rh-atomic-bot r+
Thanks @jdoss


Can't convert model.t7 to mlmodel

Great open source project.
I trained some .t7 model form the DmitryUlyanov texture nets, it's same method with Justin Johnson's fast feed forward.
https://github.com/DmitryUlyanov/texture_nets#credits
Here is a sample model download link:
https://yadi.sk/d/GwL9jNJovBwQg
When I tried to convert it to mlmodel using convert-fast-neural-style.py, it shows me NotType Error, or unknown Torch class <nn.TVLoss>...

You need to prepare your model for inference. Loss layer is not needed for inference, you can safely remove it from the model. I made a script for fast-neural-style which modifies models: https://github.com/prisma-ai/torch2coreml/blob/master/example/fast-neural-style/prepare_model.lua You can implement something similar for your model. Please note, that currently not all torch7 layers are supported and you cannot convert model with custom Lua layers inside. Please refer to example with custom layer implementation https://github.com/prisma-ai/torch2coreml/blob/master/example/fast-neural-style/convert-fast-neural-style.py#L12 if you need some unknown layers to be converted.

Hi @opedge ,
I have a model from Justin Johnson and want to convert it to coreml model. So I first tried to prepare the model using prepare_model.lua but it gave following error. Please let me know how can I solve this problem,
'         no file './fast-neural-style/fast_neural_style/ShaveImage.lua'         no file '/home/torch/install/share/luajit-2.1.0-beta1/fast-neural-style/fast_neural_style/ShaveIma ge.lua'         no file '/usr/local/share/lua/5.1/fast-neural-style/fast_neural_style/ShaveImage.lua'         no file '/usr/local/share/lua/5.1/fast-neural-style/fast_neural_style/ShaveImage/init.lua'         no file '/home/.luarocks/lib/lua/5.1/fast-neural-style/fast_neural_style/ShaveImage.so'         no file '/home/torch/install/lib/lua/5.1/fast-neural-style/fast_neural_style/ShaveImage.so'         no file '/home/torch/install/lib/fast-neural-style/fast_neural_style/ShaveImage.so'         no file './fast-neural-style/fast_neural_style/ShaveImage.so'         no file '/usr/local/lib/lua/5.1/fast-neural-style/fast_neural_style/ShaveImage.so'         no file '/usr/local/lib/lua/5.1/loadall.so'         no file '/home/.luarocks/lib/lua/5.1/fast-neural-style.so'         no file '/home/torch/install/lib/lua/5.1/fast-neural-style.so'         no file '/home/torch/install/lib/fast-neural-style.so'         no file './fast-neural-style.so'         no file '/usr/local/lib/lua/5.1/fast-neural-style.so'         no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback:         [C]: in function 'error'         /home/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'         example/fast-neural-style/prepare_model.lua:4: in main chunk         [C]: in function 'dofile'         ...eena/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk         [C]: at 0x55917c228470
Please guide me in this.
Thank you


Microsoft.VisualStudioCode_v1.85.0 desktop

Microsoft.VisualStudioCode_v1.85.0
Microsoft Reviewers: Open in CodeFlow

Why change the url?

@treysis, we have changed the CDN that is serving the VS Code assets.

Automatic Validation ended with:

The pull request doesn't include any manifest files yaml.

This means that this branch diff master had no output. Basically a merge conflict. This change appears to be subsumed by #130136.


Adds support for linking a Devfile component with an Operator backed service

What type of PR is this?
/kind feature
What does this PR do / why we need it:
This PR adds support for linking a devfile component to an Operator backed service.
We need this because users are going to want to connect their application to some service for a more realistic application
Which issue(s) this PR fixes:
Fixes #2920
How to test changes / Special notes to the reviewer:

Create a nodejs component using https://github.com/akashshinde/node-todo. Use this devfile for things to work fine:

schemaVersion: 2.0.0
metadata:
  name: nodejs
  version: 1.0.0
projects:
  - name: nodejs-starter
    git:
      location: "https://github.com/odo-devfiles/nodejs-ex.git"
components:
  - container:
      name: runtime
      image: registry.access.redhat.com/ubi8/nodejs-12:1-36
      memoryLimit: 1024Mi
      mountSources: true
      endpoints:
        - name: http-8080
          targetPort: 8080
          configuration:
            protocol: tcp
            scheme: http
            type: terminal
commands:
  - exec:
      id: install
      component: runtime
      commandLine: npm install
      workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
      group:
        kind: build
        isDefault: true
  - exec:
      id: run
      component: runtime
      commandLine: npm start
      workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
      group:
        kind: run
        isDefault: true

Create a URL for it using odo url create. Hit the URL and see that it's showing a loading animation. That's because it needs to be connected to an EtcdCluster.

Create an EtcdCluster using odo service create etcdoperator.v0.9.4-clusterwide --crd EtcdCluster (exact command depends upon the etcd Operator you've installed in the namesapce).

Link the two by doing odo link EtcdCluster/example (follows the odo link <servicetype>/<servicename> syntax since it's perfectly valid to create different kinds of service with same name when working with Operator Hub. Refer https://github.com/openshift/odo/issues/2920#issuecomment-638124662.

Check the contents of .odo/env/env.yaml.

Do an odo push to make sure that link is applied. We didn't require odo push when linking with Service Catalog backed services but require it for Operator backed service. Refer: https://github.com/openshift/odo/issues/2920#issuecomment-653091994.

Now load the URL created in earlier step again. The app should now be ready to take items. Play around with this ToDo app to make sure things work.

Doing odo delete for the component would delete the Link information from .odo/env/env.yaml because the underlying link will have ownerReferences set in order to delete it. But there's a catch; refer: https://github.com/redhat-developer/service-binding-operator/issues/542.

Example shell flow:

$ git clone https://github.com/akashshinde/node-todo
$ cd node-todo

$ odo create nodejs node-todo
# now replace the devfile or make changes

$ odo push
$ odo url create --now
# hit the URL and check the "Loading" animation

# replace Operator name with what's on your cluster
$ odo  service create etcdoperator.v0.9.4-clusterwide --crd EtcdCluster
$ odo service list

$ odo link EtcdCluster/example
$ cat .odo/env/env.yaml
$ odo push
# hit the URL and play with the todo app

$ odo delete -f
$ cat .odo/env/env.yaml

should there be an unlink feature as well?

github.com/openshift/odo/pkg/url github.com/openshift/odo/pkg/url/labels github.com/openshift/odo/pkg/util github.com/openshift/odo/pkg/version github.com/openshift/odo/pkg/watch
# github.com/openshift/odo/pkg/devfile/adapters/kubernetes/component
vet: pkg/devfile/adapters/kubernetes/component/adapter_test.go:320:57: too few arguments in call to componentAdapter.createOrUpdateComponent

legit unit test failure

should there be an unlink feature as well?

There should be, yes. But if I have the permission, I'd like to do it in a separate PR instead of this one.

should there be an unlink feature as well?

There should be, yes. But if I have the permission, I'd like to do it in a separate PR instead of this one.

Really Permission? Being too formal are we now?

FYI @DhritiShikhar @Avni-Sharma
Please do assist the odo team and @dharmit in any way needed for this work.

@dharmit unit test still failing but rest of the things architecturally are sound.
/approve

Tests are borked. Need to work on fixing those. Moving them to tests/integration/operatorhub.

@dharmit i tried linking etcd operator with nodejs component as you described
[adisky@localhost node-todo]$ odo service list
NAME                    AGE
EtcdCluster/example     8m0s

it is failing at
[adisky@localhost node-todo]$ odo link EtcdCluster/example
 ✗  the server could not find the requested resource

@dharmit i tried linking etcd operator with nodejs component as you described
[adisky@localhost node-todo]$ odo service list
NAME                    AGE
EtcdCluster/example     8m0s

it is failing at, am i missing something here?
[adisky@localhost node-todo]$ odo link EtcdCluster/example
 ✗  the server could not find the requested resource

Got it resolved by @dharmit over discussion at bjns, service binding operator was not installed on my cluster.

Got it resolved by @dharmit over discussion on bjns, service binding operator was not installed on my cluster.

I need to enter a check which points the user that SBO needs to be installed. Similar to what we've added for routes in the case of url creation.

I need to enter a check which points the user that SBO needs to be installed. Similar to what we've added for routes in the case of url creation.

Made SBO check the first thing in link code. It'll report below error if it can't find SBO on the cluster.
$ odo link EtcdCluster/example
 ✗  Please install Service Binding Operator to be able to create a link

/lgtm

/lgtm

Don't see any details about failure in logs.
/retest


Adds Godocs for Contour Spec and Status

Previously, spec and status were using the godocs of ContourSpec and ContourStatus. This may cause confusion when using kubectl explain to understand the details of a Contour resource. For example:
$ kubectl explain contours.spec
KIND:     Contour
VERSION:  operator.projectcontour.io/v1alpha1

RESOURCE: spec <Object>

DESCRIPTION:
     ContourSpec defines the desired state of Contour.
...

DESCRIPTION should refer to "Spec" instead of "ContourSpec".
Signed-off-by: Daneyon Hansen<EMAIL_ADDRESS>

/lgtm


Jay khatri quickstart updates

@jay-khatri I think we forgot to account for the second level of nesting on the server docs. e.g. ["server"] needs to be ["server"][languageName].


Media links update

📚 Context
Added CSS so that social media links in the footer would flex correctly in mobile view.

Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

A proper web-dev might have a nicer fix for the template instead of just adding on a couple manual CSS lines, so no worries if there is a better way to do this. :)

Looping in @sfc-gh-jgarcia who may be able to help with aligning the icons in the footer on mobile 😃

Since there is an odd number, I'm not sure there is much of a choice unless you want to give up centered, or force it to three rows instead of two upon flexing...

I changed it to Tailwind syntax for the the flex in the footer icons.
@sfc-gh-jgarcia If you can clarify the syntax for custom colors, I can fix my other non-Tailwind overrides as well:
An existing example:
.TwitterIcon {
  @apply hover:fill-darkBlue-60;
}

One of my manually set ones using a brand's hex color:
.DiscordIcon:hover {
  fill: #5865f2;
}

I didn't spend much time to try and learn Tailwind so I just figured out what worked by looking at Instagram's gradient background in plain CSS. I could identify "Streamlit red" as red-70 but the obvious guesses of how to insert a hex color for Reddit, Discord, LinkedIn brand colors didn't work out.

@MathCatsAnd thanks again for updating this! See my comment below:

I wonder if it's possible in Tailwaind to set some colors by other keywords than "red-50" and "blue-30" to instead create "brand-Discord" and "brand-Reddit" colors in the template

It is possible! See here and here for our specific use case. However, I think doing something like that would be a bit of an overkill for our use case, and also, I spotted another issue with this approach, where we have two different hover effects happening:
https://github.com/streamlit/docs/assets/103376966/0a993371-0f1a-43dc-bd74-5a3e66edc2ac
I'd simplify this and do something like this instead 👇
https://github.com/streamlit/docs/assets/103376966/864cebd7-391c-41c4-bb2b-28dd61f70f72
Which is more subtle, but also consistent and independent on whatever we add there. @snehankekre what do you think?
The code to achieve my proposed hover state would be something like this:
 .IconLink {
-  @apply relative rounded-full overflow-hidden flex justify-center items-center px-2 sm:p-2 hover:opacity-100 hover:scale-105 hover:bg-gray-10;
+  @apply relative overflow-hidden flex justify-center items-center px-2 sm:p-2;
 }

-/* Colors for hover states */
-.GitHubIcon,
-.InstagramIcon,
-.MediumIcon {
-  @apply hover:fill-gray-90;
-}
-
-.YouTubeIcon {
-  @apply hover:fill-red-80;
-}
-
-.TwitterIcon {
-  @apply hover:fill-darkBlue-60;
-}
-
-.DiscordIcon:hover {
-  fill: #5865f2;
-}
-
-.RedditIcon:hover {
-  fill: #ff4500;
-}
-
-.LinkedInIcon:hover {
-  fill: #0077b5;
-}
-
-.NewsletterIcon:hover path {
-  stroke: black;
+.Icon:hover {
+  @apply opacity-70;
 }

@sfc-gh-jgarcia I noticed that,  too (how the hover colors the background first then the icon when you hover farther in). I had just tried to match what was there, but happy to remove it or correct it so the icon color is affected by the link hover making it in unison. 🙂
Just let me know. I'm not opposed to overkill if it's neat and tidy, but I defer of course.

Appreciated! Let's see how @snehankekre feels about simplifying the hover states, since he's the main DRI for all things documentation related 😄

For now I converted the existing behavior into Tailwind syntax (merging the svg:hover behavior into the a:hover behavior so it doesn't appear to be a two-stepper. Happy to delete the colors if the simplification is desired. (I was just here with itchy fingers, so...)


Remove stray q character.

Typo in script from previous pull request. One character removed.

Coverage remained the same at 96.42% when pulling b2f9fc105a9ccfe525a25964a8dfeb532e7b12eb on strategicdata:stray-q-fix into de24959bd1b851726e7fa590530782e3e805f682 on theodi:master.

Ah lovely. Says a lot for my code review skills doesn't it? :smile:

Says a lot for my code review skills doesn't it?

My apologies for testing them!


Short backtrace.

With RUST_BACKTRACE=1, Debug outputs too much - entire screenful of a backtrace (similar to RUST_BACKTRACE=full when panic)
Can it instead output short backtrace (not going into backtrace capturing or failure's internal details, not continuing after "main") unless it's RUST_BACKTRACE=full?

Yeah. I think rendering a shortened backtrace would be useful. Accepting patches but I might also do this myself when I find time.


What type of value can be used as a field for Geocode on vectormap

Hi there, I use Kibana with Elasticsearch.
I am familiar with the geo_point type which I use with the default Kibana-maps.
However, I haven't been able to get the vectormap to work with my data.
Can you please tell me what should be the 'type' of the data and an example that would get plotted on the map?
Thanks!

@syljac this plugin only works for terms aggregations, since it expects string values. For example, country codes or state codes, like GA or CA. It will not work for the geo_point type. Kibana already has a tile map visualization that works for those. For more information, check out jvectormap.


control: Driving in slope

Need to add pitch angle to vehicle_state, will do that first

#262

Done with function default off


Feedback for "Create Roles for Applications Using Existing Role Templates"

https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/2670fd27fc804ad99313385711d644f6.html?locale=en-US&version=Cloud
Is SAP delivering roles or roles templates?
If SAP deliver only roles then documentaion should be updated accordingly

Hi i801193,
SAP does indeed deliver roles and role templates. The application developer defines scopes and attributes and bundles them into roles and role templates. If the roles have attributes, the admin or developer can create different versions of these roles with different values for the attributes. A common example is to create one version of the role with the attribute country and the value USA and another version of the role with the value Germany for country. They are based on the same role template. Roles are then bundled into role collections for assignment to users.
If you want the developer view, check out the developer guide here.
To get an overview of the role collections and roles SAP delivers with SAP BTP, check out this document. At the end of the document you can even see the role templates associated with the roles.

Let me know if the comment doesn't answer your question.

Thank you for the explanation.

This is not


SSL Certificate Error

Hello everyone, hope y'all doing well.
Yesterday, I started to getting this error:
Uncaught PHP Exception Tinify\ConnectionException: "Error while connecting: SSL certificate problem: certificate has expired (#60)" at /var/www/mywebsite/vendor/tinify/tinify/lib/Tinify/Client.php line 140
Level
CRITICAL

Since my project is really old and have a lots of dependencies, I can not run composer update command. Then I checked the difference between latest update-cacert.sh and mine. I replaced my update-cacert.sh with the new one and run the command. But I still got the error. What can I do? Is there any ideas?
Best Regards.

Hi lahmacun,
You will have to update this file: https://github.com/tinify/tinify-php/blob/master/lib/data/cacert.pem
On 30 September the LetsEncrypt root certificate expired which is used for validating the integrity of a secure connection to the tinify API service.
On most systems, this is not a problem because our certificates are cross signed and we include both the ISRG and DST root in the cabundle.. However the underlying TLS libraries on your system may fail to verify a cross signed certificate depending on the software and version, we made a release that excludes the expired cert.
I hope this resolves the issues you are seeing with our API service.
Please let us know whether the shared solution resolved the issue for you.

Hi @rkoopmans ,
Thanks for quick reply. Unfortunately, I still getting the error even though I updated to cacert.pem file and cleared my application cache.
I can provide you any information that you need to solve this problem. I had to temporarely disable the image compression on my website. I hope we can solve this issue soon.

Could you verify that the contents of your local cacert.pem and the one upstream (https://github.com/tinify/tinify-php/blob/master/lib/data/cacert.pem)
In case it is, please share your php and openssl version so we can try to reproduce it.

Contents of the files are exactly the same.
php -v
PHP 7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0 (cli) (built: Feb  9 2019 06:51:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0, Copyright (c) 1999-2018, by Zend Technologies

openssl version
OpenSSL 1.1.0l  10 Sep 2019

curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2u zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

Hi lahmacun,
We are facing the same issue on our project.
Here are our versions :
openssl version
OpenSSL 1.1.0j  20 Nov 2018
php -v
PHP 7.0.33 (cli) (built: Dec 29 2018 06:56:56) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33, Copyright (c) 1999-2017, by Zend Technologies
with blackfire v1.66.0~linux-x64-non_zts70, https://blackfire.io, by Blackfire
curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2q zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
Our content of cacert.perm are also identical
Thanks

Hi everyone,
We're encountering the very same issue.
Cacert.pem is identical, and we're getting the very same errors : Error while connecting: SSL certificate problem: certificate has expired (#60).

Hi,
I digged a bit deeper, and it seems that these versions of PHP are ignoring our certificate bundle and are using the system installed certificate bundles.
In my docker install with php:7.2.15-cli and php:7.0-cli I did the following steps to confirm:
$ rm /etc/ssl/certs/DST_Root_CA_X3.pem
and ran my tinify script and it successfully optimised various files.
Please update your operating systems, in particular the ca-certificates package. After updating ca-certificates, i did not have to remove the DST root manually.

Hi @rkoopmans,
Thank you, this solved the problem but I'm worrying about something. Is there any opportunity that this change may broke some other things?

Hi Iahmacun,
Thank you for the feedback.
it is highly unlikely that this change broke other things. Most likely it has resolved more potential issues because any LetsEncrypt enabled website would fail with a certificate error due to the expired DST Root. There is a bug in older versions of TLS libraries that incorrectly mark the connection as insecure.
The certificate is cross signed by ISRG Root and DST Root. DST expired, and even though you trust ISRG (which is still valid) the connection fails. Therefore removing the old expired DST Root solves the problem. On modern systems this is not a problem.

Hi,
I digged a bit deeper, and it seems that these versions of PHP are ignoring our certificate bundle and are using the system installed certificate bundles.
In my docker install with php:7.2.15-cli and php:7.0-cli I did the following steps to confirm:
$ rm /etc/ssl/certs/DST_Root_CA_X3.pem
and ran my tinify script and it successfully optimised various files.
Please update your operating systems, in particular the ca-certificates package. After updating ca-certificates, i did not have to remove the DST root manually.

Hello. My shared hosting does not allow deleting this file, are there any other options to solve the problem?

I have the same problem. Replaced the file. Does not work

Hi,
We changed our certificate chain, could you try connecting again? It should be resolved right now.

Hi,
We changed our certificate chain, could you try connecting again? It should be resolved right now.

Thanks. Works.


chore: UI tweaks

Just added a p tag to add space between component and model value

Hi @Sibiraj-S !
Take a look at the fork: https://github.com/optimistex/ng2-select-ex
There is fixed a lot of bugs includes your one.


Substation visualisation

About the PR

Substations now visualise when it is dis/charging, full or out of power.
Why / Balance

Fixes https://github.com/space-wizards/space-station-14/issues/28987
Also if my EMP changes go through then power sabotage will become more common, this change will help inform engineers that a substation is disabled by EMP and not receiving power.
Technical details

Creates a new SubstationVisualizer component for the server and client, copying and pasting snippets from code use for the Apc or Smes.
This is really just a stopgap solution. Ideally there would be some PowerNetBatteryVisualizer (name too long) that could accept various indicators for charge types, but I'm still learning the codebase. To-do in a separate PR, ideally after EMP changes are merged/closed.
Media

https://youtu.be/ozq1AjEGn-A

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog
:cl:

tweak: Substations now display their status.

ill give generic PowerNBVisualiser a fair go when i can
i can probably have it communicate with Apc through events

are you going to finish this PR?

Hello! Due to a lack of updates on this PR it will be closed for the time being. Thank you for your contribution!


App crash on IOS 15.0.0. Fatal Exception: NSInternalInconsistencyException

My app is a stock Flutter application and get crash on only ios 15.0.0.
Steps to Reproduce
I don't have a way to reproduce this issue. I only got this crash from production and can not reproduce it
This is the stack trace i got from firebase Crashlytics dashboard:

Fatal Exception: NSInternalInconsistencyException
The application must have a key window since the keyboard client must be part of the responder chain to function
[NSBigMutableString _markAsImmutable]

crash log
 Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x18189cd1c __exceptionPreprocess
1  libobjc.A.dylib                0x19a3226fc objc_exception_throw
2  Foundation                     0x18315edd8 -[NSBigMutableString _markAsImmutable]
3  Flutter                        0x10661eef0 (Missing)
4  Flutter                        0x10661f418 (Missing)
5  Flutter                        0x10661ee24 (Missing)
6  Flutter                        0x10661eb1c (Missing)
7  Flutter                        0x10661e894 (Missing)
8  Flutter                        0x10661e2f0 (Missing)
9  Flutter                        0x106920e44 (Missing)
10 Flutter                        0x106633690 (Missing)
11 Flutter                        0x10693a1a8 (Missing)
12 Flutter                        0x1068d5f78 (Missing)
13 Flutter                        0x1068d7df8 (Missing)
14 CoreFoundation                 0x1818b5550 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
15 CoreFoundation                 0x1818bdd3c __CFRunLoopDoTimer
16 CoreFoundation                 0x18185b3a8 __CFRunLoopDoTimers
17 CoreFoundation                 0x1818cab7c __CFRunLoopRun
18 CoreFoundation                 0x1818bb634 CFRunLoopRunSpecific
19 GraphicsServices               0x19d5dd600 GSEventRunModal
20 UIKitCore                      0x1841d4f68 -[UIApplication _run]
21 UIKitCore                      0x1841d45c8 UIApplicationMain
22 Runner                         0x104e09954 main + 5 (AppDelegate.swift:5)
23 ???                            0x1050ef71c (Missing)

</details>

<details>
<summary>crash log crashlytics.ios.exception</summary>

Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x10574831c FIRCLSProcessRecordAllThreads + 180
1  FirebaseCrashlytics            0x105748700 FIRCLSProcessRecordAllThreads + 1176
2  FirebaseCrashlytics            0x1057414c4 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x10573bc40 __FIRCLSExceptionRecord_block_invoke + 92
4  libdispatch.dylib              0x181529bb4 _dispatch_client_callout + 20
5  libdispatch.dylib              0x181539cf4 _dispatch_lane_barrier_sync_invoke_and_complete + 68
6  FirebaseCrashlytics            0x10573b3d8 FIRCLSExceptionRecord + 212
7  FirebaseCrashlytics            0x10573b6d0 FIRCLSExceptionRecordNSException + 536
8  FirebaseCrashlytics            0x10573afb8 FIRCLSTerminateHandler() + 400
9  libc++abi.dylib                0x19a431e10 std::__terminate(void (*)()) + 20
10 libc++abi.dylib                0x19a434dc4 __cxa_rethrow + 148
11 libobjc.A.dylib                0x19a3278b4 objc_exception_rethrow + 44
12 CoreFoundation                 0x1818bb720 CFRunLoopRunSpecific + 836
13 GraphicsServices               0x19d5dd600 GSEventRunModal + 164
14 UIKitCore                      0x1841d4f68 -[UIApplication _run] + 1100
15 UIKitCore                      0x1841d45c8 UIApplicationMain + 2204
16 Runner                         0x104e09954 main + 5 (AppDelegate.swift:5)
17 ???                            0x1050ef71c (Missing)

flutter doctor -v
```
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
• Flutter version 2.2.3 at /Users/kirito/fvm/versions/2.2.3
• Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/kirito/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
• No issues found!

@a313
You already seemed to have reported the same issue which has been prioritized, https://github.com/flutter/flutter/issues/87809. Please follow-up there for updates and don't open multiple issues for same reason.
Closing this as duplicate.

@a313
You already seemed to have reported the same issue which has been prioritized, #87809. Please follow-up there for updates and don't open multiple issues for same reason.
Closing this as duplicate.

Oh sorry. I think its diffrent because its have diffrent crash log as  #87809


fix: fix unstable plan shape in limit_push_down case

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall


Fix/external system

Beautiful change (as all bulk code removals)... it's my fault I haven't specified the requirements here more clearly, this could've be done so easily from the very beginning

Actually! you should likely now remove intelliJ.project.confirmAsTrusted() and all the related code from UI tests since this, well, no longer applies


Suggestion: Automatically limit thread only for first replyer

When a lot of mods online they can compete for an answer.
Instead possible !claim command (from #174) bot can temporarily lock permissions only for first typing mod.
Its can simply implemented with locking when a first TYPING_START event received and preventing being unlocked with further TYPING_START events.
Similar functionality implemented in VKontakte Group DMs.

👍

Merging into #174


refactor: persistence implementations in AssetIndex harmonize in CRUD…

… operations.
What this PR changes/adds
The persistence implementations in AssetIndex are refactrored in CRUD interactions.
Why it does that
consistency, recognizability
Further notes
Linked Issue(s)
ref #2559
Checklist

[ ] added appropriate tests?
[ ] performed checkstyle check locally?
[ ] added/updated copyright headers?
[ ] documented public classes/methods?
[ ] added/updated relevant documentation?
[ ] assigned appropriate label? (exclude from changelog with label no-changelog)
[ ] formatted title correctly? (take a look at the CONTRIBUTING and Etiquette for pull requests for details)

@majadlymhmd pls stick to the description in the issue.


parseFloat accepts dot even if its not part of culture

Hi.
Consider the text string "5.5", even if dot is not a seperator in the current culture the parseFloat will parse "5.5" into 5.5
I override the parseFloat and did this, maybe you guys can incorporate it into your code
Globalize.orgParaseFloat = Globalize.parseFloat;
Globalize.parseFloat = function(value) {
    var culture = this.findClosestCulture();
    var seperatorFound = false;
    for (var i in culture.numberFormat) {
        if (culture.numberFormat[i] == ".") {
            seperatorFound = true;
        }
    }

    if (!seperatorFound) {
        value = value.replace(".", "NaN");
    }

    return this.orgParaseFloat(value);
};

I have the same problem, but i found out there isn't any validation if the integer part of the number contains only numbers, so i place this code snippet in the globalize.js right before the "// build a natively parsable number string" part:
if (integer.replace(/[0-9]/g, '').length > 0) {
  return NaN;
}

Duplicate of #73


on_chat_start thread issue

I had refactored the code in https://github.com/Chainlit/docs/blob/aa50e881dde660ee7393b0b80427e6c88524a3a5/examples/qa.mdx#L53
I am missing something on the flow. I thought on_chat_start would be invoked once per run, but it seems to be invoked periodically. Because I read embeddings from cache, it gets repeated over and over from what I could tell. It feels like a simpler sync implementation might be helpful because it is not clear who gets called when easily (and I also wonder race conditions may get to be harder to debug)
@cl.on_chat_start
async def on_chat_start():
    files = None

    if False:
        # Wait for the user to upload a file
        while files == None:
            files = await cl.AskFileMessage(
                content="Please upload a text file to begin!",
                accept=["text/plain"],
                max_size_mb=20,
                timeout=180,
            ).send()

        file = files[0]

        msg = cl.Message(
            content=f"Processing `{file.name}`...", disable_human_feedback=True
        )
        await msg.send()

        # Decode the file
        text = file.content.decode("utf-8")

        # Split the text into chunks
        texts = text_splitter.split_text(text)

        # Create a metadata for each chunk
        metadatas = [{"source": f"{i}-pl"} for i in range(len(texts))]

    # Create a Chroma vector store
    embeddings = OpenAIEmbeddings()
    if False:
        docsearch = await cl.make_async(Chroma.from_texts)(
            texts, embeddings, metadatas=metadatas
        )
    else:
        msg = cl.Message(
            content=f"Processing Cache...", disable_human_feedback=True
        )
        await msg.send()

        embedder = EmbeddingsCache(".embeddings")
        docsearch = embedder.get_db()

    message_history = ChatMessageHistory()

    memory = ConversationBufferMemory(
        memory_key="chat_history",
        output_key="answer",
        chat_memory=message_history,
        return_messages=True,
    )

    model_name = 'gpt-3.5-turbo'
    model_name = 'gpt-3.5-turbo-16k'

    retriever = docsearch.as_retriever(search_kwargs={"k": 5})

    # Create a chain that uses the Chroma vector store
    chain = ConversationalRetrievalChain.from_llm(
        ChatOpenAI(model_name=model_name, temperature=0, max_tokens=4000, streaming=True),
        chain_type="stuff",
        retriever=retriever,
        memory=memory,
        return_source_documents=True,
    )

    # Let the user know that the system is ready
    #msg.content = f"Processing `{file.name}` done. You can now ask questions!"
    #await msg.update()

    cl.user_session.set("chain", chain)

@cl.on_message
async def main(message: cl.Message):
    chain = cl.user_session.get("chain")  # type: ConversationalRetrievalChain
    cb = cl.AsyncLangchainCallbackHandler()

    res = await chain.acall(message.content, callbacks=[cb])
    answer = res["answer"]
    source_documents = res["source_documents"]  # type: List[Document]

    text_elements = []  # type: List[cl.Text]

    if source_documents:
        for source_idx, source_doc in enumerate(source_documents):
            source_name = f"source_{source_idx}"
            # Create the text element referenced in the message
            text_elements.append(
                cl.Text(content=source_doc.page_content, name=source_name)
            )
        source_names = [text_el.name for text_el in text_elements]

        if source_names:
            answer += f"\nSources: {', '.join(source_names)}"
        else:
            answer += "\nNo sources found"

    await cl.Message(content=answer, elements=text_elements).send()

I use the Askfile when on-message send, then you can check if use send file or not with the message, also check again if chain is set in session during the on-message so you can get the chain. on resume will need to check if chain field existed in thread.metadata and then you can get the vectordb from vector db store( suggest you named collection is thread id)


DROOLS-1131,JBPM-5080 - removing docbook

Removes docbook from kie-docs, seeing as we now use AsciiDoc.

We need to somehow make sure the generated HTML is packed into an artifact and deployed into repository (or find another way to distribute the files when we want to push them to the drools.org/jbpm.org sites).
So far, the jdocbook maven plugin created a drools-docs-<version>.jdocbook (see e.g. https://repository.jboss.org/nexus/content/groups/public-jboss/org/drools/drools-docs/6.4.1-SNAPSHOT/)  files which bundled the generated HTML/PDF files.
If I understand correctly, this is not happening anymore. Running the build locally, I see that only drools-asciidocs-7.0.0-SNAPSHOT.jar and drools-asciidocs-7.0.0-SNAPSHOT-sources.jar are being installed/deployed. They are both basically identical and contain the asciidoc sources.
To be solution-oriented, instead of problem-oriented, I see few options here:

creating an maven assembly configuration which would pack the generated files into e.g. zip file, so the resulting artifact would be drools-docs-<version>.zip (and would the contain the HTML/PDF files)
somehow include the generated files into the default jar artifact (instead of the asciidoc files, which are already in the -sources jar).
enhance the asciidoctor-maven-plugin to allow new packaging type, similarly as maven-jdocbook-plugin does. That way, we would not need to copy&paste the configuration around and could just use the packaging to configure the common stuff for us. This is of course much more time consuming to implement.

I believe that in short-term the option 1 would be the best/easiest. Long-term we could take a look at enhancing the maven plugin as it could be useful feature for others as well.

Thank you, @psiroky !
I agree with option 1.
I'll submit a PR to do that by the end of this week.

@mrietveld great, thanks. Lets wait with this PR till then -- otherwise the kie-wb-distributions build would start to fail (as it currently depends on the jdocbook artifacts).

@psiroky Ahh.. I didn't realize that. Thanks.

Merged as https://github.com/droolsjbpm/kie-docs/commit/45c8323139dd05f5b7bd8cc35fc4f8d58a4a184e


Selector functions for FrameBase

Some of these functions have names we cannot use, containing $. Seems reasonable to call them variations of select. Other than necessary naming adjustments, we have more or less been following the typescript definitions. Some of these may already have stubs, but should be changed to use<EMAIL_ADDRESS>: t].
Typescript definition --> suggested name
$(selector: string): Promise<ElementHandle | null>; --> selectOne
$$(selector: string): Promise<ElementHandle[]>; --> selectAll
  waitForSelector(
    selector: string,
    options?: { visible?: boolean; hidden?: boolean; timeout?: number }
  ): Promise<ElementHandle>;

--> same name, options should be type selectorOptions created with a special creation function with all optional parameters.
Wouldn't be opposed to just calling these querySelect or querySelector, which is what it is calling in the frame/page.
References:
Typescript definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/puppeteer/index.d.ts
API Documentation:
https://github.com/GoogleChrome/puppeteer/blob/v1.1.0/docs/api.md
NOTE: The page interface should have a different select() function, which checks <options>s in a <select>.

This looks good to me!
page.$(..) --> page.selectOne(..)
page.$$(..) --> page.selectAll(..)
page.$$eval(..) --> page.selectAllEval(..)
page.$eval(..) --> page.selectOneEval(..)

I think that feels right. I'll make the adjustments to the names.


Not compatible with OpenCV 3.1

Hello,
On Windows with Visual Studio 2012 and 2015, after changing the dependency from OpenCV 3.0 to OpenCV 3.1, the code crashs before to start with the following message:
The application was unable to start correctly (0x000007b).
Click on OK to close the application.

And the library opencv_hal doesn't exists anymore in OpenCV 3.1.
Any hint on how to update from OpenCV 3.0 to 3.1?
Thanks in advance.

Hi,
Thank you for your report.
I will try updating to OpenCV 3.1 soon !
Regard,
puku0x

Hi,
After deeper investigate this issue, this error is not coming from OpenCV 3.1 as I succeed to make it works with.
The issue is coming from a switch from 32 bits to 64 bits. Have you try to compile your library in 64 bits?
Here what I did to make you able to reproduce the issue:

Compile OpenCV 3.1 in 64 bits
Compile FFMPEG in 64 bits
Unzip the 64 bits library for pthread from the provided zip
Open the Visual Studio solution
Switch in the settings to 64 bits compilation
Change the dependencie's name to link
Compile and then execute

I did these steps with both Visual Studio 2012 and 2015 to get the above error.
Regards.

Hi,
Thank you for providing the details.
I have never built my library in 64-bit environment but I will try it !
By the way, I updated the version of OpenCV which is bundled in CV Drone from 3.0 to 3.1 with opencv_contrib module. Please test it.
Regards,
puku0x

It is working correctly, thanks! I close this issue and open a new one for a 64 bits version.


Panic/nil when using properties and functions with same name

Thanks for the great project!
I'm getting a invalid memory address or nil pointer dereference panic on the line switch fn.Kind() { in checker.CallNode.
It happens when I have an unknown function, but a variable/property of the same name, with a nil value. This is totally a weird case, but it should probably error and not panic. A nil check on fn and error is probably in order. I've worked around it, but it would be good for future folks.

Simplest version here. This panics instead of returning error.
func TestExprDemo(t *testing.T) {
	env := map[string]interface{}{
		"foo": nil,
	}
	code := "foo() > 0"

	program, err := expr.Compile(code, expr.Env(env))
	if err != nil {
		t.Fatal(err)
	}

	output, err := expr.Run(program, env)
	if err == nil {
		t.Fatal("expected error from expr, missing function")
	}
}

Somewhat related: what are your thoughts on panic vs error. I see expr using panic throughout the codebase. I believe in golang, returning errors is more idiomatic. I wouldn't want a panic taking out a larger program. Should I wrap expr in defer/recover?
Maybe not directly applicable here (this isn't an intentional call to panic).

This is definitely a bug. expr.Compile should not panic. I'm investigating right now.
Regardless panics vs errors: as a library API it is good to only return errors in one way: via errors.
Internally, I prefer to use a thing that makes my life easier.  In some cases return error, in others panic with a recover.
Another interesting observation: VM uses panic to increase execution speed. I benchmarked with the same VM but with errors and it was 25% slower.

Got it -- you always aim to wrap your panics with recovers, this is just real bug. That makes sense!


Annotation-based commands

API | Common

What's the status on this PR?

I'll be updating this PR as soon as I can.


Issue 136 ansible template relative

Changed webserver.yml (in lsair-lsst-webapp - see other pull request) and lasair-db.yml in this repo. I've also renamed utility/mysql_setup.sql to utility/mysql_setup.sql.j2 and substantially modified it to accept database name, username, read only username and passwords from the vars settings in lasair-db.yml. Various other minor fixes imlpemented (documented in the scripts).

Looks fine to me. I will need to copy over to Lasair-deploy anyway.


Better Way to Deal with No Data Pixels

What do we do now? It doesn't seem to be working great. Pixels in the middle of the image are being incorrectly classified as nodata.

We have a filter to discard chunks where the label is equal to the label nodata value.  If you send me the test case where it is not working I can take a look at it.

I think the problem might be that we have a no-data value, which we use to eliminate all examples of nodata inputs.
But then we let the network predict the nodata value in the class outputs.
Possible courses of action:

Modify the cost function to have high penalty for predicting nodata when there is data.
Automatically exclude the no-data value from predictions altogether, i.e. go in and re-label everything so they are in the set [0, 1, 2, num_classes -1]
Automatically label any no-data values with the second-highest class value. Being able to do this hinges on filtering out the nodata periphery in the images from the input values alone, otherwise we won't know when to reject a nodata output.

I think option 2 is the best personally. I've been meaning for a while to let you configure the different classes in the configuration files: names for things like the confusion matrix, pixel values so you don't have to use 0, 1, 2, 3, and display colors for the classification tools. I can start working on this.

This breaks backwards compatability. "classes" has been moved from train -> network to dataset in the config since it is also used in classification. You can use the number of classes like before or a more descriptive version.


[🐞] useClientMount and useClientEffect doesn't seem to work

Which component is affected?
Qwik Runtime
Describe the bug
Hey i tried a bunch of things but even the timer provided example does nothing, the component simply does't update
even console.log() seems to do nothing, any idea ?
Reproduction
qwik 0.14.1
Steps to reproduce
just try the useClientEffect timer example from : https://qwik.builder.io/docs/components/lifecycle/
System Info
System:
    OS: Linux 6.0 Arch Linux
    CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
    Memory: 1.14 GB / 15.52 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 19.2.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chromium: 108.0.5359.71
    Firefox: 107.0.1

Additional Information
one thing to note is that when i click on the "Blow my mind" button and go back, then they do work, but they fail again when the page is refreshed.

Hi @alkeryn
Thanks for raising this issue 🙏  It seems to be related to two other issues which are already open (#1413 and #1955 ).
As a temporary workaround you can change the last line of the example as follow:
from:
return <>{store.count}</>;
to:
return <div>{store.count}</div>; // or any other html tag

oh thanks for that tip!
though, not being able to use fragments with it can prove another issue, hope it'll get fixed soon ! :)

Something that isn't super clear from the docs is that if a component mounted on the server, useClientMount$ will not run when the page loads. So from the docs:

Times: exactly once per component instance

I would suggest:

Times: exactly once per component instance, or never if the component was present on the initial page load

For the code example, I think it's worth drawing extra attention to the fact that useServerMount$ and useClientMount$ are mutually exclusive:
import { component$, useStore, useServerMount$, useClientMount$} from<EMAIL_ADDRESS>
export default component$(() => {
  const store = useStore({
    location: '',
  });
  useServerMount$(() => {
    store.location = 'server'
  });
  useClientMount$(() => {
    store.location = 'client' // This will only occur if there is client-side navigation, or the component only started being rendered after the initial page load
  });
  return <>I mounted {store.location} side!</>;
});

Here's a thread on discord where you can see the confusion play out in real time: https://discord.com/channels/842438759945601056/1048474481749921903/1048499061055029329

Agree that the docs can be better, gonna work on those this week! however things make more sense when you get the right mental model of qwik, code executes in the server and continues in the browser. Calling twice mount would be weird no?

Thanks for taking a look! Comparing the wording of these two hooks, the subtleties of what "mount" means in Qwik's mental model is a little muddy.

useClientMount$() - Trigger: component mount
useClientEffect$() - Trigger: component mount and on tracked state changes

This wording would make devs think that useClientMount$ is the same as a useClientEffect$ that only runs once.

in a way, they happen once... but at different times, one before render the other after.

i am even thinking that removing useServerMount$() and useClientMount$() might be a good idea, only have useMount$() and then use isServer or isBrowser conditionals...

I was kind of thinking the same thing, but will it allow server-only dependencies to be stripped out correctly? Don't want more of: https://github.com/BuilderIO/qwik/issues/1477

it production yes, but a bit more risky some side effects might be remaining, let's see if we can find a better way to explain useServerMount$() or useClientMount$()! ideas for a PR in the docs?

Sure, I can look at drafting up some clarifications.


Add Hello World in Java

Ground rules:

Whoever claims the Issue first, should send a Pull Request within 24 hours else it'll be assigned to another claimant and further Pull Requests regarding that issue will not be entertained.
Pull Requests sent without claiming and referencing the Issue will not be entertained.
Make sure your Pull Requests have just one commit in them. Squash multiple commits into one if you have to.

i claim it

i claim it

i want to claim this

I wanna claim it

I claim it

i want to claim this

i want to claim this


Node problem

when i try to install i am getting error some of nodes  not running

any help ?

Hi Vincent. Thanks for reporting.
Could you let me know in which OS you're trying to build the environment?
Looks like you're using our dockerized environment, right?

Hello Jeferson
Ubuntu 20.04 LTS

We reproduced the problem here, we'll be checking, and let you know.

Hey @vincentpricex, this commit should fix the issue (fixed for me).
I recommend you delete these folders if they were created on your env:

api
nodeutils
kafka
webrtc
websocket
ui

After removing them (those folders are git-ignored on the devenv repository), please try to run the build script again.
Please let us know if you see any additional problems (the environment setup is a new piece developed exclusively for the open-sourcing project, so it may be susceptible to problems).

Error response from daemon: Conflict. The container name "/airsend.kafka.worker.high" is already in use by container "bc8d2d3c78bc9597afc595dd059ea640b8b562e37652c584e4c39d66dfcfec08". You have to remove (or rename) that container to be able to reuse that name.


k3s won't startup with tailscale if ipv6 applied

Environmental Info:
K3s Version: k3s version v1.21.7+k3s1 (ac705709)
go version go1.16.10

Node(s) CPU architecture, OS, and Version: Linux  5.11.0-1021-azure #22~20.04.1-Ubuntu SMP Fri Oct 29 01:11:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Cluster Configuration: 1 master

Describe the bug:

Cluster master won't startup if --flannel-iface=tailscale0 is provided in INSTALL_K3S_EXEC. Only occurs when ipv6 is enabled.
Work if --flannel-iface is not set or not tailscale0:
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip=100.xxx,fd7a:xxx --disable-network-policy=true --service-cidr=<IP_ADDRESS>/16,fc15:2::/112 --cluster-cidr=<IP_ADDRESS>/16,fc15:1::/56  --flannel-iface=eth0" sh -
Work if ipv4 only:
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip=100.xxx --service-cidr=<IP_ADDRESS>/16 --cluster-cidr=<IP_ADDRESS>/16  --flannel-iface=tailscale0" sh -
Does not work:
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip=100.xxx,fd7a:xxx --disable-network-policy=true --service-cidr=<IP_ADDRESS>/16,fc15:2::/112 --cluster-cidr=<IP_ADDRESS>/16,fc15:1::/56 --flannel-iface=tailscale0" sh -
Steps To Reproduce:

curl -fsSL https://tailscale.com/install.sh | sh
tailscale up
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip=100.xxx,fd7a:xxx --disable-network-policy=true --service-cidr=<IP_ADDRESS>/16,fc15:2::/112 --cluster-cidr=<IP_ADDRESS>/16,fc15:1::/56 --flannel-iface=tailscale0" sh -

Please change 100.xxx,fd7a:xxx to your actual ip on tailscale0
Expected behavior:

Cluster master will startup with ipv6 functionalities
Actual behavior:

Cluster master throw an error: flannel exited: failed to configure interface flannel-v6.1: failed to ensure v6 address of interface flannel-v6.1: failed to add v6 IP address fc15:1::/56 to flannel-v6.1: invalid argument and keep restarting
There seems to be related to the flannel cni:
root@:/home/ubuntu# ip addr add fc15:1::/56 dev flannel-v6.1
RTNETLINK answers: Invalid argument
root@:/home/ubuntu# ip addr add fc15:1::/56 dev tailscale0
root@:/home/ubuntu# echo $?
0

Additional context / logs:

45617 controllermanager.go:142] Version: v1.21.7+k3s1
45617 secure_serving.go:202] Serving securely on <IP_ADDRESS>:10258
45617 tlsconfig.go:240] Starting DynamicServingCertificateController
Level=info msg="Starting /v1, Kind=Secret controller"
45617 kube.go:127] Node controller sync successful
45617 vxlan.go:137] VXLAN config: VNI=1 Port=0 GBP=false Learning=false DirectRouting=false
45617 kube.go:345] Skip setting NodeNetworkUnavailable
level=fatal msg="flannel exited: failed to configure interface flannel-v6.1: failed to ensure v6 address of interface flannel-v6.1: failed to add v6 IP address fc15:1::/56 to flannel-v6.1: invalid argument"

Backporting

[ ] Needs backporting to older releases

What kind of interface is tailscale0? What driver is it using? Does it support subinterfaces?

I'm sorry, how can I find out these information?
Now all I know about this interface is:
163: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none
    inet <IP_ADDRESS>/32 scope global tailscale0
       valid_lft forever preferred_lft forever
    inet6 fd7a:115c:a1e0:ab12:4843:cd96:6261:3648/128 scope global
       valid_lft forever preferred_lft forever

What kind of interface is tailscale0? What driver is it using? Does it support subinterfaces?

@brandond Thanks for helping
I'm sorry, how can I find out these information?
Now all I know about this interface is:
163: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none
    inet <IP_ADDRESS>/32 scope global tailscale0
       valid_lft forever preferred_lft forever
    inet6 fd7a:115c:a1e0:ab12:4843:cd96:6261:3648/128 scope global
       valid_lft forever preferred_lft forever

I suspect that since this is a point-to-point connection, it doesn't support adding more than one address of a given type. You might go ask the upstream project at https://github.com/flannel-io/flannel if there is anything that can be done to make this work?
also cc @manuelbuil

I suspect that since this is a point-to-point connection, it doesn't support adding more than one address of a given type. You might go ask the upstream project at https://github.com/flannel-io/flannel if there is anything that can be done to make this work?
also cc @manuelbuil

Yeah, most likely this is the problem. I'll try to reproduce it

@tearfulDalvik before starting digging into this, if you are using tailscale to add wireguard, please note that flannel can use wireguard too when choosing that as backend

https://github.com/tailscale/tailscale/issues/3575

@manuelbuil, thank you. After slightly increasing the MTU, flannel and tailscale works together now. I think that the wireguard backend is not ready for dual stack yet #4364, I'll try after new releases are published.


Missing documents and doc directory

The README references two documents in a doc directory:  rationale.md and using.md. The directory and the documents are missing.

Thanks @statonjr, but we're already tracking this issue in #1.  Closing as a duplicate.


Mobs Not Spawning

I setup a mob farm with Mob Grinding Utils' Dreadful Dirt. No mobs are spawning.
I have night vision via EveryLastingAbilities, which is why it all seems lit up, but I disabled it then re-entered the Hyperbox, and it seemed plenty dark.
ATM9 To the Sky - 1.1.1
Hyperbox-1.20.1-<IP_ADDRESS>

The hyperbox biome intentionally has no mob spawn entries


HTTPSConnectionPool

Hello,
thanks for your effort in developing this useful library
I used it multiple times before, at this time I used the same code but an error occurred
can you please help me
[2020-12-14 14:02:59,134 - farasapy_logger - ERROR]: an error occured
[2020-12-14 14:02:59,135 - farasapy_logger - ERROR]: HTTPSConnectionPool(host='farasa-api.qcri.org', port=443): Max retries exceeded with url: /farasapy/releases/download/toolkit-bins-released/farasa_bin.zip (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

Thanks for reporting such issue. It seems that this is a problem with farasa team in delivering the required binaries. I will check with them and provide my updates. Again, thanks for reporting such issue.

Hello Maged, any update on this issue? Thanks a lot for your help

I already have sent an email with the issue. Waiting for their response. I hope they will reply to us soon!

@AseelAlshorafa ,
@RomainBsb
The problem has been resolved. I am thankful for Farasa maintainers for their prompt response and quick fix. Please check and confirm. Please close the issue if you do not have any further concerns.
Here is the tests notebook so that you can try on the fly:
[https://colab.research.google.com/drive/1xjzYwmfAszNzfR6Z2lSQi3nKYcjarXAW#scrollTo=wkovt8hvTabq]

@MagedSaeed , that's working very well on my side! Thanks for the quick fix

The problem is solved, Thanks for the fast response

Thanks for staying tuned,.


Support 14 digit barcode

I have a card with a 14 digit code on it. Could this be added to the app?

what is the barcode type for your barcode?

I have no clue other than it shows 14 digits.

Do you have a picture of the barcode or is it only the digits? If you only have the digits and no barcode you could try the CODE128 or CODE39 barcode type.  The only problem is that since the screen of the Flipper Zero is so small it might not be able to display all 14 digits.

Closing issue for inactivity. If you have any questions feel free to comment on this issue.


[X] WSL 2
[ ] WSL 1

Kernel Version
Kernel version: <IP_ADDRESS>-2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Perform a windows update and restart your computer.
Expected Behavior
The expected behavior is the WSL and all of the files within it should service the update.
Actual Behavior
The WSL was corrupted and all of the information within it was destroyed.
Diagnostic Logs
No response

WslLogs-2024-07-15_21-27-27.zip

For anyone else who has found this thread, @zuohl's response shows how to recover from this error.  Thank you @zuohl !

My WSL instance was corrupted even after I ran your command.

/logs

/logs

I have since switched operating systems; no logs available.

Closing since no logs are available.


Is there a typo?

AnimateAnyghing -> AnimateAnything

Thanks for pointing out the typo. I have corrected it.


Capstone project

In this project, I learned the following:-
Use semantic HTML tags and apply best practices in HTML code.
Use CSS selectors correctly.
Use CSS box model.
Use Flexbox to place elements in the page.
Demonstrate ability to create UIs adaptable to different screen sizes using media queries.
Use GitHub Pages to deploy web pages.
Use JavaScript to manipulate DOM elements.
Use JavaScript events.

@AbdelazizSoliman
This is a manual review
Approved :+1:
Cheers and Happy coding!:clap::clap::clap:


New post: How to verify downloads with GPG signatures

Information on how to use the new functionality that we are including in the July releases.
This may be something that we can streamline by changes to the API in the future, but this describes how to do it at present.
Signed-off-by: Stewart X Addison<EMAIL_ADDRESS>

Note to reviewers - the preview link is out of date - do NOT review the preview in the earlier comment.


Fix one camera bug and clean up code

Addressed the feedback on the previous merged PR #89.
There was an issue where if there was only one camera and no frustum scale, the code would break. In this scenario, I decided to set the frustum_scale to 1. Would this be a good default value?

Nice work. Yeah, I think 1 is a very reasonable default. The user can always provide a value if they see that it's way off, it's just confusing if they have to debug logic errors that cause an error.

Also this is our 100th issue/PR :smiley:

Double also, can you delete your feature branch now that this is merged?


jspm doesn't pull the latest code

I am using this for jspm jspm install font jspm is pulling the last release 0.1.0 which doesn't contain the latest code and actually is broken because of this d7bd8edf006f2499db3182fc4b615abf34388a07
Can you make a new release with the latest code?
Right now I just use master branch but I would like to see some release so that way people don't get confuse

@guybedford sorry man, is someone reviewing this repo?

@maxnordlund was maintaining at one point, but I'm not sure if he's still able to assist. Otherwise will review when I can.

I been super busy IRL lately, and will be away for a month starting next week. So if @guybedford could could take the lead, I would be very grateful.

@maxnordlund was swamped with the last release. Any chance you have time again now? Otherwise I'll still aim to put some time aside for it when I can.

I just got back from that month long trip, and I'm still getting back into the groove. If @guybedford could cut a release (and make sure nothing broke), I'll try to start looking at this again.


Prod Ninbot hates emojis

Errors are thrown when saving a poll or stream title with emojis.
org.springframework.orm.jpa.JpaSystemException: could not execute statement [Incorrect string value: '\xF0\x9F\x9A\x99 /...' for column 'title' at row 1]
The database connection string already has ?useUnicode=yes&characterEncoding=UTF-8 added to it. This issue does not occur locally. It's possible that the prod database is the issue so it'd be good to check by connecting local Ninbot to the prod database.


Update favicon

Update favicon to something like your github avatar instead of the vercel icon.
Github Avatar: https://avatars.githubusercontent.com/u/91655303?v=4
I can try to help you on this.

You changed your avatar, so this is outdated ig.


Kanban Project Review

The project consists of 2 team members working with the  Kanban Baord

Hi Team,
Great job !!!
To Highlight! :clap:  :green_circle:
:heavy_check_mark:  Great job with task distribution.
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
N/A
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

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


adds 4D Schedule API Consumer to ES-API Samples repo

As I said previously, we should discuss how to organize the repo. At the very least, LICENSE and some kind of README needs to be at the root folder.


R36S: Stuck on the help screen

So, after the R36S package was released i gave it a try and it seems to get stuck on the help screen, i tried to all the buttons but it doesn't seem to work, i had to reboot the console to get back to the main screen.

Sorry I can't reproduce this on my R36S, mine is panel v4.
What's yours?

Sorry I can't reproduce this on my R36S, mine is panel v4. What's yours?

@haoict I have the exact same panel! Not sure what i am doing wrong, maybe the key mapping is wrong on my side? I am using Rocknix as the OS.

@SlyBouhafs ah that's probably the reason, I built it for ArkOS , sorry Rocknix is not supported for now


"Cozmeni" and "Lăzărești" are listed in the drop-down menu

Description:
"Cozmeni" and "Lăzărești" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Cozmeni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Cozmeni, HARGHITA (Cozmeni)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 1
Type  again "Cozmeni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Cozmeni, HARGHITA".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Lăzărești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Lăzărești, HARGHITA (Cozmeni)".


Woodwright's Shop (PBS)

Although PBS should be supported, this particular format doesn't seem to work.
There are usually several videos listed on one page, clicking on one doesn't change the URL in the address bar. I'm using the latest MacPorts youtube-dl at this time.
Here's an example output:
~/Movies$ youtube-dl --verbose http://www.pbs.org/woodwrightsshop/watch-on-line/2009-2010-episodes/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.pbs.org/woodwrightsshop/watch-on-line/2009-2010-episodes/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.19
[debug] Python version 2.7.7 - Darwin-13.2.0-x86_64-i386-64bit
[debug] Proxy map: {}
[PBS] 2009-2010-episodes: Downloading webpage
ERROR: Unable to extract player URL; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 516, in extract_info
    ie_result = ie.extract(url)
  File "/opt/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 167, in extract
    return self._real_extract(url)
  File "/opt/local/bin/youtube-dl/youtube_dl/extractor/pbs.py", line 44, in _real_extract
    webpage, 'player URL')
  File "/opt/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 383, in _search_regex
    raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract player URL; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

I hadn't tried this in a while. It is still now working, but it now looks like a different error is coming up. It appears some exception handling in the PBS extractor is broken.
$ youtube-dl --verbose --flat-playlist 'http://www.pbs.org/woodwrightsshop/watch-on-line/watch-season-episodes/2015-2016-episodes/'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--flat-playlist', u'http://www.pbs.org/woodwrightsshop/watch-on-line/watch-season-episodes/2015-2016-episodes/']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2016.01.01
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4
[debug] Proxy map: {}
[pbs] 2015-2016-episodes: Downloading webpage
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/me/bin/youtube-dl/__main__.py", line 19, in <module>
File "/Users/me/bin/youtube-dl/youtube_dl/__init__.py", line 410, in main
File "/Users/me/bin/youtube-dl/youtube_dl/__init__.py", line 400, in _real_main
File "/Users/me/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1677, in download
File "/Users/me/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 665, in extract_info
File "/Users/me/bin/youtube-dl/youtube_dl/extractor/common.py", line 291, in extract
File "/Users/me/bin/youtube-dl/youtube_dl/extractor/pbs.py", line 427, in _real_extract
File "/Users/me/bin/youtube-dl/youtube_dl/extractor/pbs.py", line 409, in _extract_webpage
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 141, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or buffer


Updated version and hashes

Overview

Updated version and hashes
Jira Ticket: PKG-229
Upstream: https://gitlab.com/graphviz/graphviz/
Change log:

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_7bs9ojtsho/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_7bs9ojtsho/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
Warnings were found

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_57cnqhiypr/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
WARNING: /tmp/abs_57cnqhiypr/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
Warnings were found

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_2bkmf1hhbj/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_2bkmf1hhbj/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
Warnings were found

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_066vl83rh_/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_066vl83rh_/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
Warnings were found

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_f7lij_b3hi/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
WARNING: /tmp/abs_f7lij_b3hi/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
Warnings were found


errors: add error for wild card scope validation

Codecov Report

Merging #340 (ae9ac7b) into main (3981f69) will increase coverage by 0.07%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #340      +/-   ##
==========================================
+ Coverage   74.80%   74.88%   +0.07%
==========================================
  Files          23       23
  Lines        2203     2210       +7
==========================================
+ Hits         1648     1655       +7
  Misses        437      437
  Partials      118      118

Impacted Files
Coverage Δ

verifier/trustpolicy/trustpolicy.go
91.69% <100.00%> (+0.21%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

❯ cat trustpolicy.json --plain
{
    "version": "1.0",
    "trustPolicies": [
        {
            "name": "notation-demos-images",
            "registryScopes": [ "localhost:5000/hello/*" ],
            "signatureVerification": {
                "level" : "strict"
            },
            "trustStores": [ "ca:notation-demos.io" ],
            "trustedIdentities": [
                "*"
            ]
        }
    ]
}

❯ ./bin/notation policy import ./trustpolicy.json
Existing trust policy configuration found, do you want to overwrite it? [y/N] y
Error: failed to validate trust policy: registry scope "localhost:5000/hello/*" with wild card(s) is not valid, make sure it is a fully qualified repository without the scheme, protocol or tag. For example domain.com/my/repository or a local scope like local/myOCILayout