Enumerable

In this PR, I:

Created a module MyEnumerable that implements the following methods with the same functionality as in the enumerable methods:

#all?
#any?
#filter

Each class and module has a separate .rb file.

Status: Invalid 🔴
Hi team @yin-ka, @DianaBeki 🙋♀,
While you made a great effort in this project, I can't review your code.
Invalid Code Review Request
You have submitted a project that has a README that is not professional. Here are key points to consider when documenting your README.

All main headers from the README template should be present. Kindly add the Future Features section and make sure to include 1-3 potential features to be added. ✔

Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers 🥂  and Happy coding!!! 👯
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me @KDlamini  in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

unless

Status: Invalid 🔴
Hi team @yin-ka, @DianaBeki 🙋♀,
While you made a great effort in this project, I can't review your code.
Invalid Code Review Request
You have submitted a project that has a README that is not professional. Here is a key point to consider when documenting your README.

All main headers from the README template should be present. Kindly add the Future Features section and make sure to include 1-3 potential features to be added.

Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers 🥂 and Happy coding!!! 👯 Feel free to leave any questions or comments in the PR thread if something is not 100% clear. Remember to tag me @KDlamini in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
Invalid Code Review Request does not count into the code reviews limit.

Thanks @KDlamini, I will make the necessary changes ASAP


Upgrade from 2.10.1 to 2.10.2 causes "Class constructor CoreMongooseArray cannot be invoked without 'new'"

Below is the stack trace. i can reproducably fix the problem if i downgrade to 2.10.1.  If I go to 2.10.2 or later, the below error happens.
I'm creating a mongoose object using memory cache.  Here is a code snippet
var myCache = cacheManager.caching({store: 'memory', max: _memoryMax, ttl: _memoryTTL});
var Domain = mongoose.model('Domain');

var d = await myCache.wrap('mykey', async function() {
   var ret = new Domain(pojo);
  return ret;
})

Stack trace
2020-02-05T17:59:39.834Z[32290] - debug: TypeError: Class constructor CoreMongooseArray cannot be invoked without 'new'
    at initCloneArray (/opt/app/node_modules/lodash.clonedeep/index.js:1235:22)
    at baseClone (/opt/app/node_modules/lodash.clonedeep/index.js:854:14)
    at /opt/app/node_modules/lodash.clonedeep/index.js:897:30
    at arrayEach (/opt/app/node_modules/lodash.clonedeep/index.js:140:9)
    at baseClone (/opt/app/node_modules/lodash.clonedeep/index.js:891:3)
    at /opt/app/node_modules/lodash.clonedeep/index.js:897:30
    at arrayEach (/opt/app/node_modules/lodash.clonedeep/index.js:140:9)
    at baseClone (/opt/app/node_modules/lodash.clonedeep/index.js:891:3)
    at /opt/app/node_modules/lodash.clonedeep/index.js:897:30
    at arrayEach (/opt/app/node_modules/lodash.clonedeep/index.js:140:9)
    at baseClone (/opt/app/node_modules/lodash.clonedeep/index.js:891:3)
    at cloneDeep (/opt/app/node_modules/lodash.clonedeep/index.js:1399:10)
    at Object.self.set (/opt/app/node_modules/cache-manager/lib/stores/memory.js:35:17)
    at /opt/app/node_modules/cache-manager/lib/multi_caching.js:258:29
    at /opt/app/node_modules/cache-manager/node_modules/async/lib/async.js:181:20
    at Object.async.forEachOf.async.eachOf (/opt/app/node_modules/cache-manager/node_modules/async/lib/async.js:233:13)
    at Object.async.forEach.async.each (/opt/app/node_modules/cache-manager/node_modules/async/lib/async.js:209:22)
    at setInMultipleCaches (/opt/app/node_modules/cache-manager/lib/multi_caching.js:220:15)
    at /opt/app/node_modules/cache-manager/lib/multi_caching.js:396:41
    at /opt/app/node_modules/cache-manager/lib/multi_caching.js:314:21
    at processTicksAndRejections (internal/process/task_queues.js:93:5) - {}

OK, looks like we need to add an option to the memory store config.  However, I do believe that it's not the right use of a cache to be caching anything other than plain objects (basically anything that can be serialized as JSON or similar).
For now, please just use version 2.10.1.  I'll get this fixed as soon as I can, hopefully in the next couple of days.

Thanks Bryan!  You are probably right about not caching anything other than plain objects, but we are getting a tremendous boost here because constructing a mongoose object on every request to our web server causes a huge load.  Caching the constructed mongoose object was our knee-jerk fix a while ago, and we've kept it since it works pretty well.
I will ping to 2.10.1 for now.

Yeah, that makes sense.  The memory store has that interesting ability to cache any javascript object.

Hi !
I've the same error. Downgrade from 2.11.1 to 2.10.1 fix the problem
Thank you

This is fixed in #135 (version 3.0.0) by allowing you to pass in shouldCloneBeforeSet in the caching options.  E.g.,
const cache = caching({store: 'memory', shouldCloneBeforeSet: false});

Wow, sorry for the very late reply. I will upgrade and try this out! Thanks!


Configure Jenkins to Push Artifacts to S3

Issue Description
CeranaOS builds are done in a docker container on dev-2. The artifacts need to be made available to others. This is to implement a scheme similar to what was done for Mistify to push the artifacts to known locations on Amazon S3.
Steps to Reproduce (if applicable):
Acceptance Criteria (how do we know when this is done?)
Related Tickets
Additional Info
Output of uname -a:
Environment (physical, VM, cloud provider, etc.):
Other Relevant Info:

Created a new bucket on S3 and setup Jenkins running on dev-2 to push to the bucket. To download the URL is:
http://omniti-cerana-artifacts.s3.amazonaws.com/CeranaOS/build-cerana/<build>/artifacts/bzImage
and
http://omniti-cerana-artifacts.s3.amazonaws.com/CeranaOS/build-cerana/<build>/artifacts/initrd


Changed the comment to the corresponding default.

Changed the comment to the corresponding property value.

@user1336,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

thanks!


Heap overflow on incorrect syntax "%w("

The following breaks the compiler:
$ crystal eval "%w("
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS

The same happens with %i(.
Looks like a heap overflow related problem.
Reproducible with Crystal 0.23.1 and master 3c7ed6535

Cool! That just killed an open Sublime Text editor I had 😆

It's a jinxed bug! Beware of disappearing cats next!


How to get the IMEI?

why was this closed without an anwser?

@L3V147H4N Because I found iOS 7+ refuse to let devlopor get the IMEI

Ok! Thx for replying.

plz help me
how to get imei?

@sam9010

do not post on old issues
please query stackoverflow: https://stackoverflow.com/questions/55173823/i-am-getting-imei-null-in-android-q

It is not possible


Workaround cargo fingerprinting mtime

Every time cache gets downloaded/copied/unzipped it receives a newer mtime than your git diff will ever be. It's not the case for the local caching obviously. This is majorly the case for all the CI use-cases both for sccache and cachepot, and for a long time. Moreover, both are showing the cache hits, but afterwards, all the cache is being invalidated.
The workaround we could come up with, would be to update mtime of the modified files so they are newer than the cache artifacts:

git-restore-mtime
find out the git diff
touch the files were changed

Showcased in comparison with rusty-cachier in https://github.com/paritytech/cargo-contract/pull/635.
cc @gilescope @rcny  https://github.com/rust-lang/cargo/pull/8623 https://github.com/awslabs/smithy-rs/pull/1422

To fix things properly on cargo / rustc my PRs would have to be broken down
and landed in a series of bite sized increments. Doing it all as one big
change was just too much. I have to say the build.rs shenanigans is a tad
tricky and I don't think that's quite nailed yet in the cargo PR. The rustc
changes were fine though and they could all be landed independently. The
cool thing with the PR though is that almost all the required hashes are
already available but just not made use of.
On Thu, 21 Jul 2022 at 17:13, Denis Pisarev @.***>
wrote:

Every time cache gets downloaded/copied/unzipped it receives a newer mtime
than your git diff will ever be. It's not the case for the local caching
obviously. This is majorly the case for all the CI use-cases both for
sccache and cachepot, and for a long time. Moreover, both are showing the
cache hits, but afterwards, all the cache is being invalidated.
The workaround we could come up with, would be to update mtime of the
modified files so they are newer than the cache artifacts:

git-restore-mtime
https://github.com/MestreLion/git-tools/blob/main/git-restore-mtime
find out the git diff
touch the files were changed

Showcased in comparison with rusty-cachier in
paritytech/cargo-contract#635
https://github.com/paritytech/cargo-contract/pull/635.
cc @gilescope https://github.com/gilescope @rcny
https://github.com/rcny rust-lang/cargo#8623
https://github.com/rust-lang/cargo/pull/8623 awslabs/smithy-rs#1422
https://github.com/awslabs/smithy-rs/pull/1422
—
Reply to this email directly, view it on GitHub
https://github.com/paritytech/cachepot/issues/165, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGEJCAUP6PFHSIRPCKS3ILVVFZIZANCNFSM54IGYNCQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Create bluecoatstudent.txt

I was told to add this by the JetBrains website as my school wasn't listed.

Website: https://www.bluecoatschoolliverpool.org.uk/

@almostindented Pull request merged. Thank you!


Python updates

While going though the tutorials I noticed that some Python files needed to be updated.

@caguero Thanks! I think this partially addresses issue #261. I will review it now.
FYI, @crvogt this is pretty minor but might affect changes you are making.


Add @std/esm ESM module cache

Reasons for making this change:
@std/esm is starting to be widely adopted to support ESM Modules, it creates a .esm-cache folder with the compiled Javscript files.
Links to documentation supporting these rule changes:
https://github.com/standard-things/esm
CC: @jdalton Author of @std/esm

Hi @DenisCarriere!
Thanks for the ping! The @std/esm loader has changed to using the same cache location has @babel/register, nyc, and friends *(the node_modules/.cache` folder) so no longer needs its own ignore entry.

@jdalton Even better! 👍


Final assignment: knitting

Hi :)
When I try to knit the document I get this error message.
processing file: Final-assignment-korrigiert.Rmd
Fehler in parse_block(g[-1], g[1], params.src, markdown_mode) :
Duplicate chunk label 'setup', which has been used for the chunk:
knitr::opts_chunk$set(echo = TRUE)
Ruft auf:  ... process_file -> split_file -> lapply -> FUN -> parse_block
Ausführung angehalten
I included the following things but it still doesn't work.
title: "Final assignment"
author: "Laura Grawehr"
date: "29 11 2021"
output:
html_document:
toc: true
toc_float: true
theme: united
Can anyone help me?

solved :)


Wrong hyperlink

File: ee/end-to-end-install.md
The hyperlink "Docker Enterprise Edition" on the first bullet point redirects to Docker Community Edition instead of Docker Enterprise

This issue is resolved. If the problem persists, please open a new issue. Thank you.


fix(useGridLayout): handle column.width & hidden columns

Steps to reproduce the bug:

Create a table with useGridLayout & add width attribute to at least one of the columns
=> width attribute is not respected
Hide a column => The table is all messed up because it is still rendered with the default number of columns

CSS grids provide awesome ways of managing widths, being able to use that with react-table would be awesome.

this fix is just what i need 😄 @tannerlinsley are there any plans on merging & releasing this?

@tannerlinsley ping


Renaming/Deleting function.json does not stop timer trigger

I just tested with timer trigger (not sure if apply to others).   If I changed the content of function.json (say change scheduler and set disabled to true), the change took effect automatically.   However, if I renamed or deleted the function.json, the timer continue to run.   My apology if already duplicated issue somewhere.

I just tried this in prod and I can't repro it. I also tried locally as well - when a function.json file is deleted, we correctly restart the host, removing the timer function.
Can you provide a repro for this?

No repro. If you keep seeing this and have a repro, please reopen :)


Still upload data when I turn on offline mode[Q]

This is my code, I don't know why my log will still upload, although I have turn  on 'offline' mode? (wandb version==0.13.4)
import wandb
import os
import signal
import argparse
import wandb
import time
os.environ["WANDB_MODE"] = "offline"

sweep_configuration = {
    "project": 'hello1',
    "name": "my-awesome-sweep",
    'metric': {
        'goal': 'minimize',
        'name': 'accuracy'
	},
    "method": "grid",
    "parameters": {
        "a": {
            "values": [1, 2, 3, 4]
        }
    }
}

def my_train_func():
    # read the current value of parameter "a" from wandb.config
    wandb.init(mode='offline', force='False')
    a = wandb.config.a

    wandb.log({"a": a, "accuracy": a + 1})

sweep_id = wandb.sweep(sweep_configuration)

# run the sweep
wandb.agent(sweep_id, function=my_train_func, count=2)

Hi @ShaohanTian thank you for your question! The offline mode refers to the wandb.run instances, where all data will be stored locally (and can be synced later on to the W&B server).
For the sweeps though, there is no offline method, as the SDK/CLI needs to communicate with the Sweeps server to generate a sweep id for the parsed config dictionary, so that the agents will know which hyperparameters to use. Please find a high-level overview of the sweep process in the attached screenshot, I hope this helps.

May I please ask what's the use case here, and if you wanted to have everything offline? In that case, you might want to use a self-hosted W&B instance.

I see, thank you

Hi @ShaohanTian you're welcome, glad this answers your question. Just to clarify here that initializing standalone runs (which are not part of sweep) that shouldn't upload anything unless syncing them to the server. I am closing this ticket for now, but please feel free to re-open it if you have further questions about this.


Edits to an article's Category list show up as revisions but edits are not displayed

Revisions that include changes to an article's Categories list (appears at very bottom of Wikipedia article, underneath Navigation Template) are returned in the Edits list as revisions, but these changes are not visible on WikiWash. Additionally, if the revision is made up solely of Category changes, then no diff stats are displayed on the revision cell in the Edits list.
Example: https://en.wikipedia.org/w/index.php?title=Spider-Man&diff=prev&oldid=684899503
The above revision only adds a Category to the Category list, however when that revision is loaded in WikiWash, nothing is displayed:

/cc @irfanpirbhai


Need proper formtting for the bullet point

For section "How the state property accessor methods work", proper bullet is missing for following
" -The accessor's set method:"

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

ID: a1795c22-9e0f-8a69-a517-ffbe38a2cd30
Version Independent ID: 9d2c1569-6d6f-97fa-881d-b4a0f61623a2
Content: Managing State - Bot Service
Content Source: articles/v4sdk/bot-builder-concept-state.md
Service: bot-service
Product: bot-framework
GitHub Login: @ivorb
Microsoft Alias: v-ivorb

Fix added to bot-docs-pr PR 1323. Should go live next week.


Make Committee Size consistent with "credits"

Resolves #1520

Codecov Report
Patch coverage: 27.54% and project coverage change: -0.26 :warning:

Comparison is base (57c6bbd) 40.18% compared to head (02868cf) 39.92%.

:exclamation: Current head 02868cf differs from pull request most recent head a49e9a9. Consider uploading reports for the commit a49e9a9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1527      +/-   ##
==========================================
- Coverage   40.18%   39.92%   -0.26%
==========================================
  Files         147      147
  Lines        9651     9773     +122
==========================================
+ Hits         3878     3902      +24
- Misses       5144     5239      +95
- Partials      629      632       +3

Impacted Files
Coverage Δ

pkg/config/genesis/config.go
0.00% <ø> (ø)

pkg/core/consensus/agreement/checkcert.go
7.69% <0.00%> (+0.71%)
:arrow_up:

...nsensus/blockgenerator/candidate/blockgenerator.go
0.00% <0.00%> (ø)

...core/consensus/blockgenerator/candidate/genesis.go
0.00% <0.00%> (ø)

...kg/core/consensus/blockgenerator/candidate/mock.go
0.00% <0.00%> (ø)

pkg/core/consensus/fixtures.go
0.00% <0.00%> (ø)

pkg/core/data/block/block.go
8.97% <0.00%> (-1.48%)
:arrow_down:

pkg/core/data/block/certificate.go
0.00% <ø> (ø)

pkg/core/data/block/header.go
0.00% <0.00%> (ø)

pkg/core/data/ipc/transactions/fixtures.go
13.76% <0.00%> (-0.21%)
:arrow_down:

... and 21 more

... and 2 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


'tensorflow.contrib.learn' has no attribute 'infer_real_valued_columns_from_input'

Environment info:
Operating System:
Ubuntu 16.04 , Python3.5.2, tensorflow version '0.9.0'
I try to run boston_house_prices data but it failed with no attribute 'infer_real_valued_columns_from_input' in tensorflow.contrib.learn. I wrote this script according to https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/skflow/boston.py
import pandas as pd
import numpy as np
import random
from sklearn import cross_validation, metrics, preprocessing
import tensorflow as tf
from tensorflow.contrib import learn
df = pd.read_csv('boston_house_prices.csv')
df.fillna(-99999, inplace = True)
X = np.array(df.drop(['MEDV'], 1))
X = preprocessing.StandardScaler().fit_transform(X)
y = np.array(df['MEDV'], dtype = int)
X_train, X_test, y_train, y_test = cross_validation.train_test_split(X, y, test_size = 0.2, random_state = 42)
random.seed(42)
feature_columns = learn.infer_real_valued_columns_from_input(X_train)
regressor = learn.DNNRegressor(feature_columns=feature_columns, hidden_units = [10, 10])
regressor.fit(X_train, y_train, steps = 5000, batch_size =1)
score = metrics.mean_squared_error(regressor.predict(X_test), y_test)
print("Accuracy %f" % score)
Logs or other output that would be helpful:
Traceback (most recent call last):
File "2DNN.py", line 26, in
feature_columns = learn.infer_real_valued_columns_from_input(X_train)
AttributeError: module 'tensorflow.contrib.learn' has no attribute 'infer_real_valued_columns_from_input'

It looks as if you are using the example script from HEAD but the r0.9 version of tensorflow.contrib.learn. Would you try again with matching versions and see if that works?
(In general stack overflow is a better venue for this kind of question.)

Thanks.  michaelisard. I will try stack overflow.


proposal: Go 2: use check error without handle

Hi,
Do you plan to support check without handle error? I propose is add autogenerated handler if there is none (only if the check is used inside func/method). I can imagine many functions that will be handling error just by returning them. In that case, go may avoid writing unnecessary tons of such statements.
handle err {
  return ..., err
}

This will be only used in special condition:

there is no handle inside function
a function use check at least once
error is returned from function as last parameter

Below listed some examples
function f1() error {
  // no handle - ok - autogenerate one
  check a()
  check b()
  return c()
}

function f1() (int, interface{}, error) {
  // no handle - ok - autogenerate one
  check a()
  check b()
  return c()
}

function g1() { // no return
  // no handle - error check without handle
  check a()
  check b()
  c()
}

function g1() (int, interface{}) { // no error return
  // no handle - error check without handle
  check a()
  check b()
  c()
}

function g1() (error, int) { // return error as first argument
  // no handle - error check without handle
  check a()
  check b()
  c()
}

This seems to be exactly what the design draft at https://go.googlesource.com/proposal/+/master/design/go2draft-error-handling.md says in the "Default handler" section.  What is the difference between what you are proposing here and the design draft?

I miss that section, sorry!
close #30680


Fix: write_output_file_parallel writes now to the file in parallel

This integrates a lambda which allows to report the result immediately.
This makes the query_result struct obsolete.
Open: How do I have to change the unit test?

Codecov Report
Base: 90.90% // Head: 88.88% // Decreases project coverage by -2.02% :warning:

Coverage data is based on head (0b690cf) compared to base (569ec1f).
Patch has no changes to coverable lines.

:exclamation: Current head 0b690cf differs from pull request most recent head 3977bb7. Consider uploading reports for the commit 3977bb7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #63      +/-   ##
==========================================
- Coverage   90.90%   88.88%   -2.03%
==========================================
  Files          24        1      -23
  Lines         638       27     -611
==========================================
- Hits          580       24     -556
+ Misses         58        3      -55

Impacted Files
Coverage Δ

include/valik/search/local_prefilter.hpp

...nclude/valik/search/write_output_file_parallel.hpp

src/valik_search.cpp

include/valik/search/load_index.hpp

include/valik/argument_parsing/validators.hpp

src/argument_parsing/split.cpp

include/valik/build/index_factory.hpp

src/argument_parsing/top_level.cpp

include/valik/split/reference_segments.hpp

include/valik/search/search_time_statistics.hpp

... and 13 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


ecct-633-accept-lawful-purpose-stmt

Added section for the "Accept Lawful Purpose Statement" to the JSON and DAO models so that this data can be handled by the API.  Tested AC as OK using Postman in the CHS Dev Env.  The existing JUnit tests all pass OK.

AC changed.


AGP update gradle update jdk 11 targetSdk 31

https://stackoverflow.com/questions/67599438/gradle-7-and-jitpack-io-runs-into-error-during-publish
같은 이슈 발견


Stop hard-coding protobuf enums in speech Encoding

See #3288
/cc @pbogle

Really we should make this change everywhere that we surface a GAPIC enum.

Can you help me understand why we don't simply expose the underlying GAPIC enum??
(If the challenge is to come up with the equivalent string representation for error messages, there are definitely ways to do that programatically.)

@pbogle Looking at the class there is absolutely no reason.

We now expose the GAPIC enum. Problem solved. :tada:


Call of a suspended Kotlin function

Since courutines are supported in common code (#3) i was wondering if it is now possible to call a suspended function from lua?
I tryed to implement:
object : VarArgFunctionSuspend(){
    override suspend fun invokeSuspend(args: Varargs): Varargs {
        delay(1000)
    }
}

and added it as a module like in MathLib but i am unable to call/resume it
I also tryed to wrap the function in a LuaThread but it also do not work.
@soywiz Do you have an ide how an externeal suspended kotlin function can be called?

@JochenGuckSnk Can you give mode code about your issue? (like the Lua script)
Please find below what I tried to match your issue:
math["delay"] = object : OneArgFunctionSuspend() {
            override suspend fun callSuspend(arg: LuaValue): LuaValue {
                delay(arg.tolong())
                return NONE
            }

        }

the Lua script:
c = coroutine.create(function()
    debug("a") -- special function from my engine to print a value in the console
    math.delay(1000)
    debug("b")
end)

coroutine.resume(c)

the  a will be printed. b will be printed later.
ie: from my point of view, it's working as expected.

Hi @dwursteisen,
thank you for taking a look at this.
Yes u are right i also got this Case to work.
Can u please try if this code is also working?
local function call()
  c = coroutine.create(function()
      debug("a") -- special function from my engine to print a value in the console
      math.delay(1000)
      debug("b")
      return "Hallo World"
  end)
  sucess, result = coroutine.resume(c)
  if success then
      return result
  else
      return error(result)
  end
end

call()

Because for me it is failing if i move the code into a function.

@JochenGuckSnk there is a typo on success here: sucess, result = coroutine.resume(c)
Using this code (the same but without the typo):
local function call()
    c = coroutine.create(function()
        debug("a") -- special function from my engine to print a value in the console
        math.delay(1000)
        debug("b")
        return "Hallo World"
    end)
    success, result = coroutine.resume(c)
    if success then
        return result
    else
        return error(result)
    end
end

debug(call())

I got this output:
🐞 -> a
🐞 -> b
🐞 -> Hallo World

Please note that I tested that using luak on a JVM
I just tried the same code with the JS version of luak, I got an exception: https://minigdx.github.io/tiny/sandbox.html?game=bG9jYWwgZnVuY3Rpb24gY2FsbCgpCiAgICBjID0gY29yb3V0aW5lLmNyZWF0ZShmdW5jdGlvbigpCiAgICAgICAgZGVidWcoImEiKSAtLSBzcGVjaWFsIGZ1bmN0aW9uIGZyb20gbXkgZW5naW5lIHRvIHByaW50IGEgdmFsdWUgaW4gdGhlIGNvbnNvbGUKICAgICAgICBtYXRoLmRlbGF5KDEwMDApCiAgICAgICAgZGVidWcoImIiKQogICAgICAgIHJldHVybiAiSGFsbG8gV29ybGQiCiAgICBlbmQpCiAgICBzdWNjZXNzLCByZXN1bHQgPSBjb3JvdXRpbmUucmVzdW1lKGMpCiAgICBpZiBzdWNjZXNzIHRoZW4KICAgICAgICByZXR1cm4gcmVzdWx0CiAgICBlbHNlCiAgICAgICAgcmV0dXJuIGVycm9yKHJlc3VsdCkKICAgIGVuZAplbmQKCmRlYnVnKGNhbGwoKSkK

@dwursteisen i created a pull request (#11) with the intended behavior in WrappedSuspendedFunctionsTest which are all not working.
I created a Lib builder which can be used to create new lua libraries. Ultimatly this builder should support to build libraries from suspended functions to.
To test every thing i ported the math lib to us the nuw builder.


Get a list of ACPs and ACPRules

Is your feature request related to a problem? Please describe.
No, the feature just appears to be missing.
Describe the solution you'd like
I would like to get a list of ACPs and further be able to get a list of ACP Rules for a specified ACP.
Describe alternatives you've considered
Using an external API script to do the requests I have mentioned.
Additional context
None.

from fmcapi.fmc import FMC
from fmcapi.api_objects.policy_services.accesspolicies import AccessPolicies
from fmcapi.api_objects.policy_services.accessrules import AccessRules

common.setup()
fmc = common.conf.fmc[1]

with FMC(
    host="hostname",
    username="username",
    password="password",
    autodeploy=False,
    limit=1000,
) as fmc_session:

    # Get all ACPs
    acp = AccessPolicies(fmc=fmc_session)
    print(acp.get())

    # Get all rules for an ACP
    rules = AccessRules(fmc=fmc_session, acp_name="my-policy-name")
    print(rules.get())

Thank you! That worked nicely.
I took far longer than I wanted to figure out some of the possible options so I could get a decent printout that I could use to start and feel like I have this working. Here is the example I have to share so others can use it to quickly see it work for themselves too.
There are still other fields I don't care about this would cover about 90% of the typical firewall ACP uses.
def proto_name_by_num(proto_num):
  for name,num in vars(socket).items():
    if name.startswith("IPPROTO") and proto_num == num:
      return name[8:]
  return proto_num

with FMC(
  host=host,
  username=username,
  password=password,
  autodeploy=autodeploy,
  limit=1000) as fmc_session:

    def checkKey(dic, key):
      if "type" in dic:
        if dic["type"] == "AccessPolicy":
          if key in dic:
              print("ACP %s: %s" % (key, dic[key]))
        elif dic["type"] == "AccessRule":
          if key in dic:
            if key == "name":
              if "section" in dic["metadata"]:
                print("  Section: %s" % (dic["metadata"]["section"]))
              if "category" in dic["metadata"]:
                print("  Category: %s" % (dic["metadata"]["category"]))
              print("  Rule(%d) %s: %s" % (dic["metadata"]["ruleIndex"], key, dic[key]))
            elif key == "metadata":
              print("    %s: %s" % (dic["metadata"]["category"]))
            elif key in ("sourceNetworks", "destinationNetworks", "sourceZones", "destinationZones", "sourcePorts", "destinationPorts"):
              my_list = []
              if "literals" in dic[key]:
                for listele in dic[key]["literals"]:
                  if "PortLiteral" == listele["type"]:
                    protoport = proto_name_by_num(int(listele["protocol"])) + "/" + listele["port"]
                    my_list.append(protoport)
                  elif "ICMPv4PortLiteral" == listele["type"]:
                    protoICMP = proto_name_by_num(int(listele["protocol"])) + "/" + listele["icmpType"]
                    my_list.append(protoICMP)
                  elif listele["type"] in ("Host", "Network"):
                    my_list.append(listele["value"])
                  else:
                    print("##ERROR: %s: %s" % (key, listele))
              else:
                for listele in dic[key]["objects"]:
                  my_list.append(listele["name"])
              print("    %s: %s" % (key, my_list))
            elif key == "ipsPolicy":
              print("    %s: %s Type: %s Mode: %s" % (key, dic[key]["name"], dic[key]["type"], dic[key]["inspectionMode"]))
            elif key == "filePolicy":
              print("    %s: %s" % (key, dic[key]["name"]))
            elif key == "variableSet":
              print("    %s: %s" % (key, dic[key]["name"]))
            else:
              print("    %s: %s" % (key, dic[key]))
      else:
        print("  %s: %s" % (key, 'NA'))

    # Get all ACPs
    acpobj = AccessPolicies(fmc=fmc_session)
    acps = acpobj.get()
    for acp in acps['items']:
      checkKey(acp, 'name')

      # Get all rules for an ACP
      ruleobj = AccessRules(fmc=fmc_session, acp_name=acp["name"])
      rules = ruleobj.get()
      for rule in rules['items']:
        checkKey(rule, 'name')
        checkKey(rule, 'enabled')
        checkKey(rule, 'action')
        checkKey(rule, 'sourceZones')
        checkKey(rule, 'sourceNetworks')
        checkKey(rule, 'destinationNetworks')
        checkKey(rule, 'sourcePorts')
        checkKey(rule, 'destinationPorts')
        checkKey(rule, 'ipsPolicy')
        checkKey(rule, 'filePolicy')
        checkKey(rule, 'logBegin')
        checkKey(rule, 'logEnd')
        checkKey(rule, 'logFiles')
        checkKey(rule, 'enableSyslog')
        checkKey(rule, 'sendEventsToFMC')
        checkKey(rule, 'variableSet')

Alternatively, just use the class to parse it for you:
    rules = AccessRules(fmc=fmc_session, acp_name="my-policy-name")
    for rule in rules.get()['items']:
        parsed_rule = AccessRules(fmc=fmc_session)
        parsed_rule.parse_kwargs(**rule)
        print(f'Attributes for rule: {parsed_rule.name}')
        for attr in AccessRules.VALID_JSON_DATA:
            print(f"\t{attr}: {getattr(parsed_rule, attr, 'No setting')}")


Exploring the idea: statsd integration drain.

Since all these logging statements are placed all over the code already (at least that's the idea), someone might want to log some logging statements as events for statsd. Might be useful, especially for libraries
There could be a drain, that would allow to do so: user would pick the logging events that it's interested with, and possibly even use use the values associated with them.
Some thinking:

what's the best way to reliably pick a logging statement

what if code changes and so do logging statements

would logging statements be consider an API that must not be broken?

maybe some special logging statements could have "hooks/tags" that would be like a pluggable A PI

"target" that is not used current could be used for that purpose?

would have to add it to all macros (not a big deal, info!(tag: ...) would be backward compatibile)

how to match logging statements in a performant way

reuse the "hook/tag" idea?

what about the logging level; some logging levels are not even compiled in...

"hook" events would have to be at least info?

@56quarters @tshlabs ; Hi, sorry for bothering you out of the blue, but since I've seen you're working on cadence, I wonder if you have any opinions about it: do you think logging statements could be practically a source for stats metrics? Would it make sense?
Eg. in the code:
info!(req.log, "req_finished": "request finished", "time" => req.start - req.end);

and then, there'd be a drain in the app itself with something like:
.on_event("req_finished", |statsd, event| {
               statsd.time("server.request_time", event.value_u64("time"));
               statsd.incr("server.requests");
           })

I myself find this idea quite interesting, not particularly with statsd but with other endpoints as well.

@dpc Sorry for my lack of response, I just saw this. Offhand this seems like a really neat idea! I'll have to spend a little time thinking about it, but you seem to have enumerated most of the open questions.
Some prior art that I'm aware of that uses logging hooks to emit metrics to statsd is the Gunicorn server in Python. I'm not super familiar with how they implemented this (plus, it's an application not a general purpose library) but it may be of some use: https://github.com/benoitc/gunicorn/blob/4a04195975563d2f4ec28ffaa70d138beda76da4/gunicorn/instrument/statsd.py

Looking at the design of Slog a bit (very cool lib, BTW), it seems like writing metrics based on logging statements would be pretty unobtrusive. The only part of the application that would even have to be concerned with Statsd or metrics would be wherever the metrics Drain gets configured. This seems like it would make it easy to use a variety of metrics clients or completely different backends.
I'm :+1:

Let's keep it open. I (or someone) can start prototyping on that at some point.

Hey @dpc,
I'm thinking about attempting to create a Drain implementation for Cadence in the next few weeks. Do you think this should be a crate that lives along side Cadence or do you imagine it as a repo living under the slog-rs organization? Thanks!

Awesome.
If you're the author, you're free to decide about all these things. :)
Having said that it seems to me that since it's a Drain for slog that provides integration with Cadence, it is more of a slog part. Similarly the Drain that logs to journald is slog-journal. So slog-cadene seems to be natural candidate.
I'd be happy to create a repo for you under https://github.com/slog-rs/cadence and  make you the owner of it it.

The separate repo sounds great, thanks.

slogv2 added notion of tags. One of the use cases I had in mind was this.

Thought about design a bit; might or might not play with an implementation some time down the road. (Feel free to ninja me, anyone!)
Sketch:
crate slog-metrics, provides two new macros for logging of metrics: slog_metric_start! and slog_metric_stop!. Uses chrono for tracking time.
macro_rules slog_metric_start {
    ($log:expr, $task:expr) => (slog_metric_start!($log, $task;));
    ($log:expr, $task:expr; $($kvs:tt)*) => {
        info!($log, #"slog-metric-start", "Starting task {task}", "task"=$task; "time" => %$crate::chrono::Local::now(), $($kvs)*);
    }
}
macro_rules slog_metric_stop {
    ($log:expr, $task:expr) => (slog_metric_stop!($log, $task;));
    ($log:expr, $task:expr; $($kvs:tt)*) => {
        info!($log, #"slog-metric-stop", "Finished task {task}", "task"=$task; "time" => %$crate::chrono::Local::now(), $($kvs)*);
    }
}

The info! logging statements above were chosen subjectively to present a decent log to other drain implementations. The info! level was chosen as the best fit, but it might mean losing metrics in release builds
Provides a pass-through drain wrapper that listens for the tags #"slog-metric-start" and #"slog-metric-stop". Maintains an atomic mapping from running task names to the instant that they started. When seeing a task start, clones the time it started and records it in the backing map. When seeing a task stop, removes the start time, calculates the duration elapsed, and gives that duration along with the task name to a callback. If no start was provided, logs an error!. Provides an option on creation to filter out the tagged records.

(Sorry for stream-of-consciousness explanation but wanted to share it before going to sleep)


Update CONTRIBUTING_it.md

@Anyma6, on this subject, I would like to set up a validation pipeline to check whether the 'globals.ini' file is in UTF-8 BOM encoding. Do you know of any other issues that could potentially lead to a game crash?

Not at the moment, as soon as our first translations arrive I will be able to tell you. Our initial one crashed suspiciously precisely because of the coding


Clarify how to import JavaScript

The documentation as it stands is not clear enough for a complete novice.
I am not quite a complete novice so I decoded it.  But 12 weeks ago it would have stumped me
My style will not be right, I have not learnt well enough the documentation style, but I think I have made my point
Thanks for contributing, you're awesome! :star:
Please describe expected and observed behaviour, and what you're fixing.
For visual fixes, please include tested browsers and screenshots.
Search for related existing issues and link to them if possible.
Please read https://docs.silverstripe.org/en/contributing/code/

Added in https://github.com/silverstripe/silverstripe-framework/commit/554c34eff73c48edab7961f24ae21887613f2b3a. Kept it simple, as this “how to” is an example with a specific file name


iOS 17.2.1, HINT control 1.10.1 - can't get past login screen

on first setup - can't get past the login screen...

Are you able to dismiss the keyboard by tapping outside of a text field?

NopeOn Jan 8, 2024, at 4:23 PM, Zachary Wander @.***> wrote:
Are you able to dismiss the keyboard by tapping outside of a text field?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

That's what I was thinking, but no, it will not get out of the way...
Should also note that there are no custom keyboards installed, so it's just the standard and emoji ones...
Pretty odd, hence the issue report

1.10.2 should have better interaction with the keyboard on iOS.

Yep. keyboard input areas now work correctly - was "return" now it "go"
tested and 1.10.2 works correctly, feel free to close this issue as resolved/tested


gitAndTools.gitFull: 2.25.1 -> 2.25.2

Semi-automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/git/versions.
meta.description for gitAndTools.gitFull is: "Distributed version control system"
meta.homepage for gitAndTools.gitFull is: "https://git-scm.com/"
Updates performed:

Version update
Quoted meta.homepage for RFC 45

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.25.2 with grep in /nix/store/xi3maxkphxirzcwhhja6dzym6jpsqplg-git-2.25.2

directory tree listing: https://gist.github.com/87d4326374e36c020623eba8ce0868f3

du listing: https://gist.github.com/cd1a9b9ea1d6b73a8f4f924ff0eda261

Rebuild report (if merged into master) (click to expand)

6957 total rebuild path(s)
2260 package rebuild(s)
2260 x86_64-linux rebuild(s)
1980 i686-linux rebuild(s)
884 x86_64-darwin rebuild(s)
1833 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
AgdaSheaves
AgdaStdlib
Literate
Sylk
TotalParserCombinators
abiword
adapta-gtk-theme
adoptopenjdk-icedtea-web
aeon
aerc
aesop
afew
agdaBase
agdaIowaStdlib
agdaPrelude
agenda
ahoviewer
akira-unstable
akregator
alacritty
alarm-clock-applet
almanah
alot
amarok
amarok-kf5
amber
amber-theme
ameba
amp
anbox
android-studio
androidStudioPackages.beta
androidStudioPackages.canary
androidStudioPackages.dev
androidStudioPackages.stable
anki
ankisyncd
apache-airflow
appeditor
appimage-run
appleseed
apvlv
arandr
aravis
arc-icon-theme
arc-theme
areca
ario
arx-libertatis
asc-key-to-qr-code-gif

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/xi3maxkphxirzcwhhja6dzym6jpsqplg-git-2.25.2 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gitAndTools.gitFull https://github.com/r-ryantm/nixpkgs/archive/99da3311167b161790493fbf00b7df1c58a6c4cd.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/xi3maxkphxirzcwhhja6dzym6jpsqplg-git-2.25.2
ls -la /nix/store/xi3maxkphxirzcwhhja6dzym6jpsqplg-git-2.25.2/bin

Security report (click to expand)

CVEs resolved by this update:
none
CVEs introduced by this update:
none
CVEs present in both versions:

CVE-2018-1000110
CVE-2018-1000182
CVE-2019-1003010
CVE-2020-2136

cc @peti @the-kenny @wmertens @globin for testing.

cc @samueldr for failing aarch64 build


Unexpected FileNotFoundException

BoxApiFile#getDownloadRequest(File, String) throws a FileNotFoundException when calling File#exists() on the provided File returns false. This seems very strange.
I'm passing the File reference to Box because I want to create the file. I actually performed a delete right before the call to getDownloadRequest() to ensure that no other parts of the system are using that file.
A File not existing doesn't mean that it can't be written to. The FileOutputStream will create it. In fact, from the File#createNewFile() documentation:

This method is not generally useful... For reading/writing files, use FileInputStream, FileOutputStream, or RandomAccessFile, all of which can create files.

which suggests that passing a File that doesn't exist should be fine.
https://github.com/box/box-android-content-sdk/blob/master/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L298

That logic was added to help identify problems with an invalid File being passed in as early as possible. Because the request can potentially executed in a different place at a different time and usually in a different thread, the decision was made to add a quick check during construction of the request instead of when the file is first used to help developer's identify the issue. The check isn't  necessary for the code to run, so based on developer feedback we'd certainly consider removing it.


fix for Unknown prop renderActiveTabContentOnly on  tag

When using renderActiveTabContentOnly the following warning is issued:
Warning: Unknown prop renderActiveTabContentOnly on  tag. Remove this prop from the element.
in div (created by Tabs)

This pull request fixes that

Thanks, linter is failing though, do you mind fixing that? Not sure if there is an eslint rule that would fix that so maybe we will need to do with eslint-disable-line

Thanks!


Update java9-beta.rb to jdk-9-ea+161

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Verified locally - thank you for your contribution.


feat(generate-config): add overwrite flag and change default env file

The default file to save configuration details in environment variables has been changed from rhoas.env to .env
A --overwrite flag has been added to warn of already existing file.
Verification Steps

The following command should save connection configurations in a .env file:

rhoas generate-config --type env

Running the command again should throw the following error:

File `.env` already exists. Use --overwrite to overwrite the file, or the --output-file flag to choose a different location.

The existing file can be overridden using the --overwrite flag.

rhoas generate-config --type env --overwrite

Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation change
[ ] Other (please specify)

CC @jackdelahunt for verification

@rkpattnaik780  Looks good to me :+1:


U should add a fps texture pack

What config to change
Fps texture pack
Why should it be changed
Fps go brrrr
Category
Other
Additional details
No response

Not planned, as it would change the default textures and be incompatible with other resource packs. Use the latest stable version of FO for the best FPS.


Make load_font_data return Result?

Recently, I spent a few hours trying to figure out why resvg renders completely fine on my laptop, but doesn't draw anything on the server with zero failures. The root cause was a forgotten git lfs checkout, but my mistake wasn't obvious because of the way fontdb handles font loading.
Here is how I used it:
fontdb.load_font_data(include_bytes!(...))
It looks perfectly safe, the file is present, but unfortunately fontdb has this bit:
                match parse_face_info(source.clone(), data, index) {
                    Ok(mut info) => {
                        let id = self.faces.insert_with_key(|k| {
                            info.id = ID(k);
                            info
                        });
                        ids.push(ID(id));
                    }
                    Err(e) => log::warn!(
                        "Failed to load a font face {} from source cause {}.",
                        index,
                        e
                    ),
                }

In other words, font loading is silently swallowing errors. log::warn! is helpful, but is not outputting anything if logging isn't configured.
Would you be open to changing the API and making all font loading functions return Result? It won't be, strictly speaking, a breaking change, but it will cause "unused Result" warnings in clients.
I'm happy to take a stab on a PR if you agree it's a good idea.

log::warn! is helpful, but is not outputting anything if logging isn't configured.

Well, then it's a caller problem.

Would you be open to changing the API and making all font loading functions return Result?
It won't be a breaking change

It will be. Not to mention that the current logic skips malformed font faces and doesn't bail immediately. So returning an error, or rather a list of errors for each face would be rather problematic and would require a lot of changes.
Either way, this crate is unmaintained. So there will be no new versions.

Sure, but I believe it's not very common for Rust crates to rely on logging to signal critical errors

The current API is designed for loading system fonts, in which case an error is highly unlikely.

This should be completely reverse compatible.

The problem is not in breaking the API, but in finding a good solution for this problem. And because this crate is unmaintained it would not happen any time soon.

Is there a succession plan for resvg/usvg?

resvg is maintained by linebender now.

Thank you, I brought it up in the resvg repo https://github.com/linebender/resvg/issues/862
I hope you are well (as much as it's possible in the circumstances), and again thanks a lot for your work. I hope a donation to Повернись живим works as a tiny token of my gratitude.


added common env variable locations for Android SDK for autofix

Description

Describe the nature of the work / fix

Breaking Changes

PRs should not introduce breaking changes to existing functionality
if breaking change cannot be avoided it has to be introduced in 2 phases (release cycles of 0.x.0)

0.x.0 Add new functionality + add DEPRECATED warning to existing fuctionality
0.[x+1].0 Remove deprecated functionality

I have tested my changes on:
ReNative project directly:

[ ] ios simulator
[ ] ios device
[ ] android simulator
[ ] android device
[ ] web browser
[ ] web -e next browser
[ ] tvos simulator
[ ] tvos device
[ ] androidtv simulator
[ ] androidtv device
[ ] androidwear simulator
[ ] androidwear device
[ ] tizen simulator
[ ] tizen device
[ ] tizenmobile simulator
[ ] tizenwatch device
[ ] webos simulator
[ ] webos device
[ ] macos
[ ] windows
[ ] chromecast device

New project:

[ ] ios simulator
[ ] ios device
[ ] android simulator
[ ] android device
[ ] web browser
[ ] web -e next browser
[ ] tvos simulator
[ ] tvos device
[ ] androidtv simulator
[ ] androidtv device
[ ] androidwear simulator
[ ] androidwear device
[ ] tizen simulator
[ ] tizen device
[ ] tizenmobile simulator
[ ] tizenwatch device
[ ] webos simulator
[ ] webos device
[ ] macos
[ ] windows
[ ] chromecast device

Existing Project created with previous version of renative:

[ ] ios simulator
[ ] ios device
[ ] android simulator
[ ] android device
[ ] web browser
[ ] web -e next browser
[ ] tvos simulator
[ ] tvos device
[ ] androidtv simulator
[ ] androidtv device
[ ] androidwear simulator
[ ] androidwear device
[ ] tizen simulator
[ ] tizen device
[ ] tizenmobile simulator
[ ] tizenwatch device
[ ] webos simulator
[ ] webos device
[ ] macos
[ ] windows
[ ] chromecast device

Codecov Report

Merging #709 (ccf11cd) into develop (363ad04) will decrease coverage by 0.00%.
The diff coverage is 25.00%.

:exclamation: Current head ccf11cd differs from pull request most recent head c511cf8. Consider uploading reports for the commit c511cf8 to get more accurate results

@@             Coverage Diff             @@
##           develop     #709      +/-   ##
===========================================
- Coverage    20.02%   20.02%   -0.01%
===========================================
  Files           84       84
  Lines         5433     5434       +1
  Branches      1201     1201
===========================================
  Hits          1088     1088
- Misses        3249     3250       +1
  Partials      1096     1096

Flag
Coverage Δ

rnvunittests
20.02% <25.00%> (-0.01%)
:arrow_down:

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

Impacted Files
Coverage Δ

packages/rnv/src/core/sdkManager/installer.js
20.21% <25.00%> (-0.22%)
:arrow_down:

Continue to review full report at Codecov.

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


Add playback HUD support

Description
This PR extends playback HUD support officially available for tvOS to iOS.
Technical considerations
The playback HUD overlay, which can be enabled from the tvOS developer settings, is displayed using a private text layer class AVNetworkPlaybackPerfHUDLayer. After inspection with Hopper it appears that the appearance of this overlay is governed by a preference com.apple.avfoundation.videoperformancehud.plist that can be manipulated with:
UserDefaults(suiteName: "com.apple.avfoundation.videoperformancehud")

With closer inspection of -[AVNetworkPlaybackPerfHUDLayer getHudSetting] in Hopper we can find that the following parameters are supported:

enable: Manages overlay visibility.
color: The text color (an integer) with yellow = 0, green = 1, red = 2, blue = 3 and white otherwise.
xoffset: The x-offset for the text.
yoffset: The y-offset for the text.
fontsize: The size of the font.
interval: The refresh interval.

There are also spatial, opacity and show_complete_uri parameters but these seem not to have significant use for us.
The AVNetworkPlaybackPerfHUDLayer class is available for iOS as well but has no visible setting. We can display it by tweaking the com.apple.avfoundation.videoperformancehud user defaults but:

The font size logic is quite awkward. The default size if omitted works well on all devices and simulators (though in some cases it might be too big) but some magic is applied in -[AVNetworkPlaybackPerfHUDLayer updateHudWithDisplayString:] which, if a fixed value is set (> 8), leads to various results on iOS / tvOS, also not consistent between simulator and device (on device the device scale is somehow omitted).
The defaults are reset between application launches on device (they are preserved in the simulator, though). On tvOS the default system developer setting provides the default behavior obtained after launch.

We can thus deliver in-app playback HUD settings with a few limitations:

Parameters will be reset between app launches on device. On tvOS the initial visibility matches the corresponding option from the developer system settings.
Fonts need to be adjusted for a good result on each platform.

tvOS
iOS

For these reasons, and since we are accessing a private preference property list, the feature should not be provided by the framework but only in the demo. People interested in testing their streams with Pillarbox can still enable the feature and copy / paste their stream URL in the demo for closer inspection.
Changes made
The PR adds demo settings for the playback HUD. This makes the playback HUD accessible on iOS as well and provides additional customization possibilities on tvOS:

Visibility (on / off).
Font size, which 3 sizes (small, default, large) tailored per device.
Font color.
X and Y offsets (quite useful on iOS where safe area insets can get in the way).

Other parameters are less relevant and are not supported. A reset button is also provided to return to default settings (still reset anyway with the next app cold start).
A few other improvements have been made:

Remove focusable modifier on a footer (not really useful for navigation purposes at the moment).
Fix simple player view appearance.

Checklist

[x] APIs have been properly documented (if relevant).
[x] The documentation has been updated (if relevant).
[x] New unit tests have been written (if relevant).
[x] The demo has been updated (if relevant).

On the Mac app (designed for iPad) we have the following log which can be considered as a log noise.
Couldn't write values for keys (
    enable
) in CFPrefsPlistSource<0x600001923cc0> (Domain: com.apple.avfoundation.videoperformancehud, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access

We could submit official Playback HUD support for iOS to Apple but let us wait a bit and see what happens at WWDC.


Feature request: options to enable/disable sending ID token, access token and User Info headers upstream

What the title says; make it possible to configure whether to send the ID token, access token and User Info as headers upstream.
Related, it should also be possible to send the access token as an bearer token (Authorization: Bearer ...) upstream instead of X-Access-Token.

Hi @larsw , which Kong and Keycloak version are you using? I got an issue that X-Access-Token and X-Id-Token didn't appear in header of up stream server?
I used Kong 1.1.1 and Keycloak 5.0 :(
Is there any hint for me....
Thank you in advance...

I saw it :D
I used this image : https://github.com/Revomatico/docker-kong-oidc/blob/master/Dockerfile
Thanks :P

Hi @larsw , which Kong and Keycloak version are you using? I got an issue that X-Access-Token and X-Id-Token didn't appear in header of up stream server?
I used Kong 1.1.1 and Keycloak 5.0 :(
Is there any hint for me....
Thank you in advance...

Hi @A1Darkwing
Did you end up solving the issue where the tokens were not showing up in the header of the upstream server? I am currently experiencing the same thing and I can't quite figure out why they aren't there.

I am also not seeing those headers sent to upstream services. Did anyone figure that out?

Hi @mssaisandeep,
I should have posted earlier, but I did figure this one out. In the rockspec file, the git tag from which it builds the .rock file (and performs the install from) is v1.1.0. The issue where tokens were not passed to upstream services was present in that release, but has been fixed in later commits to the master branch. Since there haven't been any releases since then, if you edit the rockspec file to a tag of "master", and then pack/install the plugin, it will work as expected. Let me know if you have any more questions about this issue!

Hey, can you help me in building and installing (as you mentioned) into docker image? These are the steps that I followed to build docker container:

git clone https://github.com/nokia/kong-oidc.git
sudo luarocks pack kong-oidc
After executing the 2nd command, I got the *.all.rock file got generated.
Please find the below dockerfile contents where I used to build the kong docker image:

FROM kong:1.1-centos
LABEL description="Centos 7 + Kong 1.1 + nokia-kong-oidc plugin"
RUN yum install -y git unzip && yum clean all
COPY test/kong-oidc/kong-oidc-1.1.0-0.all.rock /
RUN luarocks install /kong-oidc-1.1.0-0.all.rock

I just built and executed docker run. Everything is working fine. But when I tried to access sample (dummy) API hosted behind the kong, I am facing issues. Please find the below logs:

Note:
If I used the below docker file, then I am not getting any issues. But headers are not getting passed.
I don't know what I am missing. Please help me.
FROM kong:1.1-centos
LABEL description="Centos 7 + Kong 1.1 + nokia-kong-oidc plugin"
RUN yum install -y git unzip && yum clean all
#COPY test/kong-oidc/kong-oidc-1.1.0-0.all.rock /
#RUN luarocks install /kong-oidc-1.1.0-0.all.rock
RUN luarocks install kong-oidc

Thanks

Hi @mssaisandeep,
I should have posted earlier, but I did figure this one out. In the rockspec file, the git tag from which it builds the .rock file (and performs the install from) is v1.1.0. The issue where tokens were not passed to upstream services was present in that release, but has been fixed in later commits to the master branch. Since there haven't been any releases since then, if you edit the rockspec file to a tag of "master", and then pack/install the plugin, it will work as expected. Let me know if you have any more questions about this issue!

BTW thanks. Please, can you check the below comment and let me know your thoughts.

@barrelmaker97  I just have a quick question
Why for every request kong-oidc is making a request to keycloak? Every time id_token is generated (changed). Why we need that?

I fixed it finally. Total header size is around 9.9kb. I just increased on upstream api. BTW, another one "https://github.com/nokia/kong-oidc/issues/70" solved one more issue.
Thank you all.

@mssaisandeep Hi! Also having the same problem about the header size. How did you increased the upstream api?

@spacejam101 As we have two cookies (session & session_2) and other headers (id_token, access_token, user_info...) are transferred to upstream services you will face this issue.
I fixed this in kong custom nginx config file as shown below:
![image](https://user-images.githubusercontent.com/47436031/65910592-e2fb9100-e37f-11e9-82cf-73aa5dd97067.png
I changed the dockerfile as shown below such that kong will use the custom Nginx config file which I changed header file size:

You can either copy that nginx custom file or volume mount at runtime.
More info on custom nginx config: https://docs.konghq.com/1.0.x/configuration/#custom-nginx-templates
Let me know if you need any help

https://github.com/larsw/kong-oidc <-- this fork contains these features. Rock available here: https://luarocks.org/modules/larsw/kong-enhanced-oidc

@larsw @mssaisandeep thanks alot guys!

I tested this out and got it working:
FROM kong:1.4.1-centos

LABEL description="Centos 7 + Kong 1.4.1-centos + kong-oidc plugin"

ENV KONG_PLUGINS=oidc

RUN yum install -y git unzip ;\
  yum clean all ;\
  rm -rf /var/cache/yum ;\
  git clone https://github.com/nokia/kong-oidc.git /tmp/kong-oidc ;\
  pushd /tmp/kong-oidc \
  && sed -i 's/v[0-9]\+\.[0-9]\+\.[0-9]\+/master/g' kong-oidc-*.rockspec \
  && luarocks make \
  && popd
  # TODO: Need to do pseudo release because current is obsolescent :(
  # && luarocks install kong-oidc

USER kong


Orchestration client, filtering

Description
Orchestration client, filtering
Changes proposed in this pull request:

Move orchestration DTO model to common to serve as a reusable package (needed by KCP CLI)
Implement orchestration.Client in common. API includes method to

list orchestrations
get orchestration by ID
list operations by orchestration ID
get operation details by orchestration ID and operation ID
trigger kyma upgrade orchestration

Implement filtering by orchestration state(s) on /orchestrations list endpoint
Implement filtering by operation state(s) on /orchestrations/{orchestration_id}/operations

Related issue(s)
#239
#240

/retest

/retest

/retest


Applied fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

A new inspection was created.

A new inspection was created.


cleanup: run codespell on containerized testing

This commit adds a new target codespell to the
make containerized-test.
Fixes: #2229
Signed-off-by: Yati Padia<EMAIL_ADDRESS>

@nixpanic do review. JFYI, codespell doesn't have --config option. Hence, added the required configuration in the command itself.

I think there is a problem with the workflow change, codespell is not listed in https://github.com/ceph/ceph-csi/pull/2396/checks anymore, and it should run inside the container now....

This is because of the error
a step cannot have both theusesandrunkeys


Some CLP(X) for Tau Prolog? Is there dif/1 or freeze/1 already?

Hi,
Is there dif/1 or freeze/1 already for Tau Prolog? How would a derivation
tree visualization look like? I can only contribute in that I have a new
Prolog trampolin design, which could be useful:

https://gist.github.com/jburse/987d86bf7751887785140ab0bb6ad6b3#gistcomment-2859497
Basically during the resulting proving step, you can check a suspension queue,
and if the queue is non-empty, you can first work the goals there instead
the body, by prepending the suspension queue to the body.
Have Fun!

Not yet. I'm currently working on the IO builtin predicates for both browser and Node.js (#59). Thanks for the suggestion, I have CLP on my TODO list.

CLP(X) is hard. I have not yet solve the GC Problem. All the unify hooks are not
reclaimed, since I don't know how far the choice points go in relation to
the unify hooks. Mercury Prolog has something very refined here:
https://www.mercurylang.org/information/doc-latest/mercury_ref/Avoiding-redundant-trailing.html#Avoiding-redundant-trailing
It might be the case that SWI-Prolog has also something like that, not sure. Maybe
even somewhere in their nb_setarg/3. Dont remember exactly, had a look
once at their source.
https://www.mercurylang.org/information/doc-latest/mercury_ref/Trailing.html

It might be worthwhile to consider clp(BNR); seems very powerful and works for boolean, integers and reals :-)

Has this changed at all? Is CLP in some form possible yet?

No. I've been working on a branch to incorporate attributed variables, but I don't know when I'll get back to it.

Thank you for your reply! I'm using tau-prolog in my project https://github.com/lf94/paizo-prolog but I've realized now it'd be nice to have this for constraint problems. I'm considering a SWI-Prolog WASM build, but would gladly switch back to tau-prolog. It's an excellent project!

Hi, another onlooker is coming to check for any progress on this.  IMO this would be a game-changer, tbh, for web development.


[BUG]The API call does not seem to support wav and pcm.

网站上给的api调用的列子，不能生成wav和pcm格式。。

#515 Change title to English.

WAV format is supported now.

Closed as the issue has been solved.


Check pyright in CI

Fix one last remaining type checking issue too

Also fix a use of deprecated MeasurementStatus
Remove deleted modules from type exclusions

bors merge


fix(index.html): the site breaks over https

Issue:

Fix:
https should always be used if the content is available over secure protocol.

cool thanks @theskumar


Not able to parse the MRT file from pybgpstream

Hi All,
When I use the below bgpreader command it just works, but the same with the pybgpstream code shown below is stuck
bgpreader -d singlefile -o upd-file=https://data.ris.ripe.net/rrc00/2023.01/updates.20230120.1420.gz
import pybgpstream

stream = pybgpstream.BGPStream()
stream.set_data_interface("singlefile")
stream.set_data_interface_option("singlefile", "upd-file", "https://data.ris.ripe.net/rrc00/2023.01/updates.20230120.1420.gz")

for rec in stream.records():

    # do something with rec (e.g., choose to continue based on timestamp)
    print("Received %s record at time %d from collector %s" % (rec.type, rec.time, rec.collector))
    count = 0;
    for elem in rec:
        count += 1
        print(type(elem))
        # do something with rec and/or elem

    print ("Total number of elem: %d" % (count))

It gets stuck as shown below
u2004op2:~/bgp/pybgpstream_ex$ python3 01.py
Received update record at time<PHONE_NUMBER> from collector singlefile
Total number of elem: 0
^CError in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 34, in apport_excepthook
    def apport_excepthook(exc_type, exc_obj, exc_tb):
KeyboardInterrupt

Original exception was:
Traceback (most recent call last):
  File "01.py", line 11, in <module>
    for rec in stream.records():
  File "/home/ipi/.local/lib/python3.8/site-packages/pybgpstream/pybgpstream.py", line 87, in records
    _rec = self.stream.get_next_record()
RuntimeError: Could not get next record (is the stream started?)

Anything wrong with my code ?

On further troubleshooting, I have found that handle_eof returns BGPSTREAM_FORMAT_FILTERED_DUMP which is blocking calling prefetch_record. Any pointers regarding BGPSTREAM_FORMAT_FILTERED_DUMP ?
305   // prefetch the next message (so we can see if the record we're about to
306   // export would be the last one)
307   if (reader->status == BGPSTREAM_FORMAT_OK && prefetch_record(reader) != 0) {
308     bgpstream_log(BGPSTREAM_LOG_ERR, "Prefetch failed");
309     return BGPSTREAM_READER_STATUS_ERROR;

I ran into the same situation. So weird...


Test reports are not being published to Azure Pipelines

This PR is related to the issue #5713
The PR helps to publish test results for reporting in Azure Pipelines.
Azure Pipelines provides excellent reporting capabilities that can be leveraged by this PR.
An example report is shown in the image below.

@vagisha-nidhi I wonder where the Azure Pipelines check went 🤔

@timneutkens I am unable to see Azure Pipelines check on other PRs as well. Can we queue this again for coveralls integration?

I'm not exactly sure what you mean by queueing this again, but the coveralls integration is triggered here: https://github.com/zeit/next.js/blob/canary/.travis.yml#L24

The script is here: https://github.com/zeit/next.js/blob/canary/package.json#L15
and it currently fails like this: https://travis-ci.org/zeit/next.js/jobs/457876180#L3606-L3615

Thank you very much!


How to turn off models, don't let him show it

我也在寻找这个选项。我相信问题＃981也可以用这个来解决。可能由于这个模型的东西，我无法覆盖它作为回应。

The author did not reply, I am also looking for a solution

I am also looking for this option. I believe the issue #981 can also be resolved with this. Probably due to this Model stuff, I am unable to override it in response.

I found a way to hide the model and hope to help you.

This method was found in the swagger demo.

Thanks @HanJunJun , This solution is working perfectly.


Attempt method throws exception

Whenever auth.attempt is called for invalid state i.e. user not found or wrong password, the method will throw an exception. If the result of the method should return a boolean to represent whether or not the login attempt was successful, shouldn't the auth.attempt swallow the user not found and password mismatch errors thrown by the validate method?

Nope it should not and exceptions are required so that you can act upon by them by showing exact errors to the end user.
For example on email not found, you can show the error message as this email doesn't exists.
Wheras swallowing errors means all can tell the end user is "login failure"

So in what case would the attempt method ever return anything but true? Based on the documentation and the code it is not clear that I should rely on catching exceptions rather than just checking if the return value, a boolean, is true or false.

The docs seems to be quite clear. http://adonisjs.com/docs/3.2/authentication#_attempt_uid_password
If attempt does not throw exception, it means authentication went fine

It looks like I was referring to the code comments for the Session scheme:
https://github.com/adonisjs/adonis-auth/blob/ca79a523bac3ebb73985281bc2fc6dd022aeac38/src/Schemes/Session/index.js#L101-L113
I will just use the official documentation going forward. Thanks!


Empty body throws a compile error

I just found out that if you leave the body of a keyword, for example if empty like:
if 5 < 10 {
}

It then throws a compile error.
Try to find the issue and fix it

I can solve assigne me .

Sure, assigned

Any progress @shoyebmd424

where would this kind of thing be located?

At Trees i would guess the bug happens, long time ago i looked at that code

where would this kind of thing be located?


json encode error

json.encode({
        { { [1] = 1 }, { [2] = 100 } }
})

it will throw error

{ [2] = 100 }

Trying to encode values which are unrepresentable in JSON will never result in type conversion or other magic: sparse arrays, tables with mixed key types or invalid numbers (NaN, -inf, inf) will raise an error


Restore Magic::Exception for backwards compatibility

Renaming Magic::Exception to Magic::Error breaks reverse dependencies
who where making calls to Magic#guess_* and rescuing Magic::Exception.
This will avoid them crashing on an undefined constant.

the problem was introduced in commit 7642c0af4264bbccc84a3a04b76cb39a01fe0a86

Thank you.


How to limit the number of TCP connections

Description
            using (var c = new Consumer<Null, string>(conf, null, new StringDeserializer(Encoding.UTF8)))
            {
                c.OnConsumeError += COnOnConsumeError;
                c.OnError += COnOnError;

                c.Subscribe(AppConfig.Topic);
                while (true)
                {
                    if (c.Consume(out Message<Null, string> msg, TimeSpan.FromSeconds(1)))
                    {
                        var lockObj = GetLockObj(msg.Partition);
                        Monitor.Enter(lockObj);
                        ProcessMsg(msg);
                        //_threadPool.QueueUserWorkItem(() =>
                        //{
                        //    ProcessMsg(msg);
                        //});
                    }
                }
            }

conf
            var conf = new Dictionary<string, object>
            {
                {"group.id", group},
                {"bootstrap.servers", servers},
                {"auto.commit.interval.ms", 5000},
                {"auto.offset.reset", "earliest"},
                {"socket.timeout.ms", 120000}
            };

tpc connections
C:\Users\Administrator>netstat -ano | find "52964"
TCP    <IP_ADDRESS>:28132        <IP_ADDRESS>:28133        ESTABLISHED     52964
TCP    <IP_ADDRESS>:28133        <IP_ADDRESS>:28132        ESTABLISHED     52964
TCP    <IP_ADDRESS>:28134        <IP_ADDRESS>:28135        ESTABLISHED     52964
TCP    <IP_ADDRESS>:28135        <IP_ADDRESS>:28134        ESTABLISHED     52964
TCP    <IP_ADDRESS>:28136    <IP_ADDRESS>:9092     ESTABLISHED     52964
why <IP_ADDRESS>
how to disable it
How to reproduce
Checklist
Please provide the following information:

[ ] Confluent.Kafka nuget version:0.11.6
[ ] Apache Kafka version:
[ ] Client configuration:
[ ] Operating system:
[ ] Provide logs (with "debug" : "..." as necessary in configuration)
[ ] Provide broker log excerpts
[ ] Critical issue

Without looking into this, my guess is this is the mechanism @edenhill is using in librdkafka to allow polling on sockets and internal librdkafka queues simultaneously. is that correct @edenhill ? if so, note that this only applies to Windows, and it's to get around a limitation on that OS.

ok, it looks like that's the case (so you can't disable it).


Self Register API properties are not documented

With regard to the self-registration APIs, the request is stated as follows (Ex: resend-code)
curl -X POST -H "Authorization: Basic <Base64Encoded_username:password>" -H "Content-Type: application/json" -d '{"user":{"username": "<username>","realm": "<user_store_name>"},"properties": []}' "https://localhost:9443/api/identity/user/v1.0/resend-code"

However, the expected structure of the properties is not specified.
"properties": [
        {
            "key": "KEY",
            "value": "VALUE"
        }
]

Moreover, the applicable values for the key and the values are not listed either (Ex: RecoveryScenario, NOTIFICATION_BASED_PW_RECOVERY).
"properties": [
        {
            "key": "RecoveryScenario",
            "value": "NOTIFICATION_BASED_PW_RECOVERY"
        }
    ]

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Fix Typo in readme.m

It seems the biggan row in the table mistaken biggan as resnet152... just a fix

Thanks!


PST Max File Size Clarification

The documentation notes: As previously stated, each PST file that you upload to the Azure Storage location should be no larger than 20 GB. PST files larger than 20 GB may impact the performance of the PST import process that you start in Step 6.
What does this actually mean, is this a hard limit, or do we just need to wait and should consider submitting large PSTs in their own job?

We submitted a ticket and the feedback we got was possible silent data loss as a consequence of attempting to ingest PSTs larger than 20GB. Is this true? If so it needs to be mentioned on this page. Or what is a recommended path if we need to ingest PSTs larger than 20GB? Ideally we can just submit a job and "may impact the performance" means we just need to wait.

Is the 20GB based on the actual file size of the PST, or only the actual space used within the PST (and we could compact the PST if not)?

Is there any item count limit?

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

ID: d4271558-62a9-db3c-078c-13b5e5fe99da
Version Independent ID: 813d7002-20a2-b1be-2771-975a0b1cfd48
Content: Use network upload to import your organization's PST files - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/use-network-upload-to-import-pst-files.md
Service: o365-seccomp
GitHub Login: @markjjo
Microsoft Alias: markjjo

@UnexpectedLemon The article states the 20GB limit. Would suggest you continue working with support on this issue and to answer these questions. Seems that you could also test some of your suggested workarounds. You could also try using the New-MailboxImportRequest cmdlet in Exchange Online PowerShell for the large PST, but that cmdlet is not supported in Exchange Online. Not sure if doing that offers any advantages.
I believe the only count limits would be the maximum folder limits for Exchange Online mailboxes (or any other EXO limit for mailbox items). See: https://docs.microsoft.com/en-us/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits#mailbox-folder-limits

Thanks @markjjo -- I don't read this as a hard 20GB service limit if it only states "PST files larger than 20 GB may impact the performance of the PST import process." Same for this quote earlier in on this page "Large PST files may impact the performance of the PST import process. So we recommend that each PST file you upload to the Azure Storage location in Step 2 should be no larger than 20 GB." -- I do not read this as a hard limit, it is "recommended" but does not explain what a consequence of impacted performance is. Hope this feedback helps improve the documentation.


release(python-sdk): v0.4.4

Description

0.4.4 (2024-06-17)

fix: ClientTuple condition property type
fix: list_users should accept FgaObject type
fix: remove ReadAuthorizationModel calls from BatchCheck and writes
chore!: remove excluded users from ListUsers response

References

https://github.com/openfga/python-sdk/pull/102
Review Checklist

[x] I have clicked on "allow edits by maintainers".
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected

Let's merge in the ListUsers changes and make this 0.5.0

Branch rename requires a fresh pull request: https://github.com/openfga/sdk-generator/pull/381


Missing payment sort_order

Also extension page missing changes for opencart 3.1 that uses bootstrap 4.

Hi howdu,
We recently released a new version of our Opencart plugin which features "sort order" functionality. Please update to our new release 3.1.1.


Dhan API get positions api is not providing unrealizedProfit info in the json

Dhan API get positions api is not providing unrealizedProfit info in the json
tradingSymbol securityId positionType exchangeSegment productType   buyAvg  costPrice  buyQty  sellAvg  sellQty  netQty  realizedProfit  unrealizedProfit  multiplier
0            UPL      11287         LONG          NSE_EQ    INTRADAY   682.65     682.65       1     0.00        0       1            0.00               0.0           1
1            TCS      11536         LONG          NSE_EQ    INTRADAY  3302.00    3302.00       1     0.00        0       1            0.00               0.0           1
2         GRASIM       1232         LONG          NSE_EQ    INTRADAY  1689.35    1689.35       1     0.00        0       1            0.00               0.0           1
3       HDFCBANK       1333         LONG          NSE_EQ    INTRADAY  1630.28    1630.28       2     0.00        0       2            0.00               0.0           1
4     HEROMOTOCO       1348         LONG          NSE_EQ    INTRADAY  2714.70    2714.70       1     0.00        0       1            0.00               0.0           1
5          TECHM      13538         LONG          NSE_EQ    INTRADAY  1100.25    1100.25       1     0.00        0       1            0.00               0.0           1
6       HINDALCO       1363       CLOSED          NSE_EQ    INTRADAY   406.20     406.20       1   403.80        1       0           -2.40               0.0           1

Please ask the appropriate team to fix the issue.
Also, is there any way to get the mtm for day directly instead of getting it from positions.
I want to implement algo to check mtm every 1 or 2 minutes and if it is more than 1.5% of the margin used for intraday in equities , I want to square it off.
I wanted to use the positions method to do so but it seems there is no value of unrealized profit available. Kindly, check at your end and fix it

Hello @rahulmr
We have fixed this with DhanHQ v2. Do try it out and let us know your feedback on the same.
DhanHQ-py v2


Update Japanese translation

Update Japanese translations to apply following commits:

https://github.com/leandromoreira/digital_video_introduction/commit/1153dad0b4a693125bb69cc91e925c0f3ff83d47
https://github.com/leandromoreira/digital_video_introduction/commit/d3f3609f20b9979ada6176a8bdfad7eb7a36bb61

@mzyy94 Could you review & approve following pull requests?
https://github.com/leandromoreira/digital_video_introduction/pulls/c-bata

@c-bata Oops, sorry I didn't notice the mention ;)


Failover client - comments?

I've added a new config to current client to fix a problem of nodes disappearing temporarily, for example during maintenance restarts.
The riak cluster is still active even if one node is gone, but the current java cluster client will start getting errors when the downed node is picked round-robin. It retries on a single node according to Retrier, but does not switch nodes after the target node has been selected.
In this branch, there's a new high-level client registered, with corresponding config. If all nodes are running then behaviour should be identical to ClusterClient - it does a simple round-robin load balancing.
If a node generates an error (EOF on socket for example), it's marked as inactive, and next node is selected and operation retried. Inactive nodes are ignored for time period (currently hardcoded to 15 seconds) and retried again after that.
During the 15 seconds, only known good nodes are selected as targets. If all active nodes fail, then operation retries for time period rather than specific number of retries. The meaty bit is in FailoverClusterClient around line 280
It's still a hack right now, with hardcoded values, only implemented for PB, and no tests. It currently retries for any error, which is wrong - need to copy over selected exceptions from retrier code, but I don't understand all the use cases, only my limited use (simple bucket ops, fetch, store and MR)
I'm testing it using my app and local cluster - seems to be working OK, but is definitely not full coverage. I have three node riak, with two nodes configured for use by this client. Requests continue to work even if one of the two nodes is down temporarily (tested by stopping the node)
This is not really a request for merge yet, more request for comments, and asking whether this is proper direction.

I think it's an excellent idea Paul, and one that's been in the back of my head for a while; just hadn't gotten to the top of the todo list. A Cluster client shouldn't completely fail an operation just because a single node was out of commission.
The only comment I would have is that I don't know that it needs to be a completely new client, but rather built into the existing cluster clients (at least as an option) - I haven't looked to see how hard/easy that would be which is why I preface that with "don't know".  What would be great is to have the Retrier cycle to the next client on a timeout/IO exception, but off the top of my head I'm thinking that would require some work. Russell also had the idea of making the load balancing in the cluster clients pluggable, which this might be able to fit into.

I chose new client because it's quite a change in behaviour from existing ClusterClient. If someone is relying on existing behaviour to implement higher level failover in their app, then this change might be confusing rather than helpful.
However, ClusterClient was the starting point for this new Client, so could work.

Agreed - which is why I mentioned as an option rather than the default behavior. Again - just a comment, didn't mean or intend to completely disregard the way you're approaching it. Russell may completely disagree with me and think a new client is the way to go; I'm sure he'll have input as well.

Digging into the code with Russell to double-check this, the Retrier isn't retrying on the same node when there's a failure if you're using a ClusterClient.
The Retrier gets passed a Callable that includes a reference to the ClusterClient you're using. On each retry, that client is using a different node by virtue that all of its methods get a new delegate each time they are called.
As an example, if you look at ClusterClient.fetch() (The parent of both HTTPClusterClient PBClusterClient)  you'll see that the first thing it does is call getDelegate() then use that delegate to execute the fetch(). That is the method the Retrier is calling on each attempt.

I started to doubt what I'd seen, so I've knocked up a quick test to reproduce the behaviour outside our app, and I'm still seeing it fail.
See  src/test/java/com/basho/riak/client/cluster/ClusterTest.java (just pushed)
This uses the existing ClusterClient with two nodes, and does a ping periodically. If both nodes are running, this test passes. If I take down one node while it's running, or start up with one node already down, then it fails.
Here's a sample run, with me killing the connection to one node while it's running...
ping<PHONE_NUMBER>526
ping<PHONE_NUMBER>064
com.basho.riak.client.RiakException: java.net.ConnectException: Connection refused
at com.basho.riak.client.DefaultRiakClient.ping(DefaultRiakClient.java:209)
at com.basho.riak.client.cluster.ClusterTest.getPingFailover(ClusterTest.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
....
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at com.basho.riak.pbc.RiakConnection.(RiakConnection.java:67)
at com.basho.riak.pbc.RiakConnection.(RiakConnection.java:57)
at com.basho.riak.pbc.RiakConnectionPool.createConnection(RiakConnectionPool.java:388)
at com.basho.riak.pbc.RiakConnectionPool.getConnection(RiakConnectionPool.java:373)
at com.basho.riak.pbc.RiakConnectionPool.doGetConection(RiakConnectionPool.java:325)
at com.basho.riak.pbc.RiakConnectionPool.access$400(RiakConnectionPool.java:41)
at com.basho.riak.pbc.RiakConnectionPool$State$2.getConnection(RiakConnectionPool.java:71)
at com.basho.riak.pbc.RiakConnectionPool.getConnection(RiakConnectionPool.java:321)
at com.basho.riak.pbc.RiakClient.getConnection(RiakClient.java:110)
at com.basho.riak.pbc.RiakClient.ping(RiakClient.java:154)
at com.basho.riak.client.raw.pbc.PBClientAdapter.ping(PBClientAdapter.java:497)
at com.basho.riak.client.raw.ClusterClient.ping(ClusterClient.java:274)
at com.basho.riak.client.DefaultRiakClient.ping(DefaultRiakClient.java:207)
... 21 more

Unfortunately ping() is an exception. It doesn't use a Retrier at all and is only ever attempted once on a single delegate per call to ClusterClient.ping().
That's probably something that should be addressed in the ClusterClient at some point.

Doh. I was using ping as nice benign thing to test with, and didn't notice that it was special. So my branch does fix failover on ping, and handle downed nodes a bit different by staying away from them for a period of time, but diverges more than necessary.
We use ping in our app to periodically monitor the connection to riak, so until this is fixed I should just do a fetch on known key instead.


Raspberry pi touchring (mouse pointer) can move endless behind screen boarders

hi,
i will control my kivy application with an normal mouse. no touch screen. if i develop on my desktop the mouse pointer change from touchring to normal mouse pointer if i cross the kivy application window boarder. on an raspberry pi the application is fullscreen against .kivy/config.ini settings witch are default on "fullscreen = 0". this is not the problem because the app must run in fullscreen mode on raspberry pi. the problem is the touchring. on raspberry pi you can move the mouse(touchring) endless behind the screen boarder. in this case, if you not remember in which direction you loose the mouse pointer behind the boarder you have no chance to get the pionter back to visible screen area.
what goes wrong here? or how can i configure config.ini that this will not happens?
thx
wolke

Hello,
I've got the same issue. Currently working on it but no couldn't figure it out yet. Did you find a solution?
Thanks.

I think this is an issue with hidinput, and can be fixed by limiting the rel mouse moves to stay within the screen limits. I'll try to add it to my rework of hidinput. PR #6264

This looks like it was fixed.
Closing.
If the problem still occurs, please let us know.


raise error when config key isn't valid

when one is porting old code where $pkg->saveConfig('MY_PKG_CONFIG', 'value'); worked, this makes things easier to debug.
Just checking if everything is valid and giving the developer a hint about what's wrong...

some unit tests are failing, not sure if they should or not, but not having a dot in the key didn't work for me..

Okay, this definitely doesn't make sense, can't add a multilingual section but also couldn't add my package config value...

Both namespace and item can and will be null.


Report error from recent app logs in case of app crash during cf deploy

Description
Currently at deployment MultiApps Controller output is limited to app stage/start output, which is fine. However, in case of app crashes it is not that convenient as the user has to retrieve the recent app logs in order to see the reason for the crash.
E.g. currently there is only the following output:
Application "example-app" staged
Starting application "example-app"...
0 of 1 instances running (1 running)
0 of 1 instances running (1 crashed)
Error starting application "example-app": Some instances have crashed

Expected Behavior
In case of app crash in staging/start the output from above should be enhanced to contain the errors or last error from the recent app logs, such as:
2018-10-17T16:25:40.99+0300 [APP/PROC/WEB/0] ERR Cannot calculate JVM memory configuration: There is insufficient memory remaining for heap. Memory available for allocation 256M is less than allocated memory 644084K (-XX:ReservedCodeCacheSize=240M, -XX:MaxDirectMemorySize=10M, -XX:MaxMetaspaceSize=132084K, -Xss1M * 250 threads)

Internal Tracking Number:
LMCROSSITXSADEPLOY-547

Done with https://github.com/cloudfoundry-incubator/multiapps-controller/pull/434


Removing redundant code used to calculate powers of PauliTerms

Removing some redundant (and confusing) code used in calculating the result for a PauliTerm raised to some (integer) power. For one, the identity multiplied by several identities will always just yield an identity. Secondly, we can check for triviality by simply checking for the number of qubits being operated on[*], instead of more convolutedly checking whether the list of identities operating on the available qubits is an empty list or not.
[*] This itself seems like a dubious check, since presumably we are unable to ever create a PauliTerm with no qubits, even if we do something like PauliTerm.from_list([]). We can nevertheless check for this in a less confusing manner, as in the code change here.

** (Correcting myself on point [*])
It is indeed possible to produce a PauliTerm with no qubits, though if we print out the PauliTerm, it would seem that it's applying an identity operation on some non-zero number of qubits:
>>> import pyquil.paulis as pl
>>> pt = pl.PauliTerm.from_list([])
>>> print (pt)
(1+0j)*I
>>> pt.get_qubits()
[]
>>> pt._ops
OrderedDict()