Location constants

The lib_location_constants.ks library provides geolocations for places that
would be relatively easy to locate for players flying manually (i.e., without
the use of scripting mods such as kOS).

I have made my adjustments they can be viewed HERE should you wish to comment on any of them.  I will likely pull this in baring any significant required changes within a day or two.

This is not quite right since it will take 18 to 0 rather than 36:
  local reverseNum is MOD(currentNum:toscalar(0) + 18,36):tostring.

nit: in the regex, the .* at the beginning is unnecessary. If you want to include it for readability, you should probably change it to ^.*:
if currentKey:matchespattern(".*runway_\d{1,2}_start$") {//runway_##_end aliasing

Please update example_lib_location_constants.ks to the new notation and verify that it runs correctly.
Also, a thought -- should we have a default launchpad to go along with the default runway_start and runway_end? I have mixed feelings. If the library included only vertical landing locations I would not think it was necessary, but since we have a default runway location, a default launchpad might be good to respect user expectations.

from { local i is 0. } until i >= bodyLex:keys:length step { set i to i + 1. } do {
Is it guaranteed that the :keys suffix of a lexicon always lists the keys in the same order they were added? Or even always in the same order? Even if this is true in practice, using it seems against the spirit of an associative array. In golang, they even deliberately make the iteration order of a map nondeterministic to ensure tests that depend on iteration order will fail.

bodyexists check will need to be refined because many times name piracy happens in planet packs. For example, the check you have add for stock (Kerbin, Mun and Minmus exist) also works for JNSQ. Even checking that both Mun and Minmus have Kerbin as their parent won't be enough because, again, it is also true for JNSQ. We will need to find truly unique bodies of planet packs.
Another check that might be much simpler is checking the mass or radius of the "Sun" of the planet pack, I think that will end up being unique.

Also @nuggreat you can open a PR against charlesstaats 's branch, it will be easier to highlight code for discussion that way.

For JNSQ if that is just re-scaled stock shouldn't the stock positions still hold true or does the pack edit those as well.  I would also be some what reluctant for radius checks as in the past there were several different configs that just re-scaled stock and I would like to try to avoid false positives.  If there was a way to get different possible launch sites that can be used by kUniverse then maby.  Though if nothing else we can include commented out positions and leave edits up to the user my initial condition was mainly aimed at GPP and RSS as those are the ones I know how to filter for.

For JNSQ if that is just re-scaled stock

That's the thing, it isn't simply re-scaled. It actually changes the terrain of all bodies as far as I know (only the general look of bodies is kept the same eg. Earth-like Kerbin, grayish Mun, purple / violet-ish Eve etc). They really should use different names, but sadly that's not in our hands. I'm very positive that the coordinates also change, but I can confirm it tomorrow.

My understanding is that most rescalings do not rescale the KSC, which means the constants will be invalidated even by a simple rescale. (E.g., the longitude of the runway beginning or end must change unless the runway itself is rescaled.)

@scimas I will leave the merge this up to you so you can look over and comment on things.

I'm going with the Sun radius check for detecting the solar system. I looked through the rescale mods and they change the radius value of Sun really wildly to be confused with some other system's Sun. I have opened this pr to keep the changes open for discussion.
Does anyone have RSS already installed? And which launch sites from RSS do we want to account for in the lib?

I know some people on the discord have RSS installed but they mostly have RP1 which I think further modifies RSS.  For now just get in stock and JNSQ and we can add more easily enough.

No, I wanted to test it once and make a small change to the example (runpath without explicit reference to archive). Seems to work fine, merging it now.


now dev always 404s

I am running now 17.0.4 and when I run now dev on my nextjs project and navigation to localhost:3000 I always get a 404 error.

I tried finding a solution but I can't seem to figure out why every url would 404. Any help would be much appreciated.

So I tried random options and stumbled across something that allowed my stuff to finally work. Apparently if I run
now dev -l 8080
instead of
now dev
I will be able to see the site at localhost:3000???
Additionally I had an issue where environment variables were not being read in from .env like the documentation said. I randomly tried .env.build because that was something for build time env vars. That worked but I only need the vars at runtime for my api functions so I am not sure why .env does not work. 🤷♂


Set Speeds of BLDC Motors

Confirm we can control the speed of drivetrain motors from the Jetson

0b488e5 should control the speed of the motors correctly. However, the target and actual RPM are way off, meaning PID has to be tuned.


C#: Missing Equals,  on Variant

Godot version
v4.1.dev4.mono.official [5c2295ff5]
System information
Windows 10, MacOS
Issue description
Hi i run into this issue by migrating my C# test framework to v4.1.xx.
The Varaint breaks my implementation because I used Equals to compare things (not only GodotObject's).
In C# object.Equals, the operator == is defined to compare by members and by reference with object.ReferenceEquals().
This is currently not possible with Godot Varints.
From my perspective the Variant should implement:
methods: Equals, ReferenceEquals
operators: '==', !=
Otherwise you are forced to implement your own unbox method to compare Godot.Variant on C# standard.
I now Variant is Godot specific but ist should folow the c# standards.
Steps to reproduce
    partial class ExampleNode : Godot.Node
    {
        private readonly int value;
        private readonly string msg;

        public ExampleNode(string msg, int value)
        {
            this.msg = msg;
            this.value = value;
        }

        public override bool Equals(object? obj)
        {
            return obj is ExampleNode example &&
                   value == example.value &&
                   msg == example.msg;
        }

        public override int GetHashCode() => HashCode.Combine(value, msg);
    }

        private void CompareThings<T>(T? left, T? right)
        {
            System.Console.WriteLine();
            System.Console.WriteLine($"Compare {left.GetType()}");
            object? a1 = left;
            object? b1 = right;
            System.Console.WriteLine("As System : {0} {1} Equals: {2,-5}, reference Equals: {3,-5}, operator Equals {4,-5}", a1, b1, object.Equals(a1, b1), object.ReferenceEquals(a1, b1), a1 == b1);

            Godot.Variant a2 = Godot.Variant.From(left);
            Godot.Variant b2 = Godot.Variant.From(right);
            System.Console.WriteLine("As Variant: {0} {1} Equals: {2,-5}, reference Equals: {3,-5}, unboxed Equals: {4,-5}", a2, b2, object.Equals(a2, b2), object.ReferenceEquals(a2, b2), a2.Obj.Equals(b2.Obj));
        }

        public test() {
            CompareThings(10, 10);
            CompareThings("a1", "a1");
            CompareThings(new Godot.Node(), new Godot.Node());
            CompareThings(new Example("a1", 1), new Example("a1", 1));
        }

Compare System.Int32
As System : 10 10 Equals: True , reference Equals: False, operator Equals False
As Variant: 10 10 Equals: True , reference Equals: False, unboxed Equals: True

Compare System.String
As System : a1 a1 Equals: True , reference Equals: True , operator Equals True
As Variant: a1 a1 Equals: False, reference Equals: False, unboxed Equals: True

Compare Godot.Node
As System : <Node#29779559636> <Node#29796336857> Equals: False, reference Equals: False, operator Equals False
As Variant: <Node#29779559636> <Node#29796336857> Equals: False, reference Equals: False, unboxed Equals: False

Compare GdUnit4.Asserts.ExampleNode
As System : <Node#29813114072> <Node#29846668506> Equals: True , reference Equals: False, operator Equals False
As Variant: <Node#29813114072> <Node#29846668506> Equals: False, reference Equals: False, unboxed Equals: True

Minimal reproduction project
N/A

Duplicate of https://github.com/godotengine/godot-proposals/issues/5758


Explore database options and decide which is best

We are currently using goleveldb
Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb

goleveldb (github.com/syndtr/goleveldb - most popular implementation)

pure go
stable

cleveldb (uses levigo wrapper)

fast
requires gcc
use cleveldb build tag (go build -tags cleveldb)

boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt)

EXPERIMENTAL
may be faster is some use-cases (random reads - indexer)
use boltdb build tag (go build -tags boltdb)

rocksdb (uses github.com/tecbot/gorocksdb)

EXPERIMENTAL
requires gcc
use rocksdb build tag (go build -tags rocksdb)

badgerdb (uses github.com/dgraph-io/badger)

EXPERIMENTAL
use badgerdb build tag (go build -tags badgerdb)

Goleveldb: This database is written in pure Go and is designed to be simple and efficient. It has a small memory footprint and is relatively fast, making it a good choice for low-latency applications that require fast access to data. However, it may not be the best choice for high-traffic applications as it lacks some of the more advanced features of other databases.

Cleveldb: This database is a fork of LevelDB and is optimized for use in concurrent environments. It provides good performance and scalability, making it a popular choice for high-traffic applications. However, it can be difficult to configure and may require more resources than other databases.

Boltdb: This database is a pure Go key-value store that is optimized for performance and simplicity. It provides good read and write performance and is highly reliable, making it a good choice for applications that require high uptime. However, it lacks some of the advanced features of other databases and may not be suitable for complex applications.

Rocksdb: This database is a high-performance key-value store that is optimized for solid-state drives (SSDs). It provides good read and write performance and can handle large datasets, making it a good choice for applications that require high throughput. However, it can be complex to set up and may require more resources than other databases.

PebbleDB: It's a key-value stored database build for SSDs and aims to provide high performance and reliability. It is based on the RocksDB project and is designed to be easy to use, highly configurable, and optimized for modern hardware. Some of the features of PebbleDB include support for concurrent read and write operations, efficient use of SSD storage, and flexible configuration options

Badgerdb: This database is a fast and efficient key-value store that is optimized for SSDs. It provides good performance and scalability and is highly configurable, making it a good choice for applications that require fine-tuned performance. However, it may require more resources than other databases and can be difficult to configure.

Gaia - goleveldb
Osmosisd statesync script - pebbledb
Stride statesync script - pebbledb
Juno statesync script - pebbledb


Configurable debounce / cool-off

This is the next step from #15, which was implemented in 0e0d14b475030eb47cd6d388178f1ccfdaed5d4c. I'd like to be able to configure this. 500ms is way too slow for me, I'd like something closer to 100ms to be settable.
I'm not sure what the best name for this flag would be. --debounce perhaps? d is taken for --debug, but perhaps that could be moved to some level of -v | --verbose. Let me know what you think, I'm happy to send a short PR for this.

Those changes sound good. I don't mind changing the meaning of -d as it is not a setting people will use often.

I'd like to implement this. Just want to confirm, you're alright with re-purposing -d to pair with -d, --debounce?

Great! Current use of -d can move to -v/--verbose.

Closed by #64; thanks @jaemk!


subscribing to query

Any thoughts to having a subscription to a query - for instance getting live updates to your query when new documents are indexed that change the results?
This would allow a similar experience to google firestore "onSnapshot" where a frontend can subscribe to a query and have an up-to-date response results list without having to continually poll the server

Hey,
We've decided not to implement this feature, this is not really what Meili is made for. We may reconsider if there is enough traction, so feel free to comment, cheers!

Whoa. Thanks for the update!
On Thu, Jun 25, 2020 at 6:58 AM marin<EMAIL_ADDRESS>wrote:

Hey,
We've decided not to implement this feature, this is not really what Meili
is made for. We may reconsider if there is enough traction, so feel free to
comment, cheers!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/meilisearch/MeiliSearch/issues/671#issuecomment-649559010,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAAG4PHIAYMM7RPXDWIYTRYNJY3ANCNFSM4M5NK6GQ
.


What's the difference between jsonnet.lite and jsonnet  package?

Should i import both packages to my unity project ? or just choose one package with my need ?

Isn't the Readme clear enough on this?

For Unity.Lite version, additional works are done to make more lite.
Remove JsonLinq, JPath (JToken, ...)
Remove Bson

So if you do not intend to use these features you choose the Lite version.
Otherwise you have to use the full version


Add check for prebuilt deploy page

Fixes FTD-1040

📝 Changed routes:

…/[type]/[contractType]

(view full size)

Commit 657c62bb5d14e83f475c08bbafdf5cd0acf6c025 (https://thirdweb-86vw13tt0-thirdweb.vercel.app).


Functions attributes error "'Functional' object has no attribute '_make_train_function'" and eager mode and non-eager returns different logits

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:N/a
TensorFlow installed from (source or binary):pip3
TensorFlow version (use command below):2.4.1
Python version:3.7.8
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:N/a
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
`
def adversarial_training(model, embedding_name, epsilon=1):
if model.train_function is None:  # 如果还没有训练函数
	model._make_train_function()  # 手动make
old_train_function = model.train_function  # 备份旧的训练函数

# 查找Embedding层
for output in model.outputs:
	embedding_layer = search_layer(output, embedding_name)
	if embedding_layer is not None:
		break
if embedding_layer is None:
	raise Exception('Embedding layer not found')

# 求Embedding梯度
embeddings = embedding_layer.embeddings  # Embedding矩阵
gradients = K.gradients(model.total_loss, [embeddings])  # Embedding梯度
gradients = K.zeros_like(embeddings) + gradients[0]  # 转为dense tensor

# 封装为函数
inputs = (
	model._feed_inputs + model._feed_targets + model._feed_sample_weights
)  # 所有输入层
embedding_gradients = K.function(
	inputs=inputs,
	outputs=[gradients],
	name='embedding_gradients',
)  # 封装为函数

def train_function(inputs):  # 重新定义训练函数
	grads = embedding_gradients(inputs)[0]  # Embedding梯度
	delta = epsilon * grads / (np.sqrt((grads**2).sum()) + 1e-8)  # 计算扰动
	K.set_value(embeddings, K.eval(embeddings) + delta)  # 注入扰动
	outputs = old_train_function(inputs)  # 梯度下降
	K.set_value(embeddings, K.eval(embeddings) - delta)  # 删除扰动
	return outputs

model.train_function = train_function  # 覆盖原训练函数

pops
'Functional' object has no attribute '_make_train_function'
and when I turned on disable_eager_execution(), no errors pops.
When in prediction, eager call  model(inputs) returns wrong logits when I finished training and save the model to h5 format then reloaded it through tf.kears.models.load_model. This process is done in non-eager execution mode
But in the meanwhile I transform the h5 model to tf saved model(*.pb) file and run it in non-eager mode. the correct logits appears.
Describe the expected behavior
shouldn't these two calls return the same logits?
Standalone code to reproduce the issue
https://github.com/bojone/bert4keras/blob/master/examples/task_sentiment_virtual_adversarial_training.py
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Traceback (most recent call last):
File "/home/pycharmProjs/bert4keras/examples/task_proxy_recognization.py", line 217, in
adversarial_training(test_model,'Embedding-Token', 0.5)
File "/home/pycharmProjs/bert4keras/examples/task_proxy_recognization.py", line 174, in adversarial_training
model._make_train_function()  # 手动make
AttributeError: 'Functional' object has no attribute '_make_train_function'

@axelning
I ran the code shared on tf 2.4 and see error due to third party dependencies, please find the gist here.
Please share code such that there are no third party dependencies and if the error reported is due to these, please open the issue in the respective repository.
If possible share a simple code with the error reported due to tensorflow.

It is because it just called tf.keras actually, and this functions runs well in tf 2.2 , so I wonder there's some change in tf.keras

import tensorflow as tf
tf.compat.v1.disable_eager_execution()
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(512, activation=tf.nn.relu, input_shape=(784,)))
model.add(tf.keras.layers.Dense(5, activation=tf.nn.softmax))
model.compile(loss='categorical_crossentropy',
optimizer='rmsprop',
metrics=['accuracy'])
model._make_train_function()
runs well , when without tf.compat.v1.disable_eager_execution() the same error pops

@axelning
I ran with out "tf.compat.v1.disable_eager_execution() " and no error popped up, please find gist here

I ran the gist and got
AttributeError                            Traceback (most recent call last)
 in ()
8 optimizer='rmsprop',
9 metrics=['accuracy'])
---> 10 model._make_train_function()
AttributeError: 'Sequential' object has no attribute '_make_train_function'

ummm, any progress?

@axelning I changed last line of your code from
model._make_train_function() to model.make_train_function() and with that change it doesn't throw any error. Please check the gist here.
Looks like model._make_train_function() is only available under tensorflow/python/keras/engine/training_v1.py hence it was working only when eager mode is disabled. Thanks!

@axelning I changed last line of your code from
model._make_train_function() to model.make_train_function() and with that change it doesn't throw any error. Please check the gist here.
Looks like model._make_train_function() is only available under tensorflow/python/keras/engine/training_v1.py hence it was working only when eager mode is disabled. Thanks!

is this the reason leading to prediction difference when in eager mode and non-eager mode?  I trained one model with non-eager mode, by self defined function through model._make_train_function() and use the model in eager mode, the logits the model output is absolutely wrong, but in non-eager mode, the logits returned normal

@axelning Not sure about it. Please share a simple and complete standalone code to reproduce the issue. Thanks!


Extended /flag command to allow heros to be flagged to x/y coords

You shouldn't use return SomeFunction, but instead ensure that the lambda "returns" void, since that's what the callback should be and return on the following line.
i.e. GW::Chat::CreateCommand(L"flag", [this](const wchar_t *message, int argc, LPWSTR *argv) -> void {
Otherwise, I'm fine adding this feature, but I don't really see the benefit. In which context would one use it ?

Thanks for all of this feedback - I'll update my branch and send through another commit with these suggestions.
It was requested by some SC guys for deep pads on low man runs and a few other bits where you want to hotkey the flags instead of manually doing it.

Right, the deep argument is convincing.

Changes done in latest commit


WIP feat(learning classifier) | make a learning classifier by itself

Lgtm for now, though tbh I think there's a lot of work we can do next week to refine the elegance and simplicity of this.

I think a good way to understand the goal of this is for us to be able to get integrated into e.g. https://www.askmarvin.ai/welcome/what_is_marvin/

Lgtm for now, though tbh I think there's a lot of work we can do next week to refine the elegance and simplicity of this.

I think a good way to understand the goal of this is for us to be able to get integrated into e.g.
https://www.askmarvin.ai/welcome/what_is_marvin/

I think it's quite straightforward at the moment; we just need to create a classifier and optimize it.
Regarding the goal, it seems our code is already quite similar to the example you mentioned (e.g., https://www.askmarvin.ai/welcome/what_is_marvin/).
The only way I see to simplify it further is to:
Extract the model configurations and initialize them during the library import, then have the class retrieve them from the library. However, I prefer keeping the scope within the class instead of using a global approach.
Here’s an example of the current implementation:
classifier = SingleClassClassifier(     # Model config --> This should be done in another part with Maven too.     instructor_client=instructor_client,     model="gpt-4o-mini",     zenbase_tracer=zenbase_tracer,     # Prompt definition --> Same as Maven.     prompt=prompt_definition,     class_dict=class_dict,     # Optimization parameters.     training_set=train_set,     validation_set=validation_set,     test_set=test_set, ) best_fn, _, _ = classifier.perform() output = best_fn(sample_input)


[WIP] Update masking.py

This is not the final PR but an update.
Done:

added test cases
cover the scalar case
renamed some APIs
cleaned up code

ToDo:

more corner cases around complex combination of tensors in NT
cover autograd propagation
add docs

If there are still issues with certain corner cases it's ok to detect those and throw "NotImplemented" errors. At least that way we're keeping track of them and can claim full correctness for the ones we allow.

@cpuhrsch
Done:

Solid amount of tests
Rewrote logic for nt_from_tensor_mask

Next:

Test error cases in some corner cases. (reason for WIP)
Rewrite code to use padding/fill where possible (reason for WIP)
Add docs and code comments (next PR)
Cover requires_grad scenario (next PR)

what i want you to do is go one test at a time and make sure that you really understand and follow what is going on. please, spend some time here.

@cpuhrsch, PR is fully ready for review

To Follow up:

exclude scalar case from get_max_size
update test cases for test_ntftm_test_multi_tensor_mix_mask3 (remove empty tensor)
use nested_size() instead of unbind() in get_max_size
look into getting rid of tolist()


[Frontend] Integration of analytics.js with backend completely Added

Description
Integration of influencer analytics page is compeleted.
Issue
Issue Link resolve #105

@Kajol-Kumari  @RohitGupta1237  can you please check

@Hemu21  Damn bro itni jldii krdiya :) nice u build different


Include project fluent-plugin-openlineage

This branch contains the folder with the first release of fluent-plugin-openlineage, accessible at RubyGems ( https://rubygems.org/gems/fluent-plugin-openlineage ). The original material in this folder was created by Pawel Leszczynski, to whom I am very grateful. All modifications to his work were made exclusively to develop this atomic plugin, which can now be easily used with a Dockerfile and a configuration file.

@jonathanlbt1 why is it different than https://github.com/OpenLineage/OpenLineage/tree/main/proxy/fluentd? Shouldn't the changes be made to that directory rather than adding separate one?

@jonathanlbt1 why is it different than https://github.com/OpenLineage/OpenLineage/tree/main/proxy/fluentd? Shouldn't the changes be made to that directory rather than adding separate one?

Hi! I just wanted you to have a look at the changes first. I'm preparing some changes to a future PR. This one is only for you to look at the changes and give me suggestions. It's not meant to be accepted into the project yet. Since I didn't know how to share that, I opened a PR into another folder to preserve the work already done in the community.

@jonathanlbt1 Is it then a draft PR at the moment? If so, please convert it to draft.


[NC-242] Add chart widgets to design system app

Looks good, one thing was the title of the pie/doughnut chart page is still "Line Chart" instead of "Pie/Doughnut Chart"

Looks good, one thing was the title of the pie/doughnut chart page is still "Line Chart" instead of "Pie/Doughnut Chart"

done


Fix bulkload command.

bulkload command wasn't working so I fixed it and re-integrated it along other commands.

+1, thanks for the PR. I didn't realize this hadn't been removed yet, but just as happy to have it fixed.

Wow, that was fast ! Thantks for the merge ! :+1: :smile:


updated hotstar logo

Fixes #6714
updated hotstar logo to new one in website section

can you reformat the adopters.yaml?


Gateway throw error when a download NFT is requested

When we try to download a published NFT1155 gateway throw this error:
Uncaught (in promise) Error: Http error with code 404: Request GET

Parameters:
{
  nodeUri: 'https://matic-mumbai.chainstacklabs.com', // Public Network
  gatewayUri: 'https://defi.v2.gateway.mumbai.nevermined.rocks',
  gatewayAddress: "0x5838B5512cF9f12FE9f2beccB20eb47211F9B0bc",
  graphHttpUri: 'https://api.thegraph.com/subgraphs/name/nevermined-io/common',
  marketplaceUri: 'https://defi.v2.marketplace-api.mumbai.nevermined.rocks',
}

Method used in SDK: sdk.nfts.access(did, account)
SDK version: 0.25.0
gateway version: 0.3.0

the issue was that the file doesn't exist anymore and replacing the url fix it then I close this issue


Add support for ffmpeg 2.6-2.8.

All these properties were moved to an internal data structure instead of the public API.
https://www.ffmpeg.org/doxygen/2.6/structAVFormatInternal.html
Fixes https://github.com/giorgisio/goav/issues/5

that was quick, thanks!

Thanks for keeping your goal clear.


ReferenceError: sHead is not defined

Hi. You have a mistake in jws 3.1. sHead variable does not exist.
KJUR.jws.JWS.sign = function(alg, sHeader, sPayload, key, pass) {
    var ns1 = KJUR.jws.JWS;

    if (! ns1.isSafeJSONString(sHeader))
	throw "JWS Head is not safe JSON string: " + sHead;

Sorry but it have been fixed in the 3.2 or later.


Is there any default visitorID generated by Adobe analytics? - FlutterACPAnalytics.visitorIdentifier

In android native I know that there is some marketingVisitorId which is generated by the Adobe analytics library.
In this library there are methods to set custom visitor ID which is the only way to fetch ID. But I don't have any such requirement to set custom therefore I am expecting some system generated Visitor ID.
When I try to use below method in order to fetch VisitorID, it returns a null value.
FlutterACPAnalytics.visitorIdentifier()
Could you please confirm if this expected behaviour. If yes then could you please introduce a method for it if feasible.

@sohitEngg  You can use the following API to retrieve marketingCloudId.


Bump cert-manager to v1.8.0

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Updated cert-manager to v1.8.0.
Which issue(s) this PR fixes:

None
Does this PR have test?
None

Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

Updated cert-manager to v1.8.0.

/retest-required

Codecov Report

Merging #886 (1775768) into main (e5c6f08) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #886   +/-   ##
=======================================
  Coverage   52.33%   52.33%
=======================================
  Files          42       42
  Lines        4347     4347
=======================================
  Hits         2275     2275
  Misses       1995     1995
  Partials       77       77


Add support for GCP Cloud SQL

Needs GitHub secret GCP_SA_KEY (base64-encoded GCP service account key in JSON format).

Nice. I've been waiting for this for a while.
Keep the great work 👍🏽


 But after i change the value of the "temperature" ,it works , don't  do any stupid decisions.what's the problem with this program, could you help me?

It seems that you have run successfully.I had an error running the program.Can you briefly describe your steps?
Thanks!


Add blockchain.height method

To get the latest block height without having to subscribe.

I think that it is not useful for electrum itself, and it would be insecure for any application that uses it, because that app will have to trust the server (as opposed to using spv)


lib/bin/repl.js throws error in prod

I've tried out lib/bin/repl.js locally, which @alxndrsn wrote, and I've already found it to be a useful tool. However, I'm encountering an error when I try to run it in prod:
# docker compose exec service node lib/bin/repl.js
node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module 'should'
Require stack:
- /usr/odk/lib/bin/repl.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/usr/odk/lib/bin/repl.js:10:16)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/odk/lib/bin/repl.js' ]
}

I think it's because should is a dev dependency. Could we just remove should from repl.context in lib/bin/repl.js? It might be a little less convenient locally, but it'd still be possible to access should locally: you can run require('should') after starting the REPL. It'd definitely be useful to be able to run lib/bin/repl.js in prod.

Could we just remove should from repl.context in lib/bin/repl.js?

Alternative approach: handle when it's missing.  PR demonstrating this at https://github.com/getodk/central-backend/pull/1229


Apps cmp delayed delivery

This adds delayed delivery features for any type of CMP messages as specified in lightweightcmp profile (see https://datatracker.ietf.org/doc/html/draft-ietf-lamps-lightweight-cmp-profile), which profiles extensions to CMPv2 and the new CMP version 3.

[ ] documentation is added or updated
[ ] tests are added or updated

Could you please remove the merge commit a207e93b402eac97f8942438470a5c994e1edf55 (which wlll not be allowed by OpenSSL and my be the reason for the diff output that is confusing when reviewing)
and rebase on the latest OpenSSL master.

I've produced a squashed version without merge commits in #3.


news added in homepage

Description

As already mentioned in #ISSUE_NUMBER, this PR tackles:

...
...
...

In particular, the ...
Checklist

[ ] I followed the indications in the CONTRIBUTING
[ ] The documentation related to the proposed change has been updated accordingly (also comments in code).
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?
[ ] Ready for review! :rocket:

Fixes

Fixes #

@bfabio @denismarini sto sbagliando qualcosa, ma non capisco cosa. Mi potete aiutare?

@danieledebernardinDTD era un apostrofo in una stringa già delimitata da singoli apostrofi


ARM64 Powershell Microsoft Office COM invocation fails when running elevated

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
The following command will fail when executed under an elevated (admin) PowerShell ARM64 session:
$excel = New-Object -Com Excel.Application
To reproduce:

Install the ARM64 version of Office (18.2405.1221.0) on an ARM64 release of Windows (26100)
Install the ARM64 flavor of PowerShell 7 (7.4.3) using the zip extraction installation process
Launch pwsh.exe as admin
Exec the command $excel = New-Object -Com Excel.Application

On an ARM64 Windows Device:
ARM64 pwsh.exe run as admin --> Repro
ARM64 pwsh.exe run non-elevated --> No-repro
X64 pwsh.exe run as admin --> No-repro
X64 pwsh.exe run non-elevated --> No-repro
Expected behavior
The command successfully creates an Excel application session through COM

Actual behavior
The Excel application fails to initialize and a COM error is returned.

Error details
When this error occurs, a dialog with the following message is displayed:

Error: The operating system is not presently configured to run this application.

After dismissing this dialog, the follow error is returned through the PowerShell session (after ~30 seconds):

New-Object: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

Environment data
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Tested on the same version of ARM64 Office, on Window Dev Kit 2023 but with PowerShell 7.2.21 and had no issues with either normal user or admin mode, PowerShell 5.1 or PowerShell 7.2.21. No problems on x64 machine either.
trap
{
	throw $PSItem
}

$ErrorActionPreference = 'Stop'

$excel = New-Object -Com Excel.Application
try
{
	$excel.Version
}
catch
{
	$excel.Quit()
}

In all cases the result was
16.0

Suggest confirm if problem is within COM server activation rather than PowerShell. Suggest confirm behaviour with simple ARM64 C++ application using CoInitializeEx(), CLSIDFromProgId() and CoCreateInstance().

Quick test using C# and reflection
Works both as admin and normal user on ARM64
using System;
using System.Reflection;
using System.Runtime.InteropServices;

Type type = Type.GetTypeFromProgID("Excel.Application");

Object obj = Activator.CreateInstance(type);

try
{
    var result = type.InvokeMember("Version", BindingFlags.Public | BindingFlags.Instance | BindingFlags.GetProperty, null, obj, new object[0]);

    Console.WriteLine($"{result}");
}
finally
{
    type.InvokeMember("Quit", BindingFlags.Public | BindingFlags.Instance | BindingFlags.InvokeMethod, null, obj, new object[0]);
}

Hi rhubarb-geek-nz,
Thank-you for attempting to repro. Further testing indicates that this might be Windows 24H2 (26100.1) specific, as I was unable to reproduce on a 23H3 (22631.2428) install.
I’ll give the simple ARM64 c++ app suggestion a try.
From: rhubarb-geek-nz @.>
Sent: Monday, July 1, 2024 11:09 PM
To: PowerShell/PowerShell @.>
Cc: IRQL-NOT-LESS-OR-EQUAL @.>; Author @.>
Subject: Re: [PowerShell/PowerShell] ARM64 Powershell Microsoft Office COM invocation fails when running elevated (Issue #24005)
Quick test using C# and reflection
Works both as admin and normal user on ARM64
using System;
using System.Reflection;
using System.Runtime.InteropServices;
Type type = Type.GetTypeFromProgID("Excel.Application");
Object obj = Activator.CreateInstance(type);
try
{
var result = type.InvokeMember("Version", BindingFlags.Public | BindingFlags.Instance | BindingFlags.GetProperty, null, obj, new object[0]);

Console.WriteLine($"{result}");

}
finally
{
type.InvokeMember("Quit", BindingFlags.Public | BindingFlags.Instance | BindingFlags.InvokeMethod, null, obj, new object[0]);

}
—
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/PowerShell/issues/24005#issuecomment-2202014056, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIXRMMVPLITX52WK7Q5Y3V3ZKI7YDAVCNFSM6AAAAABKGGIP4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBSGAYTIMBVGY.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

I’ll give the simple ARM64 c++ app suggestion a try.

A C++ version would be
#include <objbase.h>
#include <stdio.h>

static HRESULT invoke(IDispatch* dispatch, LPCOLESTR str, WORD flags)
{
	LCID lcid = GetUserDefaultLCID();
	BSTR names[] = { SysAllocString(str) };
	DISPID dispid[sizeof(names) / sizeof(names[0])];
	UINT ui = sizeof(names) / sizeof(names[0]);
	HRESULT hr = dispatch->GetIDsOfNames(IID_NULL, names, ui, lcid, dispid);

	if (SUCCEEDED(hr))
	{
		UINT argErr = 0;
		VARIANT result;
		DISPPARAMS params;
		EXCEPINFO exinfo;
		ZeroMemory(&params, sizeof(params));
		ZeroMemory(&exinfo, sizeof(exinfo));
		VariantInit(&result);

		hr = dispatch->Invoke(dispid[0], IID_NULL, lcid, flags, &params, &result, &exinfo, &argErr);

		if (SUCCEEDED(hr))
		{
			if (result.vt == VT_BSTR)
			{
				printf("%S\n", result.bstrVal);
			}
		}

		VariantClear(&result);
	}

	while (ui--)
	{
		SysFreeString(names[ui]);
	}

	return hr;
}

int main(int argc,char **argv)
{
	HRESULT hr = OleInitialize(NULL);

	if (SUCCEEDED(hr))
	{
		CLSID clsid;
		BSTR bstr = SysAllocString(L"Excel.Application");
		hr = CLSIDFromProgID(bstr, &clsid);
		SysFreeString(bstr);

		if (SUCCEEDED(hr))
		{
			IDispatch* dispatch = NULL;

			hr = CoCreateInstance(clsid, NULL, CLSCTX_LOCAL_SERVER, IID_IDispatch, (void**)&dispatch);

			if (SUCCEEDED(hr))
			{
				hr = invoke(dispatch, L"Version", DISPATCH_PROPERTYGET);

				hr = invoke(dispatch, L"Quit", DISPATCH_METHOD);

				dispatch->Release();
			}
		}

		OleUninitialize();
	}

	return SUCCEEDED(hr) ? 0 : 1;
}

Thanks – that was incredibly helpful!
The test app did not reproduce the problem.
It looks like there were a lot of changes in combase.dll between 23H2 and 24H2. I’m reaching out to the owners of that module to see if they can help figure out what might be going on here.
From: rhubarb-geek-nz @.>
Sent: Tuesday, July 2, 2024 8:03 PM
To: PowerShell/PowerShell @.>
Cc: IRQL-NOT-LESS-OR-EQUAL @.>; Author @.>
Subject: Re: [PowerShell/PowerShell] ARM64 Powershell Microsoft Office COM invocation fails when running elevated (Issue #24005)
I’ll give the simple ARM64 c++ app suggestion a try.
A C++ version would be
#include <objbase.h>
#include <stdio.h>
static HRESULT invoke(IDispatch* dispatch, LPCOLESTR str, WORD flags)
{
    LCID lcid = GetUserDefaultLCID();

    BSTR names[] = { SysAllocString(str) };

    DISPID dispid[sizeof(names) / sizeof(names[0])];

    UINT ui = sizeof(names) / sizeof(names[0]);

    HRESULT hr = dispatch->GetIDsOfNames(IID_NULL, names, ui, lcid, dispid);

    if (SUCCEEDED(hr))

    {

           UINT argErr = 0;

           VARIANT result;

           DISPPARAMS params;

           EXCEPINFO exinfo;

           ZeroMemory(&params, sizeof(params));

           ZeroMemory(&exinfo, sizeof(exinfo));

           VariantInit(&result);

           hr = dispatch->Invoke(dispid[0], IID_NULL, lcid, flags, &params, &result, &exinfo, &argErr);

           if (SUCCEEDED(hr))

           {

                   if (result.vt == VT_BSTR)

                   {

                           printf("%S\n", result.bstrVal);

                   }

           }

           VariantClear(&result);

    }

    while (ui--)

    {

           SysFreeString(names[ui]);

    }

    return hr;

}
int main(int argc,char **argv)
{
    HRESULT hr = OleInitialize(NULL);

    if (SUCCEEDED(hr))

    {

           CLSID clsid;

           BSTR bstr = SysAllocString(L"Excel.Application");

           hr = CLSIDFromProgID(bstr, &clsid);

           SysFreeString(bstr);

           if (SUCCEEDED(hr))

           {

                   IDispatch* dispatch = NULL;

                   hr = CoCreateInstance(clsid, NULL, CLSCTX_LOCAL_SERVER, IID_IDispatch, (void**)&dispatch);

                   if (SUCCEEDED(hr))

                   {

                           hr = invoke(dispatch, L"Version", DISPATCH_PROPERTYGET);

                           hr = invoke(dispatch, L"Quit", DISPATCH_METHOD);

                           dispatch->Release();

                   }

           }

           OleUninitialize();

    }

    return SUCCEEDED(hr) ? 0 : 1;

}
—
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/PowerShell/issues/24005#issuecomment-2204976071, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIXRMMUAGN64VAYPX5ATRQ3ZKNSWBAVCNFSM6AAAAABKGGIP4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBUHE3TMMBXGE.
You are receiving this because you authored the thread.Message ID: @.***>

This appears to be an app compat shimming issue that is tripping up Excel (and other Office Apps).
If the Excel process is created with the environment variable __COMPAT_LAYER set to “Installer”, then the problematic app compat shims will be added during CreateProcess. The Excel process is inheriting the environment variables from pwsh via the COM instantiation.
Pwsh.exe appears to only have this variable set when launched from Explorer as elevated, and only on the ARM64 version of pwsh (isn’t present on the x64 version of pwsh.exe). It is also not present when pwsh is launched from an elevated ARM64 cmd.exe.
Removing __COMPAT_LAYER from the pwsh.exe process before invoking the Office applications via COM works around the problem. I’ll reach out to the Windows AppCompat team to see how this should be fixed.
From: Timothy Davis
Sent: Wednesday, July 3, 2024 10:25 AM
To: 'PowerShell/PowerShell' @.>; PowerShell/PowerShell @.>
Cc: Author @.***>
Subject: RE: [PowerShell/PowerShell] ARM64 Powershell Microsoft Office COM invocation fails when running elevated (Issue #24005)
Thanks – that was incredibly helpful!
The test app did not reproduce the problem.
It looks like there were a lot of changes in combase.dll between 23H2 and 24H2. I’m reaching out to the owners of that module to see if they can help figure out what might be going on here.
From: rhubarb-geek-nz<EMAIL_ADDRESS>Sent: Tuesday, July 2, 2024 8:03 PM
To: PowerShell/PowerShell<EMAIL_ADDRESS>Cc: IRQL-NOT-LESS-OR-EQUAL<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [PowerShell/PowerShell] ARM64 Powershell Microsoft Office COM invocation fails when running elevated (Issue #24005)
I’ll give the simple ARM64 c++ app suggestion a try.
A C++ version would be
#include <objbase.h>
#include <stdio.h>
static HRESULT invoke(IDispatch* dispatch, LPCOLESTR str, WORD flags)
{
    LCID lcid = GetUserDefaultLCID();

    BSTR names[] = { SysAllocString(str) };

    DISPID dispid[sizeof(names) / sizeof(names[0])];

    UINT ui = sizeof(names) / sizeof(names[0]);

    HRESULT hr = dispatch->GetIDsOfNames(IID_NULL, names, ui, lcid, dispid);

    if (SUCCEEDED(hr))

    {

           UINT argErr = 0;

           VARIANT result;

           DISPPARAMS params;

           EXCEPINFO exinfo;

           ZeroMemory(&params, sizeof(params));

           ZeroMemory(&exinfo, sizeof(exinfo));

           VariantInit(&result);

           hr = dispatch->Invoke(dispid[0], IID_NULL, lcid, flags, &params, &result, &exinfo, &argErr);

           if (SUCCEEDED(hr))

           {

                   if (result.vt == VT_BSTR)

                   {

                           printf("%S\n", result.bstrVal);

                   }

           }

           VariantClear(&result);

    }

    while (ui--)

    {

           SysFreeString(names[ui]);

    }

    return hr;

}
int main(int argc,char **argv)
{
    HRESULT hr = OleInitialize(NULL);

    if (SUCCEEDED(hr))

    {

           CLSID clsid;

           BSTR bstr = SysAllocString(L"Excel.Application");

           hr = CLSIDFromProgID(bstr, &clsid);

           SysFreeString(bstr);

           if (SUCCEEDED(hr))

           {

                   IDispatch* dispatch = NULL;

                   hr = CoCreateInstance(clsid, NULL, CLSCTX_LOCAL_SERVER, IID_IDispatch, (void**)&dispatch);

                   if (SUCCEEDED(hr))

                   {

                           hr = invoke(dispatch, L"Version", DISPATCH_PROPERTYGET);

                           hr = invoke(dispatch, L"Quit", DISPATCH_METHOD);

                           dispatch->Release();

                   }

           }

           OleUninitialize();

    }

    return SUCCEEDED(hr) ? 0 : 1;

}
—
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/PowerShell/issues/24005#issuecomment-2204976071, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIXRMMUAGN64VAYPX5ATRQ3ZKNSWBAVCNFSM6AAAAABKGGIP4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBUHE3TMMBXGE.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Closing issue as this appears to be a Microsoft appcompat shimming issue and not an issue with PowerShell.
Windows OS bug 52322413 is tracking the appcompat work to address this issue.


How I can install without Composer

Hello,
I am trying to install this package manually without using composer, is there any way to manuel include install without composer?
Thanks.

Yes, we have a phar distribution. :)

phar installation instructions


fix: grammar

I recently discovered your blog, and like your style :)
Here's a little fix I found.

Hey just noticed this issue came from commit b1f2d9cb3153355c69f40ca26c23405c5647ab60
So you could also just go back to the original wording of that sentence.

Thanks for spotting that error and submitting a fix! 👍🏻


Memory Leaks

RunLoop retain Each's _timer property cause memory Leaks, Although _timer be marked  as weak.
RunLoop -> Timer -> Each

@DeveloperPans I don't see any memory leaks in the code.
It's true, the run loop retains the timer which it is weak referenced by Each.

the test step could expose memory leak are as follow:

We have two ViewController embed in UINavigationController: ViewControllerA and ViewControllerB
push to ViewControllerB
use Each like demo doing, at ViewControllerB's viewDidLoad function.

    override func viewDidLoad() {
        super.viewDidLoad()
        Each(1).seconds.perform {
            print("second passed")
            return false
        }
    }

Pop ViewControllerB.
Timer is still running, because of the each instance wasn't free and deInit not been called.
We got a memory leak.

For now, a simple work around could be: store the Each instance in your UIViewController and call the stop() method in the deinit as below:
class BViewController: UIViewController {

    let timer = Each(1).seconds

    deinit {
        timer.stop()
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        timer.perform { [weak self] in
            print("Timer called")
            self?.dismiss(animated: true, completion: nil)
            return .continue
        }
    }
}

By the way, it works well even if you return .stop/true in the perform closure. This is quite normal, I don't see the need to return .continue/false when the closure deinitializes the owner (the view controller)

Here is a way to resolve this issue in Objective-C: PSWeakProxy
But invoke it case dependence.
I'm trying to find out a way with pure swift.

@DeveloperPans I'm actually working on it on feature/memory-leak-fix branch
For now I succeeded to make a sort of weak timer. The only requirement is that the object has to hold a strong reference to the Each instance, like the example below:
class BVC: UIViewController {

    let timer = Each(1).seconds

    override func viewDidLoad() {
        super.viewDidLoad()

        timer.perform {
            print("tiemer called")
            return .continue
        }
    }

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)

        self.dismiss(animated: true, completion: nil)
    }
}

This works nicely and there is no need to call the stop() when the BVC.deinit is called

great!

So, as I explained in the post up here, with this fix, you are not able anymore to create a timer in your method scope by only typing because the controller has to keep a reference to it.
Each(1).seconds.perform {
    // do something
    return .continue
}

I found an another solution with a colleague of mine, which allows you to do it again. But Each needs the owner reference to check whether it's been deallocated in the mean time to stop the timer execution, so a prototype of the implementation will be
Each(1).seconds.performOn(self) {
    // do something
    return .continue
}

What do you think guys? I can even try to wrap up this method call in a NSObject extension.

Actually I'm thinking about this issue really a lot. I decided that the memory leak should stay there: unfortunately it's the default behavior of NSTimer class provided by Apple. There are some workarounds to keep your code free from memory leaks using Each
Workaround 1
In case you don't want to declare a property that holds the Each reference, create a normal Each timer in your method scope and return .stop/true whenever the owner instance is nil
Each(1).seconds.perform { [weak self] in
        guard let _ = self else { return .stop }

        print("timer called")
        return .continue
}

Workaround 2
In case the first workaround wasn't enough, you can declare a property that holds the Each reference and call the stop() function whenever the owner is deallocated
final class ViewController: UIViewController {
    private let _timer = Each(1).seconds

    deinit {
        _timer.stop()
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        _timer.perform {
            // do something and return. you can check here if the `self` instance is nil as for workaround #1
        }
    }
}

@DeveloperPans

May be paste Workaround 2 to README could help more people and this discuss perform its values. Do you think so?

I think for now it's ok until someone will find a good solution for it.
Each is cool because the developer can simply use it. All the fixes I found make the interface not easy as it is now.

Less global variables are better… I think.
So I vote performOn: )
Best regards!

潘晟
Shawn Pan
Team Leader
http://shengpan.net

在 2016年10月24日，21:26，dalu93<EMAIL_ADDRESS>写道：
So, as I explained in the post up here, with this fix, you are not able anymore to create a timer in your method scope by only typing because the controller has to keep a reference to it.
Each(1).seconds.perform {
// do something
return .continue
}
I found an another solution with a colleague of mine, which allows you to do it again. But Each needs the owner reference to check whether it's been deallocated in the mean time to stop the timer execution, so a prototype of the implementation will be
Each(1).seconds.performOn(self) {
// do something
return .continue
}
What do you think guys? I can even try to wrap up this method call in a NSObject extension.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dalu93/Each/issues/4#issuecomment-255739586, or mute the thread https://github.com/notifications/unsubscribe-auth/AIgE4MHXZT8c3zzf2cS0_cfewIORtpYYks5q3LH1gaJpZM4Kd7Kf.

I'm gonna implement that method too. In this way the developer can easily choose his implementation @DeveloperPans

I just merged the new method on develop. It will be released soon in the version 1.1.1


Block upgrade rollout strategy configuration for vsphere

Issue #, if available:
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest

/approve
/lgtm


error on shape size (224, 224, 4) maybe related to keras/tenserflow versions?

======================================================================
ERROR: Failure: ValueError (Error when checking input: expected input_2 to have shape (224, 224, 3) but got array with shape (224, 224, 4))
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "", line 693, in _load
File "", line 673, in _load_unlocked
File "", line 673, in exec_module
File "", line 222, in _call_with_frames_removed
File "/home/mobile/imagecluster/test.py", line 2, in
main.main('/home/mobile/app_icons/images', sim=0.5)
File "/home/mobile/imagecluster/imagecluster/main.py", line 28, in main
fps = ic.fingerprints(files, model, size=(224,224))
File "/home/mobile/imagecluster/imagecluster/imagecluster.py", line 131, in fingerprints
return dict((fn, fingerprint(fn, model, size)) for fn in files)
File "/home/mobile/imagecluster/imagecluster/imagecluster.py", line 131, in
return dict((fn, fingerprint(fn, model, size)) for fn in files)
File "/home/mobile/imagecluster/imagecluster/imagecluster.py", line 90, in fingerprint
return model.predict(arr4d_pp)[0,:]
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 1147, in predict
x, _, _ = self._standardize_user_data(x)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 749, in _standardize_user_data
exception_prefix='input')
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training_utils.py", line 137, in standardize_input_data
str(data_shape))
ValueError: Error when checking input: expected input_2 to have shape (224, 224, 3) but got array with shape (224, 224, 4)
-------------------- >> begin captured logging << --------------------
PIL.PngImagePlugin: DEBUG: STREAM b'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM b'IDAT' 41 6482
--------------------- >> end captured logging << ---------------------

Ran 2 tests in 33.882s
FAILED (errors=1)

Hard to say with nothing but a traceback. Some more context would certainly help, for instance: Does the simple test imagecluster/test/test_ic.py pass? What code are you running to produce this error? What version of keras/tensorflow are you using?

Closing due to inactive OP.

I got the same error, and I discovered it happens when the main.main() function gets a PNG rather than a JPEG.

That happens when the PNG is in RGBA mode, the fourth channel is the alpha channel. So far I processed only JPGs. The very quick fix would be to remove alpha and set a white background before, e.g. convert -alpha deactivate -background white foo.png foo.jpg.

Yeah, I realized that. Thanks for the solution to convert PNG to JPG. This
issue can be closed now (sorry about resurrecting a closed issue).
On Mon, Oct 8, 2018, 6:06 PM Steve Schmerler<EMAIL_ADDRESS>wrote:

That happens when the PNG is in RGBA mode, the fourth channel is the alpha
channel. So far I processed only JPGs. The very quick fix would be to
remove alpha and set a white background before, e.g. convert -alpha
deactivate -background white foo.png foo.jpg.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/elcorto/imagecluster/issues/5#issuecomment-428007209,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHk6MatEWjEn6-5PAFS1KHZhSxxDCdSNks5ui9p0gaJpZM4WWqWi
.

I'll leave that open as a reminder. I'll add a PIL way to convert RGBA -> RBG when I have the time. Thanks for reporting.

convert -alpha deactivate -background white foo.png foo.jpg.

That should read -alpha remove.


Partial installation of xgboost - for inference only

Hi,
I have a use case where I only need to do inference with an xgboost model, and I have limited space to install the Xgboost itself.
Is there a way to reduce the size of Xgboost installation by skipping some modules /dependencies?
Thank you

See https://discuss.xgboost.ai/t/partial-installation-for-inference-is-it-possible/2001/2


[Feature] Filter admin panel charts by custom date range

📃 Description
This PR introduces the much requested custom date range filter on the admin panel dashboard for all charts.
🤔 Caveats

The public dashboard was out of scope for this change, didn't make sense investing the time into something that's going to be rewritten Soon(ish)™.

✅ To-do list

[ ] make filters and queries timezone aware

🪵 Changelog
➕ Added

filter admin panel dashboard charts by date range

🗑 Removed

static date ranges on each chart

📷 Screenshots

Awesome! :)

Killing this PR, it would be throw away work for the planned dashboard changes.


Normalize project_id parameter

Hello
This parameter is called inconsistently. Sometimes it is called project

To ensure consistency across all GCP operators in Airflow, the following operator parameter names, which apply to most (if not all) services, should be used:

project_id: for identifying a GCP project, e.g., “my-project”.
[...]

Everything looks fine except 'Dataproc' and 'BigQery'. It should be part of separated works.


Bump commons-fileupload from 1.3.1 to 1.3.3 in /smart-admin-service

Bumps commons-fileupload from 1.3.1 to 1.3.3.
Signed-off-by: dependabot[bot]<EMAIL_ADDRESS>

1


example SOCP problem where this Julia package does not handle error correctly

Related to #100
The following mathprogbase conic problem returns a status of :Unknown (due to duality gap it seems):
c = [33.8801,35.0718,36.5184,30.5621,12.6046,23.5635,31.5556,23.0564,5.47136,8.49738,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]

A = sparse([2,5,8,11,14,17,20,23,26,29,1,31,32,61,2,31,32,62,3,33,4,34,35,63,5,34,35,64,6,36,7,37,38,65,8,37,38,66,9,39,10,40,41,67,11,40,41,68,12,42,13,43,44,69,14,43,44,70,15,45,16,46,47,71,17,46,47,72,18,48,19,49,50,73,20,49,50,74,21,51,22,52,53,75,23,52,53,76,24,54,25,55,56,77,26,55,56,78,27,57,28,58,59,79,29,58,59,80,30,60],[1,2,3,4,5,6,7,8,9,10,11,11,11,11,12,12,12,12,13,13,14,14,14,14,15,15,15,15,16,16,17,17,17,17,18,18,18,18,19,19,20,20,20,20,21,21,21,21,22,22,23,23,23,23,24,24,24,24,25,25,26,26,26,26,27,27,27,27,28,28,29,29,29,29,30,30,30,30,31,31,32,32,32,32,33,33,33,33,34,34,35,35,35,35,36,36,36,36,37,37,38,38,38,38,39,39,39,39,40,40],[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,-1.41421])

b = [0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,1.41421,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]

con_cones = Tuple{Symbol,Array{Int64,1}}[(:Zero,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),(:SOC,[31,32,33]),(:SOC,[34,35,36]),(:SOC,[37,38,39]),(:SOC,[40,41,42]),(:SOC,[43,44,45]),(:SOC,[46,47,48]),(:SOC,[49,50,51]),(:SOC,[52,53,54]),(:SOC,[55,56,57]),(:SOC,[58,59,60]),(:NonNeg,[61,62]),(:NonNeg,[63,64]),(:NonNeg,[65,66]),(:NonNeg,[67,68]),(:NonNeg,[69,70]),(:NonNeg,[71,72]),(:NonNeg,[73,74]),(:NonNeg,[75,76]),(:NonNeg,[77,78]),(:NonNeg,[79,80])]

var_cones = Tuple{Symbol,Array{Int64,1}}[(:Free,[1,2,3,4,5,6,7,8,9,10]),(:Free,[11,12,13]),(:Free,[14,15,16]),(:Free,[17,18,19]),(:Free,[20,21,22]),(:Free,[23,24,25]),(:Free,[26,27,28]),(:Free,[29,30,31]),(:Free,[32,33,34]),(:Free,[35,36,37]),(:Free,[38,39,40])]

using Mosek
using MathProgBase
m = MathProgBase.ConicModel(Mosek.MosekSolver())
MathProgBase.loadproblem!(m, c, A, b, con_cones, var_cones)
MathProgBase.optimize!(m)
@show MathProgBase.status(m)

The following is printed at the end of the solve:
30  2.3e-16  2.5e-06  5.3e-19  -2.53e-01  4.045013708e+07   4.159697790e+07   2.1e-16  0.01
31  2.3e-16  2.5e-06  5.3e-19  -2.86e-01  4.045013708e+07   4.159697790e+07   2.1e-16  0.01
Interior-point optimizer terminated. Time: 0.01.

Optimizer terminated. Time: 0.02
0

julia> @show MathProgBase.status(m)
MathProgBase.status(m) = :Unknown
:Unknown

More information at the end of the solve and a special status (which I will leave @mlubin to suggest) would be helpful.
@mlubin @ulfworsoe

How about :IllPosed as a return status?

That would be sensible

https://github.com/JuliaOpt/MathProgBase.jl/pull/137


docs build is failing

/cc @jason-fox @chicco785 @caa06d9c

Common problem: https://github.com/rtfd/readthedocs.org/issues/4380

resolved by rthd team


Optional Acrylic Sidebar

Just throwing this as a reminder since @yaichenbaum asked to open it as a separate issue in #166

Thanks for the reminder, I added this to the project board.

After talking it over with some friends on the Win UI team and some conversation I had with @duke7553 a while back, it goes against the Windows design language specs to have acrylic on the sidebar, the acrylic affect is meant for transient surfaces and using it the wrong way can take away the wow affect.
This is still an option we can think about when creating a flags page to turn on and off advanced settings but as of now I will be closing this issue.
Thanks for all your feedback and helping make Files UWP the best it can be.

There is now an open pull request with this option #321.

This was implemented and will roll out with v0.7.

Its important to note its still off by default but its just one switch in settings to turn it on.
I want to thank everyone who kept sending feedback asking for this and not letting go until it got added, Files UWP is all about what you want and providing the customization you want so please keep sending feedback or comment on existing issues what you want to see next!
Here is a screenshot of the new changes

Just a thought but when the sidebar is acrylic I kinda would prefer the sidebar to extend all the way to the top like this. It would be cool to have it as an option. I know it's a lot of work for a pretty unimportant thing though but thought i could mention it regardless

@Darhagonable I am not against it and if you want to give a shot at it then go ahead 😊. Otherwise, I will keep it in mind for the future.

You can download v0.7.0 here.

@Darhagonable @yaichenbaum The side bar should definitely extent all the way to the top. The more I use Files UWP the more I find the current design irritating and with the acrylic it's even more prominent than before. Most UWP apps have the navigation menu extent all the way from the bottom to the top, so I think Files UWP should also use that design.

@R3voA3 There is a reason we removed Acrylic from the sidebar, in any case, I will be keeping this issue open for some time to gather more feedback.

@R3voA3 Although most UWP apps extend the navigation menu to the top, it's a little different from Files UWP because we have a ribbon and I feel that the current design looks better and keeps a familiar feel to File Explorer.
Another interesting piece of information is that in a few months from now WinUI 3 will be releasing, as a result, we will lose access to the HostBackdrop acrylic effect, there is a chance that it will return in future versions of WinUI but until then this whole request might be a little irrelevant.

We will consider your feedback in the future when tailoring Files to future form factors.

@Darhagonable

@yaichenbaum this seems awesome and I can't wait! Thank you!

@yaichenbaum Awesome! thank you!


Fix missing #

Link should now go to https://www.rabbitmq.com/monitoring.html#system-metrics

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

Thank you!


Change part scheduling according to shipments instead of sales orders

Discussed in https://github.com/inventree/InvenTree/discussions/5180

Originally posted by HannesMorre July  5, 2023
Since it is possible to split a sales order into multiple shipments, it seems logical to me that part scheduling should be adjusted according to these shipments instead of sales orders. See the example below:
There is a sales order with target date 30/08/2023. This sales order holds 3 line items (articles A, B and C) each 50 pcs.
Articles A and B are fully allocated to shipment 1 (which is scheduled for 15/07/2023)
25 pcs of article C are allocated to shipment 2 (scheduled for 01/08/2023)
25 pcs of article C are allocated to shipment 3 (scheduled for 15/08/2023)
In the part scheduling of these parts (A, B and C) we will see a drop on 30/08/2023. I think this should be 15/07/2023 for articles A and B, and for article C this drop should be split up on 01/08/2023 and 15/08/2023 instead of 30/08/2023.
Or am I doing something wrong?

Which date are you using to schedule the shipment?
There are two dates:

shipment date
delivery date

The shipment date is intended to mark when a shipment is actually sent out. The delivery date has no logic connected to it, but was intended to be set when the shipment had been delivered. It could be used as a target date.

For the internal projections, it makes sense to use shipment day IMO - as the stock is out of the house from there on.

It does - but that date is filled on shipping at the moment, and isn't directly available to set in advance. It if is set, the shipment is marked as shipped.

For this to work, we might have to add a "target date" to outgoing shipments? This is only really applicable when you have projected shipment dates

Yes, that would make it clean, and would be better than using delivery date.

When is this planned to be implemented?

@HannesMorre  There is no plan to implement this, if someone picks it up it will be implemented. If not it will be closed at some point.
Things that are (somewhat) on the roadmap have either the label roadmap label or someone is assigned (which means the person is interested in implementing it). We do not provide implementation or release timelines.

Okay, thanks for the info. This means there is a chance this will never be implemented, right?

Possibly yes, but you can develop this yourself and propose a PR or maybe also sponsor this development if you really need it. But details you would need to discuss with @SchrodingersGat

Possibly yes, but you can develop this yourself and propose a PR or maybe also sponsor this development if you really need it. But details you would need to discuss with @SchrodingersGat

I am not currently active as a developer, but looking into starting over again so I can contribute to the project in my free time.

Not stale

Not stale

not stale

I have a similar request for part scheduling.
Additionally, we would like some options for filtering and what is presented.

Having a filter to only use issued sales orders in the view. We use Sales Orders for quotes and actual sales orders. Ideally, the "issued" state could be use as some sort of filter.
Total count - it's shown on the graph, can the value be shown in the interace somewhere.
Downloadable - can the data in the table be downloadable (csv)?


Created blobhandler

Codecov Report

Merging #11 into master will increase coverage by 0.8%.
The diff coverage is 84.88%.

@@            Coverage Diff            @@
##           master      #11     +/-   ##
=========================================
+ Coverage   80.56%   81.36%   +0.8%
=========================================
  Files          10       12      +2
  Lines         247      263     +16
=========================================
+ Hits          199      214     +15
- Misses         48       49      +1

Impacted Files
Coverage Δ

src/ml/preprocessor.py
100% <100%> (+9.61%)
:arrow_up:

tests/ml/test_preprocessor.py
100% <100%> (ø)
:arrow_up:

tests/ml/test_model.py
100% <100%> (ø)
:arrow_up:

tests/ml/test_blobhandler.py
100% <100%> (ø)

src/apis/pipedesign.py
50% <20%> (ø)
:arrow_up:

src/apis/ml_model.py
57.14% <20%> (-0.36%)
:arrow_down:

src/infrastructure/blobhandler.py
84.37% <84.37%> (ø)

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 5a88a81...da83003. Read the comment docs.


support float

2. Describe the solution you'd like
from float to float ignore decimal point, put it where it is .

Sorry but I don’t understand what you saying 'from float to float ignore decimal point’.
Could you please describe what you encountered or make a minimal working example, like, in codesandbox.io?

I mean this repo may support flip from float to float, such as from 18.50 to 99.80.
Although, we can init two instances.
like this:
new Flip({from: 18, to: 99})
new Flip({from:50, to: 80})

you can do it by using separator and seperateOnly
i wrote a demo: https://codesandbox.io/s/compassionate-dhawan-1d3kz


tooltip not hiding issue

It seems there are still issues regarding the tooltip not closing in version 4.5.1.
I see that issue #769 was closed however the issue is still occurring.
Checkout the this code sandbox: https://codesandbox.io/s/zealous-sanderson-8l96ko?file=/src/App.js
In the image attached you can see that two tooltips remain open after the cursor has left.
The issue isn't always easily reproduce but I have found that in implementations where multiple tooltips are stacked vertically
if you move the cursor up and down overtop of them, then exit the build in simulated browser to the left the tooltips remain

Hi there,
Check my code below, I hope this turnaround can help you :)
const [tooltip, showTooltip] = useState(true);
 <ShareIcon
         data-tip="Link copied successfully"
         data-event="click"
         onMouseLeave={() => {
           showTooltip(false);
           setTimeout(() => showTooltip(true), 50);
         }}
  />
  {tooltip &&
      <ReactTooltip
            place="right"
            afterShow={() => { navigator.clipboard.writeText(URL);}}
       />
  }

As you see I am using conditional rendering to show the tooltip.

Hi @konstantin-shatalov,
@zeghmouri showed you an example of V4,
here is your example using V5: https://codesandbox.io/s/nice-bogdan-vhji0c?file=/src/App.js

I still did not migrate to V5 but I will do  it soon
Thank you so much @danielbarion for all your efforts.

Hi @danielbarion
I tried creating couple of codesandboxes with v5, and was not able to replicate the issue so far. Will have to keep an eye, since this is hard to replicate.

ok @konstantin-shatalov, I'll keep this issue opened until v5 gets a stable release for production or until someone does a fix for v4.
thanks!

Closing all v4 issues due to V5 released.
If necessary, please open a new issue using V5, thanks!


error 500

Creating new key with Unit "None" -> production.ERROR: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: access_keys.data_limit_unit

Thank you for reporting the bug 💗


Problems exporting Jupiter Notebook to HTML

Type: Bug
I am trying to export a Jupiter Notebook to HTML and it has been giving me an error for a while.
It was working until one month, one month and something ago but now it's not and I can't find the reason
This is the error that shows up on the terminal:
Export failed [Error: Unable to export notebook as the built-in vscode.ipynb extension is currently unavailable.
VS Code version: Code 1.92.1 (eaa41d57266683296de7d118f574d0c2652e1fc4, 2024-08-07T20:16:39.455Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
7.79GB (1.51GB free)

Process Argv
--crash-reporter-id 8b33b6f3-a602-4b1f-8cac-ec906c9af703

Screen Reader
no

VM
0%

Extensions (10)

Extension
Author (truncated)
Version

debugpy
ms-
2024.10.0

python
ms-
2024.12.3

vscode-pylance
ms-
2024.8.1

jupyter
ms-
2024.8.2024080201

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.19

vscode-jupyter-cell-tags
ms-
0.1.9

vscode-jupyter-slideshow
ms-
0.1.6

material-icon-theme
PKi
5.9.0

ayu
tea
1.0.5

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
01bff139:31013167
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31111718
wkspc-ranged-t:31111713

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.92.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

I already updated VSCode to the latest but it's pursuing

@Canary98 can you please share your settings to help troubleshoot? I wonder if the Jupyter extension is running in an extension host that's not the same as ipynb.

Hi Peng, thank you so much for your answer. I'll look over the guidelines
and will try to find the solution, and I'll try also to find where those
settings you told me are.
Happy codding!
On Fri, Sep 13, 2024, 18:20 vs-code-engineering[bot] <
@.***> wrote:

Thanks for creating this issue! We figured it's missing some basic
information or in some other way doesn't follow our issue reporting
guidelines https://aka.ms/vscodeissuereporting. Please take the time to
review these and update the issue.
Happy Coding!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/225882#issuecomment-2349531786,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFUK6SHGPIIV4X4AAJET4FTZWMNE7AVCNFSM6AAAAABMVQHAWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBZGUZTCNZYGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hello, i just tried it and it seems to be working again! Thanks a lot


MV: 425 - On logout auto-teleported to mvspawn location always

MV: 425 - On logout auto-teleported to mvspawn location always
Problem doesnt exist on 419 ( which is the version i reverted back to )
..... No matter where the player is on 425 if they logout, and logback in they are teleported to mvspawn (/mvsetspawn) location in that world.

I'm having the same issue. Although i should note that on logout and log back in i am always at a set spawn (/mv setspawn) of the world i last set the spawn of on one particular world. same version.

Yes I am using spout. However even with spout this does not happen on 419

Closing as duplicate of my newly created issue #355. Trying to get everyone in the same place.


Function 4 specifications and documentation

Hi team,
Please write docstring and name your function according to our discussion:
Four metrics:

Ratio of new to returning visitors (newVisits in total column, it is binary), 2. conversion rate (# of visitors who have transaction / # of visitors) , 3. total transaction revenue (totalTransactionsRevenue in total column), 4. average transaction revenue of each campaign (campaignId in traffic source column) during a certain period (date) (so start_date, end_date and campaign_id should be three mandatory variables of your function).

@tangyl92 : Detecting outliers.

Please give update or post your question below.
Thanks!

Instruction from Tiff:
For this milestone you will write function documentation that will serve as specifications, but you will NOT write any code for your package functions. Specifically, set-up empty functions (with appropriate function names) containing no code in the files where you will eventually write code. Write function documentation (e.g., complete docstrings). These are the functions you wrote about in your proposal.

PR: #21 & #24


THRIFT-4309 Python print() function

http://thrift.apache.org/docs/HowToContribute

I'm not certain I see what the purpose of this set of changes is (then again, I don't use python much).  Perhaps if you open a Jira ticket and explain the reasoning for these changes it would help.

@cclauss now that the CI build issues should be squared away, could you rebase on master so we get another CI build?  Thanks.

@jeking3 All of the print() is a function changes are ESSENTIAL Python 3 compatibility.  This is not optional.  See: https://docs.python.org/3/whatsnew/3.0.html
The reason that you are not seeing any problems in the build is because Python is a dynamic, interpreted language.  It does not have a separate compile step like C/C++ and other compiled languages have.  This in turn means that syntax errors are not found at "build" time but that they are only found at runtime.  This in turn explains why flake8 is better tool for spotting these problems than pylint.  flake8 uses the Abstract Syntax Tree process to do simulate runtime while pylint does not.

What you suggest is that our build process is insufficient to catch these things, and I would like to see our build process become sufficient and enhanced with whatever tools are needed to make thrift better.  At the very least we should run modernize on all of the lib/py files, although this PR is a start, it does not do enough to mark THRIFT-4309 complete.  I can merge it, but more work will be necessary to complete everything needed.

This makes sense to me.  Please merge this PR when you are ready but we must do further work in another PR before THRIFT-4309 is complete.
There are three alternative approaches to running the approiate tests that I must consider.


"Applied Accessibility - Make Screen Reader Navigation Easier with the header Landmark" cannot be completed because it always thinks there are s

https://learn.freecodecamp.org/responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-header-landmark
This lesson cannot be completed because the second test ("Your code should not have any div tags.") always fails, no matter what the content of the editor is.
Tested in Firefox Nightly.
Related:

#127
#129
#130

I cannot reproduce, can you share your code please?

Training with Camper Cat

Stealth & Agility Training

Climb foliage quickly using a minimum spanning tree approach

No training is NP-complete without parkour

Combat Training

Dispatch multiple enemies with multithreaded tactics

Goodbye world: 5 proven ways to knock out an opponent

Weapons Training

Swords: the best tool to literally divide and conquer

Breadth-first or depth-first in multi-weapon training?

The div test also fails if there is nothing in the editor.
I just tested in Chromium, and the issue is not happening there. Can you reproduce the issue in Firefox?
Also, I have noticed that the website switched back and forth between 2 designs yesterday. Does the website look like this to you right now?

(The other design has a second row under the header with the Run the Tests button in it, and the tests show up under the preview of the project instead of the description.)

https://github.com/freeCodeCamp/learn/issues/136#issuecomment-398936869


Emit beforeSelect hook on find* methods

I'm try to write plugin to pouchdb. Currently I'm just use "changes" from beginning (since: 0) in pouchdb and insert all records to vuexorm. All works fine except browser very slowdown on many records when app loads. Now I want to implement load records on-demand (if it not found in vuexorm, try to load it from pouchdb) and via changes {since: 'now'}, but problem that find* methods did not emit beforeSelect hook.
Or maybe there is other method to extend find* methods ?

Thanks for the report! Maybe this is the defect. We need to check. For the workaround, can you use:
Model.query().where('id', 1).first()

Instead?

@zorn-v The beforeSelect hook is exclusive to retrieving data that has a lookup criteria. Unfortunately the find method does not fall into this category because it is simply a key lookup (which doesn't adhere to any other lookup criteria).
As @kiaking mentioned, using where clauses will give you significant leverage over hook use.
N.B. Any performance issues in cases like this are incredibly difficult for us to assess and replicate, so the onus is on you and while we hope you can find any bottlenecks in your application, please don't hesitate to join the community on Slack if you'd like to discuss more details.

For the workaround, can you use:

I know how to workaround in my project, but I want to share plugin to the public then.

Seems there is no need to insert entities on-demand. If use pouchDb.allDocs and insert them all at once instead using "changes since 0" and insert one by one on app load, there is no performance issues


[stable/prometheus-blackbox-exporter] Improve blackbox exporter to handle custom relabelings

What this PR does / why we need it:
Relabelings confings are completly missing in current helm chart.
Relabeling could be very useful to add custom labels for example.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @desaintmartin

Hum... in fact this repo just became deprecated :expressionless:

Feel free to propose on new repo !

/close

@gillg Correct! Further development has moved to prometheus-community/helm-charts. Please reopen your PR there if still applicable. Thanks!


Can't get sphinx package

Hi , When I try to get sphinx package :
go get github.com/xlab/pocketsphinx-go/sphinx
This error will occur :
# github.com/xlab/pocketsphinx-go/pocketsphinx
In file included from /usr/local/include/sphinxbase/cmd_ln.h:66:0,
                 from ./pocketsphinx.h:46,
                 from work/go/gosrc/src/github.com/xlab/pocketsphinx-go/pocketsphinx/cgo_helpers.go:10:
/usr/local/include/sphinxbase/prim_type.h:88:27: fatal error: sphinx_config.h: No such file or directory
 #include <sphinx_config.h>
                           ^
compilation terminated.

How can I fix it ?

Thank you for your awesome package

Seems that sphinxbase installed incorrectly.
$ find /usr/ -name "sphinx_config.h"
/usr/local/include/sphinxbase/sphinx_config.h

$ brew info sphinxbase
cmu-sphinxbase: stable 0.8 (bottled), HEAD
Lightweight speech recognition engine for mobile devices
http://cmusphinx.sourceforge.net/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/cmu-sphinxbase.rb
==> Dependencies
Build: pkg-config ✔
Required: libsndfile ✔, libsamplerate --with-libsndfile ✘

You can either re-install it or put this content in your file:
/* include/sphinx_config.h.  Generated from sphinx_config.h.in by configure.  */
/* sphinx_config.h: Externally visible configuration parameters */

/* Use fixed-point computation */
/* #undef FIXED_POINT */

/* Default radix point for fixed-point */
/* #undef DEFAULT_RADIX */

/* The size of `long', as computed by sizeof. */
#define SIZEOF_LONG 8

/* Define to 1 if the system has the type `long long'. */
#define HAVE_LONG_LONG 1

/* The size of `long long', as computed by sizeof. */
#define SIZEOF_LONG_LONG 8

/* Enable debugging output */
/* #undef SPHINX_DEBUG */

@xlab
$ find /usr/ -name "sphinx_config.h"
.
.
.
/usr/include/sphinxbase/sphinx_config.h
/usr/local/include/sphinxbase/sphinx_config.h

sphinx_config.h is already in /usr/local and /user/include But still has error...

put this content in your file

Where can I put that content ?

$ pkg-config --cflags sphinxbase
-I/usr/local/include -I/usr/local/include/sphinxbase

Try this then:
$ CGO_CFLAGS="-I/usr/local/include -I/usr/local/include/sphinxbase" go get github.com/xlab/pocketsphinx-go/sphinx

It seems that your cflags isn't properly reported by pkg-config, otherwise there is no any other reason I can think of :)

Any luck with this? :) Can I help further?

Thanks dude ,
After I wrote  CGO_CFLAGS="-I/usr/local/include -I/usr/local/include/sphinxbase" go get github.com/xlab/pocketsphinx-go/sphinx in terminal ,
There are too many errors that said undefined reference , I think I have to set sphinx library to CGO_FLAGS too.

Such as undefined reference tops_get_feat'`

Yeah, seems so. Before you continue, please check if installing brew install pkg-config helps, I will update the readme accordingly..
If not,
$ pkg-config --libs sphinxbase
-L/usr/local/lib -lsphinxbase -lsphinxad -lpthread -lm -lblas -llapack

CGO_CFLAGS="-L/usr/local/lib -lsphinxbase -lsphinxad -lpthread -lm -lblas -llapack"
:man_facepalming:

Hi again
First of all I check pkg-config --libs sphinxbase
$ pkg-config --libs sphinxbase
-L/usr/local/lib -lsphinxbase -lsphinxad -lpulse -lpulse-simple -lpthread -lm

then I try to put it in CGO_FLAGS
$ CGO_FLAGS="$(pkg-config --libs sphinxbase)"
$ go get github.com/xlab/pocketsphinx-go/sphinx
# github.com/xlab/pocketsphinx-go/pocketsphinx
In file included from /usr/local/include/sphinxbase/cmd_ln.h:66:0,
                 from ./pocketsphinx.h:46,
                 from work/go/gosrc/src/github.com/xlab/pocketsphinx-go/pocketsphinx/cgo_helpers.go:10:
/usr/local/include/sphinxbase/prim_type.h:88:27: fatal error: sphinx_config.h: No such file or directory
 #include <sphinx_config.h>
                           ^
compilation terminated.

So we backed to first comment :smile:
Than I try to pass --libs and --cflags to CGO_FLAGS
$ CGO_FLAGS="$(pkg-config --libs sphinxbase) $(pkg-config --cflags sphinxbase)"
$ echo $CGO_FLAGS
-L/usr/local/lib -lsphinxbase -lsphinxad -lpulse -lpulse-simple -lpthread -lm -I/usr/local/include -I/usr/local/include/sphinxbase
$  go get github.com/xlab/pocketsphinx-go/sphinx
# github.com/xlab/pocketsphinx-go/pocketsphinx
In file included from /usr/local/include/sphinxbase/cmd_ln.h:66:0,
                 from ./pocketsphinx.h:46,
                 from work/go/gosrc/src/github.com/xlab/pocketsphinx-go/pocketsphinx/cgo_helpers.go:10:
/usr/local/include/sphinxbase/prim_type.h:88:27: fatal error: sphinx_config.h: No such file or directory
 #include <sphinx_config.h>
                           ^
compilation terminated.

So :cry: ...
What can I do to fix it ?
Please help me ...

@ahmdrz I misled you, libs going to CGO_LDFLAGS of course

Thanks Maxim Kupriianov...
$ CGO_CFLAGS="$(pkg-config --cflags sphinxbase)"
$ CGO_LDFLAGS="$(pkg-config --libs sphinxbase)"
$ go get -u github.com/xlab/pocketsphinx-go/sphinx
# github.com/xlab/pocketsphinx-go/pocketsphinx
In file included from /usr/local/include/sphinxbase/cmd_ln.h:66:0,
                 from ./pocketsphinx.h:46,
                 from work/go/gosrc/src/github.com/xlab/pocketsphinx-go/pocketsphinx/cgo_helpers.go:10:
/usr/local/include/sphinxbase/prim_type.h:88:27: fatal error: sphinx_config.h: No such file or directory
 #include <sphinx_config.h>
                           ^
compilation terminated.

Did I wrote correctly ?
:cry: :cry: :cry:

I checked go env and the result is :
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/aiden/work/go/gosrc"
GORACE=""
GOROOT="/home/aiden/work/go/go"
GOTOOLDIR="/home/aiden/work/go/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build244735448=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

Is it correct ?
It's my first time that I used CGO ... Sorry Mr.

Either export them or use in the same line with the command
CGO_CFLAGS="$(pkg-config --cflags sphinxbase)" CGO_LDFLAGS="$(pkg-config --libs sphinxbase)" go get -u github.com/xlab/pocketsphinx-go/sphinx

$ CGO_CFLAGS="$(pkg-config --cflags sphinxbase)" CGO_LDFLAGS="$(pkg-config --libs sphinxbase)" go get -u github.com/xlab/pocketsphinx-go/sphinx

And
$ export CGO_CFLAGS="$(pkg-config --cflags sphinxbase)"
$ export CGO_LDFLAGS="$(pkg-config --libs sphinxbase)"
$ go get -u github.com/xlab/pocketsphinx-go/sphinx

Has same result
.
.
.
/tmp/go-build452174470/github.com/xlab/pocketsphinx-go/pocketsphinx/_obj/pocketsphinx.cgo2.o: In function `_cgo_c4274c8251a1_Cfunc_ps_unset_search':
pocketsphinx.cgo2.c:(.text+0x44e5): undefined reference to `ps_unset_search'
/tmp/go-build452174470/github.com/xlab/pocketsphinx-go/pocketsphinx/_obj/pocketsphinx.cgo2.o: In function `_cgo_c4274c8251a1_Cfunc_ps_update_mllr':
pocketsphinx.cgo2.c:(.text+0x4541): undefined reference to `ps_update_mllr'
collect2: error: ld returned 1 exit status

How can I check that sphinx package is correctly installed in my PC ?
Maybe the problem is not in go get and go build...

@ahmdrz that's better, it actually works but seems that your library is older than the headers the bindings were made for, so a couple of symbols missing.
The installation process is described in README
https://github.com/xlab/pocketsphinx-go#installation

Ok , I will reinstall sphinx and pocketsphinx.
But I haven't any problem in Python.
Python library worked , So I don't think that c libraries has problem.
By the way , Thank you , I will reinstall...
On 23 Feb 2017 12:44, Maxim Kupriianov<EMAIL_ADDRESS>wrote:
@ahmdrzhttps://github.com/ahmdrz that's better, it actually works but seems that your library is older than the headers the bindings were made for, so a couple of symbols missing.
The installation process is described in README
https://github.com/xlab/pocketsphinx-go#installation
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/xlab/pocketsphinx-go/issues/5#issuecomment-281937274, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQK5JA_7LEshUmHQrsPhmO67XCaPARJRks5rfU38gaJpZM4L-8Qf.

Hi again , I fix my problem with changing source files of pocketsphinx and sphinxbase.
In file included from /usr/local/include/sphinxbase/cmd_ln.h:66:0,
                 from ./pocketsphinx.h:46,
                 from work/go/gosrc/src/github.com/xlab/pocketsphinx-go/pocketsphinx/cgo_helpers.go:10:
/usr/local/include/sphinxbase/prim_type.h:88:27: fatal error: sphinx_config.h: No such file or directory
 #include <sphinx_config.h>

I change  #include <sphinx_config.h> to  #include <sphinxbase/sphinx_config.h> and fixed my problem.
Thank you man :heart:


Cannot read properties of undefined (reading 'equipAll')

i use armor manager for my bot but i updated my mineflayer and this error happened.
node: 18.16.0
mineflayer: 4.9.0
server: paper 1.19.3

@UzayliGAMER could you please share the minimal code that caused the issue? I wasn't able to reproduce it in example.js with latest version of Mineflayer.

Closing in meanwhile, will be happy to reopen when the issue can be reproduced.


Django 1.8+: null_techical_500_response() needs to accept status_code kwarg

Found by:

Running Django 1.8+
Running latest django-extensions
Running runserver_plus
running in DEBUG=True
raising SuspiciousOperation exception in a view

...in the above flow of events, django's base handler picks up the SuspiciousOperation, calls through to debug.technical_500_response() passing a status_code kwarg of 400.
In runserver_plus, it appears django-extensions has patched out this function in favour of null_technical_500_response() to produce the nicer error pages.
null_technical_500_response() however crashes since it's not expecting a status_code kwarg.
In Django 1.8+, null_technical_500_response needs it's interface updating to reflect updates in Django 1.8 error handling.

Here's a hacky workaround. status_code is ignored, but that doesn't matter.
def null_technical_500_response(request, exc_type, exc_value, tb, status_code=500):
    # ignore status_code
    six.reraise(exc_type, exc_value, tb)

Thanks !
I've added @haakenlid solution which does not seem so hacky to me.. it solves the signature problem just fine :)


Incorrect Mana Cost with Reduced Mana

Path of Building shows the mana cost of shield charge as 0 but in-game shows as 1 with the following setup:

Shield Charge
Faster Attacks
Fortify
Reduced Mana (level 7 or higher)
Ring with -6 to Mana Cost of Skills

Pastebin with the character imported: https://pastebin.com/yUCyGwwU

maybe get a -7 or -8 ring? fixed

That is what I did.  It doesn't change that Path of Building is giving a different value than the game.


sonar-scanner invocation modified to get real-time output

I modified the way how the sonar-scanner childprocess is invoked from the plugin to get real-time output.
Instead of starting a process, wait for it's unified stdout & stderr and printing it, the process's stdout and stderr can be set to os.Stdout; this way the scanner writes to that channel instantly and it's not necessary to wait for the child to terminate to get output.
The only difference in the output is that the first line of the scanner's  output is not displayed in the same line as "==> Code Analysis Result:", but appears in the next line instead.

The redirection of sonar-scanner's stderr to os.Stderr seems to behave exactly like if it was written to os.Stdout, the content appears on the web console instantly.