Problems after upgrading

Hey Ola.
I had an email that you'd closed out https://github.com/lolopinto/ent/pull/424 and that gave me a nudge to start playing with my ent-starter project this evening after a month or so away.
I noticed that you've moved the dependencies from @lolopinto/ent into @snowtop/ent. I've gone ahead and updated my local package.json (and the Docker files) but when I try and run npm run codegen I get the following error:
~/Code/js/ent-starter(main*) » npm run codegen                                                                                1 ↵ tom@Toms-MBP-3

><EMAIL_ADDRESS>codegen /Users/tom/Code/js/ent-starter
> docker-compose -f docker-compose.dev.yml run --rm app tsent codegen

Creating ent-starter_app_run ... done
Error: internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module './read_schema.js'
Require stack:
- /app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.resolve (internal/modules/cjs/helpers.js:94:19)
    at requireResolveNonCached (/usr/lib/node_modules/ts-node/dist/bin.js:257:16)
    at getProjectSearchDir (/usr/lib/node_modules/ts-node/dist/bin.js:227:35)
    at Object.main (/usr/lib/node_modules/ts-node/dist/bin.js:131:27)
    at Object.<anonymous> (/usr/lib/node_modules/ts-node/dist/bin-script.js:5:7)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript'
  ]
}
: exit status 1
Usage:
  tsent codegen [flags]

Flags:
  -h, --help          help for codegen
  -s, --step string   limit to only run a particular step e.g. db, graphql, codegen

internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module './read_schema.js'
Require stack:
- /app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.resolve (internal/modules/cjs/helpers.js:94:19)
    at requireResolveNonCached (/usr/lib/node_modules/ts-node/dist/bin.js:257:16)
    at getProjectSearchDir (/usr/lib/node_modules/ts-node/dist/bin.js:227:35)
    at Object.main (/usr/lib/node_modules/ts-node/dist/bin.js:131:27)
    at Object.<anonymous> (/usr/lib/node_modules/ts-node/dist/bin-script.js:5:7)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript'
  ]
}
: exit status 1
ERROR: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>codegen: `docker-compose -f docker-compose.dev.yml run --rm app tsent codegen`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>codegen script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/tom/.npm/_logs/2021-08-08T19_35_21_541Z-debug.log
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/Code/js/ent-starter(main*) »

I presume npm is picking up the old version of tsent, from before the move. Hence it's looking for things in app/node_modules/@lolopinto/ent which no longer exists.
I've been able to unblock myself by installing the CLI tools locally (as per the docs) and running tsent directly, but it would be good to understand why this isn't working via npm.
Any ideas? Thanks :)

This was supposed to be left on the upstream repo. Doh!


Rebar group visible line and location

Hi amazing updates so far. I have a request to extract rebar group visible lines from drawing and then be able to modify its location if the visibility mode is customized. It's very time-consuming move the line for each group.

Very good idea @dandad36 ! I was a little worried that this setting wasn't available in Tekla Open API, but it looks like I was wrong :)
I will try to add it to the next release.

Added in v.2.10.0
This input accepts float values from 0.0 to 1.0. Their representation is the relative distance from the first rebar in the group.

Thank you it works well :)

Hi @TrungVuDuy! Please, next time open new issue :)
There isn't ready-to-use solution.
For your need, I think you should combine reinforcement custom position from the drawing object with rebar geometries from the model object.
As far as I know, reinforcement custom position is measured from the first rebar toward the last, so if you grab all of them, measure relative length between, and then multiply it by drawing's rebar custom position, then you will obtain vector needed to move geometry of the first rebar from model to match it's curent drawing representation.
Something like this:

Thanks a lot, @olszewski-grzegorz
This method works well for normal groups. For tapered and curved groups we might need to construct a domain based on bar ranges.


2024-06-24「G空間スキルアップセミナー」

@hfu will be presenting as invited. I share the slides at:
https://speakerdeck.com/hfu/wei-lai-nofan-rong-notamenosumatodi-tu
The content of the deck is almost the same as my presentation in Bangladesh at:
https://speakerdeck.com/hfu/smart-maps-for-the-prosperity-in-the-future

successfully completed.


1951 2 database error select with no tables specified

@rafatower CR this, please. It fixes an strange error (failing at 194), improves message (backtrace doesn't contain message itself) and reduces the amount of config info sent.

Frontend tests were OK :+1: (details)

:+1:


Revert prometheus client_golang from  from v1.12.2 to v1.11.0

What did you do?
When merge engine to tiflow repo, client_golang(v1.12.2) will introduce some incompatible change to the go collector and some metric name.
Detail
ref : https://github.com/prometheus/client_golang/releases
[CHANGE] ⚠ Change in collectors.NewGoCollector metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back with GoRuntimeMetricsCollection option or GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection for smooth transition.
[BUGFIX] Fixed the bug that causes generated histogram metric names to end with _total. ⚠ This changes 3 metric names in the new Go collector that was reverted from default in this release.
go_gc_heap_allocs_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes,
go_gc_heap_frees_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes
go_gc_pauses_seconds_total -> go_gc_pauses_seconds.
What did you expect to see?
No response
What did you see instead?
some go collector metric lost
Versions of the cluster
Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
(paste TiDB cluster version here)

Upstream TiKV version (execute tikv-server --version):
(paste TiKV version here)

TiCDC version (execute cdc version):
master

reopen because https://github.com/pingcap/tiflow/pull/5393 upgrade promtheus_client again


[REVIEW] rahul4coding

GitHub Profile Link
https://github.com/rahul4coding

I have joined a discord server & created an issue for join eddiehub GitHub Organisation.


Do you know of any packages or frameworks similar to promptfoo?

I was looking for something just like promptfoo. Do you know of any packages or frameworks similar to this? I would like to consider other comparisons.

I also would like to know.

Unfortunately not really.  I built this because there wasn't anything else out there that did what I needed it to do.  OpenAI does have an Evals framework you can take a look at.  Its focus is on testing OpenAI models with heavier test cases, and some of the more advanced test cases require Python implementation.

The main thing I need is this but in python with langchain compatibility. It might be worth cloning and converting.

As far as I know, QAEvalChain in langchain module might be useful to me. I'm still looking to see if there are other alternatives.

@typpo Thanks for the link reference.

For those of you working in Python, have a look at the end-to-end LLM chain testing documentation: https://www.promptfoo.dev/docs/configuration/testing-llm-chains#end-to-end-testing-for-llm-chains
Specifically, I've recently created an example that shows how to evaluate a Python LangChain implementation: https://github.com/promptfoo/promptfoo/tree/main/examples/langchain-python
The example compares raw GPT-4 with LangChain's LLM-Math plugin by using the exec provider to run the LangChain script:
# ...
providers:
  - openai:chat:gpt-4-0613
  - exec:python langchain_example.py
# ...

The result is a side-by-side comparison of GPT-4 and LangChain doing math:

Hope this helps your use cases.  If not, interested in learning more.
Side note - QAEvalChain is similar in approach to the llm-rubric assertion type of promptfoo.  It can help evaluate whether a specific answer makes sense for a specific question.

It looks like it was released recently.
hegelai/prompttools: Open-source tools for prompt testing and experimentation

@typpo : First of all congratulations on the great work in building this library. It would be great if we can have some way to directly compare and contrast promptfoo with prompttools and evals by OpenAi. This will make life easier for consumers to pick & choose best among these based on the usecase.


Equinix Metal Offering is being discontinued

Hello all,
Equinix recently (25th November 2024) announced they are sunsetting their Equinix metal offering by July 2026. Since this WG relies on the offering, we need to evaluate how this affects us.

Is it an option to stay with Equinix?: Our setup can also be run on other Equinix offerings? We need access to low-level metrics for utilization and energy measurements (@rossf7 and others know things in detail). Maybe @vielmetti knows things :smile:
Move platform: @krook we likely need to move platforms. Since we are running on CNCF provided infrastructure; is there an option to evaluate other platforms. Hetzner, for example, could be another option.

Links:

Announcement: https://deploy.equinix.com/blog/sunsetting-equinix-metal/

cc @nikimanoledaki @AntonioDiTuri
@krook I will open a service desk ticket regarding this topic!
Thanks, all! :raised_hands:

Thanks @leonardpahlke , happy to work through options on this. We have been coordinating with @jeefy on the CNCF logistics. A lot of details are TBD but the more you can relate specific requirements the easier it will be to figure out what is a good match.

Sounds good! Thanks Ed :raised_hands:

Our requirements mainly come from Kepler. So with bare metal we're measuring with RAPL and not in estimation mode. We're using x86 but I believe ARM with Ampere is also an option but I haven't tried that yet!
For provisioning we use OpenTofu and then K3s and Cilium. So if there is a compatible provider we could use that would be helpful.
Thanks Ed and Leo 🙌  I hope that helps with requirements. Let me know if you need more details.

@leonardpahlke FYI, we’re working with the Equinix Metal (@vielmetti) team closely on the further plan. No need to worry at this point of time, as the current operations remain unaffected.
We’ll keep you posted!


Fix flash size for Adafruit RP2040 boards

Adafruit QT Py RP2040 and Itsybitsy RP2040 ship with 8M of flash.

ping @hathach @dhalbert

this already fixed in develop, we should find a way to have develop as main branch target of a new PR.

Doh, I didn't realize there was a develop branch. Should I base future pulls off of develop?

That is very common mistake people make here. I made a few one myself as well


what time will appear this situation in processDisconnect

Expected behavior
Actual behavior
Steps to reproduce
Minimal yet complete reproducer code (or URL to code) or complete log file
Moquette MQTT version
JVM version (e.g. java -version)
OS version (e.g. uname -a)

hi ,andsel
when i was view moquette source ,i am comfused about below lines. could you give me  some times to explain when will apear  this situation in processDisconnect .Thanks very much.
I have mark the places overstriking
public void processDisconnect(Channel channel) throws InterruptedException {
    final String clientID = NettyUtils.clientID(channel);
    LOG.info("Processing DISCONNECT message. CId={}", clientID);
    channel.flush();
    final ConnectionDescriptor existingDescriptor = this.connectionDescriptors.getConnection(clientID);
    if (existingDescriptor == null) {
        // another client with same ID removed the descriptor, we must exit
        channel.close();
        return;
    }

    /**
     * confused one
     *  what time will happen this situation，why not equal?
     */

    if (existingDescriptor.doesNotUseChannel(channel)) {
        // another client saved it's descriptor, exit
        LOG.warn("Another client is using the connection descriptor. Closing connection. CId={}", clientID);
        existingDescriptor.abort();
        return;
    }

    if (!removeSubscriptions(existingDescriptor, clientID)) {
        LOG.warn("Unable to remove subscriptions. Closing connection. CId={}", clientID);
        existingDescriptor.abort();
        return;
    }

    if (!dropStoredMessages(existingDescriptor, clientID)) {
        LOG.warn("Unable to drop stored messages. Closing connection. CId={}", clientID);
        existingDescriptor.abort();
        return;
    }

    if (!cleanWillMessageAndNotifyInterceptor(existingDescriptor, clientID)) {
        LOG.warn("Unable to drop will message. Closing connection. CId={}", clientID);
        existingDescriptor.abort();
        return;
    }

    if (!existingDescriptor.close()) {
        LOG.info("The connection has been closed. CId={}", clientID);
        return;
    }

    /**
     * confused two
     *  what time will happen this situation,why is still present
     */
    boolean stillPresent = this.connectionDescriptors.removeConnection(existingDescriptor);
    if (!stillPresent) {
        // another descriptor was inserted
        LOG.warn("Another descriptor has been inserted. CId={}", clientID);
        return;
    }

    LOG.info("The DISCONNECT message has been processed. CId={}", clientID);
}

The connect and disconnect processing are essentially concurrent finite state machines, and could happen that when you have clients that connects and disconnects with same clientID and in tight cycle, while the first are disconnecting the second is already in connected state.

Thanks，understand，help very much


pip install cuml-cu11 --extra-index-url=https://pypi.nvidia.com

Why am I unable to install cuml-cu11? I've tried various methods, including accessing https://pypi.nvidia.com/ directly, but I've been denied access due to lack of permissions.

use wsl, not windows

You seem to be using Windows. We should clarify that the code does expect a Linux environment and has never been tested elsewhere. So the above recommendation to use instead WSL on Windows could indeed help although there is no guarantee this will actually work without more efforts.
Additionally, conda is the recommended way to install the right dependencies for the training and evaluation code. If you nevertherless want to use pip install, AFAICT this command line should install the right packages (from an environment with just python 3.9):
pip install --extra-index-url https://download.pytorch.org/whl/cu117 --extra-index-url https://pypi.nvidia.com git+https://github.com/facebookresearch/dinov2

Or just:
pip install -r requirements.txt

to not even install the dinov2 package.

Thank you, I think it's very effective

Thank you very much for your reminder. I was too careless to notice that the project needs to run on Linux. Thanks again. @patricklabatut


trackFailures option

A basic option to track & inspect loading failures as described in https://github.com/addyosmani/basket.js/issues/152

Added detection of timeout error.
Added 3 tests.
This will not work with thenRequire() chaining.

Usage:
basket
	.require([{ url: 'missing.js' }], { trackFailures: true })
	.then(function (responses) {
		if ( responses[0].state === "rejected" ) {
        	console.log(responses[0].reason.message); // Not Found
        }
	}, function(error) {
		// This is not called
	});

cc @foxx

I'm not keen on the idea of changing the promise chaining based on an argument, as it doesn't feel clean imho. Instead of trackFailures, perhaps we could use a third argument as seen in other thenables, which would be used to track progress, see here.
For example;
basket.require(
    { url: '//example.com', key: 'jquery' },
    { url: '//example.com', key: 'other' })
    .then(function(){
        console.log("All loaded okay");
    }, function(err) {
        console.log("Failed to load all scripts");
    }, function(event, args) {
        // event=loaderror
        // args={key:'jquery':, url: 'http://...', reason: ..., err: ...]
     })

Another option is introducing on and fail, like such;
basket.require(
    { url: '//example.com', key: 'jquery' },
    { url: '//example.com', key: 'other' })
    .then(function(){
        console.log("All loaded okay");
    })
    .fail(function(err) {
        console.log("Failed to load all scripts");
    })
    .on('loaderror', function(key, url, reason, err) {
        // {key:'jquery':, url: 'http://...', reason: ..., err: ...]
     })

These all get the same job done, just exposed in different ways. @addyosmani do you have any preference?


Can't start bitcoin-qt by double-click on Debian 11

Moved from https://github.com/bitcoin/bitcoin/issues/27655.
Is there an existing issue for this?

[X] I have searched the existing issues

Current behaviour
When I double-click the bitcoin-qt executable file in the graphical file manager, Bitcoin Core doesn't start and this message pops up:

I think this issue is the same as described at https://fostips.com/double-click-run-elf-ubuntu/
The Bitcoin Core build process seems to set some properties on the ELF file so that Debian 11 thinks the file has mime type application/x-sharedlib, and the file is thus treated as a shared library file. For Bitcoin Core 0.8.6, on the other hand Debian 11 shows the mime type to be application/x-executable, and I'm able to start it by double-clicking it. The workaround mentioned in the link above makes modern Bitcoin Core versions double-clickable.
Yes, the file has the executable flag set:
$ ls -l
total 95944
-rwxr-xr-x 1 demo demo  2412928 dec  6 16:53 bitcoin-cli
-rwxr-xr-x 1 demo demo 15339968 dec  6 16:53 bitcoind
-rwxr-xr-x 1 demo demo 39586776 dec  6 16:53 bitcoin-qt
-rwxr-xr-x 1 demo demo  4112824 dec  6 16:53 bitcoin-tx
-rwxr-xr-x 1 demo demo  2199488 dec  6 16:53 bitcoin-util
-rwxr-xr-x 1 demo demo  9686216 dec  6 16:53 bitcoin-wallet
-rwxr-xr-x 1 demo demo 24893312 dec  6 16:53 test_bitcoin

Expected behaviour
I expected Bitcoin Core to start in GUI mode
Steps to reproduce
Download bitcoin-24.0.1-x86_64-linux-gnu.tar.gz and unpack it. In the graphical file manager, I navigate to the bin folder and double-click on the bitcoin-qt file.
I tried also version 0.18.1, 0.20.0,  22.1 which all behaved the same.
I tried ancient version 0.8.6 and it worked as I would expect.
Relevant log output
No response
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v24.0.1
Operating system and version
Debian 11
Machine specifications
x86_64

We've discussed this with @kallerosenbaum offline and decided to close this issue as a system-specific one and having the workaround pointed out in https://github.com/bitcoin/bitcoin/issues/27655#issue-1708983426.

Thanks @hebasto
Since Ubuntu is based on "Debian Testing", and the current ubuntu LTS works, I'm guessing (I haven't tested this issue on Debian Testing so I don't really know this) this issue will be resolved in the next major version of debian.

Oh, I didn't know Debian 12 just dropped yesterday. Will give it a try and post the result here.

@MarcoFalke I just upgraded to Debian 12, and it works fine here. Good stuff.


Inconsistent manner of the metric SpecificityAtSensitivity among different backends

Hi, developers. I want to monitor the metric SpecificityAtSensitivity values during the training process. I've checked the doc to make sure it could be used with compile API.
However, I find this metric does not work out of box like others, for example TruePositives. It could not be used directly in different backends, and even sometimes with "accuracy"! Below are the tables of three backends to show the results I found. "with acc" means set metrics=["acc", SpecificityAtSensitivity(...)]. And a colab link here to reproduce the error: issue_inconsistent_manner_of_SpecificityAtSensitivity.ipynb
tensorflow

run_eager \ metrics
with "acc"
without "acc"

False (default)
❎
❎

True
✔
✔

<class 'NotImplementedError'>
Cannot convert a symbolic tf.Tensor (Cast_12:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported.
torch

run_eager \ metrics
with "acc"
without "acc"

False (default)
❎
✔

True
❎
✔

<class 'NotImplementedError'>
Cannot copy out of meta tensor; no data!
jax

run_eager \ metrics
with "acc"
without "acc"

False (default)
❎
❎

True
❎
❎

<class 'jax.errors.ConcretizationTypeError'>
Abstract tracer value encountered where concrete value is expected: traced array with shape int32[].
The size argument of jnp.nonzero must be statically specified to use jnp.nonzero within JAX transformations.
The error occurred while tracing the function wrapped_fn at /usr/local/lib/python3.10/dist-packages/keras/src/backend/jax/core.py:153 for make_jaxpr. This concrete value was not available in Python because it depends on the values of the arguments args[1] and args[2].

Hi @Star9daisy ,
I have replicated the reported behaviour and attached gist here.Need to dig more and will come back.

Possibly related to #19433

Thank you @Star9daisy! Would you be able to submit a fix for this? Otherwise we're leaving this open for contributions from the community.

Hi @grasskin, it looks kind of difficult for me. But I'd like to give it try!

Go ahead @Star9daisy! The nonzero error is likely related to #19407 which we just closed with a fix. Feel free to update this thread with concerns/questions. One thing I would strongly recommend is disabling XLA compilation to make debugging easier. Specifically tf.config.run_functions_eagerly(False) for tensorflow and jax.config.update("jax_disable_jit", True) for JAX.


track_history doesn't work (see an error)

Hello, I have a problem with setting up the gem.
I'm making a Rails engine and want to have mongoid-history as part of it. But everytime I try to put track_history part into my model I got an error. In my model I have so far only one field.
In browser I see an error saying that the model itself doesn't work and see 'undefined method `each' for nil:NilClass' error.
In rails console I see this error
ArgumentError: wrong number of arguments (1 for 0)
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/core_ext/class/attribute_accessors.rb:40:in `touchable'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/mongoid-3.1.6/lib/mongoid/relations/macros.rb:143:in `belongs_to'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/mongoid-history-0.4.1/lib/mongoid/history/trackable.rb:36:in `track_history'
    from /Users/Jakub/Rails/Motor/app/models/motor/page.rb:33:in `<class:Page>'
    from /Users/Jakub/Rails/Motor/app/models/motor/page.rb:2:in `<module:Motor>'
    from /Users/Jakub/Rails/Motor/app/models/motor/page.rb:1:in `<top (required)>'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:469:in `load'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:469:in `block in load_file'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:639:in `new_constants_in'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:468:in `load_file'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:353:in `require_or_load'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:502:in `load_missing_constant'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:192:in `block in const_missing'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `each'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `const_missing'
    from (irb):1
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/railties-3.2.17/lib/rails/commands/console.rb:47:in `start'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/railties-3.2.17/lib/rails/commands/console.rb:8:in `start'
    from /Users/Jakub/.rvm/gems/ruby-2.1.0@Motor/gems/railties-3.2.17/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'

Note: I use Ruby 1.9.3 & Rails 3.2.17
Thanks for any help.
Jakub

This is old, closing. Please reopen if you can reproduce.


Dynamic Language Update for Consent Manager and Cookie Handling Service

Hi,
I have a question regarding dynamically updating the language in the consent manager in sync with the website language. Currently, I see you have a service (NgxCookieConsentService), but it's not publicly exported, so I'm unable to trigger the language change in the consent manager when the website language changes.
Is there any recommended way or service available to achieve this? Additionally, is there a service provided to deactivate Google Analytics if cookies haven't been allowed, apart from the example shown for Google videos in your StackBlitz demo?
Ideally, I’m looking for a service that:
Provides a method to read all cookies and expose them as BehaviorSubject.
Offers an additional method where a user can input a cookie name and retrieve a filtered result as an observable.
Or am I possibly missing something?
Thanks a lot for your work in building and maintaining this library continuously!
Best regards,

@sai-gmbh i will take a look into it.

@giacomo Any update??

@sai-gmbh working on it ;)

@sai-gmbh
see example: https://github.com/giacomo/ngx-cookie-consent/blob/572ee78b746df6957ff3118a3df84d7a4d700f53/src/app/pages/home/home.component.ts#L23


ARROW-1242: [JAVA] upgrade jackson to mitigate security vulnerabilities

I'm not sure the issues noted are actually relevant to our use of Jackson (they seem to be only impacting the xml component, which I don't believe we use). Let's upgrade to the version the maintenance release that fixes on the same release train as we're based on (2.7.8+) as opposed to jumping to 2.8. I think 2.7.9 is latest current train avail.

ok thanks for the feedback.  will submit this in a new pull request shortly.

The following table shows the current version of all dependencies (including child dependencies), together with the date of that current version, the latest version of the library and the date of that version, and the number of releases between the current and latest versions.

groupId
artifactId
current version
date
latest version
date
number of newer versions

ch.qos.logback
logback-classic
1.0.13
10-May-13
1.2.3
31-Mar-17
16

ch.qos.logback
logback-core
1.0.13
10-May-13
1.2.3
31-Mar-17
16

com.carrotsearch
hppc
0.7.1
07-May-15
0.7.2
25-Oct-16
1

com.fasterxml.jackson.core
jackson-annotations
2.7.1
02-Feb-16
2.9.0
30-Jul-17
25

com.fasterxml.jackson.core
jackson-core
2.7.1
02-Feb-16
2.9.0
30-Jul-17
25

com.fasterxml.jackson.core
jackson-databind
2.7.1
02-Feb-16
2.9.0
30-Jul-17
29

com.google.code.findbugs
jsr305
3.0.1
09-Oct-15
3.0.2
31-Mar-17
1

com.google.guava
guava
18
25-Aug-14
22.0
22-May-17
5

com.vlkan
flatbuffers
1.2.0-3f79e055
09-Nov-15
1.2.0-3f79e055
09-Nov-15
0

commons-cli
commons-cli
1.2
19-Mar-09
1.4
09-Mar-17
3

commons-codec
commons-codec
1.10
06-Nov-14
1.10
06-Nov-14
0

io.netty
netty-buffer
4.0.41.Final
29-Aug-16
4.1.13.Final
06-Jul-17
16

io.netty
netty-codec
4.0.41.Final
29-Aug-16
4.1.13.Final
06-Jul-17
16

io.netty
netty-common
4.0.41.Final
29-Aug-16
4.1.13.Final
06-Jul-17
16

io.netty
netty-handler
4.0.41.Final
29-Aug-16
4.1.13.Final
06-Jul-17
16

io.netty
netty-transport
4.0.41.Final
29-Aug-16
4.1.13.Final
06-Jul-17
16

joda-time
joda-time
2.9
24-Oct-15
2.9.9
23-Mar-17
9

org.apache.commons
commons-lang3
3.4
03-Apr-15
3.6
09-Jun-17
2

org.slf4j
slf4j-api
1.7.6
05-Feb-14
1.7.25
16-Mar-17
18


Added scrollbars to the codeblocks

By adding scrollbars to the codeblocks, both verticaly and
horizontialy, the checks catalog should be more comfortable to use.
fix #365

I experimented a bit and thought it would fit

.

@arbulu89 I actually agree but it's inside the .ha-check-remediation block, so the rule applies only in that context. Do you prefer to have a whole new class for that?

@arbulu89 I actually agree but it's inside the .ha-check-remediation block, so the rule applies only in that context. Do you prefer to have a whole new class for that?

@dottorblaster I didn't check that hehe
No, it is fine this way. Thanks @dottorblaster


Fixed Table header in the Enhanced table

Hi @fbaligand ,
I have a Document table or Enhanced table & when i scroll down, the table headers are gone. Is there a way the headers can be freezed, like how we have in Excel? This way it will be helpful to look at the header column and correlate even we scroll down.
I looked up at the Kibana data table and haven't found anything convincing. Could you provide with some insight on to this?

Hi, this is currently not available. But it could be an enhancement.

Hi, this is currently not available. But it could be an enhancement.

Ok, great.. thank you. I will await

Ok, great.. thank you. I will await

@fbaligand - any idea on when will this be implemented please?

It is on the roadmap, but clearly, I can’t tell you a date. Sorry.

@fbaligand - Sure. I understand. while it is in the pipeline, is there any workaround small hacks that is/are available by editing a certain js file etc, & re-run the plugin install to make it work?
PS: It's just that people  are looking for this option and thought if there is some workaround for now it will buy me sometime.

You can eventually fork the code, and checkout branch for your kibana version.
then change the scss files so that table has a fixed header.
and finally launch “yarn build” to build the package.
Btw, I invite you to follow “Development” section.
To have fixed table header, you can follow css solution suggested here:
https://stackoverflow.com/questions/4709390/table-header-to-stay-fixed-at-the-top-when-user-scrolls-it-out-of-view-with-jque

@fbaligand - thank you for the suggestion. I will give it a try.
On a different note - Is it possible to use Enhanced table in the AWS Managed Elasticsearch? I wanted to try it & just wanted to cross check with you before trying to know is there something i should be aware of.

If you speak about Elastic Cloud offer (by Elastic), to my known, community plugins can’t be installed on provided kibana.
it is possible on Elastic Cloud Enterprise, but not Elastic Public Cloud.

Concerning your enhancement, if you add an setting in “Options” tab, you can then open a Pull Request here, and I will be happy to merge it :)

Great.. thank you very much for your swift response. I will give it a try


Refactor architecture

Refactored architecture to remove PostActionTabs and LikeTab components (code duplicate and logic redundancy)
Also made the reblog and reply button work on list view.

Fix #211


chore: bump to 1.0.0 GA

Issue #, if available: #33
Description of changes:

Checklist

[x] Meet tenets criteria
[x] Update tests
[x] Update docs
[x] PR title follows conventional commit semantics

Breaking change checklist

RFC issue #:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #83 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           develop       #83   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           17        17
  Lines          474       467    -7
  Branches        42        42
=========================================
- Hits           474       467    -7

Impacted Files
Coverage Δ

aws_lambda_powertools/logging/logger.py
100.00% <0.00%> (ø)

aws_lambda_powertools/tracing/tracer.py
100.00% <0.00%> (ø)

aws_lambda_powertools/metrics/metrics.py
100.00% <0.00%> (ø)

...ws_lambda_powertools/middleware_factory/factory.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


SSH in VS Code

Support Question
Do I need to install OpenSSH  (assuming there's an installer msi available) before i can use VS Code to remote debug my Ubuntu VM with SSH?
I am trying to follow this article Using Visual Studio Code for remote editing and debugging, but my VS Code Powershell Extensions v1.11 don't recognize the -HostName arg.
I wonder how the author got his example to work?
Official support
PowerShell Support Lifecycle
Community Resources
Slack Community Chat - Interactive chat with other PowerShell enthusiasts
PowerShell.org Forum - Search or post new general PowerShell usage questions

I just discovered that OpenSSH Client is part of my version of Windows 10.
So what do we need to do to VS Code to remote using SSH?

The author was using macOS as the host OS.  You should be able to do this on Windows 10.  Recent version of Windows 10 (1803/1809) come with OpenSSH Client but you have to enable it as an "optional feature".  If you have an older version of Windows 10, grab Chocolatey (https://chocolatey.org) and install with choco installopenssh.

The Enter-PSSession -HostName foo command requires that you use PowerShell Core (this repo) instead of Windows PowerShell.  The bottom right part of VSCode will show the version of PowerShell used when a .ps1 has been opened. It should look like this for PS Core 6.1:

If not, click on the version number and select PowerShell Core 6.1.  Of course, if you don't have PowerShell Core installed you will need to install it from this repo.

thanks a 0xF4240, @rkeithhill, for the quick response. and yes, that (obscure ) switch worked. at least I now have more cool PS capabilities like SSH.
however, i get a Permission denied error when i enter azureuser@[my vm dns] and enter the azureuser password I just set up in Azure Portal. Does it matter that azureuser has both a password and a public key?
probably not because i can successfully use those credentials in VS Code using the SSH terminal.
I should note that earlier today I upgraded PS itself from v5.1 to v6.1, and i received the same permission denied error using the same credentials I just entered in VS Code running PS 6.1. that consistency between PS and VS Code is the only thing that's not surprising about all this.
so, what's the difference between SSH and PSIntegrated?
btw, here's the complete error:
Enter-PSSession : The background process reported an error with the following message: The SSH client session has ended with error message: Permission denied, please try again.
Permission denied, please try again..
At line:1 char:1
+ Enter-PSSession -HostName [my dns].eastus.cloudapp.azure.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ResourceUnavailable: (:) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.PowerShell.Commands.EnterPSSessionCommand

Can we close the discussion?

Yes
Rwap

From: Ilya<EMAIL_ADDRESS>Sent: Sunday, September 29, 2019 3:30:55 AM
To: PowerShell/PowerShell<EMAIL_ADDRESS>Cc: Michael Corning<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [PowerShell/PowerShell] SSH in VS Code (#8921)
Can we close the discussion?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/PowerShell/issues/8921?email_source=notifications&email_token=ABYY7LSSADHJIJZHLUPVPDDQMB7V7A5CNFSM4GYQ5BI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73P5ZA#issuecomment-536280804, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABYY7LXZFWDR2ZSXBQDZIK3QMB7V7ANCNFSM4GYQ5BIQ.


Task not found

I am running this command in my Mac terminal:
joe.bloggs$ yarn run start

but I get the output:

yarn run v1.22.15
$ npm-run-all -s "yarn start:backend" "yarn start:frontend"
ERROR: Task not found: "yarn"

Clearly I have yarn installed otherwise it wouldn't be able to run yarn run start, so why does npm-run-all not find the yarn command?

npm-run-all is for running npm scripts.
You might need to change your package.json file like this:
{
	// ...
	"scripts": {
-		"start": "npm-run-all -s \"yarn start:backend\" \"yarn start:frontend\"",
+		"start": "npm-run-all -s start:backend start:frontend",
		"start:backend": "...",
		"start:frontend": "...",
		// ...
	}
}

If you need to run them using yarn for whatever reason, then npm-run-all isn't the right tool for the job.


Update PHP to 8.4 on Windows runners

Tool name
PHP
Tool license
PHP-3.01
Add or update?

[ ] Add
[X] Update

Desired version
8.4.1
Approximate size
No response
Brief description of tool
PHP is a popular general-purpose scripting language
URL for tool's homepage
https://php.net/
Provide a basic test case to validate the tool's functionality.
php -v

Platforms where you need the tool

[ ] Azure DevOps
[X] GitHub Actions

Runner images where you need the tool

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[ ] macOS 14 Arm64
[ ] macOS 15
[ ] macOS 15 Arm64
[X] Windows Server 2019
[X] Windows Server 2022

Can this tool be installed during the build?
choco install php

Tool installation time in runtime
~2 min
Are you willing to submit a PR?
Yes

Woops didn't realise you did a PR before, since I saw it was unassigned. I've upgraded the others too.


[web] We want to provide a website for browsing LVEs

We want to setup a website that allows to browse the LVE repository including options for filtering, search and model comparisons.

A first version of the website is available at: https://lve-project.org/


Desktop - Concierge - Distorted screen appears instead of Concierge chat

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Issue found when executing PR https://github.com/Expensify/App/pull/13125
Action Performed:

Launch the app and log in
Open console from developer tools and enter this.document.location = "https://staging.new.expensify.com/concierge"

Expected Result:
The concierge chat is displayed
Actual Result:
Distorted screen appears instead of Concierge chat
Workaround:
Unknown
Platform:

Where is this issue occurring?

Desktop App

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/93399543/205170546-da8eede0-1863-4611-9d31-0f806c176baa.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

I was not able to reproduce this in my local environment.
https://user-images.githubusercontent.com/1228807/205347911-b6c619c0-177a-4539-b350-3234e56ec4b5.mp4


add a uwrt_params::getLogger function that can be used in code without reference to a nodehandle

closes #123
While working on changes to  #84, I made some changes to uwrt_params.h with these getLogger functions. Decided it was a good idea to cherrypick these into their own pr so that @niiquaye can use them in #120

Looks good. What happens if nodes in the same namespace call getLogger on an unnamed NodeHandle? They'll all get the same logger name right? Not sure if that's a problem or not.

Each call to getLoggerName in the global namespace will increment the unnamed logger name. The intended use is to derive a logger name initially (ex in a constrcutor) and assign it to some name_ variable.
I think most of the time, we should be using the version that gets the node name. We should be using the namespace version when were inside roscontrollers (which may also have multiple node handles. Like the robot nh, controllernh etc)


Fix a TapToPlace issue caused by Start() execution order

Overview
Due to the unpredictable execution order of Start() in Unity, StartPlacement() could be called by the Start() of another script before its own Start() is called, where expected behavior will not happen and user receives no warning.
Changes

Fixes: #8080 .

/azp run

Can we also add a test to validate this fix?
https://github.com/microsoft/MixedRealityToolkit-Unity/blob/e21bdec34e715d675f7929711b5bcee05747844f/Assets/MRTK/Tests/PlayModeTests/SolverTests.cs#L597
I think that simulating the scripting order might be a little wonky in tests (maybe it's fine?)

Can we also add a test to validate this fix?
https://github.com/microsoft/MixedRealityToolkit-Unity/blob/e21bdec34e715d675f7929711b5bcee05747844f/Assets/MRTK/Tests/PlayModeTests/SolverTests.cs#L597
I think that simulating the scripting order might be a little wonky in tests (maybe it's fine?)

Sure I am working on it.

/azp run

/azp run


Use pact-ruby-standalone install script

Rather than specifying architecture in the install process, use an install script which auto-detects the correct architecture to use.
Fixes VEGA-2453 #patch

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.72%. Comparing base (e30123d) to head (af6fcab).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #510   +/-   ##
=======================================
  Coverage   71.72%   71.72%
=======================================
  Files         107      107
  Lines        3721     3721
=======================================
  Hits         2669     2669
  Misses        740      740
  Partials      312      312

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


API Gateway - only GET methods are being imported

Hey,
I noticed that while importing API Gateway resources only GET methods are being imported.
Steps to reproduce:

./aws2tf.sh -t apigw -i abc123

while the REST API with ID abc123 must have multiple methods i.e. GET, POST and OPTIONS
the command exits successfully, the tool generates code for aws_api_gateway_resource and aws_api_gateway_method but does it only for methods that have  http_method = "GET"
Is there any chance you could implement this additional functionality so other types of methods would be supported as well?
Thanks!

committed changes to fix this


Username ellipsis in Reposted by and Reply to truncates everything or overlaps text

Steps to Reproduce

Use the webapp - tested on Chrome and Firefox Desktop
Go to any timeline that provides reasons for including posts (e.g. resonRepost) or shows the "Reply to" context
View one where the username is too long to fit (or resize your browser)
The username text should appear uniquely messed up in different browsers
a. In Firefox, the entire username will be truncated to "..."
b. In Chrome, the username will be clipped (as if overflow: hidden), but reasons beyond me the ellipsis appears at the start of the line (that is, the start of the username), overlapping the text
c. On Android, the native app displays the ellipsis okay, as does Firefox Android

Attachments
Firefox Desktop:

Chrome Desktop:

Reply to example

What platform(s) does this occur on?
Web (Desktop)
Device Info
Win11; Firefox 130.0.1 (64-bit); Chrome 129.0.6668.90 (Official Build) (64-bit)
What version of the app are you using?
Build version: 1.91.1; Bundle info: 49ab486 (prod); Bundle date: 24092017; Platform: web
Additional Information
The behavior for usernames in Reposted by and Reply to is the same.
Both the username and handle in the post header otherwise truncate correctly; ellipsis works okay elsewhere too.
Also tested on https://main.bsky.dev: Build version: 1.91.2; Bundle info: dev (prod); Bundle date: 24100605; Platform: web
The different font may require resizing the browser to cause overflow, but both Firefox and Chrome Desktop screw up the ellipsis the same way.
I tried messing around with disabling or changing some styles for the username element without success.

Okay so setting a concrete width so that it doesn't get limited by the parent container (e.g. 100px) fixes the issue. fit-content etc. didn't work, it must be a concrete size. Weird...


[Fix] Components, jsx: improve component detection

Fixes: #3119

Codecov Report

Merging #3122 (b34a7f8) into master (0743c41) will decrease coverage by 0.08%.
The diff coverage is 96.87%.

@@            Coverage Diff             @@
##           master    #3122      +/-   ##
==========================================
- Coverage   97.46%   97.37%   -0.09%
==========================================
  Files         119      119
  Lines        8044     8076      +32
  Branches     2867     2876       +9
==========================================
+ Hits         7840     7864      +24
- Misses        204      212       +8

Impacted Files
Coverage Δ

lib/util/jsx.js
93.68% <96.15%> (+0.93%)
:arrow_up:

lib/util/Components.js
98.88% <100.00%> (+0.01%)
:arrow_up:

lib/rules/no-unused-state.js
94.80% <0.00%> (-3.04%)
:arrow_down:

Continue to review full report at Codecov.

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


add hapijs boom support

Add hapijs/boom support
This PR allow you to mock a hapi server that return a boom error:
e.q:
node(SERVER_URL).post('/auth')
.replyWithBoom(Boom.unauthorized('boom error message'));
Is equivalent to to an hapi api server that reply with Boom:
.reply(Boom.unauthorized('boom error message'));

Coverage decreased (-0.06%) to 92.626% when pulling 431f3ad71892af69feb8bad2769dcc6b718791a0 on shai32:master into 30881e2a72dbb950e771f912c5f9ddbcb91c0acd on node-nock:master.

Thanks for your contribution. The nock roadmap doesn't fit with this feature currently. We have no plans to add direct support for a 3rd party library like boom. Maybe it'd work better as an external library? Let us know if you have questions/concerns.

In order to make int a 3rd party library, I need access to the Interceptor, but its private.

@shai32 Just do const interceptor = require('nock/lib/interceptor'). That does, of course, rely on nock's private API and could break without warning... But if you lock down your version of nock you'll be OK

Thanks


Take input filename on the command line to test/image.

This enables test runners to copy the file to the target. It also makes the code that looks for the file in a different path unnecessary since Boost.Build will pass the proper relative path.
This should fix failures for test runners NA-QNX650-SP1-ARM and CrystaX.NET* on master. Note that this fix is irrelevant for develop as the test no longer uses an input file there.
It may be more appropriate to merge develop to master since that hasn't been done in over four years.

Ups, I missed the base branch. Yes I second @stefanseefeld request to apply against develop.
I'm not sure if an existing PR can be re-based on GitHub. If it can not, it may be necessary to close this PR and re-submit @NiklasAngare -s work in new PR based on develop.

This has been partially implemented, only image.cpp part, in SHA-1: 8e5501ecf06b47b59a3cf8a901d746ac2c3aed97
Currently, default location of gil_reference_checksums.txt is still resolved from __FILE__. Note, especially on Windows, -FC compiler switch may be preferred to get the absolute path from __FILE__.
I guess, the Jamfile change passing the gil_reference_checksums.txt file from command line could be copied too. Shall we?

OK

I'm very reluctant with platform-specific solutions such as the -FC compiler switch.

That was just a non-intrusive workaround while developing CMake setup.

@NiklasAngare 's change has been cherry-picked with adjustments following recent changes in develop.


Roundtrip identity test

make sure the whole list of pages survives the Conversion to and from WikiSon/Json and so on.
Test with or and orclone backup pages

use an extended version of https://github.com/SmartDataAnalytics/OpenResearch/blob/master/migration/scripts/getbackup to get the wikibackups for testing and put them in a different place then the local $HOME/wikibackup to make sure the CI tests and the local tests really test the same set of things. Make sure the long running tests with lots of data are only run regularly in the CI while local tests run with a small set of files (same approach as with dblp where the xml file for testing is much smaller than the original!)

The script now creates to wikibackup copies below the .or path in the Homedirectory. The testcases need to be adapted accordingly.


Saving to storage and redirecting results in storage not being updated (zero $timeout doesn't help)

I have 2 routes with different templates / controllers, I have this code in first controller:
    $scope.$storage = $localStorage;

    $scope.editVideoTemplate = function (videoTemplate) {
        $scope.$storage.videoTemplate = videoTemplate;
        $timeout(function() { $location.path('/editor'); });
    }

The first time editVideoTemplate is run videoTemplate gets saved in localStorage, but on consequent runs (selecting different videoTemplates) it fails to update the value in localStorage. So after initial save, EditorCtrl always gets initially saved videoTemplate from localStorage.
If I add 300ms timeout (instead of zero), it works as it should - videoTemplate gets saved and successfully retrieved every time.
Can we have direct setters / getters for these edge cases, when there's no point to force user to wait and force digest cycle?

You could use the $sync function before doing the redirect.

@egilkh Unfortunately, it doesn't work:
    $scope.$storage = $localStorage;

    $scope.editVideoTemplate = function (videoTemplate) {
        $scope.$storage.videoTemplate = videoTemplate;
        $scope.$storage.sync();
        $timeout(function() { $location.path('/editor'); });
    }

And looking at the source code of $sync(), it looks like it just reads the contents from localStorage, not writes it back?

Indeed. Too early and no coffee. My bad.
Maybe get/set should be added to enable this type of functionality. Or extend $sync with a write as well.
I'm in the process of doing some refactoring to enable a few of the things discussed (in other issues or PRs) and I'll keep this in mind.

@egilkh Thanks! Having more control in these corner cases (like having explicit get/set) would definitely help!

Use $apply() to force a write to the storage.

@egilkh @artemf  Please share code snippet.

`var setLocalStorage = function (token, uname)
{
$localStorage.token = token;
$localStorage.name = uname;
}

$timeout(setLocalStorage(token, userForm.uname), 500);
`
Module Used : ngStorage

var setLocalStorage = function (token, uname)
{
$localStorage.token = token;
$localStorage.name = uname;

}
$timeout(setLocalStorage(token, userForm.uname), 500);

Module Used : ngStorage


Upgrade Ubuntu to 24.04 (Noble)

Upgrade to ubuntu:24.04 in most places (except for a few build / test
images which will be updated later on). In particular ubuntu:24.04 is
now the base image for antrea/antrea-agent-ubuntu and
antrea/controller-ubuntu.
In order for our current version of OVS (2.17.7) to build correctly on
Ubuntu 24.04, some "recent" patches have to be applied manually.
After this change, the antrea/antrea-agent-ubuntu image is slightly
bigger (344MB -> 372MB uncompressed), and the size increase seems to be
driven by some systemd libraries.

This depends on https://forum.suricata.io/t/oisf-suricata-ppa-does-not-support-ubuntu-24-04-noble/4787

@XinShuYang could you check the base VM OS used in CI pipeline? We may consider to upgrade as well when doing DC migration.

@XinShuYang could you check the base VM OS used in CI pipeline? We may consider to upgrade as well when doing DC migration.

Our CI cluster contains both 20.04 and 22.04 VMs. For the migrated cluster, We are deploying 22.04 VM based on the verified image. For CAPV compatibility, I prefer upgrading VM OS in CI after the CAPV 24.04 image is released in https://github.com/kubernetes-sigs/cluster-api-provider-vsphere#kubernetes-versions-with-published-ovas .

@tnqn Nice catch, I have merged your PR and rebased

/test-all

Given that I have been informed that Suricata 6 is now end of life (https://forum.suricata.io/t/suricata-6-is-now-end-of-life-eol/4790), I will use a separate patch to upgrade to Suricata 7. We will merge it first, and backport it to supported Antrea versions.

Depends on https://github.com/antrea-io/antrea/pull/6589

@tnqn PTAL

/test-all

/test-kind-ipv6-all

/test-e2e
/test-networkpolicy
/test-kind-ipv6-e2e
/test-kind-ipv6-conformance

/test-all
/test-kind-ipv6-all

/test-e2e

/test-e2e

/test-all
/test-kind-ipv6-all

@tnqn @luolanzone can I get a new approval for this, I had to make a small change (see second commit)?


Api v2

Requires this pull request to be accepted
Uses new version of node-bptf-listings-2 because of no rate limits on updating offers
Merge to master is intentional.

@arik123 you need to npm install and then commit the updated package-lock.json to make the build pass.

As I already wrote, this first needs a PR on node-bptf-listings-2 accepted.

As I already wrote

You wrote nothing about fixing the file causing the build fail but a thin prerequisite for merging and left out any explicit follow-up work planned. I'm trying to help this project and do read what is said.

I will update package-lock.json when the needed module actually exists. I'm gonna make this a draft for now as that makes much more sense.


use excerpt in rss if no meta_description is set

issue #9210

added fallback for post excerpt
added test

How is the build error related to the commit?

@rambii was just a timeout issue. I restarted the test. It's passing now 🎉

@AileenCGN thanks for the feedback :)

@kevinansfield I updated it accordingly (y)

@kevinansfield This looks good to me now! Can I merge?


Facility Location Tutorial

@mtanneau

It would be worth it to add an introduction to the problem, and maybe a mention that this is a good use case for Benders decomposition at the end in conclusion

PR updated (with quite a few changes).
Some plots are generated in the notebook; Plots has been added to the dependencies.
If that part generates issues in CI, the plots can be removed from the tests.

CI does appear to have issues...
On Julia 1.0:
ERROR: Unsatisfiable requirements detected for package libass_jll [0ac62f75]:  libass_jll [0ac62f75] log:
 ├─possible versions are: 0.14.0 or uninstalled
 ├─restricted to versions 0.14.0 by an explicit requirement, leaving only versions 0.14.0
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left

On Julia nightly:
ERROR: LoadError: InitError: Evaluation into the closed module `Markdown` breaks incremental compilation because the side effects will not be permanent.
This is likely due to some other module mutating `Markdown` with `eval` during precompilation - don't do this.

I'm agnostic w.r.t the plotting library. I briefly tried Gadfly today and had a hard time figuring out the whole thing. My impression is that it's nice for dataframes-based stuff, but less intuitive when, e.g., you want to build the plot piece by piece.

Thanks for your comment @frapac ! I took them into account.

CI is still failing on Julia 1.0.
The failure is cause by the conjunction of these two:

FFMPEG 0.3 requires Julia 1.3
The version of FFMPEG in Manifest.toml is 0.3, because I was using Julia 1.4 when I generated it.

So, when Travis runs Pkg.instantiate() on the Julia1.0 build, this happens:

There is a Manifest.toml, so use it
Manifest.toml states FFMPEG should be at version 0.3
Conflict

There's a good chance that, at some point, the same issue will happen when another package gets checked at a version that does not support Julia 1.0.
Short-term solutions:

Don't git Manifest.toml
Drop Julia1.0
Drop Plots (should work for this PR, but the issue may re-surface later)

bump

so the solution for now for the manifest business is to compile everything with julia 1.0, this adapts the manifest to be compatible with every Julia version

All tests passed ! :tada:

Cool! Merging this afternoon
On Sat, Jun 20, 2020, 05:12 Alexis<EMAIL_ADDRESS>wrote:

All tests passed ! 🎉
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jump-dev/JuMPTutorials.jl/pull/48#issuecomment-646928987,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2FDMWGW3233OTG2SNGU5TRXQSIPANCNFSM4JFU2OZQ
.


Issue with enabling force-selection clearing input

When I enable force-selection on an input in a bootstrap modal, clicking outside of the autocomplete container autoselects an address for the user, which works fine. However, when I select an address, the input is populated with the information and I still have focus on the input. Losing focus of the input clears it, which is problematic.
For those trying to reproduce this bug, I'm on the most recent version. Here's my code:
HTML
<form class="form-horizontal" name="propertyForm" ng-submit="propertyForm.$valid && submitProperty()">

        Address

        <input type="text" name="address" class="form-control" placeholder="1234 W 9th St" ng-model="address" g-places-autocomplete force-selection="true" options="options" required>

My options object
$scope.options = {
  componentRestrictions: { country: 'us' },
  types: ['geocode']
};

I have an event listener on the g-places-autocomplete:select event as well and it correctly fires.

Same problem. Input field is cleared on focus lost

Has this been resolved? Thanks

Don't believe so. Still getting the error and the last commit was 10 days before my question was posted. I've since reverted to a previous working build.

Ok, thank you for the information.

@mliu95 which working build did you revert to?  I'm facing the same issue.

@ankitg06 https://github.com/kuhnza/angular-google-places-autocomplete/commit/2f3856f36fe3bcf67d647a152c4a4d1748ebffdc This commit appears to have broken things, I'd revert to the commit before it

I am having the same issue. When can this be resolved?

+1

Was going to report this issue.
Any ETA on bower package push?

+1, reverting to 586479ed091a8900a81eb378460eafe40c2633c7 works

PR #18 fixes this issue for me.


Use partial results when download is canceled

If you don't want to wait for it to load the full list of extensions from all of the sitemaps, this pR makes it so that it will still save what it has loaded so far.

LGTM, thanks for the contrib


Make quota request instructions accessible

Describe the issue
As a user, I'd like to see useful information @ quota request instructions be made accessible regardless whether users can further edit a given project.
Additional context
Currently on the web ui, the instructions to contact platform admins disappears after an edit request is submitted. There's a case where a user forgot to capture such info, went back but couldn't find them.
Reference: https://chat.developer.gov.bc.ca/channel/devops-registry?msg=7eDSa5SGxS4JFRwox
Definition of done
When the above is done.

@rloisell ^ to reflect what you suggested

Relates to https://github.com/bcgov/platform-services-registry/issues/355

https://github.com/bcgov/platform-services-registry/pull/460/files

[07-23 10:27 a.m.] Mitovska, Olena CITZ:EX
Wording changes: Upgrade/Downgrade Quota for the modal title and "Request Quota Change" for the button


Build fails on Windows: "ValueError: A 0.7-series setuptools cannot be installed with distribute"

We experienced a huge problem today. First my colleague ran into it, and afterwards when I tried, the same thing happened to me. We have a working DrupalVM configuration, based on version 2.3.1, which we already successfully used several times, on different Windows machines - both Windows 7 and Windows 10. But today the build failed, without having changed anything on the config or any other file belonging to DrupalVM.
I've tried to update to 2.4.0, but this didn't change anything. I'm getting the following error message: ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /usr/local/lib/python2.7/dist-packages
My setup:

Windows 7
VirtualBox 5.0.16
Vagrant 1.8.1
DrupalVM 2.4.0

I'm attaching the full log, copied from the console window.
vagrant-log.txt
As far as I can understand the log, it seems that first a 0.6 version of setuptools is used, but later uninstalled and replaced by a more recent "20.7.0" version, but never a 0.7 version.... oooooooooooohhhhhh now I guess, what happened: whatever checks the version of setuptools, does it wrong! Because the version "20.7.0" is incorrectly identified as "0.7.0". What do you think????

Setuptools 20.7.0 was released yesterday -> that's even one more clue, that back ups my assumption...

Hmm... I'll try to take a look at this later—hopefully someone else can chime in if they find a quick fix. Worst case, I may be able to do some sort of workaround in JJG-Ansible-Windows.

@agoradesign @geerlingguy I ran into it as well, and this quick fix is working for me. In provisioning/JJG-Ansible-Windows/windows.sh, add this line below line 53:
rm -fr /usr/local/lib/python2.7/dist-packages/distribute*

So, with the line above it:
echo "Installing required python modules."
rm -fr /usr/local/lib/python2.7/dist-packages/distribute*

Thanks for the quick fix @brockfanning , worked for me.

thanks very much for this quick fix @brockfanning , worked for me, too.

Also see https://github.com/geerlingguy/JJG-Ansible-Windows/issues/24

I've tested the quick fix from @brockfanning  today - worked for me too

@agoradesign / @kburakozdemir / @brockfanning / @InPhoenity - Can you please download the latest Drupal VM master release (with the commit referenced just above this comment) and see if that gets pip installed correctly without requiring the manual fix mentioned above?

@geerlingguy Works for me, thank you.

@geerlingguy  works for me, too. thanks a lot.

Perfect! I'll close out this issue then; it should be good to go.

@geerlingguy works for me, too. thanks a lot. :)


Fix typo in readme

Thanks!
@bors r+

:pushpin: Commit e6453495ba7394d1006ced402b3224ad44c6e82d has been approved by JohnTitor

:hourglass: Testing commit e6453495ba7394d1006ced402b3224ad44c6e82d with merge b1cbbe88ee2c91a7537229389207c2d99cc9c87e...

:sunny: Test successful - checks-actions
Approved by: JohnTitor
Pushing b1cbbe88ee2c91a7537229389207c2d99cc9c87e to master...


Is it possible to use react-virtualized's WindowScroller (for searching and scrolling to an item)?

Is there a way to access react-virtualized's WindowScroller functionality or something like that?
In case i have an id of one of the nodes that were sent to the Tree component, is there a way to use a method that will scroll that node in to view?
Like in this example:
https://bvaughn.github.io/react-virtualized/#/components/WindowScroller
Thanks!

Hi @Avivhdr at the moment it isn't possible to do that but it seems a reasonable thing to support, I will tackle that over the weekend.
I think spreading the scroll prop down should be enough

Hi @diogofcunha,
With a bit of instructions i would be happy to try and tackle this issue my self.

I would love this feature as well :) Let me know if you need me to test :)

I think it would be a good idea to create a slack or gitter chat and discuss how to do this, we can start just by passing the prop down.
Docs for the List can be found in https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md, I think allowing scrollToIndex as a prop for the tree should be enough. If the logic to get the id becomes too complicated we can just  have a prop named scroolToId and get the index internally based on the flattened nodes.

@diogofcunha
I think scrollToId would be a good idea but maybe it would need to get an array of ids, just in case there would be a duplicate id for a group and a child. the first item would be the group's id, the second item would be the child's id.
And for the gitter/slack idea<EMAIL_ADDRESS>

Released as part of version 2.2.0
Thanks for your contribution @Avivhdr

Hi @diogofcunha
Is there any documentation about this feature available somewhere here (that it a nifty feature that should be showcased imo) ?
However, my IntelliSense isn't listing any function function called scrollToIndex from the Tree object (which is actually Tree Container). Only scrollToId is exposed (and scrollToAlignment) but this (potentially) loops over all the data since it's using _.findIndex() and that might pose a problem as I will be dealing with big amounts of data.
The nodes have their flattened index with them (they receive it from the rowRenderer) and if that is the value returned by scrollToId, then all I need is a direct way to scrollToIndex. Do you think this could be achieved or should I fork the project for just this (I am already replacing the left margin by a left padding, for UI reasons) or was scrollToIndex not exposed by mistake in a recent release ?
Lastly, we get a warning when supplying a string to scrollToId, saying it is expecting a number

tl;dr:

Can you expose scrollToIndex ?
I think there is a PropTypes error on scrollToId (expects number instead of string)


HTTPS not working because certificate has been revoked. TLS-ALPN-01.

Hello everyone, on January 29, our ssl connection to CVAT stopped working.
We found out that this happened because the Let's Encrypt revoked 2.7m of certificates that were generated by the TLS-ALPN-01 method. Link: https://community.letsencrypt.org/t/questions-about-renewing-before-tls-alpn-01-revocations/170449
Now we are trying to figure out how to replace the certificate with a new one in the traefik. If someone also faced the same problem, can you write how you fixed it?

Hi, did you tried to delete acme.json and restart traefik to issue new cert as described in the mentioned guide? acme.json is stored in the volume https://github.com/openvinotoolkit/cvat/blob/develop/docker-compose.https.yml#L30

Hi,  I did try removing the acme.json and restarting.  It creates a new acme.json file, but there are no certificates.
Any ideas on what else to try?
Thanks
~Randy

OK I figured it out... bottom line was firewall was blocking letsencrypt from doing its thing.  You must allow 80 and 443 ingress from any.  I knew that, but had a mistake in my firewall rule.
Anyway here are a few of the troubleshooting tips I wish I had from the get go.
To get the logs of traefik:
get the id of the docker by:  docker ps
using the docker id of traefik:  docker logs [id from above]
the logs showed me the error about "probably firewall"
So the solution ultimately was:
open firewall
delete acme.json   for me it is located at:  /var/lib/docker/volumes/cvat_cvat_letsencrypt/_data/acme.json
stop all cvat dockers:
docker-compose down
make sure variables set (with your values):
export CVAT_HOST=[your domain]
export ACME_EMAIL=[your email to register with letsencrypt]
restart docker (make sure you are in the folder where the yaml files are):
docker-compose -f docker-compose.yml -f docker-compose.https.yml up -d
Hope that helps someone.
~Randy

@randyd12 Thank you!

@TOsmanov , could you please add the scenario into documentation?

@TOsmanov , could you please add the scenario into documentation?

@nmanovic,  Yes, I will add


Segwit transaction

What problem does this feture solve?
Support Segwit transaction
Describe what you've considered?
Code sample / Spec

Segwit spec
https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki

testnet-seed.bitcoin.jonasschnelli.ch:18333 sending tx
testnet-seed.bitcoin.jonasschnelli.ch:18333 sending getblocks
testnet-seed.bitcoin.jonasschnelli.ch:18333 got inv with 1 item(s)
testnet-seed.bitcoin.jonasschnelli.ch:18333 sending getdata
testnet-seed.bitcoin.jonasschnelli.ch:18333 rejected tx code: 0x10 reason: bad-txns-inputs-duplicate, data:
These error caused by segwit , Isn't it? . Those errors occurs in my console when I send transaction using testnetBTC.


Reduce the result file size

Description: A clear and concise description of what the feature is.
Current VTU result file is big due to many duplicated nodes. Output the sole nodal results instead of each element's nodal result may reduce the result file and memory consumption in the post-processing.

Hi @lcheng9, I can refer you to three discussions in the MFEM repository regarding this behavior:

https://github.com/mfem/mfem/issues/1757
https://github.com/mfem/mfem/issues/2906
https://github.com/mfem/mfem/issues/3958

Essentially, most fields we actually care about are not continuous, that is they cannot be represented as a standard H^1 function on the mesh. For example, electric fields and magnetic fields only have partial continuity across interfaces where the domain permittivity or permeability changes. To deal with this, the visualization in ParaView is done in a fully discontinuous manner which, as you note, does lead to duplication of degrees of freedom on interfaces but this is only a problem for postprocessing and thus is not deemed too bad of a restriction.
There are many ways to save memory when loading files into ParaView, for example only loading the fields (electrostatic voltage in your case I presume) from the data files and ignoring the other ones. Palace also provides a secondary ParaView data set on the domain boundaries for visualization (saved with a _bdr suffix in the same directory as the domain visualization, see https://awslabs.github.io/palace/stable/guide/postprocessing/#Visualization). Moving forward we could support visualization with other tools which actually provide native support for H(curl) or H(div) fields (see https://glvis.org/) if performance is really an issue. But the tradeoff for us was that ParaView is likely more familiar to more users and maintaining multiple paths for postprocessing visualization is inherently more maintainability work.

That's right. I would certainly welcome such a feature addition in the future plugging into the respective MFEM functionality under the hood. This could be a good first contribution for any would-be developers.
Just as a final comment for your experience though: For transient simulations, the electrostatic potential is not written to disk for visualization, and all outputs (electric field, magnetic flux density, and derived quantities) are actually not continuous and thus not representable with a nodal function space. There is still room for improvement by using the non-L2 nature of the actual spaces (H(curl) and H(div), in particular), which is done with MFEM's GLVIS output. The optimizations for nodal fields specifically would only be applicable to electrostatic problems, and hence the rather narrow impact of such optimizations.


Added Solution of  Pow(x,n) (LeetCode) in Python under LGMSOC'21

Description
Added Solution of  Pow(x,n) (LeetCode) in Python with some example test cases under LGMSOC'21
Fixes #1538
Replace issue_no with the issue number which is fixed in this PR
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings
[x] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

@rajeshkumar2024 main function??

@Amit366   In leetcode we get only solution class to solve. That's why i have attached only Solution class.

@rajeshkumar2024 this is not leetcode, this is open source where you need to write the entire code.

@Amit366 ok I will add the entire code then I will raise PR.


Broken package

@rebornix I think you forgot to build the package before publishing it, so the lib folder is missing from @vscode/textbuffer. It's still there in vscode-textbuffer, at least.

That said, with the package not updated in four years, it seems to be missing a lot of changes made upstream 😞