API error whilst subscribing to events for unknown Frigate instance frigate

Since the last update of the frigate-card in my Home Assistant, it doesn't show the camera's anymore, but only the message:

Camera initialization failed: API error whilst subscribing to events for unknown Frigate instance frigate. Check troubleshooting.

I've checked everywhere, but I can't find what's going wrong.
Frigate addon version: 0.14.1 (latest)
Frigate HACS integration version: 5.6.0 (latest)
Frigate-card HACS integration version: 6.0.3 (latest)
Browser cache cleared (although the error does not seem related to browser cache)
In my Frigate addon, I have 2 camera's configured: 1 Reolink doorbell and 1 Imou Life ONVIF camera. Both work fine in Frigate and show live feed.
When I create a new frigate card on my dashboard, it shows by default a weather radar as camera feed. As soon as I change the camera feed to one of my frigate camera's or add an extra camera the error above pops up and nothing is shown anymore on the card (also no frigate default logo which I can long-click to see diagnostics) When I add the default menu on the card, it gives the following diagnostics:
view: diagnostics
cameras_capabilities: {}

When I check diagnostics on a frigate card with my Weather feed it gives me this:
card_version: 6.0.3
browser: >-
  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/<IP_ADDRESS>
date: 2024-12-11T14:05:39.458Z
lang: en
timezone: Europe/Brussels
git:
  hash: 47fdfbc
  build_date: Wed, 11 Dec 2024 03:36:17 GMT
  commit_date: Tue, 10 Dec 2024 19:35:09 -0800
ha_version: 2024.12.2
integrations:
  reolink:
    detected: true
  frigate:
    detected: true
    version: 5.6.0
    devices:
      01JA37YHK43DFXGYJXZEQQ4JFC: 5.6.0/0.14.1-f4f3cfa
  hass_web_proxy:
    detected: false
  motioneye:
    detected: true
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.radar_thuis

My original yaml for the frigate card with 2 camera feeds (the one that is now showing the error):
type: custom:frigate-card
cameras:
  - camera_entity: camera.cam_deurbel
    live_provider: ha
  - camera_entity: camera.cam_achterkant
    live_provider: ha
menu:
  position: bottom
  button_size: 40
  alignment: right
  buttons:
    frigate:
      enabled: true
    cameras:
      enabled: false
    substreams:
      enabled: false
    live:
      enabled: true
      alignment: opposing
    clips:
      enabled: false
    recordings:
      enabled: false
    expand:
      enabled: true
    timeline:
      enabled: false
    media_player:
      enabled: false
    mute:
      enabled: true
    screenshot:
      enabled: false
  style: overlay
live:
  controls:
    thumbnails:
      mode: none
    builtin: false
  preload: true
  transition_effect: slide
dimensions: {}
media_gallery:
  controls:
    thumbnails:
      size: 140
      show_favorite_control: false
      show_timeline_control: false
      show_download_control: false
    filter:
      mode: none
performance:
  style:
    border_radius: true
    box_shadow: true
  features:
    animated_progress_indicator: true
layout_options:
  grid_columns: full
  grid_rows: 6
view:
  default: live
  camera_select: live
  triggers:
    untrigger_seconds: 15
    actions:
      trigger: live
    filter_selected_camera: false
  default_cycle_camera: true
  default_reset:
    interaction_mode: all
    every_seconds: 60
  dark_mode: "on"
cameras_global:
  dimensions:
    layout:
      fit: contain
profiles: []

I have also checked out https://github.com/dermotduffy/frigate-hass-card/issues/1727 but that didn't help either. My client_id in frigate.yaml is "Frigate" and when I add that client_id in the card yaml I keep getting the same error.
I hope someone can help me out, cause I can't seem to find what is wrong...
Thanks a lot!
Michiel.

The default Frigate instance usually has a client_id of frigate. Sounds like you have changed that to Frigate (it will be case-sensitive).
It's one of these is descending order of likelihood:

You are mismatching client_id between the Frigate config and card config.
Your Frigate integration isn't installed correctly.
Your MQTT integration isn't installed correctly.

For idea #1, you must exactly match the client_id field, e.g.:
type: custom:frigate-card
cameras:
  - camera_entity: camera.cam_deurbel
    live_provider: ha
    frigate:
      client_id: Frigate <------------------------- Added, case sensitive

... where Frigate is the value you are using in your frigate (not card) configuration.
If you're sure that's right (and it isn't in the config you pasted!), then check if there is anything in your Home Assistant logs that shows up when the shows this. That would help you figure out if the problem is 2 or 3 as mentioned above.

I noticed indeed that my client_id in frigate.yaml was with capital F and I also added it like that in the card yaml, but it didn't help.
Also it has always been like this (at least I didn't change the client_id in frigate.yaml since I installed it).
I will check HA Logs to see if I can find anything else that points to a problem. I'm guessing MQTT is working fine also as I use Zigbee2MQTT extensively and no problems there (same MQTT instance).

Can you share the exact card YAML that doesn't work with the client_id specified? Anytime in your Home Assistant logs when the card shows this error?

OK, this is really weird... I found some errors about the local-tuya integration (missing configuration). It's something I don't use anymore (migrated to Tuya-Local). Removed the local-tuya integration, restarted and now everything works fine again.
I don't see any relationship between local-tuya and frigate-card...
Anyway, thanks for the tip to check the HA Logs!


Hentai2Read still buggy

Source information
Hentai2Read 1.4.15
Source language
English
Steps to reproduce

Open extension
Some thumbnail still broken especially those in the library

Expected behavior
Thumbnail shown
Actual behavior

Mihon/Tachiyomi version
TachiyomiJ2K 1.7.4
Android version
Android 14
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[ ] I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Seems fine on my end, J2K & Mihon. Try clearing the extension's cookies (Browse Page > Extensions Tab > Extension Settings > Three-dots)
If not, try changing user-agent & restarting the app

May I know your user agent?

clear database in advanced settings

clear database in advanced settings
@blackheart911126 also don't post nsfw images

Sorry, tried to cut it off but didn't realized there's one NSFW there..

clear database in advanced settings
@blackheart911126 also don't post nsfw images

Tried on Mihon and worked perfectly.. Tried on TachiyomiJ2K and fails..


Add tests for Configurations.java

Expected Behavior
Tests for data-plane/core/src/main/java/dev/knative/eventing/kafka/broker/core/utils/Configurations.java
Actual Behavior
No tests for data-plane/core/src/main/java/dev/knative/eventing/kafka/broker/core/utils/Configurations.java
Additional Info
/good-first-issue
/area data-plane
/area test

I'll take this one.

Hi @shyamrox,
you can comment /assign get the issue assigned to you and let other people in the community know you're working on this issue.

/assign


[1.11.2] [1.1.7] Eggs?

Hello,
where can i disable the egg break into raw eggs, or is this a config that needs to be included?
greetz

Why would you want to disable it? They still spawn baby chickens the same amount, just whenever it doesn't spawn a chicken it gives you food instead.

Eh, I'll separate it anyways. I can see a purpose.


Extra indentation of braces

Under the heading Implement the cross-platform components,  item 5, there is an extra indentation of braces for the Resolve method. This is not required.

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

ID: ae6b97ae-ec64-6de9-8f02-16f91f5f9519
Version Independent ID: d9748b97-4afb-fc97-9598-188bd460cc13
Content: Send push notifications to Xamarin.Forms apps using Azure Notification Hubs via a backend service
Content Source: articles/mobile-apps/notification-hubs-backend-service-xamarin-forms.md
Service: mobile-services
GitHub Login: @mikeparker104
Microsoft Alias: miparker

Closing this issue due to staleness. We apologize for the delayed response. If you are still encountering the problem you've described, please re-open the issue within 2 weeks and we'll take a look. Thanks!
#label:"UUF-Stale-Not Planned"


Allow to use negative index of array in python

Allow to use negative index like arr[-1] in python. This makes the usage of Array consistent with Python list/tuple
cc @tqchen

I believe @merrymercy 's comment has been addressed. Thanks @vinx13 @merrymercy @tqchen This is merged.


Unable to open file (file signature not found)

Hi donyam, can you please provide a clear description of the specific problem you are facing?


[Bug] Two-way Binding a property using TextCaseConverter throws a NotImplementedException

Description
Binding a property using TextCaseConverter will throw a NotImplementedException if the property is updated in viewmodel.
Steps to Reproduce
Create an <Entry Text="{Binding AnyString, Converter={StaticResource TextCaseConverter}}" /> and set the property AnyString to a value in the constructor.
This will cause the ConvertBack-function to be called and it throws a NotImplementedException.
Expected Behavior
Returns the string as provided.
Actual Behavior
Throws a NotImplementedException.

I don't understand the use case for wanting to have a two way binding which won't convert backwards. Why are you using it this way?

@nord- can you provide a small and simple project that reproduces this issue?
Then we can debug and see if we can fix it in another way. Not throwing the exception is a breaking change and this lib is in code freeze mode, so we would like to avoid changing any existing behavior.

Yes. You can find a project reproducing the error here.

It's a one-way converter, so two-way conversion is not supported

@nord- you can use the TextTransform="Uppercase" property of the entry.
Think this converter is meant more for labels

@nord- you can use the TextTransform="Uppercase" property of the entry.

Wow! I didn't even know there was a TextTransform property on entry! Yes, that's exactly what I want to achieve, and much easier than using a converter… Thanks!


tf.keras.Model.fit() training works fine but custom training loop fails for identical model, optimizer, and loss function

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10, Anaconda
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): 2.4.0
Python version: 3.8.0
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

v2.4.0-rc4-71-g582c8d236cb 2.4.0
Describe the current behavior
Code
`from tensorflow.python.eager import backprop
import tensorflow as tf
import numpy as np
import math
print("TensorFlow version: {}".format(tf.version))
print("Eager execution: {}".format(tf.executing_eagerly()))
#Equation to generate data
#y = x * 0.1
def calulate(x):
return sum([i*0.1 for i in x])
#Generate samples in batch
def samples(size):
x = np.random.random((size, 4))
y = np.zeros((size))
for i in range(size):
y[i] = calulate(x[i])
return x,y
#Model
model = tf.keras.Sequential([
tf.keras.layers.Dense(1, input_shape=(4,))
])
#loss function and optimizer
loss = tf.keras.losses.MeanSquaredError(reduction="auto")
optimizer = tf.keras.optimizers.Adam(learning_rate=0.01)
#Validation function
def validate():
x = np.random.random((5, 4))
y = [calulate(i) for i in x]
e = model.predict(x)
print("{} ==> {} , {}".format(x, y, e))
#Model.fit
def train_default(epoch) :
x, y = samples(64000)
model.compile(optimizer=optimizer, loss=loss)
history = model.fit(x, y, epochs=epoch, validation_split = 0.2)
#Custom train
def train_custom(steps):
x = []
y = []
for _ in range(2000):
xe, ye = samples(32)
x.append(xe)
y.append(ye)
for episod in range(steps):
    episod_loss = tf.keras.metrics.Mean()
    for i in range(2000):
        with tf.GradientTape() as tape:
            e = model(x[i], training=True)
            l = loss(y[i], e)
        grads = tape.gradient(l, model.trainable_weights)
        #optimizer.minimize(l, model.trainable_variables, tape=tape)
        optimizer.apply_gradients(zip(grads, model.trainable_weights))
        episod_loss.update_state(l)
    print("episod: {} loss: {}".format(episod, episod_loss.result()))
    print(model.trainable_weights)

#Tensorflow extension
loss_tracker = tf.keras.metrics.Mean(name="loss")
mae_metric = tf.keras.metrics.MeanAbsoluteError(name="mae")
class CustomModel(tf.keras.Model):
def train_step(self, data):
x, y = data
    with tf.GradientTape() as tape:
        y_pred = self(x, training=True)  # Forward pass
        l = loss(y, y_pred)

    #Compute gradients
    trainable_vars = self.trainable_variables
    gradients = tape.gradient(l, trainable_vars)

    #Update weights
    self.optimizer.apply_gradients(zip(gradients, trainable_vars))

    #Compute our own metrics
    loss_tracker.update_state(l)
    mae_metric.update_state(y, y_pred)
    return {"loss": loss_tracker.result(), "mae": mae_metric.result()}

@property
def metrics(self):
    return [loss_tracker, mae_metric]

def train_extended(steps):
#Construct an instance of CustomModel
inputs = tf.keras.Input(shape=(4,))
outputs = tf.keras.layers.Dense(1)(inputs)
model = CustomModel(inputs, outputs)
#We don't passs a loss or metrics here.
model.compile(optimizer=optimizer)

x = []
y = []
for _ in range(2000):
    xe, ye = samples(32)
    x.append(xe)
    y.append(ye)

for episod in range(steps):
    for i in range(2000):
        model.fit(x[i], y[i], epochs=1, verbose= 0)
    print("episod: {}".format(episod))
    print(model.trainable_variables)

##Works
#train_default(5)
#validate()
#Works
#train_extended(5)
#validate()
#Don't work
train_custom(5)
validate()`
Describe the expected behavior
train_custom function should also works like other
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

@Georji-Ghosh,
I did not face any errors while running the code with TF v2.4. Please find the gist of it here.
Could you please let us know the expected output, so that we can look into it. Thanks!

@Georji-Ghosh,
I did not face any errors while running the code with TF v2.4. Please find the gist of it here.
Could you please let us know the expected output, so that we can look into it. Thanks!

@amahendrakar Thanks for taking time to look into the issue.
The code runs properly and there is no issue in execution. But the issue is in the result generated.

When we train the model from scratch using either of "train_default()" or "train_extended()"  methods it works fine and all the weights goes ~0.1 as expected as the data generated using y=0.1x method and model has only one dense layer mapping input to output.
episod: 4 [<tf.Variable 'dense_2/kernel:0' shape=(4, 1) dtype=float32, numpy= array([[0.10025591],     [0.09995212],     [0.10002392],     [0.10034888]], dtype=float32)>, <tf.Variable 'dense_2/bias:0' shape=(1,) dtype=float32, numpy=array([0.00022549], dtype=float32)>]
When we train the model using custom training loop "train_custom()" it doesn't converges and the weights gets wrong values.
episod: 4 loss: 0.0034574554301798344 [<tf.Variable 'dense_1/kernel:0' shape=(4, 1) dtype=float32, numpy= array([[0.00126073],     [0.00269012],     [0.00523321],     [0.0034958 ]], dtype=float32)>, <tf.Variable 'dense_1/bias:0' shape=(1,) dtype=float32, numpy=array([0.19942063], dtype=float32)>]

My expectation is that both ways of training with same amount of training data should generate the same kind of weights in the model.
actually to be more specific model.fit is not working same as
       with tf.GradientTape() as tape:
            e = model(x[i], training=True)
            l = loss(y[i], e)
        grads = tape.gradient(l, model.trainable_weights)
        #optimizer.minimize(l, model.trainable_variables, tape=tape)
        optimizer.apply_gradients(zip(grads, model.trainable_weights))
        episod_loss.update_state(l)

@amahendrakar Thanks for taking time to look into the issue.
The code runs properly and there is no issue in execution. But the issue is in the result generated.

When we train the model from scratch using either of "train_default()" or "train_extended()"  methods it works fine and all the weights goes ~0.1 as expected as the data generated using y=0.1x method and model has only one dense layer mapping input to output.
episod: 4 [<tf.Variable 'dense_2/kernel:0' shape=(4, 1) dtype=float32, numpy= array([[0.10025591],     [0.09995212],     [0.10002392],     [0.10034888]], dtype=float32)>, <tf.Variable 'dense_2/bias:0' shape=(1,) dtype=float32, numpy=array([0.00022549], dtype=float32)>]
When we train the model using custom training loop "train_custom()" it doesn't converges and the weights gets wrong values.
episod: 4 loss: 0.0034574554301798344 [<tf.Variable 'dense_1/kernel:0' shape=(4, 1) dtype=float32, numpy= array([[0.00126073],     [0.00269012],     [0.00523321],     [0.0034958 ]], dtype=float32)>, <tf.Variable 'dense_1/bias:0' shape=(1,) dtype=float32, numpy=array([0.19942063], dtype=float32)>]

My expectation is that both ways of training with same amount of training data should generate the same kind of weights in the model.
actually to be more specific model.fit is not working same as
       with tf.GradientTape() as tape:
            e = model(x[i], training=True)
            l = loss(y[i], e)
        grads = tape.gradient(l, model.trainable_weights)
        #optimizer.minimize(l, model.trainable_variables, tape=tape)
        optimizer.apply_gradients(zip(grads, model.trainable_weights))
        episod_loss.update_state(l)

Can someone please help me understand why the custom training has a different set of weights after training then model.fit training?  or am I missing some points here?

@ymodak,
Was able to reproduce the issue with TF v2.3, TF v2.4 and TF-nightly. Please find the gist of it here. Thanks!

@Georji-Ghosh Please take a look at SO thread discussion and see if it helps. Thanks!

Thanks for your input it resolve the issue for me I missed to convert the numpy array to tensor before sending it to the model and loss function.


Add Company / Join Company button is not disabled when the company field is empty

Summary
"Add Company" / "Join Company" button is not disabled when the company field is empty
Background
Go to the corporate console then click on "Get Started". A modal with options to "Add Company" or "Join company" is presented. The user should not be able to trigger the buttons if the field is empty
Expected behavior
Once the "Select Company" field has been filled, the buttons should be activated

Acceptance Criteria
The "done" criteria when this feature or problem is resolved. Such as:

Unit Tests added and running in CI
Functional Tests updated to cover feature, if applicable
Demonstrate the set of capabilities to the product team while the code is running in the STAGING environment.

References
https://corporate.dev.lfcla.com/#/companies

Issue resolve. Closing ticket.


[RESOLVED] Unavailable by ICMP ping

Problem started at 21:29:35 on 2023.06.10
Problem name: Unavailable by ICMP ping
Host: ESXi-VC
Severity: High
Operational data: Down (0)
Original problem ID: 28509
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23568&eventid=28509

Problem has been resolved in 1d 7h 40m 0s at 05:09:35 on 2023.06.12
Problem name: Unavailable by ICMP ping
Host: ESXi-VC
Severity: High
Original problem ID: 28509


Improve auto import of js files

Can you add a feature where if file is currently opened by user, we get auto suggestion for imports.

If the files you wish to import are already modules, you just need to make sure you have a jsconfig project for them
If not, then this is an extension candidate


I was stuck while enemy's and my food value are empty

This should be fixed already... well, at least I hope it stays this way. Thanks for creating the issue, and sorry for taking so long to close it 😅


Wrong element_spec when mapping ragged dataset

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
2.13
Custom code
Yes
OS platform and distribution
Linux, Rocky 9
Mobile device
No response
Python version
3.10.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
ds = tf.data.Dataset.from_tensor_slices(tf.ragged.constant([[1, 2, 3], [4, 5]]))
ds.element_spec

The element_spec is a RaggedTensorSpec
But after a map, like for instance
ds.map(tf.square)

the element_spec is just a TensorSpec
Standalone code to reproduce the issue
.

Relevant log output
No response

@0x0L FYKI, If a DataSet's elements are RaggedTensors, then you can batch them, even if they don't have the same size. The result will be a RaggedTensor with one more ragged dimension. The reason that ds.map(lambda x: x).padded_batch(2, padded_shapes=[None]) works is that the map converts the RaggedTensor elements into Tensor elements. I was able to replicate the issue reported here could you please confirm the outcome here. Thank you!

Precisely, the point is that
import tensorflow as tf
ds = tf.data.Dataset.from_tensor_slices(tf.ragged.constant([[1, 2, 3], [4, 5]]))

for x in ds.map(tf.square).batch(2, drop_remainder=True):
    pass

crashes with
InvalidArgumentError: {{function_node __wrapped__IteratorGetNext_output_types_1_device_/job:localhost/replica:0/task:0/device:CPU:0}} Cannot add tensor to the batch: number of elements does not match. Shapes are: [tensor]: [2], [batch]: [3] [Op:IteratorGetNext] name:

Hi @0x0L ,
Whenever we apply any transformations on a Dataset by default it will try to transform into batches of Tensors and hence we get TensorSpec as output for element_spec.
If we need to do batching on a Ragged dataset we need to use ragged_batch() function explicitly to make it as Ragged batches.
The below code will work and it will output RaggedTensorSpec for ds.element_spec
ds = ds.map(tf.square).ragged_batch(2, drop_remainder=True)
ds.element_spec

Please refer attached gist.
Hope this helps. Thanks!

ragged_batch works but I'm more focused on the semantics of map as one could reasonably expects that ds.map(lambda x: x) is still ds.
The doc for tf.data.Dataset.map does not mention this behavior.


error AoT compilation with angular-cli  Unexpected value 'Angular2DataTableModule' imported by the module

I tried ng build --prod --aot
I get:
0% compiling Unexpected value 'Angular2DataTableModule' imported by the module 'AppModule'
Maybe Angular2DataTableModule don't include *.metadata.json for each of Angular files, @amcdnl ?
my question on stackoverflow: http://stackoverflow.com/questions/39867324/unexpected-value-x-imported-by-the-module-z-when-using-flag-aot/39868123#39868123

Its not AoT ready yet. PR's welcome if you wanna give it a run.

@amcdnl OK, Can you please follow these little step then this lib will be AoT compilable :) thanks in advance:
<EMAIL_ADDRESS>

Here's a short-term fix until the npm distro is updated:

linux bash syntax
$> git clone https://github.com/swimlane/angular2-data-table.git   &&  cd angular2-data-table
$> node_modules/.bin/ngc -p tsconfig.aot.json  # angular2-data-table already has tsconfig.aot-json

ngc output .metadata.json files under dist/

merge dist/ into release/ so .metadata.json files next to .d.ts files
$> rsync -abviuzP dist/ release/

(optionally) back up directories
$> mv  $PROJECT-ROOT/node_modules/angular2-data-table/release    $PROJECT-ROOT/node_modules/angular2-data-table/npm-release
$> mv  $PROJECT-ROOT/node_modules/angular2-data-table/src     $PROJECT-ROOT/node_modules/angular2-data-table/npm-src

copy rebuilt 3rd party under node_modules
$>  cp -r release/     $PROJECT-ROOT/node_modules/angular2-data-table
$>  cp -r src/     $PROJECT-ROOT/node_modules/angular2-data-table

aot build completed without any static symbol errors
$> cd   &&  ng build --prod --aot --output-path ng-aot

Are you sure the last version works? Can you please retry your solution with actual git version

@2goatduo I tried and get this error :
 Uncaught (in promise): ReferenceError: nameColumnHeader is not defined
It's a ViewChild and I have it inside view

@istiti Yes, I have noted some problems with this approach, but it worked for me on this commit: ef9156a176d160c3db7b41d43aa19fae93e4d85f .  One bug (which is relatively easy to fix) is that the rsync command above will copy not just .metadata.json files.  But I pulled the latest commit and now ngc fails altogether.  I'm looking at why.

It ok for me, just for AoT any  ViewChild decorator must have semicolons .... lol without --aot it compile fine without semis and with AoT you must put semis :)

Update:  ngc build of latest angular2-data-table fails..
Turns out that ngc and tsc can produce different output for all file types such as .d.ts, .js, .js.map and .metadata.json.  So, instead of rsync'ing files from (ngc produced) /dist into /release, it's simpler to copy the small set of files uniq to /release into /dist and then rename /dist to /release.

For me AoT works fine , Maybe better do something automatic and push it for community if you have time :) this will help a lot :) or Austin need do it each release to be sure it's released using aot

AoT is on my list very soon. Sorry just been busy w/ external things. If someone wants to add this I will gladly accept a PR.

I'm happy to close this issue too.


The merge conflict resolver tool is not working

#Steps:

Import any git project
Create a merge conflict

**having done the above steps the ideal expectation would be that it should show options like **
1.Accept current change
2.Accept incomming change
3.Accept both
But these options are not showing up anymore.
Kindly help ASAP.

/duplicate of many issues
Latest discussion in #158763

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


quiche: patch for MacOS build

Signed-off-by: Jose Nino<EMAIL_ADDRESS>

@RyanTheOptimist @htuch I found this type constraint error when updating Envoy in Envoy Mobile. I'll work on a quiche upstream patch to remove the local patch here. However, for the time being it would be nice to patch locally in order to unblock bringing Envoy into Envoy Mobile.

I'll work on a quiche upstream patch to remove the local patch here

Awesome @RyanTheOptimist if @birenroy can help us with that I will sight tight :)

I'll work on a quiche upstream patch to remove the local patch here

Awesome @RyanTheOptimist if @birenroy can help us with that I will sight tight :)

Yeah, the actual source of truth for quiche is a google-internal repo so a Googler will have to land the fix at the end of the day. Hopefully one day we'll move to an open-source-first model for quiche!

/lgtm deps

/retest

/retest


Limit the maximum number of highlight markers

This places a configurable limit on the number of highlights shown across all editors.
In my tests, after creating a selection, scanning a large file (50K+ lines) with a match on each line causes Atom's UI thread to lock up for several seconds at a time.
It doesn't, however, lock up when there are only a few matches across files of that size, as a lot of time is spent creating and managing the many markers that result. Likewise, it seems that editor.scan takes considerably longer when there are matches compared to when there aren't on documents of equal size.
By default, the maximum number of results is limited to 500. On my machine (a 2017-era MacBook Pro), scanning a 50K line document with matches on each line with this limit applied reliably completes in under 80ms, which is well under the threshold for a perceptible delay. I'm definitely open to changing this default, especially if it's smaller :)
This is all implemented by throwing an exception once we've hit our result threshold. It's gross, and
I've tried an early return in the scan callback, but the scan runs to completion either way and we end up doing nothing with results that we spent work on. AFAICT, this is the only way we can terminate the scan early without upstreaming support for this in Atom's native C++ text buffer.
cc @matthewwithanm @captbaritone @sunz7

Not sure why this didn't work for me at first, I had to add an empty constructor to EarlyTerminationSignal and then it worked, I'm using windows.


Deprecate using Form without formStateCursor

It causes problems with rendering when we use PureRenderMixin

Or implement pub/sub feature for formState.
Current version of enhancement in v3.0.0


Microsoft.codeDom.Providers.DotNetCompilerPlatform.2.0.0 missing

I have Packages.config set as package management method.  i have ensured the package is installed and is present in Packages folder. Still the build of the solution fails and states the package is missing. It is unable to find the projects props folder in net46 folder at the specific path.
Please suggest.

One cause of this problem is when the folder structure changes. Packages.config projects add some msbuild targets into your csproj that look for the packages folder, and if you move the folder, you need to either edit the csproj or reinstall the packages in all packages.config projects. I beleive if you were using PackageReference, this should not have been a problem :)
In any case, if my suggestion above doesn't help, I'd like to ask you to create an issue on the nuget/home repo with enough details to reproduct the problem.


Remap events to IPC calls?

Hi
I'm a maintainer of Hammerspoon (http://www.hammerspoon.org) an OS X automation app driven by Lua. One of our core features is being able to bind a hotkey to a Lua function, allowing the user to automate very many things with a quick keypress.
Something I'm finding is that I want to go beyond the abilities of Carbon to register hotkeys with the OS (e.g. I'd like to be able to behave differently if COMMAND_L or COMMAND_R are pressed with different hotkeys, but obviously this is not available in Carbon). Currently I work around this by using Karabiner to remap the various combinations to keys that aren't on my keyboard (such as F13-F19 and KEYMAP_0-KEYMAP9), but I am starting to run out of spare keycodes!
So, I was wondering how you would feel about extending Karabiner to be able to deliver events to another process, perhaps something like:
<autogen>
  --KeyToHammerspoon--
  KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_R
  Hammerspoon::MySpecialCursorEvent
</autogen>

which would be delivered via some IPC mechanism to the Hammerspoon process, for it to decide how to handle "MySpecialCursorEvent". Or perhaps something like:
<autogen>
  --KeyToHammerspoon--
  KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_R
</autogen>

which would send a more complex event to Hammerspoon, telling it the combination of keys that were pressed. I would tend to favour the former, since it would involve less repetition of the structure of the event.
(If suitably abstracted, it's entirely possible that this mechanism would want to be adopted by many other OS X automation apps besides Hammerspoon)

Karabiner allows you to run shell commands by shortcuts.
https://pqrs.org/osx/karabiner/xml.html.en#vkopenurldef
Can Hammerspoon do something from command line?

Yeah, it can. I started to work up a patch for Karabiner to talk to our CFMessagePort, but I think a URL handler might make the most sense here.
Thanks for the response, and thanks for karabiner!

(For the sake of future web searches, this is now implemented in Hammerspoon 0.9.27 with the addition of the hs.urlevent extension. An example of integration with Karabiner is given, at http://www.hammerspoon.org/go/#karabinerurl )


VC Compilation Broken

The latest stable release of debase compiles on Visual Studio, but the betas do not.  The issue is this code:
static void
attribute ((noinline))
__func_to_set_breakpoint_at()
{
asm("");
}
asm is not supported on 64 bits on Visual Studio.  It would have to be something like this:
static void
__declspec(noinline)
__func_to_set_breakpoint_at()
{
}
Not sure that accomplishes what needs to be done, but at least it compiles.

@equivalence1

@cfis I've merged the fix that should resolve this, can you check whether it works for you?

Sorry, yes it did.


[Bug]: Bedrock: Unhandled error type Iterator value I is not an entry object

What happened?
When I switch from OpenAI after entering something to bedrock and then enter something I am getting the above error. if I set ENDPOINTS=bedrock,openAI it works only as long as I stick with bedrock, as soon as I switch to openai and back to bedrock the error occurs. To clear the error i start a new chat or create a new private window to reset the browser and log in again. It then works as long as I stick with bedrock, no restart of services required
Steps to Reproduce

Select openai and pick a model and enter a question
Stay with openai and pick a different model and enter a question
Switch to bedrock and enter a different question

What browsers are you seeing the problem on?
Firefox
Relevant log output
Librechat-API

2024-09-11 23:09:02 info: [Optional] Redis not initialized. Note: Redis support is experimental.
2024-09-11 23:09:04 info: Connected to MongoDB
2024-09-11 23:09:05 info: Custom config file loaded:
2024-09-11 23:09:05 info: {
  "version": "1.1.5",
  "cache": true,
  "interface": {
    "privacyPolicy": {
      "externalUrl": "https://librechat.ai/privacy-policy",
      "openNewTab": true
    },
    "termsOfService": {
      "externalUrl": "https://librechat.ai/tos",
      "openNewTab": true,
      "modalAcceptance": true,
      "modalTitle": "Terms of Service for LibreChat",
      "modalContent": "# Terms and Conditions for LibreChat\n\n*Effective Date: February 18, 2024*\n\nWelcome to LibreChat, the informational website for the open-source AI chat platform, available at https://librechat.ai. These Terms of Service (\"Terms\") govern your use of our website and the services we offer. By accessing or using the Website, you agree to be bound by these Terms and our Privacy Policy, accessible at https://librechat.ai//privacy.\n\n## 1. Ownership\n\nUpon purchasing a package from LibreChat, you are granted the right to download and use the code for accessing an admin panel for LibreChat. While you own the downloaded code, you are expressly prohibited from reselling, redistributing, or otherwise transferring the code to third parties without explicit permission from LibreChat.\n\n## 2. User Data\n\nWe collect personal data, such as your name, email address, and payment information, as described in our Privacy Policy. This information is collected to provide and improve our services, process transactions, and communicate with you.\n\n## 3. Non-Personal Data Collection\n\nThe Website uses cookies to enhance user experience, analyze site usage, and facilitate certain functionalities. By using the Website, you consent to the use of cookies in accordance with our Privacy Policy.\n\n## 4. Use of the Website\n\nYou agree to use the Website only for lawful purposes and in a manner that does not infringe the rights of, restrict, or inhibit anyone else's use and enjoyment of the Website. Prohibited behavior includes harassing or causing distress or inconvenience to any person, transmitting obscene or offensive content, or disrupting the normal flow of dialogue within the Website.\n\n## 5. Governing Law\n\nThese Terms shall be governed by and construed in accordance with the laws of the United States, without giving effect to any principles of conflicts of law.\n\n## 6. Changes to the Terms\n\nWe reserve the right to modify these Terms at any time. We will notify users of any changes by email. Your continued use of the Website after such changes have been notified will constitute your consent to such changes.\n\n## 7. Contact Information\n\nIf you have any questions about these Terms, please contact us at<EMAIL_ADDRESS>using the Website, you acknowledge that you have read these Terms of Service and agree to be bound by them.\n"
    }
  },
  "registration": {
    "socialLogins": [
      "github",
      "google",
      "discord",
      "openid",
      "facebook"
    ]
  },
  "endpoints": {
    "bedrock": {
      "availableRegions": [
        "us-west-2"
      ],
      "streamRate": 55,
      "titleModel": "anthropic.claude-3-5-sonnet-20240620-v1:0"
    }
  }
}
2024-09-11 23:09:05 info: RAG API is running and reachable at http://rag_api:8000.
2024-09-11 23:09:05 info: No changes needed for 'USER' role permissions
2024-09-11 23:09:05 info:
Outdated Config version: 1.1.5
Latest version: 1.1.7

      Check out the Config changelogs for the latest options and features added.

      https://www.librechat.ai/changelog

2024-09-11 23:09:05 info: Server listening on all interfaces at port 3080.


Keep message drafts

It's quite easy to lose message drafts on Karrot. Typical causes might be page reloads and components getting temporarily destroyed  (v-if). It would be useful to have a "message drafts" concept.
It could be saved in local storage or synchronized to the server. Drafts should be saved for each user and conversation, maybe also when a message gets edited.

Hi, i am not sure it correspond 100% to the initial ask, but I could use localStorage to keep the content of the message.  I delete it only if the user press escape, submit the form or leave voluntary the page. but on a page refresh, the content of the draft will be included in the input of the message. I use local Storage because my feeling is that this feature is mainly useful to maintain continuity of user experience when they are inside a specific session. There are not many reasons to maintain the state of a draft across different devices. I guess that at this stage a use would understand he would lose his draft.  it could be done but I personally it would generate backend logic unnecessarily. let me know if you want to exchange on this capability and see the 6 lines of code I had to produce to address that to see if he code does the job or if you would prefer to get different behavior. thanks

Hi, thanks for looking into this! Sure, I'm happy about a localStorage solution too. Can you open the Pull Request?

HI, I will. But i have a question. in fact when i go to pickups, we can comment on all pickup dates. when refreshing the web browser the detailsliderbar that contains the conversationCompose disappears. The n the local storage value gets used even if I click on another pickup date. I could instead of saving a single key value pair save an object with the draft and the groupId, placeId and pickup date. in such case I could make it clean but I think it would not be the right thing to do. we should just repvent the detailsliderbar to disappear on page refresh. in such case, the thnigs I build would work as only volunteer exit of this forms would delete the draft. (escape, submit or move to another page). what is exactly the behavior you expect. I could look at why the detailsliderbar disappears on page refresh and try to correct it at the same time. let me know

I think it should keep the draft even when the sidebar is closed or another one gets opened.
Every conversation has a unique id, you could use that to store message drafts (instead of groupId, placeId, etc).
You might need a special handling for editing message that already have been sent, maybe it's ok to not keep drafts of the edited text.

To make the sidebar persistent, we need to reflect the "sidebar open" state in the URL and change the layout to make it possible. I already did this for the "Issues" feature, but it's quite some work and easy to break something. So better leave that for later and do it in a separate PR.
(Of course you could also do it in localStorage, but I strongly think the URL should reflect the page you are viewing.)

ok. i understand, i need to work now, but I will look at it later today and come back to you

I think it should keep the draft even when the sidebar is closed or another one gets opened.
Every conversation has a unique id, you could use that to store message drafts (instead of groupId, placeId, etc).
You might need a special handling for editing message that already have been sent, maybe it's ok to not keep drafts of the edited text.

when the message is submitted i delete the local store, so the message is only kept if the user did not volunteraly submitted the message or quited the process (escape or move somewhere else)

and also i thought abotu groupId and placeId because they are on the route. I agree 100% the conversationId should be part of the route parameters.

done, but I do not have time now to send the PR. I will do it later. what i did was adding the conversationid as a prop and use it as a Key in localstorage. this is valid in pickups. on the wall conversation, i just create a 'wallConv" key. we would need to decide if there are other places to manage and as well. I will send the PR as soon as I can so you can review. it will be easier to tune it from there. rgds, gerald


[SKY30-74] Added new content type for linking MPAs with fishing protection levels

Overview
Adds a new content type to represent fishing protection coverage in mpas. Also adds establishment stage & protection status relations to the mpa content type. This is to match the current data contract.
Feature relevant tickets
https://vizzuality.atlassian.net/browse/SKY30-74

Checklist before submitting

[x] Meaningful commits and code rebased on develop.

@andresgnlez let me know if this can be merged, or you'd rather merge the layer content type first

@agnessa I plan to iterate over it so go ahead with your changes, I'll rebase them later.


TiledImage node in Texture2D not behaving (update --> nodegraphs are not working)

Used files from MaterialX https://github.com/materialx/MaterialX/blob/main/resources/Materials/Examples/StandardSurface/
both brick and wood files which load .jpg files to "tiledimage" node are not behaving properly. (maybe color3 values are not generated).
when replaced with "image" node "base" node is getting proper color3 values.
Also tried generating osl shaders from mtlx and used in cycles script which worked fine (but we need to give absolute paths for textures not relative)
so the problem maybe with "tiledimage" node. it is in Texture2D in MaterialX editor
Specs :
Windows 8.1
Blender 3.0
Addon 1.0.65
Update
Also tried "Contrast" node with both pivot 1.0 and 0.0 same result (just white colored cube)
implemented contrast node with individual subtract,multiply and add nodes (pivot should be 0.0 color blue) -> correct result
so changed pivot values in MX_STD_contrast in /hdusd/mx_nodes/get_stdlib_defs.py to 0.0
still "contrast" node renders white cube only
seems like nodegraph definitions are not working properly.
because both contrast and tiledimage are from libraries/stdlib/stdlib_ng.mtlx
you guys implemented nodegraphs as blender "nodes"
actually they should be implemented as blender "nodegroups"
because when you import materialx file, if there are custom nodegraphs, materialx has to search for that nodegraph in custom library modules and then import them as blender "nodegroup" which actually knows computation.
nodedefs are implemented in shader langs and nodegraphs are implemented in mtlx which are computation graphs.
so only those nodedefs which has standard implementation(in materialx std_lib.mtlx) becomes nodes everything else should become nodegroups in blender.
only then actual materialx is implemented.

Hi. Thank you, we will think about this.

@DagerD please make a ticket to group "Nodegraph" in Blender.

Created ticket BLEN-170.


Synchronization is not matching

PGSync version: 3.0.0
Postgres version:  PostgreSQL 15 Aurora RDS
Elasticsearch/OpenSearch version: OpenSearch v 2.9.0
Redis version: LATEST
Python version:  3.10.12
Problem Description:
PGSYNC is being run every 5 minutes with the "pgsync" command.
It works very well, however after a while the synchronization does not match. There is usually a difference of 1 or 2 records.
This difference in records happens after a few days.
And when that happens, I have to reindex all the records again.
this happens with both -deamon and --polling.
environment:
ELASTICSEARCH_STREAMING_BULK=True
ELASTICSEARCH=False
OPENSEARCH=True
SCHEMA=schema.json
CHECKPOINT_PATH=checkpoint
ELASTICSEARCH_TIMEOUT=20000

One thing to mention, the state file is very important
This is checkpoint file starts with a .<db_name>_<index_name>
are you by any chance deleting this file/is this checkpoint path always accessible?

The checkpoint file has not been deleted or changed.
The difference in records is random.
And when it happens, it shows that there is no data to be synchronized.

One thing to mention, the state file is very important This is checkpoint file starts with a .<db_name>_<index_name> are you by any chance deleting this file/is this checkpoint path always accessible?

The checkpoint file has not been deleted or changed.
The difference in records is random.
And when it happens, it shows that there is no data to be synchronized.


CMake build issues - missing CppUTestTargets.cmake

Your build instructions are a little confusing. From the readme.md
git clone https://github.com/cpputest/cpputest.git
cmake -B cpputest_build
cmake --build cpputest_build

Am I supposed to make this directory? Or should this directory already exist? I couldn't find it, so I made it.
Beyond that, the project builds fine. I now have:

/home/user/cpputest  = the source / git clone
/home/user/cpputest-4.0 = the build output from the above

I suspect at this juncture, something is already wrong for unknown reasons.
Linking my project with CppUTest I get (excerpt)...
CMake Error at /home/user/cpputest-4.0/CppUTestConfig.cmake:29 (include):
  include could not find requested file:

    /home/user/cpputest-4.0/CppUTestTargets.cmake

The CppUTestConfig.cmake in my build directory looks like this around line 29:
set_and_check(CppUTest_INCLUDE_DIRS "/home/user/cpputest/include")
if(NOT TARGET CppUTest)
  include("${CMAKE_CURRENT_LIST_DIR}/CppUTestTargets.cmake")
endif()
set(CppUTest_LIBRARIES CppUTest CppUTestExt)

And looking for the missing file CppUTestTargets.cmake, I find it here...
find . -name CppUTestTargets.cmake
./CMakeFiles/Export/4306f34d0d0a58e19d5744ed1e2a0d78/CppUTestTargets.cmake

Should file CppUTestTargets.cmake be in this directory at this stage? Or should the cmake config somehow be able to find it here?

I also noticed that the output/binary directory does not include the include directory and all headers within.
That is somewhat surprising. And maybe even indicative of build issues maybe?
I expected that these header files would be (re-)published in the build area, so that I would need to point my project at just the build area (where I find the generated CppUTestConfig.cmake) and my project gets everything from there; the headers and all libraries.
I could effectively remove the CppuTest source directory after I built it, if I wanted to. Because nothing in it would be referenced by any project linking with CppUTest.

[SOLVED]
Go to the output directory and run sudo make install from there.
This collates all the files into /usr/local/lib and /usr/local/include.
The build area cannot be used as a local build that one can import (find_package()) for CMake builds.
Sidenote:
I had to use make install from the build area to install, as cmake --build --install .... from the project area would not work for me. I get "ModuleNotFound" errors. This is on Mint 20.3.


The template doesn't work

The smart contract is not configured correctly. If I run npm start under /frontend directory it would throw follow errors
ERROR in ./src/components/Dapp.js 9:0-52
Module not found: Error: Can't resolve '../contracts/Token.json' in '/Users/username/web3/fhenix-dark-forest-ethglobal-sg/frontend/src/components'

ERROR in ./src/components/Dapp.js 10:0-65
Module not found: Error: Can't resolve '../contracts/contract-address.json' in '/Users/username/web3/fhenix-dark-forest-ethglobal-sg/frontend/src/components'

Looking at the code frontend/ simply contains a basic react frontend for a dapp, it has nothing to do with Fhenix in particular.


Cannot build project due to fsevents with Electron app on Mac

I am using the Vue CLI Electron Plugin.
When I start using chokidar (latest version) anywhere in the app and try building the application, I get the following error:
 error  in ./node_modules/fsevents/fsevents.node

Module parse failed: Unexpected character '�' (1:0)

I have been trying to extend the webpack configuration, but I just cannot get it to work.
Any help is appreciated.

webpack wants to load fsevents binary. Obviously This is incorrect and should not be done.

Look at this docs https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/guide.html#native-modules
and declare chokidar as external module, then everything should work.
// vue.config.js
module.exports = {
  pluginOptions: {
    electronBuilder: {
      // List native deps here if they don't work
      externals: ['chokidar'],
      // If you are using Yarn Workspaces, you may have multiple node_modules folders
      // List them all here so that VCP Electron Builder can find them
      nodeModulesPath: ['../../node_modules', './node_modules']
    }
  }
}

Thank you so much.  I tried everything, also the solution above, but unfortunately not with chokidar but fsevents directly.
Your snippet works like a charm. Thanks for the help! 🍻


Animation of cards in "Our Service Section" . [GSSOC 2023]

animation is not properly done , it looks very simple.
I would like to add some animations to it to make it impressive, If this is required do assign it to me under GSSOC 2023,
changes will be done in no time !
:)

Hey @ManishaSwain8 can u add hover effects in services cards?

@ManishaSwain8 ?

yeah sure no problem !

I think framer motion is already added to the services section..you can add a smooth hover effect on services cards!
Thankyou..

ohhk ...!

hello @MonalikaPatnaik  there are some existing error in code base...ss below

Hey could u do git pull origin main

i just forked it this is the recent one

Okay lemme check!

Yup !

Hey pull now and check!

okk

https://github.com/MonalikaPatnaik/UMatter/assets/96622693/4b74abc2-8aa1-48ef-bd88-3c2ebb7f7406
how about this @MonalikaPatnaik

@MonalikaPatnaik  there are some existing error in recent pull ,do check it out .  : |)


Fix, clarify, and simplify content type schemas

This fixes #2349, which caught that an encoded PNG image
is encoded into a text media type.
In the process I realized some other errors, and simplified things.

HTTP Content-Type is always handled by OAS

Media Type Object key in most cases
Encoding object (possibly inferred from schema) in multipart/form-data

HTTP-level Content-Encoding is always handled by the OAS Header Object
JSON Schema "content*" is used for embedding one media type into another

the encoded resource is of media type text/plain
"contentMediaType" is the embedded media type after decoding
"contentEncoding" is how to encode/decode binary to/from text

This removes any chance of "contentMediaType" conflicting with
the Media Type Object key or with contentType in the Encoding Object,
as they now always do different things.
Likewise, the HTTP Content-Encoding header (with values like
gzip, deflate, etc.) does different things than "contentEncoding"
(which has values like base64, base64url, quoted-printable, etc.).
The deprecated part header Content-Transfer-Encoding is likewise
handled in the Encoding Object, but is probably never used.

I've read through this PR and it left some questions unanswered in my mind.
I think the basic issue to be addressed is: Now that full JSON Schema is allowed in OpenAPI 3.1, what does it mean for the JSON Schema contentMediaType and contentEncoding keywords to be present in a request body schema?
I think the 3.1.0 spec already covers contentMediaType with this statement:

JSON Schema also offers a contentMediaType keyword. However, when the media type is already specified by the Media Type Object's key, or by the contentType field of an Encoding Object, the contentMediaType keyword SHALL be ignored if present.

Though that statement is buried in the section titled "Considerations for File Uploads" and should be moved to the general section on the Media type object.
Regarding contentEncoding, I don't think this is properly addressed for the "root" schema of a request body content entry.  In particular, what I think should be said is:

If the “root” schema of a request body content entry contains a contentEncoding, then:

If no Content-encoding header parameter is defined for the operation, the allowed encodings for the content entry are defined by the contentEncoding in the schema
If a Content-encoding header parameter is defined, the allowed encodings for the content entry are defined by the intersection of the allowable values for the Content-encoding header and the contentEncoding in the schema

This is just my take but I suppose other approaches could be taken, such as simply ignoring Content-encoding for a "root" schema of a request body content entry, but whatever is decided, I think it should be clearly stated in the spec.

Content-Encoding header overrides the JSON schema contentEncoding.


MIDI channel pan is too extreme

Version
github.io page (3.20.43)
Description
While playing MIDI files, I noticed that the instruments were panned too wide. Through testing via live MIDI input, I was able to determine that the sound is 100% panned to the right when CC10 = 97, and 100% panned to the left when CC10 = 32. Full panning shouldn't be achieved until CC10 is at its min/max value of 0/127.
Reproduction steps

Set a MIDI channel to CC10 = 97. Observe how the sound only comes out of the right speaker.
Set CC10 = 127. Notice there is no difference from CC10 = 97.

Expected behavior
CC10 = 97 should not be fully panned to the right.
MIDI files and SoundFonts
A really good way to hear this issue is to play Jump!.mid that comes with GeneralUser GS 2.0 and compare it with the audio recording made with FluidSynth.

Hi,
Fluidsynth is not correct here. See https://github.com/FluidSynth/fluidsynth/issues/1395
Spessasynth uses 1000 correctly.

PS: the version you've reported is out of date. Please clear the cache in your browser and reload the page.

Hi @spessasus, I have created a video demonstrating the problem. Here is the MIDI and SF2 file used to create the test shown in the video: panning test.zip

Hi @mrbumpy409,
thanks for the detailed video and the test files! Indeed spessasynth is the odd one here. I've changed the pan modulator amount from 1000 to 500 like in fluidsynth, and I rendered the test files. It now shows the curve identical to fluid's or BASS's. Can you test this change to confirm the fix? The branch is called pan-fix-test.
PS: Have a great day too :)

After more testing, I merged it into main. You're right, the previous solution sounded totally wrong. Thanks for the report!
If the panning is still incorrect, feel free to open another issue.

Thank you, @spessasus, everything sounds great!


Send button not shown once the user types in the message box

Version
latest from CDN

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Go to Voice-enabled chatbot
Start typing a message.
The send button is not shown and only the mic icon is shown
See error

Expected behavior
The mic icon should turn to send icon once the user starts typing something in the send box.

Additional context

[Bug]

@alokraj68 Can you please fill in the template above with the requested information? I am not able to reproduce this issue.

@alokraj68 Can you please fill in the template above with the requested information? I am not able to reproduce this issue.

Hi, Am sorry about that. Something went wrong there.

@alokraj68 Please note that you can still send the typed message by pressing Enter when you are ready to send.
I just tested this out and it is true that clicking the microphone button (instead of pressing enter) with a typed message in the send box turns on the microphone, rather than sending the typed message. It looks like this is a UX oversight, but I'm not sure how quickly we would implement a fix.
A related enhancement we have filed is https://github.com/microsoft/BotFramework-WebChat/issues/2211, which looks to have separate inputs depending on whether customer is using voice or keyboard.

This is one of the parity work we missed when moving to v4. In v3, it used to behave what @alokraj68 said.
But since we have a plan to revamp the sendbox (#2211), the UX will be greatly improve and this bug will no longer repro.
We can keep this bug open until we close #2211.

Hi,
I agree with @alokraj68. The behavior of the sendbox is not intuitive when the user writes on the input text and even less on mobile devices. We thought that interface redesign would come out with the 4.6 version.
We need some solution for this. Do you have some suggestion or temporary patch? When do you think sendbox redesing will be complete?
Thank you very much!!

I'm switching this from feature request to a bug, since there's no timeline for #2211 at the moment and this is technically a parity issue.

We have some progress on https://github.com/microsoft/BotFramework-WebChat/issues/2211 and will use that to track addressing this issue. Thanks


fix(local): change backend port to 5050

Reviewers
Functional:
Readability:

Changing 5005 to 5050. 5005 could interfere with conferencing applications.

@Bento007 / @danieljhegeman : I'll fix the conflicts

changes have been merged from another branch


Update breakout_ddqn.py

In the article, I know that both value and target_value use next_history.
Reference : https://arxiv.org/pdf/1509.06461.pdf

Yes, both value and target_value have to use next_history. Thank you!


Make useIPC opt-in only

Hello, the new IPC feature that allows workers to be notified of changes triggered by another worker over IPC is quite handy, but I think that the useIPC option enabling it should not default to true, but false.
It is quite unexpected that this behaviour pops up with the new 3.3.0 minor versions since the new default behaviour (useIPC = true) do not work in regular node processes, since process.sendis not available on node processes without parent IPC channels

Are you sure? The useIPC option only has any effect if the process is already a worker process, so process.send will only ever get called from a worker process with the useIPC option enabled.
Maybe it is better to be safe than sorry though, I guess I'll make it false by default and just update the docs to reflect that.

Done in commit https://github.com/fortunejs/fortune/commit/a5bff11f71dfd7e96454090207d40be28a82aebf.

It would throw and complain that process.send is not a function in a regular node process.
Nice :)


Material Maker Discord / Reddit

I think a place to share tips, materials and just chat about material maker would be cool. It would be a time investment and I'm not sure if anyone is up for it, but I'm just making this suggestion to see if there are others who also want this.

I think its a excellent idea, people can share experience and tips with each other.

@Jummit @nonunknown I started a subreddit but I have no friend: https://www.reddit.com/r/MaterialMaker/
Any feedback before I advertize it?

Any feedback before I advertize it?

lgtm


Rand converter - evaluator

Covers the converters- aten.rand, aten.randn, aten.randperm

@apbose  Can you open a cherry pick PR to release/2.3 ?

Sure I will do that today @peri044

Hi @apbose I found a small bug/typo and had a fix for it here: https://github.com/pytorch/TensorRT/pull/2809 I'll merge it after passing CI. Can you cherry pick this PR with this fix by the way?


[<IP_ADDRESS>.5] Design Test Cases

Issue Details
Description
This Task is to design Test Cases for each Basis Path created previously to do White-box Testing.
Goals
Have a number of Test Cases for each Basis Path to do White-box Testing.
Success or Completion Criteria
To have a section in the M3 Report on White-box Test Cases.
Allocated Time
5 Days
Start Date: 16/11/23, 0900
End Date: 22/11/23, 2359

Issue Comments
Description
Designed a Table for Test Cases, the inputs and outputs for each test case are included in the table too.
Changes to success or completion criteria? y/n (if y, describe)
No Changes, Criteria Completed!
Start Date: 16/11/23, 0900
End Date: 22/11/23, 2359


Data on OLED Display is getting corrupted over time.

When Using the ATU-10 with FW v1.5.
Display information is getting more and more corrupted over time after power on.
Even on power up, the display most of time shows weird artifacts.
Even when no RF is applied.
I have changed:
#define Delay_I2C Delay_us(100)
in oled_control.c
https://user-images.githubusercontent.com/55426642/208156632-2e02231b-333f-4266-9b2b-badf0d0cee7b.mp4
You can very good see when artifacts start to arrise.
But because of the slower update 100uS vs 25uS, clearing these artifacts upon rewrite of the display clears these better.
Refreshing display content needs some tweaking.

Hi.
Yes, my tuners OLED does it too.
At this moment I guess bad displays from China make trouble because my other device do same thing and I forced to change the display

Hmm ok..
I have some older OLED's i will try and swap them out and let you know the result.

You where right!, replacing the OLED "fixed" this issue.
So the supplied OLED's with the ATU-10 are really bad. hmm
Other question, what is the reason you have set the:
#define Delay_I2C Delay_us(25)
To 25uS?

Hi.
It makes the bus speed about 20 kHZ


Add default tags for AWS resources

High level description of the change.

Add possibility to add default tags to all tag aware AWS resources in container linux

It's very useful from AWS perspective - you can use it to estimate costs for example.
Testing
Describe your work to validate the change works.
You need to apply it into aws environment with module source part to: typhoon//aws/container-linux/kubernetes
All resources like load balancer, vpc, subnets, machines, target groups, etc should be tagged with tags you provide in default_tags parameter of module.

I've commented before, but think the AWS "tag every resource" pattern is a poor grouping mechanism compared to designs other clouds offer (projects, resource groups, etc).
I'm ok with AWS tagging resources with "Name" = var.cluster_name to accommodate some usage. Cluster names are unique and should be adequate. But I don't want to expose a new AWS-specific variable to plumb tags around or encourage their use too much. Also, FCOS and Flatcar AWS should match in this respect.


vue-infinite-loading with vuex

Is there an example of implementation with vuex?

I would need it too because I have troubles implementing the infinite loader, loading data coming from the store.

I found a way to implement it. You need to pass the vue infinite $state
context in the store
Le lun. 20 avr. 2020 à 12:07, qlereboursBS<EMAIL_ADDRESS>a
écrit :

I would need it too because I have troubles implementing the infinite
loader, loading data coming from the store.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PeachScript/vue-infinite-loading/issues/276#issuecomment-616447137,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABCUIVG74I43KLUZDG6YYPDRNQNGLANCNFSM4MIJHH2Q
.

@tchret would you mind sharing your implementation? I'm having a hard time making vue-infinite-loading work with vuex

@tchret would you mind sharing your implementation?

@nahuelDev23 @gsern1  Just pass the $state in the store

another way is to return a promise in your store method with a loaded value:
Vuex Store Promise
return new Promise( (resolve, reject) => {
                let loaded = undefined; //set to undefined too start
                axios.get( 'search',{
                    params: {
                        q: state.searchKeyword,
                        l: state.limit,
                        sort: state.sort,
                        page: state.page,
                    }
                })
                    .then(response => {
                        if (response.data.listings.length) {
                            commit('addListings', response.data.listings);
                            commit('totalPages', response.data.pagination.last);
                            commit('totalCount', response.data.pagination.count);

                            loaded = true
                        }
                        else {
                            loaded = false
                        }

                        resolve(loaded);
                    })
                    .catch(error => {
                        reject(error);
                    });
            });

Vue Component searchMore method
searchMore($state) {
                this.$store.dispatch('Listings/searchListing',{ 'searchKeyword': this.searchKeyword, 'initial': false})
                    .then(loadState => {
                        if(loadState) {
                            $state.loaded()
                        } else {
                            $state.complete()
                        }
                    })
                    .catch(error => {
                        if (error) {
                            //todo handling of error
                            $state.error()
                        }
                        else {
                            //todo handling of error
                            $state.error()
                        }
                    });
            }```

Another trick is to store your current loadMore $state in a variable like so this.infiniteState = $state
And in your vue watch function trigger the this.infiniteState.loaded() / this.infiniteState.complete()
watch: {
someVal(newVal, oldVal) {
this.infiniteState.loaded()
}
....
},
methods: {
  loadMore($state) {
     this.infiniteState = $state
      ....
     }
 }


Move file and add 238 and 152

File(s) Submission: problem_0238_product_of_array_except_self.cs, problem_0152_maximum_product_subarray.cs
Programming Language(s): c#
Submission URL: https://leetcode.com/problems/maximum-product-subarray/submissions/907414753/ https://leetcode.com/problems/product-of-array-except-self/submissions/907306903/
And clean up

LGTM


Why not store the schema separately ?

Hello !
I've been looking at the mvidb and others and noticed that the rows are stored as json objects (repeating key:value on every row), would not be more better to store the schema info (col names, col positions, col types, constraints,...) on a separated "table" (aka data catalog) and store the rows as json arrays (no keys "column names" repeated) the database would be smaller and probably faster.
Cheers !

Regarding storing the schema separately, see https://github.com/google/lovefield/issues/58.
Regarding the potential performance gains by doing so, it would be worth experimenting. One problem I see though, is that there would be a performance penalty of converting the "compact" object payloads, to the format that is expected to be returned to the user. Today, the format we store in the DB, is the same as the one returned to the user, so there is minimal conversion penalty.

Dup https://github.com/google/lovefield/issues/64


Issue #7. Introduce builders everywhere

Blocked by upcoming PR on PMSI. PR coming soon there ;)

Work in progress: https://github.com/softwarevidal/pmsi/tree/atom-jaxb-builders.
So far, so good: many missing mandatory attributes on the feeds/entries we're building.

Coverage increased (+1.42%) to 79.06% when pulling 7d3537e2e21bc28e40aac5a26ab101f672904903 on issue_7 into 5b8f8eb2e9cf0df02c9c880a7bd42d31774c5ef0 on master.

Coverage increased (+1.42%) to 79.06% when pulling 7d3537e2e21bc28e40aac5a26ab101f672904903 on issue_7 into 5b8f8eb2e9cf0df02c9c880a7bd42d31774c5ef0 on master.

Although this enforces new constraints, spec 100% compliance is not the target here.
https://github.com/softwarevidal/atom-jaxb/issues/11 handles this.

Coverage increased (+0.83%) to 78.48% when pulling 6e109d1766c37cf05f2bc598afce07a88fc3c3b7 on issue_7 into 5b8f8eb2e9cf0df02c9c880a7bd42d31774c5ef0 on master.

Coverage increased (+0.83%) to 78.48% when pulling 6e109d1766c37cf05f2bc598afce07a88fc3c3b7 on issue_7 into 5b8f8eb2e9cf0df02c9c880a7bd42d31774c5ef0 on master.


Wait for Metal Gateway to have "deleted" status (or 404) on Delete

With new VRF workflows, IP Reservations deletions could fail because the IP is associated with a Gateway (associated with a VRF).
By deleting the Gateways devices completely, we can get IP deletes sequenced correctly in most cases.
Additionally, it may be helpful to unassign a VRF reservation before deleting it.

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Terraform Version

Affected Resource(s)

equinix_reserved_ip_block
equinix_metal_vrf
equinix_metal_gateway

Terraform Configuration Files

# Copy-paste your Terraform configurations here.
#
# For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file.
#
# If reproducing the bug involves modifying the config file (e.g., apply a config,
# change a value, apply the config again, see the bug), then please include both:
# * the version of the config before the change, and
# * the version of the config after the change.

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

terraform apply

References

#0000

Also see #257


Update nixpkgs to 21.05

Building hoff.img seems to work locally

Fails on CI with
./build-package.sh: line 20: 28565 Segmentation fault      mkdir -p "$PKGNAME/DEBIAN"
Not enough memory?

Likely a weird interaction between the system C library and the Nix C library. You should be able to fix this by setting LD_LIBRARY_PATH to the appropriate directory.

Likely a weird interaction between the system C library and the Nix C library. You should be able to fix this by setting LD_LIBRARY_PATH to the appropriate directory.

With the "appropriate directory" being nothing at all. In our other CI scripts, I found
      # For some reason, Semaphore CI sets this variable, but it causes the nix installation to fail
      - unset LD_LIBRARY_PATH

Still the same
./build-package.sh: line 20: 28533 Segmentation fault      mkdir -p "$PKGNAME/DEBIAN"

Hmm. I see two options

trying to debug the job on CI (the "SSH Debug" button in the semaphore interface)
getting rid of fakeroot (not sure if that's the cause, just a hunch because it does some unorthodox stuff), because IIRC newer dpkg versions allow overriding the permissions of the files it packages without pretending that the files are owned by root on disk.

I'll try that - but then upgrading OS on Sempahore from 18.04 could help

OK, fakeroot was the problem. Thx @fatho

I'll try that - but then upgrading OS on Sempahore from 18.04 could help
EDIT: Or no - they do not have anything more recent facepalm

Might not be that relevant any more, but Semaphore did add a 20.04 image a few weeks ago :+1:

I'll try that - but then upgrading OS on Sempahore from 18.04 could help
EDIT: Or no - they do not have anything more recent facepalm

Might not be that relevant any more, but Semaphore did add a 20.04 image a few weeks ago +1

Thanks! I simply checked the Semaphore docs for possible values. That's also a good solution, but in fact removing the problematic fakeroot had the nice side-effect of simplifying the scripts, so let's stick with that.

Thanks for reviews
@OpsBotPrime merge

Pull request approved for merge by @marcin-rzeznicki, rebasing now.

Rebased as 60bbb519099ba91b37eaf52c8ea997e7992ec457, waiting for CI …


Weird entries in *_prose tables?

Hey!
I've noticed that at least some of the tables ending in "_prose" (ability_prose and move_effect_prose) have these entries that seem like they're supposed to be referring to a value but something odd happened when importing the tables.
I'm not sure if that is the case or if it's supposed to be like this as of now, but to to give an example of what I'm referring to:
SELECT * FROM move_effect_prose WHERE move_effect_id IN (3, 4, 5, 6, 37, 70) AND local_language_id = 9;
returns entries like:
id: 5
short_effect: Has a $effect_chance% chance to [burn]{mechanic:burn} the target.
effect: Inflicts [regular damage]{mechanic:regular-damage}.  Has a $effect_chance% chance to [burn]{mechanic:burn} the target.

Are those $effect_chance and [regular damage]{mechanic:regular-damage} etc.  supposed to be numbers/regular text instead, or is this just the way it is right now? Do I need to edit each record manually to fix these entries (there are many) or is there some other way to do it?
I also noticed that PokeAPI that used veekun for some of its data also has these kind of entries for moves, so maybe I'm not the only one.
Thank you so much for any help! :)

Veekun replaces $effect_chance with the actual effect chance of the move. The placeholder is necessary because moves can have the same effect but different effect chances. For example, lick and thunder punch https://github.com/veekun/pokedex/blob/57915f656b5e5148f4694402d32cfa39a9050dae/pokedex/db/markdown.py#L98-L101
The [regular damage]{mechanic:regular-damage} things are links. They're usually used to link to pokemon, move, item, or ability pages, e.g. in mirror move's effect. (mechanic: links are intended to go to a page that explains how the mechanic works, but we never actually wrote any of those, so they just get replaced with regular text.)
https://veekun.com/dex/moves/mirror move#effect. https://github.com/veekun/pokedex/blob/57915f656b5e5148f4694402d32cfa39a9050dae/pokedex/db/markdown.py#L8-L10

Oh, that makes sense! Thank you very much for clarifying :)


A way to disable cache and read directly from file

Hi I was wondering if there is a way for me to read the image file directly without needing cache.
I am trying to open a large backup but don't have a drive large enough to cache all the data on

Hi Izak,
Unfortunately none of the compression formats available in Clonezilla support seeking, which is why it's necessary to extract (and cache) the content first. I have asked Steven over at Clonezilla to consider a seekable format, but it's a big change and may not get traction.
What compression format does your image use? (Please post a screenshot if unsure). I may be able to help if it's GZip.
Thanks!
Fidel

Hi Sorry I am responding only now.
I think we used Gzip.

Thanks, I'll put something together for you which creates a much smaller cache file.

Thanks so much. I have been trying to just recover password saved to
Firefox on it but has been taking forever to 1 build the cache and then 2
being unable to find a drive big enough to take the cache
On Mon, Oct 31, 2022 at 1:58 PM Fidel Perez-Smith @.***>
wrote:

Thanks, I'll put something together for you which creates a much smaller
cache file.
—
Reply to this email directly, view it on GitHub
https://github.com/fiddyschmitt/clonezilla-util/issues/17#issuecomment-1296982055,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGA44GIBYOVGDPH42NQUYRDWF6X5RANCNFSM6AAAAAARPDCX6A
.
You are receiving this because you authored the thread.Message ID:
@.***>

:) No worries!
I'm just running automated tests now. I'll upload the new version tonight (~in about 12 hours)

Hi Izak,
I've created v2.0.1, available here: https://github.com/fiddyschmitt/clonezilla-util/releases/tag/v2.0.1
It uses gztool to make a much smaller cache.
Please let me know how it goes :)
Cheers,
Fidel

Hi Fiddyschmitt/Clonezilla-Util
This worked perfectly. I was able to get the system to mount the images and
get the data that I needed back. Thanks so much
On Tue, Nov 1, 2022 at 3:03 PM Fidel Perez-Smith @.***>
wrote:

Hi Izak,
I've created v2.0.1, available here:
https://github.com/fiddyschmitt/clonezilla-util/releases/tag/v2.0.1
It uses gztool to make a much smaller cache.
Please let me know how it goes :)
Cheers,
Fidel
—
Reply to this email directly, view it on GitHub
https://github.com/fiddyschmitt/clonezilla-util/issues/17#issuecomment-1298475982,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGA44GN2MC4CJYJ6NNBU4OLWGEIL7ANCNFSM6AAAAAARPDCX6A
.
You are receiving this because you authored the thread.Message ID:
@.***>

That's awesome!! Thanks Izack, my pleasure :)


个人主页 - Diego | BY Blog

https://diego-x.github.io/about/
Every failure is leading towards success.

测试


docker app: hot module reload showing in log but not working in google and firefox browsers

type: bug report.
browsers: chrome and firefox latest
port: default port 3000
report: Hot module reload says its working to be working but i have to hit page refresh to see the update. Please note the site is running behind a nginx proxy but this hasnt affected other react and next apps running ok on different ports.
here is the server log on saving a change to a file.... looks like its working.
1|razzle  | ℹ Compiling Client
1|razzle  | ℹ Compiling Server
1|razzle  | ✔ Server: Compiled successfully in 389.42ms
1|razzle  | ✔ Client: Compiled successfully in 413.53ms
1|razzle  | ℹ Compiling Client
1|razzle  | 🔁  HMR Reloading ./server...
1|razzle  | [HMR] Updated modules:
1|razzle  | [HMR]  - ./src/Home.js
1|razzle  | [HMR]  - ./src/App.js
1|razzle  | [HMR]  - ./src/server.js
1|razzle  | [HMR] Update applied.
1|razzle  | ✔ Client: Compiled successfully in 526.55ms
thanks

here is the log when i start the app. certainly looks like the HMR is working.
1|razzle   |
1|razzle   | ><EMAIL_ADDRESS>start /app/razzle/razzle
1|razzle   | > PORT=3100 razzle start
1|razzle   |
1|razzle   |  WAIT  Compiling...
1|razzle   |
1|razzle  | ℹ Compiling Client
1|razzle  | ℹ ｢wds｣: Project is running at http://localhost:3101/
1|razzle  | ℹ ｢wds｣: webpack output is served from undefined
1|razzle  | ℹ ｢wds｣: Content not from webpack is served from /app/razzle/razzle
1|razzle  | ℹ ｢wds｣: 404s will fallback to /index.html
1|razzle  | ✔ Client: Compiled successfully in 13.18s
1|razzle  | ℹ Compiling Server
1|razzle  | ✔ Server: Compiled successfully in 1.51s
1|razzle  | Warning: Please use require("react-router-dom").Route instead of require("react-router-dom/Route"). Support for the latter will be removed in the next major release.
1|razzle  | Warning: Please use require("react-router-dom").Switch instead of require("react-router-dom/Switch"). Support for the latter will be removed in the next major release.
1|razzle  | ✅  Server-side HMR Enabled!
1|razzle  | 🚀 started

the page is making repeated failed calls to:
https://apps.syntapse.co.uk:3001/sockjs-node/info?t=1571847228425
header info:
General:
Request URL: https://apps.syntapse.co.uk:3001/sockjs-node/info?t=1571847232592
Referrer Policy: no-referrer-when-downgrade

and
Request headers:
Provisional headers are shown
DNT: 1
Origin: https://razzle.syntapse.co.uk
Referer: https://razzle.syntapse.co.uk/?fbclid=IwAR2sdhz9TCnS_Eevqxb-gKx2y5PALzK3balX-lYtwmM21CAad6G77GneJzQ
Sec-Fetch-Mode: cors
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

and
Query String Parameters
t:<PHONE_NUMBER>592

Also....
Where would i see socket error failures on the server if there are any? Are they included in the tests?
Is the browser polling the server for for changes?

I have the same issue. Do you use any code splitting?

Nothing outside the most basic create-razzle-app code and config.

I made it work now. Do you have a repo I could look at?

No repo to show but this is the basic create-razzle-app so i havent added anything. The problem must be configuration.
To confirm: have you made hot reload work? If so may I ask what changes you have made. My docker-compose config very similar to yours and using the same env vars so shouldnt be wildly different.
thanks

The only things I have defined are .env and and docker-compose.yml
.env file looks like this:
HOST='apps.syntapse.co.uk'
PORT=3002
VERBOSE='true'
NODE_ENV='production'
BUILD_TARGET='server'
PUBLIC_PATH='https://after.syntapse.co.uk/'
CLIENT_PUBLIC_PATH='https://apps.syntapse.co.uk/'
NODE_ENV='development'

i can only guess (hope) there is another env var needed to get sockets working as https://apps.syntapse.co.uk:3001/sockjs-node/info?t=1571847232592 fails.

I disabled code splitting in dev and fixed the træfik routing.
PathPrefixStrip here https://github.com/fivethreeo/react-ssr-django-jwt-docker/blob/master/docker-compose.dev.yml#L82
Custom env vars here
https://github.com/fivethreeo/react-ssr-django-jwt-docker/blob/master/docker-compose.dev.yml#L91
Client here
https://github.com/fivethreeo/react-ssr-django-jwt-docker/blob/master/src/client.js#L70
Patching here to get rid of the 3001
https://github.com/fivethreeo/react-ssr-django-jwt-docker/blob/master/razzle.config.js#L47

to confirm: these changes enable hot module reload?

Well, how did you mount your code in docker? Your client should be ok already. If you forward 3001 patch and prefixstrip are not needed. RAZZLE_HOTCLIENT_NOPORT in the patch. RAZZLE_DISABLE_CODESPLIT i use in razzle-config.js and client since i use code splitting. So your code should work already. Can you post your client.

thanks by client do you mean client.js file?

Yes

Ah, ensureready  beaks it

? does that mean the default create-razzle-app is broken?

It means the after example is broken.

apologies here is the default create-razzle-app client.js used in the original post.
import App from './App';
import BrowserRouter from 'react-router-dom/BrowserRouter';
import React from 'react';
import { hydrate } from 'react-dom';

hydrate(
  <BrowserRouter>
    <App />
  </BrowserRouter>,
  document.getElementById('root')
);

if (module.hot) {
  module.hot.accept();
}

That should work

i don't want to get off-topic but are you able to explain why the after.js example is not working, and do you think its worth raising separate issue?

I think jared himself is dropping after.js as it is now. React core will add better serverside code splitting and suspense for data fetching soon so not much use for after.js. So there fix would be remove the example.

Broken hot module reloading that is. The rest works.

Bu if you limit to one chunk in dev and just hydrate without the ensureReady it will work for dev and code split and use ensureReady in production.

thanks back to original issue: I just noticed there is also a console error with each failed socket attempt.  ive updated initial comment...
sockjs.js:1606 GET https://apps.syntapse.co.uk:3003/sockjs-node/info?t=1572018247174 net::ERR_SSL_PROTOCOL_ERROR

Post your razzle-config.js too

i havent defined any razzle-config.js at all. Im trying to make it work with simplest possible configuration. Is there any basic config required for docker but not documented?
ps: big thanks for your help on this. documentation is sparse and I am by no means an expert in webpack... i hope this trail helps others getting started...

How does port 3001 reach docker?

I've published a range of ports starting 3000 in my docker-compose file. 3001 is def exposed to the world because the client is using it to get the bundle.js file.
services:
apps:
ports:
- "3000-3010:3000-3010"
expose:
- "80"

Then you need to use http not https if this is your actual setup.

The nginx reverse-proxy for the razzle app is sitting behind a higher level reverse proxy that provides https to a range of containers. To the outside world they are all https though they are all configured locally as http. The top level reverse proxy does the SLL conversion.

Ah then you need a razzle.config.js.

'use strict';

module.exports = {
  modify: (defaultConfig, { target, dev }, webpack) => {
    const config = defaultConfig;

    if (target === 'web' && dev) {
      config.devServer.public = 'localhost:443';
    }
    return config;
};

Try this one :)
https://github.com/fivethreeo/razzle-with-docker-nginx

most likely cause of issues:
initsocket in socketjs is calling http:// address this is destined to fail as the site is only accessible via browser as http.
is there some socket specific config that is not documented?
initSocket | @ | socket.js:20
-- | -- | --
  | (anonymous) | @ | client:176
  | ./node_modules/webpack-dev-server/client/index.js?http://apps.syntapse.co.uk:3001 | @ | client:176

solved in https://github.com/jaredpalmer/razzle/issues/1144


When closing DBeaver and there are unsaved files, add an option to perform an action to all of them

Is your feature request related to a problem? Please describe.
When closing DBeaver and there are unsaved files, DBeaver asks for each file if user wants to Save, Don't Save or Cancel with a modal dialog and 3 buttons. If there are many unsaved files, this is an unnecessary repetitive action.
Describe the solution you'd like
When closing DBeaver and there are unsaved files, there should be an additional option (a checkbox for example) to perform the action to all unsaved files (either Save or Don't Save). The checkbox should appear only if there are multiple unsaved files. Eventually a listing of all them (in a scrollable list box for example) could be added too.
Describe alternatives you've considered
Alternatively, if there are multiple unsaved files, a multi-select list box can be presented for user to choose which files he/she wants to be saved (like in Oracle SQL Developer).

I'm sure it worked this way some time ago (half year ago?). But yeah, recently it asks for every single file.
BTW the mentioned requester is still available if you chose to close all files/tabs. This requester was used in the past when closing application. However I would argue about the form of it. The logic it presents seems somehow strange to me. To ignore all changed files and to chose "do not save any file" you have to press "Save button" (after deselecting all files from the list of course).

We need to find out why we don't have it. It was meant to be implemented earlier.

May I add some infos.
It seems that there are problems in closing the transaction for each tab.
Opening DBeaver with some open tabs, and closing immediatly after completely loading the application, in Oracle (don't know if it is important) ask for "Commit changes"
the dialog says:
"You are about to disconnect from database "XXX (SQLEditor <XXXX.sql>)".
Do you want to commit current transaction?"
In this case there is Remember choice, but the strange is that transaction started just to "load database" not cause by a query.
Also the Commit and rollback buttons are disabled.

@Cavva79  Isnt' it related to option "Open separate connection for metadata read" disabled?
If this option is disabled tabs and metadata uses the same connection. Then if query for metadata is not committed (is shouldn't since it would commit user transaction), then there is transaction remains open (in idle state).
I personally suggest to activate feature mentioned above. Don't know how Oracle driver works, but in postgres metadata are queries in auto-commit mode (when "Open separate connection for metadata read" feature feature is active). So issue you have mentioned doesn't appear.

Thank you @michalk-k for the idea, I haven't ear about that option. I checked and actually I have it checked. Maybe there is another configuration that keep metadata locking the transaction?


[MAVEN] Missing Version 3.0.2

Been setting up my DevEnv for 1.17.1 and wanted to make use of Trinkets API but is running into problems running it with the same issue as shown in #106 because 3.0.1 and 3.0.2 are both missing from the maven repo, making me unable to get access to the update through gradle.
Any plans to push 3.0.2 to Maven or are you waiting for another version before you do so?

I've just been having issues pushing versions to the maven, they'll be up asap

Any update on this, or is the maven still causing problems?

yes,maven still causing problems


Numba

cannot determine Numba type of <class 'dict'>

Am assuming that this is a duplicate of https://github.com/numba/numba/issues/7503, closing.


Cannot connect to container: Connection is reset by peer

Output of docker version:
Client:                                                                                │
 Version:      1.10.3                                                                          │
 API version:  1.22                                                                            │
 Go version:   go1.5.3                                                                         │
 Git commit:   20f81dd                                                                         │
 Built:        Thu Mar 10 15:39:25 2016                                                        │
 OS/Arch:      linux/amd64                                                                     │
                                                                                │
Server:                                                                                │
 Version:      1.10.3                                                                          │
 API version:  1.22                                                                            │
 Go version:   go1.5.3                                                                         │
 Git commit:   20f81dd                                                                         │
 Built:        Thu Mar 10 15:39:25 2016                                                        │
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 6
 Running: 1
 Paused: 0
 Stopped: 5
Images: 106
Server Version: 1.10.3
Storage Driver: devicemapper
 Pool Name: docker-202:1-1051827-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 107.4 GB
 Backing Filesystem: ext4
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 5.107 GB
 Data Space Total: 107.4 GB
 Data Space Available: 33.9 GB
 Metadata Space Used: 8.643 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.139 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.107-RHEL7 (2015-12-01)
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: host bridge null
Kernel Version: 3.10.0-123.9.3.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.452 GiB
Name: lukou-dev2
ID: 4KBB:RBYU:GQEX:LFMG:2SRJ:DEQY:AI55:IYIK:VQPE:6GST:MZIV:GYV2
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:

Run Container && redis-server

# docker run -it --name=test -p 6379:6379 redis:latest /bin/bash
# redis-server

Connection to redis is OK

redis-cli -p 6379

<IP_ADDRESS>:6379>
<IP_ADDRESS>:6379>
<IP_ADDRESS>:6379> set 1 100
OK
<IP_ADDRESS>:6379> get 1
"100"
<IP_ADDRESS>:6379>

telnet <IP_ADDRESS> 6379
Trying <IP_ADDRESS>...
Connected to <IP_ADDRESS>.
Escape character is '^]'.
get 1
$3
100
set 1 233
+OK
get 1
$3
233

Connection is refused to my app

app code

# coding: utf-8
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello World!'

if __name__ == '__main__':
    app.run(debug=True,port=6379)

run app

[root@d0170648dcd9 home]# python hello.py
 * Running on http://<IP_ADDRESS>:6379/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger pin code: 245-957-456

connection is refused

telnet <IP_ADDRESS> 6379
Trying <IP_ADDRESS>...
Connected to <IP_ADDRESS>.
Escape character is '^]'.
Connection closed by foreign host.

curl <IP_ADDRESS>:6379
curl: (56) Recv failure: Connection reset by peer

# netstat

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    844 xxx-dev2:ssh          <IP_ADDRESS>:65196    ESTABLISHED
tcp        0      0 xxx-dev2:51303        <IP_ADDRESS>:http      ESTABLISHED
tcp6       0      0 localhost:6379          localhost:33602         TIME_WAIT

Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):

Sloved
http://stackoverflow.com/questions/27806631/docker-rails-app-fails-to-be-served-curl-56-recv-failure-connection-reset

In case of Flask application you need to add to your Dockerfile something like:
ENV FLASK_APP app.py
ENTRYPOINT ["python", "-m", "flask", "run", "--host=<IP_ADDRESS>"]


rowClick executes both onSelectRow and onRowClick

When I click the checkbox element it should only tigger the onSelectRow function. It executes both onRowClick and on onSelectRow. Found the problem.. silly issue!
This is wrong..
  rowClick(e){
    if(e.target.tagName !== "INPUT")
      if (this.props.selectRow && this.props.selectRow.clickToSelect) this.props.onSelectRow(e.currentTarget.rowIndex, !this.props.isSelected);
      if (this.props.onRowClick) this.props.onRowClick(e.currentTarget.rowIndex);
  }

Should be..
  rowClick(e){
    if(e.target.tagName !== "INPUT") {
      if (this.props.selectRow && this.props.selectRow.clickToSelect) this.props.onSelectRow(e.currentTarget.rowIndex, !this.props.isSelected);
      if (this.props.onRowClick) this.props.onRowClick(e.currentTarget.rowIndex);
    }
  }

Or else there is some very weird behavior.
Braces are important, ha.

I probably should've wrote some jest test for them. If I get some time, I'll do that.

oh god, I can't believe I make this shame mistake ;(

No problem! I made the mistake first, haha. Easy fix. :)

Thanks :) I've merged and fixed it on v1.2.8


question about mask in data_loader

Hi, I have a question about the "mask" in DataLoader(),
for i in range(minlen - 1):
     idx_input = idx_target
     idx_target = df.item_idx.values[start + i + 1]
     input = torch.LongTensor(idx_input)
     target = torch.LongTensor(idx_target)
     yield input, target,  mask

'mask' is all the same during the for loop, but I think it should be reset to [] after the first loop.
Otherwise, the reset_hidden() will always reset the hidden state.
Could you check it, Thank you!

@HAN-Yuqiang thank you for your question.
Currently, I am very busy at my company, so I have no time to check your issue right now :(
I will try to check it as soon as possible.
Sorry about that :(

Hi, I have a question about the "mask" in DataLoader(),
for i in range(minlen - 1):
     idx_input = idx_target
     idx_target = df.item_idx.values[start + i + 1]
     input = torch.LongTensor(idx_input)
     target = torch.LongTensor(idx_target)
     yield input, target,  mask

'mask' is all the same during the for loop, but I think it should be reset to [] after the first loop.
Otherwise, the reset_hidden() will always reset the hidden state.
Could you check it, Thank you!

@HAN-Yuqiang  Do you mean mask reset after while not finished: ?

Hi, I have a question about the "mask" in DataLoader(),
for i in range(minlen - 1):
     idx_input = idx_target
     idx_target = df.item_idx.values[start + i + 1]
     input = torch.LongTensor(idx_input)
     target = torch.LongTensor(idx_target)
     yield input, target,  mask

'mask' is all the same during the for loop, but I think it should be reset to [] after the first loop.
Otherwise, the reset_hidden() will always reset the hidden state.
Could you check it, Thank you!

@HAN-Yuqiang You mean mask reset after yield statement, Right ?

Yes, I think it should be that.