Add str words count function

The purpose is to add an helper to count words in a string.
$jdoe = 'My name is John Doe';
echo Str::wordsCount($jdoe);
// display 5

I've updated documentation to : https://github.com/laravel/docs/pull/5876
Hope is this good format ;-)

Why do we need this method if it's just a wrapper for the PHP native str_word_count?
Also, you lose a little bit with this because you can longer pass the optional parameters to str_word_count.

Why do we need this method if it's just a wrapper for the PHP native str_word_count?
Also, you lose a little bit with this because you can longer pass the optional parameters to str_word_count.

I understand your position. There is others methods who wrap natives PHP function like mb_substr or ucfirst. Then, I don't think this could be a problem.
But your second point is true. So I will modify to take care of native options of str_word_count.
I will do this today or tomorrow.
Thanks for your comment.

Does the native function handle multibyte strings properly? Also, you will need to add tests and update the Stringish class too.

Please also update the Stringish class, and add tests for both implementations.

Sorry, but could you give some more details please ? I didn't found Stringish class, Maybe I didn't look hard enough.
Could you give me, please, more details ?

He probably means Stringable

He probably means Stringable

That's what I started looking at. I understand this is to add fluent string operation for this new method.
Ok, I will do it.

Please also update the Stringish class, and add tests for both implementations.

Hello @GrahamCampbell I made changes.
For the Stringable class, I assumed that only the word count made sense. I did not implement the 'format' and 'charlist' options.
What do you think of that?

He probably means Stringable

Tanks to you ;-)

Could you add a rest for the empty string case and a string that just contains a bunch of whitespace?

Could you add a rest for the empty string case and a string that just contains a bunch of whitespace?

It's done ! ;-)

Could you add a rest for the empty string case and a string that just contains a bunch of whitespace?

It's done ! ;-)

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

Thanks  @GrahamCampbell for your help.
I understand Taylor point of view. Just a little question, does this mean that it will never be implemented, or does it mean that it will eventually be postponed?


[SPARK-37840][SQL] Dynamic Update of UDF

What changes were proposed in this pull request?
Currently, If we need to change definitions of our UDFs, we need to restart thriftserver.  In production environment this is not always possible.
In this PR, i propose to update our UDFs dynamically.
To achieve this, user needs to fire CREATE OR REPLACE command while updating UDFs.
For e.g:

Create a new function
CREATE TEMPORARY FUNCTION func AS c1 USING JAR jar1;

Once associated jar files are updated
CREATE OR REPLACE TEMPORARY FUNCTION func AS c1 USING JAR jar1;

Above query will update the classpaths and users will be able to use updated jars.
A new configuration is added for this PR : spark.sql.function.updateUdfResources

Why are the changes needed?
We need to start our thriftserver whenever we want to update our UDF definition. This is not always possible in production environment. These changes will allow users to update them dynamically.

Does this PR introduce any user-facing change?
Yes,
Now users can update their UDFs without restarting thriftserver using CREATE OR REPLACE FUNCTION command, if dynamic update is turned on.

How was this patch tested?
Unit Tests added.
More tests will be added for testing other scenarios.

Support Permanent Function?

Support Permanent Function?

The information from suite describe that permanent should be supportive

Update jar by CREATE OR REPLACE command, it is not very convenient, it is best to insist on jar file modification time update, take effect directly

@HyukjinKwon @dongjoon-hyun
Kindly take a look at this PR.
UT failure is not related to changes made in this PR.
More UTs will be added covering all other scenarios.

If there are many functions defined in a JAR file, do they all need to be updated?

If there are many functions defined in a JAR file, do they all need to be updated?

No.

gentle ping @cloud-fan @wangyum

The major change here is in core. cc @jiangxb1987 @Ngone51

@dongjoon-hyun @HyukjinKwon @cloud-fan  Does this feature looks promising enough for community? If Yes, I will add few more UTs for testing other scenarios.

@cloud-fan @Ngone51 @jiangxb1987 If you have some spare time, Kindly take a look at this PR.

There are two problems with the current test:

The classes in the jar package configured by spark.jars cannot be loaded correctly
When I modify the udf in the jar package of the same name, the classes in the driver cannot be updated correctly
@iRakson

cc @viirya @sunchao
Kindly take a look at this PR.

@Ngone51 @yaooqinn @beliefer @AngersZhuuuu
Kindly take a look at this in your free time. I believe this will be very useful for end users.

Yes, users needs to take care of this situation. We can explicitly mention it.

also cc @wzhfy


Tensorflow 2

@YunYang1994 have you been following developments with TF2? Are there plans to make this library compatible with it on release later this year?
Thanks!
EDIT: I just noticed your Tensorflow 2 Examples repository- so clearly you've been following it! Still wondering about compatibility with this library.

Yeah, It's on my plan, but I am quite busy right now. I can't promise any particular date.

Okay, good to know. Thanks again.

@willbattel if you are still interested, I implemented Yolo from scratch in TensorFlow 2.0
https://github.com/zzh8829/yolov3-tf2


CUDA: Add function for compiling to PTX (+ other small fixes)

The main purpose of this PR is to add a function that enables compilation of a Python function to PTX for a given set of argument types, without invoking any of the CUDA driver. This can be useful for use cases where the compiled function is not to be invoked by Numba, but instead inlined into other PTX code from another source (e.g. from outside the Numba or Python ecosystem). This PR is currently in a WIP state to solicit feedback on the interface from potential users (cc @kkraus14 @hummingtree @galipremsagar).
The proposed interface is documented at: https://gmarkall.github.io/numba-rtd-theme/cuda-reference/host.html#compilation - once a sensible / useful API is agreed on, I will add some tests and potentially expand on the documentation.
Along the way of creating this function, I came across a couple of other bits that could have done with some tidy up, that are also in this PR at the moment, but not directly connected:

Addition of supported CCs in CUDA 9 and 10.
Fix flake8 errors for numba.cuda.compiler, and remove if from the excludes in .flake8.

I've added an empty compile_ptx stub to enable the simulator to continue to work for this PR (to fix the CI error with a5f2713), but I hope for a "camera-ready" implementation that it will be possible to compile to PTX even with the simulator (or rather, without actual hardware available, so that the compiler can still be used even if the runtime isn't).

It would be great to have this functionality in numba. In RAPIDS/cuDF the following is a code snippet of what we have right now to compile udf into a CUDA PTX device function
def compile_udf(udf, type_signature):
    decorated_udf = cuda.jit(udf, device=True)
    compiled = decorated_udf.compile(type_signature)
    ptx_code = decorated_udf.inspect_ptx(type_signature).decode("utf-8")
    output_type = numpy_support.as_dtype(compiled.signature.return_type)
    return (ptx_code, output_type.type)

(See https://github.com/rapidsai/cudf/blob/branch-0.14/python/cudf/cudf/utils/cudautils.py#L259)
Currently we tell the compiler the input types, and let the compiler decide the output type. This is certainly not optimal, since, for example, for an input type of int32, the compiler almost always prefers an output type of int64, even in cases where int32 is fairly reasonable as an output type. As an example the python lambda lambda x: x + 1 with input int32 is compiled as
.visible .func  (.param .b32 func_retval0) _ZN8__main__16$3clambda$3e$241Ei(
        .param .b64 _ZN8__main__16$3clambda$3e$241Ei_param_0,
        .param .b32 _ZN8__main__16$3clambda$3e$241Ei_param_1
)
{
        .reg .b32       %r<2>;
        .reg .b64       %rd<4>;

        ld.param.u64    %rd1, [_ZN8__main__16$3clambda$3e$241Ei_param_0];
        ld.param.s32    %rd2, [_ZN8__main__16$3clambda$3e$241Ei_param_1];
        add.s64         %rd3, %rd2, 1;
        st.u64  [%rd1], %rd3;
        mov.u32         %r1, 0;
        st.param.b32    [func_retval0+0], %r1;
        ret;
}

and the output type is int64.
I believe telling the python udf ->PTX compiler to have a specific output type is difficult/impossible. It would be nice to have an option to hint the compiler whether we want to have an output type with higher or lower precision. The expected behavior is that the compiler tends to use higher precision output types (int64 or float64) if it is hinted with the higher precision option, and vice versa.

@hummingtree Thanks for the feedback - I'll take another go at producing an iteration of the proposed API to try and meet those requirements (along with also being able to get the PTX return type back from the function, that you mentioned to me out-of-band)

I've pushed a few changes now (details on the commit message).
@leofang I've changed the default to 5.2 - did you have any further thoughts on my motivation for not defaulting to the CC of the current device?
@hummingtree I've now changed the interface so that you can compile a kernel or a device function, which should then provide a drop-in replacement for the implementation in compile_udf - unfortunately the suggested return type isn't that easy to wire up to the internals of the compiler, so I need to have a look at whether this is possible. For now compile_ptx accepts the argument types and returns the inferred return type along with the PTX.

@leofang I've added another function, compile_ptx_for_current_device - does this address the use case you were thinking of when you asked about making the default the current device's compute capability?

@hummingtree I've tested cuDF branch-0.14 with the following patch and this branch:
--- a/python/cudf/cudf/utils/cudautils.py
+++ b/python/cudf/cudf/utils/cudautils.py
@@ -258,14 +258,14 @@ def window_sizes_from_offset(arr, offset):

 @lru_cache(maxsize=32)
 def compile_udf(udf, type_signature):
-    """Copmile ``udf`` with `numba`
+    """Compile ``udf`` with `numba`

     Compile a python callable function ``udf`` with
-    `numba.cuda.jit(device=True)` using ``type_signature`` into CUDA PTX
-    together with the generated output type.
+    `numba.cuda.compile_ptx_for_current_device(device=True)` using
+    ``type_signature`` into CUDA PTX together with the generated output type.

     The output is expected to be passed to the PTX parser in `libcudf`
-    to generate a CUDA device funtion to be inlined into CUDA kernels,
+    to generate a CUDA device function to be inlined into CUDA kernels,
     compiled at runtime and launched.

     Parameters
@@ -287,8 +287,7 @@ def compile_udf(udf, type_signature):
       An numpy type

     """
-    decorated_udf = cuda.jit(udf, device=True)
-    compiled = decorated_udf.compile(type_signature)
-    ptx_code = decorated_udf.inspect_ptx(type_signature).decode("utf-8")
-    output_type = numpy_support.as_dtype(compiled.signature.return_type)
+    ptx_code, return_type = \
+        cuda.compile_ptx_for_current_device(udf, type_signature, device=True)
+    output_type = numpy_support.as_dtype(return_type)
     return (ptx_code, output_type.type)

From my quick testing, it makes a bit of difference to the performance of the test suite. Without the patch I get (running with 8 processes on an i7-6770K machine):
20660 passed, 923 skipped, 280 xfailed, 23 xpassed, 2548 warnings in 316.52s (0:05:16)

with the patch, I get:
20660 passed, 923 skipped, 280 xfailed, 23 xpassed, 2548 warnings in 308.77s (0:05:08)

I know that using a test suite is often a poor benchmark, but I think this suggests that using compile_ptx_for_current_device does remove some of the overhead of compiling UDFs, because Numba is now not needlessly doing some extra work inserting the compiled functions into its typing contexts, and other housekeeping.

I've added another function, compile_ptx_for_current_device - does this address the use case you were thinking of when you asked about making the default the current device's compute capability?

Yes, I think so! It will be a handy API. Thanks 🙂

@hummingtree I've tested cuDF branch-0.14 with the following patch and this branch:
--- a/python/cudf/cudf/utils/cudautils.py
+++ b/python/cudf/cudf/utils/cudautils.py
@@ -258,14 +258,14 @@ def window_sizes_from_offset(arr, offset):

 @lru_cache(maxsize=32)
 def compile_udf(udf, type_signature):
-    """Copmile ``udf`` with `numba`
+    """Compile ``udf`` with `numba`

     Compile a python callable function ``udf`` with
-    `numba.cuda.jit(device=True)` using ``type_signature`` into CUDA PTX
-    together with the generated output type.
+    `numba.cuda.compile_ptx_for_current_device(device=True)` using
+    ``type_signature`` into CUDA PTX together with the generated output type.

     The output is expected to be passed to the PTX parser in `libcudf`
-    to generate a CUDA device funtion to be inlined into CUDA kernels,
+    to generate a CUDA device function to be inlined into CUDA kernels,
     compiled at runtime and launched.

     Parameters
@@ -287,8 +287,7 @@ def compile_udf(udf, type_signature):
       An numpy type

     """
-    decorated_udf = cuda.jit(udf, device=True)
-    compiled = decorated_udf.compile(type_signature)
-    ptx_code = decorated_udf.inspect_ptx(type_signature).decode("utf-8")
-    output_type = numpy_support.as_dtype(compiled.signature.return_type)
+    ptx_code, return_type = \
+        cuda.compile_ptx_for_current_device(udf, type_signature, device=True)
+    output_type = numpy_support.as_dtype(return_type)
     return (ptx_code, output_type.type)

From my quick testing, it makes a bit of difference to the performance of the test suite. Without the patch I get (running with 8 processes on an i7-6770K machine):
20660 passed, 923 skipped, 280 xfailed, 23 xpassed, 2548 warnings in 316.52s (0:05:16)

with the patch, I get:
20660 passed, 923 skipped, 280 xfailed, 23 xpassed, 2548 warnings in 308.77s (0:05:08)

I know that using a test suite is often a poor benchmark, but I think this suggests that using compile_ptx_for_current_device does remove some of the overhead of compiling UDFs, because Numba is now not needlessly doing some extra work inserting the compiled functions into its typing contexts, and other housekeeping.

This is great! Thanks @gmarkall .

I've added some tests and addressed the feedback received so far - I think this is ready for (further) review now - i.e. not WIP anymore.

Forgot to mention - I've decided not to make PTX compilation available when the simulator is enabled, as that would be a very niche use case, and can be added later if it turns out to actually seem like it would be useful for anyone.

Buildfarm ID: numba_smoketest_cuda_57.

This is failing on CUDA 9 on all support platforms.
ERROR: test_nvvm_support (numba.cuda.tests.cudadrv.test_nvvm_driver.TestNvvmDriver)
Test supported CC by NVVM.
< trace back is roughly >
File "numba/cuda.cudadrc/nvvm.py", line 506 in llvm_to_ptx
ptx = cu.compile(**opts)
...stuff
numba.cuda.cudadrv.error.NvvmError: Failed to compile

libnvvm: error: -arch=compute_72 is an unsupported option
NVVM_ERROR_INVALID_OPTION

Thanks for the pointer - this should be resolved now.

Buildfarm ID: numba_smoketest_cuda_58.

Buildfarm passed.

@sklam are you happy to approve this? Buildfarm is happy.

Thanks for the merge! Glad this made it for 0.50 :-)


Notification Template Page - When click on add notification button it does not opens create notification page

Describe the bug
https://www.berrycast.com/conversations/0fdd675a-d40c-5e1f-b640-62626df80443

https://www.berrycast.com/conversations/b4144f83-552e-5221-9aeb-20fcfba128cf


Create google_recaptcha_api.js

Thanks, please sign the CLA and format the file according to Google's JavaScript Style Guide (https://google.github.io/styleguide/javascriptguide.xml)

Closing due to inactivity. Please comment if you would like to finish this, we can reopen.


Handshake problem

The following doesn't work. In Firefox console it says resource couldn't be loaded. In Chrome it works most of the time, but not always. Apparently the handshake is not fully executed?
socket.OnOpen += delegate
{
	socket.Send("test").Wait();
	socket.Close();
};

It works as expected if I either add a sleep before socket.Close():
Thread.Sleep(50);

Or if I remove socket.Close().
Any idea? It seems like Send() does return before the handshake is complete, but at quick glance I couldn't spot mistake in code (I'm new to task pattern though).

Instead of blocking the thread with Wait() try using
socket.Send("test").continueWith(() => socket.Close());

Nope, doesn't work. I guess I have to dive in deeper and set breakpoints...
Just thought maybe that's a known issue or there is a known solution.
Well I will look into it tomorrow and post results.
I also tried other library (vtortola.WebSockets) and there is no such problem, it has other issues though (also task related it seems).

So what I did was adding a lock to SocketWrapper.Send(), it is released after _stream.EndWrite(asyncResult) is called: There does not seem to be an overlap in Send() calls. I also verified this by writing all bytes to a file - all packets were in correct order.
Also made sure the lock is not active when SocketWrapper.Close() calls _stream.Close() and _socket.Close().
Tried setting Socket.NoDelay to false, Socket.BufferSize to 1. Tried some other things...
Here screenshots of a successful and a failed request:

I doubt it's a browser bug because like I said, happens on Chrome too once in a while. Also the other library works fine with Firefox on this use case.
Feel free to close if you have no more idea.

Code 1006 means Abnormal Closure, meaning an exception was thrown inside Fleck. Set FleckLog.LogLevel = LogLevel.Debug and you'll see the exception that was thrown printed to the console.

Thanks that helps.

05.02.2016 17:57:31 [Debug] Client connected from ::ffff:<IP_ADDRESS>:9684
05.02.2016 17:57:31 [Debug] 510 bytes read
05.02.2016 17:57:31 [Debug] Building Hybi-14 Response
05.02.2016 17:57:31 [Debug] Sent 129 bytes
05.02.2016 17:57:31 [Debug] Sent 5 bytes
05.02.2016 17:57:31 [Debug] Sent 4 bytes
05.02.2016 17:57:31 [Debug] Swallowing ObjectDisposedException System.ObjectDisp
osedException: Auf das verworfene Objekt kann nicht zugegriffen werden.
Objektname: "System.Net.Sockets.NetworkStream".
bei System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
bei System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar,  Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchro
nization)

Seems like Chrome stil processes the output of the first frames even if the connection is has a problem later on. Firefox just discards everything.
Do you know what to make of this exception?

I've now added try-catch around the EndRead.
Success:

Failure:

Could it be that Fleck needs to wait for the 8 byte response? Seems related to #130?

The swallowed ObjectDisposedException comes from a read finishing after the socket has been closed. That's expected because we can't always cancel a read that's in flight. You can also add a listener to the onError handler inside the start() call and that will pass through any non-ObjectDisposed errors. Might give you more insight.

Closing this, it's duplicate of #130.


Extend testing to test vs web service

The machinery is there already, simply expose it in the test file.

Commit 1daec96fc627e0fdecf0e61b9bb8f1a92002db61 solves the issue.


Clear SelfList when destroying GDScriptLanguage

Fixes #78136
Not sure if correct, maybe the list elements need some cleanup too.

Ok moved the code to finish().
script_list seems to get cleaned up properly, not sure about function_list (but it doesn't look like it needs to delete anything?).

Given that the original report is on 4.0.3, which doesn't have the DEV_ASSERT and it crashes anyways, I don't think this really fixes things and likely just makes it go back to crashing occasionally with an access violation.

Since the list entries are removed on delete, and the list isn't empty, it does sound like an access violation trying to access the script and function instances after the language has been deleted

The DEV_ASSERT is in destructor and is clearly expecting the list to be empty, so I'm just fulfilling the requirement 🤷♂ If the crash happens without DEV_ASSERT, it just explains why it was there. And my changes fix it (unless you can find a case where it still crashes?).

I'd add some null checks to those places just to be sure if we aren't digging deeper into what causes the error in the first place, as those access checks could be more spurious theoretically

What places exactly? >_>

Here:
https://github.com/godotengine/godot/blob/ae896bbd85d0c9f1883c81f138045c3753ccef01/modules/gdscript/gdscript.cpp#L1457
And here:
https://github.com/godotengine/godot/blob/ae896bbd85d0c9f1883c81f138045c3753ccef01/modules/gdscript/gdscript_function.cpp#L165

Confirmed that it's not a crash on 4.0.x so should be safe to just clear the lists

Thanks!


Feature Request: Cooperative mode, Aider commit changed code to another branch, and I selectively merge them to my branch

Hello @paul-gauthier !
I'm surprised by Aider when I first see its workflow. However when using it, I found that it is hard for Aider to do things right the first time, I have to repeatedly undo and adjust my prompts to make it try to do things better. During my experience of Aider, I observed that in a decent percent of cases, Aider generated code contains some useful changes, but it also contains unwanted changes. (Mainly because I'm using local LLM)
And currently I have to /undo, because I cannot control those changes in fine grain, and it is troublesome to pick those useful changes out of undo-ed commits, because they are in current branch and has already been deserted.
So I think: There could be a Cooperative mode, in which Aider commits its changed code to another dedicated branch, and I selectively pick out those useful changes and merge into my branch, then when Aider works again, it first switch back to its branch and sync from my branch. In this way we can utilize Aider's work at most degree.
I didn't found familiar things in document, wish this cooperative mode can be brought into Aider.

Thanks for trying aider and filing this issue. This doc may be helpful:
https://aider.chat/docs/git.html
You can use raw git commands to perform the workflow you're describing.

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, it will be closed in 7 days.

I'm closing this issue because it has been stalled for 3 weeks with no activity. Feel free to add a comment here and we can re-open it. Or feel free to file a new issue at any time.


Login captcha

Someone know how to jump the captcha at login for premium account?

bypass recaptcha by Audio Recognition Challenge like here
How to bypass Recaptcha with Python?
https://ohyicong.medium.com/how-to-bypass-recaptcha-with-python-1d77a87a00d7

Seems like no recaptcha if use Advanced Real-Time Chart Widget https://www.tradingview.com/widget/advanced-chart/
~m~48~m~{"m":"set_auth_token","p":["widget_user_token"]}
wss://widgetdata.tradingview.com/socket.io/websocket?from=widgetembed%2F&date=2023_11_22-12_48&page-uri=www.tradingview.com%2Fwidget%2Fadvanced-chart%2F&ancestor-origin=www.tradingview.com


Deploy local L1 devnet

sub-issue for #3
The goal is to launch a local geth node that can serve as L1, including deploying the Optimism contracts on this L1 network.
I'm looking into adapting the logic from devnet/__init__.py (version from the stable release — significantly different).
The old version seems to support two modes, where one is to include the contracts in the genesis file of L1, whereas the second one deploys the contracts after creating L1. The new version removes the genesis approach. This makes sense: it's needed to support deployment for production anyway. Let's also only support that approach.
There are other differences, but I haven't gotten to them yet.
For now, we can follow the __init.py__ approach  and reuse the Solidity deploy scripts (scripts/Deploy.s.sol in the contracts directory) to deploy the contracts wholesale. At a later point we may want to internalize this script to be able to modify it.
I'll attach new comments to this issue to log my discoveries.

Some updates:

op-node/v1.1.1 still uses a hardhat-based deploy

upnodedev made the point here that we should use a slightly more recent commit (7168db67c5b421975fef2a090aa6e6ee4e3ff298) — which after checking does move deployment to forge
I'm also running into deployment failures, that I haven't fully investigated, but they don't seem to be simple coding error on my end
I will try with the newer forge-based commit and see if I can get that to work

beyond that commit, the deploy scripts in the optimism monrepo have been through a lot of changes recently, and I'm told they're being rewritten again, this time in Go
the approach I will take is use the newer commit if that works

I will also verify that these extra commits don't introduce major changes to the node software itself
if they do, it might be possible to cherry pick, or just reproduce the scripts locally as needed

later, after a new stable release has come out, we can update the system to use the new scripts if desired

maintaining our own scripts for spinning up the infrastructure and the config files is probably desirable...
... but for the deploy scripts, I think it's better to reuse what's in the Optimism repo, at least if we can get away with it

Fixed by https://github.com/0xFableOrg/simple-op-stack-rollup/pull/12


Improve Choose Image

Hide the open file dialog when an image is chosen, before loading the image
Show a loading spinner or progress bar after selecting image

I have this fixed on my system -- just need to add a stack to switch the button out with a loading spinner / label when the current buffer state is set to a loading value.

Cool!


Setup CI

We should set up a CI service to run tests on travis or circle ci.
https://blog.travis-ci.com/2017-10-26-running-kubernetes-on-travis-ci-with-minikube

Resolved in #33


Interesting - that setup definitely is working for me!
I wonder what the difference could be
Sent via Superhuman iOS @.***>
On Tue, Mar 28 2023 at 17:30, Giorgio Pellero @.***>
wrote:

Sure, happy to help out :) I'll test that out tomorrow morning.
I'm on Darwin ARM64 anyway, standard macOS on M1.
—
Reply to this email directly, view it on GitHub
https://github.com/automerge/automerge-go/issues/15#issuecomment-1487738953,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAXAQEHJKRN4HKHHJNVWCDW6NYDBANCNFSM6AAAAAAWKVIEDM
.
You are receiving this because you commented.Message ID:
@.***>

Doing a little digging here, I can reproduce the same output when I do go build -x ./... but it doesn't seem to actually cause the build to fail for me.
I think the likely culprit is that the automerge-go package itself is missing symbols when linked by itself (because it needs to be linked alongside automerge-go/deps to resolve them). This isn't a problem when linking the final binary because any binary that links automerge-go will also link automerge-deps/go.
Does the build fail for you (or is this output causing other problems?). If so, I'm curious why, but regardless we can go back to plan A from #14 and include the libraries in the main package's directory.

I've attempted a fix at #18, please let me know if that works for you.

Merged for now, please let me know if this causes yet more problems for you :D.

Hey! Sorry for the late reply.
I couldn't reproduce anymore with #18 so I think that should work (though I haven't tested very thoroughly).


Fix LIHKG討論區 formatting issue under Apps/Websites

Fixed a formatting issue from previous PR.

Hi Kazupon,
I simply changed the invisible character, if you view the commit in "Display rich diff" you will see it. 😃
Colloque


Feature request: i18n Internationalisation support for different languages

Summary
Detect the user language and display the application in that language.
More work might be required for RtL scripts.
Possible solutions
There are plugins for grunt that exist that do this, but will depend on whether the content is static or dynamic.
e.g.: https://www.npmjs.com/package/grunt-i18n-static

Duplicate, see #42.
I am working on a solution for this in #121.


Plot Sankey diagram for each model run

Aarhus has code for this using plotly.

Lisa has code for this


Feature Request - Success or Error Actions

This is a feature request, I am coming from iOS development to web and as a iOS dev I used PKHUD a lot.  I especially liked the success and error animation and believe that it would make a great addition to your software.

Animated Transition from loading to success /error would be a great add on to this library


Recursive Sitemap Index Parsing

This is a nice tool, I'll certainly be using it a lot more moving forward.
However, I noticed when testing a website that has a sitemap index file, it doesn't recursively parse the sitemaps within:

No biggie, but it would be good to see the full resultset if possible.

++ to this.
Sitemaps that exist as a single file are usually the small ones that are easy manually look over. The ones that use many tiered layers of indirect references are exactly the ones where a tool is most valuable. One example of a complex multi-file sitemap: https://www.apple.com/sitemap.xml
The sitemap implementation I found here appears to make some other overly simple assumptions.  Roughly:

If it finds /sitemap.xml at the root, is doesn't look in robots.txt, whereas I believe both can be valid
In robots.txt it assumes that only one sitemap URL is specified instead but the specs allows for multiple sitemap files to be specified. Example: https://www.apple.com/robots.txt
And like @shutupflanders  said, it doesn't follow indirectly references sitemaps and assumes all sitemap content exists in one file.

Building this out fully is equivalent to just building a real sitemap parser for indexing, so perhaps one of those can just be repurposed.


Protect branch with required checks

What changes were proposed in this pull request?
Require successful status checks and at least one review for enabling merge button.
How was this patch tested?
Can only be tested with another PR after merge.  Hence opening in experimental repo.

BTW I have an question not related to this PR,
could you be so kind as to let me know the process of contributing this repo ? (Just as filing a Jira or some other method), thanks.

Yes, just use the regular contribution process. New issues can be sub-issue of https://issues.apache.org/jira/browse/HDDS-4977 (to make it easier to find them later and that issues is already watched by a few people interested).
AFAIK there is now current in-progress plan or design doc, so if you have any idea / improvements / patch, feel free to create a patch. I would be happy to help with reviews...

I need to revert it temporary, as it's not possible to push to the master today:
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 1.93 KiB | 987.00 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: 3 of 3 required status checks are expected. At least 1 approving review is required by reviewers with write access.
To github.com:apache/ozone-go.git
 ! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'github.com:apache/ozone-go.git'

My +1 still stand, and I will reapply this one after the initial import is reviewed.


Add Cloud Studio webhook template

Summary
Add Cloud Studio Webhook template
Changes

Add Cloud Studio Webhook template

Checklist

[ X] Scope: The referenced issue is addressed, there are no unrelated changes.
[ X] Compatibility: The changes are backwards compatible, they don't break existing deployments.
[ X] Testing: The changes are tested.
[ X] Documentation: Relevant documentation is added or updated.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Content updates and a little tweaking

Description of the change

Add/change text and images
Tweak sizing/padding classes
Fixing links

Screenshots

Checklist

[x] Added description of the change
[x] I've read the contributing guidelines
[x] Search previous suggestions before making a new PR, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes (optional):

Thank you so much!


feat: the cni component code is extracted into a separate section

Signed-off-by: zhuzhenfan<EMAIL_ADDRESS>
What type of PR is this?
/kind optimize

What this PR does / why we need it:
The structure and step code of the current cni is written inside the k8s cluster, which is not convenient for extending other cni in the future.
Which issue(s) this PR fixes:

Fixes #307
Special notes for reviewers:

Does this PR introduced a user-facing change?

None

Additional documentation, usage docs, etc.:

@x893675 @qinyer

Codecov Report

Merging #308 (3dd807f) into master (74fc109) will increase coverage by 0.00%.
The diff coverage is 7.72%.


Provide some CSS defaults

Hi,
This is library is a great work, thanks for publishing it! It would be even more awesome if it provided some default CSS that can be imported into the HTML file to get a few basic behaviors.
For example today I lost almost two hours digging into the playroom to find out that animation-fill-mode: both; is an essential property when using the "slide" animation (which is not documented anywhere).
Any possibility to implement some default styles?
Thanks! Cheers

I've been meaning to clean up the CSS in the playroom. Currently it uses keyframe animations for slide, which is far too complex. The documentation covers some basic CSS to get you going. Effectively, something like this:
/**
 * Note: I have omitted any vendor-prefixes for clarity.
 * Adding them is left as an exercise for the reader.
 */
.headroom {
    transition: transform 200ms linear;
}
.headroom--pinned {
    transform: translateY(0%);
}
.headroom--unpinned {
    transform: translateY(-100%);
}

You can then copy/paste in http://pleeease.io/play/


Fixes inability to override default options that are default: true

Will need to update CDN however that is done.

Thanks.  All updated.


make sidenav usable for webapps - added destroy

sidenav.js small refactor

Why do you have changes to our dist folder? Can you clean this up and make sure you only make changes to the sidenav.js file and compile to bin/materialize.js only.
And you can keep your documentation changes

Seems to be fixed in #3419. Mind closing this @makeros @acburst?


Fix leaking Status Path nodes in ZK

remove ZK status path nodes for workers after they are removed.

:+1:


uh oh big issue

this is a testing issue, maybe it'll work?

this one is extra fun

more fun?

tres fun!

A cool comment.


Run test suite in IntelliJ.

To the best of my knowledge it is still difficult, if not impossible to run the desktop test suite in IntelliJ. While IntelliJ is currently fantastic for building LibGDX projects on all platforms, the fact that it can't run tests when working with source makes it inconvenient to need to use two IDE's to contribute.

Are you talking about the unit tests? Or the gdx-tests-lwjgl/gdx-tests-jglfw tests? Either way I have no issues with running either from within Intellij IDEA.

The lwjgl and jglfw tests. It appeared that IntelliJ was struggling with the multi project layout of the source project, in addition to the snippet at the top of this article stating that tests were currently limited to Eclipse only. If they are currently considered functional in IntelliJ, it might be worth updating the documentation on how to set them up properly.

That article is outdated now IDEA has good eclipse integration and now we have a gradle model for LibGDX source also.  If you import via the Gradle model then you should be just fine. Otherwise you should manually set up the tests.  You shouldn't have an issue doing either of these.

I'll do both methods from a clean project, and update the guide for working from source for both methods.

Great. I'll give it a shot. Thanks.

@Tom-Ski Until you update the documentation, would you mind to point towards how I would run the tests after importing via the Gradle model? I'm currently getting a ClassNotFoundException when attempting to run the LwjglCanvasTest. I suspect this is a classpath issue with my run config in IntelliJ.

I suspect you are using Intellij 15.0.1? In which case you need to mess around a bit to get things to compile due to a bug with Intellij.  (which should be fixed in 15.0.2 iirc)
You'll need to remove all Gradle facets from the project. On Windows, Ctrl + Shift + Alt + S to bring up project structure, select facets and just remove everything.
After this you will then need to manually compile the projects, this should only be required once.
Begin with gdx, select the folder in project explorer and hit Ctrl + Shift + F9  to compile the module.  Then do this for the backends, either the whole backends folder, or just the gdx-backends-lwjgl, and finally for gdx-tests and gdx-tests-lwjgl.  Then you should be able to run.  As I said, this is due to a bug, which should be resolved in the next minor patch, and you should only need to do this once, unless you clean out your build files.
If you have problems with other modules the solutions are a little more involved, I can give you a hand on the irc channel, the forum or over email; I just want to avoid any spam on this issue tracker due to problems out of our hands.

Ah. Thanks for the explanation. Given the nature of the issue and the succinct explanation, this issue can be closed. Thank you.


examples/python3.lark progress?

Hi, I'm making a subset of Python. (For generating LLVM IR :-)
I'd like to use an example/python3.lark before writing my grammar file (because I am a novice at Lark).
Is it okay to use in a production environment?

Lark's license is MIT, which allows it to be used for commercial purposes (only excluding the standalone parser)
So yes, it includes the Python grammars as well. If you end up improving them, I hope you'll consider contributing back so everyone can benefit.


how to get pth.tar file after trainning own dataset?

hi, i trained on my own dataset, and get pth files, but image_demo.py need a pth.tar file as weight, so how to get the pth.tar file by pth file? can i just run "tar -cvf iter_xxxx.pth.tar iter_xxxx.pth"?

Hi, give image_demo.py a .pth is ok

Hi, giving image_demo.py a .pth is ok.

you mean "python image_demo.py  xxxxade20k_ss.py iter_xxxx.pth  ADE_val_00000591.jpg  --palette ade20k"??

Hi, giving image_demo.py a .pth is ok.

you mean "python image_demo.py xxxxade20k_ss.py iter_xxxx.pth ADE_val_00000591.jpg --palette ade20k"??

Yes


Tab on user profile to show starred repos

Deprecates https://github.com/go-gitea/gitea/pull/181
Improvements pending for future PRs:

Have a timestamp in star table and order by it
Pagination
Filter

LG_TM once copyright is in place :)

Copyright added

LGTM

LGTM


Top combo schema selected not working

System information:

Operating system (distribution) and version Windows 10 64 bit
DBeaver version 21.1.0
Additional extensions

Connection specification:

Database name and version Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
Driver name ojdb8.jar
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
It only fails with DB2 z/OS connection (with Oracle, for instance, it works). It worked OK even with DB2 previously up to DBeaver version 7.0.0. After that, it fails.
Initialization schema configured, you execute a query and it works the first time. Then you wait 30 minutes and when you come back, then execute a query with the same schema selected (you have not touched the dropdown select) and it does not propagate to the query so it fails with (Table  does not exist, because you are not in that schema.) If you reselect the same schema in the top combo, then it works again until you wait some minutes and back again to the same failure.
Steps to reproduce, if exist:

Configure DB2 z/OS connection
Configure a schema initialization different than the default one of the DB user
write a select of a table which is in the initialization schema. Execute it. It shoud run OK.
Wait for 30 minutes or so.
Try to reexecute again the query. It will fail
Deploy top schema combo to reselect the same schema that was selected.
Reexecute again the query. It will work.

Include any warning/errors/backtraces from the logs

¿Any news?

there is no update on the issue for a long time. If it is still actual - feel free to reopen it

Thanks! It is solved in version 21.2.4. Best regards.


Maint/main/merge up 3 11 22

I think we lost the change to lib/puppet/util.rb. The version in main should contain (so that we load lib/puppet/util/windows.rb explicitly after loading the platform constants).
require_relative 'util/platform'
require_relative 'util/windows'


add new functions and instances

I have added new functions and instances.
functions:

isEmpty
size
member
alter
update

instances:

Functor
FunctorWithIndex
Foldable
FoldableWithIndex
Traversable
TraversableWithIndex

functions in ST

modify
thaw
freeze
run

I have also modified the example in README since it is cleaner to use the function run of the module Data.ObjectMap.ST than unsafeFreeze.
By the way, the implementation of run uses unsafeCoerce but I have not found a better way to do that.
Feel free if you have an idea.

Looks good!
I did not find a way to get rid of "unsafeCoerce". I think that's the way to go.
Please just format the code with purs-tidy, then I'll merge and release the next version.


azext_botservice 0.4.2 release

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[X] My extension description/summary conforms to the Extension Summary Guidelines.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/stevengum/azure-cli-extensions.git@master#subdirectory=src/$EXT&egg=$EXT"

Thanks for the PR :)


lib/wire-protocol.js regex issue

Hi,
I'm facing quite a lot of error invalid message from server, did not start with length#:.
I'm using drachtio 4.1.6 package and spotted an issue with a regex in the _onData handler of wire-protocol
  _onData(socket, msg) {
    this._logger('<===' + CRLF + msg + CRLF) ;

    if (!this.mapIncomingMsg.has(socket)) {
      this.mapIncomingMsg.set(socket, {
        incomingMsg: '',
        length: -1
      });
    }
    const obj = this.mapIncomingMsg.get(socket) ;
    try {
      while ([...msg].length > 0) {
        let pos ;
        if (0 === obj.incomingMsg.length) {
          //waiting for a new message
          pos = msg.indexOf('#') ;
          if (-1 === pos) {
            if (msg.match(/^\\d+$/)) {
              //it can happen that a message is broken between the length digits and '#'
              obj.incomingMsg = msg ;
              obj.incomingMsgLength = -1 ;  //unknown
              return ;
            }
            else {
              throw new Error('invalid message from server, did not start with length#: ' + msg) ;
            }
          }
          msg = this.parseMessageHeader(msg, pos, obj);
        }

The msg.match(/^\\d+$/) is probably wrong and should be msg.match(/^\d+$/)
Cheers

can you show some drachtio log snippets showing the kinds of errors you are seeing?
Also, please update to using drachtio-srf, and remove the drachtio dependency from your app, when you have a chance

Hi! Here are some logs showing the above error.
/usr/src/app/node_modules/drachtio/lib/wire-protocol.js:280
        throw err;
        ^

Error: invalid message from server, did not start with length#: 8ff6b23f-4d5c-44be-ba7f-40d297fd49c2|sip|network|345|udp|<IP_ADDRESS>|5060|04:39:14.328815|ca580637-215f-4e60-8cff-0e0cc621536c||
SIP/2.0 200 OK
Via: SIP/2.0/UDP <IP_ADDRESS>;rport=5060;branch=z9hG4bKgZ9Z662pXDZyB;received=<IP_ADDRESS>
From: <sip:<IP_ADDRESS>:5060>;tag=X5m0UeeSaSarS
To: <sip:<IP_ADDRESS>>;tag=120fbc1eeeae6ef0cbbeec6e3f8738a6.94ee
Call-ID: 47f033b7-46e9-1237-78a1-0242ac110011
CSeq: 129237113 OPTIONS
Server: Kamailio Edge 5.1
Content-Length: 0

    at WireProtocol._onData (/usr/src/app/node_modules/drachtio/lib/wire-protocol.js:244:21)
    at Socket.emit (events.js:180:13)
    at addChunk (_stream_readable.js:274:12)
    at readableAddChunk (_stream_readable.js:257:13)
    at Socket.Readable.push (_stream_readable.js:218:10)
    at TCP.onread (net.js:581:20)

Just sent you a mail with a PCAP
I'm runing drachtio v0.7.3 and drachtio-srf only latest version too 4.3.7

thx - sorry for the delay in responding, I've been on holiday.  Returning this weekend and will check into this soonest.

The pcap you sent seems to be filtered to only show sip traffic.....actually, I wanted to see all the traffic on the server, specifically the tcp traffic between the server and the drachtio-srf application.  Can you send me the full (unfiltered) trace?

Hi, I've only sniffed SIP traffic inside the drachtio server container.
Will make another PCAP asap without SIP filter and get it to you.

Actually, if you can get at the PCAP From the server on which the application is running that is what I would like to see. It is the incoming message from the server to the application, not the sip message which is causing the problem
Sent from my iPhone

On Oct 27, 2018, at 10:06 AM, Thomas<EMAIL_ADDRESS>wrote:
Hi, I've only sniffed SIP traffic inside the drachtio server container.
Will make another PCAP asap without SIP filter and get it to you.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

also, I want to make sure I understand your test setup.  From looking at your 'probing' code above, it seems like you have one drachtio server+app sending OPTIONS to a second drachtio server (presumably with its own app attached), is that correct?
If possible, I would like to help you update your code to remove the dependency on the 'drachtio' npmjs module as now you should only need to import 'drachtio-srf'.  If you would like, perhaps you can make a private project and grant me access so I can either indicate the changes required or make them on a new branch or PR

The setup is the following one

an anycasted drachtio in a container
a container with drachtio-srf (I already removed dependency to drachtio a while ago as you pointed out in the first message to use drachtio-srf instead)
plenty kamailio backend

The js app attached to the frontend drachtio have a full list of Kamailio backend which are probbed every 10s to check if they are alive or not and their respective latency.
So in the current setup there is only 1 drachtio container and only 1 drachtio app (if I can named it like this)
Then on REGISTER and/or INVITE the drachtio app proxy the request to the kamailio which has the less latency. Hope that helps to understand our setup.

It sounds like the front-end drachtio-srf app is quite simple.  Could you also just send me a zipfile of that project (inlcuding package.json, etc)?
But the pcap would be quite useful as well..

Sorry it took me a while to be able to get this as I was busy on something else.
I'm going to mail you the dump file and the error I grabbed couple minutes ago.

ok let me know your results from the latest version.
For some reason, in that pcap I see only the traffic to the sip port....there should have been tcp traffic leaving the container from tcp port 9022 going to the drachtio-srf app, but I can't find it in the trace for some reason..

actually, I see that traffic now -- it was coming from tcp port 8022.  Studying it now, meanwhile when you have had the chance to test for a while with the new code let me know your results

The app have been running for 20hours now without any crash. Your fix did the trick, thanks a lot 😄
Let me know if you need more material regarding to the underlying issue I'll try my best to provide it


[3.0] [Suggestion] Extendable ApiDoc generator

Since you are working on rewriting the Generator I will add some ideas of my own.
I dont like that you wont be able to parse Requests any more, but I guess its a taste thing.
So thinking about tastes what about being able to add custom keywords and parsers.
I think about something like:
// app/Providers/AppServiceProvider.php
public function boot()
{
    ApiDoc::extend('myCustomCommand', function($annoter, $route, $annotationValue) {
        $annoter->addComment('Some comment');
        $annoter->addSomethingElse('More details');
    });
}

// app/Http/Controllers/MyController.php

/*
 * @myCustomCommand Some extra information
 */
public function index()
{
    // The code
}

Of course you will have to think about a more advanced and stable API and possibly an intermediate way of storing the docs eg. as an array.
This is just an Idea, but I think it will give the ability to create independent modules by the community as well as make it easier to create documentation, since If something I need is missing in the library, I could just fill the gap with my own extension.

Thank you for the suggestion.
Yes, I don't agree with using FormRequests for parameter descriptions, but I do agree that it's one of the easiest way of keeping the documentation up-to-date, and that is a major problem with documentation. So I'm considering adding them back, but they have a lot of issues which I'd need to fix and it's going to take a good deal of time and effort. It's going to be an interesting engineering challenge.
Regarding your proposal, it sounds reasonable. Two things, though:

v3 is almost ready for release, so even if we decided to do this, it's not going to make it into v3.
I know this could be useful for you, but we'd need to see more requests and discussion around this before we can consider this. I'm all for extendable things, but I'm not sure I'd be high on the idea of people writing code inside their code to modify a tool that generates documentation from their code. (Lots of codes there 😁.) It would also be a lot of work on our side. Anyway, I think you get my point...

I get your point. The idea of writing extensions inside application code was just a fallback for some edge cases.
The main reason I was thinking about was to make some controversial features (I assumed you don't want Request parsing at all based on some of the posts in other issues) to be available as separate packages.

Good news - we're moving to a plugin architecture. First PR here: https://github.com/mpociot/laravel-apidoc-generator/pull/570

FormRequest rules() support is back in Scribe.😅


Wrong x offset for view controller

I have an issue then i rotate screen the x offset calculates with mistake and view controller from the next page appears on the second half of the first page.
My paging view controller embedded in a navigation controller. That navigation controller added as a child view controller to other view controller that also embedded in navigation view controller.
If I have only one navigation controller everything works good.

I had something similar, when I would rotate the iPad, and the content of the underlying scrollView wasn't updated correctly.
Here is the solution which worked for me:
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransition(to: size, with: coordinator)

        paging.pageViewController.scrollView.invalidateIntrinsicContentSize()
    }

paging is of type PagingViewController, part of Parchment.

I found the solution to this problem:
Call this function inside the subclassed object of type PagingViewController:
    override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransition(to: size, with: coordinator)

        self.pageViewController.willTransition(to: view.traitCollection, with: coordinator)
    }
    ```

    @rechsteiner
    Can I ask you if this is intentional, or was it a mistake.
    In the file `PageViewController.swift`, there is this override method:
    ```
    public override func willTransition(to newCollection: UITraitCollection, with coordinator: UIViewControllerTransitionCoordinator) {
        super.willTransition(to: newCollection, with: coordinator)
        coordinator.animate(alongsideTransition: { _ in
            self.manager.viewWillTransitionSize()
        })
    }

I wonder if this should have been an override for this function?
public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
     super.viewWillTransition(to: size, with: coordinator)

     coordinator.animate(alongsideTransition: { _ in
         self.manager.viewWillTransitionSize()
     })
 }
 ```

 This would solve the problem we're having on iPads when rotating the device, the underlying scrollView's content width should be updated.

Ahh yes, that definitely looks like a mistake. Will get that fixed soon!

I've fixed some issues with rotation when using the SwiftUI wrapper in #596. Could you target the master branch and see if that fixes your issues?

@rechsteiner
Yeah, it looks like this fixes the problem with rotation.
P.S: You might want to remove the print statement on line 171
print("viewWillTransition: ", size) inside PageViewController.swift

A new version is out now that fixes this v3.1.0. @Starsky89 I forgot to remove the print statement in this release, but it's fixed in the master branch


Add RouteParamProvider Component for JSON Decoding

Problem
The current approach using extension functions for decoding JSON from SavedStateHandle involves repetitive code and adds complexity to our tests. We need to stub the JSON data in each test case individually, which is inefficient and error-prone.
Solution
@ViewModelScoped
class RouteParamProvider @Inject constructor(
   val savedStateHandle: SavedStateHandle,
) {
   inline fun <reified T> decode(key: String): T {
       val jsonString = savedStateHandle.get<String>(key) ?: throw IllegalArgumentException("Argument not found")
       return Json.decodeFromString(jsonString)
   }
}

Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct and Contributing Guidelines

Closing this issue since we need the function to be inlined with a reified T parameter, however, mockk does not support stubbing of inline functions


changing assertIsStored to return store object instead of bool

assertIsStored is expected to return an object but at the moment is returning a boolean value.

👍


Update doc with JIRA target notificaiton

Need to update the documentation with JIRA target notification (templates, formatting, etc.).

Fixed in:
https://github.com/RedHatQE/notify-service/pull/43


Does this line cause undefined behavior?

https://github.com/jrgerber/smbios-lib/blob/1cd91116615d52d52a49234d9face053a894d0fc/src/macos/platform.rs#L72-L76
Before reading data, the memory is freed.
Maybe it should be changed to something like this?
fn try_load_macos_entry_point() -> Result<SMBiosEntryPoint32, Error> {
    let service = AppleSMBiosService::try_init()?;

    unsafe {
        let smbios_entry_point_name = CString::new("SMBIOS-EPS").expect("CString::new failed");
        let option_bits: IOOptionBits = 0;
        let data_ref = IORegistryEntryCreateCFProperty(
            service.service_handle,
            CFSTR(smbios_entry_point_name.as_ptr()),
            kCFAllocatorDefault,
            option_bits,
        ) as CFDataRef;
        if data_ref.is_null() {
            return Err(Error::new(
                ErrorKind::NotFound,
                "SMBIOS-EPS entry point is unreachable",
            ));
        }
        let data_ptr = CFDataGetBytePtr(data_ref);
        let data_length = CFDataGetLength(data_ref);
        let mut entry_point = Vec::with_capacity(data_length as usize);
        std::ptr::copy(data_ptr, entry_point.as_mut_ptr(), data_length as usize);
        entry_point.set_len(data_length as usize);
        CFRelease(data_ref.as_void_ptr());
        SMBiosEntryPoint32::try_from(entry_point)
    }
}

Sorry, someone has already fixed it.


Showing {1} on blank line

In line 3 of this paste I see {1} but those characters don't appear in the raw, and they are not in the original code that I copied.

This issue has come up before. I'll have to figure out what was happening there.

This will be fixed when server-side highlighting is implemented.


Deno support

Describe the feature
Hi! It would be super nice to be able to develop with/install Nuxt using Deno, as the only listed options so far are npm, pnpm, yarn & bun 😊
Additional information

[ ] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[x] Read the contribution guide.
[x] Check existing discussions and issues.

Do you mean add Deno starter to docs? Nuxt is compatible with Deno.

He probably meant Nuxi package manager options when creating a new project. When selecting npm and then trying to run deno task build it throws these errors a bunch:

Yes I meant that! And also to use deno instead of npm to install dependencies, so to add abother option "deno" alongside bun, nom, yarn and others.
Because I don't want to have to install npm if I already have deno.
And I am getting the same error yes!

After some source code delving I found out you can build nuxt using Deno by adding nitro: { preset: 'deno' } to your nuxt config. However I did not find a way to make it work for the development server so that it works. I assume that there isn't support for that yet. The issue could be related to some fs.stat or fs.statSync not receiving proper arguments (deno-node polyfill). But since the stacktrace is too small I don't know much more.

Is https://github.com/nuxt/cli/pull/526 solving this issue?
Gotta confirm that

Well when using the Nuxt UI starter with Deno I am getting a 500 server error for now:
[nuxt] [request error] [unhandled] [500] Cannot find module 'vue'

Does it help if you add vue as a dependency?

Deno seems to work fine in a new project with the latest CLI changes.
I checked UI template and installing vue does resolve the issue, so I added it to package.json.

@danielroe can you please reopen? This does not look fixed to me.
When creating a new project using deno run -A npm:nuxi@latest init -t ui, and then deno task dev I get this:

instead of (same project but using Yarn instead of Deno):

So I think this issue should still be opened 😅

you're right, there's an issue:

would you raise it upstream with deno? this doesn't seem like a nuxt bug to me.

Probably related (https://github.com/denoland/deno/issues/26700, https://github.com/denoland/deno/pull/23289)

@danielroe how are you getting that? I don't have any error on my side:

Are you sure you are using Deno 2.1.4? I think your issue might be already fixed

quite right, this computer still had v2.0.6


Use  checkpoints.sqlite raise NotImplementedError

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
graph2.py
# workflow is normal code

def get_executor_app_with_checkpoint(interrupt_before=None, interrupt_after=None, debug=False):
    _workflow = copy.deepcopy(workflow)
    memory = SqliteSaver.from_conn_string("checkpoints.sqlite")
    return _workflow.compile(checkpointer=memory, debug=debug,
                             interrupt_before=interrupt_before, interrupt_after=interrupt_after)

main.py
# normal import functions

if __name__ == '__main__':
    from llms.ExecutorAgent.graph2 import get_executor_app_with_checkpoint
    import asyncio

    async def main():
        state = get_state(SerializableDevice("")) # my code,
        app = get_executor_app_with_checkpoint(interrupt_after=['Advice'],debug=True)
        thread = {"configurable": {"thread_id": "100"}}

        res = await app.ainvoke(state, thread)
        print(res)
        snapshot = app.get_state(thread)
        print(snapshot.next)
        print(snapshot.get_state(thread).values["messages"])

        to_replay = None
        for state in app.get_state_history(thread):
            print("Num Messages: ", len(state.values["messages"]), "Next: ", state.next)
            print("-" * 80)
            if len(state.values["messages"]) == 6:
                # We are somewhat arbitrarily selecting a specific state based on the number of chat messages in the state.
                to_replay = state
        print(to_replay.next)
        print(to_replay.config)
    asyncio.run(main())

Error Message and Stack Trace (if applicable)
Traceback (most recent call last):
File "D:\Users\111543801\PycharmProjects\GuiAutomator\test_init_.py", line 187, in
main()
File "D:\Users\111543801\PycharmProjects\GuiAutomator\test_init_.py", line 163, in main
res = asyncio.run(app.ainvoke(state, thread))
File "D:\Users\111543801\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "D:\Users\111543801\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "D:\Users\111543801\PycharmProjects\GuiAutomator\venv\lib\site-packages\langgraph\pregel_init_.py", line 1301, in ainvoke
async for chunk in self.astream(
File "D:\Users\111543801\PycharmProjects\GuiAutomator\venv\lib\site-packages\langgraph\pregel_init_.py", line 994, in astream
await self.checkpointer.aget_tuple(config)
File "D:\Users\111543801\PycharmProjects\GuiAutomator\venv\lib\site-packages\langgraph\checkpoint\base.py", line 184, in aget_tuple
raise NotImplementedError
NotImplementedError
Process finished with exit code 1
Description
1.This problem only occurs at the end of my graph run
System Info
langchain==0.1.5
langchain-community==0.0.17
langchain-core==0.2.0
langgraph==0.0.50

Use https://langchain-ai.github.io/langgraph/reference/checkpoints/#asyncsqlitesaver for async work.
Sqlite doesn't really natively support async operations


minor correction in text

As suggested by user, I have made correction in the text.
Problem: https://github.com/MicrosoftDocs/windows-itpro-docs/issues/5701

@nenonix @JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

@greg-lindsay - PR has been copy edited and is ready for final review. This is based on issue #5701.
Thank you.
cc: @kenwith


Revert "tests: use old build of ceph@master"

This reverts commit 47a451426a8308a4ea80e0a1e4d867e9dd290fe5.
This build isn't available on shaman anymore.
Signed-off-by: Dimitri Savineau<EMAIL_ADDRESS>

jenkins test centos-non_container-all_daemons


nrf_qspi_nor for nRF5340

This makes the driver compile for nRF5340 and it seems to work, but I did not do extensive tests.
I am not at all confident in my understanding of the Devicetree, so I may have gotten something wrong.
To make the driver work on nRF5340, there are changes required to the DTS files:
	soc {
		peripheral@50000000 {
			qspi: qspi@2B000 {
				compatible = "nordic,nrf-qspi";
				#address-cells = <1>;
				#size-cells = <0>;
				reg = <0x2B000 0x1000>;
				interrupts = <43 1>;
				status = "disabled";
				label = "QSPI";
			};
		};
	};

&qspi {
	status = "okay";
	sck-pin = <17>;
	io-pins = <13>, <14>, <15>, <16>;
	csn-pins = <18>;
	mx25r64: mx25r6435f@0 {
		compatible = "nordic,qspi-nor";
		reg = <0>;
		writeoc = "pp4io";
		readoc = "read4io";
		sck-frequency = <8000000>;
		label = "MX25R64";
		jedec-id = [c2 28 17];
		size = <67108864>;
		has-be32k;
		has-dpd;
		t-enter-dpd = <10000>;
		t-exit-dpd = <35000>;
	};
};

And to Kconfig somewhere(?):
config SOC_NRF5340_CPUAPP
	select HAS_HW_NRF_QSPI

Again I'm not sure if I got this right. Can anyone from Nordic or a Devicetree expert try to implement this for nRF5340? Thanks.
Fixes  #28635

https://docs.zephyrproject.org/latest/contribute/index.html#commit-guidelines
https://docs.zephyrproject.org/latest/contribute/index.html#contribution-workflow

Yes, the commit message should be something like:
drivers: nrf_qspi: fix devicetree opcode references

The condition used to detect presence of optional devicetree
properties that specify read and write opcodes was inadvertently
changed to something that will never be true.  Update the check and
the property extraction to restore the original behavior.

plus signed-off-by.

Sorry about the mess, I was only working from the Github web interface.

Sorry about the mess, I was only working from the Github web interface.

OK.


ClipRRect: The argument type 'BorderRadiusDirectional' can't be assigned to the parameter type 'BorderRadius'.

ClipRRect borderRadius parameter does not allow BorderRadiusDirectional object to be passed.

Hi @kightsonsanom,
Yes currently it doesn't seem to support BorderRadiusDirectional, unlike other widgets such as Card or Container using their shape property.
So what is your question here ? Are you looking / proposing to have this feature for ClipRRect ?

Hello @darshankawar, thank you for your quick response. Yes, I am proposing to include this feature for ClipRRect, currently, when we want to include an image at the start of an eg list item with rounded corners we have to explicitly provide circular corners depending on the direction of the text.
Example:

On the BorderRadiusDirectional use reslove() method to be converted to a BorderRadius object.

It looks like this was fixed in #101200, after being duplicated as #91997.


Resolve bitBucket 7.x Issue

Our bitBucket team upgraded the thing to 7.x and of course, the pipeline was broken this morning.
I took a minimalist approach to make it working again. I read in the discussion board of efforts to make everything API based, so I don't want to change more than necessary, and causing more headache down the road.
Want to put the PR out for review. We will do more testing in the next week or so, and incorporate any fixes that arise.
Would also appreciate other folks to give it more testing.
Thanks

@mmb will you be kindly review the PR? We have gone through quite some testing and I think it works fine to fix the issue.
thanks

@mmb  - Any update?


remove explicit C++ variant of hdf5

Changes hdf5 dependency variants from hdf5+cxx+hl to hdf5+hl
PR Summary
@annapiegra reported conflicts with using the +cxx variant. Removed this from package.py
PR Checklist

[ ] Adds a test for any bugs fixed. Adds tests for new features.
[ ] Format your changes by using the make format command after configuring with cmake.
[ ] Document any new features, update documentation for changes made.

Concretizes on CTS1 intel.

Can build/test successfully with these changes; used spec singularity-eos+fortran build_extra=sesame,stellarcollapse on darwin amd-rome partition.

Can build/test successfully with these changes; used spec singularity-eos+fortran build_extra=sesame,stellarcollapse on darwin amd-rome partition.

@Yurlungur Should be good to go, pending any revisions by @annapiegra


Add a command to restart the Sagemaker repository on push

Summary problem:
When you run apply the first time, the sagemaker notebook is populated with all of our files from the local mlops_ml_models folder which are pushed to an s3 bucket (you can check the lifecycle config part of the sagemaker terraform file for more information), however, the files do not refresh when you run apply a second time unless you stop the notebook and then restart it.
We need to find a way to restart the notebook even when rerunning apply so as to take out the manual process of stop and restarting the notebook instance.

@Lanre-B could we please catch-up about this next week so I can understand exactly what the problem is?


nice page, please make one for memory in AKS.

[Enter feedback here]nice page, please make one for memory in AKS.

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

ID: f9a1c02e-775f-d7ce-1dd4-5db4fff746d0
Version Independent ID: d488bf33-eeeb-8f7a-e8c7-689aa04e3847
Content: Identify the containers consuming high CPU in an AKS cluster - Azure
Content Source: support/azure/azure-kubernetes/identify-high-cpu-consuming-containers-aks.md
Service: container-service
GitHub Login: @ramakoni1
Microsoft Alias: ramakoni

@porrascarlos802018, Thanks for the feedback. We will investigate and consider to add this topic to our roadmap.

@porrascarlos802018 We just published an article for memory in AKS:
Identify memory saturation in AKS clusters - Azure | Microsoft Docs


Hiding GLFW window from dock with LSUIElement=1 (macOS)

GLFW 3.3
macOS 10.15 beta (but seeing the same behavior on Mojave)
Hi all!
Been working on a crossplatform app for a while that keeps its window hidden most of the time and needs to be as invisible as possible when it is in that state. It gets opened by an RPC call from an external process.
On Windows, I use this to pop up the window as a tool window, but it seems like there's no good equivalent on macOS, even when all the app windows are hidden. I tried following tutorials to bundle the executable produced as a .app package with a switch in Info.plist, but none of them seem to work (when I double click the .app it still pops up in my dock) and I'm not sure how to go about debugging.
Does GLFW override this behavior somewhere in the Objective-C glue code and is there possibly a way I could patch to revert it, or some flag I might be able to set with something returned from glfwGetCocoaWindow? Have other people needed to do this and had success in the past?
Thanks!

I have the same problem. Does anyone know the solution?

Yep, figured it out. In cocoa_window.m in the createNativeWindow() function, change:
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];

to:
[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];

If anyone is wondering how to achieve this without modifying GLFW, I managed to do it by adding the following MM file, which spoofs the setActivationPolicy: method called in GLFW initialization:
#import <AppKit/AppKit.h>
#import <objc/runtime.h>

@interface NSApplication (GLFW_CLI_Application)
- (BOOL) setActivationPolicyToProhibited: (NSApplicationActivationPolicy) activationPolicy;
@end

@implementation NSApplication (GLFW_CLI_Application)

+ (void) load {
    Method original = class_getInstanceMethod(self, @selector(setActivationPolicy:));
    Method swizzled = class_getInstanceMethod(self, @selector(setActivationPolicyToProhibited:));
    method_exchangeImplementations(original, swizzled);
}

- (BOOL) setActivationPolicyToProhibited: (NSApplicationActivationPolicy) activationPolicy {
    // The following will actually call the original setActivationPolicy: method because they were switched
    [self setActivationPolicyToProhibited: NSApplicationActivationPolicyProhibited];
}

@end

My use case was a purely command line program that uses OpenGL, so you may want to use NSApplicationActivationPolicyAccessory instead of NSApplicationActivationPolicyProhibited.

If anyone is wondering how to achieve this without modifying GLFW, I managed to do it by adding the following MM file, which spoofs the setActivationPolicy: method called in GLFW initialization:
#import <AppKit/AppKit.h>
#import <objc/runtime.h>

@interface NSApplication (GLFW_CLI_Application)
- (BOOL) setActivationPolicyToProhibited: (NSApplicationActivationPolicy) activationPolicy;
@end

@implementation NSApplication (GLFW_CLI_Application)

+ (void) load {
    Method original = class_getInstanceMethod(self, @selector(setActivationPolicy:));
    Method swizzled = class_getInstanceMethod(self, @selector(setActivationPolicyToProhibited:));
    method_exchangeImplementations(original, swizzled);
}

- (BOOL) setActivationPolicyToProhibited: (NSApplicationActivationPolicy) activationPolicy {
    // The following will actually call the original setActivationPolicy: method because they were switched
    [self setActivationPolicyToProhibited: NSApplicationActivationPolicyProhibited];
}

@end

My use case was a purely command line program that uses OpenGL, so you may want to use NSApplicationActivationPolicyAccessory instead of NSApplicationActivationPolicyProhibited.


L4 policies need FromEndpoints to work correctly

If you specified an L4 Policy and you don't specify the L3 FromEndpoints the connectivity with them will not work correctly.
Policy.json
{
  "apiVersion": "cilium.io/v2",
  "kind": "CiliumNetworkPolicy",
  "metadata": {
    "name": "4d088f48",
    "test": "L3:No Policy L4:Ingress Port 80 TCP L7:No Policy"
  },
  "specs": [
    {
      "EndpointSelector": {
        "matchlabels": {
          "id": "4d088f48-d04ab55f"
        }
      },
      "Ingress": [
        {
          "ToPorts": [
            {
              "Ports": [
                {
                  "port": "80",
                  "protocol": "TCP"
                }
              ]
            }
          ]
        }
      ],
      "Egress": null
    }
  ]
}

The policy trace looks good but the connectivity is not working
Logs:
endpoint_list.txt
monitor.txt
trace.txt
pods_yaml.txt
policy_json.txt

In addition:
We always  need an fromEndpoint in the policy. Just specifying L4 policy like toPorts does not imply that L3 will allow all L3 traffic.
This can be bypassed by putting an empty fromEndpoint L3 rule.
For example:
Just with toPorts rule and no fromEndpoints:
root@k8s2:/# cilium monitor --related-to 53828
Listening for events on 2 CPUs with 64x4096 of shared memory
Press Ctrl-C to quit
xx drop (Policy denied (L3)), to endpoint 53828, identity 400->399: <IP_ADDRESS>:55668 -> <IP_ADDRESS>:80 tcp SYN
xx drop (Policy denied (L3)), to endpoint 53828, identity 400->399: <IP_ADDRESS>:55668 -> <IP_ADDRESS>:80 tcp SYN
xx drop (Policy denied (L3)), to endpoint 53828, identity 400->399: <IP_ADDRESS>:55668 -> <IP_ADDRESS>:80 tcp SYN

But the policy trace shows that this should actually we allowed:
root@k8s2:/# cilium policy trace --src-identity 400 --dst-identity 399 --dport 80
----------------------------------------------------------------
Tracing From: [k8s:id=4d088f48-83e4f98d, k8s:io.kubernetes.pod.namespace=default, k8s:zgroup=4d088f48] => To: [k8s:zgroup=4d088f48, k8s:id=4d088f48-d04ab55f, k8s:io.kubernetes.pod.namespace=default] Ports: [80/ANY]
* Rule {"matchLabels":{"any:id":"4d088f48-d04ab55f","k8s:io.kubernetes.pod.namespace":"default"}}: selected
1/5 rules selected
Found no allow rule
Label verdict: undecided

Resolving egress port policy for [k8s:id=4d088f48-83e4f98d k8s:io.kubernetes.pod.namespace=default k8s:zgroup=4d088f48]
0/5 rules selected
Found no allow rule
L4 egress verdict: undecided

Resolving ingress port policy for [k8s:zgroup=4d088f48 k8s:id=4d088f48-d04ab55f k8s:io.kubernetes.pod.namespace=default]
* Rule {"matchLabels":{"any:id":"4d088f48-d04ab55f","k8s:io.kubernetes.pod.namespace":"default"}}: selected
    Allows Ingress port [{80 TCP}]
      Found all required labels
1/5 rules selected
Found allow rule
L4 ingress verdict: allowed

Final verdict: ALLOWED

We can bypass this by adding something like:
"ingress": [{
        "fromEndpoints": [
            {}
        ]
    }]

This will then allow all L3 traffic and the decision to deny/allow will then depend on the L4 rule.

This is a duplicate of #1955.


pip install vital_sqi

Hello
I want to use the vital_sqi package but I couldn't install it. would you please help me?

Hi,
We are going to upload this into PyPi soon. At the moment, you can install the package by cloning the src code and install it locally
git clone https://github.com/meta00/vital_sqi
cd vital_sqi
pip install -e .

the package docs can be found at https://vitalsqi.readthedocs.io/en/latest/

The package is available now at PyPI


Fuzzy search icon is visible in Go to Symbol view

Type: Bug
Fuzzy search icon is visible in Go to Symbol view (Shift + CMD + O) which on press opens terminal recent search with fuzzy search. I think that button should be excluded from Go to Symbol view and be visible only in terminal recent search view.
VS Code version: Code 1.73.1<PHONE_NUMBER>f055b99068d3688932416f2346dd3b, 2022-11-09T02:22:48.959Z)
OS version: Darwin arm64 22.1.0
Go to Symbol view

Terminal run recent command view

Seems like after Terminal Run Recent Command the icon is not cleared and shows up in any command palette entry


Let users set the name of the output files

Currently chainFile does this for the MCMC chains, but it would be nice to make this an attribute of approxposterior.approx.ApproxPosterior for all associated outputs.

Good catch! I removed the parameter chainFile and replaced it with runName where runName is the generic prefix for all cached files, i.e. those written when cache == True.  The change is on the dev branch and will be migrated to master shortly.


vtex_c files which contain TGA compressed with DXT5 have incorrect colors when decompressed

After some testing and research, I've found that the vtex_c files which are incorrectly colored on extraction are TGA files compressed with DXT5 and possibly in YCoCg colorspace.
Looking at the REDI tab reveals:
CResourceString m_String = "Texture Compiler Version Image YCoCg Conversion"
This is a bit out of my league. I'm not sure if Valve's texture compiler is converting to YCoCg colorspace prior to compression. Maybe that means it needs to be read out as YCoCg and converted to RGB during decompression?
Github doesn't support attaching vtex_c, but here's a test file that you can see. https://drive.google.com/file/d/0B7o2acNuwX44X01LZnVUeFZfX2c/view?usp=sharing
Attached to this issue is the results of decompressing the file linked above.

Part of the problem is the use of alpha, and ValveResourceViewer has a white background (dota always has a black background).  But there is still a colour issue.

The alpha channel seems off in addition to the colors. I saved it out of ValveResourceViewer as a png and viewed it in Paint.NET. Colors and alpha looked weird there as well. I played around with converting between colorspaces with ImageMagick, but I don't think it supports YCoCg.

There has to be some information besides compiler identifier stored for this. Have you tried finding a DXT5 file with RGB color scheme, if one exists?

I did look but only on a limited (manual) basis. I might try to create something that goes through the vpk and checks for the compression and color spaces automatically.

Some info from this thread which might be relevant: http://dev.dota2.com/showthread.php?t=182677&page=2

Okey.

Good news. The format useds definitely YCgCo (https://en.wikipedia.org/wiki/YCgCo). Ive managed to compile a YCgCo formatted image using its Valve-spinoff, and my Dota 2 client displayed it correctly. The schema Valves usings the following: R: Co G: Cg B: Edit: Nope, its not Alpha. Its .. something. Cant discern what, tho.
A: Y

@babelshift Could you attach a screenshot showing how your attached texture should look? If you can't do with provided texture in first post, you can find another one.

Here's the best I could find of it.

Do you mind finding another tga example (with ingame screenshot) in dota files?

Here's a file from \steamapps\common\dota 2 beta\game\dota\pak01_dir.vpk.
Path in VPK: \panorama\images\econ\announcer\announce_axe_png.vtex_c
In Game:

Extracted:

The aspect ratio seems wrong on this one when extracted as well. Extracted is a 256x256 square, but the in game is a wide ratio.

I don't have dota installed at the moment, could you attach it please?

GitHub doesn't let me attach non-images, so here's a link to it on my Google Drive.
https://drive.google.com/file/d/0B7o2acNuwX44NmVwMHNvVm9lTDQ/view?usp=sharing

Well I believe I fixed the colors.
Diff:
@@ -248,6 +248,16 @@ private static void DecompressBlockDXT5(int x, int y, int width, byte[] blockSto
                             break;
                     }

+                    int co = finalColor.R - 128;
+                    int cg = finalColor.G - 128;
+
+                    finalColor = Color.FromArgb(
+                        finalAlpha,
+                        ClipColor(finalAlpha + co - cg),
+                        ClipColor(finalAlpha + cg),
+                        ClipColor(finalAlpha - co - cg)
+                    );
+
                     if (x + i < width)
                     {
                         image.SetPixel(x + i, y + j, finalColor);
@@ -256,5 +266,16 @@ private static void DecompressBlockDXT5(int x, int y, int width, byte[] blockSto
             }
         }
         #endregion
+
+        private static int ClipColor(int a)
+        {
+            if (a > 255)
+                return 255;
+
+            if (a < 0)
+                return 0;
+
+            return a;
+        }
     }
 }

I integrated your diff and can confirm the better colors. I wasn't happy with the diff so I noticed in the ffmpeg functions that an alpha of 255 is used when scaling == 1. Since your diff used b >> 3 as the scaling factor, which is also used when scaling == 1, I decided to override the finalAlpha with 255 to match. That produced the attached image, which appears to be perfect to me.

And here's the announcer pack image, which also appears identical to the ingame shot above. However, the aspect ratio is still off (haven't addressed that yet).

is ingame
is ValveResourceViewer before @xPaw's diff
Using @xPaw's diff
is ValveResourceViewer respecting Alpha
is ValveResourceViewer with alpha hardcoded to 0xFF

Interesting. So the image isn't actually transparent?


Tooltip on mouse over

It would be great to show a full tab title content on the mouse over.

These are two different tabs with two different tab titles, but without seeing the full tab title, it is hard to see which is which.

Thanks for the suggestion, it's definitely useful. Will be adding it in the next release.

This was added a while back.


Split the content of packages?

Right now packages has over 50k entries, github truncates the view and it can be hard to navigate. Would it help to split the content of that folder into individual folders? like A-Z or even more? and then put the packages on the folder that matches their first letters?
Looks like given the way the registry works this wouldn't be super compatible? just wondering.

Yep, I think the only (and important) thing preventing this is that older Bower versions use /packages/<name> as the registry endpoint. Therefore if we moved the packages into sub-folders, we'd lose backwards compatibility. If we keep it like it is, you should be able to just point to this repo.
I also dunno if there are many cases in which one wants to navigate the repo, as we have migrations for changes. However if you really have to, you could also use GitHub's search, which pretty neat when you know what you're looking for: https://github.com/bower/components/find/master 😉

Yes, exactly. The structure represents what current Bower versions expect when fetching from registry. We cannot namespace files by anything, or append .json to files


Warnings in vendor.[hash].js from Uglify.js

Npm run deploy produces these warnings, which start from this:
WARNING in vendor.3a656842b4a8556239e3.js from UglifyJs
Condition always false [./~/fbjs/lib/invariant.js:26,0]
Dropping unreachable code [./~/fbjs/lib/invariant.js:27,0]
Condition always false [./~/fbjs/lib/warning.js:25,0]
Dropping unreachable code [./~/fbjs/lib/warning.js:26,0]
Condition always false [./~/react/lib/ReactMount.js:119,0]
....
The ffc1e42 tree, which is the last merge I did on my project doesnt have these warnings.
Is this Koa-related issues? The app (the build one from dist folder) seems to be working fine though. I tried merging it with my project, and it seems to be ok too. Im just concerned with these warnings when I deploy my project on the server.
Is it safe to ignore these warnings and just go ahead and merge the latest commit to my project?

These are just standard warnings from UglifyJS letting you know that it's removing unused code from the project. You can configure it to suppress these warnings, but they are not anything to worry about.
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      }
    }),

Thanks for the quick response!


wamr: Add new option to enable quick aot entry

Summary
wamr: Add new option to enable quick aot entry
WAMR side: https://github.com/bytecodealliance/wasm-micro-runtime/pull/3040
Impact
No.
Testing
CI

please add a commit message

I guess this change is simple enough, the commit "title" can represent it clearly, and help info in change is also complete, should we dup it in commit message body?

please add a commit message

I guess this change is simple enough, the commit "title" can represent it clearly, and help info in change is also complete, should we dup it in commit message body?

it is a good practice to add it even on small commits

it is a good practice to add it even on small commits
OK


Upgrade nestjs ^8.0.0 and fireorm ^0.23.3

A fresh NestJS project created by nest-cli depends on ^8.0.0
Meanwhile the latest release version of fireorm is 0.23.3

Or I can do that, if you prefer)

Change has been made. Feel free to kick off those workflows again.

Tests were still failing so I upgraded the whole library using create-ts-lib-gh.
Peer deps versions should be fixed in 1.1.0


qubit hamiltonian creation

Hello,
I have a question concerning 'qml.Hamiltonian' implementation.
When I try to create hamiltonian using 'H=qml.Hamiltonian(coeffs, obs)', I have an error 'AttributeError: 'Hamiltonian' object has no attribute 'name''.
Here is the snippet reproducing the error:
dev = qml.device('default.qubit', wires=3)
coeffs = np.array([0.2, 0.9, 0.3])

obs= [qml.PauliX(0) @ qml.PauliZ(1) @ qml.PauliX(2),
qml.PauliX(0) @ qml.PauliX(2),
qml.PauliZ(0) @ qml.PauliZ(1) @ qml.PauliZ(2)]

H=qml.Hamiltonian(coeffs, obs)
@qml.qnode(dev)
def circuit(params):
    qml.CNOT(wires=[0, 2])
    qml.RY(params[0], wires=0)
    qml.RY(params[1], wires=1)
    qml.RY(params[2], wires=2)

    return qml.expval(H)

params=[0.2,0.2, 0.2]
print(circuit(params))

If I replace by 'return qml.expval(obs[0])' within the function "circuit", it is working.
However, for example 'return 0.2*qml.expval(obs[0])' gives an error.
Thank you in advance.
PS. I do not actually know it is a bug or not. I suppose that I do not use Pennylane properly .

Hi @Chapa1! Thanks for reporting this --- using the PennyLane qml.Hamiltonian object is not currently supported within QNodes; however this is something we will look into supporting.
In the meantime, what you can do is create a collection of QNodes, each one corresponding to an observable in your obs list, and then perform the dot product with the coefficients:
dev = qml.device('default.qubit', wires=3)
coeffs = np.array([0.2, 0.9, 0.3])

obs = [qml.PauliX(0) @ qml.PauliZ(1) @ qml.PauliX(2),
qml.PauliX(0) @ qml.PauliX(2),
qml.PauliZ(0) @ qml.PauliZ(1) @ qml.PauliZ(2)]

def ansatz(params, **kwargs):
    qml.CNOT(wires=[0, 2])
    qml.RY(params[0], wires=0)
    qml.RY(params[1], wires=1)
    qml.RY(params[2], wires=2)

qnodes = qml.map(ansatz, obs, dev)
result = qml.dot(coeffs, qnodes)

params=[0.2,0.2, 0.2]
print(result(params))

This method has a few advantages; since we are creating 3 qnodes, one for each observable,
>>> len(qnodes)
3
>>> qnodes[0](params)
0.03868274073289092

we have the ability to distributed them across three QPUs at the same time (if available).
Note: feel free to check out our discussion forum for any additional PL questions!

I have another issue about VQE.
Here I create curcuit
dev = qml.device('default.qubit', wires=3)
coeffs = np.array([0.2, 0.9, 0.3])

obs = [qml.PauliX(0) @ qml.PauliZ(1) @ qml.PauliX(2),
qml.PauliX(0) @ qml.Identity(1) @ qml.PauliX(2),
qml.PauliZ(0) @ qml.PauliZ(1) @ qml.PauliZ(2)]

def ansatz(params, **kwargs):
    qml.CNOT(wires=[0, 2])
    qml.RY(params[0], wires=0)
    qml.RY(params[1], wires=1)
    qml.RY(params[2], wires=2)

def circuit(params):
    qnodes = qml.map(ansatz, obs, dev)
    result = qml.dot(coeffs, qnodes)
    return result(params)

and implement optimization procedure
opt = qml.GradientDescentOptimizer(stepsize=0.5)

params=[1.,0.01, 2.]
for i in range(50):
    params = opt.step(circuit, params)

    if (i + 1) % 5 == 0:
        print(circuit(params))

print('parameters=',params)
print('expectation=', circuit(params))

the result is -1.099 instead of an exact -1.4
H_matrix=coeffs[0]*obs[0].matrix+ coeffs[1]*obs[1].matrix+coeffs[2]*obs[2].matrix
np.linalg.eigvals(H_matrix)

gives [ 1.4, -0.8,  0.4, -1. ,  0.8, -1.4,  1. , -0.4]
I tried various circuits and initial parameters, but the result is the same.  I didnt manage to use

https://pennylane.readthedocs.io/en/stable/code/api/pennylane.VQECost.html?highlight=vqecost#pennylane.VQECost

Hi @Chapa1, closing this issue for now, as it is not so much a bug rather than the qml.Hamiltonian class cannot be used in QNodes. Let me know if you have any further questions!

Dear developers,
I have a similar question about creating Hamiltonian but for CV variables.
Is it possible using Pennylane (or StrawberryFields) to construct
CV-observables Obs1=a n_0 n_1+b n_1n_2 and Obs2=a q_0 q_1+b p_0p_1 where n_0, q_0, p_0 are number, position and momentum operators for mode-0 and a,b are constants? If yes, could you please send me an example?
Thank you!
I managed to create only a n_0+b n_1 term (see snippet).
qml.NumberOperator(0,1) and qml.NumberOperator(0)@qml.NumberOperator(0)  not working
def quantum_function(params, wires, **kwargs):
    qml.FockState(3, wires=0)
    qml.FockState(2, wires=1)

obs_list = [qml.NumberOperator(0), qml.NumberOperator(1)]

dev_fock = qml.device('strawberryfields.fock', wires=2, cutoff_dim=10)

qnodes = qml.map(quantum_function, obs_list, dev_fock, measure="expval")
coeffs=np.array([2.,1.])
qml.dot(coeffs, qnodes)(1.0)

Hi @Chapa1, while tensor products of CV observables is not currently available, this is a feature we are working on now!

Hello @josh146,  When approximately this feature be available? In this case could you please inform me about it. Thank you!


v1.8.1

Bump async-task to v4.4.0. (#90)
Replace some unnecessary atomic operations with non-atomic operations. (#94)
Use weaker atomic orderings for notifications. (#95)
When spawning a future, avoid looking up the ID to assign to that future twice. (#96)

Use weaker atomic orderings for notifications.

I haven't seen the relevant code yet, but notifications are usually preferable to having SeqCst semantics, does this change that semantics?
https://docs.rs/event-listener/latest/event_listener/trait.IntoNotification.html#method.relaxed

Usually, notifications emit a SeqCst atomic fence before any listeners are woken up. This ensures that notification state isn’t inconsistent before any wakers are woken up.

I haven't seen the relevant code yet, but I think notifications are usually preferable to having SeqCst semantics, does this change that semantics? https://docs.rs/event-listener/latest/event_listener/trait.IntoNotification.html#method.relaxed

The actual notification data structure (the Sleepers structure in this instance) is secured by a Mutex. So by my count the current SeqCst ordering is redundant, as:

The Release ordering of releasing the Mutex guard should ensure that the store to notified is kept ordered when it is stored.
The AcqRel ordering of swapping out the notified atomic shouldn't be problematic as it is synchronized with the Release ordering of setting the value to true.

In addition, AtomicWaker uses similar orderings, so I think it should be fine.
cc @james7132, this is your change, you might have a better mental model of what's happening here.

The way that I saw it was that it was more acting as an early-out in the case there are multiple notifications going off while a notified thread isn't fully awake yet. In that case, the Acquire and Release orderings are sufficient to act as a lock, in the exact way that @notgull covered. If that's the wrong mental model for that should be working, then it should be reverted.

Given the new changes on master I've elected to make this a minor version bump.


EN is always default language

Vue.use(MultiLanguage, {
	default: 'ua',
	ru: {
		hi: 'тест',
		welcome: 'Bem-vindo, {name}'
	},
	en: {
		hi: 'Hello',
		welcome: 'Welcome, {name}'
	},
	ua: {
		hi: 'привіт',
		welcome: 'Welcome, {name}'
	}
});

console.log(this.language);

writes: en

anyway thanks. App at now is support multilanguage

I rewrote the plugin, to give more performance and improve usage. In this new version (> 4) I applied its issue.
But if you want to use version 3, in App.vue set the language again by changing the language variable. This problem is due to the fact that it uses the same domain (localhost) in different apps, so it saves the language as one.


A Virus?

Since yesterday, Eset Endpoint Security started showing me an alert about Blazor ApexCharts nuget.
Here are the details:
.nuget\packages\blazor-apexcharts\3.4.0\lib\net6.0\Blazor-ApexCharts.dll;
Suspicious Object;
Cured by deleting;
Event occurred while trying to access file by using: C:\Windows\explorer.exe;

Hi, not sure what could be the issue here.
Do you have any more details?

I am also not sure and I don't have more details. Maybe ESET had a false positive. Nothing else happened after that one alert. Just wanted

I've the same problem Only with version 3.4.0 and .NET 6. Other versions and TFM's are fine.

Clean up


Server doesn't respond for some db items

[negroni] Completed 0  in 89.205858ms
Notice the 0, where the HTTP code should be.
This happens when I try to read and encode some specific objects from the database, about which I see nothing special from an initial glance.

@abhishekchoudhary For the sake of clarity: negroni knows nothing about, and does not try to do anything with databases or data stores or backend services, etc..  That being said, are you able to provide some example code?

@abhishekchoudhary I'm going to close this out for now, but please yell if you'd like it reopened 😃


Opprette dct:isPartOf

#52
"Range: dcat:Catalog
This property refers to a related Catalogue in which the described Catalogue is physically or logically included."

Ble oppdatert i versjon 1.1


wires: 添加mtu属性

这个 PR 实现什么功能/修复什么问题:
wires: 添加mtu属性
hostman: rootfs: 网络配置添加MTU支持

是否需要 backport 到之前的 release 分支:
NONE

/area region
/area host
/cc @wanyaoqi @swordqiu

Codecov Report

Merging #2104 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #2104      +/-   ##
=========================================
- Coverage    7.16%   7.16%   -0.01%
=========================================
  Files         445     445
  Lines       69552   69579      +27
=========================================
+ Hits         4982    4983       +1
- Misses      64157   64183      +26
  Partials      413     413

Flag
Coverage Δ

#aFlag
7.16% <0%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/hostman/guestfs/fsdriver/windows.go
0% <0%> (ø)
:arrow_up:

pkg/compute/models/wires.go
2.05% <0%> (-0.03%)
:arrow_down:

pkg/hostman/guestfs/fsdriver/nicteaming.go
0% <0%> (ø)
:arrow_up:

pkg/compute/models/guestnetworks.go
0.22% <0%> (-0.01%)
:arrow_down:

pkg/hostman/guestfs/fsdriver/linux.go
0% <0%> (ø)
:arrow_up:

pkg/appsrv/response.go
66.15% <0%> (-3.08%)
:arrow_down:

pkg/util/rbacutils/rbac.go
74.3% <0%> (+0.92%)
:arrow_up:

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 ce0809c...cbb28ca. Read the comment docs.

@Zexi 泽玺看一下cni插件里对mtu的支持

/lgtm

/approve


Utilizing the VOS for small dimension datasets

Hi,
I kindly want to congratulate you on your new paper, VOS!
I am very intrigued to use it for my current dataset, which is small in size (total of 1000 datapoints for supervised data) and dimension (1x7 shaped tensors) stored in .txt files.
I have two sources for my supervised dataset (two datasets generated in different days by different people (batch effect)).
Therefore, the density distribution for the same labels coming from two sources are unfortunately different.
And I do not know where the noise is.
I was trying to overlap their density distribution by scaling one of them to the other, however after seeing your VOS, I have an idea of generating data based on their OOD data and use it in training..
Do you think I can utilize your VOS for my goal?
I appreciate your insights!
Thank you!

hello, @kaltinel , thanks for the interest in vos, i think if you are targetting at the classification task and the ood generalization task, you can probably try to using vos for data augmentation purpose and see how sampling from the low-density area helps the ood generalization task. I am not sure about the performance but you can try it and see the accuracy.