cilium: add NodePortBindProtection to allow for opting out bind rejection

See commit msg

test-docs-please

test-me-please

test-me-please

Coverage increased (+0.01%) to 44.639% when pulling ecd80502278d6e29ffdce38aea459215c82ba5a0 on pr/bind-protection into 43570d58d1c59ef7cacfa92720f184878327135e on master.

restart-gke

Hit https://github.com/cilium/cilium/issues/10118 on GKE

test-gke

restart-gke

test-gke

From GKE CI:
20:53:38  Step 1/14 : FROM docker.io/library/golang:1.14.2 as builder
20:53:38   ---> 2421885b04da
20:53:38  Step 2/14 : LABEL<EMAIL_ADDRESS>20:53:38   ---> Using cache
20:53:38   ---> 8e0caf011e36
20:53:38  Step 3/14 : ADD . /go/src/github.com/cilium/cilium
20:54:38  failed to export image: failed to set parent sha256:8e0caf011e36f6dd297230873e7f61a2d1f6a560db4e1584f905339950408ffb: unknown parent image ID sha256:8e0caf011e36f6dd297230873e7f61a2d1f6a560db4e1584f905339950408ffb
20:54:38  Makefile:253: recipe for target 'docker-operator-image' failed
20:54:38  make: *** [docker-operator-image] Error 1

test-gke

Hit https://github.com/cilium/cilium/issues/10231 on GKE

test-gke

Add an agent knob for expert users who wish to run backend Pods on the same ports as the NodePort service is exposed.

I'm probably missing some context, but is this still needed once #11210 is merged? Or is this still needed for pods in the host network?

Add an agent knob for expert users who wish to run backend Pods on the same ports as the NodePort service is exposed.

I'm probably missing some context, but is this still needed once #11210 is merged? Or is this still needed for pods in the host network?

Yes , if users really want to opt-out on older kernels where this feature is not available.

(All tests green, GKE one is randomly flaking in unrelated areas. Only updating the doc nit from Tobias right now.)

test-docs-please


Long pieces of text need work

See the league or tournament sections. We need a smaller maximum line length and more paragraph spacing.

We now have an article p style and font choices that I'm broadly happy with.


xstate monitor

Hey @davidkpiano,
I'm interesting in instrumenting xstate and I need hooks to bind to. Like for example an API that will allow me to monitor what's going on with the machines. Imagine a tool that shows you in real time what's going on and draws a graph for example. An API like this.

Hey, awesome! What kind of things are you wanting to "listen" for? Since xstate's transition is purely functional, there is nothing to listen to.
In version 2, you can add onEntry and onExit handlers to states. However, they are not executed - they are simply specified on the result State object for you, the developer, to consume and execute however you'd like:
  const lightMachine = Machine({
    key: 'light',
    initial: 'green',
    states: {
      green: {
        on: {
          TIMER: 'yellow',
          POWER_OUTAGE: 'red',
          NOTHING: 'green'
        },
        // Handlers can be strings or fns. Always prefer strings - they're serializable.
        onEntry: 'enter_green',
        onExit: 'exit_green'
      },
      yellow: {
        on: {
          TIMER: 'red',
          POWER_OUTAGE: 'red'
        },
        onEntry: 'enter_yellow',
        onExit: 'exit_yellow'
      },
      red: {
        on: {
          TIMER: 'green',
          POWER_OUTAGE: 'red',
          NOTHING: 'red'
        },
        onEntry: 'enter_red',
        onExit: 'exit_red',
        ...pedestrianStates
      }
    }
  });

Example state result:
const nextState = lightMachine.transition('green', 'TIMER').effects;
// {
//   entry: ['enter_yellow'],
//   exit: ['exit_green']
// }

const effectImplementation = {
  exit_green: () => console.log('exited green!'),
  enter_yellow: () => console.log('entered yellow!')
};

// execute the effects yourself
effects.exit.forEach(exitEffect => effectImplementation[exitEffect]());
effects.entry.forEach(entryEffect => effectImplementation[entryEffect]());

Thanks. I think this will work out. I'll post the result here once it's done 🚀

Great. I haven't announced V2 yet, but, uh, it's out 🙊 I just have to document it.
For now, the best way to see the capabilities is to look at the unit tests.

Interesting thread!
I was thinking to implement something similar on top of xState (If it turns out I needed such thing). Maybe you'd consider having such thing -see explanation below- within xState itself. Not sur it's a good idea, maybe it's better implemented outside of xState.. am I making any sense?? just thinking out loud.
Anyway, here's my idea:
I'd have liked to have a way to not only listen to the sate machine (onEnter, onExit ...) but also a way to control it from outside the component itself. For instance, having onBeforeEnter and onBeforeExit with the option to cancel the state transition (forcing the component not to leave its state and maybe forcing i to transition to yet another state).
For instance Component C1 has States S1, S2 and S3. Let' say it was transitioning from S1 to S2. I use the onBeforeExit to listen to it from outside C1. In that listening-function I might decide to let it proceed, or else I might decide to cancel and stay in S1 or even to instead to transition to S3.
In the above scenario, we'd also need the ability to alter C1's "data state" as well (not just its state machine but any part of its state).
Don't read too much in the above text. Just some random ideas of how one can use xState. Again, it could very well be that it's much better to implement the above scenario outside xState!!
Cheers~

@mehdi-cit I kinda feel that such hooks need to be used only for debugging purposes. You shouldn't control the transitions or the state of the machine from the outside because this is breaking the deterministic nature of the tool. Or in other words the machine should be in full control of its state and transitions.

I hear you, but I still think it might be useful .. not sure... it just might!
I will share my experience here if i ever get around doing such thing!

Cool ideas @mehdi-cit, but I agree with what @krasimir said, and although those features would be "nice," you would suffer from increased complexity. The goal is to make the nested state machines (and statechart) as simple, declarative, deterministic, and statically analyzable as possible.

having onBeforeEnter and onBeforeExit with the option to cancel the state transition

The option to "cancel" a state transition is handled by "guard conditions" - the state transition isn't canceled per se; instead, in statechart semantics it is simply not chosen. The guard cond prop for transitions (see the tests) handle this nicely.
With that said, onBeforeEntry/Exit redundant with onEntry/Exit.

also a way to control it from outside the component itself

The machines are simply "configuration" and the state transitions are pure, so "controlling" an xstate state machine would have no effect. Its purpose is just to report to you, the developer, what the next state is going to be, so that you can update the state any way you'd like (and testing becomes much, much easier this way too).
Thanks for bringing it up though, I think these conversations are important!

Hey @davidkpiano, can you point me to a really complex codepen that uses xstate? I need a full featured example to play with.

@krasimir I'm going to remake TodoMVC with React + xstate, would that suffice?
I have some super complex statecharts with xstate but they're in private code bases. (And yes they work great!)

If the TodoMVC example uses statecharts I'll be fine with it. I just want to see how my tool behaves with a complex scenarios.

Here's how one of the examples looks like in my extension:

It works but I wanna see some crazy events going on.

@davidkpiano Having a TodoMVC for React + xstate would be awesome. An example for React/Redux + xstate would also be awesome because I think "state" is referring to slightly different concepts when used in the context of statecharts as opposed to Redux (or some other state container), and I think this is confusing to a lot of people. I know it was for me.

@johncmunson That's coming in the next version, where xstate will have full functionality as an external state container as well (still based on SCXML semantics, specifically <datamodel> and <assign>)!

That is very exciting!!! Love the work you're doing


Use object id for hash instead of file contents

I propose to use blob object id instead of file contents. This not only prevents to create intentional hash collisions, but improves the performance a lot.
In the original implementation, using file contents for hashing makes it very easy to create sver hash collision.
 $ mkdir /tmp/test
 $ cd /tmp/test
 $ git init

 $ touch test{1,2}.txt
 $ git add test{1,2}.txt
 $ sver list
test1.txt
test2.txt
 $ sver calc
b630f27d3981

 $ printf "test2.txt\xA4\x81\x00\x00" >test1.txt
 $ rm -f test2.txt
 $ git add -u
 $ sver list
test1.txt
 $ sver calc
b630f27d3981

I know that actual SHA-1 collision of two different files is found in 2017, called as SHAttered. But if blob object id collision happens, various assumptions in git are broken.
Here's performance comparison in Vim repository.
 $ hyperfine --warmup 10 'sver-old calc' 'sver-new calc'
Benchmark 1: sver-old calc
  Time (mean ± σ):     550.3 ms ±  11.3 ms    [User: 519.4 ms, System: 23.8 ms]
  Range (min … max):   533.7 ms … 565.6 ms    10 runs

Benchmark 2: sver-new calc
  Time (mean ± σ):       6.6 ms ±   0.9 ms    [User: 5.4 ms, System: 0.7 ms]
  Range (min … max):     6.0 ms …  19.9 ms    310 runs

Summary
  'sver-new calc' ran
   83.20 ± 11.43 times faster than 'sver-old calc'

Yeah, it is very very faster.

Thank you for your proposal and pull request.
I think your suggestion is best way!
LGTM :shipit:
link #47


Gradle plugin: Replace findProperty with Isolated Project compatible …

…api gradleProperty

Summary
findProperty is not compatible with Gradle Isolated Projects, but providers.gradleProperty is. To test this change, you need an Isolated Projects compatible build, eg plain java library.
Release Note

Add support for Gradle Isolated Projects.
Documentation

I guess we haven't had many forked PR created. Tests are failing on the availability of OIDC... which shouldn't be affected by this. I can override for the merge once we get approval.

Unfortunately, providers.gradleProperty is not the same as findProperty since providers.gradleProperty queries the values from the root project only which is conter-intuitive.
See https://github.com/gradle/gradle/issues/23572
Do you know if there's an alternative?
Do you know if hasProperty supports isolated projects?
Could you add a test case so we know "isolated project" is supported or not?
Otherwise it could be we replace findProperty and gain nothing with it

Yes, this is a change of the behavior but it is the only API compatible with isolated projects. hasProperty is also incompatible.

The mentioned property is an escape hatch, so it is probably fine to use providers.gradleProperty. Let's just merge it and be done with the PR.
A test with isolated projects would be very welcome.


Change format json response

How can i change this format response to my own format
{
  "message": "invalid or expired jwt"
}

i want to change something like this
{
  "meta": {
    "status": false,
    "message": "Unauthorized",
    "messages": null
  },
  "result": null
}

i cant find how to do it

I don't think I understand what you're trying to do. Could you please elaborate?

Closing ticket. If you would like to follow up, please feel free to reopen.


404 error does not indicate what resource was not found

tfc-ops variables list -o org -w workspace -k key can return a 404 for at least two different reasons: (1) organization name not found, or (2) workspace not found. The error message provided does not look different in the two scenarios:
API returned an error.
	Method: GET
	URL: https://app.terraform.io/api/v2/vars?filter%5Borganization%5D%5Bname%5D=org&filter%5Bworkspace%5D%5Bname%5D=workspace
	Code: 404
	Status: 404 Not Found
	Request Body:
	Response Body: {"errors":[{"status":"404","title":"not found"}]}

Closed by #68.


implement IntoIterator

Clippy complains:
warning: defining a method called `into_iter` on this type; consider implementing the `std::iter::IntoIterator` trait or choosing a less ambiguous name
   --> src/main.rs:373:5
    |
373 | /     pub fn into_iter(self) -> Either<L::IntoIter, R::IntoIter>
374 | |         where L: IntoIterator,
375 | |               R: IntoIterator<Item = L::Item>
376 | |     {
...   |
380 | |         }
381 | |     }
    | |_____^

and I think it is right. What is the purpose of not implementing IntoIterator?

It's not possible, the existing Iterator impl is incompatible with that.


NEW ADFLY DOMAIN

https://themezon.net/

Please open again your issue following one of the issues template.


Installing psycopg2 (2.9.6): Failed

I am following the Quickstart guide. When running poetry install, all dependencies get installed, but the installation for the psycopg2 fails. This is the error message:
• Installing psycopg2 (2.9.6): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel

  /private/var/folders/v3/11r_zs0x2j98lm4nn7pqfbkc0000gr/T/tmpcz77uvx9/.venv/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
  !!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.

          By 2023-Oct-30, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  running egg_info
  writing psycopg2.egg-info/PKG-INFO
  writing dependency_links to psycopg2.egg-info/dependency_links.txt
  writing top-level names to psycopg2.egg-info/top_level.txt

  Error: pg_config executable not found.

  pg_config is required to build psycopg2 from source.  Please add the directory
  containing pg_config to the $PATH or specify the full executable path with the
  option:

      python setup.py build_ext --pg-config /path/to/pg_config build ...

  or with the pg_config option in 'setup.cfg'.

  If you prefer to avoid building psycopg2 from source, please install the PyPI
  'psycopg2-binary' package instead.

  For further information please check the 'doc/src/install.rst' file (also at
  <https://www.psycopg.org/docs/install.html>).

  at ~/Library/Python/3.9/lib/python/site-packages/poetry/installation/chef.py:152 in _prepare
      148│
      149│                 error = ChefBuildError("\n\n".join(message_parts))
      150│
      151│             if error is not None:
    → 152│                 raise error from None
      153│
      154│             return path
      155│
      156│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with psycopg2 (2.9.6) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "psycopg2 (==2.9.6)"'.

I am not planning to use psycopg2 as a datastore, but this blocks installation of new packages (like jwt to create a bearer token).  Can you please advise or fix it?

Try to install pg dependencies before doing the poetry install and it should work out.
On ubuntu/debian: sudo apt install -y libpq-dev

Same issue here. Did u find a way to fix it? Just have it all time during installation

This issue relates to OpenSSL, install OpenSSL via brew or apt, and then update the LIBRARY_PATH env to fix the issue.
brew install openssl
For macOS on Apple Silicon, use:
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/openssl/lib
For macOS on Intel based chips:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/

This is relates to pg_config file in the path. So If you're on mac, installing postgresql should fix the issue.
brew install postgresql
arch -arm64 brew install postgresql (if you're on apple silicon)

This is relates to pg_config file in the path. So If you're on mac, installing postgresql should fix the issue.
brew install postgresql
arch -arm64 brew install postgresql (if you're on apple silicon)

Having to install Postgres on every system is quite bad... :-(
psycopg2 dependency should be optional, e.g. only for installations using Postgresql, something like
[tool.poetry.group.postgres.dependencies]
psycopg2 = "^2.9.5"

or
psycopg2 = {version = "^2.9.5", optional = true}


Use namespaces without explicitly saving

You don't always know that you want to add something to the namespace before you see the result. What if each output was given a name, so instead of saying "Cell Output" the UI would say something like "output_14". Then in code you could do "beaker.get('output_14')" and the namespace server could ask the client for that value.

I think this is rendered obsoleted by the getBeakerCell api, which allows you to get the current cell output.

OK I think we could use a better UI so they can just assign a name but we have https://github.com/twosigma/beaker-notebook/issues/521 for that.  Your recent work definitely solves the problem about "too late" above.


Added support for forum channels

Pull Request Etiquette

[ ] I have checked the PRs for upcoming features/bug fixes.
[ ] I have read the code of conduct.

Changes

[x] Internal code
[ ] Library interface (affecting end-user code)
[ ] Documentation
[ ] Other: _____

Closes : NaN

Codecov Report
Base: 2.87% // Head: 2.76% // Decreases project coverage by -0.10% :warning:

Coverage data is based on head (eda93a2) compared to base (a1b4d81).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             master    #125      +/-   ##
===========================================
- Coverage      2.87%   2.76%   -0.11%
  Complexity       61      61
===========================================
  Files           384     403      +19
  Lines          6991    7257     +266
  Branches        689     719      +30
===========================================
  Hits            201     201
- Misses         6759    7025     +266
  Partials         31      31

Impacted Files
Coverage Δ

...kotlin/io/github/ydwk/ydwk/builders/slash/Slash.kt
0.00% <ø> (ø)

...k/ydwk/entities/channel/guild/forum/ChannelFlag.kt
0.00% <0.00%> (ø)

...tities/channel/guild/forum/DefaultReactionEmoji.kt
0.00% <0.00%> (ø)

...wk/entities/channel/guild/forum/ForumLayoutType.kt
0.00% <0.00%> (ø)

...ydwk/ydwk/entities/channel/guild/forum/ForumTag.kt
0.00% <0.00%> (ø)

.../entities/channel/guild/forum/GuildForumChannel.kt
0.00% <0.00%> (ø)

.../kotlin/io/github/ydwk/ydwk/evm/ListenerAdapter.kt
0.00% <0.00%> (ø)

...um/ForumChannelAvailableForumTagsIdsUpdateEvent.kt
0.00% <0.00%> (ø)

...forum/ForumChannelAvailableForumTagsUpdateEvent.kt
0.00% <0.00%> (ø)

...pdate/forum/ForumChannelChannelFlagsUpdateEvent.kt
0.00% <0.00%> (ø)

... and 15 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.


sqlite3.OperationalError when running test with mock_ssm

Trying to mock aws for a test in airflow..
I've implemented an ssm hook such as
from airflow.contrib.hooks.aws_hook import AwsHook

class SsmHook(AwsHook):

    def __init__(self, *args, **kwargs):
        super(SsmHook, self).__init__(*args, **kwargs)

    def get_conn(self):
        return self.get_client_type('ssm')

    def get_parameter(self, name):
        return str(self.get_conn().get_parameter(Name=name)['Parameter']['Value'])

During the test I'm using @mock_ssm decorator, but it seems that it doesn't quite help
Another note is that locally, the test pass, but in docker with python (and all the rest of the packages) it doesn't.
I am using similar tactic for s3, and it works well.
Is there anything that moto expects to have in the environment for the mocking to succeed (some files to be created, env vars, etc)
Stack trace:
 File "/home/src/dag_utils/oldest_unseen_sensor.py", line 59, in poke
    param = self.ssm_hook.get_parameter(self.ssm_key)
  File "/home/src/dag_utils/ssm_hook.py", line 13, in get_parameter
    return str(self.get_conn().get_parameter(Name=name)['Parameter']['Value'])
  File "/home/src/dag_utils/ssm_hook.py", line 10, in get_conn
    return self.get_client_type('ssm')
File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/hooks/aws_hook.py", line 119, in get_client_type
    self._get_credentials(region_name)
  File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/hooks/aws_hook.py", line 91, in _get_credentials
    connection_object = self.get_connection(self.aws_conn_id)
  File "/usr/local/lib/python2.7/dist-packages/airflow/hooks/base_hook.py", line 77, in get_connection
    conn = random.choice(cls.get_connections(conn_id))
  File "/usr/local/lib/python2.7/dist-packages/airflow/hooks/base_hook.py", line 72, in get_connections
    conns = cls._get_connections_from_db(conn_id)
  File "/usr/local/lib/python2.7/dist-packages/airflow/hooks/base_hook.py", line 48, in _get_connections_from_db
    .filter(Connection.conn_id == conn_id)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2843, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2995, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 3018, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 948, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context
    context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception
    exc_info
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
    context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 509, in do_execute
    cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) no such table: connection [SQL: u'SELECT connection.password AS connection_password, connection.extra AS connection_extra, connection.id AS connection_id, connection.conn_id AS connection_conn_id, connection.conn_type AS connection_conn_type, connection.host AS connection_host, connection.schema AS connection_schema, connection.login AS connection_login, connection.port AS connection_port, connection.is_encrypted AS connection_is_encrypted, connection.is_extra_encrypted AS connection_is_extra_encrypted \nFROM connection \nWHERE connection.conn_id = ?'] [parameters: ('aws_default',)] (Background on this error at: http://sqlalche.me/e/e3q8)

this is caused by not doing:

setting AIRFLOW_HOME
airflow initdb

once done, issue resolved.


Regression: :resize in :autocmd on :copen fails with E788 (after 8.0.677)

I have an :autocmd that adapts the height of the quickfix window if there are fewer entries in it than the window height (to save screen space).  It boils down to this:
:autocmd BufRead quickfix resize [N]

Since Vim 8.0.0677 (setting 'filetype' may switch buffers; found through bisecting), this fails with E788: Not allowed to edit another buffer now.
The patch locks the current buffer.  However, I don't see why resizing the current window should be affected by the lock.
I tried following the call chain of :resize, but couldn't locate where this encounters the check of curbuf_lock.  All I can offer is the following test (based on Test_cclose_from_copen()) that highlights the regression.  It also uses :autocmd FileType qf instead of :autocmd BufRead quickfix; both show the issue.

Copying here my message from the vim-dev ml:
Hm, here:
,----[ quickfix.c ]-
|   3428 #ifdef FEAT_AUTOCMD
|   3429         ++curbuf_lock;
|   3430 #endif
|   3431         set_option_value((char_u *)"ft", 0L, (char_u )"qf", OPT_LOCAL);
|   3432         curbuf->b_p_ma = FALSE;
|   3433
|   3434 #ifdef FEAT_AUTOCMD
|   3435         keep_filetype = TRUE;           / don't detect 'filetype' */
`----
we are setting curbuf_lock. set_option_value() triggers the FileType
autocommand, and will finally call do_one_cmd() to execute the :resize
command. However in do_one_cmd() we do check curbuf_lock before
continuing:
,----[ ex_docmd.c ]-
|    2463 #ifdef FEAT_AUTOCMD
|    2464         /* Disallow editing another buffer when "curbuf_lock" is set.
|    2465          * Do allow ":edit" (check for argument later).
|    2466          * Do allow ":checktime" (it's postponed). */
|    2467         if (!(ea.argt & CMDWIN)
|    2468                 && ea.cmdidx != CMD_edit
|    2469                 && ea.cmdidx != CMD_checktime
|    2470                 && !IS_USER_CMDIDX(ea.cmdidx)
|    2471                 && curbuf_locked())
|    2472             goto doend;
|    2473 #endif
`----
However it is not clear to me, why there is the check to curbuf_locked()
there, because as you say, there is no indication that we are going to
move to another buffer. Perhaps that should be changed to this
condition:
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index bdd152dfd..a7946d872 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2468,7 +2468,7 @@ do_one_cmd(
&& ea.cmdidx != CMD_edit
&& ea.cmdidx != CMD_checktime
&& !IS_USER_CMDIDX(ea.cmdidx)

          && curbuf_locked())

          && (ea.addr_type && curbuf_locked()))
      goto doend;

#endif
(Well, this seems to fix your case, while still preventing e.g.
au Filetype qf wincmd p)
Best,
Christian

Hello. I configure as moving help window by autocmd FileType help if &l:buftype ==# 'help' | wincmd K | endif. It worked with no errors before but emits E788 error recently. I believe my issue is related to this.
Ken Hamada

I also have the same [new] E788 problem recently and still in 8.0.702 with this -
au FileType qf call AdjustWindowHeight(5, 10)
function! AdjustWindowHeight(minheight, maxheight)
let l = 1
let n_lines = 0
let w_width = winwidth(0)
while l <= line('$')
" number to float for division
let l_len = strlen(getline(l)) + 0.0
let line_width = l_len/w_width
let n_lines += float2nr(ceil(line_width))
let l += 2
endw
exe max([min([n_lines, a:maxheight]), a:minheight]) . "wincmd _"
endfunction
This ex_docmd.c change (from above):

          && curbuf_locked())

          && (ea.addr_type && curbuf_locked()))

resolves it.


Connect to production.cloudflare.docker.com:443

Run Command mvn clean compile jib:build
Error reporting：Connect to production.cloudflare.docker.com:443 [production.cloudflare.docker.com/<IP_ADDRESS>, production.cloudfla
re.docker.com/<IP_ADDRESS>, production.cloudflare.docker.com/<IP_ADDRESS>, production.cloudflare.docker.com/<IP_ADDRESS>, production.cloudflare.docker.com/<IP_ADDRESS>] failed: Connect timed out

It seems the connection from your computer to the Cloudflare docker site was unavailable at that time. Can you retry again, probably from different network?

Duplicate of https://github.com/GoogleContainerTools/jib/issues/4047. If there's network issue, then I'm afraid that Jib cannot resolve that.

isThereAnyOtherWayToOpenALadder？


Do You Have A Dockerfile

Trying to create a container image but need a Dockerfile

The container images are obtained by the shell script via docker pull


Check value of usedforsecurity for hashlib

In Python 3.9+ hashlib has a new argument named usedforsecurity
to indicate whether the hash is intended to be used for security
or not. The default value is True. So a user must explicit set
to False to state their non-security use.
As a result of this chnage in Python, the severity has been
moved up to HIGH if the usedforsecurity is True. But on earlier
versions of Python, the severity will remain at MEDIUM since
we don't know the intent of usage.
https://docs.python.org/3/library/hashlib.html#hashlib.new
Closes #748
Signed-off-by: Eric Brown<EMAIL_ADDRESS>

This PR may not be complete, as I notice that usedforsecurity can also be passed to convenience  functions such as
hashlib.md5(usedforsecurity=True).  The problem is that those checks are currently part of the blacklist calls which
don't support more advanced checking of arguments.  Should I move the hashlib blacklist calls over to the same
plugin?  That might be a breaking change to backwards compatibility.

Should I move the hashlib blacklist calls over to the same
plugin? That might be a breaking change to backwards compatibility.

Maybe in a separate PR?


Kibana instances increasing on Docker

I am trying to run kibana5.1 and elasticsearch5.1 on docker using docker-compose.

Using volumes for elastic search data
Using volume for kibana config file

The challenge I am facing is when I use monitoring on kibana dashboard the no.of instances is increasing each time when I bounce docker-compose
•	When I clear the elastic volumes for data indices first time the no.of instances show up 1
•	Second time its increases to 2 …. So on
•	If we clear the elastic volume data and bounce again the instance will be 1 and again each time we bounce the no.of instances increase for kibana
Any help is really appreciated.
Thanks
docker-compose:
version: '2'
services:
  elasticsearch1:
    image: docker.elastic.co/elasticsearch/elasticsearch:5.1.1
    environment:
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    volumes:
      - /c/Users/dockeroffice/elknode1/data:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
    networks:
      - elk_docker
  kibana:
    image: docker.elastic.co/kibana/kibana:5.1.1
    ports:
      - 5601:5601
    networks:
      - elk_docker
    volumes:
      - /c/Users/dockeroffice/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
    depends_on:
      - elasticsearch1

networks:
  elk_docker:
    driver: bridge

Hi,
Thanks for the detailed report. Unfortunately, I haven't been able to replicate the behaviour.
Could you provide your kibana.yml? I'm guessing that the ID of your Kibana instance is changing with each docker-compose up.
Thanks.

Upon startup, Kibana generates an instance UUID if one doesn't exist, which it stores in the Kibana data directory. If that directory is being cleared upon restart, then it will generate a new UUID.
Monitoring will show one "Kibana instance" per UUID, though note that it will only display Kibana Instance/UUIDs that have sent data in the currently selected time window. So if you are looking at the last 1 hour window (the default), it will show all nodes that had data in that window. If you wait an hour after your last restart of Kibana, you will see just one node displayed, I believe.

Thanks jarpy/sk
I dont have any kibana.yml --> based on the docker i am using the default which is present inside the docker kibana image which i don't provide any volume mapping.
Currently based on your suggestion i do provide a  volume mapping to the kibana data where it create the UUID so my configuration looks like

/c/Users/dockeroffice/kibanadata/data:/usr/share/kibana/data

Could you please confirm is that the right approach. I have tested multiple times  after I stopped the  docker-compose and restarted  it seems to be working where it shows only only instance all the time
Below is the complete
version: '2'
services:
kibana:
image: docker.elastic.co/kibana/kibana:5.1.1
ports:
- 5601:5601
networks:
- esnet
environment:
SERVER_NAME: kibana.docker
ELASTICSEARCH_URL: http://<IP_ADDRESS>:9200/
volumes:
- /c/Users/dockeroffice/kibanadata/data:/usr/share/kibana/data
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:5.1.1
container_name: elasticsearch1
environment:
- node.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- IPC_LOCK
volumes:
- /c/Users/dockeroffice/elknode1/data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
networks:
esnet:
driver: bridge

I think that's a great solution. Nice work, @mathewvino, and thank you @skearns64 for the tip.


chore: switch all workspace deps to use *.workspace = true

Changes

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1403
#1402
#1401  👈 (View in Graphite)
#1400
#1399
#1396
#1395
#1394
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


How to connect to a custom LAN Kubernetes cluster?

Hi Surreal Team,
I have setup a LAN Kubernetes cluster like following:
NAME      STATUS   ROLES    AGE     VERSION
gtx1080   Ready    master   13m     v1.12.3
rtx2080   Ready       6m38s   v1.12.3
Then I got stuck in this step  "surreal_kube_gke.md -> Kube on your own -> 4.When creating the cluster using cloudwise ..."
What are the detailed steps when I am connecting to a custom LAN Kubernetes cluster?
Is cloudwise still needed and how to use it?
Thank you indeed if you could show some instructions.

Hi Jiren,
I appreciate your kindness.
Yes, you are correct. The following is the return of "kubectl get nodes".
NAME STATUS ROLES AGE VERSION
gtx1080 Ready master 13m v1.12.3
rtx2080 Ready  6m38s v1.12.3
Thank you for your help.

I need kubectl describe node gtx1080 and kubectl describe node rtx2080. It will tell me what resources are there on your cluster so I can figure out a way to put components on it.

Understood.
For I am outing, I would provide describe a few hours later.
Would you please have a look later as your convenient?
Thank you.

Sure. I will need some time as well since LAN can be slightly different.

We currently only have explicit support for commercial clouds like GCE. Support for custom Kube cluster is on our to-do list. Thanks for your patience!


Do I need 'locators' section in config?

I adapted the sample config.yaml file that installed with companion but couldn't figure out the locators section (see below), which isn't mentioned in the guidance docs.  Are these used/essential?  Should I enable one but not both?  Any advice would be much appreciated.
ESPCompanion is working in my setup but I'm still tinkering to see if I can improve accuracy and response.
`locators:
nadaraya_watson:
enabled: true
floors: ["first", "second", "outside"]
bandwidth: 0.5
kernel: gaussian
nealder_mead:
enabled: false
floors: ["first", "second", "outside"]
weighting:
algorithm: gaussian
props:
sigma: 0.10
nearest_node:
enabled: true
max_distance: 10`

I've been playing around with both. I have nadarayawatson enabled and find it's pretty good for performance. I leave the other two disabled for now.
But Gaussian was the best prior to NW for me with a moderate sigma of 0.333333.  I'm still not entirely sure how the NW works. I did some reading on the mathematical method on Wikipedia IIRC but didnt have time to really dig into the nitty gritty. I suspect the bandwidth is sort of a fuzziness around the beacon distance to the node. So it's not trying to find a perfect location with multiple nodes that just can't actually be solved. But I could be entirely wrong on that.

many thanks - really good to hear what you have tried as I couldn't find anything about this in connection to this add-on.  I'll enjoy reading the links


fix: when using association query, when the associated entity query i…

fix: when using association query, when the associated entity query is empty, the associated field with zero value will still be used for recursive query.
Example:
type OrderRes struct {
	gmeta.Meta `orm:"table:order"`
	Id         int64           `json:"id"`
	UserId     int64           `json:"user_id"`
	Subject    string          `json:"subject"`
	OrderNo    string          `json:"order_no"`

	PlaceOrder *PlaceOrder `json:"place_order,omitempty" orm:"with:order_id=id"`
	ActorOrder *ActorOrder `json:"actor_order,omitempty" orm:"with:order_id=id"`
}

type PlaceOrder struct {
	gmeta.Meta      `orm:"table:place_order"`
	Id              int64                `json:"-"`
	PlaceId         int64                `json:"place_id"`
	Status          api.PlaceOrderStatus `json:"status"`
	AppointmentTime gtime.Time           `json:"appointment_time"`
	WriteOffTime    *gtime.Time          `json:"write_off_time,omitempty"`
	Place           *Place               `json:"place" orm:"with:id=place_id"`
}

type Place struct {
	gmeta.Meta    `orm:"table:place"`
	Id            int64   `json:"id"`
	Name          string  `json:"name"`
	MainImage     string  `json:"main_image"`
}

if PlaceOrder return 0 rows, gdb will continue query Place by id = 0

Please refer to the same case
https://goframe.org/pages/viewpage.action?pageId=59864423#id-模型关联静态关联With特性-七、后续改进

Codecov Report
Base: 79.98% // Head: 80.00% // Increases project coverage by +0.02% :tada:

Coverage data is based on head (10b602b) compared to base (cbbfd85).
Patch coverage: 0.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2476      +/-   ##
==========================================
+ Coverage   79.98%   80.00%   +0.02%
==========================================
  Files         599      597       -2
  Lines       49785    49668     -117
==========================================
- Hits        39821    39738      -83
+ Misses       8007     7978      -29
+ Partials     1957     1952       -5

Flag
Coverage Δ

go-1.15-386
?

go-1.15-amd64
?

go-1.16-386
?

go-1.16-amd64
?

go-1.17-386
80.00% <0.00%> (-0.01%)
:arrow_down:

go-1.17-amd64
?

go-1.18-386
?

go-1.18-amd64
?

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

Impacted Files
Coverage Δ

database/gdb/gdb_model_with.go
73.59% <0.00%> (-0.97%)
:arrow_down:

os/gspath/gspath_cache.go
84.21% <0.00%> (-10.53%)
:arrow_down:

os/gcron/gcron_schedule_fix.go
81.81% <0.00%> (-9.10%)
:arrow_down:

net/gtcp/gtcp_pool.go
68.88% <0.00%> (-6.67%)
:arrow_down:

os/gfsnotify/gfsnotify_watcher_loop.go
78.15% <0.00%> (-5.05%)
:arrow_down:

os/gfpool/gfpool_file.go
65.71% <0.00%> (-2.86%)
:arrow_down:

os/gmutex/gmutex.go
94.59% <0.00%> (-2.71%)
:arrow_down:

contrib/config/kubecm/kubecm.go

contrib/config/kubecm/kubecm_kube.go

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.


No Jobs in Workspace Causes Error

Running locally with the production flag set to false, when the user has no jobs in the workspace, the following error is seen in the console:
/js/dojo/promise/instrumentation.js:20 TypeError: Cannot read property 'id' of undefined
at TMP.getIdentity (/js/dojo/store/Memory.js:56:16)
at TMP.store.(anonymous function) [as put] (/js/dojo/store/Observable.js:155:25)
at eval (/js/p3/JobManager.js:25:17)
at notify (/js/dojo/_base/Deferred.js:187:23)
at complete (/js/dojo/_base/Deferred.js:168:4)
at dojo.Deferred.resolve.callback (/js/dojo/_base/Deferred.js:248:4)
at defer.when.message (/js/p3/jsonrpc.js:26:10)
at signalListener (/js/dojo/Deferred.js:37:21)
at signalWaiting (/js/dojo/Deferred.js:28:4)
at Deferred.resolve (/js/dojo/Deferred.js:192:5) "TypeError: Cannot read property 'id' of undefined
at TMP.getIdentity (/js/dojo/store/Memory.js:56:16)
at TMP.store.(anonymous function) [as put] (/js/dojo/store/Observable.js:155:25)
at eval (/js/p3/JobManager.js:25:17)
at notify (/js/dojo/_base/Deferred.js:187:23)
at complete (/js/dojo/_base/Deferred.js:168:4)
at dojo.Deferred.resolve.callback (/js/dojo/_base/Deferred.js:248:4)
at defer.when.message (/js/p3/jsonrpc.js:26:10)
at signalListener (/js/dojo/Deferred.js:37:21)
at signalWaiting (/js/dojo/Deferred.js:28:4)
at Deferred.resolve (/js/dojo/Deferred.js:192:5)

i tried new new user account and worked well. i guess we resolved this issue when we revamped the workspace.


support for client.authentication.k8s.io/v1beta1

Is your request related to a new offering from AWS?
No

Is your request related to a problem? Please describe.
support for client.authentication.k8s.io/v1beta1 kubeconfig,  when we create a new EKS cluster.  client.authentication.k8s.io/v1beta1 API available for a while. should be able to generate kubeconfig with v1beta1 api.

Describe the solution you'd like.

Describe alternatives you've considered.

Additional context

not stale

#1550 was merged

#1550 was merged

Thank you @daroga0002


[WIP][CROSSDATA-818]Removed Server config as trait

Description
Refactoring configurations
Testing

[ ] Unit, integration tests

Documentation

[ ] Changelog update
[ ] Documentation link

Coverage decreased (-1.4%) to 34.304% when pulling 44d65bfabfc8f35d8038508bafb275eeb82843f1 on pianista215:feature/remove_trait_config into 5425f79574ef1573846d4325fd09c33d5e887870 on Stratio:master.

Coverage decreased (-1.4%) to 34.304% when pulling 6426e51e53301a4815d57ced9ab2c8751b7b3bcc on pianista215:feature/remove_trait_config into 5425f79574ef1573846d4325fd09c33d5e887870 on Stratio:master.

Coverage decreased (-1.4%) to 34.314% when pulling 7fafa135b4c1848f30c7200f8771591fb6216539 on pianista215:feature/remove_trait_config into 5425f79574ef1573846d4325fd09c33d5e887870 on Stratio:master.


Support refetching if options.body changes, even if url doesn't

In the version that I'm using, https://github.com/techniq/react-fetch-component/blob/ad8786215f9352b8c91524d753aa5ec7133383d4/src/Fetch.js#L58 specifies that we shouldn't refetch if the url hasn't changed.
In my code I'm using this component with a POST call with a body, where the user can modify the page state to change the body, which I'd like to trigger a refetch, but since the URL is the same, it doesn't. I worked around this by adding a fragment to the end of the URL that takes a hash of the body, but it'd be nice if this just worked by default. At minimum, it would be good if this behavior was documented, since I had to spend a decent amount of time poking around before I figured it out.

Yea, I admit that this is a bit of an odd usecase; the API we're calling is doing an analytic query, so it's not actually modifying state, but it may require a lot of input params that are better suited to a body and the query isn't computationally cheap, so it's a POST (I also didn't design the API we're calling, so I don't have much control over the decision :P)
Yea, while options.body is my particular usecase, a more generic solution makes sense to me.
Yea, there are plenty of workarounds. We could use manual, or just keep doing the url fragment thing, so this isn't super urgent. It was mostly just not intuitive to change the body and have it not refetch and not know why without digging into source code.

@ncknuna I added support for this use case with a new deps (aka depenencies) prop.
I use this on new GraphQL component I'm working on where you always POST to the /graphql endpoint with a different body (query/variables).  So far it's working well (and plan to open source it once I've settled on the API.  Plan is to keep it lightweight (much more so than apollo-client, etc).  It's based on react-fetch-component similar to how my react-odata one was.
I need to update the docs to show deps, but take a look at the commit and tests.

@ncknuna Forgot to mention this is in v8.0.0-9 prerelease.  Just waiting for Hooks to be released (maybe Feb 4th) but make it 8.0 stable.

Ah, cool, thanks :D


[feature] Custom Web3Button label

What problem does this new feature solve?
Thanks for the cool library! I wondering if I can change/modify the label of the button, instead of display "Connect Wallet" and the WalletConnect's logo. I've searched the document but got nothing related to it so I guess it's not available for now yet. I understand that I can do the whole thing with standalone version but I'm using Wagmi to create client connections so using standalone version is not the ideal choice.
Describe the solution you'd like
Maybe we can publish new props for <Web3Button /> to change the label and icon, such as <Web3Button label="Hello world" icon={<CustomIcon />}

nvm, I found the prop label


feat(deployment/daemonset): Remove imagePullPolicy from charts

Pull Request Checklist

[ ] Any new images or tags consumed by charts has been added here
[ ] Chart version has been incremented (if necessary)
[x] That helm lint and pack run successfully on the chart.
[x] Deployment of the chart has been tested and verified that it functions as expected.
[ ] Changes to scripting or CI config have been tested to the best of your ability

Types of Change

Remove ImagePullPolicy: "Always" from daemonset and deployment

According to documentation if you specify version of image tag, automatically ImagePullPolicy is set to IfNotPressent.
And vice versa if you not specify version of image tag (keep latest) ImagePullPolicy is set to Always.
So keep ImagePullPolicy hard coded to Always in charts does not make sense.
It overrides to Always even if image tag is defined.
Linked Issues

Additional Notes

Helm lint

After the PR is merged
Once the PR is merged, typically upon a new release, the necessary teams will be notified via Slack hook to perform the RKE2 Charts and RKE2 changes. Any developer working on this issue is not responsible for updating RKE2 Charts or RKE2.

Hi @Mart-Kuc, according to k8s documentation, the overwriting happens only when the ImagePullPolicy is not specified. So setting ImagePullPolicy: "Always" actually takes effect and works as expected.
Please correct me if I misunderstand anything.

Hi @Mart-Kuc, yeah, it makes sense.  Just for clarification, the tag latest will never be used because the value will be overwritten by a specific tag from the  versionOverrides section.
Instead of removing the ImagePullPolicy line from both files, could you convert it to a new option in the value.yaml and set the default value ("") , under csiController and csiNode sections? It will provide some flexibility for users who needs it.

Bumped

Hi @brandond, could you review this PR? We need two approvals before merging it.


BBC video download is unplayable in quicktime for mac and receiving 403 error.

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.06.19. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.06.19

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.bbc.co.uk/iplayer/episode/p069dkj5/motd-2018-world-cup-sweden-v-south-korea-mini-highlights', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.06.19
[debug] Python version 2.7.10 (CPython) - Darwin-17.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1
[debug] Proxy map: {}
[bbc.co.uk] p069dkj5: Downloading video page
[bbc.co.uk] p069dkj5: Downloading playlist JSON
[bbc.co.uk] p069dkq0: Downloading media selection XML
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading MPD manifest
[bbc.co.uk] p069dkq0: Downloading MPD manifest
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[bbc.co.uk] p069dkq0: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading MPD manifest
[bbc.co.uk] p069dkq0: Downloading MPD manifest
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading m3u8 information
[bbc.co.uk] p069dkq0: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[bbc.co.uk] p069dkq0: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://vod-dash-uk-live.bbcfmt.hs.llnwd.net/usp/auth/vod/piff_abr_full_hd/0e1351-p069dkq0/vf_p069dkq0_e08174bb-c925-409d-8ad1-9ee3b0610802.ism.hlsv2.ism/dash/'
[dashsegments] Total fragments: 50
[download] Destination: Match of the Day, MOTD 2018 World Cup, Sweden v South Korea - Mini Highlights-p069dkq0.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash_https-video=5070000.mp4
[download]   2.0% of ~63.97MiB at 62.10KiB/s ETA 20:40^C
ERROR: Interrupted by user

Description of your issue, suggested solution and other information
I am trying to download highlights/replays of football/soccer matches from bbciplayer. I am using NordVPN and have also made an account with bbc. I can view this video in my browser, chrome or safari. The first problem is that an error appears saying "WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden", but after it goes through that a couple times the video starts downloading. It successfully downloads however when I go to open it, it says Quicktime Player cant open "(name of the video)". I stopped the download this time since I didnt want to wait 20 minutes but I was able to download it earlier.  THanks in advance for your help.

@dstftw Hi, I am really sorry, I have read the one you are saying is a duplicate, and do not understand how it is related/how it helps me fix this. The main problem was quicktime player not opening it, not downloading just part of the video. Doing my best here but I have very limited knowledge of coding. The help on these forums is amazing to see, and I definitely need it.

Use normal players. mpv and vlc play these files just fine.


Windows App Certification Kit Failing

I developed an app with Xamarin.Forms and currently trieing to put it out into the different stores for Android, iOS and, UWP.
Whenever I use the Windows App Certification Kit my app won´t pass with whis error message:
API sqlite3_win32_set_directory in winsqlite3.dll is not supported for this application type. [My App].dll calls this API.
I have already tried the newest release of sql-net-pcl: 1.5.166-beta
Any idea how to fix this?? (I need the app to be in the Windows Store as soon as possible :/ )
If you need more information feel free to ask!

Possibly related to ericsink/SQLitePCL.raw#198

I think people have worked around this problem by using the bundled e_sqlite3 DLL instead of the winsqlite3.dll provided by Windows.

First of all thanks a lot for the fast reply :)
So I tried installing SQLitePCLRaw.provider.sqlite3.uwp10 and removing the previous raw, but it didn't help.
I also tried other DLLs with e_squlite3 but always the same result.
Maybe I'm missing a step during installation the NuGet-Packages?
How is switching to another DLL done correctly?

In solution explorer, right click on your solution name, click in manage nuget packages for solution.
On the Nuget manager, select Installed Tab, click on the nuget you want to remove.
On the right portion of the page, select all projects on the list and click the uninstall button right bellow.

Glad to hear I did it right all the time :)
So I deinstalled everything related to sql-net-pcl to have a fresh start and just out of curiosity I checked WACK without the package installed. It turns out sql-net-pcl (or the specific UWP parts) wasn't the problem because the test failed with exactly the same errormessage....
So I tried out a lot of different things..... It turned out: Visual Studio just needed an update from version 15.6.5 to 15.7.1
Wow.....
At least it is working now :D
So thx a lot to everyone! This issue can be closed.


How do I cite this tool?

I would like to mention this tool in an article. How do I cite it? Is there a technical report?
Please add a BibTeX block the docu. Thank you

Nice. Thank you!


Themes - add title bar class and color options to match sidebar background color for each theme

Since Sublime Text dev build 3127 the option to change the background and foreground color of the window titlebar has been available (only available on OS X 10.10+). In this PR, I've set the titlebar bg color to match the bg color of the sidebar for each theme. See screenshots below for examples.

@saadq Perhaps a more friendly and universally satisfying approach would be to allow a feature like this as a Theme option: "material_theme_title_bar": true rather than forcing users to adopt it.

Firstly, awesome work. Didn't know about this feature, it looks great! Just wanted to confirm – were there no issues in Windows/Linux with having this extra "title_bar" setting since there's no support? Does it just ignore that setting in that case?
This is just imo, but I think that the colored title bar fits the theme of Materialize pretty well and I think it should be on by default. Although I agree that there should still be a way to turn it off, so a "material_theme_title_bar" option would be good, but maybe have it true by default.
What are your thoughts on it?

What are your thoughts on it?

Since Windows/Linux does not support this feature, they will simply ignore the "title_bar" class in each .sublime-theme file with no side effects.
I like your idea of having a Theme option for this which defaults to true. I'm not sure how to wire that up, but I'll have a look around at some code - I'm sure I'll be able to figure it out. Thanks for the feedback. I'll be in touch soon.

I discovered a bit in my research for this today:
For each theme, I set "platforms": ["osx"] for the "title_bar" class. Though windows and linux showed no side effects from including the "title_bar" class in each theme, this will help future proof this style from ever creeping into the other platforms and causing unexpected behavior.
I also set the "title_bar" class to only apply when the setting "material_theme_title_bar" is true. The only way I could find to default this setting to true was to add a Preferences.sublime-settings file into the root directory and set this setting there. With this in place, setting "material_theme_title_bar": false in User preferences has the expected behavior.
If you are unhappy with the addition of the extra Preferences.sublime-settings file in the root directory, I can remove it. Each user would then just have to turn it on individually in their User preferences. If you have any ideas of a better way to go about enabling this by default, let me know.
I'm open to any additional feedback or insight you have.
If you are happy so far, I can go ahead and add "material_theme_title_bar" into the Theme Options section of the README (being sure to mention it is OSX specific and enabled by default) and add documentation anywhere else its needed.

@saadq updated title_bar fg (text) colors to match theme colors. Takes from class: sidebar_label parent attribute: expandable. Line ~586 in most themes.
Let me know how you feel about this and what other work I can do to push this forward. Thanks.
Theme: Toy Chest

Theme: Primer Light

Thanks very much for your work! I'm going to review this in-depth tomorrow, but it's looking really good :)

Alright, so I just went over this. Everything looks really good – the one thing I'd like to see changed is having the title bar's color be different than the background color. Right now, I believe you have the title bar's background color to be set to the background color of the contrast mode. Instead, it would probably make sense to keep the background color of the title bar to be consistent with the theme. If the material_theme_contrast_mode option is enabled, then you can make the title bar's background color the contrast version.
For example, with Material Spacegray you can have this at the top:
{
  "class": "title_bar",
  "settings": ["material_theme_title_bar"],
  "platforms": ["osx"],
  "fg": [175, 189, 196],
  "bg": [43, 48, 59]
}

but then in the contrast mode options (in line 3355 in Material Spacegray.sublime-theme for example), it should have this:
{
  "class": "title_bar",
  "settings": ["material_theme_contrast_mode"],
  "platforms": ["osx"],
  "fg": [175, 189, 196],
  "bg": [41, 45, 55]
}

Does that make sense? Let me know if I can clarify.

@saadq That makes good sense. I'll work on those changes.

Ah woops I meant "settings": ["material_theme_contrast_mode", "material_theme_title_bar"] for the contrast mode thing, but yeah haha sounds good

Super excited for this change. The colored titlebar is one of my favorite features of themes

Sorry I haven't completed this yet - I've been traveling for work more than usual lately. I'll complete these changes by this weekend.

Sure thing, take your time and let me know if I can help at all or if you have any questions. Great work so far, looking forward to see this in Materialize :)

Looking forward to this too! Any news on getting it merged?

Hey @rudedogg I'm ready to merge whenever it is finished. Currently, this PR makes the title bar the color of the contrast mode. I requested changes to make the title bar color the same color as the theme, but use the contrast mode color when material_theme_contrast_mode is enabled. I mentioned above how this would be done.
I imagine @paulhirschi has been busy, but I can always accept a PR from anyone else who would want to implement this if he lets me know that he doesn't have time for it.

@saadq @rudedogg Hey - this fell off my radar a bit. Had some business travel right after I began and spent quite a bit of time away from home. There isn't much work to make it ready - I'll make time to get this finished up and ready this coming week. Thanks for your patience!


Implement escaping/unescaping for string values

Would it be the time to update the README?

Reviewed files:

json_test.go @ r1
json_util.go @ r1
ucl.go @ r1
ucl.rl @ r1

json_util.go, line 20 [r1] (raw file):
s/json_escape/jsonEscape/
if there is a good reason for this naming, please document it

json_util.go, line 21 [r1] (raw file):
why not bytes.Buffer and b.WriteString + bb.WriteRune ?
My quick measurements showed that it's way faster and probably have less GC pressure (since strings are immutable).

json_util.go, line 44 [r1] (raw file):
s/s/r/ ?
why is the replace needed, wouldn't the loop above already handle " ?
please test encoding as well

json_util.go, line 51 [r1] (raw file):
hexDigitValue

json_util.go, line 63 [r1] (raw file):
s/json_unescape/jsonUnescape/

json_util.go, line 64 [r1] (raw file):
bytes.Buffer here as well?

Comments from the review on Reviewable.io

Done.

json_util.go, line 20 [r1] (raw file):
Done.

json_util.go, line 21 [r1] (raw file):
Good point, thanks.

json_util.go, line 44 [r1] (raw file):
Oops, forgot to replace it with return r

json_util.go, line 51 [r1] (raw file):
Done.

json_util.go, line 63 [r1] (raw file):
Done.

json_util.go, line 64 [r1] (raw file):
Done.

Comments from the review on Reviewable.io

Reviewed files:

json_test.go @ r2
json_util.go @ r2
main.go @ r2
README.md @ r2
ucl.go @ r2
ucl.rl @ r2

Comments from the review on Reviewable.io


[Snyk] Upgrade org.apache.tinkerpop:tinkergraph-gremlin from 3.4.13 to 3.6.1

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade org.apache.tinkerpop:tinkergraph-gremlin from 3.4.13 to 3.6.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 7 versions ahead of your current version.
The recommended version was released a month ago, on 2022-07-21.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Not valid without synchronized bytecode and runtime compatability changes


Issuer of the Response seems optional in the saml 2 spec

Hi,
I am building a SP for an IDP wich provides no <saml:Issuer> in the response (but a valid <Issuer> is given in the assertion).
This seems to be valid according the saml core spec found here https://www.oasis-open.org/committees/download.php/35711/sstc-saml-core-errata-2.0-wd-06-diff.pdf section 3.2.2

<saml:Issuer> [Optional]
Identifies the entity that generated the response message. (For more information on this element, see Section  2.2.5.)

The OneLogin_Saml2_Response does not validate this response : https://github.com/onelogin/python-saml/blob/master/src/onelogin/saml2/response.py#L377
I dont know how to workaround that without monkeypatching or some copy pasta and proxy magic
So here my question: will a pull request for a new setting allowing no issuer in the response be accepted ? Or is there a better way to work around this issue ?
Thanks

You are right, the Issuer on Response is optional.
Fixed at: https://github.com/onelogin/python-saml/commit/7e4d502c4b64ac6075577197a0096de89fb1ad01

Thanks!
I just made a pull request to backport this commit on the python3 version.
see https://github.com/onelogin/python3-saml/pull/49


enhancement

Add sqlite feature for local storage

Hi there, Firebase has its own implementation for handling offline data, this template is going to use that implementation, I won't implement any other offline databases.


Upgrade frunk from v0.3.1 to v0.4.0

Bumps frunk to a much more recent version.
I also fixed some broken doc tests and cleaned up some formatting in the process. I'm not sure how you are versioning teloc, but I bumped the version numbers in a PR since the frunk upgrade has some breaking changes for anyone who is using teloc::reexport downstream. Let me know if anything looks off or needs changing

@p0lunin Let me know if you want me to split this commits up into separate PRs for faster review

@aburkhalter512 I don't know clippy upgrade produce errors or it is my fault i have not check code before, but can you fix it in this PR?
I'll check changes some later.


CardExpiryField becomeFirstResponder conditions

CardExpiryField should become first responder only if the CardNumberField is valid and Expiry or CVC is invalid.
Also add missing PTKCardType.m in the example project

Hey @tsivilay,
As part of a large refactor, this code has moved to our iOS SDK at https://github.com/stripe/stripe-ios, which now has a class called STPPaymentCardTextField with similar behavior to PTKView. That class already handles becoming first responder in a more responsible way, so I'm going to close this PR in favor of that. I'd also encourage you to migrate your apps to use our SDK instead of this library (it should take just a few minutes, and we've written a brief guide at https://github.com/stripe/paymentkit#migration). Of course, if that doesn't work for you, or you have any trouble migrating, reply here and I'll be happy to help. Thank you for opening this PR, though, and I'm sorry we won't be able to get it merged.
Cheers!


Fix overlay overlapps the popup menu created by PopupMenuButton

Description
This PR proposes a solution to get the popup menu alway showing on top of other overlay entries.
PopupMenuButton shows the popup menu by adding a route the closest navigator. The navigator manages the corresponding overlat entries.
This is fine until the app also inserts a custom OverlayEntry to the same Overlay used by the navigator.
When doing so, the custome OverlayEntry will always appear on top of OverlayEntry created by routes.
This PR fixes the issue by adding a new parameter to NavigatorState.push in order to force the route overlay entries to appear on top of other existing overlay entries.
Related Issue
Fixes Overlay overlapps the popup menu created by PopupMenuButton
Tests
TBD

Closing as it breaks some customer tests in Cocoon.


testing something

seeing if the CI completes

well the tests are at least running now, even if the .env test is failing, so i'll consider this a success


always show lightbulb when lsp is active

Could you help me with settings up options/autocommand to show light bulb whenever code actions are available and not just on CursorHold ?

Not showing bulb when cursor somewhere else

Shows when cursor is there

I'm not sure what you mean here, the lightbulb shows up whenever there is a code action to perform at your cursor location, ie. if you see the lightbulb you'll get code actions to perform when you run vim.lsp.buf.code_action().

Sorry for lack of clarification. What I meant is that I would like to show the lightbulb shows up whenever there is a code action to perform. Not depending where the cursor is

I see. This is probably a duplicate (or at least similar to) #10. My response to that is this:

Hi, I doubt that is possible, since code actions are position dependant on the LSP server side, and the server will not return a code action for let's say, swapping function parameters if I ask for a code action for the entire line.

A workaround would be to ask the server for possible code actions for every single column on the line, but I feel that it would be very resource intensive and not worthwhile.

Let me know if I misunderstood.

I understood. If it makes the plugin more resource-intensive, I rather not have it

I understood. If it makes the plugin more resource-intensive, I rather not have it


Error calling with java a exported function by eta in a multi-thread environment

Description

I want to export a function like this:
foreign export java "@static eta.example.MyClass.sayAnything" sayAnythingEta :: String -> IO ()
sayAnythingEta text = do
putStrLn text
return text
How can I call it in java. Further more, how call I call it in java multi-thread mode.
I try to run it in java multi-thread environment, then I got exceptions:
Exception in thread "pool-1-thread-5" eta.runtime.exception.EtaException: thread blocked indefinitely in an MVar operation
at eta.runtime.stg.Capability.detectMVarDeadlock(Capability.java:703)
at eta.runtime.stg.Capability.idleLoop(Capability.java:690)
at eta.runtime.stg.Capability.blockedLoop(Capability.java:728)
at eta.runtime.stg.Capability.blockedLoop(Capability.java:724)
at eta.runtime.concurrent.Concurrent.takeMVar(Concurrent.java:71)
at base.ghc.io.handle.Internals$$wa2.call(Internals.hs:164)
at base.ghc.io.handle.Internals$a3.applyV(Internals.hs:133)
at eta.runtime.exception.Exception.maskAsyncExceptions(Exception.java:42)
at base.ghc.io.handle.Internals$$wa4.call(Internals.hs:131)
at base.ghc.io.handle.Internals$$wa3.call(Internals.hs:237)
at base.ghc.io.handle.Internals$wantWritableHandle1.call(Internals.hs:227)
at base.ghc.io.handle.Text$hPutStr2.call(Text.hs:544)
at main.Main$$fe_sayHelloEta1.call(Main.hs:10)
at main.Main$$fe_sayHelloEta.call(Main.hs:9)
at main.Main$$fe_sayHelloEta.applyV(Main.hs:9)
at eta.runtime.stg.Closures$EvalIO.enter(Closures.java:177)
at eta.runtime.stg.Capability.schedule(Capability.java:246)
at eta.runtime.stg.Capability.scheduleClosure(Capability.java:202)
at eta.runtime.Runtime.evalIO(Runtime.java:400)
at eta.example.Duckling.sayHello(Unknown Source)
at Main$1.run(Main.java:18)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Please help me!

Hi! I think you have made a typo in your example, i suppose it is:
foreign export java "@static eta.example.MyClass.sayAnything" sayAnythingEta :: String -> IO ()
sayAnythingEta text = do
  putStrLn text
  return ()

I've just test something similar with lastest etlas and eta and it worked for me.
What do you mean with "java multi-thread environment"?

@jneira Hello, jneira, thank you for your answer. Actually, my program is multi-threaded, I want to call this function in multi-threaded state. Just like this:
public static void main(String[] args) {
        ThreadPoolExecutor threadPool = (ThreadPoolExecutor) Executors.newFixedThreadPool(100);

        long t0 = System.currentTimeMillis();

        for (int i = 0; i < 10; i++) {
            threadPool.execute(new Thread() {
                @Override
                public void run() {
                     eta.example.MyClass.sayAnything("Hello eta.");
                }
            });
        }

        threadPool.shutdown();
        try {
            threadPool.awaitTermination(Long.MAX_VALUE, TimeUnit.MINUTES);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        long t1 = System.currentTimeMillis();

        System.out.println("Time: " + (t1 - t0));
}

How can I achieve this?

I've reproduced the error in a test project: https://github.com/jneira/eta-test/blob/print-ffi/java/Utils.java#L47-L71
It may be a bug in the runtime (maybe @rahulmutt could confirm it)

@rahulmutt Is there any solution to this problem?


Null string printed when kafka instance created through interactive mode

Description
While creating a Kafka instance through interactive mode, name is null in info log.
Version: 0.24.3

Steps to reproduce

./rhoas kafka create
After inputting all the values, we should be able to see the message: Creating Kafka instance ""...

Screenshot

Fixed in #696


Show more information about which ones are not successfully caches

Show more information about which ones are not successfully cached, addressing issue 57.

@phptek I have disabled my memcached mode and used 'File' mode and break the ability of some pages being cached (such as remove a page type from project) , then everything still working, except the FAIL part is always "0" out of total, hence no any specific missed ID showing up, ie. I could never create a partially failed cached store. Givem the fact that there is only one cache file per site per stage in 'File' mode, this is what supposed to happen. see my screenshot


Fix path status_mjpeg.txt

I had to replace the link in the installer, because at this location there was no file. Did anyone else experience this? But i think this is not the perfect solution. Could you help me with this. The installer says this status file does not exist.

Strange. I haven't heard of that one before. /dev/shm and /run/shm should be linked. I'll do a bit of checking.


Weights, fees and storage bloat

We need to improve our weights and fees, as well as how we handle storage bloat. We need to do this to prevent DoS attacks. This includes:

[ ] charging for storage. A lot of calls add items to storage but we don't charge based on size
[ ] we need to remove old state when it becomes irrelevant
[ ] we need to implement existential deposits

[ ] perhaps also for vaults - vaults that have almost no collateral can be removed

[ ] We need to parametrize the weights of functions better so that we address their actual complexity (instead of using a fixed value)
[ ] We need to re-run the benchmarks on a machine that represent the typical node hardware
[ ] Functions that need to improve their weight determination include all functions that deal with bitcoin transactions. We might want to use pre-parsed structs rather than raw bytes to make that easier.
[ ] We need to address unbounded iteration in e.g. execute_issue
[ ] We should re-evaluate the amount we charge per byte in the extrinsic
[ ] We should re-evaluate how we determine xcm fees
[ ] Some of our dependencies use configurable weights. We currently use the default but we may want to override them
[x] Pallets should not use #[pallet::without_storage_info]. See my stackoverflow question

[x] All storage items should implement MaxEncodedLen

[ ] we should start using dispatch classes. See https://docs.substrate.io/build/tx-weights-fees/
[x] attach #[pallet::whitelist_storage] to storage items that are read every block

Listing all pallets that we should check weights of below:

[ ] our pallets

[x] annuity (note: has WeightInfo config)
[x] bitcoin (no extrinsics)
[ ] btc-relay (note: has WeightInfo config)
[x] clients-info (note: has WeightInfo config)
[x] collator-selection (note: has WeightInfo config)
[x] currency (no extrinsics)
[x] democracy (note: has WeightInfo config)
[x] dex-general (note: has WeightInfo config)
[x] dex-stable (note: has WeightInfo config)
[x] dex-swap-router (note: has WeightInfo config)
[x] escrow (note: has WeightInfo config)
[x] farming (note: has WeightInfo config)
[x] fee (note: has WeightInfo config)
[ ] issue (note: has WeightInfo config)
[x] loans (note: has WeightInfo config)
[x] nomination (note: has WeightInfo config)
[x] oracle (note: has WeightInfo config)
[ ] redeem (note: has WeightInfo config)
[ ] replace (note: has WeightInfo config)
[x] reward (no extrinsics)
[x] security
[x] staking (no extrinsics)
[x] supply
[x] traits (no extrinsics)
[x] tx-pause (note: has WeightInfo config)
[x] vault-registry (note: has WeightInfo config)

[ ] External pallets with weight info:

[x] frame_system
[ ] pallet_session
[x] pallet_timestamp
[x] pallet_utility
[ ] orml_vesting
[x] pallet_preimage
[x] pallet_scheduler
[x] pallet_multisig
[x] pallet_treasury
[x] pallet_collective
[x] pallet_membership
[x] orml_tokens
[ ] orml_asset_registry
[x] pallet_identity
[x] pallet_proxy
[ ] orml_xtokens
[x] pallet_xcm
[x] cumulus_pallet_xcmp_queue
[ ] xcm_executor (e.g. Weigher type)

[ ] External pallets that we should reconsider config of:

[ ] pallet_transaction_payment

Also need to review https://github.com/interlay/interbtc/pull/710

From SR-labs:
Storage deposit fees are missing for multiple crates: example btc-relay,clients-info and democracy. An attacker could clutter the storage by calling extrinsics that save data into the blockchain database multiple times. A similar issue was also reported on the previous audit about missing storage deposits.
The following extrinsic are affected:

initialize extrinsic performs insert into storage as _store_block_header with following functions which in turns calls helpers for insertion into storage:

create_and_store_blockchain

extend_blockchain

Self::reorganize_chains(&blockchain)?;

register_as_candidate extrinsic performs insert into storage through <LastAuthoredBlock>::insert(

propose performs deposit without any storage deposits as DepositOf::::insert(index, (depositors, value));

fast_track_referendum extrinsic performs insert into storage through ReferendumInfoOf::::insert(ref_index, ReferendumInfo::Ongoing(status));

vote extrinsic performs insert into storage through try_vote as ReferendumInfoOf::::insert(ref_index, ReferendumInfo::Ongoing(status));

remove_vote extrinsic performs insert into storage through try_remove_vote as ReferendumInfoOf::::insert(ref_index, ReferendumInfo::Ongoing(status));

increase_unlock_height through deposit for insert into storage <Locked>::insert(who, new_locked.clone());

add_market performs insert into storage as Markets::::insert(asset_id, market.clone()); and ExchangeRate::::insert(asset_id, initial_exchange_rate);


Send agent final turn updates before game ends

Kaggle environments will need this as they need the updated state (and use the updates sent to agents to update the state) to get the correct rewards and decide win/lose.

Also add a python test for this in the kaggle envs probably?


Test: OpenCV Performance on Raspberry Pi

Huge progress has been made in regard to video support in the past few pull requests. However, concerns about the performance of the Raspberry Pi do exist as the testing platform, Apply M3 Pro, is only able to provide a video feed at almost 30fps. Therefore, it is likely that OpenCV runs as slowly as GStreamer does on the Raspberry Pi. This poor performance wouldn't affect the dashboard anyway though.
Ideally, this is what we have accomplished so far:

The monitor is just an additional widget. You can still switch back to other widgets.
It now supports up to 4 cameras, of which 1 is enabled in this case, which are front view, left view, right view, and rear view respectively.

The performance of the raspberry barely supports OpenCV. The bottleneck seems to be encoding and decoding.

Trying on a virtual machine to see the minimum requirement.

The bottleneck is Pillow.

If use OpenCV instead, it consumes 10%.

@qmascarenhas Is it possible to schedule this test for Monday during the second period or after school?

yes - we could do that.

@qmascarenhas That period just got occupied. What about Tuesday's last period?

Raspberry Pi fails to run devices_visual.py.


Convert pdf to md simplified Chinese character issue

All simplified Chinese characters in the MD file generated from PDF are garbled.
I user docling version 2

Are you using the CLI? I'm wondering if what you see could be solved by this fresh new PR https://github.com/DS4SD/docling/pull/214

@dolfim-ibm yes, I using tghe CLI to convert.Is it possible to specify the encoding for the output file using CLI commands?

All simplified Chinese characters in the MD file generated from PDF are garbled. I user docling version 2

this is due to EasyOCR configuration, you need to change the EasyOCR lang configuration to ["en", "ch_sim"]

I noted. I will try to change EasyOCR lang configuration.Thanks for your support!

And how can I change the language through DocumentConverter()? I couldnt find any mention of changing a language in the source code for that class

@derekhsu Yes, the selection of languages in the cli will be supported soon.

The option will be supported in the cli this week.

The CLI options for OCR have been released in https://github.com/DS4SD/docling/releases/tag/v2.6.0


[site] Add links to new documentation from the site

Summary
This PR has mostly the same intent as https://github.com/lowRISC/opentitan/pull/17400 but splits the CSS into separate files. It also includes a fix for the tiles on the documentation page in darkmode.
I made this as a separate PR to #17400 to preserve the original commits we made when working on this.
This PR adds links into the mdbook from the site.

Links in the header and footer to documentation, getting started, and dashboard.
New "documentation" page with links into different parts of the documentation.

This work was done separately elsewhere and factored into these commits.
There is some refactoring happening here to make the new page easier to add:

Style for the landing page moved to landing.css
Style and layout for the info pages moved to info.html and info.css
Header, footer, and theme selector extracted out of index.html.

This allows us to add a new page layout (single.html and single.css) for pages like the documentation page.
Screenshots
This screenshot shows the new header, footer, and the documentation page. This header and footer is now also used on the landing page.

@jwnrt How happy are you with the changes here as it stands? I'm inclined to close #17400 in favor of this, but I am more familiar with the changes there just because I've been using them on staging.opentitan.org.
Shall I close that PR and ask people to review this one? Or should I get that one merged and then rebase this on top of master as a follow up?

@jwnrt How happy are you with the changes here as it stands?

I'm happy with these changes, don't think there's anything else I wanted to do here.

I'm inclined to close #17400 in favor of this, but I am more familiar with the changes there just because I've been using them on staging.opentitan.org. Shall I close that PR and ask people to review this one? Or should I get that one merged and then rebase this on top of master as a follow up?

Since these changes are the same as #17400, I'm happy for this PR to be reviewed instead.

Rebased

Squashed fixup


Post-MLMD DB Redesign

Describe changes
I implemented/fixed _ to achieve _.
Pre-requisites
Please ensure you have done the following:

[ ] I have read the CONTRIBUTING.md document.
[ ] If my change requires a change to docs, I have updated the documentation accordingly.
[ ] If I have added an integration, I have updated the integrations table and the corresponding website section.
[ ] I have added tests to cover my changes.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Other (add details above)

Closing this in favor of https://github.com/zenml-io/zenml/pull/1058


using keyword to simplify for input and easy for modify defines

demo:
// {type:usecase}
// {generate:false}
(a1:the demo user case)>(a2:abc)
(a1)>(a3:the third case)
(a2) > (login)

(login)>(a2)
(login)>(a3)

using ':' to split keyword and content, and can direct using short keyword in below
i add new  'dict.js' to process it ,
and add some line to convert keyword.
good project!
enjoy~~

because vscode auto format, many lines changed :(
my commit only add dict.js and one line in parseYumlExpr()
eg:
// modify by zhfjyq, using dict for sample input
part = dict(part);

Thanks for the PR. I will have to review all this.
btw, it is not good to include many different topics in a single PR, it makes it harder to review.


Child products doesn't whow images

Hi guys,
I'm testing the current project and i found this:

"Chal rojo" is a child product and doesn't show any image.

You can see here that "Chal" have a variant product called "Chal Rojo", "Chal" have image because we can add images to a parent product.

Hi @SalahAdDin.
Before submitting an issue it would be best to search for already existing issues. A quick search gives these issues, where discussion has already has taken place.
https://github.com/django-oscar/django-oscar/issues?utf8=✓&q=child images
Please close this issue. Thanks.
If you need general help, instead of submitting issues it is best to use the discussion forum at https://groups.google.com/forum/#!forum/django-oscar

I would like to add that from personal experience Django Oscar is not an off the shelf solution if you need to manage a website that has products made up of parents with multiple child variations, such as a clothing store that sells products in different sizes and colours.
Oscar requires writing a lot of custom business logic in order to facilitate selling and managing these kinds of products well enough, including having to make significant changes to the Dashboard app for creating and managing products with variations. This includes adding support for child products to have their own images.
There are several open issues related to bringing support in Oscar to managing and selling these types of products, which you can use to garner more information on what Oscar does/does not currently support.

@digicase I'm sorry for say this but mailing list is, until now, useless, i do two questions and i haven't answers yet.

OK understood. But opening up redundant issues, and also leaving comments on open issues like you just did (which was simply a thumbs up emoji), is not in my opinion the best way to get help. The Oscar community is small, the core developers seem to be extremely busy and the original developers have all but left the project.
I've found the best way is to go ahead and write my own custom code for features I need, using Oscar as a base. I search the Google Group and the Gtihub issues for any pointers I can find.

Left the project? O no, why? :'(
I'm waiting for help in groups, when i'll finished my projects, or at least solved these problem i want contribute here.
Until now i forked a django-oscar-payu package but have problems with it.

I use simple hack :)
https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/catalogue/abstract_models.py#L625
except IndexError:
            if self.parent:
                return self.parent.primary_image()

thats all, works for me.

Fixed in 958a973d2282c94b569a7c00562f6f9b40ca5bb9.

@sasha0 Thank you man!


Inconsistent div element placement across devices

Hello again,
I'm doing some tests with 2d masks for prototypes and am getting inconsistent eye placement across devices. I'm using the jeeFaceFilterCanvas to hold it. Here's my tweaks for the object. This image is closely cropped.
var SETTINGS={
rotationOffsetX: 0, //negative -> look upper. in radians
cameraFOV: 40,      //in degrees, 3D camera FOV
pivotOffsetYZ: [0,-0], //position the rotation pivot along Y and Z axis
detectionThreshold: 0.9, //sensibility, between 0 and 1. Less -> more sensitive
detectionHysteresis: 0.02,
mouthOpeningThreshold: 0.5, //sensibility of mouth opening, between 0 and 1
mouthOpeningHysteresis: 0.05,
scale: [4.5,4.5], //scale of the DIV along horizontal and vertical axis
positionOffset: [-1.55, -.9,-0.2] //set a 3D position fofset to the div
};
Any suggestions?
Thanks!

Hi,
What is the canvas resolution and CSS size ? Do you try the boilerplate DIV demo (https://jeeliz.com/demos/faceFilter/demos/CSS3D/div/) or have you tried to change some settings ? Do you have any screenshot ? Is is possible to reproduce the bug using Chrome mobile emulation of the web console ?

Hi,
I have added a canvas2D integration example, it can be found on https://jeeliz.com/demos/faceFilter/demos/canvas2D/faceDraw/
I think it is better to use it than the CSS3D one because :

the browser does not have to do compositing so it is more efficient
I think there may be less cross browser problems than with the CSS
The CSS position may depends on the position of the canvas in the CSS page while there are no such problems with the canvas2d based demo

fantastic! thanks, xavier!


Fix unstable results in hist method

After my changes I observed some small differences in results from run to run.
For example, log-loss for HIGGS data set:
1 run: 0.807342768946606615
2 run: 0.807342768708895875
The reason was so easy - guided scheduling instead of static in OpenMP loop. It leads to non-deterministic operations with floating-point numbers.
I have fixed it and now log-loss:
1 run: 0.807342767697801778
2 run: 0.807342767697801778
3 run: 0.807342767697801778
Training time is the same as it were before:
Before time: 2951ms
After time: 2903ms

Ci contains following error:
tests/python/test_linear.py::TestLinear::test_shotgun terminate called after throwing an instance of 'std::bad_alloc'
[2019-08-13T11:59:10.252Z]   what():  std::bad_alloc
I don't sure, that it is my problem, probably some infrastructure issue. Can we restart this?

See #4716, which already removed guided scheduling.


[WIP] Migrate git docs from docs/tutorials to docs/git.

This is the first commit in a series of commits to migrate the docs. I'm trying to fix typos and edit descriptions where I feel necessary along the way. Review on the changes appreciated.
Discussion here: https://chat.zulip.org/#narrow/stream/documentation/topic/Git.20guide

[x] Migrate docs.
[ ] Highlight Zulip tools.

In the interest of getting something merged today, I fixed the lint/test failures, tweaked a few sentences, and merged this.  @aero31aero can you do another PR to work on @tommyip's suggestions?


Fugit::Cron previous_time method bug

Hi, there:
I was in +8 timezone, I exec the following statement in rails console:
Fugit::Cron.parse('0 16 30 9 *').previous_time.to_local_time
and I got the following error:
RuntimeError: too many loops for "0 16 30 9 *" #previous_time, breaking
Also, the same error occurred when I exec:
Fugit::Cron.parse('0 16 31 10 *').previous_time.to_local_time
I guess that when the cron is across the month, this error occurred. So boundary conditions need
to be fully considered

@zhangyonguu Hello, could you please update your issue to indicate what version of fugit and what version of Ruby you are using? Thanks in advance.

@zhangyonguu Oh, one more thing. Could you please give me the output of the three following commands on your system and in Rails project?
uname -a
ruby -v
bundle exec ruby -r et-orbi -e "EtOrbi._make_info"

Thanks in advance!

@jmettraux, my fugit version is 1.1.8 and my Ruby version is 2.4.1

Ah, then could you please upgrade your fugit version to the latest which is 1.3.3 (https://rubygems.org/gems/fugit/versions/1.3.3). It should fix the issue.
According to the https://github.com/floraison/fugit/blob/master/CHANGELOG.md it should be fixed at 1.1.9.
Please tell me how it turns out. Thanks in advance.

@jmettraux , yes, it works! Thank you!

You're welcome. Have a good evening!


chore: add PR template

🎯 Goal

Add PR template
exclude IDE specific folders from VCS

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


subscription bug

I added aot s4 and one piece in subscription under 2hrs interval but I didn't get any notification for new episode as the shiro app was giving.
1.8.4
Android 10
Redmi note 7

Different subscription model. Shiro was instant as the server sent out the push notifications, not possible as a scraper. The subscription fetches the anime in the background every ~2 hours (which may be longer or never if the app is killed) and compares with what it last fetched. This makes aggressive battery killing (common in Xiaomi) break subscriptions as it kills the background process necessary to make subscriptions work. Look at https://dontkillmyapp.com/.
Another possibility is that you simply opened the anime manually before the check, updating the notification to trigger on the next unreleased episode.
Either way it is not getting fixed app wise as frankly I do not know how to and it works on my device.


groups: joining a group has no loaders

Describe the bug, optionally with screenshots
A feeling of helplessness and confusion accompanies joining a new group, even if the group "join" succeeds. Most of this boils down to the following conditions:
(A) you've joined the group
(B) you've navigated to the new group
(C) you're waiting for more content to fill itself in

Sometimes, the group name populates here. Sometimes, it doesn't. We should fix this.
To Reproduce
Steps to reproduce the behavior:

Join a new group
Allow yourself to be navigated to the group
Observe empty/questionable group state while content gets downloaded from the host

Expected behavior
I would expect some kind of loading indicator. A centered spinner in the main stage at the very least would be appropriate here.  to keep you around while waiting -- we could do something more straightforward "Downloading group data from host..." or we could fake out the actual dojo response one would expect to see when transferring this data across the network. Up to us, really -- anything but a blank screen.

Lucky for you, we actually have this in the Handoffs file as an experience that should def be part of the canonical experience. I've communicated the states in a more concise manner here:

More context here:
https://www.figma.com/file/QMM0PcJyuKWrXY2n4VpQp1/2023-Q2-Groups?node-id=130%3A27847&t=c4fjDn9gD0VhyrBK-1

Alternative approach to group loading that I support:


Add polygon drawing primitive

This patch adds a new polygon drawing primitive.
A polygon is a closed Path object, with fill and stroke capabilities. Compared to the other shapes, it is not a content container, as the points are variadic. A suggestion was made that polygons should be able to have content, but this one is strictly for drawing. I believe a patch can be made later to support content in it, if variadic+content ever becomes possible.
This is related to the discussion at: https://github.com/typst/typst/issues/260

I have revised my commit accordingly. I agree on all points. Hope it looks better now!

Thanks!


Does anyone know the plugin name's that pops up the documentation box when you hit Shift + K?

Did you check docs and existing issues?

[X] I have read all the LazyVim docs
[X] I have searched the existing issues of LazyVim
[X] I have searched the existing issues of plugins related to this issue

Hey all,
Quick question: Does anyone know the plugin that pops up the documentation box when you hit Shift + K? I'm looking to tweak the background colour to a darker shade; it's a bit tricky to distinguish it from the code background right now, and it's bugging me. Thanks!

Before reporting an issue, make sure to read the documentation and search existing issues. Usage questions such as "How do I...?" belong in Discussions and will be closed.
Did you check docs and existing issues?
... etc ...

You checked all the boxes before creating this bug report. Still, you registered a bug to ask your question here. Is there a specific reason for doing so?
Best regards!

Questions about user configurations are meant to be in the Discussions section like @abeldekat mentioned. Kindly close this and open a Discussion instead.

Thank you for the head up

Regarding your question, in LazyVim noice is the plugin that decorates the LSP hover docs. You could try something like
  {
    "folke/noice.nvim",
    opts = {
      presets = {
        lsp_doc_border = true,
      },
    },
  },

to have borders around the LSP hover docs to make it more distinguishable from the background actual code.


Stats should be enabled by default

When initially creating a pipeline, it's rare to not want stats enabled, so they should be collected by default. Once a pipeline is being put into production, someone may wish to disable stats, but this is basically just a space-saving optimization that should be set explicitly (general principle: default to the more useable, less optimized option; if people want to optimize, then they can dig into the extra settings needed to do so)

discussed this with @sjezewski and @jdoliner yesterday and confirmed this is something we want to do for 1.8


Move kamelet version updates to groovy to standardize with productization

We need to be able to run the update kamelets step within productization before tagging occurs.    The easiest option seems to be to translate the ant replacement over to groovy, and that way any additional patterns that we decide to add replacements for will be picked up both in community releases and in productization.

@nicolaferraro Can we cherry-pick this over to kamelet-catalog-1.4 branch too?

@nicolaferraro Can we cherry-pick this over to kamelet-catalog-1.4 branch too?

Sure, will do a batch sync of the 1.4 branch


N43: Tunnet

Part of #1287

Thanks for the PR! Cool project, hope to see future updates in next newsletter issues!


196 multiple quicklinkstable in class file

fixes #196

Note: I setup this data file with multiple propulsion links, matching the pattern in the real data.
But, I didn't include the changing div ids.  I'll modify that file in this PR, so we further test the logic.