fix: code comment link

What type of PR is this?

Documentation
What this PR does / why we need it:
Fix code comment linked address
Which issue(s) this PR fixes:
#295
Special notes for your reviewer:
linked with ReadniessProbe comment.

 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.


Replicate bug reports with tests

Replicating bugs with tests is an ongoing effort.
I'm closing this issue since 290f5478c0867403dd0d79402892773efee66ce6 lays the foundation.


Incorrect field used as mapping key for deserialization of 'mounts' in devcontainer.json

If specifying mounts in devcontainer.json and trying to mount the same volume in different locations, you get a deserialization error.
[2024-05-08T20:39:45.846Z] parsing /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.containerFeatures-1715200785780-516d96c0-3c67-479f-b191-c3c3d323c3c3.yml: yaml: unmarshal errors:
  line 28: mapping key "build-obj" already defined at line 26

However this works without problems if you specify the volumes in docker-compose.yml.
    volumes:
    - build-obj:/workspace/src/a/build
    - build-obj:/workspace/src/b/build

If a unique key is needed, the target and not the source of the mount should be used.
Log fragment
[2024-05-08T20:39:45.780Z] Docker Compose override file for creating container:
version: '3.8'

services:
  'dev-build':
    entrypoint: ["/bin/sh", "-c", "echo Container started\n
trap \"exit 0\" 15\n
\n
exec \"$$@\"\n
while sleep 1 & wait $$!; do :; done", "-"]
    command: ["/usr/bin/sleep","infinity"]
    labels:
      - 'devcontainer.local_folder=/root/workspace/dev-container'
      - 'devcontainer.config_file=/root/workspace/dev-container/.devcontainer/devcontainer.json'
    volumes:
      - /root/workspace/dev-container:/workspace
      - build-obj:/workspace/src/a/build
      - build-obj:/workspace/src/b/build
      - vscode:/vscode
volumes:

  build-obj:

  build-obj:

  vscode:
    external: true
[2024-05-08T20:39:45.780Z] Writing docker-compose.devcontainer.containerFeatures-1715200785780-516d96c0-3c67-479f-b191-c3c3d323c3c3.yml to /tmp/devcontainercli-root/docker-compose
[2024-05-08T20:39:45.781Z] Start: Run: /usr/bin/docker-compose --project-name devcontainer -f /root/workspace/dev-container/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.build-1715200784920.yml -f /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.containerFeatures-1715200785780-516d96c0-3c67-479f-b191-c3c3d323c3c3.yml up -d
[2024-05-08T20:39:45.846Z] parsing /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.containerFeatures-1715200785780-516d96c0-3c67-479f-b191-c3c3d323c3c3.yml: yaml: unmarshal errors:
  line 28: mapping key "build-obj" already defined at line 26

Hi 👋
The error you're seeing is due to the way the devcontainer.json file is being converted to a Docker Compose file. When you specify the same volume multiple times in the mounts field of devcontainer.json, it's being converted to a Docker Compose file with duplicate volume definitions, which is not valid.
In Docker Compose, you can mount the same volume to multiple locations in a container, as you've shown in your docker-compose.yml example. However, when specifying mounts in devcontainer.json, each mount needs to have a unique source.
A workaround for this issue is to define the mounts directly in a docker-compose.yml file instead of devcontainer.json. You can then reference this Docker Compose file in your devcontainer.json:
{
  "dockerComposeFile": "./docker-compose.yml",
  "service": "your-service-name",
  "workspaceFolder": "/workspace"
}

In your docker-compose.yml file, you can then define the mounts as you've shown:
services:
  your-service-name:
    volumes:
      - build-obj:/workspace/src/a/build
      - build-obj:/workspace/src/b/build

This way, you can mount the same volume to multiple locations in your container.
// cc @chrmarti Feel free to correct if I have misunderstood the code-flow! 👀


fix: typo

In the process of looking at the code, I saw some spelling mistakes and corrected them.

thank you for your contribution。


Extendable Mobile Ad hock Network Emulator(EMANE) platform for developing wired Topology

hi Steven Galgano,
I saw you have created some demo on wireless Topology using EMANE platform. i wanted to know whether you have created any samples on wired Topology using Emane platform. if you have created any such, could you please provide me the demo code and how to build that documents. Because we know that using Emane platform we can develop both wired and wireless Topologies.
Thanks in advance.

This is not a labtools question.


Reporting period modal: Replace text "Reporting period" with "Program period" in a number of places

We received PaQ team feedback that the phrase "Reporting period" is unclear and easily misinterpreted. The request is to use the phrase "program period" instead.

Acceptance criteria
Replace text in to-be-renamed "Reporting period modal"

[ ] 1. Modal title is changed to: Reporting period
[x] 2. Update intro paragraph:The program period is used in the setup of periodic targets and in Indicator Performance Tracking Tables (IPTT). TolaActivity initially sets the program period to include the program’s official start and end dates, as recorded in the Grant and Award Information Tracker (GAIT) system. The program period may be adjusted to align with the program’s indicator plan.
[x] 3. At the top of the gray box, change "Reporting start and end dates" to "Program start and end dates"
[x] 4. Update bottom paragraph: While a program may begin and end any day of the month, program periods must begin on the first day of the month and end on the last day of the month. Please note that the program start date can only be adjusted before targets are set up and a program begins submitting performance results. Because this program already has periodic targets set up, only the reporting end date can be moved later.

[x] 4.1. Keep the red highlighting around "before targets are set up and a program begins submitting performance results."
[x] 4.2. Make sure any variations on this paragraph are also updated. (I believe the last sentence only appears after targets are set up, and am not sure how to check all variations.)

One other spot to update while we're on the subject

[ ] On our Browse > Indicators page, change "Reporting period" to "Program period"

Modal title is changed to: Reporting period

Should this be "Program period"?

On the Indicators list page, we also have this usage:

Here's a philosophical Q: is this the actual Program start/end date? If so, there’s a case to make that we should refactor the code to reflect this reality.
Or is this a convenience for the sake of users? — i.e. there are still cases where the program start/end dates do not coincide with the reporting dates

The latter is correct.  The dates in GAIT should be the official program start and end dates but there are times when users might want to measure over a different time period.  I do wonder if that distinction is lost on users though.  Are we introducing ambiguity by facilitating the association of "Program period" with more than one set of dates?

@sanjuroj I've explored this several times with PaQ team advisors and there really doesn't seem to be an obvious, ideal term for what we're trying to convey here. We originally came up with "Reporting period" to differentiate the start/end dates in Tola from the GAIT start end dates driven by the grant cycle. Then we got feedback that "reporting period" might be confused with things like when donor reports are due, or target periods, or what have you. Christie requested "program period" as the least-bad of several less-than-ideal options.

All text changes are validated.


Fix: display overlay asa suggestion list changes

Fix : show suggestion overlay asa suggestion list data changes

Checked (Merged) !


Use _POSIX_C_SOURCE, drop _BSD_SOURCE, _GNU_SOURCE (#5, #12)

The only need for _BSD_SOURCE is a single use of the trivial, but non-standard, strdup(). The only need for _GNU_SOURCE is for getline(). This function was standardized by POSIX 10 years ago, so you only need to ask for it with _POSIX_C_SOURCE.
Also added time.h which is only included by luck via the removed feature test macros.
This is better than PR #5 because _DEFAULT_SOURCE isn't needed at all.

Thanks, merged.


[fix] is already taken locale

Coverage decreased (-3.5%) to 81.462% when pulling 3f3a26c6bf68af6b42217dd3cf489a10cac6a0d1 on fix-mongoid-locale into 3930a944fc567fd6e05375ab9132da7295a54572 on master.


Resources for Low or Non Code Contributors

Please provide resources for Low or Non Code Contributors. Assign me this issue please, I could provide resources.

that's no need to assignment, you can contribute by adding those repositories.


Bump pipeline and unit test project from dotnet 5.x to 6.x

@tpetchel A PR to resolve dotnet version mis-matches for https://docs.microsoft.com/en-us/learn/modules/run-quality-tests-build-pipeline/7-fix-failed-test

@Nighteyez07 - as before, thanks for submitting this fix! Apologies for the oversight.


Learn to write good commit message and description

According to common commit style guides, it is required to write messages in the imperative mood. Make them actionable. Also avoid using -m as you often need to express more detail. Here are several articles sharing the best practices:

[x] https://cbea.ms/git-commit/
[x] https://alistapart.com/article/the-art-of-the-commit
[x] https://robots.thoughtbot.com/5-useful-tips-for-a-better-commit-message
[x] https://github.com/erlang/otp/wiki/writing-good-commit-messages
[x] https://wiki.openstack.org/wiki/GitCommitMessages
[x] https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[x] https://dev.to/gonedark/when-to-make-a-git-commit
[x] https://seesparkbox.com/foundry/atomic_commits_with_git
[x] https://twitter.com/nedbat/status/1283147492616556544
[x] https://dhwthompson.com/2019/my-favourite-git-commit
Please read at all of them :)

N.B. This all applies to issues and PRs.

Looks like you've gone through the items, closing.


Fix 1125 accept middlewares

Information

Type
Breaking change

Fix
No

Description
Fix conflict between GlobalAcceptMimesMiddleware and AcceptMimesMiddleware.
Now, Ts.ED will use only one middleware to check the acceptable mimes (with PlatformAcceptMimesMiddleware).

:tada: This PR is included in version 6.12.1 :tada:
The release is available on:

v6.12.1
GitHub release

Your semantic-release bot :package::rocket:


Upload configs to env doesn't work

If this entry is related to a bug, please provide the steps to reproduce it
Try to upload to any environment, tried demo and ithc so far.
Spreadsheets generated successfully for ET_Scotland - ithcAn error occured on the selected journey:
FetchError: request to https://ccd-admin-web.ithc.platform.hmcts.net/ failed, reason: getaddrinfo ENOTFOUND ccd-admin-web.ithc.platform.hmcts.net
    at ClientRequest.<anonymous> (/home/itay/projects/flex-ui/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:527:28)
    at TLSSocket.socketErrorListener (node:_http_client:454:9)
    at TLSSocket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND'
}

wget https://ccd-admin-web.demo.platform.hmcts.net:
--2023-05-03 17:00:28--  https://ccd-admin-web.demo.platform.hmcts.net/
Resolving ccd-admin-web.demo.platform.hmcts.net (ccd-admin-web.demo.platform.hmcts.net)... failed: Name or service not known.
wget: unable to resolve host address ‘ccd-admin-web.demo.platform.hmcts.net’

DNS for wsl was statically set to <IP_ADDRESS>. - resolv.conf being overridden due to wsl.conf. When autogenerated, it works just fine with the VPN.


Add priority label links to “Finding open issues”

Coverage remained the same at 96.396% when pulling 25a551f87c6cf583ab8d2a8d6cf67fb626c55532 on Add-priority-label-links-to-“Finding-open-issues” into dfc121ed694c05a77c3ba65fec5c48c4783a6456 on master.


Logo's hand is going wrong way

The logo for cowboy on this page has a very strange hand where the thumb is on the wrong side of the hand.

Nicely spotted! But probably won't fix.


fix Fix BE thread safe start and stop

Proposed changes

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

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.88 seconds
stream load tsv:          510 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>7 Bytes

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.6 seconds
stream load tsv:          512 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.4 seconds inserted 10000000 Rows, about 340K ops/s
storage size:<PHONE_NUMBER>2 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.38 seconds
stream load tsv:          515 seconds loaded<PHONE_NUMBER>9 Bytes, about 138 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>2 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.27 seconds
stream load tsv:          511 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size:<PHONE_NUMBER>6 Bytes


feat(Makefile): use Makefile for running tasks, retiring gulp

What does this PR do?
This sets up the base to replace Gulp as a task runner, with Make. For the moment, both will work so that developers can get accustomed with the new set of commands. Once the transition phase is over, Gulp can be safely removed from repo and Make can take its place as user-run commands as well as in CI/CD routines.
What issue/task does this PR references?
#2506 & https://openshift.io/openshiftio/openshiftio/plan/detail/2419
Are the tests Included?
Not Applicable

@debloper Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 and visit http://localhost:5000 to access it.

Can you write a readme for this? How do we build the planner with this setup?

@debloper Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 and visit http://localhost:5000 to access it.

@debloper Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 and visit http://localhost:5000 to access it.

@debloper Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 and visit http://localhost:5000 to access it.

@debloper Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2651 and visit http://localhost:5000 to access it.

Took @jarifibrahim through the code and implementation, along with comparing it against the Gulpfile.
I believe he should be able to maintain this (if it's considered as a value addition) in my absence.

Since we are moving to a monorepo and this is really out of date, I'm closing it.


[BUG] Warning: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

While using the library with Next.js getting the following error - Warning: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
To Reproduce
Steps to reproduce the behavior:
Use the library in the latest Next.js version - 13.3+
Screenshots

Desktop (please complete the following information):

OS: macOS
Browser Edge(Chromium)
Version 112.0.x

Created a fix here - https://github.com/artcoholic/akar-icons/pull/112

thank you @nirnejak. PR merged.


Don't say CR is "On time" with no scheduled time

This also tweaks the rules for CR status displays: previously "Delayed X min" would override any manually-entered status string, but now the latter always takes precedence. This is in line with our published Best Practices for prediction data.
Asana Ticket: CR says "On time" when we don't know the scheduled time

If it's alright with you, going ahead with this despite not meeting the Jest branch coverage threshold; see #397.

@digitalcora sounds good, run with it. I did approve that other branch (lowering the threshold) as well.


Help: 'Wrong number of dimensions: expected 3, got 2 with shape (32L, 60L).' in LSTM model

Hey everyone,
I'm trying to use custom data on the LSTM model, but it keeps giving shape errors. After reading some other issues along the same lines, I even tried reshaping the input data to size (nb_inputs, timestamps, 1) which looks approximately like (4200, 60, 1), but that returns an error that says a shape of (None, 4200, 60, 1) is no good. Any thoughts?
maxlen = 60
batch_size = 32

print('Loading data...')
(X_train, y_train), (X_test, y_test) = t.LoadData()
print(len(X_train), 'train sequences')
print(len(X_test), 'test sequences')

print('X_train shape:', X_train.shape)
print('X_test shape:', X_test.shape)

print('Build model...')
model = Sequential()
model.add(LSTM(128, input_shape=X_train.shape))

model.compile(loss='binary_crossentropy',
              optimizer='sgd',
              class_mode="categorical")

print("Train...")
model.fit(X_train, y_train, batch_size=batch_size, nb_epoch=3,
          validation_data=(X_test, y_test), show_accuracy=True)
score, acc = model.evaluate(X_test, y_test,
                            batch_size=batch_size,
                            show_accuracy=True)
print('Test score:', score)
print('Test accuracy:', acc)

Output:

Using Theano backend.
Loading data...
4130 train sequences
1016 test sequences
X_train shape: (4130L, 60L)
X_test shape: (1016L, 60L)
Build model...
Train...
Train on 4130 samples, validate on 1016 samples
Epoch 1/3
Traceback (most recent call last):
File "main.py", line 52, in
validation_data=(X_test, y_test), show_accuracy=True)
File "C:\Miniconda2\lib\site-packages\keras\models.py", line 507, in fit
shuffle=shuffle, metrics=metrics)
File "C:\Miniconda2\lib\site-packages\keras\models.py", line 226, in _fit
outs = f(ins_batch)
File "C:\Miniconda2\lib\site-packages\keras\backend\theano_backend.py", line 357, in call
return self.function(*inputs)
File "C:\Miniconda2\lib\site-packages\theano\compile\function_module.py", line 513, in call
allow_downcast=s.allow_downcast)
File "C:\Miniconda2\lib\site-packages\theano\tensor\type.py", line 169, in filter
data.shape))
TypeError: ('Bad input argument to theano function with name "C:\Miniconda2\lib\site-packages\keras\backend\theano_backend.py:354"  at index 0(0-based)', 'Wrong number of dimensions: expected 3, got 2 with shape (32L, 60L).')

I even tried reshaping the input data to size (nb_inputs, timestamps, 1)

You will need to do that, but then you shouldn't put X_train.shape as the input_shape parameter of your LSTM. It doesn't care about the total number of training points for the model architecture. You should be able to instead pass in input_shape=X_train.shape[1:].

Thank you! Reshaping the arrays and adding .shape[1:] lets it run. May I ask why the input shape needs to be .shape[1:]?
Also, (off topic) the output looks like:

Using Theano backend.
Using gpu device 0: GeForce GTX 970
Loading data...
4262 train sequences
1083 test sequences
X_train shape: (4262L, 60L, 1L)
X_test shape: (1083L, 60L, 1L)
Build model...
Train...
Train on 4262 samples, validate on 1083 samples
Epoch 1/3
4262/4262 [==============================] - 48s - loss: -28.0929 - acc: 1.0000 - val_loss: -64.3520 - val_acc: 1.0000
Epoch 2/3
4262/4262 [==============================] - 48s - loss: -64.6251 - acc: 1.0000 - val_loss: -64.3520 - val_acc: 1.0000
Epoch 3/3
4262/4262 [==============================] - 48s - loss: -64.6251 - acc: 1.0000 - val_loss: -64.3520 - val_acc: 1.0000
1083/1083 [==============================] - 1s
Test score: -64.3520374245
Test accuracy: 1.0
Is there a reason the loss is negative?

So X.shape is (samples, timesteps, dimension), but the model architecture doesn't care about many training examples (samples) you have. Once you've built the model you can feed it a hundred million examples, doesn't matter. So you don't pass that as a parameter when you build your model. So X.shape[1:] is just (timesteps, samples) the two dimensions that matter
Incidentally if you're on a Theano backend you also don't need to specify the number of timesteps, but you need to pass "None" for that dimension, then.So instead you would pass in (None, X.shape[2])
As to why your score is negative: there's still something a bit fishy with your model. Your LSTM has 128 output dimensions and then you're evaluating binary cross-entropy on that? Is your y target also 128 dimensional? If it's not, you probably meant to put a Dense(1) layer, bringing your output down to  a single output that is compatible with y. Also if you're using a cross-entropy objective you want your output to be a probability distribution so you probably meant to put some sort of activation on top of it to normalize its output.
Or else you probably meant to use a different objective function.
Without knowing more about your data (for instance the size of your y matrix) it's hard for me to help further.

So X.shape[1:] is just (timesteps, samples) the two dimensions that matter

I'm guessing you meant (timesteps, dimension)?
That makes sense, though. Thank you for the information. As for the output data, yes, a binary_crossentropy loss function doesn't make much sense, considering the data look like:

[
[5.45, 5.42, ..., 5.26],
[5.25, 5.28, ..., 5.30],
...
[5.12, 5.15, ..., 5.65]
],
[5.13, 5.17, ..., 5.05]

Where the first list contains sequences of input (which are themselves lists), and the output is a single float value.
I've changed the model:
batch_size = 32

print('Loading data...')
(X_train, y_train), (X_test, y_test) = t.LoadData()
print(len(X_train), 'train sequences')
print(len(X_test), 'test sequences')

X_train = np.reshape(X_train, X_train.shape + (1,))
X_test = np.reshape(X_test, X_test.shape + (1,))

print('X_train shape:', X_train.shape)
print('X_test shape:', X_test.shape)

print('Build model...')
model = Sequential()
model.add(LSTM(1, input_shape=X_train.shape[1:]))

model.compile(loss='mse',
              optimizer='sgd',
              class_mode="categorical")

print("Train...")
model.fit(X_train, y_train, batch_size=batch_size, nb_epoch=3,
          validation_data=(X_test, y_test), show_accuracy=True)
score, acc = model.evaluate(X_test, y_test,
                            batch_size=batch_size,
                            show_accuracy=True)
print('Test score:', score)
print('Test accuracy:', acc)

And it now produces output closer to the desired result:

Using Theano backend.
Loading data...
4109 train sequences
998 test sequences
X_train shape: (4109L, 60L, 1L)
X_test shape: (998L, 60L, 1L)
Build model...
Train...
Train on 4109 samples, validate on 998 samples
Epoch 1/3
4109/4109 [==============================] - 3s - loss: 26.1860 - acc: 1.0000 - val_loss: 26.4226 - val_acc: 1.0000
Epoch 2/3
4109/4109 [==============================] - 3s - loss: 26.1860 - acc: 1.0000 - val_loss: 26.4226 - val_acc: 1.0000
Epoch 3/3
4109/4109 [==============================] - 3s - loss: 26.1860 - acc: 1.0000 - val_loss: 26.4226 - val_acc: 1.0000
998/998 [==============================] - 0s
Test score: 26.4226496511
Test accuracy: 1.0

I'll keep plugging away. :)

For most applications you would probably want more than 1 hidden state on your LSTM! You can put a Dense layer (or TimeDistributedDense) with an output dimension of 1 to project the hidden state down to 1 dimension on output, while still retaining more than 1 dimension of state. So something like:
model.add(LSTM(128, input_shape=X_train.shape[1:]))
model.add(Dense(1))
model.add(Activation('sigmoid'))

from pandas import DataFrame
from pandas import Series
from pandas import concat
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from math import sqrt
from matplotlib import pyplot
import numpy as np

# frame a sequence as a supervised learning problem
def timeseries_to_supervised(data, lag=1):
	df = DataFrame(data)
	columns = [df.shift(i) for i in range(1, lag+1)]
	columns.append(df)
	df = concat(columns, axis=1)
	df.fillna(0, inplace=True)
	return df

# create a differenced series
def difference(dataset, interval=1):
	diff = list()
	for i in range(interval, len(dataset)):
		value = dataset[i] - dataset[i - interval]
		diff.append(value)
	return Series(diff)

# invert differenced value
def inverse_difference(history, yhat, interval=1):
	return yhat + history[-interval]

# scale train and test data to [-1, 1]
def scale(train):
	# fit scaler
	scaler = MinMaxScaler(feature_range=(-1, 1))
	scaler = scaler.fit(train)
	# transform train
	train = train.reshape(train.shape[0], train.shape[1])
	train_scaled = scaler.transform(train)

	return scaler, train_scaled

# inverse scaling for a forecasted value
def invert_scale(scaler, X, value):
	new_row = [x for x in X] + [value]
	array = np.array(new_row)
	array = array.reshape(1, len(array))
	inverted = scaler.inverse_transform(array)
	return inverted[0, -1]

def generate_features(x, forecast, window):
    """ Concatenates a time series vector x with forecasts from
        the iterated forecasting strategy.

    Arguments:
    ----------
        x:        Numpy array of length T containing the time series.
        forecast: Scalar containing forecast for time T + 1.
        window:   Autoregressive order of the time series model.
    """
    augmented_time_series = np.hstack((x, forecast))

    return augmented_time_series[-window:].reshape(1, -1)

    # fit an LSTM network to training data
def fit_lstm(train, batch_size, nb_epoch, neurons):
	X, y = train[:, 0:-1], train[:, -1]
	X = X.reshape(X.shape[0], 1, X.shape[1])
	model = Sequential()
	model.add(LSTM(neurons, batch_input_shape=(batch_size, X.shape[1], X.shape[2]), stateful=True))
	model.add(Dense(1))
	model.compile(loss='mean_squared_error', optimizer='adam')
	for i in range(nb_epoch):
		model.fit(X, y, epochs=1, batch_size=batch_size, verbose=0, shuffle=False)
		model.reset_states()
	return model

def iterative_forecast(model, x, window, H):
    """ Implements iterative forecasting strategy

    Arguments:
    ----------
        model: scikit-learn model that implements a predict() method
               and is trained on some data x.
        x:     Numpy array containing the time series.
        h:     number of time periods needed for the h-step ahead
               forecast
    """
    forecast = np.zeros(H)
    forecast[0] = model.predict(x.reshape(1, -1))

    for h in range(1, H):
        features = generate_features(x, forecast[:h], window)

        forecast[h] = model.predict(features)

    return forecast

# load dataset
series = read_csv('shampoosales.csv', header=0, index_col=0, squeeze=True)

# transform data to be stationary
raw_values = series.values
diff_values = difference(raw_values, 1)

# transform data to be supervised learning
supervised = timeseries_to_supervised(diff_values, 1)
supervised_values = supervised.values

train = supervised_values[0:-12]
test = supervised_values[-12:]

# transform the scale of the data
scaler, train_scaled = scale(train)
# fit the model
lstm_model = fit_lstm(train_scaled, 1, 3000, 4)

yhat = iterative_forecast(lstm_model, train, 1, 10)
predictions = list()
predictions.append(yhat)

i am trying to discover an algorithm for iterative forecast using LSTM. seems to be something wrong with the code. would you be kind enough to help?
error that i am getting
'Error when checking : expected lstm_2_input to have 3 dimensions, but got array with shape (1, 46)'

Hi,
I have an input data with three variables / dimensions. with 4080 total samples. I am trying the below RNN script but getting the error.
Any help ?
model=Sequential()
model.add(GRU(100,return_sequences=True,input_shape=(4080,3)))
model.add(Dense(100))
model.compile(loss='categorical_crossentropy',optimizer='adam',metrics=['accuracy'])
model.fit(x_train,dummy_y_train,nb_epoch=20,batch_size=20,verbose=1)
ERROR: Error when checking input: expected gru_1_input to have 3 dimensions, but got array with shape (4080, 3)

@wxs Don't you think there is something fishy in @DanHenry4  work as he is getting the same loss after each epoch and accuracy is always 1 (100%), which is near to impossible in most of machine learning predictions and specially in stock price prediction. I am also getting the loss 0.0 , therefore i am confused, may be i did something wrong.
Please reply me on this, I am using LSTM for the first time and I am confused by seeing the accuracy that may be I am doing something wrong.
Your guidance will be appreciated. Thanks,

if the matrix size is different in the test and the data on which model was trained than what can I do? Keras in r.   my results are really poor just because I've to add dummy columns to match matrix size.


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-25-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3687

Questions ?
Please refer to the Backport tool documentation


Emit "VariableEmitted" on adding new variable in a test step

Codecov Report

Merging #140 (488f887) into main (5b8e421) will decrease coverage by 0.01%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
- Coverage   63.38%   63.36%   -0.02%
==========================================
  Files         164      164
  Lines       10284    10304      +20
==========================================
+ Hits         6518     6529      +11
- Misses       3045     3049       +4
- Partials      721      726       +5

Flag
Coverage Δ

e2e
49.15% <21.87%> (-0.07%)
:arrow_down:

integration
54.59% <21.87%> (-0.07%)
:arrow_down:

unittests
48.85% <75.00%> (-0.02%)
:arrow_down:

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

Impacted Files
Coverage Δ

pkg/runner/test_runner.go
86.73% <55.55%> (-3.38%)
:arrow_down:

pkg/runner/step_state.go
88.57% <100.00%> (ø)

pkg/runner/test_steps_variables.go
65.85% <100.00%> (+1.75%)
:arrow_up:

plugins/teststeps/waitport/waitport.go
68.93% <0.00%> (ø)

pkg/jobmanager/jobmanager.go
78.02% <0.00%> (+1.09%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Let's fix https://github.com/linuxboot/contest/issues/84 first


TFT exchange rate price isn't updated with stellar

Description
TFT price value isn't updated like the the stellar expert site does (from the more info link).

Or maybe it is updated but the value get rounded up, which in this case wouldn't be the best given that the price is decimally important.

As this is coming from the chain, there's not much to do here, please open an issue in tfchain to increase the precision


Use AWS CLI-Approved Environment Variables

Is this feature request related to a new or existing Amplify category?
auth
Is this related to another service?
No response
Describe the feature you'd like to request
If users have a local .aws folder within a project and have utlized AWS CLI environment variables like AWS_CONFIG_FILE and AWS_SHARED_CREDENTIALS_FILE, then those should be leverage when initializing a new project from the command line.
Describe the solution you'd like
Allow AWS CLI environment variables when running amplify config or amplify init.
Describe alternatives you've considered
Not using AWS/Amplify, at all.
Additional context
I installed Amplify CLI via npm.
Machine info:

OS: MX x86_64
Kernel: 5.10.0-16-amd64
Shell: bash 5.1.4

Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

[ ] ⚠ This feature might incur a breaking change

Hi!
I'm interessing to develop this feature. But the main ideia it's to use AWS CLI Environment variables as project variables? Like enviormente variables used in Lambda Functions and another services?
I think that objective of AWS CLI Env vars it's set just CLI internal credentials, but not project settings

Hi! This feature is not the same that choose an existing profile at amplify init?
Example:
`➜  amplify-test amplify init
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project amplifytest
The following configuration will be applied:
Project information
| Name: amplifytest
| Environment: dev
| Default editor: Visual Studio Code
| App type: javascript
| Javascript framework: none
| Source Directory Path: src
| Distribution Directory Path: dist
| Build Command: npm run-script build
| Start Command: npm run-script start
? Initialize the project with the above configuration? Yes
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS profile
For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
? Please choose the profile you want to use miqueias-personal
Adding backend environment dev to AWS Amplify app: d8c13fzy75n5v
⠧ Initializing project in the cloud...
CREATE_IN_PROGRESS amplify-amplifytest-dev-01455 AWS::CloudFormation::Stack Tue Jul 19 2022 00:14:59 GMT-0300 (GMT-03:00) User Initiated
⠧ Initializing project in the cloud...
`

I don't understand why you close this issue, but ok


Modify Guild Welcome Screen https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen

Done


Edge hiding fixes

Fix #6, by fixing the wrong attribute name (markerGroupEl instead of lineEndGroupEl).
Fix #7, by adding additional command that hides selected nodes and their incoming and outgoing edes.
The second one is a bit wonky - currently Obsidian does not select edges when doing a drag selection. Therefore, they don't get hidden. To preserve existing functionality I added a second command that iterates over associated edges.

Thank you @Murgeye . Release published: 0.9.3


update

👷 Deploy Preview for stalwart-arithmetic-7c22ee processing.

Name
Link

🔨 Latest commit
da3d4787434e10ae03690b4d360f439c841e481a

🔍 Latest deploy log
https://app.netlify.com/sites/stalwart-arithmetic-7c22ee/deploys/661221af12e95e0008808c36


Move to Dracula organization

Hey @danerwilliams, would you like to move this repository to the Dracula organization?
You would continue to be the maintainer and everything else, but we would consider it an official theme and also add a page on draculatheme.com.
Let me know what you think ;)

Sure! I think that would be awesome! What would next steps look like?

I just sent you an invite to join the organization. Once you do that, you can transfer the repository.
After transferring, there are a couple of things we'll need for the site:

Make sure you add a INSTALL.md file (https://github.com/dracula/template/blob/master/INSTALL.md)
Change screenshot.jpgto screenshot.png
Rename repo to dracula/tmux

Thanks!

Done! Anything else I need to do?

It's now live! https://draculatheme.com/tmux 🎉 🎉 🎉


speed up data loading and training, zero grad at each step, minor bug fixes

@kvtsang it's reasonably fast, I keep the code in future but merge in the remote repo

@kvtsang
Here's the updated config to use faster io
import yaml
cfg = yaml.safe_load('''

data:
  dataset:
    interface: TracksInConsecutiveMemory
    filepath: /home/drinkingkazu/sw/kazu_optical/repos/siren-pfmatch/tracks_module0*.h5
    n_pmts: 48
    device: cuda
  loader:
    interface: RandomSequenceLoader
    batch_size: 8192
    concat: True
    drop_last: True
    #terminate: False

train:
  optimizer:
    lr: 5.e-6
  save_every_iterations: 100
  max_epochs: 1000

photonlib:
  filepath: /home/drinkingkazu/sw/kazu_optical/plib_2x2_module0.h5

model:
  network:
    in_features: 3
    hidden_features: 256
    hidden_layers: 3
    out_features: 48
    outermost_linear: True
  ckpt_file: ""
  output_scale:
    fix: True
  hardsigmoid: True

transform_vis:
  vmax: 0.005
  eps: 1.e-8

logger:
  dir_name: logs_one
  file_name: log.csv
  log_every_nsteps: 5
''')

#cfg['model']['output_scale']['init'] = [0.005]*48

from pfmatch.__future__ import SOptimizer
sopt = SOptimizer(cfg, device=0)
sopt.train()


[ignition] Updates on various pkgs 🤖

This PR updates various ignition-robotics ports (according to the dome release https://ignitionrobotics.org/docs/dome/install) :
Updates

ignition-cmake2 2.2.0-1 --> 2.5.0
ignition-math6 6.4.0 --> 6.6.0
ignition-msgs5 5.1.0 --> 5.3.0
ignition-transport8 8.0.0 --> 8.1.0

New packages:

ignition-msgs6 6.0.0
ignition-transport9 9.0.0
sdformat10 10.0.0

Cool, I think that there is a partial overlap with https://github.com/microsoft/vcpkg/pull/14323, but probably it is better to get this PR to work instead. One comment: I think that sdformat10 depends on tinyxml2, not tinyxml.

After fixing the .pc files installed by console-bridge, urdfdom-headers and urdfdom, and after updating the reason why the ignition-transport library can't install their .pc files (it used to be https://github.com/microsoft/vcpkg/issues/11817, now it is https://github.com/microsoft/vcpkg/issues/14327), I think this PR is ready for review.

Well done ! Thanks for the help Silvio


HTTP2 Support

Hi Team,
Will it support for HTTP2 API ?

Alamofire supports all of the same standards as URLSession, which includes HTTP/2.


perf(import): optimize search for domains claimed by other organizations

Blocked solution depends on https://github.com/zitadel/zitadel/pull/8191 to be available first.
Which Problems Are Solved
Improve the performance of  human imports by optimizing the query that finds domains claimed by other organizations.
How the Problems Are Solved
Still working on that
Additional Changes

None

Additional Context
Commit 06cd6aef2fc942cfebf2ac0a6a3006be5d5e4805 isolated a domain user check and added traces to the checkUserHasDomain new. The traces showed that the related domain query was slow:

Filter:

This is the expensive query:
https://github.com/zitadel/zitadel/blob/06cd6aef2fc942cfebf2ac0a6a3006be5d5e4805/internal/command/org_domain_model.go#L222-L230
It needs to find all domain events of all orgs to determine if the domain wasn't already claimed by another org.
Introduced in https://github.com/zitadel/zitadel/pull/2265

This is the expensive query:
https://github.com/zitadel/zitadel/blob/06cd6aef2fc942cfebf2ac0a6a3006be5d5e4805/internal/command/org_domain_model.go#L222-L230
It needs to find all domain events of all orgs to determine if the domain wasn't already claimed by another org.
Introduced in https://github.com/zitadel/zitadel/pull/2265

@mike-miroliubov FYI this PR will improve the performance of import further.

@adlerhurst as discussed, the removed state of the domain is now handled without removing the entry from the fields table. As org domain does not have a state field and the OrgDomainVerifiedWriteModel handels the the removed event by setting Verified = false, I've done the same in the fields table.

Removed this information from the PR description so the commit message is clean:
Commit 06cd6aef2fc942cfebf2ac0a6a3006be5d5e4805 isolated a domain user check and added traces to the checkUserHasDomain new. The traces showed that the related domain query was slow:

Filter:

This is the expensive query:
https://github.com/zitadel/zitadel/blob/06cd6aef2fc942cfebf2ac0a6a3006be5d5e4805/internal/command/org_domain_model.go#L222-L230
It needs to find all domain events of all orgs to determine if the domain wasn't already claimed by another org.
Introduced in https://github.com/zitadel/zitadel/pull/2265


Update zio, zio-streams, zio-test, ... to 1.0.14

Updates

dev.zio:zio
dev.zio:zio-streams
dev.zio:zio-test
dev.zio:zio-test-sbt

from 1.0.13 to 1.0.14.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #70.


Show clickable linked list history to the side

It would be cool to have a sort of linked list with the navigation history at the side of the text (say to the right, so less mouse movements).
Each page we visit would be appended to the list (top-down), so we know where we are; multiple colors for nodes (and vertices, optionally) could be used for different sites. The nodes could contain the title of their page. On click, the page they represent would be shown and this node would get focus. Some nodes could have special color, for example the previous node (in chronological order). Older nodes (at the top) would incrementally fade out. On hover, longer titles would be expanded

So, let's say you open the right sidebar and set it to the History tab. The difference to what you're proposing would be:

different sort order
coloring
use page titles

I'm not sure what you mean by linked list and nodes? Perhaps you could attach some sort of image/diagram that better illustrates your idea.
Generally speaking, I favor using the sidebars for this kind of content because the window may not be wide enough to fit extra content in the page margins. That would make the usage of this conditional to having a wide enough content viewing area, and that I prefer to minimize that kind of feature fragmentation. Instead, adding new sidebar tabs and/or visualization options for the history would be doable.

Sure, I mean something like this:

the window may not be wide enough to fit extra content in the page margins

Yea but on mobile you could for instance have a side panel that opens on swipe gesture

It could be worth implementing at some point, as a way to visualize and assist one's navigation, but I see this as quite a low priority at the moment. Maybe because I feel there isn't a problem with the navigation that needs addressing? If implemented, I think it would also be important to consider how well it ties with the rest of the design and behavior of the app so it's a coherent part of the UX.


The response is not ended after redirected to the new Url

Describe the bug
server.use(nextI18NextMiddleware(nextI18next));
...
server.get('/', (req, res) => {
res.setHeader('Content-Type', 'text/html');
...
})

The above code will report UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Occurs in next-i18next version
v0.37.0
Steps to reproduce
https://github.com/Ktchan825/next-i18next
git clone https://github.com/Ktchan825/next-i18next
cd examples/simple
yarn && yarn dev

In your browser, navigate http://localhost:3000/da or any page not exist
In your server console, You can see res.headersSent is true
Expected behaviour
I don't expect a middleware will send the response header to the client, such that I cant use res.setHeader in rest of my route.
OS (please complete the following information)

Device: Mac mini
Browser: Version 74.0.3729.131 (Official Build) (64-bit)

Can you explain what the status/response being sent by the middleware is? The only thing we do with res is perform redirects in the case of a localeSubpath mismatch.

Hi @isaachinman
The response causing this issue is a 302 redirect.
The middleware is still calling return next(); after calling res.redirect(302, xxx);
I think we should not execute next(); if we have already redirected the client to a new url.
please correct me if my understanding is incorrect

Yes, that is completely correct. Not sure how this one slipped by. @capellini Do you have any time to look into this? Looks like this was a joint effort three months ago.

@isaachinman yes I can take a look.  Ending the response and not calling next() will make the sequence of calling middleware important (e.g. if you intend to log all requests, you should put the logging middleware before ours).  I suppose we can always state that in the docs.  At first glance, I don't see a way around forcing this order to precedence (and, I think, most people put their most critical middleware first anyway).

@isaachinman I am still getting the error mentioned  by @Ktchan825 by using the simple environment suggested in the next-i18next example directory. Did I miss something?

@Druux What error are you referring to? Can you provide more information?

@isaachinman I am referencing to the UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client.
The error occurred when I added localeSubpaths to the NextI18Next initialization by requesting next's _error.js.
i18n.js
const NextI18Next = require('next-i18next').default

module.exports = new NextI18Next({
   localePath: 'locales',
   defaultLanguage: 'en',
   otherLanguages: ['de'],
   localeSubpaths: {
      de: 'de'
   }
})

The rest of my implementation is virtually identical to the one in the example folder.
server.js
...
const server = express()
server.use(nextI18NextMiddleware(nextI18next))
server.get('*', (req, res) => handle(req, res))
...

_error.js
import { withTranslation } from 'locales'

const ErrorPage = ({ t }) => (
   <p>{t('test')}</p>
)

ErrorPage.getInitialProps = () => ({
   namespacesRequired: ['common', 'error'],
})

export default withTranslation(['common', 'error'])(ErrorPage)

My environment is:
"next": "^9.0.2"
"i18next": "^17.0.11"

@Druux Following the snippets you've included, I am unable to reproduce this in the simple example dir. Can you please provide a full reproducible repository? If so, I can debug and fix any problems quite quickly.

@isaachinman After some further debugging I figured out that the the problem is caused by my custom localePath in combination with my webpack config       config.resolve.modules.push(path.resolve('./')) in next.config.js.
I make use of this config in order to use absolute imports.
My project structure looks like this:
| - locales
| --- de
| --- en
| --- index.js (next-i18n init)
| - pages
| - next.config.js
| - server.js
| - etc.

Are you aware of that kind of specific issue or should I rethink the way I want to structure my locales?

@Druux Glad you isolated it. However, that now means we've gone off topic for this issue. Your locales directory needs to be inside the static NextJs dir, or available via network requests in some other way.
I don't use absolute imports and can't give any advice there. Good luck!

@isaachinman Everything works fine for me new. But I figured out that the Error UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client still occures when I manually try to call mydomain.com/fnjksf (404 not found) instead of mydomain.com/en/fnjksf. Are you experiencing the same?

@Druux No, if you set the localeSubpaths option to all in the simple example, you'll see that a redirect occurs when you hit http://localhost:3000/second-page.
This behaviour is also covered in our e2e tests.
If you believe you've found a new bug, please open a new issue.


Tiktok

Description 📜
It's TikTok Homepage Clone while I have added few Videoes with Swapping Features . It's responsive and made using HTML,CSS,JS

Fixes #929

Type of change 📝

[x] Add a new project

Domain of Contribution 📊

[x] Project using HTML, CSS & JS

Checklist ✅
Please delete options that are not relevant.And in order to tick the check box just but x inside them for example [x] like this

[x] I have performed a self-review of my own code or work.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GSSoC'22 contributor

Screenshots / Gif (Recommended) 📸
https://user-images.githubusercontent.com/77873383/164964726-46397255-802a-447f-b8c7-cc7ff0dc40a8.mp4

@gurjeetsinghvirdee @khushi-purwar please check

Sunday h bhai aaj toh sone de

Sunday h bhai aaj toh sone de

Haan sorry😂😂 so jao


Unstable context on each start

Issue Description
I created LightRAG using OpenAI. I am able to query and retrieve context. However I realized that context is unstable (still relevant to query) for same query on each start of LightRAG within my app. It slightly changes (eg. single relationship or single entity) with exact same query params.
I used dunzhang/stella_en_400M_v5 embedding model during creation and querying.
Note: My app also uses async in server level.
Note: LLM params for hl and ll keyword extraction is constant and I checked keywords on different app starts and keywords are constant for same query.
Environment
pypandoc==1.13
boto3==1.35.32
pydantic_core==2.23.4
pydantic==2.9.2
passlib==1.7.4
numpy==1.26.4
pandas==2.2.1
python_dateutil==2.8.2
pytz==2024.1
Requests==2.31.0
text_generation==0.6.1
faiss-cpu==1.7.4
sutime==1.0.1
fuzzywuzzy==0.18.0
transformers==4.37.2
haversine
pyarrow
cacheout
termcolor
scikit-learn
regex
nltk
lightrag-hku==0.0.8
aioboto3==13.2.0
ollama==0.3.3
nano-vectordb==<IP_ADDRESS>
openai
openai>=0.27.0
neo4j>=5.7.0
pybind11>=2.10.0
torch>=1.13.1
tiktoken>=0.3.0
networkx>=3.0
scipy>=1.10.1
spacy>=3.5.2
py2neo>=2021.2.3
nest-asyncio>=1.5.6
LightRAG Settings:
params = QueryParam(
    mode="hybrid",
    only_need_context=True,
    top_k=3,
    max_token_for_text_unit=800,
    max_token_for_global_context=400,
    max_token_for_local_context=400
)

node2vec_params = {
    'dimensions': 1024,
    'num_walks': 10,
    'walk_length': 40,
    'window_size': 2,
    'iterations': 3,
    'random_seed': 3
}

LightRAG(
      working_dir=working_dir,
      llm_model_func=hf_model_complete,
      llm_model_name="meta-llama/Meta-Llama-3.1-8B-Instruct",
      llm_model_max_token_size=4500,
      node2vec_params=node2vec_params,
      embedding_func=EmbeddingFunc(
          embedding_dim=1024,
          max_token_size=8192,
          func=lambda texts: embedding_func(texts),
      )
)

Any help would be appreciated

I have fixed the bug. You can download the latest code and give it a try (no need to re-insert).


Nginx with PAM authentication through pam_script

System information
Operating system (e.g. Ubuntu 22.04): oracle linux 8.5
Do you use selinux? (check with e.g. sestatus): disabled
Steps to reproduce

Assembled nginx docker container with pam auth module, added apk google-authenticator to container
/etc/pam.d/nginx contains this:
auth       required     /lib/security/pam_google_authenticator.so
locally created /root/.google_authenticator - chekcked it via sshd pam, works
nginx.conf has this in config
load_module /etc/nginx/modules/ngx_http_auth_pam_module.so;

and this in location /
                auth_pam "Secure area";
                auth_pam_service_name "nginx";

5 launching docker
 docker run --name nginx-pam -e TZ="Europe/Moscow" --network host  -v /etc/ssl/nginx:/etc/ssl/nginx:ro -v /etc/pam.d/nginx:/etc/pam.d/nginx:ro -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v /root/.google_authenticator:/root/.google_authenticator -d nginx-pam-assemble
When enter http address in browser i see http auth "Secure area", but when enter root and OTP - in logs i see this:
2022/12/30 12:47:26 [error] 23#23: *3 PAM: user 'root' - not authenticated: Authentication failure, client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "<IP_ADDRESS>"
If i do something wrong and it cannot work as i expect?

This seems more like an nginx question than a question for this project. You're not showing any logs from PAM. E.g. /var/log/auth.log is usually the right place.
I assume that the section of this project describing forward_pass is applicable, so you probably need those options.
And if the logs still don't help you, then add the debug option to get more logs.

/var/log/auth.log is empty, seems to be docker issue, so debug mode wont help. Need to вo experiment without docker probably
forward_pass does not help

Made nginx withoud docker, the sameproblem, but now i see in /var/log/secure
Dec 30 16:39:21 test-oracle-linux-8 nginx(pam_google_authenticator)[1765503]: debug: start of google_authenticator for "root"
Dec 30 16:39:21 test-oracle-linux-8 nginx(pam_google_authenticator)[1765503]: Failed to change user id to "root"
Dec 30 16:39:21 test-oracle-linux-8 nginx(pam_google_authenticator)[1765503]: debug: end of google_authenticator for "root". Result: Authentication failure

Why is that? Why it try to change user id to "root"

Because you're asking it to auth as root, and read files owned as root.
You could try using the secret= and user= options.

Ok, mad simplier test. Added user test.
cp /root/.google_authenticator /home/test/
chown test:test /home/test/.google_authenticator

ls -alt /home/test/.google_authenticator
-r--r--r--. 1 test test 94 Dec 30 16:49 /home/test/.google_authenticator

in pam.d
auth       required     pam_google_authenticator.so debug secret=/home/${USER}/.google_authenticator
And still the same after nginx restart:
Dec 30 16:53:21 test-oracle-linux-8 nginx(pam_google_authenticator)[1765585]: debug: start of google_authenticator for "test"
Dec 30 16:53:21 test-oracle-linux-8 nginx(pam_google_authenticator)[1765585]: Failed to change user id to "test"
Dec 30 16:53:21 test-oracle-linux-8 nginx(pam_google_authenticator)[1765585]: debug: end of google_authenticator for "test". Result: Authentication failure

Also attempted to place
user=root
Still the same, i doing something wrong...

nginx is not running as user root, which means it can't change to user test either. Try user=www or whatever nginx runs as.

Master process from root:

[root@test-oracle-linux-8 transcoder]# ps aux | grep nginx
root     1765600  0.0  0.0  49176   912 ?        Ss   16:57   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx    1765601  0.0  0.0  83884  6352 ?        S    16:57   0:00 nginx: worker process
nginx    1765602  0.0  0.0  83884  5360 ?        S    16:57   0:00 nginx: worker process
root     1765607  0.0  0.0  12132  1100 pts/0    S+   16:58   0:00 grep --color=auto nginx

So user=nginx.

I got it, /home/test have no permissions for nginx user.
I made separate folder
 user=nginx secret=/var/google/${USER}/.google_authenticator
now new error, but it is better then was before )
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: start of google_authenticator for "test"
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: Secret file permissions are 0444. Allowed permissions are 0600
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: Secret file "/var/google/test/.google_authenticator" permissions (0444) are more permissive than 0600
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: No secret configured for user test, asking for code anyway.
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: Invalid verification code for test
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: end of google_authenticator for "test". Result: Authentication failure

These lines say pretty clearly what the error is:
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: Secret file permissions are 0444. Allowed permissions are 0600
Dec 30 17:01:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: Secret file "/var/google/test/.google_authenticator" permissions (0444) are more permissive than 0600

chmod 600 /var/google/test/.google_authenticator

Yep, made it.
Now i catch this
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: start of google_authenticator for "test"
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: Secret file permissions are 0600. Allowed permissions are 0600
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: "/var/google/test/.google_authenticator" read
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: shared secret in "/var/google/test/.google_authenticator" processed
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: google_authenticator for host "<IP_ADDRESS>"
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: no scratch code used from "/var/google/test/.google_authenticator"
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: Accepted google_authenticator for test
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: Failed to create tempfile "/var/google/test/.google_authenticator~FMagD9": Permission denied
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: Failed to update secret file "/var/google/test/.google_authenticator": Permission denied
Dec 30 17:06:38 test-oracle-linux-8 nginx(pam_google_authenticator)[1765647]: debug: end of google_authenticator for "test". Result: Authentication failure

why it errors " no scratch code used from"

Again, nginx runs as user nginx. That user therefore needs to own the secret files and the directories they're in. (except if nginx runs as root in which case it can change identity to any user)

No scratch code used because you probably didn't enter a scratch code (8 digit code).
Also you can't use scratch codes if you can't mark them as used. And you can't mark them as used if you can't write to the files.

Made new secret file, qr added to authenticator, added permissions to nginx for file(read) and folder(write)
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: start of google_authenticator for "test"
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: Secret file permissions are 0400. Allowed permissions are 0600
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: "/var/google/test/.google_authenticator" read
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: shared secret in "/var/google/test/.google_authenticator" processed
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: google_authenticator for host "<IP_ADDRESS>"
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: no scratch code used from "/var/google/test/.google_authenticator"
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: Accepted google_authenticator for test
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: "/var/google/test/.google_authenticator" written
Dec 30 17:16:24 test-oracle-linux-8 nginx(pam_google_authenticator)[1765648]: debug: end of google_authenticator for "test". Result: Success

Result: Success
but i still see 401 and basi auth window

Found scratch
Dec 30 17:24:41 test-oracle-linux-8 nginx(pam_google_authenticator)[1765712]: debug: scratch code 13901918 used and removed from "/var/google/test/.google_authenticator"
Result: Success but still 401

Seems to be it is nginx pam module issue?

chmod 600 "/var/google/test/.google_authenticator"
after that i login-otp
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: start of google_authenticator for "test"
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: Secret file permissions are 0600. Allowed permissions are 0600
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: "/var/google/test/.google_authenticator" read
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: shared secret in "/var/google/test/.google_authenticator" processed
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: google_authenticator for host "<IP_ADDRESS>"
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: no scratch code used from "/var/google/test/.google_authenticator"
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: Accepted google_authenticator for test
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: "/var/google/test/.google_authenticator" written
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: end of google_authenticator for "test". Result: Success
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: start of google_authenticator for "test"
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: Secret file permissions are 0400. Allowed permissions are 0600
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: "/var/google/test/.google_authenticator" read
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: shared secret in "/var/google/test/.google_authenticator" processed
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: google_authenticator for host "<IP_ADDRESS>"
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: no scratch code used from "/var/google/test/.google_authenticator"
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: Trying to reuse a previously used time-based code. ("/var/google/test/.google_authenticator")Retry again in 30 seconds. Warning! This might mean, you are currently subject to a man-in-the-middle attack.
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: Invalid verification code for test
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: "/var/google/test/.google_authenticator" written
Dec 30 17:44:37 test-oracle-linux-8 nginx(pam_google_authenticator)[1765833]: debug: end of google_authenticator for "test". Result: Authentication failure

In the beginning 0600 and Result: Success
After that it begin another check it is 0400 and Result: Authentication failure
Any thoughts how come?

The reason for the authentication error is right there. Please read the logs more carefully.

I read it, and i see as a said:
-it checks otp, says it ok, write it it to a file (permissions are ok = 0600)
-after that - one more check - it see that 0400 permission (seems to be it some how changed it - i asking about that also)  and see error
Trying to reuse a previously used time-based code
or
Too many concurrent login attempts
I dont get it why it cheks twice...

Oh, this is just one attempt?
For some reason nginx is calling this PAM module twice. Maybe one request for the URL, one for favicon.ico?
Yeah I don't know how you mean for this to work.


[MXNET-246] operators for Synchronized BatchNorm

Description
Backend operators for Synchronized Batch Norm. Design idea as in http://hangzh.com/SynchronizeBN/
Special thanks to Haibin @eric-haibin-lin

AllReduce
Decouple Batch Norm
SumSquare

Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] AllReduce, tests, (and when applicable, API doc)
[ ] Decouple Batch Norm, tests, (and when applicable, API doc)
[ ] SumSquare,  tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

Only all-reduce operation need cross-device communication. The other operations should be calculated individually at different device. That's why I separate those operations to different "operators".

why not combine them into the same operator? It would save memory and be much more efficient

There are someone in TuSimple shared idea of this. It may help you.
https://zhuanlan.zhihu.com/p/27069202

Thanks @chinakook  Actually, we already implemented synchronized batch normalization internally. Just thinking about releasing a proper API for the user.

MXNet Gluon Cross-GPU Batch Norm is Implemented here https://github.com/zhanghang1989/MXNet-Gluon-SyncBN . Feel free to try and leave comments.

Closing this in favor of the new PR https://github.com/apache/incubator-mxnet/pull/11502


Vape private No bad grammer verison (I think)

I'm sorry for my previous issue request, I do have bad grammer. What I mean't was actually if vape private was leaked.
This only reason I'm bothering you with this is because I'm very afraid if my main account is going to get possibly banned because of the incident.
Leave a Yes or No if vape private is leaked or not.
If you close this issue that would mean a no for me. (This option is for your convenience)
Thank you for your time!

I think the reason I have bad grammer is actually because I'm only 12 years old..

Vape Private can't be "leaked" since it works is they whitelist each account they use.
There isn't really any way for them to ban your Roblox account at most you could be banned from BedWars. but vape users can't directly ban or "hack" your account.

^^  A good explanation I don't think I would be able to write
In my terms I'd just say stupidity but above's better.

Vape Private can't be "leaked" since it works is they whitelist each account they use.
There isn't really any way for them to ban your Roblox account at most you could be banned from BedWars. but vape users can't directly ban or "hack" your account.
The only thing that could be "leaked" are modules but even then you should be fine since Xylex doesn't want to add vape private commands to allow real banning of Vape users

Yep i understand I was just worried that random trolls would send a screenshot of me using vape to bedwars mods ty!

^^ A good explanation I don't think I would be able to write
In my terms I'd just say stupidity but above's better.

Understandable


chore(master): release 1.0.3

:robot: I have created a release beep boop
1.0.3 (2023-01-12)
Bug Fixes

use normal registry (9b6191d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Cap-go/standard-version/releases/tag/v1.0.3 :sunflower:


ADD Gentx 3Tekos

validator on kava main-net, cro crossfire (Jayjay moniker), kava testnet 12000, cosmos stargate, desmos and agoric :
https://www.mintscan.io/kava/validators/kavavaloper1w2f95dx7p35ye6mzaanxkpwadye0vr7375avdk
https://devnet.explorer.agoric.net/validator/5C7A463E51B6D88F82FC8CFB6225D7A846B8AF16
https://gaia.bigdipper.live/validator/cosmosvaloper1p7e37nztj62mmra8xhgqde7sql3llhhu6hvcx8
https://testnet.mintscan.io/kava-testnet/validators/kavavaloper1cssrn0m8ys9e0yhzg3dna6q7gg54ke049a980n
https://morpheus.desmos.network/validator/desmosvaloper1jrld5g998gqm4yx26l6cvhxz7y5adgxqzfdpes

Please make sure your node is up and running now. Join #validators on Discord for help: https://discord.gg/QeJWCrE.


[keyvault] Regenerate for service version 7.5

Packages impacted by this PR

@azure/keyvault-admin
@azure/keyvault-certificates
@azure/keyvault-keys
@azure/keyvault-secrets

Issues associated with this PR
Describe the problem that is addressed by this PR
Prepare for GA release of 7.5 service version packages

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/keyvault-certificates

[celebrate]     Grace Wilcox reacted to your message:

From: Timo van Veenendaal @.>
Sent: Wednesday, February 14, 2024 9:21:47 PM
To: Azure/azure-sdk-for-js @.>
Cc: Grace Wilcox @.>; Review requested @.>
Subject: Re: [Azure/azure-sdk-for-js] [keyvault] Prepare for 7.5 GA release (PR #28416)
Merged #28416https://github.com/Azure/azure-sdk-for-js/pull/28416 into main.
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-sdk-for-js/pull/28416#event-11807157268, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKM3KGGMPLDILMKE3EZXYTDYTUTGXAVCNFSM6AAAAABCR5SBJOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRHAYDOMJVG4ZDMOA.
You are receiving this because your review was requested.Message ID: @.***>


Simplify PlayFabAPI blueprints and minimize json decoding steps

The optimized blueprints use delegates which send the decoded results to custom events. This reduces the number of steps when using the API.

https://github.com/PlayFab/UnrealBlueprintSDK/pull/16


[Request]: could I talk with my notes recorded in obsidian ?

Is your feature request related to a problem? Please describe. A clear and concise description
compared to talk with ai, talking with ai + note is more helpful for learning.
Describe the solution you'd like A clear and concise description of what you want to happen.
give personal notes data to ai ,and ai could answer my question based on the data.

Hey there!
Thanks for taking the time to submit a feature request.
This plugin is primarily focused on helping developers and prompt engineers explore and catalog their interactions with various Large Language Models (LLMs). I do plan to add some support for LangChain, and it might be possible to add the ability to load context from a specific note into the conversation via this plugin.
However, it's worth noting that loading a large note could easily eat through the token limit of the model that you're communicating with and leave very few tokens remaining for your prompt and the model's response.
You might want to look into the Dual Obsidian Client that is based on allowing you to query and converse with your notes.
I'm going to close this one for the time being as it's outside of the scope of this plugin, which is primarily focused on research and not on building an Obsidian-specific chat bot.


ARROW-4995: [R] Support for winbuilder for CRAN checks

Fix for https://issues.apache.org/jira/browse/ARROW-4995. winbuilder provides a test environment similar to the CRAN build infrastructure to validate packages before submitting to CRAN. This PR fixes the remaining warnings flagged by this sytem.

Codecov Report

Merging #4011 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4011      +/-   ##
==========================================
+ Coverage   87.83%   87.84%   +<.01%
==========================================
  Files         734      734
  Lines       90436    90414      -22
  Branches     1252     1252
==========================================
- Hits        79433    79422      -11
+ Misses      10882    10875       -7
+ Partials      121      117       -4

Impacted Files
Coverage Δ

go/arrow/math/uint64_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/float64_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/memory/memory_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/int64_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

cpp/src/plasma/thirdparty/ae/ae.c
70.75% <0%> (-0.95%)
:arrow_down:

cpp/src/arrow/util/thread-pool-test.cc
97.66% <0%> (-0.94%)
:arrow_down:

cpp/src/parquet/schema.cc
88.88% <0%> (-0.06%)
:arrow_down:

python/pyarrow/tests/test_parquet.py
96.36% <0%> (-0.02%)
:arrow_down:

cpp/src/parquet/schema-test.cc
99.47% <0%> (-0.01%)
:arrow_down:

go/arrow/math/float64_amd64.go
33.33% <0%> (ø)
:arrow_up:

... and 10 more

Continue to review full report at Codecov.

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

@wesm mentioned in the dev mailing list he would want to see the R bindings build in Windows without rwinlibs, the previous commit adds support for setting ARROW_PATH while building in windows to configure against a local build of the Arrow binaries in Mingw. Windows dev documentation is meant to be added in confluence.
See<EMAIL_ADDRESS>

Investigated further the print.nteger64 winbuilder error, this code was introduced due to https://issues.apache.org/jira/browse/ARROW-3647, I've verified that the fix in this PR does not regress the original Jira issue. Here are the winbuilder results: https://win-builder.r-project.org/4pQ07Z4pxxTQ/00check.log
I also added an error for the function using compress under windows and scoped the skip() test to windows only.
Hopefully this wraps up this PR. Thanks!


Create a 'counter' example

One thing a library never can have too many of is examples! Right now, our only example is a bare-bones implementation of an Application. Now that #13 is merged, we'll actually be able to create a mutable-state application as an example. A 'counter' application would probably be a good and simple example of an ABCI app, so I was thinking that would be a good example to add to the library. I know we had one before, but that one didn't actually function as a counter app.

Counter app was added in #18 🕺


Backport S8217731

11.0.5+10 doesn't have this patch S8217731

https://bugs.openjdk.java.net/browse/JDK-8217731

This is being backported as part of 11.0.6.


Zoompan duration acording to duration slide

PLease help? how to do zoompan duration acording to duration slide
in this script for example
https://github.com/tanersener/ffmpeg-video-slideshow-scripts/blob/master/advanced_scripts/zoom_in_and_pan_with_fade_in_out.sh
I was try to change parameter d in zoompan, but this didn't work
FULL_SCRIPT+="[stream$((c+1))fadein][stream$((c+1))][stream$((c+1))fadeout]concat=n=3:v=1:a=0,scale=${WIDTH}*5:-1,zoompan=z='min(pzoom+0.002,2)':d=1:${POSITION_FORMULA}:s=${WIDTH}x${HEIGHT}[stream$((c+1))panning];"
I would be very grateful!

There is a TRANSITION_DURATION variable in SCRIPT OPTIONS to control zoompan duration. Did you try that?
# SCRIPT OPTIONS - CAN BE MODIFIED
WIDTH=1280
HEIGHT=720
FPS=30
TRANSITION_DURATION=1
PHOTO_DURATION=2

maybe I asked the wrong question
but I need to set animation zoom for all slide duration what I set
If I set duration for slide for example 50sec, animate zoom duration only just about 20sec and then freeze
Thanks!

If you set TRANSITION_DURATION=20 and PHOTO_DURATION=30 then each slide will be shown for 50 seconds; it will zoom for 20 seconds and then freeze for 30 seconds. Isn't that what you asked for?

Isn't that what you asked for?
If I set transition duration = 20 and photo duration = 20
ffmpeg returns
Buffer queue overflow, dropping.78.2kbits/s speed=0.13x
and then
Error while filtering: Cannot allocate memoryme=00:00:19.66 bitrate=8637.4kbits/s speed=0.121x Failed to inject frame into filter network: Cannot allocate memory Error while processing the decoded data for stream #0:0
What I'm doing wrong?

Let me correct myself first. zoompan transitions use the following scene arrangement. In this flow, zoompan filter is applied to all three phases. This means that photo is always zoomed. So basically it is not possible to freeze photo at any point by changing variables under SCRIPT OPTIONS.
**Scene Arrangement (for each photo):**
- fade in photo for `TRANSITION_DURATION` seconds
- show photo for `PHOTO_DURATION` seconds
- fade out photo for for `TRANSITION_DURATION` seconds

Step #5 in the scripts must be updated to achieve that. It is possible to change the order of stages and apply zoom only during fade in but it is not easy to keep that ratio for the other stages. You can replace the last line with the following one and see what I mean.
FULL_SCRIPT+="[stream$((c+1))fadein]scale=${WIDTH}*5:-1,zoompan=z='min(pzoom+0.002,2)':d=1:${POSITION_FORMULA}:s=${WIDTH}x${HEIGHT}[stream$((c+1))fadeinandzoom];[stream$((c+1))fadeinandzoom][stream$((c+1))][stream$((c+1))fadeout]concat=n=3:v=1:a=0[stream$((c+1))panning];"

Error while filtering: Cannot allocate memoryme=00:00:19.66 bitrate=8637.4kbits/s speed=0.121x Failed to inject frame into filter network: Cannot allocate memory Error while processing the decoded data for stream #0:0
What I'm doing wrong?

zoompan transitions consume too much memory, if enough memory is not found, scripts fail with this error. You can try decreasing width, height and fps values.

I created a second zoompan transition called Zoom & Pan with Fade In/Out Transition #2 today. It is very close to your request; it applies zoompan filter only during fade in stage. You can try it if you didn't find a solution yet.

Thanks but this isn't what I need

OK then.

Thanks, I'll try it.
I didn't see your answer. Sorry
You helped so much!


forge fails to verify multi-file contracts on windows

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
No response
What command(s) is the bug in?
forge verify-contract
Operating System
Windows
Describe the bug
Likely an issue with the way Windows handles paths compared to Unix platforms.

I've verified this behavior, but I'm unsure where the bug is. I suspect it might be in paths we submit to Etherscan in the Solidity standard input description

Yes seems like verifying multi file contracts is still not possible on Windows. Flattening the contract helps though.

any idea what we're missing?
maybe that's a metadata issue? we just switched to base-path and only relative paths and fixed another windows bug, so just to be sure verifying doesn't work with current nightly on windows?

Yes seems like verifying multi file contracts is still not possible on Windows. Flattening the contract helps though.

The fix worked for me though, maybe you haven't updated to the latest version?

thanks for letting us know @except
optimistically closing this, but please let us know if you're still having issues @Bavragor


Positive Lowerbound?

Hi,
Sorry if the question sound too naive but I am getting positive lowerbound which I believe shouldn't be the case? I am using my own data (ECG, 1200 dimension). So I would be grateful if you could point me out the possible scenario. Thanks

This code is setup to minimize the negative log likelihood, which is actually positive. So it's correct.


Fix typo

Agree with @poothia . Try the below search (size/S AND size/XS), you'll get nothing:
https://github.com/kubernetes/website/pulls?utf8=✓&q=is%3Aopen+is%3Apr+label%3A"cncf-cla%3A+yes"+label%3Asize%2FS+label%3Asize%2FXS


Error generating DTO

An error message popped up while generating a DTO, giving me this site address and asking for details. So here ya go.
Message box said:
---------------------------
Microsoft Visual Studio
---------------------------
An exception has occurred. Please c/p stack trace to project website (https://github.com/yohney/dto-generator), with brief description of the problem.

Source code to parse must contain exactly one class declaration!
---------------------------
OK
---------------------------

Unfortunately, the source code did contain exactly one class declaration.
Source class file was:

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated from a template.
//
//     Manual changes to this file may cause unexpected behavior in your application.
//     Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;

namespace BER.MenuHub.Data
{
   public partial class MenuItemDataChange : IHasIdentity<System.Guid>
   {
      partial void Init();

      /// <summary>
      /// Default constructor. Protected due to required properties, but present because EF needs it.
      /// </summary>
      protected MenuItemDataChange()
      {
         IsDone = false;

         Init();
      }

      /// <summary>
      /// Public constructor with required data
      /// </summary>
      /// <param name="_propertyname"></param>
      /// <param name="_responsibledepartment"></param>
      /// <param name="_isdone"></param>
      /// <param name="_menuitem"></param>
      /// <param name="_changeset"></param>
      public MenuItemDataChange(string _propertyname, string _responsibledepartment, MenuItem _menuitem, MenuItemChangeSet _changeset, bool _isdone = false)
      {
         if (string.IsNullOrEmpty(_propertyname)) throw new ArgumentNullException(nameof(_propertyname));
         PropertyName = _propertyname;
         if (string.IsNullOrEmpty(_responsibledepartment)) throw new ArgumentNullException(nameof(_responsibledepartment));
         ResponsibleDepartment = _responsibledepartment;
         IsDone = _isdone;
         if (_menuitem == null) throw new ArgumentNullException(nameof(_menuitem));
         MenuItem = _menuitem;

         if (_changeset == null) throw new ArgumentNullException(nameof(_changeset));
         ChangeSet = _changeset;

         Init();
      }

      /// <summary>
      /// Static create function (for use in LINQ queries, etc.)
      /// </summary>
      /// <param name="_propertyname"></param>
      /// <param name="_responsibledepartment"></param>
      /// <param name="_isdone"></param>
      /// <param name="_menuitem"></param>
      /// <param name="_changeset"></param>
      public static MenuItemDataChange Create(string _propertyname, string _responsibledepartment, MenuItem _menuitem, MenuItemChangeSet _changeset, bool _isdone = false)
      {
         return new MenuItemDataChange(_propertyname, _responsibledepartment, _menuitem, _changeset, _isdone);
      }

      // Persistent properties

      /// <summary>
      /// Identity, Required, Indexed
      /// </summary>
      public Guid Id { get; set; }

      /// <summary>
      /// Required, Max length = 50
      /// </summary>
      public string PropertyName { get; set; }

      /// <summary>
      /// Max length = 200
      /// </summary>
      public string LastUpdatedBy { get; set; }

      public DateTime? LastUpdatedDate { get; set; }

      /// <summary>
      /// Required, Max length = 50
      /// </summary>
      public string ResponsibleDepartment { get; set; }

      /// <summary>
      /// Max length = 4000
      /// </summary>
      public string Comments { get; set; }

      /// <summary>
      /// Required, Default value = false
      /// </summary>
      public bool IsDone { get; set; }

      // Persistent navigation properties

      public virtual MenuItem MenuItem { get; set; }  // Required
      public virtual MenuItemChangeSet ChangeSet { get; set; }  // Required
   }
}

Stack trace was:

   at DtoGenerator.Logic.Infrastructure.EntityParser.FromSyntaxTree(SyntaxTree syntaxTree)
   at DtoGenerator.Logic.Infrastructure.EntityParser.<FromDocument>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DtoGenerator.Logic.UI.EntityViewModel.<CreateRecursive>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at DtoGenerator.Logic.UI.EntityViewModel.<CreateRecursive>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DtoGenerator.Logic.UI.PropertySelectorViewModel.<Create>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at DtoGenerator.Vsix.GenerateDtoCommand.<MenuItemCallback>d__13.MoveNext() in F:\git\dto-generator\src\DtoGenerator\DtoGenerator.Vsix\GenerateDtoCommand.cs:line 235
----------------------------

Hope this helps track down the problem. BTW, it's not uncommon for me to get errors while generating DTOs with this tool, but it does remove enough of the drudgery that I haven't given up on it :-)
Thanks for your hard work.

Had another one, but with a shorter stack trace. For the record, these were both v1.8.1. Same error message.
Stack trace is:
   at DtoGenerator.Logic.Infrastructure.EntityParser.FromSyntaxTree(SyntaxTree syntaxTree)
   at DtoGenerator.Logic.Infrastructure.EntityParser.<FromDocument>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DtoGenerator.Logic.UI.EntityViewModel.<CreateRecursive>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at DtoGenerator.Logic.UI.EntityViewModel.<CreateRecursive>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DtoGenerator.Logic.UI.PropertySelectorViewModel.<Create>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at DtoGenerator.Vsix.GenerateDtoCommand.<MenuItemCallback>d__13.MoveNext() in F:\git\dto-generator\src\DtoGenerator\DtoGenerator.Vsix\GenerateDtoCommand.cs:line 235
----------------------------

Class is:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated from a template.
//
//     Manual changes to this file may cause unexpected behavior in your application.
//     Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;

namespace BER.MenuHub.Data
{
   public partial class Recipe : RecipeIngredient, IHasIdentity<System.Guid>
   {
      partial void Init();

      /// <summary>
      /// Default constructor. Protected due to required properties, but present because EF needs it.
      /// </summary>
      protected Recipe(): base()
      {
         Status = "DRAFT";
         ServingCosts = new System.Collections.Generic.HashSet<ServingCost>();
         Ingredients = new System.Collections.Generic.HashSet<RecipeItem>();
         ComboOptions = new System.Collections.Generic.HashSet<RecipeIngredient>();

         Init();
      }

      /// <summary>
      /// Public constructor with required data
      /// </summary>
      /// <param name="_status">What the status is for the recipe, whether it's active, draft, in test, in review</param>
      /// <param name="_recipetype">Determines if the recipe is for a prep to menu item </param>
      /// <param name="_name"></param>
      public Recipe(string _recipetype, string _name, string _status = "DRAFT")
      {
         if (string.IsNullOrEmpty(_status)) throw new ArgumentNullException(nameof(_status));
         Status = _status;
         if (string.IsNullOrEmpty(_recipetype)) throw new ArgumentNullException(nameof(_recipetype));
         RecipeType = _recipetype;
         if (string.IsNullOrEmpty(_name)) throw new ArgumentNullException(nameof(_name));
         Name = _name;
         ServingCosts = new HashSet<ServingCost>();
         Ingredients = new HashSet<RecipeItem>();
         ComboOptions = new HashSet<RecipeIngredient>();
         Init();
      }

      /// <summary>
      /// Static create function (for use in LINQ queries, etc.)
      /// </summary>
      /// <param name="_status">What the status is for the recipe, whether it's active, draft, in test, in review</param>
      /// <param name="_recipetype">Determines if the recipe is for a prep to menu item </param>
      /// <param name="_name"></param>
      public static Recipe Create(string _recipetype, string _name, string _status = "DRAFT")
      {
         return new Recipe(_recipetype, _name, _status);
      }

      // Persistent properties

      /// <summary>
      /// Indexed
      /// Number to be assigned to the recipe
      /// </summary>
      public int? RecipeNumber { get; set; }

      /// <summary>
      /// Max length = 200
      /// Description of the recipe
      /// </summary>
      public string Description { get; set; }

      /// <summary>
      /// Required, Max length = 10, Default value = "DRAFT"
      /// What the status is for the recipe, whether it's active, draft, in test, in review
      /// </summary>
      public string Status { get; set; }

      /// <summary>
      /// Max length = 100
      /// PROBABLY DELETE
      /// </summary>
      public string ServingType { get; set; }

      /// <summary>
      /// How much of a unit is in the recipe
      /// </summary>
      public double? ServingSize { get; set; }

      /// <summary>
      /// Max length = 50
      /// Which unit is in the recipe
      /// </summary>
      public string ServingSizeUnit { get; set; }

      /// <summary>
      /// Max length = 2000
      /// Notes for the recipe
      /// </summary>
      public string Notes { get; set; }

      /// <summary>
      /// Max length = 50
      /// TO BE DETERMINED
      /// </summary>
      public string PrepType { get; set; }

      /// <summary>
      /// Max length = 50
      /// </summary>
      public string MakeAs { get; set; }

      /// <summary>
      /// Theoretical value of FIFO
      /// </summary>
      public bool? UseTheoUsage { get; set; }

      /// <summary>
      /// Max length = 2000
      /// Describes the yield amount left
      /// </summary>
      public string YieldDescription { get; set; }

      /// <summary>
      /// Max length = 100
      /// How long it's good on the shelf
      /// </summary>
      public string ShelfLife { get; set; }

      /// <summary>
      /// Max length = 50
      /// Amount of percentage to count as overhead for calculations
      /// </summary>
      public string CushionPercentage { get; set; }

      /// <summary>
      /// Max length = 50
      /// How long to thaw the recipe
      /// </summary>
      public string ThawTimeHours { get; set; }

      public bool? RoastAdjust { get; set; }

      /// <summary>
      /// Max length = 50
      /// If the recipe is active or not
      /// </summary>
      public string ActiveStatus { get; set; }

      /// <summary>
      /// Max length = 100
      /// What order the ingredients are in **
      /// </summary>
      public string WorksheetOrder { get; set; }

      /// <summary>
      /// Max length = 100
      /// Additional time into making the recipe
      /// </summary>
      public string AdditionalMakeTime { get; set; }

      /// <summary>
      /// Max length = 100
      /// Additional time for cleaning
      /// </summary>
      public string CleanupTime { get; set; }

      /// <summary>
      /// Max length = 100
      /// Additional time that is uncounted for elsewhere
      /// </summary>
      public string AdditionalTimeMeasure { get; set; }

      public bool? OpenPrepItem { get; set; }

      /// <summary>
      /// Max length = 100
      /// PROBABLY DELETE
      /// </summary>
      public string CalculateUsageAgainst { get; set; }

      /// <summary>
      /// Max length = 2000
      /// Comments the admin can submit upon approving
      /// </summary>
      public string ApprovalComments { get; set; }

      /// <summary>
      /// Required, Max length = 10
      /// Determines if the recipe is for a prep to menu item
      /// </summary>
      public string RecipeType { get; set; }

      /// <summary>
      /// Max length = 2000
      /// </summary>
      public string NutritionInfo { get; set; }

      /// <summary>
      /// Max length = 200
      /// Who edited Recipe last
      /// </summary>
      public string LastUpdatedBy { get; set; }

      /// <summary>
      /// When Recipe was last edited
      /// </summary>
      public DateTime? LastUpdatedDate { get; set; }

      // Persistent navigation properties

      public virtual ICollection<ServingCost> ServingCosts { get; set; }
      public virtual ICollection<RecipeItem> Ingredients { get; set; }
      public virtual ICollection<RecipeIngredient> ComboOptions { get; set; }
      public virtual MenuItem MenuItem { get; set; }
   }
}

I am having this exact same issue.  Same error, yet I also only have one class declaration!


⚠ 한경주요지수-코스피200 has degraded performance

In bd9d249, 한경주요지수-코스피200 (https://markets.hankyung.com/indices/kospi200) experienced degraded performance:

HTTP code: 200
Response time: 6206 ms

Resolved: 신규상장 performance has improved in 3192f5b.