ANC - Update - LMP [8h]

Issue
In both the CHW and HC ANC first encounters, we ask "Is patient sure of LMP date?" with a Y/N boolean. We are adding logic so if the user selects "No" a follow-up question will appear. This question will ask "What is the reason the patient is unsure?" with three checkboxes: irregular menses, on family planning method, can't remember dates.
Then see issue #617 for how this will map to the progress report.

Figma
- Design can be found here .
To Do

Update logic
Add question
Style per design

Note: added to ANC sub milestone as the normal ANC milestone is on the old github.

@jeanette-pelizzon

with three checkboxes: irregular menses, on family planning method, can't remember dates.

Should we allow multiple options to be selected, or only one of them?

@anvmn @adamhstewart

nutrition env
tablet

Question:
Why does menses start with a capital letter when all other options only the first word starts with a capital letter?

Checked and Approved:
The question "What is the reason the patient is unsure?" with three checkboxes: irregular menses, on family planning method, can't remember dates has been added as conditional question. Only one option can be selected:

@LudmilaGoichman good catch
@Diama1 can you fix the capitalization mistake?

Why does menses start with a capital letter when all other options only the first word starts with a capital letter?

@LudmilaGoichman good catch
@Diama1 can you fix the capitalization mistake?

Why does menses start with a capital letter when all other options only the first word starts with a capital letter?

I can add it to the LMP calendar issue


drive: retry of initial multiplart upload fails

If the initial creation of the multipart upload fails, the body is then empty when it is retried.
This causes
2016/06/12 05:15:03 file: Failed to copy: Put https://www.googleapis.com/upload/drive/v2/files/XXX?alt=json&setModifiedDate=true&uploadType=resumable: http: ContentLength=129 with Body length 0

Audit for further occurrences of this.
Note also that the low level retries aren't being logged without -v or maybe at all, and the errors aren't being logged.

Here is a beta which fixes the issue hopefully.
http://pub.rclone.org/v1.29-1-gbb75d80-59-ge4650efβ/

It seems to be working fine. Thanks!
On Jun 17, 2016 12:32 PM, "Nick Craig-Wood"<EMAIL_ADDRESS>wrote:

Closed #520 https://github.com/ncw/rclone/issues/520 via e4650ef
https://github.com/ncw/rclone/commit/e4650eff5834c76b38a57d510b39ff9d5e696eff
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ncw/rclone/issues/520#event-696173014, or mute the
thread
https://github.com/notifications/unsubscribe/AHKQKm6sSEM7i3bdPT35eDyIRKQ4bOtrks5qMswIgaJpZM4I0XF6
.

Thanks for the confirmation :-)


LuCI is not corr. working with IE8

Reported by<EMAIL_ADDRESS>on 9 Mar 2011 20:26 UTC
Today we found out, that changements (tested with wireless) will not take place with IE8.
We tryed to change Country and channel on a Nanostation 5. After changement and "save % apply", IE8 shows the timeout-window. After reconnection, the old settings are still present.
Reconfiguration with Firefox is working well.
JoeSemlerm 0xFF-Vienna

Internet Explorer 8 reached end of support in January 2016 on most platforms.  To quote from https://support.microsoft.com/en-us/lifecycle#gp/Microsoft-Internet-Explorer
Beginning January 12, 2016, only the most current version of Internet Explorer available for a supported operating system will receive technical support and security updates, as shown in the table below:
According to the table mentioned, IE8 support is discontinued for Windows desktop and Windows server platforms.  Support remains for some Windows embedded platforms, though.

IE8 is deprecated.
Closing this.


Helper classes/mixins

Font Awesome includes a number of helper classes and/or Less mixins to aid styling the icons. Is this something we should include? If so, what would be useful?
cc: @contolini @himedlooff @Scotchester

Working on this.
It looks like the following things might be useful:

Mixins for each icon character code
Animation helper classes for spinning and pulse
Helper classes for rotating and flipping icons
Bordered icons

Those would all be super useful.

Almost done.
Quick question: For the mixins for each icon character code, Font Awesome has a page that lists all the variables like this:
// variables.less
// --------------------------
@fa-var-volume-down: "\f027";
@fa-var-volume-off: "\f026";
@fa-var-volume-up: "\f028";
...
// icons.less
// --------------------------
.@{fa-css-prefix}-volume-off:before { content: @fa-var-volume-off; }
.@{fa-css-prefix}-volume-down:before { content: @fa-var-volume-down; }
.@{fa-css-prefix}-volume-up:before { content: @fa-var-volume-up; }

Would it make sense to adopt that approach and have two places to update when we add new icons, or to have the mix-in near the class where it will be used?
@cf-var-left: "\e000";
.@{cf-icon-prefix}-left {
    &:before  {     content: @cf-var-left; }
    .lt-ie8 & { .cf-icon-ie7(@cf-var-left); }
}

@cf-var-left-round: "\e001";
.@{cf-icon-prefix}-left-round {
    &:before  {     content: @cf-var-left-round; }
    .lt-ie8 & { .cf-icon-ie7(@cf-var-left-round); }
}

I don't think it's good to have them in two places. My vote would be to have them all together, and not next to the classes.


Better Cargo and Rustup Intergration

Executables like rustfmt, rustsym and racer are more often than not installed with cargo. As such, the extension should look for these files in the .cargo directory.
Additionally, it should also search for the rust source files in the folder rustup would usually put them. This location of the directory can be received using rustc --print sysroot.

I am working on rustup integration. #197

@Gordon-F I saw that issue, but it tries to address a different topic. Do note that this isn't about calling rustup to install toolchains, but rather to just use the path rustup installs to as a place to check for a rust source. When using rustc to get the sysroot, this path will always link to the current toolchain as well. In second thought, this example might be an issue with racer, and not this extension. The other three cases remain though.

@Binero executables like rustfmt are expected to be available in your path. If it is installed via Cargo, it will be located at $CARGO_HOME/bin/rustfmt and $CARGO_HOME/bin should be in your path.

@Binero RustyCode should automatically install rustfmt, rustsym and racer if not find them in $CARGO_HOME/bin.

@Gordon-F It should not install anything automatically. It should ask an user whether the user wants it.

Cargo does not add its installation directory to the PATH. It's much more ergonomical to have RustyCode check this directory as a fallback.

Cargo does not add it because it shouldn't.
I am just thinking that the assumption, the user wants what is inside ~/.cargo/bin may be a bigger one than using what is in the path. If $CARGO_HOME is set specifically than it's very likely what the user wants, but otherwise I am not so sure.
I'll probably create a PR tomorrow about this.

PR is up, let me know about any changes.

Cargo does not add its installation directory to the PATH. It's much more
ergonomical to have RustyCode check this directory as a fallback.
On Mon, 24 Oct 2016, 15:43 Alexey<EMAIL_ADDRESS>wrote:

@Gordon-F https://github.com/Gordon-F It should not install anything
automatically. It should ask an user whether the user wants it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/saviorisdead/RustyCode/issues/203#issuecomment-255743885,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGjJM46kzA0u1eWJ0RJpJEy1slZJBIDlks5q3LX8gaJpZM4KeQch
.


✨ Devcontainer support

added devcontainer config
Description
https://containers.dev/
Works in vscode, codespaces, gitpod, and codesandbox soon!
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[x] I read the contributing docs (if this is your first contribution)

Your ENS/address:
sed.eth

Wierd pnpm store doesn't seem to work

very nice seems to be working


Last Commit Date Changes to Creation Date on Click

When you click anywhere on a row, the last commit date of the PR is changed to the creation date.
See example (Chrome ver. 79.0.3945.88): https://imgur.com/6hmi9aK.gif

@galarun, thanks for your feedback. It's a known "issue". What happens is that there is an async call to get more details about the PR and its commits and the UI is not being updated accordingly. It will be fixed in the future releases.

@galarun - I just simulated the issue and it's an expected behavior because I'm using a component from Azure DevOps SDK called  and ... When the component receives any interaction, it updates to last date information due the fact it considers the commit date with the current date (Now).
Therefore, I will close this issue. Feel free to open it again in case something else is happening.

@cribeiro84 I'm not sure I understand.  The "Last Commit Date" field is being changed to the "Pull Request Creation Date" value which is not correct.  Futhermore, my experience in the past couple days has been that the Last Commit Date value is now always the same as the PR Creation Date even on first load.  All the PR requests in my list have Last Commit Date reflecting the Creation Date instead of the actual date when the PR was updated with a commit.

@galarun I just released a new version of the extension with some fixes for the async calls that capture additional PR info. It was supposed to fix this issue you reported but there is a behaviour for the Ago and Duration components from Azure DevOps that works like a counter based on a start date and DateTime now (current date). Therefore, whenever a new minute goes, the component will update if you interact with the row itself adding one minute or minutes compared to the last rendered time.
I hope this clarifies and also it has fixed the issue with the Last Commit Date that was working partially and now should be fixed.

Confirmed it's working now, thank you @cribeiro84!

Fantastic! Thanks for your feedback :-)
Do not forget to give your rating for the extension in the Azure DevOps marketplace :-)


Attributes and long names for crop array

Should remove units attributes from croparray dataset, and instead give each data variable its own 'units' attribute. Coordinates should also each have their own 'units' attributes. Data variables and coordinates should also have 'long names'. I believe x-array will pull from these attributes when creating plots.

Just fixed this, I believe. Need to test with plotting.

I checked and the plots are now showing the proper units and long_name.


Invalid Query for Java

I am seeing the following error:
tsc-make-query: Query contains invalid node type: "line_comment", (66 . 3), 1504

It looks like changing this:
https://github.com/meain/evil-textobj-tree-sitter/blob/master/queries/java/textobjects.scm#L65-L68
to this works:
(comment) @comment.outer

I don't have full context here, otherwise I would change it myself.

The issue is that line_comment is a new addition to the java grammar and is not currently available in emacs-tree-sitter/tree-sitter-langs. I have opened a pr at https://github.com/emacs-tree-sitter/tree-sitter-langs/pull/110 to fix this.

Thank you @meain

This should now be fixed upstream.


Booster.predict returns same score for any distinct instance when executed via JEP

I am trying to call LightGBM via JEP (Java Embedded Python), in order to predict the scores of a couple of records.
However, if I execute the Booster.predict command via JEP, it returns a constant score of 0.04742587, for every distinct record passed.
The same does not happen if I invoke LGBM from a Python script.
Any ideas on what the issue might be?
Note: when using JEP to invoke different models, like xgboost, this issue does not happen.
Environment info
Operating System: Ubuntu 18.04
CPU/GPU model: Running on local machine with 8 cores / 32 GB RAM
Python version: 3.6.9
GCC version: 7.4.0
Java version: 1.8
Jep version: 3.7.1
LightGBM version or commit hash: 2.3.1
Steps to reproduce
COMMON STEPS:

Extract the following model inside the zip into a file named m0_test.model:

m0_test.zip

Save the following script as classifier.py, in any folder you wish (replace <PATH_TO_MODEL> accordingly)

import lightgbm as lgb
import numpy as np
import pandas as pd
import random as rd

class Classifier:
    def __init__(self):
        # Necessary file paths
        model_file_name = '<PATH_TO_MODEL>/m0_test.model'

        # Load model.
        self.model = Classifier.get_model(model_file_name)

    def getClassDistribution(self, instances):
        score = self.get_transaction_score(instances)

        print('Score:'+str(score))

        return [np.array([score, 1 - score])]

    def get_transaction_score(self, instances):
        gbm=self.model
        # Get prediction.
        fraud_prediction = gbm.predict(instances, num_iteration=gbm.best_iteration)
        return fraud_prediction.flatten()

    @staticmethod
    def get_model(model_name):
        with open(model_name, 'r') as file:
            data = file.read()
            lgb_model = lgb.Booster(model_str=data)
            return lgb_model

JEP EXECUTION:

Install JEP

git clone https://github.com/ninia/jep.git
cd jep
echo "Installing JEP..."
git checkout v3.7.1
python setup.py build install

Set the following environment variables (replace variables inside <> accordingly):

LD_LIBRARY_PATH=<PATH_TO_JEP>/lib/python3.6/site-packages/jep
LD_PRELOAD=<PATH_TO_PYTHON_SO>/lib/libpython3.6m.so
JEP_LOCATION=<PATH_TO_JEP>/lib/python3.6/site-packages/jep
JEP_JAR =${JEP_LOCATION}/jep-3.7.0.jar
TO_PRELOAD=${LD_PRELOAD}

Compile and run the following Java Class (replace <PATH_TO_FOLDER_CONTAINING_CLASSIFIER.PY> accordingly):

package com.feedzai.tests;
import jep.Jep;

public class TestLightGBM {

    public static void main(String[] args) {

        try  {

            Jep jep= new Jep();
            jep.eval("import sys");
           jep.eval("from java.lang import System");
            jep.eval("sys.path.append(\"<PATH_TO_FOLDER_CONTAINING_CLASSIFIER.PY>\")");
            jep.eval("from classifier import Classifier");

            jep.eval("import numpy as np");

            jep.eval("record1 = np.array([[ 4.61935575 ,-5.18927169,  2.74834851,  1.0087401 ,  1.95090556, -3.33563201,"
                   + "1.  ,        2.     ,     2.     ,     2.        ]]) ");
            jep.eval("record2 = np.array([[2.30000000e+01, 2.60000000e+02, 1.00000000e+06, 2.29400000e+02,"
                    +"2.30209137e+07 ,1.09000000e+04 ,2.00000000e+00 ,2.00000000e+00,"
                    +"1.00000000e+00, 2.00000000e+00]])");
            jep.eval( "record3 = np.array([[2.20000000e+01, 2.37000000e+02 ,1.00000100e+06 ,3.50400000e+02,"
                   + "1.90109777e+07, 1.00320000e+04, 1.00000000e+00, 3.00000000e+00,"
                 +   "2.00000000e+00, 5.00000000e+00]])");

            jep.eval( "record4 = np.array([[9.80000000e+01, 2.57000000e+02, 1.00000200e+06, 3.33400000e+02,"
                    +"1.41323727e+07, 1.19990000e+04, 0.00000000e+00, 0.00000000e+00,"
                   +" 2.00000000e+00, 3.00000000e+00]])");
            jep.eval( "record5 = np.array([[1.30000000e+01, 3.17000000e+02, 1.00000300e+06, 6.99400000e+02,"
                   + "3.30892917e+07, 1.03560000e+04, 2.00000000e+00, 2.00000000e+00,"
                   +" 1.00000000e+00, 1.00000000e+00]])");

            jep.eval("test = Classifier()");
            jep.eval("test.getClassDistribution(record1)[0].item(0)");
            jep.eval("test.getClassDistribution(record2)[0].item(0)");
            jep.eval("test.getClassDistribution(record3)[0].item(0)");
            jep.eval("test.getClassDistribution(record4)[0].item(0)");
            jep.eval("test.getClassDistribution(record5)[0].item(0)");

        }
        catch(Exception e){
            System.out.println("Error");
            System.out.println(e);

        }
    }

}

See that the return score is always constant independent of the record classified:

Finished loading model, total used 200 iterations
Score:[0.04742587]
0.04742587317756678
Score:[0.04742587]
0.04742587317756678
Score:[0.04742587]
0.04742587317756678
Score:[0.04742587]
0.04742587317756678
Score:[0.04742587]
0.04742587317756678

PYTHON EXECUTION:

Open the Python console
Type the folowing code, equivalent to the example above. (replace <PATH_TO_FOLDER_CONTAINING_CLASSIFIER.PY> accordingly ):

import sys
sys.path.append("<PATH_TO_FOLDER_CONTAINING_CLASSIFIER.PY>") # ex: /opt/folder/
from classifier import Classifier
import numpy as np
record1 = np.array([[ 4.61935575 ,-5.18927169,  2.74834851,  1.0087401 ,  1.95090556, -3.33563201,
   1.  ,        2.     ,     2.     ,     2.        ]])
record2 = np.array([[2.30000000e+01, 2.60000000e+02, 1.00000000e+06, 2.29400000e+02,
  2.30209137e+07 ,1.09000000e+04 ,2.00000000e+00 ,2.00000000e+00,
  1.00000000e+00, 2.00000000e+00]])
record3 = np.array([[2.20000000e+01, 2.37000000e+02 ,1.00000100e+06 ,3.50400000e+02,
  1.90109777e+07, 1.00320000e+04, 1.00000000e+00, 3.00000000e+00,
  2.00000000e+00, 5.00000000e+00]])
record4 = np.array([[9.80000000e+01, 2.57000000e+02, 1.00000200e+06, 3.33400000e+02,
  1.41323727e+07, 1.19990000e+04, 0.00000000e+00, 0.00000000e+00,
  2.00000000e+00, 3.00000000e+00]])
record5 = np.array([[1.30000000e+01, 3.17000000e+02, 1.00000300e+06, 6.99400000e+02,
  3.30892917e+07, 1.03560000e+04, 2.00000000e+00, 2.00000000e+00,
  1.00000000e+00, 1.00000000e+00]])

test = Classifier()
print(test.getClassDistribution(record1)[0].item(0))
print(test.getClassDistribution(record2)[0].item(0))
print(test.getClassDistribution(record3)[0].item(0))
print(test.getClassDistribution(record4)[0].item(0))
print(test.getClassDistribution(record5)[0].item(0))

The instances are now correctly scored:

>>> print(test.getClassDistribution(record1)[0].item(0))
Score:[1.07931287e-09]
1.0793128698291579e-09
>>> print(test.getClassDistribution(record2)[0].item(0))
Score:[1.25450336e-09]
1.2545033620809255e-09
>>> print(test.getClassDistribution(record3)[0].item(0))
Score:[1.1813487e-09]
1.1813487042059903e-09
>>> print(test.getClassDistribution(record4)[0].item(0))
Score:[1.1813487e-09]
1.1813487042058477e-09
>>> print(test.getClassDistribution(record5)[0].item(0))
Score:[9.23272512e-10]
9.232725116775672e-10

LInked with the following issue : https://github.com/ninia/jep/issues/205

Since Python script returns a correct values, I guess there is an issue at the JEP side (we do not maintain it). Maybe something even with compatibility between numpy  and JEP. Also, please note that you can use our SWIG bindings for JAVA application, or https://github.com/Azure/mmlspark, or https://github.com/jpmml/jpmml-lightgbm for prediction.
Since, you've already filed this issue to JEP, I'm going to close it here. However, feel free to update this issue if something will be needed from us for better compatibility with JEP.

@StrikerRUS, can you take a look at https://github.com/ninia/jep/issues/205#issuecomment-544078377 to see if LightGBM should be improved to handle locales better?

@ndjensen Thanks a lot for keeping us with updates! Can you please elaborate a little bit more, in what aspects locale handling can be improved?
import locale

import numpy as np
import lightgbm as lgb

from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split

locale.getdefaultlocale()
>>> ('ru_RU', 'cp1251')

X, y = load_boston(True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

est = lgb.LGBMRegressor().fit(X_train, y_train)
pred_default = est.predict(X_test)

locale.setlocale(locale.LC_ALL, 'pt_PT')
>>> 'pt_PT'

est = lgb.LGBMRegressor().fit(X_train, y_train)
pred_with_custom_locale = est.predict(X_test)

np.testing.assert_allclose(pred_default, pred_with_custom_locale)

I don't entirely understand it, you can read the other comments on the Jep ticket, but I think if you save a model file in one locale and load it in a different locale, the model file is not read correctly.  @ManuelMourato25 already attached a model file and it doesn't work if read when the locale is Portuguese.  @ManuelMourato25, please feel free to correct me if I'm not explaining it correctly.


print_lr() takes 1 positional argument but 5 were given

Hi,
I am facing this error for the last 2 days, i tried all the possible solution but no way. The same error can be found when running this repo https://github.com/Viveksbawa/SARAS-ESAD-Baseline.
Can you please help me in this regard.
For your reference i attached an image for the error.
Thanks in adv

WarmupMultiStepLR is inherited from torch.optim.lr_scheduler._LRScheduler print function is inherited from there as well. Either implement print_lr function under  WarmupMultiStepLR calls in solver.py or change the call which matches to torch.optim.lr_scheduler._LRScheduler.print_lr(kw***)  call.  torch.optim.lr_scheduler._LRScheduler.print_lr(kw***) changes with PyTorch version. So, I would suggest adding print function under WarmupMultiStepLR class.

Sorry, the wrong answer there.
Just remove print_lr() function from WarmupMultiStepLR class in solver.py.


Consecutive comments => String extraction fail in the js file

If there are more than two consecutive comments in js file, it will cause the string extraction in the file to fail.
for example:
const a ="A"
{/* const b = "B"; */}
{/* const c = "C"; */}
const d = "D";

@cloudinstone I can't reproduce this locally (using wp i18n make-pot .).
Which version of WP-CLI are you running? (wp cli info)
And which command are you running with which args?


Disable tooltips on touch devices.

This probably isn't safe to merge. There may be a race condition in the javascript loading.


Up/down keys no longer respect "filtering" for files in Folders pane (file explorer)

VS Code Version: 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4)
OS Version: Big Sur 11.2.1 (20D75)

Steps to Reproduce:

Focus on the Folders pane
Start typing a file's name (the "query")
You should see something like this, which I don't know the name of:

Hit Up or Down keys

Expected Behavior:
Hitting Up/Down should "skip" to the next file that matches the query
Actual Result:
Hitting Up/Down behaves as if no query was written, focusing on the immediate previous/next files.
See:

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

/duplicate of #115922 and fixed in Insiders, so will arrive in the next Stable (1.54)

I am find this problem too, Is the vscode version caused ? How solve it ? Help!

Either use Insiders (which you can install alongside Stable) or wait another week until 1.54 reaches Stable.

Either use Insiders (which you can install alongside Stable) or wait another week until 1.54 reaches Stable.

Ok, Thank You!


start ref

Hi, I tried your branch, but I am getting two errors after running npm i twice.
npm ERR! code 1
npm ERR! path /Users/churongzhang/vsCode/react-music-player/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Unsupported platform: darwin arm64 LE

npm ERR! A complete log of this run can be found in

then
react-music-player % npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/webpack
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>|| 5.x.x" from<EMAIL_ADDRESS>npm ERR!   node_modules/@webpack-cli/configtest
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/webpack-cli
npm ERR!       dev<EMAIL_ADDRESS>from the root project
npm ERR!       3 more (@webpack-cli/configtest, @webpack-cli/info, @webpack-cli/serve)
npm ERR!   16 more (babel-loader, clean-webpack-plugin, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/esbuild-webpack-plugin
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/webpack
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/esbuild-webpack-plugin
npm ERR!     dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Not sure if is a MAC problem or what


fix: fix the order between namespace and crd resources in the resource snapshots

Description of your changes
fix the order between namespace and crd resources in the resource snapshots so that the snapshot doesn't change when there is no resource changes
Fixes #
I have:

[x] Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

LGTM, but looks like some unit tests need to be updated as well


Rack Elevation Improvements

Closes #1768, #2966, #2967
What's Changed

Device images on rack elevation are no longer inverted in dark mode:

Device names are now overlayed on top of the device images:

When a half-depth device is present but viewed from the rear "face" it's presence is hinted at:

User can still assign a device to these locations individually, even if the half-depth device is multi-U

TODO

[x] Explanation of Change(s)
[x] Added change log fragment(s) (for more information see the documentation)
[x] Attached Screenshots, Payload Example
[x] Unit, Integration Tests
[NA] Documentation Updates (when adding/changing features)
[NA] Example Plugin Updates (when adding/changing features)
[x] Outline Remaining Work, Constraints from Design

Don't forget to give credit where credit's due for @lschweiss's contributions to fixing #2966.

Probably pretty hard because it's subjective and requires looking at pixels.


load model error

Thank you for the great work!
The parameter's folder of you model is not provide, should i train the model in dataset before inference?

Hi @zk19971101, please refer to this comment.


Merge rtrsub into bgpfu

I'd like to merge rtrsub into bgpfu
How do we go about this?
rtrsub has a limited user base, so we can break an egg

I should have time to go over bgpfu reboot this week, this will make a good test :)


This test case isn't really fast, and failed a few times for me locally.

Make it more complex to ensure that it fails consistently in the slow
directory.

@swift-ci Please smoke test and merge

@swift-ci Please smoke test and merge


Update website press

Not 100% sure if this is necessary (might just be noise for homepage), but Hack Club has had much more coverage in the press since the three things currently on the site!
Discuss.

Yeah, totally agree. Let's update this.
Things to add off the top of my head:

Daily Dot
Forbes
Business Insider

Now we should also add CBS Sunday Morning.


[system-agent] Document the system-agent, explain how it functions and its purpose

The system-agent we are working on for future Rancher 2.6 release will need to be clearly documented. We will need to explain its purpose and how it works under the hood.
We should make an effort to get across relevant information without getting too much in the weeds. Will need to balance the technical aspects with readability for general consumption.

Why does xyz need to be escalated
What does this do in general
Explain the container images we use for delivery mechanism
Any other concerns you feel should be called out and documented from a security perspective

This should go in the security section of docs

Chris Kim will write these docs.

Based on talking to Chris, we are removing this doc from the 2.6 milestone because the feature is in tech preview. He expects the feature to change until RKE2 provisioning is released as GA. These docs should wait to be worked on until the feature is about to become GA.


Incorrect apiGroup in keda-clusterrole

Yesterday I deployed keda using helm chart with version 2.0.0-beta.1.1. Now my keda operator and keda metrics apiserver log errors:
Failed to list *v1alpha1.ScaledObject: scaledobjects.keda.sh is forbidden: User "system:serviceaccount:keda:keda-operator" cannot list resource "scaledobjects" in API group "keda.sh" at the cluster scope

scaledobjects.keda.sh is forbidden: User \"system:serviceaccount:keda:keda-operator\" cannot list resource \"scaledobjects\" in API group \"keda.sh\" at the cluster scope

I think the problem is here (https://github.com/kedacore/charts/blob/master/keda/templates/10-keda-clusterrole.yaml#L50):
- apiGroups:
  - keda.k8s.io
  resources:
  - '*'
  verbs:
  - '*'

@leonfibal good catch, thanks! The Chart need still some polishing.

Hi,
There is also a problem on the resource "deployments/scale", it should be added to the clusterrole:
{"level":"error","ts":1600850002.1993313,"logger":"controller","msg":"Reconciler error","reconcilerGroup":"keda.sh","reconcilerKind":"ScaledObject","controller":"scaledobject","name":"xxx","namespace":"xxx","error":"deployments.apps "image-converter" is forbidden: User "system:serviceaccount:keda:keda-operator" cannot get resource "deployments/scale" in API group "apps" in the namespace "scaling"","stacktrace":"xxxx"}
thank you for your work!


gif is distracting

you have a gif that keeps changing, but it's not pausable so I can't actually  look at it. Very distracting.
[Enter feedback here]

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

ID: 709f9e54-c965-5dc4-b64f-3d90037626be
Version Independent ID: 45011eec-04a4-01b4-2ab8-70677e910f3b
Content: What are code components? - Power Apps
Content Source: powerapps-docs/developer/component-framework/custom-controls-overview.md
Service: powerapps
GitHub Login: @Nkrb
Microsoft Alias: nabuthuk

@onetalltree Unfortunately, we don't have a way to pause the Gifs in between. I have made changes to slow it down and put a long pause at the end. Will push the changes live by EOD. Closing the issue.


Redirect out/err to System.out/System.err, rather than with INHERIT.

For discussion in https://github.com/scala-js/scala-js/issues/4560

ProcessBuilder.Redirect.INHERIT uses the file descriptors of the current process. That means it does not take into account changes made to System.out and System.err by System.setOut and System.setErr.
We now use separate threads that explicitly forward the stdout and stderr of the process to System.out and System.err.

Superseded by https://github.com/scala-js/scala-js/pull/4595


Release v1.3.0

This is a draft of changelog for the v1.3.0 release.
Here you can find all related translations changes: v1.2.0...master.

⚠ Do not merge this pull request manually ⚠
You should approve this pull request instead. After approving, I will automatically update it (release date needs to be adjusted), merge, and tag a new release. You can read more about the process on forum.

Show release notes preview
v1.3.0

Added support for new extensions:

kilowhat/flarum-ext-cimaise

Updated translations for extensions:

fof/share-social
kilowhat/flarum-ext-audit-free
kilowhat/flarum-ext-audit-pro

All changes: v1.2.0...v1.3.0.

Success! Now you can announce new release on forum:
## Version [`v1.3.0`](https://github.com/flarum-lang/chinese-traditional/releases/tag/v1.3.0)

**Added support for new extensions**:

* [`kilowhat/flarum-ext-cimaise`](https://extiverse.com/extension/kilowhat/flarum-ext-cimaise)

**Updated translations for extensions**:

* [`fof/share-social`](https://github.com/FriendsOfFlarum/share-social)
* [`kilowhat/flarum-ext-audit-free`](https://github.com/kilowhat/flarum-ext-audit-free)
* [`kilowhat/flarum-ext-audit-pro`](https://extiverse.com/extension/kilowhat/flarum-ext-audit-pro)

All changes: [v1.2.0...v1.3.0](https://github.com/flarum-lang/chinese-traditional/compare/v1.2.0...v1.3.0).

In order to update run these commands:

```console
composer update flarum-lang/chinese-traditional
php flarum cache:clear
```


Change search tabs to use material

Feature Request
Desired behaviour
(implementer shows mock-ups first) Change the search tabs on the right to material tabs

Nevermind duplicate of https://github.com/dockstore/dockstore/issues/2747


Feature : Get CPU temperature over the RPC

Addresses : #138.
Description:
This pull request introduces the implementation of the get_cpu_temps method, which retrieves the CPU temperature for use in the dashboard. This feature leverages the systemstat library.
The get_cpu_temps method is located in /src/rpc_server.rs to facilitate its use via the RPC server.
It's important to note that the systemstat library does not support CPU temperature retrieval on Silicon Macs, as Apple has disabled this feature. Consequently, the associated test is designed to expect a None result when running on macOS.
As in /src/bin/dashboard_src/overview_screen.rs, cpu_temperature is a Option, I converted the f32 we get from systemstat into f64.

Thanks for adding a test. PRs that introduce new tests make me happy :)
Your PR introduces a compiler warning. Can you fix that? I personally run make all to check that there are no bugs/compiler warnings but if you don't have a powerful machine, maybe you just want to run cargo clippy --all-targets and cargo fmt --all --check instead.
warning: unused variable: `state_lock`
    --> src/rpc_server.rs:1114:26
     |
1114 |         let (rpc_server, state_lock) =
     |                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_lock`
     |
     = note: `#[warn(unused_variables)]` on by default

Thanks @Sword-Smith for your review.
I will fix that quickly.

Thank you for your contribution, @elielnfinic. The PR was merged manually through CLI by me. You have of course been credited :)


Mjlodge patch 3

@mjlodge Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Accidental property is not appearing

Hello,
congrats for this nice library.
Issue is all about "Accidental" property that is not appearing when using the library via Nuget Packages. It does appear when using the code directly.
Sample
Thank you.

You are probably not using the last version. Try to update your nuget packages

I am using version 2.0.1 which - as far as I can see - is the most resent release and problem still exists.
But again, it works when I use the code directly (not through Nugets).
Thank you.

Net Nuget package published with code migrate to netstandard 2.1. should be fixed I guess..


[BUG] FileSystemException: Cannot open file, path = 'C:\Users\claud\fvm.settings'

Hello,
Whenever I have a problem with the fvm I deactivate and activate it and it solves itself. Now I am without a solution. I'm on windows 11 and have developer mode enabled since windows 10. I've also tested doing everything as an administrator.
it seems to me that the problem is just this /fvm/.settings because enter as an administrator, I uninstalled fvm, reinstalled. I removed the 1.20.2 version of flutter I'm trying to work with, reinstalled it.. all no problem, but when I try to do something like fvm flutter pub get or compile, I get the .settings does not exist error.

If I run "pub cache repair" without fvm installed, it runs ok, if I run after "dart pub global activate fvm" I get:

Building package executables...
Failed to build fvm:main:
Error: Couldn't resolve the package 'fvm' in 'package:fvm/src/runner.dart'.
AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/fvm-2.2.4/bin/main.dart:3:8: Error: Not found: 'package:fvm/src/runner.dart'
import 'package:fvm/src/runner.dart';
^
AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/fvm-2.2.4/bin/main.dart:6:14: Error: Method not found: 'FvmCommandRunner'.
exit(await FvmCommandRunner().run(args));
^^^^^^^^^^^^^^^^
Failed to reactivate fvm 2.2.4: Failed to build fvm:main:
Error: Couldn't resolve the package 'fvm' in 'package:fvm/src/runner.dart'.
AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/fvm-2.2.4/bin/main.dart:3:8: Error: Not found: 'package:fvm/src/runner.dart'
import 'package:fvm/src/runner.dart';
^
AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/fvm-2.2.4/bin/main.dart:6:14: Error: Method not found: 'FvmCommandRunner'.
exit(await FvmCommandRunner().run(args));
^^^^^^^^^^^^^^^^
Binstubs exist for non-activated packages:
From fvm: fvm
Reactivated 1 package.
Failed to reactivate 1 package:

fvm

PS C:\Users\claud> fvm doctor

No FVM config found:
C:\Users\claud
Fvm will run the version in your PATH env: C:\src\flutter\bin\flutter.bat
Configured env paths:

Flutter:
C:\src\flutter\bin\flutter.bat
Dart:
C:\src\flutter\bin\dart.bat
FVM_HOME:
not set
And I'm getting the prints errors too.

I appreciate any help, thanks.
Claudio

I got the contents of the .settings file from another issue I found.
{
"skipSetup": false,
"gitCache": false
}
Now when I run fvm flutter pub get I get:

C:\Users\claud\Desktop\flutter\apps\diarias>fvm --verbose flutter pub get
[     0.065s] Version: 1.20.2 - already installed.
[     0.082s] FileSystemException: Cannot create link to target 'C:\Users\claud\fvm\versions\1.20.2', path = 'C:\Users\claud\Desktop\flutter\apps\diarias.fvm\flutter_sdk' (OS Error: Não é possível criar um arquivo já existente.
, errno = 183)
[     0.083s] Usage Exception: Seems you don't have the required permissions on C:\Users\claud\fvm On Windows FVM requires to run as an administrator or turn on developer mode: https://bit.ly/3vxRr2M
Could not install 1.20.2
Please run command with  --verbose if you want more information

even running cmd or windows power shell as administrator

This seems to be a duplicate of this https://github.com/leoafarias/fvm/issues/352
The settings file is just a warning but it should not be the cause of what is happening.


Reading a value from Graph UserMe and adding it as a custom property to the user's SecurityContext

Query/Question
Hi guys, as a follow up of 32567, I'd like to ask a general question, because maybe the technical solution should look totally different than our initial approach mentioned in the previous issue.
After the login, we would like to enrich the security context of a user, who authenticates via Azure AD, by an additional custom property ("personalNumber"). To obtain this value, we need to call the UserMe Graph endpoint (using the credentials of the same user, without having him to log in again) and read it from there.
Is our approach of creating CustomOidcUser extending the DefaultOidcUser (to store the new custom property) and  CustomAadOAuth2UserService (extending the AadOAuth2UserService) with overriden loadUser(OidcUserRequest userRequest) correct, or is there a better way to achieve this?
Is there please any sample code dealing with this, or does anyone please have any recommendations how to approach this?
Thanks a lot in advance
Why is this not a Bug or a feature Request?
It's neither a bug nor a feature request, but a request for help/advice...
Setup (please complete the following information if applicable):

IDE: IntelliJ 2022.1.4 (Ultimate Edition)
Library/Libraries: spring-boot 2.6.8, spring-cloud-azure 4.4.1

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Query Added
[x] Setup information Added

Is there please any sample code dealing with this, or does anyone please have any recommendations how to approach this?

Now there is no sample code.
Which property are you adding? If the property can be added into ID token, it's not necessary to call Graph API. The claims in the ID token will be added into OidcUser.
Refs: https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims

Hi @chenrujun , thanks for your reply! Yes, passing the value within the ID token would be the best/easiest solution, however the client's security team didn't let this happen for some internal reason. However your solution using just the access token worked, so let's consider this topic solved. Thanks again for your time!


Failed to get candlesticks.

Good day to you! I've been wondering about trying out this plugin. I've created all of the requried accounts and entered all of the ids and api keys, but when i try to run it, it always Failed to get candlesticks. I let it run for a few commands and it also throws Error: DataFrame constructor not properly called!. I'm kinda new to github issues, so appologies for poor formatting. Thank you in advance for any help.

I have the same issue. It's trying to use google instead. Got it all set up and double checked regarding the installation. Any ideas on what is causing the problem?

I have a similar issue, but took me a while to work out that some currency pairs work. For example:
Metatrader symbols that work: EURGBP, USDJPN, USDSGD,
Not working: USDEUR, EURUSD, AUSUSD (Because USDEUR wasn't working, I got it to put the pair as EURUSD to see if that worked, but it didn't.)
I am able able to successfully pull the following:
get_account_information
get_positions
get_stock_of_the_day
get_important_forex_news
I am also able to successfully do all of the following for currencies that work:
rsi
money_flow_index
volume
ema
macd
fib_retracements
stochastic_oscillator
I can't pull:
get_sentiment
With SMA, I get 'min_periods must be an integer' but when it then tries to add min periods with an integer it gets an error. Someone else has raised this.
In order to troubleshoot further, it is worth establishing what does work, for example, put the objective as:
To conduct troubleshooting on the MT4 Metatrader API. The aim is just to find what works with the API. It is not to find profitable trading opportunities. Create a file called GPTCurrencyText.txt. Run through the different currency pairs to see which ones work and which ones do not, using the following command: COMMAND = fetch_candlesticks ARGUMENTS = {'symbol': '', 'timeframe': '1h'} but cylcing through each currency pair, including EURGBP, USDJPN, USDSGD, USDEUR, EURUSD, AUSUSD. After each test, store the result in GPTCurrencyText.txt file and move on to the next currency pair.
(I wasn't successful in getting it to generate a file, but it did seem to keep it pretty focused on going through the different pairs.)
Also:
To conduct troubleshooting on the MT4 Metatrader API. The aim is just to find what works with the API. It is not to find profitable trading opportunities. Run through the different commands to see which ones work and which ones do not, including the following requests: get_account_information, get_positions, get_stock_of_the_day, get_important_forex_news, get_sentiment
My guess is that there are idiosyncrasies between brokers requiring slightly different syntax, and this is leading to the issues, but further diagnosis needed.

I have a similar issue, but took me a while to work out that some currency pairs work. For example:
Metatrader symbols that work: EURGBP, USDJPN, USDSGD, Not working: USDEUR, EURUSD, AUSUSD (Because USDEUR wasn't working, I got it to put the pair as EURUSD to see if that worked, but it didn't.)
I am able able to successfully pull the following: get_account_information get_positions get_stock_of_the_day get_important_forex_news
I am also able to successfully do all of the following for currencies that work: rsi money_flow_index volume ema macd fib_retracements stochastic_oscillator
I can't pull: get_sentiment With SMA, I get 'min_periods must be an integer' but when it then tries to add min periods with an integer it gets an error. Someone else has raised this.
In order to troubleshoot further, it is worth establishing what does work, for example, put the objective as:
To conduct troubleshooting on the MT4 Metatrader API. The aim is just to find what works with the API. It is not to find profitable trading opportunities. Create a file called GPTCurrencyText.txt. Run through the different currency pairs to see which ones work and which ones do not, using the following command: COMMAND = fetch_candlesticks ARGUMENTS = {'symbol': '', 'timeframe': '1h'} but cylcing through each currency pair, including EURGBP, USDJPN, USDSGD, USDEUR, EURUSD, AUSUSD. After each test, store the result in GPTCurrencyText.txt file and move on to the next currency pair.
(I wasn't successful in getting it to generate a file, but it did seem to keep it pretty focused on going through the different pairs.)
Also: To conduct troubleshooting on the MT4 Metatrader API. The aim is just to find what works with the API. It is not to find profitable trading opportunities. Run through the different commands to see which ones work and which ones do not, including the following requests: get_account_information, get_positions, get_stock_of_the_day, get_important_forex_news, get_sentiment
My guess is that there are idiosyncrasies between brokers requiring slightly different syntax, and this is leading to the issues, but further diagnosis needed.

I have the same issue as you with SMA, I'm using AdmiralMarkets-Demo and MT4, EURGBP, 1h

regarding the SMA issue, I modifyed the code in "Indicators.py" as follow and it works !
def sma(candlesticks, period):
# Get the candlesticks data
if candlesticks:
df = pd.DataFrame(candlesticks, columns=['close'])
df = df.dropna()
sma = SMAIndicator(df['close'], window=int(period))  # Convert period to integer
return f'Current Simple Moving Average Value: {sma.sma_indicator().iloc[-1]}'
if not candlesticks:
    return 'Failed to get candlesticks'

def sma(candlesticks, period):
# Get the candlesticks data
if candlesticks:
df = pd.DataFrame(candlesticks, columns=['close'])
df = df.dropna()
sma = SMAIndicator(df['close'], window=int(period))  # Convert period to integer
return f'Current Simple Moving Average Value: {sma.sma_indicator().iloc[-1]}'
if not candlesticks:
    return 'Failed to get candlesticks'


help the developpers to detect that there is 2 reducer with same name/prefix

Only in development builds:

use a global variable to register all tuples (name, prefix)
detect if there is a collision
if there is a collision, print a warning (error ?) message, something like: [k-redux-factory] You combined two reducers with same name and prefix, we think this is a bug. You should look at 'prefix' option to create your reducer(s)!

@bpetetot are you ok ?
This is related to #73 that is coming back on a regular basis

@bpetetot do you know how to handle dev/prod build from a library perspective ?

In ReactJS, they build 2 differents bundles: react.development.js and react.production.js
With the following index.js file:
'use strict';

if (process.env.NODE_ENV === 'production') {
  module.exports = require('./cjs/react.production.min.js');
} else {
  module.exports = require('./cjs/react.development.js');
}

Hmm ok, so we have to build 2 times the libs:

NODE_ENV=production yarn build
NODE_ENV=development yarn build

And add this index.js manually

I think you can directly build dev and prod bundles through the rollup config. So you will not have to call 2 times the yarn build command.

I move the lib to microbundle


Standalone gitHub Actions workflow

A standalone gitHub actions workflow setup to practice and test the set up.

suggest that the action runs on pull request as well as push

I have added pull_request to the on: options and this has run successfully on my fork
https://github.com/CMayNorris/net.binary_array_ld.bald/runs/834472955?check_suite_focus=true
I can't see that the workflow has run in this PR though. I wonder if this on: pull_request has to be in master before any additional pull requests will trigger it? I will try to find more information on this if I can.

I can't see that the workflow has run in this PR though. I wonder if this on: pull_request has to be in master before any additional pull requests will trigger it? I will try to find more information on this if I can.

I can't find a reference in the docs, but empirical evidence shows that an 'on-pr' action won't run until that action is on the target branch
merging this branch now
@CMayNorris  please target further changes using a new branch derived from the updated master


List components from other sources

What type of PR is this?
/kind feature
/kind code-refactoring
What does this PR do / why we need it:
This PR adds the support to see components created/managed by tools other than odo.
Which issue(s) this PR fixes:
Fixes #4688
PR acceptance criteria:

[ ] Unit test

[ ] Integration test

[ ] Documentation

[ ] Update changelog

[ ] I have read the test guidelines

How to test changes / Special notes to the reviewer:
Manually create a deployment and deploymentconfig in openshift web console or any other tool. Make sure it is labelled with the following labels -
        app: httpd
        app.kubernetes.io/instance: example
        app.kubernetes.io/managed-by: console
        app.kubernetes.io/managed-by-version: v4.8.0
        app.kubernetes.io/name: example
        app.kubernetes.io/part-of: httpd

Or better yet, it follows these labels - https://github.com/redhat-developer/app-labels
With OCP4, it will be easy to create a component of a deployment kind by using the samples provided by ocp, but to create a deploymentConfig kind component you can use the following yaml -
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  name: example
  namespace: myproject
  labels:
    app: httpd
    app.kubernetes.io/instance: example
    app.kubernetes.io/managed-by: console
    app.kubernetes.io/managed-by-version: v4.8.0
    app.kubernetes.io/name: example
    app.kubernetes.io/part-of: httpd
spec:
  selector:
    app: httpd
  replicas: 3
  template:
    metadata:
      labels:
        app: httpd
        app.kubernetes.io/instance: example
        app.kubernetes.io/managed-by: console
        app.kubernetes.io/managed-by-version: v4.8.0
        app.kubernetes.io/name: example
        app.kubernetes.io/part-of: httpd
    spec:
      containers:
        - name: httpd
          image: >-
            image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest
          ports:
            - containerPort: 8080

Also create a few components with the help of odo.
Run odo list and you should be able to see the non-odo components in the output that looks something like this -
➜  odo git:(listcom) ✗ odo list --all-apps
W0524 13:12:51.685576   13526 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0524 13:12:55.884893   13526 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0524 13:12:58.278964   13526 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Devfile Components:
APP      NAME      PROJECT       TYPE      STATE
app1     njs2i     myproject     njs2i     Pushed

Other Components running on the cluster(read-only):
APP            NAME              PROJECT       TYPE
sample-app     nodejs-sample     myproject     nodejs-sample
httpd          example           myproject     example

Also, do test with odo list --app sample-app, odo list --all-apps -o json, odo list.
Note - This is work-in-progress and you might find some commented code and incomplete tests, I am yet to add unit and integrations tests as well, but I am waiting on it to make sure that everyone agrees on the implmentation.

tested, it it looks good
/approve

/test v4.7-integration-e2e
The failing test passes locally. Retrying.

/hold
Just want to make sure that someone doesn't lgtm until all comments are resolved 🙂

/retest
Unit test windows failure.

/unhold
Addressed concern in https://github.com/openshift/odo/pull/4742#discussion_r650881978

/override ci/prow/psi-unit-test-mac
/override ci/prow/psi-unit-test-windows
Reason - These are optional checks.

/approve
/lgtm


Method "allPropertyExists" and similar throw fatal error

$std = new \stdClass();
$std->some = null;
$std->some2 = null;

// it's ok
Webmozart\Assert\Assert::propertyExists($std, 'some');

// but "all" method throws fatal exception
Webmozart\Assert\Assert::allPropertyExists(['some', 'some2'], $std);

PHP Fatal error:  Uncaught InvalidArgumentException: Expected the property stdClass to exist.

Because first  argument is class/object, not property.
public static function propertyExists($classOrObject, $property, $message = '')
Problem occurs in the methods:

allPropertyExists
allPropertyNotExists
allMethodExists
allMethodNotExists

As I understand it, currently the allPropertyExists method does not check multiple properties on one object/class.
It checks one property against an array of objects/classes.
Example:
$dog = new \stdClass();
$dog->name = 'odie';
$cat = new \stdClass();
$cat->name = 'garfield';

// This would run fine.
Webmozart\Assert\Assert::allPropertyExists([$dog, $cat], 'name');

@FrontEndCoffee I see... So, this isn't a bug, right?


KAFKA-9633: Ensure ConfigProviders are closed

Fixes KAFKA-9633.

Any chance of code reivew @rajinisivaram, @kkonstantine, @hachikuji?

ok to test

@kkonstantine any change of merging this?

@kkonstantine any change of merging this?

retest this please

ok to test

JDK8 build failed on a relevant test:
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2007/testReport/junit/org.apache.kafka.connect.runtime/WorkerTest/testStartAndStopConnector/

@kkonstantine both those suggestions seemed reasonable, so I made those changes. I've also fixed the problem with the test which was due to the tests running concurrently but using a static variable to make the assertion (since the test code can't access the mock provider instance). Please take another look.

retest this please

@tombentley there are a couple test cases that need adjustment after the recent fix on the race condition.

Failed builds:
jdk8
jdk11
jdk14

@kkonstantine I should have run all the tests. Lesson learned, and sorry for wasting your time. Now fixed (and tested).

no problem @tombentley
It's the VMs doing the heavy lifting from here :)

retest this please

Build results:
jdk8 2 unrelated failures:
org.apache.kafka.connect.mirror.MirrorConnectorsIntegrationTest.testReplication
org.apache.kafka.streams.integration.QueryableStateIntegrationTest.shouldAllowConcurrentAccesses
jdk11 1 unrelated failure:
org.apache.kafka.streams.integration.GlobalKTableIntegrationTest.shouldKStreamGlobalKTableJoin
jdk14 green

Thanks!


Feature/es 563 get range indices fix

Fixes an issue with getting ranges with start and/or end times falling between ChannelDataBlocks.  Also made getting an index for a time more reliable.

This needs unit tests of the range-getting functions before it can be approved. Not having them got us into this mess in the first place.


Check plugin_config exists

In a previous commit plugin_config was assigned directly, now it's updated - but fails if the key doesn't exist.
main plugin-config
main cli options --config https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/dev/services/odc-stats/mangroves/ga_ls_mangrove_cover_fyear_3.yaml --location s3://dea-public-data-dev/derivative/ga_ls_mangrove_cover_fyear_3/2-0-2 --plugin-config {mangroves_extent: /tmp/artifacts/maximum_extent_of_mangroves_Apr2019.shp}
main [2022-06-26 13:22:34,909] {_cli_run.py:139} INFO - Config overrides: {'filedb': '/tmp/artifacts/mangroves_fy.db', 'threads': 2, 'memory_limit': '8Gi', 'output_location': 's3://dea-public-data-dev/derivative/ga_ls_mangrove_cover_fyear_3/2-0-2', 'heartbeat_filepath': '/tmp/stats-heartbeat.txt'}
main Traceback (most recent call last):
main   File "/usr/local/bin/odc-stats", line 8, in <module>
main     sys.exit(main())
main   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in __call__
main     return self.main(*args, **kwargs)
main   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main
main     rv = self.invoke(ctx)
main   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke
main     return _process_result(sub_ctx.command.invoke(sub_ctx))
main   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke
main     return ctx.invoke(self.callback, **ctx.params)
main   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke
main     return __callback(*args, **kwargs)
main   File "/usr/local/lib/python3.8/dist-packages/odc/stats/_cli_run.py", line 143, in run
main     _cfg["plugin_config"].update(plugin_config)
main KeyError: 'plugin_config'
main Error: exit status 1

Sorry it’s my fault, shouldn’t assume there will be plugin config in yaml if there is plugin confit on command line.  Can we NOT generate any sample or product with the update yet?  So that we don’t bring the update of geomad into production.


Can we use a Regex to match several paths while declaring a route ?

Can we use a Regex to match several paths while declaring a route ?

Hi,
It would be nice to have more control over matched parameters as well, such as in Express.js:
https://expressjs.com/en/guide/routing.html#route-parameters
To have more control over the exact string that can be matched by a
route parameter, you can append a regular expression in parentheses (()):

Route path: /user/:userId(\d+)
Request URL: http://localhost:3000/user/42
req.params: {"userId": "42"}

It would reduce the need to do custom routing within components after testing parameters.

Was this ever done? I need this feature for my project

I'm very disappointed that there doesn't seem to be support for regex-based path matching, as the default React Router allows.  I may need to return to the standard React Router because of this.

I need this feature too

Honestly we shouldn't be using @reach/router anymore - tanstack router and react router v6 are far superior.


problem comes resolved

Challenge Selecting from many options with Switch Statements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
removed solution by mod

@wilfredinni, do not use the issue for show your solution code on the freecodecamp issue.
These GitHub Issues are for reporting bugs on the freeCodeCamp website only.
Happy coding.


Use App Service Push instead

What does this mean?

I tried looking for an "AppServicePush" command in config, but nothing.

App Service Push is a feature provided by Azure Portal, not by the package anymore.
This is what u are looking for: https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-xamarin-forms-get-started-push

When you say

The App Service Push configuration is a feature provided by Azure Portal, not by the package anymore.

Do you mean that physically the /push/installation endpoint is provided by something else?  Or just that the NotificationsExtensionConfigProvider.Initialize is executed somehow by updating the Azure portal?
I am just struggling to understand how the /push/installations endpoint works when you have update the Push section in the portal, but if you don't then this endpoint is not available...

The documentation: https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-dotnet-backend-how-to-use-server-sdk#create-app
Is outdated and is showing  that it requires AddPushNotifications but when you try it an obsolete message appears. Where is the correct document to understand push notifications configuration for back-end service

Have the same problem. Where is update documentation on this one? All i get in searches is obsolete documentation, making it really hard to implement properly ...

I was on 4.0.2 of Azure.Mobile sdk then recently migrated to 4.1.1.
On both I am facing the following issue

"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

can anyone confirm we're still using the same application URL format?
public static string ApplicationURL = @"https://xxxx.azurewebsites.net";

Guys, push notification is not provided by the nuget library anymore, it's obsolete. You can find some tutorials using app service but i don't recomend either.
My advice as a Microsoft cloud architect:
Don't use push from easy way (app service push) cause it's not fully customizable.
Use notifications hub in azure and create some copy-paste code from the old push library: https://github.com/Azure/azure-mobile-apps-net-server/tree/master/src/Microsoft.Azure.Mobile.Server.Notifications
You will be more successful doing this.
I have plans to create some kind of cloud library helpers with push too, but i have real life too.

@mahendranv, yes, still the same https://{myapp}.azurewebsites.net application URL, nothing changed to the URL.
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable" suggests it might be a temporary issue with the backend. Try restarting and redeploying your app. If the issue persists, please open a support ticket with Azure Support from Azure portal.

Thanks. Just wanted to confirm the endpoint is still the same. We've also tried to restart the app service and changing notification hub back and forth with no luck. Will report this to support team.


Error loading plugin 'fastlane-plugin-ftp'

My PluginFile :
Autogenerated by fastlane

Ensure this file is checked in to source control!
gem 'fastlane-plugin-teams_bot'
gem 'fastlane-plugin-firebase_app_distribution'
gem 'fastlane-plugin-ftp'
gem 'fastlane-plugin-gradle_properties'
gem 'fastlane-plugin-android_versioning'
When I run the 'fastlane action ftp' command in the terminal, I get the following error:
[15:56:50]: Error loading plugin 'fastlane-plugin-ftp': cannot load such file -- net/ftp
+-------------------------------------------+---------+------------------------------------------------------------------------+
|                                                         Used plugins                                                         |
+-------------------------------------------+---------+------------------------------------------------------------------------+
| Plugin                                    | Version | Action                                                                 |
+-------------------------------------------+---------+------------------------------------------------------------------------+
| fastlane-plugin-teams_bot                 | 1.0.0   | teams_bot                                                              |
| fastlane-plugin-firebase_app_distribution | 0.3.2   | firebase_app_distribution, firebase_app_distribution_add_testers,      |
|                                           |         | firebase_app_distribution_get_latest_release,                          |
|                                           |         | firebase_app_distribution_get_udids, firebase_app_distribution_login,  |
|                                           |         | firebase_app_distribution_remove_testers                               |
| fastlane-plugin-ftp                       | 0.1.5   | No actions found                                                       |
| fastlane-plugin-gradle_properties         | 0.1.0   | gradle_properties                                                      |
| fastlane-plugin-android_versioning        | 0.5.5   | get_value_from_build, get_version_code, get_version_name,              |
|                                           |         | increment_version_code, increment_version_name, set_value_in_build     |
+-------------------------------------------+---------+------------------------------------------------------------------------+
[!] No actions were found while loading one or more plugins
Please use bundle exec fastlane with plugins
More info - https://docs.fastlane.tools/plugins/using-plugins/#run-with-plugins
Loading documentation for ftp:
Couldn't find action for the given filter.

Any update on this? I am running into the same issue.

I had the very same issue, I assume the net/ftp import has been considered optional and removed from Ruby itself.
I found the optional library there https://github.com/ruby/net-ftp
I added it to the Gemfile, installed via bundle install.
The fastlane ftp plugin error seems to be gone.


Write a JavaScript program for linear search

Description
Write a JavaScript program for linear search
Linear search is a very simple search algorithm. In this type of search, a sequential search is made over all items one by one. Every item is checked and if a match is found then that particular item is returned, otherwise the search continues till the end of the data collection.
Input  : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Target : 5

Output : 4

How to contribute

Save the solution in LinearSearch.js file
Add LinearSearch.js file in dsa/linear-search folder

!assign


UpdatedTemplate

It seems the merge direction is wrong. Have you tried "sync fork"?

Apologies Shitong! Managed to sync the repo. Sorry for the inconvenience!
On Mon, Sep 30, 2024 at 1:16 PM Shitong Luo @.***>
wrote:

Closed #7
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7__;!!IBzWLUs!XWphMuwHqq0z2DaKdXizeaXhJdA4C7yxN6BaCDLCcOar7HhgodYYsW-vGTB3enqzxvO5ZLUSa_cOAKHc0E_nb11LS6c$
.
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*event-14459859623__;Iw!!IBzWLUs!XWphMuwHqq0z2DaKdXizeaXhJdA4C7yxN6BaCDLCcOar7HhgodYYsW-vGTB3enqzxvO5ZLUSa_cOAKHc0E_nKDtoaRg$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZL4HN3YGMLDMOVE3TLZZGBNTAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGQ2TSOBVHE3DEMY__;!!IBzWLUs!XWphMuwHqq0z2DaKdXizeaXhJdA4C7yxN6BaCDLCcOar7HhgodYYsW-vGTB3enqzxvO5ZLUSa_cOAKHc0E_niKiffj4$
.
You are receiving this because you authored the thread.Message ID:
@.***>

No worries! Thanks for using this template!!

Thanks for providing it, and also for being so responsive!
If I can give a humble piece of feedback, if the text could be aligned in
the "short_bio" portion of the webpage and also wrap around the picture,
that would enhance the readability of the bio, which would be a great
addition to the website (IMO).
Thank you for making your template public, kind sir!
Best,
George
On Mon, Sep 30, 2024 at 4:51 PM Shitong Luo @.***>
wrote:

No worries! Thanks for using this template!!
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384121862__;Iw!!IBzWLUs!VoSQgRpkn_KuGteTpHpgQk-q7NnRfxgs5wLtvBRgln4VaamV1uFnWxL1RHUMaY9PTMdABZGZo7bBxSwTGzfELK9I5F4$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZJPWLVNQH5DTVMK2Q3ZZG2UVAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGEZDCOBWGI__;!!IBzWLUs!VoSQgRpkn_KuGteTpHpgQk-q7NnRfxgs5wLtvBRgln4VaamV1uFnWxL1RHUMaY9PTMdABZGZo7bBxSwTGzfEPbPvBDE$
.
You are receiving this because you authored the thread.Message ID:
@.***>

Those screenshots looks aesthetically pleasing for both the wide and narrow
screen. I believe the only thing that could also help the reader would be
to have justified alignment in the text (so that margins are equal on the
left and right side).
Thanks again for your response and for your awesome template!
On Mon, Sep 30, 2024 at 5:17 PM Shitong Luo @.***>
wrote:

I agree!
It is a little bit tricky when the screen is not wide enough (e.g. on
smartphone), so I made the portrait floating on the right (texts wrap
around) when the screen is wide and otherwise it will be placed below.
What do you think about this solution?
Wide screen:
Screenshot.2024-09-30.at.5.13.50.PM.png (view on web)
https://urldefense.com/v3/__https://github.com/user-attachments/assets/183ed8bb-e3e0-4e13-9d40-a2b1695e77c5__;!!IBzWLUs!RruaLERGQbiZds6Pc00hb25N5_ALlUSSsF8hO2bkB9MoNrLxLEtWJOwLo_LC7Pi6wXvFlK892MALAL2SgpjOYDWVy2Y$
Narrow screen:
Screenshot.2024-09-30.at.5.13.56.PM.png (view on web)
https://urldefense.com/v3/__https://github.com/user-attachments/assets/b101f807-c2aa-4849-a569-160fa87a45a1__;!!IBzWLUs!RruaLERGQbiZds6Pc00hb25N5_ALlUSSsF8hO2bkB9MoNrLxLEtWJOwLo_LC7Pi6wXvFlK892MALAL2SgpjOfK_bn6U$
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384160693__;Iw!!IBzWLUs!RruaLERGQbiZds6Pc00hb25N5_ALlUSSsF8hO2bkB9MoNrLxLEtWJOwLo_LC7Pi6wXvFlK892MALAL2SgpjOzvxR_KI$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZMVKCBOX47DSS3KJF3ZZG5X3AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGE3DANRZGM__;!!IBzWLUs!RruaLERGQbiZds6Pc00hb25N5_ALlUSSsF8hO2bkB9MoNrLxLEtWJOwLo_LC7Pi6wXvFlK892MALAL2SgpjOkSmlAUk$
.
You are receiving this because you authored the thread.Message ID:
@.***>

True! I have added an option for justified text alignment.

All these updates have been pushed to the main branch!

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi Shitong,
Does your template currently offer options to add projects, similar to
Al-folio: https://alshedivat.github.io/al-folio/projects/.
Thanks,
George
On Mon, Sep 30, 2024 at 8:24 PM Georgios Mentzelopoulos <
@.***> wrote:

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$
.
You are receiving this because you authored the thread.Message ID:
@.***>

Probably not. But I think the Showcase functionality can meet this need —
you can make a page similar to Al-folio project page with it
On Wed, Oct 2, 2024 at 9:05 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Hi Shitong,
Does your template currently offer options to add projects, similar to
Al-folio: https://alshedivat.github.io/al-folio/projects/.
Thanks,
George
On Mon, Sep 30, 2024 at 8:24 PM Georgios Mentzelopoulos <
@.***> wrote:

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
<
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$>,

or unsubscribe
<
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390301423,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK2F7AGCQ4XESRZ63HXGUSTZZSJ43AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDCNBSGM
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

Thanks, I will give it a try. Would it be possible to have 2-3 showcase
pages associated with a profile? Also, thanks for the extremely prompt
response!
On Wed, Oct 2, 2024 at 9:14 PM Shitong Luo @.***> wrote:

Probably not. But I think the Showcase functionality can meet this need —
you can make a page similar to Al-folio project page with it
On Wed, Oct 2, 2024 at 9:05 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Hi Shitong,
Does your template currently offer options to add projects, similar to
Al-folio: https://alshedivat.github.io/al-folio/projects/.
Thanks,
George
On Mon, Sep 30, 2024 at 8:24 PM Georgios Mentzelopoulos <
@.***> wrote:

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
<

https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$>,

or unsubscribe
<

https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390301423>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AK2F7AGCQ4XESRZ63HXGUSTZZSJ43AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDCNBSGM>

.
You are receiving this because you modified the open/close state.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2390308516__;Iw!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZ3dNqEF4$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZLY6JDBFGHAADAODKLZZSK6VAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDQNJRGY__;!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZZ-3JbTE$
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yes it is possible. Just make copies of the showcase.html page, and add
different filtering conditions for each of them, that's all.
On Wed, Oct 2, 2024 at 9:40 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Thanks, I will give it a try. Would it be possible to have 2-3 showcase
pages associated with a profile? Also, thanks for the extremely prompt
response!
On Wed, Oct 2, 2024 at 9:14 PM Shitong Luo @.***> wrote:

Probably not. But I think the Showcase functionality can meet this need
—
you can make a page similar to Al-folio project page with it
On Wed, Oct 2, 2024 at 9:05 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Hi Shitong,
Does your template currently offer options to add projects, similar to
Al-folio: https://alshedivat.github.io/al-folio/projects/.
Thanks,
George
On Mon, Sep 30, 2024 at 8:24 PM Georgios Mentzelopoulos <
@.***> wrote:

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
<

https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$>,

or unsubscribe
<

https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<

https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390301423>,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AK2F7AGCQ4XESRZ63HXGUSTZZSJ43AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDCNBSGM>

.
You are receiving this because you modified the open/close
state.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
<
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2390308516__;Iw!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZ3dNqEF4$>,

or unsubscribe
<
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZLY6JDBFGHAADAODKLZZSK6VAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDQNJRGY__;!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZZ-3JbTE$>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390329500,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK2F7AGYMWRFEFYUFQQQ5WTZZSOA3AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMZDSNJQGA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

Awesome, thank you so much!
On Wed, Oct 2, 2024 at 9:42 PM Shitong Luo @.***> wrote:

Yes it is possible. Just make copies of the showcase.html page, and add
different filtering conditions for each of them, that's all.
On Wed, Oct 2, 2024 at 9:40 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Thanks, I will give it a try. Would it be possible to have 2-3 showcase
pages associated with a profile? Also, thanks for the extremely prompt
response!
On Wed, Oct 2, 2024 at 9:14 PM Shitong Luo @.***> wrote:

Probably not. But I think the Showcase functionality can meet this
need
—
you can make a page similar to Al-folio project page with it
On Wed, Oct 2, 2024 at 9:05 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Hi Shitong,
Does your template currently offer options to add projects, similar
to
Al-folio: https://alshedivat.github.io/al-folio/projects/.
Thanks,
George
On Mon, Sep 30, 2024 at 8:24 PM Georgios Mentzelopoulos <
@.***> wrote:

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
<

https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$>,

or unsubscribe
<

https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$>

.
You are receiving this because you authored the thread.Message
ID:
@.***>

—
Reply to this email directly, view it on GitHub
<

https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390301423>,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AK2F7AGCQ4XESRZ63HXGUSTZZSJ43AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDCNBSGM>

.
You are receiving this because you modified the open/close
state.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
<

https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2390308516__;Iw!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZ3dNqEF4$>,

or unsubscribe
<

https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZLY6JDBFGHAADAODKLZZSK6VAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDQNJRGY__;!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZZ-3JbTE$>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390329500>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AK2F7AGYMWRFEFYUFQQQ5WTZZSOA3AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMZDSNJQGA>

.
You are receiving this because you modified the open/close state.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2390331090__;Iw!!IBzWLUs!UOzvjv5OjYf9t8owvE0RA4_noFkQMU9KYUbbYLWgn9k8yDUbf_hgqgOJ3Az5MErj53fNrzXrcHSW1L4shzK66lASE8s$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZJPCNMOVZMVJA4IWZ3ZZSOIFAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMZTCMBZGA__;!!IBzWLUs!UOzvjv5OjYf9t8owvE0RA4_noFkQMU9KYUbbYLWgn9k8yDUbf_hgqgOJ3Az5MErj53fNrzXrcHSW1L4shzK6zSwbL-0$
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hey Shitong, I made an academic project page based on your template. Here
is an example: https://gmentz.github.io/seegnificant. I would be happy to
share the code for this for you to include in the academic homepage, if
you'd like.
On Wed, Oct 2, 2024 at 10:08 PM Georgios Mentzelopoulos <
@.***> wrote:

Awesome, thank you so much!
On Wed, Oct 2, 2024 at 9:42 PM Shitong Luo @.***>
wrote:

Yes it is possible. Just make copies of the showcase.html page, and add
different filtering conditions for each of them, that's all.
On Wed, Oct 2, 2024 at 9:40 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Thanks, I will give it a try. Would it be possible to have 2-3 showcase
pages associated with a profile? Also, thanks for the extremely prompt
response!
On Wed, Oct 2, 2024 at 9:14 PM Shitong Luo @.***> wrote:

Probably not. But I think the Showcase functionality can meet this
need
—
you can make a page similar to Al-folio project page with it
On Wed, Oct 2, 2024 at 9:05 PM Georgios (George) Mentzelopoulos <
@.***> wrote:

Hi Shitong,
Does your template currently offer options to add projects, similar
to
Al-folio: https://alshedivat.github.io/al-folio/projects/.
Thanks,
George
On Mon, Sep 30, 2024 at 8:24 PM Georgios Mentzelopoulos <
@.***> wrote:

Thank you sm!
On Mon, Sep 30, 2024 at 8:10 PM Shitong Luo @.***>
wrote:

All these updates have been pushed to the main branch!
—
Reply to this email directly, view it on GitHub
<

https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2384529904__;Iw!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVhhDyIiiI$>,

or unsubscribe
<

https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZKGFHWELW7O35AYT7DZZHR5XAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGUZDSOJQGQ__;!!IBzWLUs!WcChvqdfLbkr22xxSZdfQ7JugzbxTQmoCpc1R0eQP-Jt_DRGT4U95Z50TiJPopyPKL7KtRYgWjgUQyFpCDVh9eHxx_o$>

.
You are receiving this because you authored the thread.Message
ID:
@.***>

—
Reply to this email directly, view it on GitHub
<

https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390301423>,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AK2F7AGCQ4XESRZ63HXGUSTZZSJ43AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDCNBSGM>

.
You are receiving this because you modified the open/close
state.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
<

https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2390308516__;Iw!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZ3dNqEF4$>,

or unsubscribe
<

https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZLY6JDBFGHAADAODKLZZSK6VAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMYDQNJRGY__;!!IBzWLUs!ScKMIKE2-5KlxgO02ZDEFk3QQzi7xRBzEvmm7hKu1ES4vAIrnUG__O3NZN7kLxQ2vHwtxgtMxeX7DbWWFBEZZ-3JbTE$>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/luost26/academic-homepage/pull/7#issuecomment-2390329500>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AK2F7AGYMWRFEFYUFQQQ5WTZZSOA3AVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMZDSNJQGA>

.
You are receiving this because you modified the open/close
state.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/luost26/academic-homepage/pull/7*issuecomment-2390331090__;Iw!!IBzWLUs!UOzvjv5OjYf9t8owvE0RA4_noFkQMU9KYUbbYLWgn9k8yDUbf_hgqgOJ3Az5MErj53fNrzXrcHSW1L4shzK66lASE8s$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ATRUQZJPCNMOVZMVJA4IWZ3ZZSOIFAVCNFSM6AAAAABPDY2FFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGMZTCMBZGA__;!!IBzWLUs!UOzvjv5OjYf9t8owvE0RA4_noFkQMU9KYUbbYLWgn9k8yDUbf_hgqgOJ3Az5MErj53fNrzXrcHSW1L4shzK6zSwbL-0$
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yeah, that is great! Thanks
Actually I am considering implementing article pages, similar to al-folio's blogpost feature (https://alshedivat.github.io/al-folio/blog/2021/distill/). I think your implementation would be a great starting point!

Last time you asked about al-folio project page feature. I thought you were referring to their card-based display (https://alshedivat.github.io/al-folio/projects ). Sorry for the misunderstanding. Actually the Showcase function is meant to display cards rather than project details.
But yes, we definitely also need project page feature like https://alshedivat.github.io/al-folio/projects/1_project/ . To me, it is the same as blogpost feature. Your implementation looks great and I hope I can start working on it soon.


Running behind nginx - update subpath in the cross-references in the app?

How do I change the app's own references if it's running behind an nginx proxy?
For example, let's say my nginx.conf has the following route:
location /demoapp/ {
            proxy_pass http://<IP_ADDRESS>:8000/;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }

How would I change the Stipple configuration, so that all its cross-references honour the /demoapp/ subpath?
Eg, some of the assets like <link href="/stipple.jl/master/assets/css/stipplecore.css" rel="stylesheet"> would be linking to
<link href="/pricing/stipple.jl/master/assets/css/stipplecore.css" rel="stylesheet"> instead (and the routes would be updated as well)
I can see they are pushed from here
Which would mean that perhaps what I need to change is the AssetConfig?
(and overwrite the default)
I'm aware of the Genie.config parameter server_document_root, but that seems to be only for the Genie assets (and about the local storage).

Is it perhaps easier to explicitly define all the assets to be forwarded in nginx? (It wouldn't solve if you want to move between routes within your app)

I remember having used the parameter 'basepath' in the past.

That's right. Either set Genie.config.base_path or set a BASEPATH env variable (the env will overwrite the config if both are set).

It seems to be exactly what I need, but I'm struggling to have it reflected in the asset paths when testing it locally (eg, <link href="/stipple.jl/master/assets/css/stipplecore.css" rel="stylesheet">)
I'll test it on nginx tomorrow to see if it's any different.
Am I meant to do anything except for:
Genie.Configuration.config!(; app_env = "dev", base_path = "/pricing/")
Server.isrunning() || Server.up(8000)

?
I can see that it's properly reflected in config, but not anywhere else.

Nginx should not make a difference, it should be reflected here... What's the structure of the app? Can you show a tree of the files and folders? The environment and the configuration are loaded earlier in the starting cycle of the app so possibly they're already set. You can confirm that by passing the BASEPATH env to the julia/genie process (depending on how you load the app). If that works then it needs to be loaded earlier.

Great point! You were right.
My config! call was right after the @genietools, which was already too late because of this line
I can confirm the BASEPATH works well, producing asset links like: ""

My config! call was right after the @genietools, which was already too late because of this line.
Moreover, this line also means that config! cannot be used (is it a bug or by design? I'll open an issue to flag it)

Yes, it should be definitely reviewed.
The way I routinely use the two options (ENV and config!) are:

config! with dedicated per environment configuration files (in config/env/*.jl). These provide for one single place for storing configuration and they are loaded by Genie at the right time.
for Docker deployments using ENV

In your use case, you're setting a config and then starting the server. Which means that the server start part of the framework should actually recheck the configuration. We're already doing that for some configurations (port, host and ws_port) which can also be passed as arguments to Server.up. I think the easiest would be to also add similar support for base_path.


BRGB

Key
Value

ID
BRGB

Source
Vaaran Bhai Gurdas Ji

Page
37

Line
mnmuK AMnHy rwiq idhuM; suriq ivhUxy ckI Joˆdy [

Correction
idhuM ≠ idhuN

PROOF (EDITION)
Image:

@Harjot1Singh / @Sarabveer there should be a check for oˆ, they should be autoconverted to oN

This one should be oˆ not oN

The highlighted one should be uˆ as committed in fix-BRGB.
Please note the last word in our JSON file, it should not be oˆ. Pretty sure any scenario with oˆ should be oN for readability.

Yea, it should be uˆ for the highlighted one and oN for the last word. I looked at the wrong one.


Fix NaN% in quota list

Prevent dividing by 0 in quota list command
Fixes: COPS-6618

Diff looks messy but I only extracted a function to make testing easier and invert condition to reduce indent level.

yeah, if you diff without whitespace and move some lines, it's not that bad.


Setup TravisCI or some other CI service?

Hi,
I saw that this project doesn't currently have a CI service set up. Would you like to have one? I could whip together a PR for any CI service you'd like, so that we could get automated tests for every new Pull Request easily and to avoid regressions :smile:

Set up Travis CI


We need player write buf to cache packet bytes

TcpStream::write_all is quite slow, possibly due to syscall overhead. For better performance, we should implement a write buffer for caching and create a custom write interest registry to avoid the syscall overhead from mio registration.

Hey, I will definitely look into this. thanks

Hey @Bruce0203, Your right TcpStream::write_all is actually slow and we probably should use an write/flush method, But im unsure when we should flush, Im also unsure what do you mean with creating custom interest registry ?. Currently we creating a Readable and Writable interest registry when we get a new connection.

But we don't register interest every time we send a packet, we only registering it once a connection is accepted
https://github.com/Snowiiii/Pumpkin/blob/master/pumpkin/src/main.rs#L115

So i learned more about networking and now know what problem we have here. We could use io_uring to fix this issue the problem is that this is only a linux thing. As far as i understood kqueue is the equivalent for this on FreeBSD and macOS.
There is tokio-uring but it has its own runtime and we would to have to write an own wrapper around that to support other OS's
Here is what i also found:

monoio
compio Basically like monoio but with Windows support

Imho using uring would be kind of overkill (especially since its so difficult to implement), using something like a std::ioBufReader and std::io::BufWriter would be enough to give a dramatic speed up.
Note for implementation: remember to call BufWriter::flush on an interval, since otherwise the client is likely to be stuck in the handshake/config stage (since not many packets are sent at that time).


Can Chinese support be provided in the new version?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Sorry, no plans for localization at the moment.


docker compose run breaks the domain of 'app.project.orb.local'

Describe the bug
Sometimes ( not always, but it's easy to reproduce), after we manually call docker compose run to run a container, the exists service domain will be clear.
For example, we have a compose file like below:
name: demo
services:
  app:
    image: nginx:alpine

And we start the service by docker compose up -d, now we can visit the service by a link like http://app.demo.orb.local.
After that, if I run some command like docker compose run --rm app ls, the domain app.demo.orb.local record will be clear, both ping and curl will not affect.
To Reproduce
No response
Expected behavior
No response
Diagnostic report (required)
OrbStack info:
Version: 0.17.3
Commit: de7357ad84f24bcb339f374c06775d1cad14564e (v0.17.3)
System info:
macOS: 13.5.2 (22G91)
CPU: amd64, 4 cores
CPU model: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Model: iMac18,2
Memory: 16 GiB
Screenshots and additional context (optional)
No response

Maybe it's because of the container created by docker compose run and docker compose up shared almost all of com.docker.compose.* labels . But there is a label com.docker.compose.oneoff could be used to differentiate them.

Fixed for the next version.