Auto encoder classification in Keras

Hello,
I have an issue i think it is from dimensions:
I am trying to find a useful code for improving classification using autoencoder. I followed this example keras autoencoder vs PCA But not for MNIST data, I tried to use it with cifar-10
so I made some changes but it seems like something is not fitting. Could any one please help me in this? if you have another example that can run in different dataset, that would help.
the validation in reduced.fit, which is (X_test,Y_test) is not learned, so it gives wronf accuracy in .evalute() always give val_loss: 2.3026 - val_acc: 0.1000 This is the code, and the error:
`
from keras.datasets import  cifar10
from keras.models import Model
from keras.layers import Input, Dense
from keras.utils import np_utils
import numpy as np

num_train = 50000
num_test = 10000

height, width, depth = 32, 32, 3 # MNIST images are 28x28
num_classes = 10 # there are 10 classes (1 per digit)

(X_train, y_train), (X_test, y_test) = cifar10.load_data()

X_train = X_train.reshape(num_train,height * width * depth)
X_test = X_test.reshape(num_test,height * width*depth)
X_train = X_train.astype('float32')
X_test = X_test.astype('float32')

X_train /= 255 # Normalise data to [0, 1] range
X_test /= 255 # Normalise data to [0, 1] range

Y_train = np_utils.to_categorical(y_train, num_classes) # One-hot encode the labels
Y_test = np_utils.to_categorical(y_test, num_classes) # One-hot encode the labels

input_img = Input(shape=(height * width * depth,))
s=height * width * depth
x = Dense(s, activation='relu')(input_img)

encoded = Dense(s//2, activation='relu')(x)
encoded = Dense(s//8, activation='relu')(encoded)

y = Dense(s//256, activation='relu')(x)

decoded = Dense(s//8, activation='relu')(y)
decoded = Dense(s//2, activation='relu')(decoded)

z = Dense(s, activation='sigmoid')(decoded)
model = Model(input_img, z)

model.compile(optimizer='adadelta', loss='mse') # reporting the accuracy

model.fit(X_train, X_train,
      nb_epoch=10,
      batch_size=128,
      shuffle=True,
      validation_data=(X_test, X_test))

mid = Model(input_img, y)
reduced_representation =mid.predict(X_test)

out = Dense(num_classes, activation='softmax')(y)
reduced = Model(input_img, out)
reduced.compile(loss='categorical_crossentropy',
          optimizer='adam',
          metrics=['accuracy'])

reduced.fit(X_train, Y_train,
      nb_epoch=10,
      batch_size=128,
      shuffle=True,
      validation_data=(X_test, Y_test))

scores = reduced.evaluate(X_test, Y_test, verbose=0)
print("Accuracy: ", scores[1])

`
Here is the output
Train on 50000 samples, validate on 10000 samples
Epoch 1/10
50000/50000 [==============================] - 5s - loss: 0.0639 - val_loss: 0.0633
Epoch 2/10
50000/50000 [==============================] - 5s - loss: 0.0610 - val_loss: 0.0568
Epoch 3/10
50000/50000 [==============================] - 5s - loss: 0.0565 - val_loss: 0.0558
Epoch 4/10
50000/50000 [==============================] - 5s - loss: 0.0557 - val_loss: 0.0545
Epoch 5/10
50000/50000 [==============================] - 5s - loss: 0.0536 - val_loss: 0.0518
Epoch 6/10
50000/50000 [==============================] - 5s - loss: 0.0502 - val_loss: 0.0461
Epoch 7/10
50000/50000 [==============================] - 5s - loss: 0.0443 - val_loss: 0.0412
Epoch 8/10
50000/50000 [==============================] - 5s - loss: 0.0411 - val_loss: 0.0397
Epoch 9/10
50000/50000 [==============================] - 5s - loss: 0.0391 - val_loss: 0.0371
Epoch 10/10
50000/50000 [==============================] - 5s - loss: 0.0377 - val_loss: 0.0403
Train on 50000 samples, validate on 10000 samples
Epoch 1/10
50000/50000 [==============================] - 3s - loss: 2.3605 - acc: 0.0977 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 2/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0952 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 3/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0978 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 4/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0980 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 5/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0974 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 6/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.1000 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 7/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0992 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 8/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0982 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 9/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0965 - val_loss: 2.3026 - val_acc: 0.1000
Epoch 10/10
50000/50000 [==============================] - 3s - loss: 2.3027 - acc: 0.0978 - val_loss: 2.3026 - val_acc: 0.1000
 9856/10000 [============================>.] - ETA: 0s('Accuracy: ', 0.10000000000000001)

Is there anyway to train the autoencoder and classifier jointly? I think the representation can be optimized to give the best classification results instead of minimizing the reconstruction loss solely.

@xuefeng7
I am also interested in it. Did you have solution?
#10037

Yep, you can "connect" features from discriminator (classifier) to decoder. Another approach provided with Adversarial Autoencoders:
https://towardsdatascience.com/a-wizards-guide-to-adversarial-autoencoders-part-4-classify-mnist-using-1000-labels-2ca08071f95

hello everyone, I have the same problem. I am trying to find a useful code for improving classification using autoencoder. I followed this example keras autoencoder vs PCA But not for MNIST data, I tried to use it with GTSR dataset.
This is my code
from keras.layers import Input, Dense
from keras.models import Model
from keras import regularizers
from keras.datasets import mnist
from keras import backend as K
import numpy as np
import matplotlib.pyplot as plt
import pickle
from matplotlib import pyplot
import cv2
import pandas as pd
Single fully-connected neural layer as encoder and decoder
use_regularizer = True
my_regularizer = None
my_epochs = 100
features_path = 'simple_autoe_features.pickle'
labels_path = 'simple_autoe_labels.pickle'
if use_regularizer:
# add a sparsity constraint on the encoded representations
# note use of 10e-5 leads to blurred results
# my_regularizer = regularizers.l1(10e-8)
my_regularizer = regularizers.l1(10e-12)
# and a larger number of epochs as the added regularization the model
# is less likely to overfit and can be trained longer
my_epochs = 100
features_path = 'sparse_autoe_features.pickle'
labels_path = 'sparse_autoe_labels.pickle'
this is the size of our encoded representations
encoding_dim = 2048   # 32 floats -> compression factor 24.5, assuming the input is 784 floats
this is our input placeholder; 784 = 28 x 28
input_img = Input(shape=(1024, ))
"encoded" is the encoded representation of the inputs
encoded = Dense(encoding_dim, activation='relu', activity_regularizer=my_regularizer)(input_img)
"decoded" is the lossy reconstruction of the input
decoded = Dense(1024, activation='sigmoid')(encoded)
this model maps an input to its reconstruction
autoencoder = Model(input_img, decoded)
Separate Encoder model
this model maps an input to its encoded representation
encoder = Model(input_img, encoded)
Separate Decoder model
create a placeholder for an encoded (32-dimensional) input
encoded_input = Input(shape=(encoding_dim,))
retrieve the last layer of the autoencoder model
decoder_layer = autoencoder.layers[-1]
create the decoder model
decoder = Model(encoded_input, decoder_layer(encoded_input))
Train to reconstruct MNIST digits
from keras import optimizers
from keras.optimizers import SGD
#opt = SGD(lr=0.1, momentum=0.9)
#adam = optimizers.Adam(lr=0.01)
configure model to use a per-pixel binary crossentropy loss, and the Adadelta optimizer
#autoencoder.compile(optimizer='adam', loss='binary_crossentropy' , metrics=['accuracy'])
customAdam = optimizers.Adam(lr=0.001) #you have no idea how many times I changed this number
autoencoder.compile(optimizer=customAdam,  # Optimizer
# Loss function to minimize
loss="mean_squared_error",
# List of metrics to monitor
metrics=["accuracy"])
prepare input data
#(x_train, _), (x_test, y_test) = mnist.load_data()
train = pd.read_pickle('./traffic-signs-data/train.p')
test =  pd.read_pickle('./traffic-signs-data/test.p')
(x_train1, _) = train['features'], train['labels']
x_train = []
x_test = []
for i in x_train1:
i = cv2.cvtColor(i, cv2.COLOR_RGB2GRAY)
x_train.append(i)
(x_test1, y_test) = test['features'], test['labels']
for i in x_test1:
i = cv2.cvtColor(i, cv2.COLOR_RGB2GRAY)
x_test.append(i)
normalize all values between 0 and 1 and flatten the 28x28 images into vectors of size 784
x_train = np.array(x_train)
x_test = np.array(x_test)
x_train = x_train.astype('float32') / 255.
x_test = x_test.astype('float32') / 255.
x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:])))
x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:])))
print(x_train.shape)
print(x_test.shape)
Train autoencoder for 50 epochs
history = autoencoder.fit(x_train, x_train, epochs=my_epochs, batch_size=128, shuffle=True, validation_data=(x_test, x_test),
verbose=2)
after 50/100 epochs the autoencoder seems to reach a stable train/test lost value
Visualize the reconstructed encoded representations
encode and decode some digits
note that we take them from the test set
encoded_imgs = encoder.predict(x_test)
decoded_imgs = decoder.predict(encoded_imgs)
evaluate the model
_, train_acc = autoencoder.evaluate(x_train, x_train, verbose=0)
_, test_acc = autoencoder.evaluate(x_test, x_test, verbose=0)
print(train_acc, test_acc)
plot loss during training
pyplot.subplot(211)
pyplot.title('Loss')
pyplot.plot(history.history['loss'], label='train')
pyplot.plot(history.history['val_loss'], label='test')
pyplot.legend()
plot accuracy during training
"""pyplot.subplot(212)
pyplot.title('Accuracy')
pyplot.plot(history.history['train_acc'], label='train')
pyplot.plot(history.history['val_acc'], label='test')
pyplot.legend()
pyplot.show()"""
save latent space features 32-d vector
pickle.dump(encoded_imgs, open(features_path, 'wb'))
pickle.dump(y_test, open(labels_path, 'wb'))
n = 6  # how many digits we will display
plt.figure(figsize=(10, 2), dpi=100)
for i in range(n):
# display original
ax = plt.subplot(2, n, i + 1)
plt.imshow(x_test[i].reshape(32, 32))
plt.gray()
ax.set_axis_off()
# display reconstruction
ax = plt.subplot(2, n, i + n + 1)
plt.imshow(decoded_imgs[i].reshape(32, 32))
plt.gray()
ax.set_axis_off()

plt.show()
#K.clear_session()
here is the output
Epoch 99/100

3s - loss: 5.2503e-04 - acc: 0.2400 - val_loss: 9.5665e-04 - val_acc: 0.2069
Epoch 100/100
3s - loss: 5.3183e-04 - acc: 0.2379 - val_loss: 0.0011 - val_acc: 0.2013
0.23379982184595052 0.2013460015740927

please somebody help me if you get the answer.


Updated the installation documentations.

Suggested PATH modification no longer obstructs system installed julia binaries (fixes #56).
Suggestion to add --optimize=0 to the playground shebang which should also improve load times (fixes #57).

Codecov Report

Merging #68 into master will decrease coverage by 7.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #68      +/-   ##
==========================================
- Coverage   91.64%   84.55%   -7.09%
==========================================
  Files          12       12
  Lines         395      395
==========================================
- Hits          362      334      -28
- Misses         33       61      +28


feat(era1 bridge): add gossip epoch mode for reliable testing

What was wrong?
Using a provider is unreliable for testing using kurtosis
Solution? Use era1 files as they remove the provider failure point out of the equation
How was it fixed?
Adding a optional specifier for epoch.

ooh, looks like we've done the same thing... #1155

Oh I didn't see that. I like this version as you only have to enter a number from 0 to 1967* instead of a full file name

Agreed that only entering in e600 is better than the entire file path. But, iiuc your version isn't functional until we migrate to an index.html directory? Since our xml directory only has 1000 keys, any epoch from 1000 -> 1867 won't work

Ok, well anyways we don't need every epoch right now so I'll close #1155

I was using this during my kurtosis test runs yesterday. As I wanted to remove the provider out of my equation when testing trin. I am interested what weird behavior dod you experience?

Imo, the weird behavior was proabably due to a slight difference in setup b/w your approach and mine. I don't think it's worth explaining here b/c it's somewhat complex / unrelated. Basically, just a final double check to make sure that gossiping fourfours & fourfours:e* works, since these paths are tough to test, is what I'm asking.


Remove MD5 leftovers

Motivation:
MD5 was used in old websocket drafts, that we have since removed support for.
Modification:
Remove functionality and references to MD5 that are no longer used.
Result:
Code scanning will be happy to see that we no longer mention MD5 in our websocket code.

@chrisvest thanks!


CRD name changes in cleanup for RHODS install doc

Small changes needed for crd cleanup in the quickstart docs...
WAS:
schedulingspecs.mcad.ibm.com appwrappers.mcad.ibm.com quotasubtrees.ibm.com
but now is:
quotasubtrees.quota.codeflare.dev
appwrappers.workload.codeflare.dev
schedulingspecs.workload.codeflare.dev

PR created here:  https://github.com/red-hat-data-services/distributed-workloads/pull/28

Shoot, we got a new high vulnerability, patching that one too.
High,Has fix,High severity,Recent vulnerability  CVE-2023-45142 https://nvd.nist.gov/vuln/detail/CVE-2023-45142 Y   fixed in 0.44.0


Must Have Autoscroll Features

Describe your suggested feature
Hi, First of all a Big Thanks !.
Love your App, such a great experience.
I'm trying my best to exploit its use :D, like using it on phone, eink tablet and even on Windows Pc [by using Android subsystem for windows]
I have a Humble request to make it's use even smoother on phone as well as on windows.
AutoScroll:
Scroll Time - We alreadey have this feature
While in AutoScroll:
One Tap - To Pause the Auto-Scrolling
One Tap Again - To Start the Auto-Scrolling
Manually Scrolling up or down shouldn't stop scrolling.
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 1.10.5.
[X] I will fill out all of the requested information in this form.

It'll be great if I get just play pause autoscroll some how while in reading...
Using touch gestures.
Problem I'm Facing:
Autoscroll stops and I need to wait for some time before it resumes in following situations:

While reading in auto-scroll I missed reading a panel I go back manually then wait for autoscroll to start
In Landscape Mode, If there's a vertical panel full page on one side next to box panels then I manually see full vertical panel then wait for autoscroll to start

Having a gestures to touch manga page to pause and play autoscroll will help a lot instead of wating for autoscroll to begin automatically.


fix(eslint error): unable to resolve path to module 'vite' in vite.config.ts

📝 Description
When I cloned the project to the local and execute the yarn command in the root directory (install the npm package), then open the apps/builder/vite.conifg.ts file, it shows unable to resolve path to module 'vite' in vite.config. ts.
When I found out that this was an error from eslint, I modified the eslintrc file in the root directory and fixed it.
💣 Is this a breaking change (Yes/No):

[ ] Yes
[x] No

🚧 How to migrate?
Don't need.
📝 Additional Information

branch should dev


[stack-hci-vm] Add stack-hci-vm 1.1.5 to index.json

This change fixes a bug related to the attestation status making it a part of the normal show vm command.
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
[ ] My extension version conforms to the Extension version schema

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

stack-hci-vm

closed by https://github.com/Azure/azure-cli-extensions/pull/7850


Swiping one item at a time on v4

Is this a bug report, a feature request, or a question?
(Write your answer here.)

Have you followed the required steps before opening a bug report?
(Check the step you've followed - put an x character between the square brackets ([]).)

[x] I have read the guidelines regarding bug report.
[x] I have reviewed the documentation in its entirety, including the dedicated documentations :books:.
[x] I have searched for existing issues and made sure that the problem hasn't already been reported.
[x] I am using the latest plugin version.
[x] I am following the issue template closely in order to produce a useful bug report.

Have you made sure that it wasn't a React Native bug?
(Write your answer here.)

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
(Write your answer here and specify the iOS/Android versions on which you've been able to reproduce the issue.)
Is the bug reproductible in a production environment (not a debug one)?
As currently, I have a problem with V4, when I swipe left many cards move to left.
Expected Behavior
How to solve this in 2020 because in V4.xxx beta property scrollEndDragDebounceValue is removed and enableMomentum will be removed in V4

any update

I am trying to achieve this as well.

Me too

I have this configuration and its working fine on android.
react-native-snap-carousel version 4.0.0-beta.6
<Carousel
	onScrollIndexChanged={(index) => setActiveIndex(index)}
	ref={carousel}
	data={feedData}
	sliderWidth={Dimensions.get('window').width}
	itemWidth={Dimensions.get('window').width}
	renderItem={renderItem}
	layout={'default'}
	inactiveSlideOpacity={1}
	inactiveSlideScale={1}
	enableSnap={true}
	disableIntervalMomentum={true}
	shouldOptimizeUpdates
	removeClippedSubviews={true}
/>

@Alejov0  seems that one works on Android. However, it does not work on iOS including infinite loop. Any thoughts?

for iOS is limited only to 3 sets of slides

Try to set the property:
useScrollView={true}

setting the prop useExperimentalSnap={true} did the trick for me!

Sorry, please allow me to advertise for my open source library! ~
I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2


[Bug] [Module Name] oracle cdc同步到doris时数据丢失

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
oracle cdc同步到doris时数据丢失
SeaTunnel Version
2.3.7
SeaTunnel Config
env {
  job.name = "S-GL_JE_LINES"
  job.mode = "STREAMING"
  parallelism = 1
  checkpoint.interval = 10000
  read_limit.rows_per_second=10240
}
source {
 Oracle-CDC {
    base-url = "jdbc:oracle:thin:@//xxxx:1521/prod"
    username = "xxx"
    password = "xx"
    database-names = ["PROD"]
    schema-names = ["GL"]
    table-names = ["PROD.GL.GL_JE_LINES"]
    table-names-config = [
      {
        table = "PROD.GL.GL_JE_LINES"
        primaryKeys = ["JE_HEADER_ID","JE_LINE_NUM"]
      }

    ]

    source.reader.close.timeout = 120000
    skip_analyze = true
    use_select_count = true
    exactly_once = false
  }
}

sink {
  Doris {
    fenodes = "<IP_ADDRESS>:8030,<IP_ADDRESS>:8030,<IP_ADDRESS>:8030"
    username = "xx"
    password = "xxx"
    database = "asset_finance"
    table = "GL_JE_LINES"
    sink.label-prefix = "prod-oracle-${table_name}"
    sink.enable-2pc = false
    sink.enable-delete = true
    doris.batch.size = 10240
    doris.config {
      format = "json"
      read_json_by_line = "true"
    }
    schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
    data_save_mode = "APPEND_DATA"
    save_mode_create_template = """
      CREATE TABLE IF NOT EXISTS `${database}`.`${table_name}` (
      ${rowtype_fields}
      ) ENGINE=OLAP
        UNIQUE KEY (${rowtype_primary_key})
        DISTRIBUTED BY HASH (${rowtype_primary_key})
        PROPERTIES (
          "replication_allocation" = "tag.location.default: 1",
          "in_memory" = "false",
          "storage_format" = "V2",
          "disable_auto_compaction" = "false"
        )
      """
  }
}

Running Command
使用dolphinscheduelr启动任务，${SEATUNNEL_HOME}/bin/seatunnel.sh --config /tmp/dolphinscheduler/exec/process/dolphinscheduler/125888949220480/125976721417921_43/1060/1629/seatunnel_1060_1629.conf --deploy-mode cluster

Error Exception
/

Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

实时同步着，就出现丢数据的情况

worker节点报个异常


Update pixels.json

Checklist

[x] I ran npm test locally and it passed without errors.

[x] I only edited the _data/pixels.json file.

[ ] I entered the username in the pixels.json that I'm also using to create this pull request.
[x] I acknowledge that all my contributions will be made under the project's license.

Can You please label this PR as "hacktoberfest-accepted" so that it gets to count as a PR.


waitress is required, so add "pip install" to quickstart

This is what the [server] is for in pip install pypicloud[server]. The extras_require in setup.py should make that command also install waitress. Did you run that command and not end up with waitress installed?


Split common columns documentation

Context
This is part of a wider effort to improve the visibility and documentation of the exports and is a continuation of https://github.com/DFE-Digital/apply-for-teacher-training/pull/4295 and https://github.com/DFE-Digital/apply-for-teacher-training/pull/4333.
We currently have a list of common columns in _common_columns.yml. Similar to the issue we saw with the locales strings, this file became very long and it was worth splitting it out.
Changes proposed in this pull request
This PR splits out the file into multiple smaller files and updates the logic to load and then merge these files together. Hopefully, this makes the documentation files easier to read and easier to add to in future.
Guidance to review
There will be some work in a future PR to DRY out the data_set_documentation class and to throw exceptions when files aren't found or if shadowed columns are present. I've intentionally kept this PR small and focussed.
Link to Trello card
https://trello.com/c/s2pOqGYM/3162-export-documentation
Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] This code does not rely on the addition/removal of Azure config environment variables in the same Pull Request
[x] New environment variables have been added to the Azure config

⚠Please do not merge just yet. I'll merge it in once https://github.com/DFE-Digital/apply-for-teacher-training/pull/4333 is merged


Don't replace original label if no match found

When using relabeling, I set up a bunch of relabel rules, but those are
for exceptions. Most of the time the original value should be used.

You can also work around this easily with a match rule like this:
matches:
  regexp: '^(.+)$'
  replacement: '$1'

The yaml syntax should probably be mentioned in the README though...
Also, if one doesn't look into the Go source code, it's not simple to figure out that you can use groups from the regexp in the replacement via $*. Would also be helpful to mention that :)

Sorry for the late response; this issue is actually by design, more or less. By simply passing values through from your access.log to Prometheus, you create a potentially unbound set of label values, which opens up possible new problems (also see the original discussion on this feature in #16).
I'd be OK with using the original values if explicitly enabled by the user, e.g. something like
relabel "request_uri" {
  from = "request"
  split = 2

  match "^/users/[0-9]+" {
    replacement = "/users/:id"
  }

  default {
    passthrough = true
  }
}

And then, there's of course still the workaround mentioned by @jorinvo.
@Ajnasz I hope this answer was helpful, even if late. Any thoughts on this?


Encoders.deletemarkers

Case of deletion markers need to be addressed in TOGTS and in sorting (GTSHelper.fullsort(GTSEncoder....))

Closing for now.


Json benchmark

Added a JSON parser benchmark between different languages and Nit using 3 variants:

Nit/NitCC: The old parser relying on NitCC, which is slow and memory-consuming (more than 6 Gio RAM for the 100Mio escaping-intensive file)
Nit/Ad-hoc UTF-8 no ropes: The new parser working exclusively on FlatString
Nit/Ad-hoc UTF-8 with ropes: The new parser with a mix of Concat and FlatString

I hear you all clamouring, well, here are the results (after #1885 and #1887, naturally):

So yeah, I guess we could do better when it comes to escaping since the biggest difference in runtime is in the large_escape benchmark which coincidentally contains mostly \uXXXX characters.
Other than that, we do as well as Go and better than Ruby (also worse than Python, but this does not count), which is nice.
About the inputs:

large_escaped is an unusual file since it contains large strings with lots of unicode escaping sequences which should highlight the handling of String-to-Int conversions and Unicode-escape-sequences-to-UTF-8-characters, and it is big, as in very big (94.7 Mio)
magic, a normally-formatted 54 Mio JSON file with quite a bunch of Unicode characters
gov_data, a 6.9 Mio JSON file with ASCII characters only
twitter, a 64 kio JSON file with a lot of japanese characters

I might add some more files later to better represent the variety of inputs, but right now is a good time to push the benchmark suite, enjoy !
Note: Since the ad-hoc JSON parser is benched, #1886 will need to be merged prior to this one if the bench is to work on your machines

After optimizing the UTF-escaping part, we are definitely closer to Go than ever
Here are the results:

I'll upload a PR later with the modifications

good. Even if histogram are hard to read.

Reroll: Fixed license issues and tried a new layout for histograms, @privat which do you prefer ?

Reroll: Added multipliers as @privat requested, also sorted by runtime ascending on gnuplot
Here's the histogram produced:

check license

Reroll: License info added on multiply_x.sh shell files

test this please

test this please


Force specific labels for specific namespaces

Describe the feature
It would be a addition to the feature forbiddenLabels. For those forbiddenlabels, lets allow the cluster admin to set them, with a specific value, namespace by namespace.
What would the new user story look like?
apiVersion: capsule.clastix.io/v1beta2
kind: Tenant
metadata:
  name: oil
spec:
  namespaceOptions:
     forcedMetadata:
    - namespaces:
       - namespace1
       - namespace10
      labels:
          label1: value1
          label2: value2
    - namespaces:
      - namespace2
      - namespace21
      labels:
          label1: another-value1
          label2: another-value2

With this manifest, namespaces 1 and 10 would have some labels enforced on them. And ns 2 and 21, another set of labels.
Use case
Labels can be used in netpol, as mentionned in this doc. This feature would allow to a cluster admin to manage these labels at a tenant level.

This feature would require in advance the name of the Namespaces, and this would break the concept of self-service on which Capsule has been designed on top of.
What you're looking for is already supported with the forbidden Namespace metadata, and with some fine-tuning on your CI system, it could be done: I'm imaging a Job that constantly reconciles with a kubectl label ns namespace2 label1=another-value1 label2=another-value2.
That's my opinion, not sure what's the idea of @MaxFedotov and @oliverbaehler.

IMO, it is role of the multi-tenacy operator to enforce that, not an additional CI/CD tool.
In our use-case,

the network policies of the tenant are described in the tenant manifest.
there manifests are stored in git
users make PR to request changes
Changes about the policies are reviewed by the security team as well.
Merged changes are applied by the operator.

I don't really see the point of having a a fixed list of namespaces, probably selectors would make sense and as Dario mentioned, that's hot possible. What's the purpose? I would assume you are doing some sort of namespace profiling. Do you have Kyverno in use or any other simplified policy engine for Kubernetes?

Indeed, We use kyverno, as well as netpols. They are based on namespace labels I don't want the tenant owners to change without a validation from security team. I can set those labels in the forbidden list. But that's not enough. We need to enforce their values, per namespace.

This feature request is stale, a consensus has not been found, and neither raised as a requested topic to discuss on any community calls.
I'm going to close this one, feel free to open it back if somebody is demanding this feature.


How to connect phpstorm to ollama?

What happened?
I have ollama installed and llama3 running on my mac, http://<IP_ADDRESS>:11434   , can also connect to it in OpenWebUI. How do i connect phpstorm to this?
this doesnt work

Relevant log output or stack trace
No response
Steps to reproduce
No response
CodeGPT version
2.6.3-241
Operating System
macOS

Hi, please use the Custom OpenAI Service with the Ollama template to connect with CodeGPT

doesnt seem to work...

You'll have to change model specified in the body of the requests to llama3


Update dpla-map to <IP_ADDRESS>-pre8; ignore Redis backup file

:+1: Will merge when :travis: is happy.


simple code update

Update the comments and python logic

Fixes # (issue)
Before submitting

Who can review?
Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested:

[ ]


increment upload metric for each successful file

I should have incremented the metrics this way before merging pull request #393 - this should hopefully help smooth out the chart for this metric.

@pietroalbini r?

Thanks!


JavaDoc 8.0 exits with failure status due to invalid documentation tags

A new feature in JavaDoc 8.0 is docLint which, as the name implies, is a linter. As such, it will return a non-zero status unless all JavaDoc comments use valid syntax.
This causes an issue when packaging PortEx on JDK 8, for instance, there are several uses of @param that are non-compliant, which will cause JavaDoc to exit with an, further resulting in SBT aborting the build.
I fixed this by adding the following line to build.sbt
javacOptions in JavaDoc += "-Xdoclint:none"

Thank you for the issue. I will add the line temporarily to build.sbt and fix the comments.


Non blocking cache

merge branch

Codecov Report

Merging #1 into master will increase coverage by 0.38%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master       #1      +/-   ##
============================================
+ Coverage     72.19%   72.57%   +0.38%
- Complexity      516      529      +13
============================================
  Files           114      116       +2
  Lines          1802     1827      +25
  Branches        272      272
============================================
+ Hits           1301     1326      +25
  Misses          438      438
  Partials         63       63

Impacted Files
Coverage Δ
Complexity Δ

...a/ru/job4j/nonblocktask/nonblockingcache/Base.java
100% <100%> (ø)
6 <6> (?)

...onblocktask/nonblockingcache/NonBlockingCache.java
100% <100%> (ø)
7 <7> (?)

Continue to review full report at Codecov.

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


Adds permission node to bypass fly enforcement (#2469)

Basically #2469 that fixes #2467 but now moved to mv branch instead of by fork. Current still draft bcu not sure of the breaking behaviour changes.

I would like to once again thank you Ben for this PR / Version including the permission node.
It is really handy for me to be able to set this per world and it seems to work like a charm :)

This could be ported to MV5, then breaking changes won't matter.


Data discrepancy found

Invalid year for Lost In translation Movie.

Fixed in fdcd1bb27411e693343112ea4d71053541af0a12
and released in v1.0.0


Document events published by the API.

JIRA issues: DCOS-45420

@jeschkies can you move the file to e.g. docs/docs/wip or some other subfolder? that way it's clearer that this is part of the new docs and won't get mistaken.
We could also create a long-lived branch that we merge these into until we have a critical mass.
@timcharper @alenkacz I'd prefer having a clear indication where links are missing, instead of not having links at all. Until we have most of the articles, the majority of them will have missing links. I think having these docs in a clearly wip folder, or a remote branch, will help make that transparent.

Ping @alenkacz and @timcharper.

Won't do for now.


Cannot merge the following node because of null property value for 'uid': (:User {uid: null})

I'm trying out this tool for the first time and have an OpenShift cluster I am connecting to. These were my steps:

Downlod AppImage from https://neo4j.com/download/ and run it (including entering activation key)
Create a user opengraph with a password in Neo4j
oc login --server=https://[redacted]:6443 --web
oc whoami --show-token
python3 OpenShiftGrapher.py -a "https://[redacted]:6443" -t "[redacted]" -c all -u opengraph -p [redacted]

This is the end of the output:
[...]
#### RoleBinding ####
RoleBinding progress = 0.11737089201877934%
RoleBinding progress = 0.2347417840375587%
RoleBinding progress = 0.35211267605633806%
RoleBinding progress = 0.4694835680751174%
RoleBinding progress = 0.5868544600938966%
RoleBinding progress = 0.7042253521126761%
RoleBinding progress = 0.8215962441314555%
RoleBinding progress = 0.9389671361502347%
RoleBinding progress = 1.056338028169014%
RoleBinding progress = 1.1737089201877933%
RoleBinding progress = 1.2910798122065728%
RoleBinding progress = 1.4084507042253522%
RoleBinding progress = 1.5258215962441315%
RoleBinding progress = 1.643192488262911%
RoleBinding progress = 1.7605633802816902%
RoleBinding progress = 1.8779342723004695%
RoleBinding progress = 1.9953051643192488%
RoleBinding progress = 2.112676056338028%
RoleBinding progress = 2.2300469483568075%
RoleBinding progress = 2.3474178403755865%
Traceback (most recent call last):
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/OpenShiftGrapher.py", line 623, in <module>
    node = tx.merge(userNode)
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/database.py", line 1132, in merge
    merge(self, primary_label, primary_key)
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/data.py", line 318, in __db_merge__
    identities = [record[0] for record in tx.run(*pq)]
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/database.py", line 992, in run
    self._connector.pull(result, -1)
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/client/__init__.py", line 1434, in pull
    cx.pull(result, n=n)
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/client/bolt.py", line 1001, in pull
    self._audit(self._transaction)
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/client/bolt.py", line 810, in _audit
    task.audit()
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/client/bolt.py", line 1140, in audit
    item.audit()
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/client/bolt.py", line 1140, in audit
    item.audit()
  File "/home/jgirlich/Dokumente/Tools/OpenShiftGrapher/venv/lib/python3.10/site-packages/py2neo/client/bolt.py", line 1303, in audit
    raise self._failure
py2neo.errors.ClientError: [Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})

Would it be possible to skip broken user IDs?

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

Hello,
It seems that somehow the "subjectName" of the node that is handle is empty. Could you try to put a try catch around the graph instruction like so:
                try:
                    tx = graph.begin()
                    r2 = Relationship(userNode, "HAS ROLEBINDING", rolebindingNode)
                    if roleKind == "ClusterRole":
                        r3 = Relationship(rolebindingNode, "HAS CLUSTERROLE", roleNode)
                    elif roleKind == "Role":
                        r3 = Relationship(rolebindingNode, "HAS ROLE", roleNode)
                    node = tx.merge(userNode)
                    node = tx.merge(rolebindingNode)
                    node = tx.merge(roleNode)
                    node = tx.merge(r2)
                    node = tx.merge(r3)
                    graph.commit(tx)
                except:
                    pass

It should let you progress, but it will not fix the underlining issue. On my side I will try to prevent the script to stop by catching such exception and put a warning in the console.

I pushed a new commit that should ignore corner cases, like the one that you encounter, you can see in the console the associated exception.
I also updated the example queries.
Please feel free to post any issue that you encounter.

The output looks like this now, but it works and I get a graph in the end.
[...]
#### RoleBinding ####
RoleBinding progress = 0.11695906432748539%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 0.23391812865497078%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 0.3508771929824561%
[-] RoleBinding subjectKind not handled Group
RoleBinding progress = 0.46783625730994155%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 0.5847953216374269%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 0.7017543859649122%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 0.8187134502923977%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 0.9356725146198831%
[-] RoleBinding subjectKind not handled Group
RoleBinding progress = 1.0526315789473684%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 1.1695906432748537%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 1.2865497076023393%
[-] RoleBinding subjectKind not handled Group
RoleBinding progress = 1.4035087719298245%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 1.5204678362573099%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 1.6374269005847955%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 1.7543859649122806%
[-] RoleBinding subjectKind not handled Group
RoleBinding progress = 1.8713450292397662%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 1.9883040935672516%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 2.1052631578947367%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 2.2222222222222223%
[-] RoleBinding subjectKind not handled Group
RoleBinding progress = 2.3391812865497075%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 2.456140350877193%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 2.5730994152046787%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 2.690058479532164%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 2.807017543859649%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 2.923976608187134%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.0409356725146197%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.1578947368421053%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.274853801169591%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.3918128654970756%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.508771929824561%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.625730994152047%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.7426900584795324%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.8596491228070176%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 3.976608187134503%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.093567251461988%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.2105263157894735%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.3274853801169595%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.444444444444445%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.56140350877193%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.678362573099415%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.7953216374269%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 4.912280701754386%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.029239766081871%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.146198830409357%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.263157894736842%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.380116959064328%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.497076023391813%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.614035087719298%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.730994152046784%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.847953216374268%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 5.964912280701754%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.081871345029239%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.1988304093567255%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.315789473684211%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.432748538011696%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.549707602339182%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.666666666666667%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.783625730994151%
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})
RoleBinding progress = 6.900584795321637%
[-] RoleBinding subjectKind not handled User
[-] RoleBinding subjectKind not handled User
RoleBinding progress = 7.017543859649122%
[-] RoleBinding subjectKind not handled User
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 7.1345029239766085%
[-] RoleBinding subjectKind not handled User
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 7.251461988304094%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 7.368421052631578%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 7.485380116959065%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 7.602339181286549%
[-] RoleBinding subjectKind not handled ServiceAccount
RoleBinding progress = 7.719298245614035%
[-] RoleBinding subjectKind not handled ServiceAccount
[...]

The message RoleBinding subjectKind not handled ServiceAccount is repeated a lot.
Thanks a lot!

Thanks for you response! I spotted a indentation issue, that's why we see the:
"[-] RoleBinding subjectKind not handled ServiceAccount"
I fix it right away.

If you care about the value of the node that return a null value, you can try to enable the
print(enum)
to figure out why the subject is empty.

I moved the print(enum) into the except part of the code. Otherwise it was way too much output (at line 815):
                    except Exception as e:
                        if release:
                            print(enum)
                            print(e)
                            pass
                        else:
                            exc_type, exc_obj, exc_tb = sys.exc_info()
                            fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
                            print(exc_type, fname, exc_tb.tb_lineno)
                            print("Error:", e)
                            sys.exit(1)

This is the output:
{'apiVersion': 'rbac.authorization.k8s.io/v1',
 'kind': 'RoleBinding',
 'metadata': {'creationTimestamp': '2024-06-09T09:34:56Z',
 'managedFields': [{'apiVersion': 'rbac.authorization.k8s.io/v1',
 'fieldsType': 'FieldsV1',
 'fieldsV1': {'f:roleRef': {}, 'f:subjects': {}},
 'manager': 'openshift-apiserver',
 'operation': 'Update',
 'time': '2024-06-09T09:34:56Z'}],
 'name': 'xxxxxx',
 'namespace': 'xxxxxxxx',
 'resourceVersion': '1038443',
 'uid': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'},
 'roleRef': {'apiGroup': 'rbac.authorization.k8s.io',
 'kind': 'ClusterRole',
 'name': 'xxxxxxx'},
 'subjects': [{'apiGroup': 'rbac.authorization.k8s.io',
 'kind': 'User',
 'name': 'xxxxxxxx'}]}
[Statement.SemanticError] Cannot merge the following node because of null property value for 'uid': (:User {uid: null})

The user id field contains a UUID. I don't understand why it's failing here. Maybe I did something wrong?

Hi,
I fixed the issue. it was a confusion in the node creation! Thanks for your help and the information. I didn't have this case in my own test cluster.

Great, works without a problem now!


[BUG]: Content is behind navbar in All Doctor's page.

Description
There's a bug in the all doctors page, it is sticking to the top of the screen behind navbar
Please provide a brief description of the issue or feature request.
Actual Behavior
Currently content is behind navbar
Please describe what actually happened.
When we click and go to the all doctors page it is sticking to the top of screen, showing adverse behaviour
Expected Behavior
Content should be present below the navbar.
Please describe what you expected to happen.
Steps to Reproduce (if applicable)

Step 1: Open the website
Step 2: Go to the All Doctors section from Navbar
You will see it from there.

Screenshots (if applicable)

I will clear this issue, please assign it to me under GSSOC'24. @itsmohit097

the page is not ready yet
some is already assigned for creating the page

Okay sure.. :)

Also navbar is not fixed at the middle position, it is floating at the top of the screen of nav have you assigned it to someone else? if not then i'll raise an issue related to it.


[BUG] 4.1.0 causes TypeScript compilation errors - addRows styleOption should be optional?

🐛 Bug Report
Upgrading to 4.1.0 results in TypeScript compilation errors for previously working code like:
sheet.addRows(rows);
It looks like the problem was introduced in Added insert rows functionality with new style inherit options. The new TypeScript definition is:
addRows(rows: any[], styleOption: string): void;
Shouldn't styleOption be optional with a default value?

Sorry for the mishap. And thanks for quick response @sdg9670.
For the code, @cduff, If you are in hurry for release, you can use 'n' in styleOptions parameter.

Closing this, as we just need to wait for the release: #1362


c++ language is missing in languages

Issue Type: Feature Request
c++ language is missing in language type like plain text ,html,c#,c++ objective please help
VS Code version: Code 1.62.0 (b3318bc0524af3d74034b8bb8a64df0ccf35549a, 2021-11-03T15:23:01.379Z)
OS version: Windows_NT x64 6.1.7601
Restricted Mode: No

Did you follow the instructions here?
https://code.visualstudio.com/docs/languages/cpp

C++ is missing here
On Tue, 9 Nov 2021, 11:42 am r, @.***> wrote:

On Tue, 9 Nov 2021, 11:25 am John Murray, @.***>
wrote:

Did you follow the instructions here?
https://code.visualstudio.com/docs/languages/cpp
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/136721#issuecomment-963840073,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWM5CFZ53ZRBVVFUKQCGY63ULCZTVANCNFSM5HUM4MRA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Where is c++ missing?

C++ is missing here
…
On Tue, 9 Nov 2021, 11:42 am r, @.> wrote: On Tue, 9 Nov 2021, 11:25 am John Murray, @.> wrote: > Did you follow the instructions here? > > https://code.visualstudio.com/docs/languages/cpp > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#136721 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AWM5CFZ53ZRBVVFUKQCGY63ULCZTVANCNFSM5HUM4MRA > . > Triage notifications on the go with GitHub Mobile for iOS > https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 > or Android > https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. > >

C++ is missing here so I can't change file type to c++

Did you follow the instructions here?
https://code.visualstudio.com/docs/languages/cpp

Well, did you?

Did you follow the instructions here?
https://code.visualstudio.com/docs/languages/cpp

Well, did you?

Yes I have
installed  c++ intelisence extension
Code runner
And installed mingw compiler ( it's running in command prompt)

Please reply

Try installing the C/C++ extension:

Can any one tell me how to correct this open close state modification

I have reinstalled vs code many times

Seems that you haven't installed the c++ extension. Just a c++ intrllisense extension may not work.

Thanks to all I got it
By mistake I have did some modifications in setting
I just reseted the default setting and it was done🙂🙂🙂🙂


Doesnt' work with Kubuntu 24.4

In version 23.10 it did work well, but in  v24.4 it does not start. I couldn't find any config files or logs for the app so I can't provide more infos. The checked version is Deepl-Linux-Electron-1.4.3 and older.
If I start it in the konsole the following error appears
[9743:0628/113125.920065:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_Deepl-WP4iQu/chrome-sandbox is owned by root and has mode 4755.

Got it working, it is a common problem with sandboxing under Ubuntu 24.4.
You need to run it with  --no-sandbox command. Below is a possible menu entry for Kubuntu:
/usr/share/applications/Deepl-Electron.desktop
[Desktop Entry]
Name=Deepl-Desktop
GenericName=Deepl-Translation
Comment=Translation
Exec=/opt/appimage/Deepl-Linux-Electron-1.4.3.Appimage --no-sandbox
Terminal=false
Type=Application
Icon=dropbox
Categories=Office;Utilities;
Keywords=translation;
StartupNotify=false

Thansk, I've been busy in the past few months and just noticed this problem


Allow URL paths on CGW_URL

Summary
The function urljoin from urllib.parse expect a base and a url to concat.
As the path being concatenated to CGW_URL is /v1/hooks/events, the function urljoin interprets url as a base domain, and splits out any path it can have. This causes problems when the base URL does contain paths, as those are split out.
Changes

The URL being added to CGW_URL is now v1/hooks/events, and the / URL separator is concatenated to the base conditionally (to avoid separator duplications).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1176

Relevant Lines:
1180

💛  - Coveralls


added next steps to onboarding

https://github.com/dockstore/dockstore/issues/3114
Onboarding wizard was good for setting up your third party accounts and installing Dockstore, but then doesn't really tell you where to go next. I've added another stepper option that helps new users figure out where to go next.
EDIT: see comment for newer version
Open to more ideas.

Looks overwhelming for a couple reasons:

too much capitalization draws the eye to too many places (Check Out Our Extensive Documentation vs Check out our documentation)
a lot of dark blue buttons also draw the eye too much

I feel like I'm looking everywhere

So more spacing and buttons with no colour? @denis-yuen

Better I think, open to thoughts from others too

So more spacing and buttons with no colour? @denis-yuen

How about no buttons and just links? But given buttons, yes I prefer the second option.

Also the word "Learn" is there 4 times, and "Learn about" twice; sort of repetitive


show set display language action for lang pack extensions

show set display language action for lang pack extensions
Fixes #154461

@sandy081 does this change work alright for the pseudo language pack?

Is that a special language pack? May I know how to try it?


first iteration of publish button done

Finished Publish Button.
Test cases still need to be made.
Color adjustments may also need to be made.

final publish button complete with tests


Issue #329: Enable dangerous feature flag

Signed-off-by: Tom Kaitchuck<EMAIL_ADDRESS>Change log description
Prevent a compile error.
Purpose of the change
Fixes #329
What the code does
Enable dangerous feature flag on rustls to prevent a compile error. (Dangerous configuration is only enabled if explicitly set in client config)

Codecov Report

Merging #330 (6ee4b20) into master (98384c1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #330   +/-   ##
=======================================
  Coverage   74.51%   74.51%
=======================================
  Files          47       47
  Lines       11311    11311
=======================================
  Hits         8428     8428
  Misses       2883     2883

Impacted Files
Coverage Δ

src/segment/reader.rs
68.95% <0.00%> (ø)


Add others comparisons in WHERE

closes #72

Current coverage is 88.52% (diff: 100%)

Merging #83 into master will increase coverage by 1.99%

@@             master        #83   diff @@
==========================================
  Files             6          8     +2
  Lines           735        924   +189
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            636        818   +182
- Misses           65         69     +4
- Partials         34         37     +3

Powered by Codecov.  GetQueryOperator function support this. =)

@marioidival  fix conflit on tables

@felipeweb done bro!

@avelino @marioidival @cassiobotaro @crgimenes  Which pattern we will follow in operators? I like the join $eq. instead eq.
If you like this, we need to change join operators to follow a pattern.
i judge very important define a pattern for this case.

Let's follow the pattern with $

@avelino @felipeweb done!


How to have a night LED mode (timer) for router's led to turn off and on all leds at particular times daily on openwrt firmware?

I tried myself and also searched everywhere for setting night led mode feature for OpenWrt firmware but all effort went to no avail for such a simple feature. This feature is already avilable on the stock firmware of my wifi router TP-Link Archer C6 AC1200 v3.2 which is itself based on OpenWrt and for which I have provide all related files from my research here in my repository : https://github.com/blue-pine/openwrt-tplink_archer_c6_v3.2 . Still I have failed to join the led_night_mode library (from stock router firmware) to the OpenWrt firmware for use on the router. So, I ask for everyone's help whatever they can provide for getting this last and only feature lacking on all OpenWrt firmwares. If you need any help then please ask me, you are always welcome.
Thank you

All components are there, LED config, and cron.

All components are there, LED config, and cron.

Thank you, but I am a beginner and dont know how to go forward, so how can I integrate this timer with openwrt ?

Forums have more help.
https://github.com/openwrt/openwrt/issues/14279
As a beginner you can quickly test what someone else derives from wifischedule, like cron scripts. Or switch off all leds. Or use electricians tape to hide blinking.

Forums have more help. openwrt/openwrt#14279 As a beginner you can quickly test what someone else derives from wifischedule, like cron scripts. Or switch off all leds. Or use electricians tape to hide blinking.

Happy new year and thank you for your help. Will explore and check for more help


Pyhooks: Explain how to run tests (and fix them)

Without the pyproject.toml fix:
E       fixture 'mocker' not found

[...]

==================================================================================== short test summary info ====================================================================================
ERROR tests/test_hooks.py::test_log_image
ERROR tests/test_hooks.py::test_log_with_attributes[content0]
ERROR tests/test_hooks.py::test_log_with_attributes[content1]
ERROR tests/test_hooks.py::test_log[content0]
ERROR tests/test_hooks.py::test_log[content1]
ERROR tests/test_hooks.py::test_pauser[no_calls]
ERROR tests/test_hooks.py::test_pauser[pause_success]
ERROR tests/test_hooks.py::test_pauser[two_pauses_succeed_with_one_request]
ERROR tests/test_hooks.py::test_pauser[pause_error_then_retry]
ERROR tests/test_hooks.py::test_pauser[pause_error_successful_retry_only_two_requests]
ERROR tests/test_hooks.py::test_pauser[unpause_no_request_does_nothing]
ERROR tests/test_hooks.py::test_pauser[pause_then_unpause]
ERROR tests/test_hooks.py::test_pauser[pause_error_then_unpause_tries_to_pause_again]
ERROR tests/test_hooks.py::test_pauser[pause_error_then_unpause_tries_to_pause_again_but_gives_up_on_error]
ERROR tests/test_hooks.py::test_pauser[no_record__no_calls]
ERROR tests/test_hooks.py::test_pauser[no_record__pause]
ERROR tests/test_hooks.py::test_pauser[no_record__two_pauses]
ERROR tests/test_hooks.py::test_pauser[no_record__three_pauses]
ERROR tests/test_hooks.py::test_pauser[no_record__pause_unpause]
ERROR tests/test_hooks.py::test_pauser[no_record__pause_then_unpause]
ERROR tests/test_hooks.py::test_trpc_server_request[no_errors]
ERROR tests/test_hooks.py::test_trpc_server_request[error_on_first_call]
ERROR tests/test_hooks.py::test_trpc_server_request[error_on_pause]
ERROR tests/test_hooks.py::test_trpc_server_request[error_on_unpause]
ERROR tests/test_hooks.py::test_trpc_server_request_simulate_disconnect
== 2 passed, 1 warning, 25 errors in 1.81s ==

With the pyproject.toml fix:
== 27 passed, 56 warnings in 6.23s ==

I know there are many other things that could be added to the readme.
(I had to solve this anyway for https://github.com/METR/vivaria/pull/441 )
Split up into CONTRIBUTING.md as suggested here, I have no strong feelings about it myself.

:)
@mtaran Continuing the discussion here since a closed PR probably isn't so good for that


soc: intel: cavs: add secondary core context save support

The secondary core context save is already supported by ace platform but missed on cavs platform. Now add it for cavs.
Validated on TGL platforms

@andyross  @tmleman  Update the PR according to your comments.  Thanks!

Typos in commit description:

Save secondary dsp contest when it is powered of in idle thread

thanks, updated.

Typos in commit description:

Save secondary dsp contest when it is powered of in idle thread

thanks, updated.

is powered off?

Typos in commit description:

Save secondary dsp contest when it is powered of in idle thread

thanks, updated.

is powered off?

o, thanks! updated.

@tmleman  update, thanks for review!

@andyross  Could you help to review it ?  Thanks!

@nashif  Could you help to review this PR ?  Thanks!


[macOS] robotgo.GetBounds wrong result

Robotgo version (or commit ref): 11268cb7c223cd2c0c2d1cffec300f9e99179951
Go version: go version go1.14.3 darwin/amd64
Gcc version: Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)
Operating system and bit: macOS Mojave 10.14.6 x64
Resolution:2560x1600
Provide example code:

package main

import (
	"fmt"
	"github.com/go-vgo/robotgo"
	"os"
)

func main() {
	appName := "Chrome"
	fpid, err := robotgo.FindIds(appName)
	if err == nil {
		fmt.Println("pids... ", fpid)
		x, y, w, h := robotgo.GetBounds(fpid[0])
		fmt.Printf("x:%d,y:%d,w:%d,h:%d",x,y,w,h)
		os.Exit(0)
	}
	fmt.Printf("'%s' not found, start it pls")
}

Output:

pids...  [770]
x:1597440,y:512,w:70684774,h:70

Description
X and W always get random numbers while my Chrome window not moving.
Y and H always constants, even I move my Chrome window around workspace and resize it.
...

Closing is due to duplicate ( #230, #210 ), it is a bug in GetBounds().


Fix React 17 crash due to internal key name change in getFiber

According to this stackoverflow answer:

If you are using using React 17, you can try "__reactFiber" instead of "__reactInternalInstance". It seems React changed this property name in React 17.

Update the logic in getFiber to be compatible with both v16 and v17 property names.
Peer and test dependencies were updated to use v17 and appear to be functioning.
Fixes Paol-imi/muuri-react#49

@marcelchastain hey man, does this pr ever got merged?

Thanks @paol-imi, any plan of a new release?


AVX2 Instructions not found warning, when they are actually availabe.

Expected Behavior
When importing dlib in python I expect not to get any warning messages about AVX2 instructions not being available.
I have an Intel(R) Core(TM) i7-7700K cpu. It has AVX2 instructions since: grep avx2 /proc/cpuinfo matches avx2 in the flags section.
Also on Intel's webpage for the i7-7700K it says that AVX2 is included in the 'Instruction Set Extensions' section:
https://www.intel.com/content/www/us/en/products/processors/core/i7-processors/i7-7700k.html
Current Behavior
When importing dlib in python I get the following warning message every time:
Dlib was compiled to use AVX2 instructions, but these aren't available on your machine.
I am unsure if other aspects of dlib are impacted, or if it's only the warning message that gets printed.
This appears to be caused by lines 150 and 155-157 in dlib/simd/simd_check.h. Since the function on line 150 returns false instead of true.
Steps to Reproduce
Use an i7-7700K CPU.
Compile dlib for Python 3 with CUDA support, using the following compiler environment variables and build command in bash:
export CC=$(which gcc-6)
export CXX=$(which g++-6)
python3 setup.py build -j "$(nproc)" --yes USE_AVX_INSTRUCTIONS --yes USE_SSE2_INSTRUCTIONS --yes USE_SSE4_INSTRUCTIONS

Then run the following install command:
python3 setup.py install --skip-build --prefix=/usr --root="<install dir>" --optimize=1

Version: 19.10
Where did you get dlib:
The source code was downloaded from dlib.net and then compiled using the following PKGBUILD:
https://aur.archlinux.org/pkgbase/python-dlib-cuda/

The PKGBUILD in essence runs the commands mentioned in the 'Steps to Reproduce' section.

Platform:
lsb_release -a output:
LSB Version:	1.4
Distributor ID:	Arch
Description:	Arch Linux
Release:	rolling
Codename:	n/a
inxi output:
CPU: Quad Core Intel Core i7-7700K (-MT MCP-)
speed/min/max: 3300/800/5000 MHz
GPU: NVIDIA GP104 [GeForce GTX 1080]
Kernel: 4.15.13-1-ARCH x86_64
Up: 2:56
Mem: 4276.1/16002.3 MiB (26.7%)
HDD: 2.27 TiB (94.6% used) Procs: 295
Shell: bash 4.4.19
inxi: 2.9.07

Python version: 3.6.4
CUDA version: 9.1.85
CUDNN version: 7.1.2

Compiler:
CC: gcc-6 (GCC) 6.4.1 20171003
(assigned by export CC=$(which gcc-6))
CXX: gcc-6 (GCC) 6.4.1 20171003
(assigned by export CXX=$(which g++-6))

Edit: fix typos
Edit2: specify python version

That's what you did?  There is no -j in dlib's setup.py.  I just tried it to be sure and got an error.  I also have the same CPU in my workstation and I don't see this issue.

@davisking the -j option is available on line 150 in setup.py:
build_args += ['--', '-j'+str(num_available_cpu_cores(2))]

Although it only works with Python 3, and will indeed cause an error when compiling with Python 2.
I forgot to specify that I am building for Python 3. (Since on Arch python refers to python3.)
I checked and with Python 2 I don't get the warning message.
I have just rebuilt it for Python 3 without using the -j option, but I still get the warning message .

150 in setup.py doesn't parse your -j option.  But yes, I see that when using pyhton3 you don't get an error when giving -j.  My point was more that your instructions couldn't be correct.
I also just ran your exact commands on a machine with a i7-7700K and I don't see the warning.  I suspect you aren't really running things exactly the way you think.

My bad about the -j option.
You are correct that things were not being run the way I thought. :)
I have isolated the warning to being caused by having the CXXFLAGS environment variable set as the following:
CXXFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"

However when using the system default the warning message does not appear:
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"

From experimenting I have found the specific flag that leads to the problem is: -mavx2
If I don't pass -mavx2 directly or via -march=native, but I still use --yes USE_AVX_INSTRUCTIONS, does it actually compile dlib to support both avx and avx2?
I realize this may be a silly question but I'm just a little confused, since when passing only -mavx via:
-march=x86-64 -mavx -mtune=generic
there are no issues, but when passing -mavx2 via:
-march=x86-64 -mavx2 -mtune=generic or -march=x86-64 -mavx -mavx2 -mtune=generic
I get the warning about avx2 not being available.

I have no idea.  It's either enabling something your cpu doesn't have or the check is wrong.

Fair enough.
I'll close the issue since I found the cause and the way to fix it.

Out of curiosity, what happens when you run this program?

#include
#include <dlib/simd.h>
using namespace std;
using namespace dlib;
int main()
{
cout << "has avx: "<< cpu_has_avx_instructions() << endl;
cout << "has avx2: "<< cpu_has_avx2_instructions() << endl;
}

Those are the things it's checking, and for me using the same CPU as you, no matter what compiler settings I use it correctly says I have both avx and avx2.


Evetar_AutoFocus cause V2 to crash

I installed opencv3.2 and compiled Evetar_AutoFocus successfully.
However, running Evetar_AutoFocus will cause V2 to crash. Besides, it often encounters JSON parsing error:
ERROR: JsonServer could not parse message Invalid character found: '1' ERROR(client process): Invalid version.  Missing message or sourceId:{ 	"message" : { 		"ATL_WHITEBALANCE" : { 			"stateType" : "property", 			"type" : "AtlWhiteBalanceState", 			"value" : { 				"blue" : null 			} 		} 	}, 	"sourceId" : null }
output of Evetar_AutoFocus:
run3.txt

Sorry, I ran the code on a non evetar camera this morning. I will try this on another camera later.

@bmaione do you see this?

I haven't tried running V2 and the focus script at the same time. Since the focus script uses the microcamera API i'm not sure why it would cause a crash, unless there is some weird port issue going on.

It appears that I fixed this with most recent mantis examples commit. Closing for now.

We tried this on a camera we retro-fitted with all Evetar sensors and it works well with V2 running in parallel.

With the Evetar sensors you can use Evetar_AutoFocus to autofocus all cameras in parallel.
With the Leopard or Evetar sensors you can use Mantis_Camera_Focus to fine tune focusing with a graphical overlay to better determine best focus position


removed empty cell

Pull Request Description
I edited docs/source/demos/text_input.ipynb file
and removed the empty cell mentioned in the issues
Fixes #3206
After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of docs/source/release_notes.rst to include this pull request by adding :pr:123.

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

Thanks @Mahesh1822! I'm going to approve the our tests to run but you would still need to do the following:

Sign the Contributor License Agreement
Update the release notes by adding the "Future Release" section of docs/source/release_notes.rst to include this pull request by adding :pr:123.

Thanks @Mahesh1822! I'm going to approve our tests to run but you would still need to do the following:

Sign the Contributor License Agreement
Update the release notes by adding the "Future Release" section of docs/source/release_notes.rst to include this pull request by adding :pr:3233.

I'm new to this but I will try my best.

I did the changes now what to do ? I closed this PR I think


Exclude 'rosa' configurations from konfluxgen for SO

As discussed here https://redhat-internal.slack.com/archives/CD87JDUB0/p1724832142056839?thread_ts=1724766012.729079&cid=CD87JDUB0, this causes duplicated components for the same dockerfile

/lgtm


Joining files

This is a feature request. It would be nice to be able to upload multiple files to OneDrive and then, once they're uploaded, join them together into one file.
On Windows, this can be achieved through the following command:
copy /b 1.txt + 2.txt + 3.txt all.txt

It would be great for this functionality to be available on OneDrive too. An alternative to using one request to join multiple files, there could be an endpoint which will append one file's contents to another.
Amongst other uses, this could be useful for working around issues with uploading large files, as described in #240.

Good idea Tay! We'll take this into consideration.
If you don't mind, please consider adding this to our list on UserVoice so that others can vote to help prioritize this.

Thank you for your replies. I have posted my idea to your UserVoice list.
Should this and my other two related GitHub issues be closed?


getting Serial Number of NFC Card

Hi there ,
I want to get Serial Number of NFC Card by using nfc_in_flutter
I can get id, TNF, type, payload, data, and language. But unfortunately I can not get Serial number of NFC Card.
Is there any solution, please?

Any response, please?


Error when sending Unexpected input(s) 'if'

Hello!
I got problem today with sending, before all was fine.
My yml
name: telegram message
on: [push, pull_request]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
     - uses: actions/checkout@master

    #Request
     - name: Telegram Notify request
       if: ${{ github.event_name == 'pull_request' }}
       uses<EMAIL_ADDRESS>       with:
         to: ${{ secrets.CHAT }}
         token: ${{ secrets.TOKEN }}
         args: User ${{github.actor}} in ${{ github.repository }} repository. Make ${{ github.event_name }}. Job ${{github.job}} URL - "${{ github.event.pull_request.title }} --> ${{ github.event.pull_request.html_url }}"

    #Push
     - name: Telegram Notify push
       if: ${{ github.event_name == 'push' }}
       uses<EMAIL_ADDRESS>       with:
         to: ${{ secrets.CHAT }}
         token: ${{ secrets.TOKEN }}
         if: ${{ github.event_name == 'push'}}
         args: User ${{github.actor}} in ${{ github.repository }} repository. Make ${{ github.event_name }}. Job ${{github.job}} URL - "${{ github.event.head_commit.message }} --> ${{ github.event.head_commit.url }}"

Errors:

and

Is there something wrong with me?

Hey man. You have double if in #push
first after "-name:"
if: ${{ github.event_name == 'push'}}
then after "token"
if: ${{ github.event_name == 'push'}}
suppose this is solved by now, anyway this issue helped me out ^_^

Thank's yes i solved and update issue


Batch request returns HttpError 404 for every call

I have a little application based on google-api-python-client but the batch request has not been working anymore for a couple of days (error 404).
For example, the following code worked until few days ago
from apiclient.http import BatchHttpRequest
from apiclient.discovery import build
import json

DEVELOPER_KEY = "foobar"
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"

channelIds = ['UC2C_jShtL725hvbm1arSV9w','UC2C_jShtL725hvbm1arSV9w']

parts_list = [
"id",
"brandingSettings",
]

fields_list = [
"items/id",
"items/brandingSettings/channel",
]

parts = ",".join(parts_list)
fields = ",".join(fields_list)

request_map = {}

def this_is_the_callback_function(request_id, response, exception):
  if exception is not None:
    # Do something with the exception
    print exception
    pass
  else:
    print request_id
    print request_map[int(request_id)]
    print json.dumps(response,sort_keys=True, indent=4)

service = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION, developerKey=DEVELOPER_KEY)
batch = service.new_batch_http_request(callback=this_is_the_callback_function)

channels = service.channels()
i = 0
for c in channelIds:
    i += 1
    request_map[i] = c
    request = channels.list(id=c,part=parts, fields=fields)
    batch.add(request)
print request_map
batch.execute()

Now, If i run it, I get:
{1: 'UC2C_jShtL725hvbm1arSV9w', 2: 'UC2C_jShtL725hvbm1arSV9w'}
<HttpError 404 when requesting https://www.googleapis.com/youtube/v3/channels?fields=items%2Fid%2Citems%2FbrandingSettings%2Fchannel&alt=json&part=id%2CbrandingSettings&id=UC2C_jShtL725hvbm1arSV9w&key=foobar returned "Not Found">
<HttpError 404 when requesting https://www.googleapis.com/youtube/v3/channels?fields=items%2Fid%2Citems%2FbrandingSettings%2Fchannel&alt=json&part=id%2CbrandingSettings&id=UC2C_jShtL725hvbm1arSV9w&key=foobar returned "Not Found">

Strange. What it's seems really strange to me is that If I try to make a simple request to those links (simply by cutting and pasting an url in the browser) the server returns data as usual.

No relevant updates about that issue. The problem is still present.
I don't know if it is a problem of the Python library or a back-end one.


nft mint error in metaplex

Program log: This command has been deprecated in previous versions and has now been removed
Are there any plans to support the latest version of the command?

iirc metaplex has deprecated v2 metadata instruction. thank you for the reminding. I will upgrade them asap!

Looking forward to your update


[REQUEST] Bad Language Filter the same way as GriefPrevention Has.

Feature information

Please add the BAD  WORDS filter the same way GriefPrevention plugin currently has.

Other plugins or mods related to the request

GriefPreventio

Additional context

Chat filtering does not belong in a protection plugin and is just unneeded bloat. Use a proper chat plugin that supports what you want like ChatManager.
https://www.spigotmc.org/resources/chat-manager-1-7-1-18-30-features-and-40-commands.52245/


How can I prevent 'same UUID'-error when restart?

What is the problem?
I would like to know a way to prevent the 'same UUID' error (see below) when I restart Homebridge. Why does this error occur every time I restart Homebridge and is there a way to solve this?
How does this occur?
When I restart Homebridge (because I installed or edited a plugin) I alway get the error and Homebridge doesn't start.
The only solution I have found is to delete the accessories cache (on synology Docker: /volume1/docker/homebridge/accessories/cachedAccessories). After deleting this file Homebridge will run again.
The BIG problem with this is that all settings of Homebridge devices are lost in the Home-app (makes sense as you delete the cache :)). So all lights, sockets, etc. are all set to default (as favorite, default icons and deleted from automations). It takes me an hour or so to get everything sorted again.
Steps to reproduce and log
Shut down Homebridge in Docker (by flipping the switch in the container screen)
Start Homebridge in Docker (by flipping the switch again)
I can reach the webpage of Homebridge :8581 but it states that Homebridge is not running.
 Failed to find plugin to handle accessory Achterdeur Failed to find plugin to handle accessory Garagedeur opener Failed to find plugin to handle accessory Garagedeur status Failed to find plugin to handle accessory Hondenhok Failed to find plugin to handle accessory Kerstverlichting Achtertuin Failed to find plugin to handle accessory Kerstverlichting Storm Failed to find plugin to handle accessory Kerstverlichting Voortuin Failed to find plugin to handle accessory Kerstverlichting Woonkamer Failed to find plugin to handle accessory Lamp Honden Failed to find plugin to handle accessory Lamp Zolder Failed to find plugin to handle accessory Terras Failed to find plugin to handle accessory Verlengkabel Failed to find plugin to handle accessory Verlengkabel Failed to find plugin to handle accessory Verwarming Honden Failed to find plugin to handle accessory Voordeur Failed to find plugin to handle accessory Achterdeur [1/9/2020, 9:21:18 PM] Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 0b5e2abe-ee84-4702-a46e-bd5deeab9eb1     at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:268:13)     at Server._configCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:396:18)     at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:93:8)     at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)     at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)     at Module._compile (internal/modules/cjs/loader.js:959:30)     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)     at Module.load (internal/modules/cjs/loader.js:815:32)     at Function.Module._load (internal/modules/cjs/loader.js:727:14)     at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)     at internal/main/run_main_module.js:17:11 [1/9/2020, 9:21:18 PM] Got SIGTERM, shutting down Homebridge...
Versions

Homebridge: 0.4.50
Node:       12.14.0
OS:         Synology DSM 6.2.2-24922 Update 4 (DS415+) in a Docker Container
-Docker:  18.09.0-0506
-Plugins: homebridge-edomoticz-ui-x v1.1.3
homebridge-config-ui-x v4.6.7
homebridge-nefit-easy v2.2.0

This error has something to do with the naming of the accessories, or bridge accessory. I found this much on the internet, but deleting the accessories cache is the only solution given. Unfortunately this doesn't prevent the error from happening again at a future restart.
I can not find a solid solution, could someone please help me?

Problem was caused by the plugin homebridge-edomoticz-ui-x v1.1.3, I deleted that one and installed eDomoticz instead to connect Homebridge with Domoticz.
Now it seems that restarting Homebridge doesn't cause any troubles.


Prevent double-close of issues

It's currently possible to end double-closing issues thus leading to a negative number of pulls remaining to be closed. This PR reloads the issue from the database within the transaction and checks that it isn't already closed in the database.

Codecov Report

Merging #6233 into master will decrease coverage by 0.01%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master    #6233      +/-   ##
==========================================
- Coverage   38.85%   38.84%   -0.02%
==========================================
  Files         354      354
  Lines       50221    50225       +4
==========================================
- Hits        19515    19511       -4
- Misses      27880    27886       +6
- Partials     2826     2828       +2

Impacted Files
Coverage Δ

models/issue.go
48.26% <33.33%> (-0.08%)
:arrow_down:

modules/process/manager.go
76.81% <0%> (-4.35%)
:arrow_down:

models/repo_list.go
66.84% <0%> (-1.06%)
:arrow_down:

Continue to review full report at Codecov.

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


kong start error

Is there an existing issue for this?

[X] I have searched the existing issues

Kong version ($ kong version)
Kong 2.8.1
Current Behavior
MacOs install kong by brew
/etc/kong/konf.conf content:
database = postgres # Determines which of PostgreSQL or Cassandra
pg_host = <IP_ADDRESS> # Host of the Postgres server.
pg_port = 5432 # Port of the Postgres server.
pg_timeout = 5000 # Defines the timeout (in ms), for connecting,
pg_user = kong # Postgres user.
pg_password = kong # Postgres user's password.
pg_database = kong # The database name to connect to.
pg_ssl = off # Toggles client-server TLS connections
pg_ssl_verify = off # Toggles server certificate verification if
my bash_profile:
export PATH=/usr/local/openresty/nginx/sbin:$PATH
export PATH=/usr/local/openresty/bin:$PATH
export PATH="/usr/local/Cellar/kong/2.8.1/bin:$PATH"
but when i use command 'kong start -c /etc/kong/kong.conf'
the terminal return msg：
2022/08/12 14:16:00 [warn] ulimit is currently set to "256". For better performance set it to at least "4096" using "ulimit -n"
Error: nginx configuration is invalid (exit code 1):
nginx: [emerg] unknown directive "lua_kong_load_var_index" in /usr/local/opt/kong/nginx-kong.conf:50
nginx: configuration file /usr/local/opt/kong/nginx.conf test failed
Run with --v (verbose) or --vv (debug) for more details
i have this problem
Expected Behavior
No response
Steps To Reproduce
No response
Anything else?
No response

@Canon4G It looks like brew install is missing:
https://github.com/Kong/lua-kong-nginx-module
(I have not checked it, though)

@Canon4G It looks like brew install is missing: https://github.com/Kong/lua-kong-nginx-module
(I have not checked it, though)

thanks, i will try


Execute command line on Windows and dll in the same path

Elvish Vesion: 1.19.2
OS: Windows 11
I think it is a elvish bug: https://github.com/xmake-io/xmake/issues/3942
Here is the invoke chain:

C:\Qt\Tools\mingw810_64\bin\windres.exe

C:\Qt\Tools\mingw810_64\bin\gcc

C:/Qt/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/cc1.exe

I found that using elvish, cc1.exe can not find C:/Qt/Tools/mingw810_64/bin/libwinpthread-1.dll
It might be feature but not a bug???

Elvish Vesion: 1.19.2

There is no such Elvish version.
I read the other issue you linked to. I cannot see how this, or the other issue, has anything to do with the Elvish shell.

I read the other issue you linked to. I cannot see how this, or the other issue, has anything to do with the Elvish shell.

Yes, not a elvish issue. Just ignore it.


edit item metadata not working when changing metadata field name

Describe the bug
This is a bug shown Edit Item page.
It is related with edition of the metadata of an item, concretely, with the edition of the field of the metadata related with an item.
When the user tries to edit the field of one of the metadatas, with which it is related, an error is shown with popup in the edit item page.
To Reproduce
Steps to reproduce the behavior:

The first step is going into Menu → Edit → Item → Selecting an item from popup list of items.

In the Edit Item page, select the third option “Metadata“ to work with.

Click button edit (the first button) in the section Edit of the table (the last column) for one of the rows.

Try to edit the first column → named “Field“ (representing the metadata field) and replace it with another metadata field, for example replace dc.description with person.identifier.orcid. After that click check button (the first button in the last column with check sign).

After check button, click Save button shown above, in blue color. Change won't be saved and a popup error will appear

In the console is shown this request  sending a replace operation with the new metadata field set by the user, as it is shown in images below (the request and the error thrown  by the server):

Expected behavior
Is expected that after edition of the metadata field,  the metadata related with this item should be changed successfully  and must be related with the new field replaced by the user.
A popup of confirmation should be shown in the edit item page as it is shown below, as an example. Also in the table (in the row edited) must be shown the row of the metadata edited,  containing in the first column,  the new field replaced by the user.
We (4Science) can take in charge the fix of this bug, with two different approaches:

block the possibility of editing metadata field name by disabling it (and removing angular code triggered when metadata field name is changed)
OR
Handle the metadata field name change. When metadata field name changes:  i) a  remove is performed for the metadata which field is being changed, in case of repeated metadata only metadata in position (place) related to field being changed should be removed, and then an add in append (“/new-metadata/-”) for the new metadata  is performed.

First approach would roughly require 6 to 8 hours, including tests, while the second 12 to 16 hours.

@corrad82-4s : I'd recommend the first approach for this bug.  I think we should block the ability to edit the metadata field (either by disabling it, or removing the input field altogether, so it's just text).   So, I'll add a 7 hour estimate to this and assign back to you for 4Science to work on.  Thanks!


Update createWorkspace.ts

name: fernapi/fern-typescript-node-sdk
version: 0.9.5
--->
version: 0.13.0 (https://github.com/fern-api/fern/blob/main/generators/typescript/sdk/CHANGELOG.md#0130---2024-04-09)

@armandobelardo this is the manual version that needs to bumped. This creates the generators.yml when the fern init command is run.
Would love to close this PR and automate the version number here.

Thanks Danny! This PR should do the trick https://github.com/fern-api/fern/pull/3588


Enlarge the buffer for C_EncryptUpdate and C_DecryptUpdate when needed

Alternative implementation for https://github.com/Pkcs11Interop/Pkcs11Interop/pull/170 that should use less allocations.

Hello!
I'm upgrading interface of our Rutoken interop to version 5. Can you please make the same fix for your Pkcs11Interop v5?

Hello!
I'm upgrading interface of our Rutoken interop to version 5. Can you please make the same fix for your Pkcs11Interop v5?

I'll take a look at it over the weekend. It's tracked in #173.

I'll take a look at it over the weekend. It's tracked in #173.


TypeError: Cannot read properties of null (reading '2')

index.txt
I am getting Type error while converting the HTML text
Env
Node v16
OS: Mac
Library version: 1.8.0

I get the same error, did you find a solution?

no but what i did was first convert it to pdf and then to html file

This is because during the processing of the image, a certain edge case involving the image's URL occurred, causing the library to treat URLs that are not base64 as base64, such as relative paths starting with /.
The solution is to replace the image's URL with an absolute path, or manually download the image, generate its base64 and use it as the src in the corresponding img element.

An example:


warning/notice about hiera?

I noticed that this module recommends usage of Hiera by issuing the "warning" (it's marked as a notice in the actual output)
manifests/notice/config.pp:  $message = "[nginx] *** DEPRECATION WARNING***: HI! I notice that you're declaring some attributes in Class[nginx]. It is highly recommended to set these values via Hiera going forward. This will become mandatory in the near future. Please check out https://github.com/jfryman/puppet-nginx/blob/master/docs/hiera.md for more information."

When browsing through the sources, I couldn't find any place where puppet-nginx makes explicit use of hiera. Am I missing something?
In reality, I think it's correct that the module makes no assumptions about how and where the data is provided. That leaves the question of why puppet-nginx makes this recommendation.

Did you read the link it explains why this is been changed and also gives a recommendation on how to configure this without hiera

I did. I guess I was taken aback by the fact that puppet-nginx explicitly endorses a particular data model (Hiera) while in reality it shouldn't care.
In any case, if you think that this remark is invalid, feel free to close.


[BUG] The number component's preview panel does not show correct default value when user delete it

Environment

Formio.js version: 4.13.5
Frontend framework: Angular
Browser: Chrome

First issue
Steps to Reproduce

Write some number into default value
Delete digits one by one

Expected behavior
Default value should be empty
Observed behavior
First digit is still shown in preview panel
Example
https://user-images.githubusercontent.com/56341727/131491296-30e65888-7c01-40ee-b37f-ff79f26a5e2f.mp4
Second issue
Steps to Reproduce

Write some number into default value
Delete all digits at once

Expected behavior
Default value should be empty
Observed behavior
All digits are still shown in preview panel
Example
https://user-images.githubusercontent.com/56341727/131491704-ebce2eaa-0856-49a8-b03e-5147d633c1d3.mp4
Third issue
Steps to Reproduce

Write some number into default value
Delete digits by pressing the backspace button constantly

Expected behavior
Default value should be empty
Observed behavior
All digits except last are still shown in preview panel
Example
https://user-images.githubusercontent.com/56341727/131492059-9e5d8c28-e2c8-4a59-8d5e-777da381baf3.mp4

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!


GDScript: Optimize operators by assuming the types

This assumes that operators are called usually with the same type of operands as the first time. So it stores the types of the first run and if matched it uses an optimized path by calling the validated operator function directly. Otherwise it uses the regular untyped evaluator.
With this change, if operators do use the same type they run quite faster. OTOH, if the types mismatch it takes longer to run than they would with the previous code.
Note: this change may be a bit controversial as it makes operators slower when they fall in the non-optimized path (i.e. when the current operand types are different than the ones during the first run). The first time it ever runs is much slower, but since they are expected to run multiple times, this cost is amortized over time, as long as the optimized path is hit often.
I measured about 20% to 30% decrease in the execution time, when it falls into the optimized path. There's about 15% to 25% increase when it falls into the non-optimal path. All compared to the previous implementation of the operator opcode.
This doesn't affect validated operators (i.e. when types are known at compile time). The validated version is still faster.

I think the rationale here is that in the vast majority of cases you are expected to use the same types always, so it should be a net win in general.

The assumed type optimizations can be implemented in a lot of places in the VM given now Godot has pointers to functions for almost everything.

Thanks!


Update contract test suite

Closes: https://github.com/cosmos/peggy/issues/154
This PR updates the contract test suite and updates signature validation in preparation for the namespacing update. Run with truffle test from the testnet-contracts directory.
Test results: 62 passing (28s)

For contributor use:

[x] Targeted PR against correct branch (see CONTRIBUTING.md)
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Code follows the module structure standards.
[x] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added  relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[x] Re-reviewed Files changed in the Github PR explorer

For admin use:

[ ] Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
[ ] Reviewers assigned
[ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Merged the PR and added npx for truffle cmds in https://github.com/cosmos/peggy/pull/184/commits/618535ea35d16605cc5d7fdf6e1b1e8881c705fd.


Add Replicate demo and API

Hi @aluminumbox,
Great work on CosyVoice2!
This pull request makes it possible to run CosyVoice2  on Replicate (https://replicate.com/chenxwh/cosyvoice2-0.5b) and via API (https://replicate.com/chenxwh/cosyvoice2-0.5b/api). Additionally, we’d like to transfer the demo page to FunAudioLLM so you may modify the page easily, and happy to help maintain and integrate upcoming changes to improve the demo. :)

没看明白，这个predictor里面不是还是要区分 cosyvoice和cosyvoice2吗？

It is the CosyVoice2-0.5B model (https://github.com/chenxwh/CosyVoice/blob/main/predict.py#L40) saved in replicate.delivery for faster booting.

明白了，谢谢，但是暂时不考虑把过多复杂的部署或推理相关的东西引入，这个pr会保留再这里，方便有需要的人查阅


Ignoring existing files or files created before certain amount of time

I'm trying to listen a directory with thousand files (one log file per day) in a LAN network, this makes ready event takes a huge amount of time to trigger. But, once I know those files will not change, I don't want even listen to all those files at all.
Is there a way to just ignore files created before a certain time?

I could make it listing files within directory and filtering by birthtime stat.