feat: Improve Nix support for Typescript, Tauri

Extracted from my PR comments on #5222.
Current behavior
The current implementation of our shellHook performs certain operations imperatively using shell logic, and also (re)installs the Tauri CLI unconditionally when entering our default devShell - which will silently pick up new versions any time the Tauri project publishes a new crate version in their 2.0 series.
Proposed changes
I've moved more of shellHook into repeatable Nix content, and packaged the latest 2.0 alpha of tauri-cli using the standard Rust packaging machinery from Nixpkgs.
I've also corrected some Typescript-related setup code that was actually inoperable and not accomplishing what it intended to. The reason we can use someVersion = "1.2.3" for our Rust/Elixir definitions is because our flake uses specific community Nix library code to make precisely versioned Nix derivations available for consumption. That isn't a property of vanilla nix/nixpkgs, which generally only packages one version or in some cases only distinguishes between major versions.
We don't have such a Nix library for Typescript/Node/NPM packages, so I used the versioned Node package trees in Nixpkgs and a standard override. Crucially, overriding only the version attribute of a derivation does not meaningfully change the content of the result, except to alter its metadata. The existing code on develop was still producing whatever version of pnpm is in nixpkgs according to our flake.lock, and superficially labeling it as an older revision.
Currently unaddressed as of creating this PR is the override of HOME inside the shellHook. This is fairly problematic for anyone who runs software that looks into the XDG directories for configuration/state, such as anyone who uses nix-direnv or who runs their $EDITOR, ssh, git, etc. from inside nix develop (as I personally do). I need additional information about the original motive to understand what that line is solving for, so I can replace it with a less disruptive approach. That can be added to this PR or addressed separately.

Checks

[X] All commits in this Pull Request are signed and Verified by Github.
[X] All commits in this Pull Request follow the Ockam commit message convention.
[X] I accept the Ockam Community Code of Conduct.
[X] I have accepted the Ockam Contributor License Agreement by adding my Git/Github details in a row at the end of the CONTRIBUTORS.csv file in a separate pull request to the build-trust/ockam-contributors repository. The easiest way to do this is to edit the CONTRIBUTORS.csv file in the github web UI and create a PR, this will mark the commit as verified.

@shanesveller I also don't see why the HOME change is necessary. Let's remove it. @mrinalwadhwa does that work for you?

I was playing around with what using nix in our CI would look like:
In CI, I think:

it should completely ignore the host machine
we need to identify things that should be cached.

Setting HOME and running nix develop ./tools/nix --ignore-environment gave me a home directory that seems mostly cacheable.


Upgrade addon to eslint 8

@NullVoxPopuli  saw this comment from you but unsure what action would be needed
https://github.com/embroider-build/addon-blueprint/blob/main/index.js#L74

@NullVoxPopuli  FYi resolved the conflicts on this pr following the merge of the other dep updates

most excellent!

looks like the prettier config may need a tweak?


Keep getting a unknown error

Keep getting this error
discordFS >>> booting discordFS +0ms

  app === APP CRASHED :: UNKNOWN ERROR ===
  app  TypeError: Cannot read properties of undefined (reading 'type')
    at /data/data/com.termux/files/usr/lib/node_modules/@forscht/ddrive/src/discordFS/index.js:78:94                                                at arrayAggregator (/data/data/com.termux/files/usr/lib/node_modules/@forscht/ddrive/node_modules/lodash/lodash.js:511:34)
    at Function.groupBy (/data/data/com.termux/files/usr/lib/node_modules/@forscht/ddrive/node_modules/lodash/lodash.js:4885:16)                    at DiscordFS.load (/data/data/com.termux/files/usr/lib/node_modules/@forscht/ddrive/src/discordFS/index.js:78:39)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async startApp (/data/data/com.termux/files/usr/lib/node_modules/@forscht/ddrive/bin/ddrive:62:5) +0ms

Running it in termux
Node version: v16.18.1
NPM version: 8.19.2

It worked before, I had ~16 gb stored.
I had this issue before but it somehow fixed it self by me uninstalling and switching back and forth between the 2 versions of node that termux provides, reinstalling ddrive each time

Hi @snipernubz Delete all the messages from channel which is not sent by the bot and it will work.

Yea that fixed it, shame I'm gonna have to reupload everything, be nice if there was a way to know what the offending file/message was

Yea that fixed it, shame I'm gonna have to reupload everything, be nice if there was a way to know what the offending file/message was

you can edit ddrive's code to console.log the message that is causing the error, so that you can find it and delete it without nuking the entire channel and all your uploaded files. this is how i fixed my issue (#40)

Fixed in version 3.7.1 #56


hasheddan reporting for duty

Hey folks! Would love to be involved here. I currently primarily work on the crossplane project and upstream k8s. I can help with development, planning, testing, etc. I will mostly likely be more effective early on contributing to operator / CRD side of things, but have some C/C++ background and am happy to do as much as I can on the plugin side as well.

Welcome to the party!
I am going to spend some time getting a prototype and blog set up - and then it should be a party for others to try it out and contribute back.
If you want to start with the CRD work please feel free - we literally have a white canvas to work with.

@kris-nova sounds great 👍


chore(deps) bump grpcurl from 1.8.5 to 1.8.6

Summary
Bumps the development dependency.
Changes in Command-line tool

Some bugs have been addressed in the library used to parse proto source files.
Previously grpcurl would accept proto source files that could not actually be
compiled with protoc. The converse could also happen: grpcurl could reject some
proto source files that could successfully be compiled with protoc. More details
can be found in the release notes for the changes to the protoparse library,
versions v1.10.2 and v1.10.3.
Some implementations of the server reflection service have been observed to
return multiple (even superfluous) file descriptors, in response to requests made
by grpcurl. These extra files, if not returned in a particular order, would cause
grpcurl to report an error that the service or method to be invoked could be not
be resolved. The reflection client in grpcurl is now more robust to this condition
and can handle responses with file descriptors in any order, so it should be
interoperable with a larger variety of servers.
When a request message includes a field of type google.protobuf.Value and
a value for that field that was a JSON array, grpcurl would incorrectly interpret
the JSON array as if it were a single atomic value, the last value that was in the
array. This has been fixed.
When a response message includes non-printable characters or code points outside
the ASCII 7-bit range in the name of a field in a JSON object, it could be
improperly encoded with escape characters that are not valid JSON. Standard
tools/libraries could then fail to parse the JSON output from grpcurl. This has
been fixed.

@bungle Tests seems to be failing after the bump, could you investigate?

@bungle @dndx
The output of the new grpcurl to stdout has changed, so our test fails. Maybe we need to change the tests?
My opinion is that even if the status code is 4xx, the response header should still be output. Is there a flag to hold these outputs? I have not found it. This may be a tiny bug in the grpcurl-1.8.6.

For grpcurl-1.8.5, it outputs the response header and the keyword Code: ResourceExhausted
$ bin/grpcurl -plaintext  -proto ./spec/fixtures/grpc/hello.proto -v  <IP_ADDRESS>:9002 hello.HelloService.SayHello
Resolved method descriptor:
rpc SayHello ( .hello.HelloRequest ) returns ( .hello.HelloResponse );

Request metadata to send:
(empty)

Response headers received:
(empty)

Response trailers received:
content-length: 0
content-type: application/grpc
date: Fri, 01 Apr 2022 04:27:13 GMT
ratelimit-limit: 6
ratelimit-remaining: 0
ratelimit-reset: 47
retry-after: 47
server: kong/2.8.0
x-kong-response-latency: 0
x-ratelimit-limit-minute: 6
x-ratelimit-remaining-minute: 0
Sent 0 requests and received 0 responses
ERROR:
  Code: ResourceExhausted
  Message: ResourceExhausted

For grpcurl-1.8.6, neither of these things are being output.
$ bin/grpcurl -plaintext  -proto ./spec/fixtures/grpc/hello.proto -vv  <IP_ADDRESS>:9002 hello.HelloService.SayHello

Resolved method descriptor:
rpc SayHello ( .hello.HelloRequest ) returns ( .hello.HelloResponse );

Request metadata to send:
(empty)

Response headers received:
(empty)

Response trailers received:
(empty)
Sent 0 requests and received 0 responses
ERROR:
  Code: Unavailable
  Message: unexpected HTTP status code received from server: 429 (Too Many Requests)


Don't rely on implementation-defined behaviour of std::realloc(0)

Found via fuzzing. std::realloc(0) may or may not return a nullptr, and if it does return a nullptr, it may or may not free the underlying memory. Current MemoryBuffer code looks like it either didn't anticipate a newSize of 0 being passed (because it would throw std::bad_alloc), or it was expecting that std::realloc would not return a nullptr in that case. This was effectively leading to a double-free depending on the standard library.
Note: It is debatable if the memory should be freed or not.
As a bonus, this PR also removes non-standard behaviour from fuzzing.cpp.

Here are some example files that caused the double-free to happen. ancient-dblfree.zip


how to use custom arguments?

Hello how exactly can i use custom arguments?
i was doing await ffmpeg.ExecuteAsync(args) where args are arguments which normally work when writing them in concole after ffmpeg.exe
When i start it just does nothing. Also if i write a total nonsene argument, it does not throw an error or something, it just does nothing :/

Want to know this aswell. I am not able to make something working it just skips over it

sorry for the late response.
There is a function in Engine.cs which takes custom arguments:
public async Task ExecuteAsync(string arguments, CancellationToken cancellationToken = default)

The FFMpegArgumentBuilder will then just return them as arguments for the FFMpegProcess.
The Process should crash if arguments are nonesense.
Has anyone a reproducible example for me to check this out?

Here is a working example for custom arguments: https://github.com/cmxl/FFmpeg.NET/issues/5#issuecomment-487175131


Move language container fixtures to own repository

Copies of the language container fixtures currently exist in multiple repositories of ours. It would be preferable to move them to their own repository, so we only use one centralized version.

Create new repository
Move files
Make sure all Projects use the files from the repository

Obsolete.


fix: use log-level fix from ape

seeing if my loglevel fix works, and then if it does, can replace with ape 0.8.14

Verified, https://github.com/ApeWorX/ape/pull/2249 merged but not released


memory usage after running scipy.signal.fftconvolve (possible memory leak?)

Consider the memory usage of the following code after executing each statement:
import numpy
import scipy.signal
import gc

# memory at this point is ~35mb

a = numpy.ones(10**7)
b = numpy.ones(10**7)

# memory at this point is ~187mb

c = scipy.signal.fftconvolve(a, numpy.flipud(b), mode="full")

# memory usage at this point is 645mb
# given that a,b,c take up about 305mb in total, this is much
# larger than expected

# If we delete a,b,c and garbage collect...

del a,b,c
gc.collect()

# ...the memory usage drops to ~340mb which is a drop of 305mb
# (as expected since that is the size of what we deleted)
# but the remaining memory usage is still 340mb
# which is much larger than the starting value of 35 mb

Is this extra several hundred mb of memory usage a bug?
Platform:

CPython 3.5.1 x64
Scipy 0.17.0 (Christoph Golke's package)
Numpy+MKL 1.11.0rc1 (Cristoph Golke's package)
Windows 8.1 x64

Just did some tests for MSNoise (https://github.com/ROBelgium/MSNoise/pull/73/commits/887ce316544e0bb8eab33b140adbc25fccbe86bb) and, actually, it's not a memory leak or a bug... it's a feature of the caching of scipy.fftpack.
This would "garbage-collect" that cache (in scipy 0.18+):
import scipy.fftpack._fftpack as sff

def clean_scipy_cache():
    sff.destroy_zfft_cache()
    sff.destroy_zfftnd_cache()
    sff.destroy_drfft_cache()
    sff.destroy_cfft_cache()
    sff.destroy_cfftnd_cache()
    sff.destroy_rfft_cache()
    sff.destroy_ddct2_cache()
    sff.destroy_ddct1_cache()
    sff.destroy_dct2_cache()
    sff.destroy_dct1_cache()
    sff.destroy_ddst2_cache()
    sff.destroy_ddst1_cache()
    sff.destroy_dst2_cache()
    sff.destroy_dst1_cache()
``

Hm, that is probably also the explanation for https://github.com/scipy/scipy/issues/1879.

and linked to this PR ? https://github.com/numpy/numpy/pull/7686

Getting back to this, the fftpack caches appear to be defined here:
https://github.com/scipy/scipy/blob/master/scipy/fftpack/src/fftpack.h#L45
From a quick scan it looks like they're fixed in size. (Didn't actually test that though.) If so we might not need the NumPy changes. But perhaps it would be a good idea to make the cache-clearing functions public and give them proper documentation? If other devs feel good about that (signal people would have a better feel than me) I wonder if you (@ThomasLecocq) would be interested in a PR?

@person142 myeah, am always scared of PR'ing in such a large thing :) But I agree, making the clean functions public is one good option. Another would be to add a parameter to the (i)fft functions like cache=False?

Another would be to add a parameter to the (i)fft functions like cache=False?

Sounds reasonable to me. It seems like both (destroying cache/not caching) could be handy in different situations.

+1 for both, it seems like the maintenance overhead would be limited but the added functionality would be very useful in enough situations to justify their existence

+1 for both a cache=False argument and for adding a function to clear the cache. For an example of a useful case for cache=False, see my question on stack overflow [1]. However, I think it would also be useful to limit the size of the cache (probably both in terms of number of items and in terms of the amount of memory used, like suggested in numpy/numpy#7686).
[1] http://stackoverflow.com/questions/42654720/memory-usage-of-scipy-fftpack

any updates on this? I'm having the same problem.

any updates on this? I'm having the same problem.

It's waiting for someone to dive in and make a PR for:

adding a cache=True keyword
exposing a function to clear the cache
limiting the cache to a max size

Those 3 can be done independently if someone is interested and wants to start with a small PR/effort.

Hi,
I'm ok to start a PR on that. What is the current scipy branching model ? Should I branch of master and prepare the PR ?

Branch off master:
https://github.com/rgommers/scipy/blob/master/HACKING.rst.txt#contributing-new-code
https://docs.scipy.org/doc/numpy/dev/gitwash/development_workflow.html

I am interested in taking a stab at the issue. Where is the change needed to be made?

My comment above says that there are three things to do - you can do all of them at once, or start with a single one (doesn't matter much which one).
this comment shows private functions to clean caches. You can verify that those work, and then write a public Python function that used them under the hood. Something like def clean_cache(kind='all'): where kind can also be an individual cache for one function (e.g. 'cfft').

fftpack is now gone
@peterbell10: what's the plan for the plan cache in pocketfft?

pocketfft still uses cacheing and there isn't any way to clear it, even from the C++ side.
Improving the flexibility around plans has been discussed in #10302 but hasn't been the top priority.

@peterbell10 have you quantified the memory usage associated with the cache? If it's much smaller than what fftpack required we might be able to file this under YAGNI and close.

@mreineck has said that that are O(n) just like FFTPACK but could be reduced to O(sqrt(n)) if we want to go down that route, but it would hurt performance.

pocketfft still uses cacheing and there isn't any way to clear it, even from the C++ side.

Well, adding a function that drops all caches shouldn't be too difficult.
What can already be done now is simply running a set of 1D FFTs with lengths 1 to 16 - this will evict any large cached transforms. Won't win a beauty contest, but it works ...

@peterbell10, what do you think about this: if any pocketfft transform is called with a length of 0, the corresponding cache is cleared. (How this would be presented on the Python side can be discussed separately, I'm just thinking about C++ for the moment.)

I think making it a special case of the normal transforms is a bit of an awkward interface. If we wait for pypocketfft!28 these kinds of work-arounds won't be necessary, you could just have
get_plan_cache<pocketfft_r<double>>().clear();

Good point!


Some smaller improvements

specify min k8s version (fixes ECOPROJECT-380)
add skipRange for allowing automatic upgrades
set createdAt date dynamically
set containerImage dynamically

build jobs fails because of slight difference with generated files within Go 1.16 (in build) and 1.17 (in Openshift CI already)
will merge


@property changes behavior when using dataclass-ish classes

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I've read through the migration guide, and didn't see anything about this, so I'm not sure if this is a bug in V2, or intended changed behavior. Or...behavior that was never supported, but broke with 2.x
Example Code
from pydantic import BaseModel
from enum import Enum

class RiskRating(Enum):
    R1 = "R1"

class Risk(BaseModel):
    rating: RiskRating
    @property
    def rating(self):
        return RiskRating.R1

# Pydantic 1:
>>> r = Risk()
>>> r.rating
<RiskRating.R1: 'R1'>

# Pydantic 2:
>>> r = Risk()
>>> r.rating
<property object at 0x106e76980>

# Removing the "rating: RiskRating" line restores desired behavior

Python, Pydantic & OS Version
Pydantic 1:
             pydantic version: 1.10.11
            pydantic compiled: True
                 install path: /home/jkugler/programming/pydantic1/.venv/lib/python3.10/site-packages/pydantic
               python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
                     platform: Linux-6.5.6-76060506-generic-x86_64-with-glibc2.35
     optional deps. installed: ['typing-extensions']

Pydantic 2:
             pydantic version: 2.5.2
        pydantic-core version: 2.14.5
          pydantic-core build: profile=release pgo=true
                 install path: /Users/tek30584/repos/asset/kodiak-orchestrator/.venv.python310/lib/python3.10/site-packages/pydantic
               python version: 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-15<IP_ADDRESS>)]
                     platform: macOS-14.2-arm64-arm-64bit
             related packages: typing_extensions-4.9.0 fastapi-0.103.0 pydantic-settings-2.1.0

Related: https://github.com/pydantic/pydantic/issues/7458

Reduced reproduction:
from pydantic import BaseModel

class Risk(BaseModel):
    rating: int

    def rating(self):
        pass

print(Risk())  # rating=<function Risk.rating at 0x7fc9e0c5c8b0>

This is just equivalent to rating: int = <function>, wrapped in property() if you want.
It seems to me that the broader bug here is that default values aren't validated.

I believe we could close this one based on the outcome of the related issues: https://github.com/pydantic/pydantic/issues/7458, https://github.com/pydantic/pydantic/issues/7250


Enhancement: Apple Web App

Regarding the issue 'Apple Web App'. You might want to remove / change the status bar style that I've added accidentally. :+1:

Thanks! Fixes #803


Filtering multi values for aggregation

Aggregation Rebase. Adaptation of multi-value agitation and nesting filtering.

I pulled out all the changes to the current master version with aggregation sorting. In line with the changes, I used similar solutions for dsl context that were for sorting.

Thanks for your PR, but as I explained in the sort PR, I'm already working on your code, rebasing it, fixing it and adding tests. I will send a PR when I'm done.


More convenient transaction support

Hi,
The transaction support is not that convenient IMO. It forces pre-generation of statements with no opportunity for logic inside the transaction.
That is, AFAICT, you can not perform a select inside the transaction then conditionally issue other statements based on the result. Or in fact, issue any kind of conditional statements.
It also makes decomposition of many statements into separate functions more difficult, forcing all functions to return Statements.
eg. I can not do this:
db.transaction({
   if let user: In = users.filter(age >= 18).first {
    if user.location == location {
      // update some other table
    }
  } else {
    // do some other update
  }
})

Is there any reason a more convenient form of transaction couldn't be supported?

Closed by https://github.com/stephencelis/SQLite.swift/commit/c5881a8a67df214a2518963e7ca8eba23496d1ca


[Feature/extensions] Provide Extension API to OpenSearch

Signed-off-by: Daniel Widdis<EMAIL_ADDRESS>Description
Companion PR: https://github.com/opensearch-project/opensearch-sdk/pull/74
Extensions will report their APIs to the ExtensionsOrchestrator upon initial registration and potentially later in the Extension's lifecycle. These APIs will be registered and mapped so that when Users submit API requests they can be forwarded to the appropriate extensions.
This PR handles the communication of the REST API from the Extension to OpenSearch.   Future PRs will complete the process of registering the REST Handlers and redirecting inbound requests.
Issues Resolved
Fixes https://github.com/opensearch-project/opensearch-sdk/issues/68
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #4100 (54498ea) into feature/extensions (eba15fe) will decrease coverage by 0.09%.
The diff coverage is 68.49%.

@@                   Coverage Diff                    @@
##             feature/extensions    #4100      +/-   ##
========================================================
- Coverage                 70.66%   70.56%   -0.10%
+ Complexity                57107    57059      -48
========================================================
  Files                      4606     4608       +2
  Lines                    274633   274679      +46
  Branches                  40210    40212       +2
========================================================
- Hits                     194059   193830     -229
- Misses                    64331    64587     +256
- Partials                  16243    16262      +19

Impacted Files
Coverage Δ

.../org/opensearch/extensions/RegisterApiRequest.java
30.00% <30.00%> (ø)

...org/opensearch/extensions/RegisterApiResponse.java
44.44% <44.44%> (ø)

.../opensearch/extensions/ExtensionsOrchestrator.java
72.72% <90.90%> (+0.42%)
:arrow_up:

.../index/shard/IndexShardNotRecoveringException.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...adonly/AddIndexBlockClusterStateUpdateRequest.java
0.00% <0.00%> (-75.00%)
:arrow_down:

...readonly/TransportVerifyShardIndexBlockAction.java
9.75% <0.00%> (-73.18%)
:arrow_down:

...pensearch/client/cluster/RemoteConnectionInfo.java
0.00% <0.00%> (-68.30%)
:arrow_down:

...a/org/opensearch/client/cluster/ProxyModeInfo.java
0.00% <0.00%> (-55.00%)
:arrow_down:

.../opensearch/client/cluster/RemoteInfoResponse.java
61.53% <0.00%> (-38.47%)
:arrow_down:

...indices/readonly/TransportAddIndexBlockAction.java
20.68% <0.00%> (-37.94%)
:arrow_down:

... and 451 more

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

Gradle check is failing because we didn't merge the changes for 2.2.
* What went wrong:
Execution failed for task ':distribution:bwc:staged:buildBwcLinuxTar'.
> Building 2.2.0 didn't generate expected file /var/jenkins/workspace/gradle-check/search/distribution/bwc/staged/build/bwc/checkout-2.2/distribution/archives/linux-tar/build/distributions/opensearch-min-2.2.0-SNAPSHOT-linux-x64.tar.gz

I've merged the changes from main to feature/extensions. Could you re-base and that should get gradle green.

Precommit failing
> Task :server:compileJava
/home/runner/work/OpenSearch/OpenSearch/server/src/main/java/org/opensearch/extensions/ExtensionsOrchestrator.java:232: error: cannot find symbol
                    extensionsList.add(de);
                                       ^
  symbol:   variable de
  location: class ExtensionsOrchestrator
/home/runner/work/OpenSearch/OpenSearch/server/src/main/java/org/opensearch/extensions/ExtensionsOrchestrator.java:233: error: cannot find symbol
                    extensionIdMap.put(extension.getUniqueId(), de);
                                                                ^
  symbol:   variable de


Is this project active ?

If this project not active then what is the best project out there ?

+1

Is there a vanilla JS solution for this?


NetworkException is not defined

When running against a host that does not exist, I get an exception (tried with python2 and 3):
Traceback (most recent call last):
  File "cloudfail.py", line 130, in init
    ip = socket.gethostbyname(args.target)
socket.gaierror: [Errno -5] No address associated with hostname

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cloudfail.py", line 257, in <module>
    init(args.target)
  File "cloudfail.py", line 131, in init
    except NetworkException as net_exc:
NameError: name 'NetworkException' is not defined

Thank you for reporting this, I have not spent much time making the code, well, beautiful as some say, so will definitely include this in next update, thanks again

@lstep can you please check if resolved in commit https://github.com/m0rtem/CloudFail/commit/0a98e6b76562ee181f80a4b65b6eb9db971a2b4d


Please let the c-vars  tag on regular templates

I really like how I can put title of the page directly on c-vars of child template. I can do it on previous version on 0.9.32.
Pretty please.

Hey @bal-sm can you demonstrate the pattern a bit clearer so I can understand?

on placeholder/templates/placeholder/some_view.html:
<c-vars title="Some View" />

<c-layouts.base-with-body title={{ title }}>

{{ title }}

Wow, it's working.

</c-layouts.base-with-body>

@bal-sm I can understand that it could be helpful in cases like this but I'd rather keep the reasoning of c-vars clear, for controlling component related state. I put forward an idea to implement a pattern that contains 'stack' and 'push' tags (see here). This would allow us to control content from inside a component anywhere outside it. Vote it up to show support if you agree.


chore(storage): sstable item avg size metrics

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?

Reorganize the bloom_filter_size and file_size metrics
Add the avg_key_size and avg_value_size metrics

Checklist

~[ ] I have written necessary rustdoc comments~
~[ ] I have added necessary unit tests and integration tests~
[x] All checks passed in ./risedev check (or alias, ./risedev c)


Comments from .proto files should move over to dart

Given this enum defined in a proto file:
// Defines the response status for a IAP operation.
enum IAPResponseStatus {
    // All went well, see the other fields for response details.
    ok = 0;

    // Fatal error during the API action.
    error = 1;

    // (iOS only) Library user needs to fetch the list of products from the store first.
    emptyProductList = 2;

    // In-App purchases not available (device or policy constraints etc).
    disabled = 3;
}

Then this plugin currently generates:
class IAPResponseStatus extends $pb.ProtobufEnum {
  static const IAPResponseStatus ok = const IAPResponseStatus._(0, 'ok');
  static const IAPResponseStatus error = const IAPResponseStatus._(1, 'error');
  static const IAPResponseStatus emptyProductList = const IAPResponseStatus._(2, 'emptyProductList');
  static const IAPResponseStatus disabled = const IAPResponseStatus._(3, 'disabled');
}

However, it should generate:
/// Defines the response status for a IAP operation.
class IAPResponseStatus extends $pb.ProtobufEnum {
  /// All went well, see the other fields for response details.
  static const IAPResponseStatus ok = const IAPResponseStatus._(0, 'ok');
  /// Fatal error during the API action.
  static const IAPResponseStatus error = const IAPResponseStatus._(1, 'error');
  /// (iOS only) Library user needs to fetch the list of products from the store first.
  static const IAPResponseStatus emptyProductList = const IAPResponseStatus._(2, 'emptyProductList');
  /// In-App purchases not available (device or policy constraints etc).
  static const IAPResponseStatus disabled = const IAPResponseStatus._(3, 'disabled');
}

With gRPC  this would be very helpful to copy all the comments from rpc methods into the dart code!

Is this still considered for implementation? We are struggling with the comments not being transferred to the Dart output as well.

It would be awesome to support I agree. Currently we don't have a lot of resources, so don't expect it to happen soon.

Any news on this?

This would be a very useful feature.
I'll offer a use case I have: I generate the Selector class from the .proto file, and it's part of my package's public API. Unfortunately, I cannot add doc comments to it, because well... it's generated.
Tagging @sigurdm – I've seen you're activate on Dart related repos on dart-lang and google. I hope you can find some resources to implement this 🙏🏻

Sure, I understand.
If Google can't do this because it's not an important issue for you... is this repository accepting contributions?

I will defer to @osa1 who is working in this now.

I'd LOVE to have this, too.

Wow, awesome! Thanks!

Wow, awesome! Thanks @kevmoo!

There is some more work we could do here. Like making the comment references to other types work. Let's file separate issues for those.


Support --resolve-url-nocheck

I've come cross a very weird situation with Stylus imports, described here: https://github.com/stylus/stylus/issues/2119
@Panya says it can be fixed by using --resolve-url-nocheck instead of --resolve-url.
Could you please add an option to support this flag?

Please accept my pull request

Hey hey please accept it


Add support for tech libraries that don't have X1 filler cells

The script looks for ADK_MIN_INST_GAP, and if it exists, sets the min gap between placed cells accordingly.

This looks fine to me.


fix: Output types for evaluation results of $response.body and $request.body runtime expressions

Fixes #1068

Seems like a GH bug - the commit was actually merged


Update installation.mdx: support for proxy during install

Adding a comment about proxy support during installation to address https://github.com/microsoft/genaiscript/issues/853 .

Thanks!


File inputs are not properly displayed from all plugins

Describe the bug
Card, Hero and Container plugins does not have the correct layout on input file as it could be expected from SmartMediaField usage.
It is related to this SmartMedia issue: https://github.com/sveetch/django-smart-media/issues/12
To Reproduce

Create a plugin content with a Card, Hero or Container
The file input is working but not displayed as it should;
Save the plugin content and open it again for edition;
The file input is still not displayed as it should

Expected behavior
All input file managed with SmartMediaField should look like the preview from https://django-smart-media.readthedocs.io/en/latest/references.html#preview
Desktop (If applicable):

OS: Any
Browser: Any
Version: Any

Versions:

Python: Any supported
Django: Any supported
DjangoCMS: Any supported
cmsplugin-blocks: 1.0.0

Additional context
There is two problems here:

Plugin form miss the definition of widget in their metaclass attribute widgets , SmartMedia probably can not resolve this since it is probably related to  Django Admin/CMS plugin. We have to define this widget on plugin forms;
Once defined, the form field endorse SmartMedia widget render but it miss needed CSS+Js as it is reported in SmartMedia issue 12 (as given in introduction);
Once  asset have been forced on the plugin form, there is a problem with the widget template that miss variable(s) to be able to display the preview;

Album and Slider are not subject to this since they work a little bit differently with their plugin form.

Fixed in 1.1.0-pre.1 with an upgrade to django-smart-media>=0.3.0 to inherit from SmartAdminMixin in plugin


CreateOrUpdateEnvSecret results in secrets with incorrect values

I attempted executing the example which demonstrates the use of Actions.CreateOrUpdateRepoSecret. This worked correctly and I verified that the resulting secret value on GitHub matches the input.
I also attempted using the example code substituting Actions.CreateOrUpdateRepoSecret with Actions.CreateOrUpdateEnvSecret, modifying the code to target a test GitHub actions environment. In this case, the operation completed successfully. However, on GitHub the environment secret which was created contained the empty string as a value, as opposed to the non-empty input that I provided.

Did you also change out the GetRepoPublicKey call with GetEnvPublicKey?
Also, you said it completed successfully. Are you going by it not returning an error or did you check that the response code is 2XX?

It worked for me.  See screenshots.
Now, as for why repoID is an int and not an int64 is beyond me, and should probably be fixed sometime, but that's another issue.

@WillAbides I did not use GetEnvPublicKey (I used GetRepoPublicKey). Thank you! This resolves the issue.


Chrome Extension Help

So I have the repo cloned it is running fine as is. Now, if I wanted to customize this for my own needs, where do I put the code? It's not readily apparent to us mere mortals.
Something like:
artoo.on('ready', function() {
  // do some crazy stuff here
});

so far i have this in content.js:
chrome.runtime.onMessage.addListener(
    function(request, sender, sendResponse) {
      if( request.message === "clicked_browser_action" ) {
        var firstHref = $("a[href^='http']").eq(0).attr("href");
        console.log(firstHref);
        console.log("window: ", window);
        var jobList = $('a.main-headline').scrape({
          url: 'href',
          title: 'text'
        });
        // var jobList = window.artoo.scrape('a.main-headline', {
        //   url: 'href',
        //   title: 'text'
        // });
        console.log("jobList: ", jobList);
      }
    }
  );

and this in background.js
chrome.browserAction.onClicked.addListener(function() {
    // Send a message to the active tab
    chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
      var activeTab = tabs[0];
      chrome.tabs.sendMessage(activeTab.id, {"message": "clicked_browser_action"});
    });
  });

in the manifest i added jquery:
"content_scripts": [{
    "matches": ["http://*/*", "https://*/*"],
    "js": ["chrome/jquery-2.2.0.min.js", "chrome/content.js"],
    "run_at": "document_end"
  }],

jquery works fine inside content.js, but I am unsure how to use artoo from there.

I got it to work!
"content_scripts": [{
    "matches": ["http://*/*", "https://*/*"],
    "js": ["chrome/jquery-2.2.0.min.js", "build/artoo.chrome.js",
      "chrome/content.js"
    ],
    "run_at": "document_end"
  }],

, then i commented out the injection stuff in background.js. Works perfectly!

This seems to be a good approach @appjitsu. Don't hesitate to come back if you have issues with the lib when running your content script.

I am attempting to scrape https://www.linkedin.com/vsearch/j?orig=JSHP&keywords=PHP+Developer&distance=50&locationType=I&countryCode=us&trk=two_box_geo_fill.
I can get the array of links on the page. Then when I ask the spider to go scrape each of the links, I never get anything back for the elements that I am asking for. I used the goodreads example as my baseline. Any help would be appreciated.
var urls = artoo.scrape('a.main-headline', 'href');
        console.log("urls: ", urls);

        // Deploying an ajax spider
        artoo.ajaxSpider(
          // Feeding the spider with our urls
          urls,
          // Registering some parameters
          {
            // We want the html to be parsed with jQuery
            jquerify: true,
            // Function executed at each step
            process: function($page, i) {
              artoo.log.debug('Fetching page #' + i);
              // Returning the results of scraping the page
              // TODO: adjust the scraping to fit your tastes
              return $page.scrape({
                title: {
                  sel: 'h1'
                },
                author: {
                  sel: '[itemprop=name]'
                }
              });
            },
            // A limit for dev purposes (remove it if you want everything)
            limit: 2,
            // Callback for when we are done
            done: function(books) {
              // Inform we are done with a sound
              artoo.beep('original');
              // Showing results
              console.log(books);
              // let's download our data
              artoo.savePrettyJson(books, 'books.json');
            }
          }
        );

I am attempting to scrape https://www.linkedin.com/vsearch/j?orig=JSHP&keywords=PHP+Developer&distance=50&locationType=I&countryCode=us&trk=two_box_geo_fill.
I can get the array of links on the page. Then when I ask the spider to go scrape each of the links, I never get anything back for the elements that I am asking for. I used the goodreads example as my baseline. Any help would be appreciated.
var urls = artoo.scrape('a.main-headline', 'href');
        console.log("urls: ", urls);

        // Deploying an ajax spider
        artoo.ajaxSpider(
          // Feeding the spider with our urls
          urls,
          // Registering some parameters
          {
            // We want the html to be parsed with jQuery
            jquerify: true,
            // Function executed at each step
            process: function($page, i) {
              artoo.log.debug('Fetching page #' + i);
              // Returning the results of scraping the page
              // TODO: adjust the scraping to fit your tastes
              return $page.scrape({
                title: {
                  sel: 'h1'
                },
                author: {
                  sel: '[itemprop=name]'
                }
              });
            },
            // A limit for dev purposes (remove it if you want everything)
            limit: 2,
            // Callback for when we are done
            done: function(books) {
              // Inform we are done with a sound
              artoo.beep('original');
              // Showing results
              console.log(books);
              // let's download our data
              artoo.savePrettyJson(books, 'books.json');
            }
          }
        );

I am attempting to scrape https://www.linkedin.com/vsearch/j?orig=JSHP&keywords=PHP+Developer&distance=50&locationType=I&countryCode=us&trk=two_box_geo_fill.
I can get the array of links on the page. Then when I ask the spider to go scrape each of the links, I never get anything back for the elements that I am asking for. I used the goodreads example as my baseline. Any help would be appreciated.
var urls = artoo.scrape('a.main-headline', 'href');
        console.log("urls: ", urls);

        // Deploying an ajax spider
        artoo.ajaxSpider(
          // Feeding the spider with our urls
          urls,
          // Registering some parameters
          {
            // We want the html to be parsed with jQuery
            jquerify: true,
            // Function executed at each step
            process: function($page, i) {
              artoo.log.debug('Fetching page #' + i);
              // Returning the results of scraping the page
              // TODO: adjust the scraping to fit your tastes
              return $page.scrape({
                title: {
                  sel: 'h1'
                },
                author: {
                  sel: '[itemprop=name]'
                }
              });
            },
            // A limit for dev purposes (remove it if you want everything)
            limit: 2,
            // Callback for when we are done
            done: function(books) {
              // Inform we are done with a sound
              artoo.beep('original');
              // Showing results
              console.log(books);
              // let's download our data
              artoo.savePrettyJson(books, 'books.json');
            }
          }
        );

Hello @appjitsu. When I run the above code in the page you linked, I get the following JSON:
[
  [
    {
      "title": "PHP Developer",
      "author": "XebiaLabsXebiaLabs"
    }
  ],
  [
    {
      "title": "PHP Developer",
      "author": "ProgrexionProgrexion"
    }
  ]
]

What browser are you using?

I am using Google Chrome v48.0.2564.82 m.

And you don't get the same result as I do?

No, I get the same thing as yesterday; an empty result.
Here is the project: https://www.dropbox.com/s/rw94ggly2j9jyq4/artoo.zip?dl=0

[
[
{
"title": "",
"author": ""
}
],
[
{
"title": "",
"author": ""
}
]
]

That's very weird indeed. If you visit the pages by hand and use the same scraper you are using with the spider, does it work?

I commented out everything else and just ran the following directly on the detail page and it works fine.
var data = artoo.scrape('body', {
  title: {
    sel: 'h1'
  },
  author: {
    sel: '[itemprop=name]'
  }
});
console.log("data: ", JSON.stringify(data));

I get the following data:
[{"title":"PHP DeveloperMeet XebiaLabsCompanySimilar JobsPHP Developer - PHP, HTML5, CSS3Senior Web Developer - WordpressResponsive Web Developer / Demand GenerationWeb Developer Web Developer: Html, Javascript, CSS, and JQuery. Top Technology Company. Web DeveloperSoftware Application DeveloperFront End Developer - HTML, CSS, JavascriptWeb Developer  *College Grads Welcome!  People also viewedPHP DeveloperPHP DeveloperWeb DeveloperPHP DeveloperPHP DeveloperPHP DeveloperPHP DeveloperPHP DeveloperPHP DeveloperPHP Developer Current job:PHP Developer","author":"XebiaLabs"}]

Then try disabling jquerify and log what string does the spider gives you in the process callback. Note also that you probably should be using scrapeOne rather than scrape since you only need one result and not a list.

Are there any known problems with using Jquery 2.2.0?

I don't think it could affect our case if jQuery follows semver specs. But just in case, try with 2.1.3.

I still cannot get the detail page scraper to work if I start it from the search result page. I can get urls on the search result page. I can go directly to the detail page and scrape the page it that works.
Can you please download from the following link and try it on your end?
https://www.dropbox.com/s/rw94ggly2j9jyq4/artoo.zip?dl=0
Search results page: https://www.linkedin.com/vsearch/j?orig=JSHP&keywords=PHP+Developer&distance=50&locationType=I&countryCode=us&trk=two_box_geo_fill
Test detail page: https://www.linkedin.com/jobs2/view/97663826?trk=vsrp_jobs_res_pri_act&trkInfo=VSRPsearchId%3A4019710091453475977692%2CVSRPtargetId%3A97663826%2CVSRPcmpt%3Aprimary
var scraper_link = {
  iterator: 'li.job',
  data: {
    url: {
      sel: 'a.result-image',
      attr: 'href'
    }
  },
  params: {
    limit: 1
  }
};

var scraper = {
  iterator: 'div.top-row',
  data: {
    title: {
      sel: 'div.content > div.first-line > div.titleAndTags > h1.title'
    },
  },
  params: {
    done: function(data){
      console.log("scraper data: ", data);
      artoo.s.pushTo('jobs_list', data);
    }
  }
};

var urls = artoo.scrape(scraper_link);
console.log("urls: ", urls);

artoo.ajaxSpider(urls, {
  throttle: 3000,
  scrape: scraper,
  done: function(data) {
    artoo.log.debug('Finished retrieving data. Downloading...');
    artoo.saveJson(artoo.s.get('jobs_list'), {
      filename: 'jobs.json'
    });
    artoo.s.remove('jobs_list');
  }
});

@Yomguithereal have you had a chance to try the code above?

Not yet, sorry. Can you remind me next week, I won't have time before then.

Sure thing! We're all busy, so I totally understand. ;)

I think the reason it's not working is the page is not fully rendered yet when the crawler gets the HTML. The page loads a script when it's fully loaded to put all of the content in its proper place on the page. What do you do in this instance? Is there any way to tell the crawler to wait?

@appjitsu, if you are crawling client side with an ajax spider, no you cannot. Ajax requests will only send you raw HTML.
If you are crawling serverside, then yes you can wait. There is even artoo.waitFor to help you do so.

Ok, I am back. Did you advance on your side?

No, not really. How would you use the waitFor method with a spider?

The spider uses ajax so the data it returns is static. There are not real way around it. You are reaching the limits of what you can achieve in a browser. If the other pages your are fetching are dynamic and you need them to execute JS to display the data you need, then this starts to be difficult. Retro-engineering the target's ajax calls might be easier then.

Another way to crawl is to load the page in tab, and grab the content on page complete. Just tried with the link @appjitsu posted and seems to work fine.
repository here: https://github.com/nobodxbodon/ChromeCrawlerWildSpider


Support for git show

I would be great if 'git show' would also be supported by ugit, so that we can get object properties for the different information being returned by git show command.
Regards,
Stefan Stranger
[msft]

Sure thing!
Git show might be a little bit of a fun challenge, as it seems like I'll have to reuse some of the other parsers for some scenarios.


Update futures to 0.3

This was based on version 0.5 that is only available on the https://git.theta.eu.org/whatsappweb-rs.git/
Check the last commit for all the modifications I've done.

Hey @Andrepuel -- thanks for the PR! I'm glad you found the other repo okay, since I've been rather lax at pushing changes to both places recently (!). I had a look through and it all looks good to me, so I'm happy to merge this -- let me know if you want me to cut a 0.5.0-pre2 release for crates.io, and I'd be more than happy to!


Add Table Operations to allow reading data via IceLake

icelake 0.0.1 added most types that we need to load table metadata. We need to implement table operations to allow users reading data via us.
Tasks

[x] Get current table metadata
[ ] Get all snapshots of current table metadata
[ ] Get all manifest lists from current snapshot
[x] https://github.com/icelake-io/icelake/pull/31

Notes

We will not add partition support before v0.1, so we can ignore partition spec and sorting order.
API should be polished after.

Closing for https://github.com/icelake-io/icelake/issues/279


Ignoring macOS hidden files when installing all CIAs from a folder

When copying files to a drive, macOS/Mac OS X automatically creates a file containing some metadata with the same filename, but with "._" attached at the beginning, making it hidden.
When going to the folder containing the CIA with FBI, since the file is hidden, it won't be shown in the list, however, if the user chooses to install all CIAs from the current directory, those files will be picked up too and added to the queue (before the actual CIAs), since they still have the .cia extension, resulting in the queue getting doubled and half the installations failing, since it tried to install files which weren't actually CIAs. Plus, when choosing to install and delete all CIAs in the current directory, those files won't be deleted, even though they're no longer needed since the original file is gome

Sorry, I wasn't clear, but it's a config problem on your end. I use OS X in a VM to cimpile things for IOS, and it certainly does not create a ._ copy for every file. It's a config problem on your end.

No, macOS does indeed create these files depending on some situations by default. There is no "config" for this.

What situations? Like using an exfat USB vice fat32?

It can happen anywhere, on any filesystem, including FAT32, HFS+ and APFS. It's done it on my SD cards many times.
Making a new folder on an APFS volume, then doing something in Finder (e.g. expanding it in list view) creates a .DS_Store file.

sudo mdutil -i off -d /Volumes
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.finder AppleShowAllFiles YES

Using that mdutil command disables Spotlight for all volumes which I would never just suggest to any random user. That's changing a global setting on the system that affects system features, all just to prevent FBI from installing files beginning with "._"
I think it should also not install those automatically in the same way it doesn't show them in the list.

You missed my edit. You SPECIFY the volume. In fact, I think it will error out if you don't.

If you can also change those defaults to only disable them on specific volumes that would be a better idea than a global change.

@urherenow still, a lot of people don't know about this, some don't even know macOS creates the hidden files to begin with, that's why I think FBI should handle it properly

A number of OSes create excess hidden files on removable media, but as far as I'm aware only OSX has this somewhat kludgey per-file behavior. That said, there may be merit to ensuring that hidden files are not queued as part of the current directory (regardless of their purpose) when displaying of hidden files is disabled, since that would be the natural expected behavior for the average end user.
A specific exemption for files beginning with ._ does seem like a poor choice because, among other reasons, there's no way to ensure that this is the only circumstance where that naming format would be used.

It seems I overlooked multi-file operations when I added filters to the files menu. I'll change it so they only consider currently visible files sometime soon.

I've tried with the 3dsx, but it doesn't seem to solve the issue. Also the top screen still says 2.5.2

Just to make sure, the hidden files weren't showing in the file list when you tested it, correct?

Yes, but they weren't showing in the stable release either

Working fine for me; I made a folder with "FBI.cia" and a hidden file "._FBI.cia", and it only installed the former. It only tried to install both when I enabled "Show hidden files" in the file list options.
Make sure your old copy of FBI actually got replaced by the new one. The version will still be 2.5.2, so don't be alarmed if that doesn't change. I've cleaned out all of the build files, rebuilt, and reuploaded just in case it was a mistake on my end: https://www.dropbox.com/s/mbqpa15hz2nz69r/FBI.zip?dl=0

Still doesn't work for me

Could you take a video or something, then? I can't figure out what's wrong if it's working just fine in my test cases.

https://www.youtube.com/watch?v=pG8bzRdxPTk

In your video, the dot files are visible in the file browser; the change only makes the CIA installation list match the files shown in the browser. Since they don't have the hidden attribute, they aren't treated as hidden files.

Ah right, I thought the 3DS/FBI would've acted like Linux and just the dot would've made it hidden

Do the special macOS "._" files usually get created with the hidden attribute set? If not, I could go ahead and treat dot files as hidden, since I can't think of any problems that might cause otherwise.

iirc they get created with the hidden attribute (I don't have access to a Mac a anymore tho)

In that case, I'll go ahead and consider this solved.


dojo.setup.confirmation

When I register myself as a Dojo Champion, I get a confirmation that says "dojo.setup.confirmation"
That should be some useful text.

Hey!
I believe that the issue is here:
https://github.com/CoderDojo/cp-zen-platform/blob/d9dc98254d3f1593fb69306c9800bc2a2daf1b2a/web/locale/en_US/messages.po#L1954
and
https://github.com/CoderDojo/cp-zen-platform/blob/cf2e0c2eaecd208b91fc1bba1e2871e8f155059b/web/public/templates/dojos/dojo-setup-confirm.dust#L6

@adhorrig I suggest that the id "dojo.setup.confirmation" is changed to "Are you sure you have filled out all the information correctly and wish to proceed?". This is they way it is in crowdin and would be consistent.

@niccokunzmann Thanks, I've done that here -> https://github.com/CoderDojo/cp-zen-platform/compare/master...adhorrig:i927-translate-alert-confirmation?expand=1
My local copy of Zen won't seem to change language though so I can't test it atm

It looks good and I think it should work.
After merge, I do not know how one would upload that to crowdin so it can be translated.

@adhorrig you can follow steps in https://github.com/CoderDojo/community-platform/issues/815 to test languages locally

@josmas Thanks a lot! Was looking for that information in the docs :)

Not sure it is 'officially' documented, but it most certainly should be! :)

please do not forget to click it in 934.

Thanks @niccokunzmann


attention masks in each layer

Thank you for your work.
I noticed that you didn't seem to add a lower triangular matrix as attention mask in the mamba block to ensure that the current token only attends to the previous tokens. This appears to be inconsistent with "next-token prediction"
Could you please explain the reason for this?

Hi! Regarding your mention of the attention mask, Mamba does not require an explicit attention mask (similar to RNNs). Mamba achieves the masking of past tokens through causal 1D convolution, ensuring that the current token can only attend to previous tokens. This design aligns with the goal of "next-token prediction." For more details, please refer to the original Mamba paper.

Thanks a lot for the help.

Hi! Regarding your mention of the attention mask, Mamba does not require an explicit attention mask (similar to RNNs). Mamba achieves the masking of past tokens through causal 1D convolution, ensuring that the current token can only attend to previous tokens. This design aligns with the goal of "next-token prediction." For more details, please refer to the original Mamba paper.

Hi @hp-l33 , If I don't want the mamba model of AiM to predict the current token and only see the previous tokens, but want it to see all tokens, how should the mamba model be set up?

Hi! Regarding your mention of the attention mask, Mamba does not require an explicit attention mask (similar to RNNs). Mamba achieves the masking of past tokens through causal 1D convolution, ensuring that the current token can only attend to previous tokens. This design aligns with the goal of "next-token prediction." For more details, please refer to the original Mamba paper.

Hi @hp-l33 , If I don't want the mamba model of AiM to predict the current token and only see the previous tokens, but want it to see all tokens, how should the mamba model be set up?

Unfortunately, the naive Mamba used in AiM cannot attend to tokens bidirectionally. You might consider alternative approaches.

Hi! Regarding your mention of the attention mask, Mamba does not require an explicit attention mask (similar to RNNs). Mamba achieves the masking of past tokens through causal 1D convolution, ensuring that the current token can only attend to previous tokens. This design aligns with the goal of "next-token prediction." For more details, please refer to the original Mamba paper.

Hi @hp-l33 , If I don't want the mamba model of AiM to predict the current token and only see the previous tokens, but want it to see all tokens, how should the mamba model be set up?

Unfortunately, the naive Mamba used in AiM cannot attend to tokens bidirectionally. You might consider alternative approaches.

Thanks~


TypeError: undefined is not a function

I'm having this error when I add documentation to a method.
const MyComponent = React.createClass({
  /**
   * Manage toggle click
   */
  onClick() {
     // Something here
  },

  render() {
     return (<div onClick={this.onClick} />)
  },
});

export default MyComponent;

When I add Manage toggle click RDoc comment I get TypeError: undefined is not a function. If I remove the comment over onClick method webpack compilation is fine.
Any ideas?

Hm, I can’t reproduce it. Trying to copy your code to the example styleguide: works with with or without the comment.

Please can you check out this branch. I just converted the component to use React.createClass and the error is reproduced with this comment: https://github.com/sapegin/react-styleguidist/pull/177/files#diff-07e392e9ddba72895f1dc7298921c452R32

I think the key is using React.createClass

As commented in the PR the problem is with my node version. You need to use a node version >= 4.x.x with react-styleguidist.
Thanks @sapegin

Just for the reference, it’s not in the master yet: dccecb0ded66ca2119db5f04d1aefc8bd3024946.


Test pyinstaller under Windows and MacOS

Test pyinstaller under Windows and MacOS.
Then test if all executables generated (Linux, Windows, MacOS) work on a vanilla version of each OS.

pyinstaller fails under Win7 with " " error.
Works under Linux.

I'll probably change the method of choosing the random character to send so we no longer require random.choices() which is only available in python 3.6.  This means we can go back to python 3.5 and pyinstaller should work again.


App build none code zero exit

Describe the bug
I just install react native stripe with yarn and pod install as procedure. after that try to run debug in xcode but always give me error none zero exit code
To Reproduce
Steps to reproduce the behavior:

install stripe with yarn
pod install
open xcode
click run

Expected behavior
Can run succesfull.
Screenshots

Desktop (please complete the following information):

OS: Monterey 12.2.1
Xcode Version 13.4.1
Macbook air m1 2020
Rosetta is on for xcode and simulator

Smartphone (please complete the following information):

Device: Simulator iPhone 13
OS: iOS 15.5

Additional context
I used react native stripe version "@stripe/stripe-react-native": "^0.16.0",
React Native Version  "react-native": "0.68.2",

for now I fixed the issue with upgrading swift version compiler in xcode

and this is work !

What version of Swift were you using before?
Closing since this, upgrading to Swift 5 resolves the issue :)


Collection has ClientEncryptionPolicy set, but the document to be written isn't encrypted

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug
A clear and concise description of what the bug is.
After upgrading to Cosmos DB encryption sdk from 1.0.1 to 2.0.0, the error happens "Collection has ClientEncryptionPolicy set, but the document to be written isn't encrypted".
Is there any breaking change between 1.0.1 and 2.0.0?
To Reproduce
Steps to reproduce the behavior. If you can include code snippets or links to repositories containing a repro of the issue that can helps us in detecting the scenario it would speed up the resolution.
Just follow https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet to create new cosmos db with encryption enabled, error happens when inserting new document that contains one path that need encryption.
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
Provide a description of the actual behavior observed.
Environment summary
SDK Version:
OS Version (e.g. Windows, Linux, MacOSX)
Additional context
Add any other context about the problem here (for example, complete stack traces or logs).

@abhijitpai / @kr-santosh Could you verify the scenario? I don't see any breaking changes indicated in the Encryption package changelog (https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Encryption/changelog.md)

Can you please share the code which gets an encryption supported client via .WithEncryption()? Is the same client being used to get a database object and container object to create the item? This error usually happens when you try to create items using container objects which does not have encryption enabled on it (using a regular client)

@erich-wang does the scenario described apply to your case? Could you confirm?

Thank you all for the quick response. Somehow I could not reproduce it, probably caused by mismatch version between cosmos sdk and cosmos encryption sdk. I'm closing this issue now.


Not possible to properly restart explorer.exe

Description of the feature, modification, idea or suggestion
If you have System Informer as your default task manager it is practically impossible to restart explorer.exe properly due to System Informer having Junction redirection protection mitigation policy enabled and processes started by SI having this mitigation as well. This prevents explorer opening files which have their application in a junction.
For example, if you have mpv installed through scoop, assigned application for a wav file is in ~\scoop\apps\mpv\current\mpv.exe where current is a junction.
One of the workarounds is to deliberately crash explorer.exe and let winlogon.exe restart it.
Proposed implementation details (optional)
• Not sure if possible, but there could be an option to remove this policy for a process in run dialog.
• Option to use some exit code other than 1 to allow winlogon to restart explorer properly, or prompt user with an option if he tries to terminate explorer.exe

Thanks, fixed 👍


Task: Set up pytest for back end

Describe the task
Set up pytest for the repository to enable automated testing. This includes installing pytest as a dependency, configuring the test environment, and ensuring basic test discovery functionality.
Acceptance Criteria

[ ] Install pytest as a development dependency in the project (pip install pytest).
[ ] Use the existing test to confirm that it runs correctly.
[ ] Ensure pytest automatically discovers and runs tests from all test_*.py files.

Additional context

pytest should be configured in the project to support future automated test setups.
Consider integrating pytest into any CI/CD pipelines later as needed.

I am on it!

hey @jinks145 how's this coming along? do you need any input from us?

I have been a little swamped with job search preparation lately. But, I do have couple tests that I've been working on.


About the re-implemented model of YoutubeHand

Hi Xingyu, Thanks for your great work. I see in the Experiment part of the paper, you use YouTubeHand as the baseline. I wonder would you release this part of code and model?

Hi, I have re-implement YoutubeHand (https://github.com/SeanChenxy/HandMesh/blob/main/cmr/ytbhand.py). But I have not re-train it. You could use it according to your needs.

Hello, I can't find the ytbhand.py file in the code, can you provide it?

Hello, I can't find the ytbhand.py file in the code, can you provide it?

You can find in cmr/models/ytbhand.py

Oh I found it! Thank you so much, this question is so sloppy!

Hello, I have another question to ask. This question may also be rather silly. I want to correspond the model code of DenseStack_Backnone with the paper, but I feel that I am looking at it in a mess. May I ask where the 2d encoder-decoder architecture and cascade are reflected in the model? At the same time, is the final generated latent Fe? Is uv-reg Lp? So sorry,I'm new to this direction.
Looking forward to your reply! Thanks in advance!


Why is the implementation-version in Dubbo 2.5.10 is 2.0.1?

Why is the implementation-version in Dubbo 2.5.10 is 2.0.1?

duplicated to #1524 #1466


Wrong test result publishing when Data File is used

I run the postman collection using newman and reporter - "@reportportal/newman-reporter-reportportal": "0.0.23"
I have a data file with an 11 iteration record.
When I launch my collection I see an expected output in the Newman console but the report portal shows 11 duplicated suites.
It seems that the latest test suite result is copied to everywhere (including response body).
I expect to see this kind of result

But in all test suites, I see only this one (which is actually related to 3 last cases)

I have this problem as well.


refactor(vats): Rename vtransfer TransferInterceptorKit facets by their role

https://github.com/Agoric/agoric-sdk/pull/8624#discussion_r1628383888

Superseded by Agoric/agoric-sdk#9471


Will it recognize pod6?

I have loaded files with the .pod6 extension, and they do not seem to be recognized.

Actually in vscode you can have any file extension trigger the Perl6 syntax by just adding something like this to your user prefs (Ctrl+Comma):
    "files.associations": {
        "*.pod6": "perl6"
    }

This gives a basic support for Pod 6 files. Real support could render the doc in HTML and display the result in a side window...


Update FCM version

resolution_fixed   |    by<EMAIL_ADDRESS>
FCM version 2014.09.0 is required for fcm branch operations to work with the shared repositories
https://code.metoffice.gov.uk/trac/home/wiki/FAQ#Whatisthebranchnamingconvention

Issue migrated from trac:159 at 2024-01-31 18:09:36 +1100

<EMAIL_ADDRESS>changed status from new to accepted

<EMAIL_ADDRESS>changed resolution from `` to fixed

<EMAIL_ADDRESS>changed status from accepted to closed


Enable bundling of mixin scripts #2

This PR is a redo of #240 which was ultimately buggy and had to be rolled back in #245.
Some notable changes from the previous PR:

Instead of relying on a 3rd-party bundler, I just rewrote our existing bundler
This change is actually much simpler, resulting in more human-friendly bundles (great for debugging)
This PR should be much more stable as it has fairly extensive test coverage
Added some quick docs to show how the bundling works. Since most won't need to know how bundling works, I just added a markdown file in the action's folder. That means it won't appear on the website, but will be noticeable if you ever start working on the bundler.
Much better heuristic for importing mixins. How, the mixins will be imported whenever the src/library/mixin.lua file is imported. You don't need to explicitly write require("library.mixin"). Requiring any string that resolves to that mixin file (including library/mixin or library/mixin.lua) will all cause the mixins to be imported.

Like before, this PR should add support for mixins (both public ones in the src/mixin folder and private ones in the src/personal_mixin folder.
cc @rpatters1 @ThistleSifter @cv-on-hub

If you are ready to merge it, be my guest.


Authorise null to access your pod

Had a look at this.  The code for Node Solid Server has in template:
Authorize {{app_origin}} to access your Pod?
Elsewhere app_origin is set:
app_origin: appOrigin
const appOrigin = appUrl.origin
I think they simply use the origin of the requesting url.  They should use client_name!!

Hey, thanks, Warwick! I'm not familiar with appUrl.origin-- did a little looking around, but it's meaning wasn't clear to me. Just added a bug there. There are 253 bugs there, but who knows?! :).

My present code is giving me this (just using client_name) with https://broker.pod.inrupt.com:


Add post to slack function to the release production tool

I'm not sure how can I test it. Could you check it before merge?

lgtm, testing it with release/284


pympress|python-gi missing GLIBC

Describe the bug
After installing pympress though nix-env and attempting to execute pympress slides.pdf, the following stack trace is returned:
Traceback (most recent call last):
  File "/nix/store/b9624h1jpr90k40cv3mw9b89i35jnaj2-pympress-1.5.1/bin/..pympress-wrapped-wrapped", line 6, in <module>
    from pympress.__main__ import main
  File "/nix/store/b9624h1jpr90k40cv3mw9b89i35jnaj2-pympress-1.5.1/lib/python3.8/site-packages/pympress/__main__.py", line 66, in <module>
    import gi
  File "/nix/store/463l6zzw36is0jdpasyb5m570c2iyg3z-python-environment/lib/python3.8/site-packages/gi/__init__.py", line 40, in <module>
    from . import _gi
ImportError: /nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74/lib/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/5i172qh374nls3canh28ydniqkgliv11-glib-2.66.4/lib/libglib-2.0.so.0)

This likely indicates a missing dependency or package build issue?
To Reproduce
Steps to reproduce the behavior:

nix-env -i pympress
pympress

Expected behavior
No stack trace, trying out the application for a presentation, not sure what to expect otherwise.
Additional context
Using latest nixpkgs unstable, NixOS/nixpkgs@a2b0ea6865b2346ceb015259c76e111dcca039c5.
Uninstalling and then building and installing shows a different error that appears more of an upstream issue(?):
nix-env --uninstall pympress
nix build nixpkgs.pympress
nix-env -iA nixpkgs.pympress
pympress

<... lots of GTK warnings ... >
ged' is invalid for instance '0xde85f0' of type 'GInotifyFileMonitor'
  self.add_from_file(util.get_ui_resource_file(resource_name))
Traceback (most recent call last):
  File "/nix/store/4j5j6m9i8g1j02ijxmdn69lmw7r3gvwi-pympress-1.5.1/bin/..pympress-wrapped-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/4j5j6m9i8g1j02ijxmdn69lmw7r3gvwi-pympress-1.5.1/lib/python3.8/site-packages/pympress/__main__.py", line 167, in main
    gui = ui.UI()
  File "/nix/store/4j5j6m9i8g1j02ijxmdn69lmw7r3gvwi-pympress-1.5.1/lib/python3.8/site-packages/pympress/ui.py", line 209, in __init__
    self.make_cwin()
  File "/nix/store/4j5j6m9i8g1j02ijxmdn69lmw7r3gvwi-pympress-1.5.1/lib/python3.8/site-packages/pympress/ui.py", line 252, in make_cwin
    self.c_frame.set_property("yalign", self.config.getfloat('content', 'yalign'))
TypeError: object of type `GtkAspectFrame' does not have property `yalign'

Notify maintainers
CC: @tbenst
Metadata

system: "x86_64-linux"
host os: Linux 5.10.18, NixOS, 20.09.3341.df8e3bd1109 (Nightingale)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.10
channels(root): "nixos-20.09.3398.f26c6ddc472"
channels(kb): "nixpkgs-21.05pre273941.a2b0ea6865b"
nixpkgs: /home/kb/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Hm, this looks like a problem with libglib requiring a glibc version that isn't available..?

I have upgraded to NixOS/nixpkgs@b49e47309d0df845ce3eb6c01ffe720952ed3695, no dice.  I'm not sure how else to address the underlying libglib issue.
Full disclosure, I discovered pdfpc which serves the purpose pympress would serve.  I may have less vested interested, but making things work is important, so I can still help fix this if there is something I can do to help resolve it.

Glad you found an alternative! pdfpc looks neat. I’m happy to offer pointers if anyone wants to investigate, but don’t have bandwidth to fix

I upgraded pympress to latest release with #132248, and I saw no issue opening a pdf.

I'm receiving a different error with version 1.6.3:

ERROR: Gobject Introspections and/or pycairo module is missing, make sure Gtk, pygobject and pycairo are installed on your system.

Try your operating system’s package manager, or try running: pip install pygobject pycairo
pip will then download and compile pygobject and pycairo, for which you need the Gtk and cairo headers (or development packages).

For instructions, refer to https://github.com/Cimbali/pympress/blob/master/README.md#dependencies
If using a virtualenv or anaconda, you can also try allowing system site packages.

The same result was given after installing the updating pympress (nix-channel --update && nix-env --upgrade) and after trying nix-shell -p pympress (nix-shell --pure -p pympress caused even more issues, but that's likely inability to connect to X).
I'm fine closing this out if it's working for others; I'm no stranger to my setup being the cause of issues than the package itself.

Cannot reproduce, and this is the nixpkgs-unstable cached build:
$ nix-env -iA unstable.pympress
installing 'pympress-1.6.3'
...
copying path '/nix/store/xb12807ap8h0510lkp67szz2alk9bshh-pympress-1.6.3' from 'https://cache.nixos.org'...
...

$ pympress --version
Pympress: 1.6.3 ; Python: 3.9.6 ; OS: Linux 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 ; Gtk 3.24.30 ; GLib 2.68.3 ; Poppler 21.06.1 cairo ; Cairo 1.16.0 , pycairo 1.20.1

But this is nixpkgs running on lnl7/nix Docker image, not NixOS.

@smancill: seeing as I can't even run --version without getting the above error and you're not running NixOS, do you happen to have pyobject or (py)?cairo installed through pip or brew?

@smancill: seeing as I can't even run --version without getting the above error and you're not running NixOS, do you happen to have pyobject or (py)?cairo installed through pip or brew?

No, I tried in an empty container with nothing else installed.
Maybe you can try a different package that uses pycairo. I see pick-colour-picker or hamster.

Maybe you can try a different package that uses pycairo. I see pick-colour-picker or hamster.

Both of those confirm it's not local to pympress.
% nix-shell -p pick-colour-picker
{{nix output elided}}

[nix-shell:~]$ pick-colour-picker
Traceback (most recent call last):
  File "/nix/store/qn1qvcybm33yk3prd55dbvw4qxciga2z-python3.9-pick-colour-picker-unstable-2021-01-19/bin/..pick-colour-picker-wrapped-wrapped", line 6, in <module>
    from pick.__main__ import main
  File "/nix/store/qn1qvcybm33yk3prd55dbvw4qxciga2z-python3.9-pick-colour-picker-unstable-2021-01-19/lib/python3.9/site-packages/pick/__main__.py", line 9, in <module>
    import cairo, math, json, os, codecs, time, subprocess, sys, base64, colorsys
  File "/nix/store/sm286smqrx81yg3plhr2ajgdd05pjhi2-python-environment/lib/python3.8/site-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
ModuleNotFoundError: No module named 'cairo._cairo'

[nix-shell:~]$ exit
% nix-shell -p hamster
{{nix output elided}}

[nix-shell:~]$ hamster
Traceback (most recent call last):
  File "/nix/store/1k42nmpbv4d9cysjhy6q6fjpzciwq7c0-hamster-3.0.2/bin/.hamster-wrapped", line 44, in <module>
    from hamster.edit_activity import CustomFactController
  File "/nix/store/1k42nmpbv4d9cysjhy6q6fjpzciwq7c0-hamster-3.0.2/lib/python3.9/site-packages/hamster/edit_activity.py", line 29, in <module>
    from hamster import widgets
  File "/nix/store/1k42nmpbv4d9cysjhy6q6fjpzciwq7c0-hamster-3.0.2/lib/python3.9/site-packages/hamster/widgets/__init__.py", line 26, in <module>
    from hamster.widgets.activityentry import (
  File "/nix/store/1k42nmpbv4d9cysjhy6q6fjpzciwq7c0-hamster-3.0.2/lib/python3.9/site-packages/hamster/widgets/activityentry.py", line 24, in <module>
    import cairo
  File "/nix/store/sm286smqrx81yg3plhr2ajgdd05pjhi2-python-environment/lib/python3.8/site-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
ModuleNotFoundError: No module named 'cairo._cairo'

Interesting.  Neither elided output contains a derivation for pycairo or cairo.
I may need to study this some more.  Seeing the python-environment line tells me this has something to do with my, likely crazy, overlay setup.

@kennyballou recommend you use / think of pympress as a standalone application. Best to use vanilla pythonPackages w/o overlays as input


Command line switch sets entity id based off friendly name

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.28.2
Python release (python3 --version):
Python 3.4.2
Component/platform:
All with friendly_name attribute.
Description of problem:
I have several entities that I would like to give the same friendly name.
According to the documentation a friendly name is "The name used to display the switch in the frontend."
Unexpectedly also the entity name is set to the friendly name.
Expected:
I expected that the friendly name is an additional attribute to distinguish internal naming (entity names) from front-end visualization. Otherwise the friendly name attribute is rather useless, no?
Problem-relevant configuration.yaml entries and steps to reproduce:
# Example configuration.yaml entry
switch:
  platform: command_line
  switches:
    kitchen_light:
      command_on: switch_command on kitchen
      command_off: switch_command off kitchen
      command_state: query_command kitchen
      value_template: '{{ value == "online" }}'
      friendly_name: Friendly kitchen switch

Use the example above to create a entity with a friendly name Friendly kitchen switch
Open HASS with UI  hass --open-ui
Goto http://HASS_IP:8123/dev-state and you will see that the entity name is the friendly name:

Additional info:
If this is a feature and not a bug I would like to know how to give entities the same name in the Front-End. Otherwise I have to name lights -although they are already grouped per room- differently. I would have to give them running indices, which would look really ugly.

Yes, generally the entity id is based on friendly name. A few platforms overwrite this behavior, for example Z-Wave will include node and value id. In the case of command line switch, since you define an object id (kitchen_light in your case), it could be used for the entity id. However this isn't currently implemented for command line switches.
Home Assistant will make sure entity ids will not overwrite themselves by adding an index to it. However because we do not know the order at which platforms get loaded, it might be that two devices will swap entity id after reboot.
General speaking, it's a bad idea to have devices have the same name in your house because it will also prevent you from controlling it by voice.

The script component is an example that has a similar config to the command line switch component that does it correct: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/script.py#L126

Ok, I see to force different names makes sense for voice control etc.
But then the object id can be quite unnecessary. Especially since the voloptuous changes, it has to follow the slug scheme if I am not mistaken. That does not allow capital letters.
For me that means I have to define friendly names to all my switches, and the object ids are not used at all.
Since this is by design, I close the issue.

You can make a PR to use the object ids. Given the script example, it would be quite straightforward to implement that for command line switches.

I also found this counterintuitive and spent more time than I'd like to admit debugging why automation employing switch.turn_on wasn't working when my switch itself worked fine.
The documentation specifies friendly_name (Optional): The name used to display the switch in the frontend., so I assumed it was for display purposes only and the config would refer to the actual slug -- which as mentioned above seems to go completely unused.
I had expected the use case for friendly name to be allowing the use of an "ugly but unique" slug that was designed to avoid collisions for use in configuration (switch.living_room_rf_switch_one) with a more attractive version in front end.
I'll try to work on a PR modeled after script -- thanks for the suggestion and the link.


WIP: reverse tunnel design document

Still working on it but if you want to keep an eye and make some comments feel free to do so ;-)

Far from sound rude, I would like to propose using wireguard instead of reinventing ssh tunnelings (that are unprotected...). Wireguard cipher the connectivity and it enables the same as described in the document.
I mean... all the agents could be wireguard clients. The bastion is just wireguard servers... We are going to end up implementing something like https://github.com/subspacecloud/subspace
The idea is clever, and we really need it. What i don't want is to reimplement the wheel

@angelbarrera92 since it's a @glaieta proposal I'll let him check on your proposal. @glaieta let us know what do you think.

Far from sound rude, I would like to propose using wireguard instead of reinventing ssh tunnelings (that are unprotected...). Wireguard cipher the connectivity and it enables the same as described in the document.
I mean... all the agents could be wireguard clients. The bastion is just wireguard servers... We are going to end up implementing something like https://github.com/subspacecloud/subspace
The idea is clever, and we really need it. What i don't want is to reimplement the wheel

Too long to explain....I start to think to use a vpn with wireguard.... but wireguard is a VPN and some customers see a VPN like a method to connect inside their network. SSH open connection is see as connection to an host and not an intrusion. For example Tenaris accept ssh reverse tunnel but doesn't accept a VPN.
If you want I can explain you by call conference.

Outdated, superseded by fury-connect CVI


Remove useless dataType related code.

Enhancement
In TiFlash some of the dataTypes used in Clickhouse is useless.
In order to make the build process of TiFlash faster, and make the code cleaner, we need to remove some DataTypes.
The following DataType is useless till now(Not fully sure of it)

[ ] "DataTypeDate"/"DateTypeDateTime". We use "DataTypeMyDate"/"DataTypeMyDatetime" for MySQL/TiDB-compatibility,
[ ] "DataTypeTuple"/"DataTypeArray"/"DataTypeSet" We don't use these data type
[ ] "DataTypeFixedString" MySQL doesn't support it.

/cc @JaySon-Huang @XuHuaiyu @fuzhe1989 @windtalker

I am not sure if the details in the issue is fully correct.

For this part,

"DataTypeFixedString" MySQL doesn't support it

https://dev.mysql.com/doc/refman/8.0/en/char.html
Actually, MySQL support char(20), which is similar to DataTypeFixedString. However, the number 20 indicates the maximum number of "characters" you can store, but not the "bytes" you can store. So if we define a column char(20) with utf-8 encoding, it actually can store up to 80 "bytes" data.
In order to make things easier, we just store all string-like data type as "DataTypeString" in TiFlash now. If we can ensure the encoding of char column under some situation, we can use "DataTypeFixedString" to store them. There would be better performance on some queries.


v1.3.0 - missing schedule icon from notebook

Description
On release v1.3.0, inside of a notebook, on the icon bar, the schedule icon is missing.

Reproduce

Install v1.3.0 via pip on a non-conda environment
run jupyter-lab
open a notebook and you'll see the icon missing.

Expected behavior
The schedule icon should show,

Context

Operating System and version:

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

Browser and version: Firefox 110

The issue comes from changes to 8f697f1acaa070f9252de7e98f2215209f51a780
Reverting that commit locally, then jlpm build brings the icon back for me.

I confirm this @rubenvarela.
as someone trying out jupyter-scheduler for the first time tonight, this bug gives the sense that nothing is working despite following the install instructions. Rolling back to 1.2.0 worked as a fix.

Investigating this issue now.

@rubenvarela
Can you try changes on this PR. https://github.com/jupyter-server/jupyter-scheduler/pull/347

@3coins the changes on #347 do bring back the icon!

Very sorry about this oversight. Thank you for the quick reporting! This should be fixed in 1.3.1.

@dlqqq no problem, it happens.
Appreciate you all taking a look at it!


SubClass class property assignment lose BaseClass property type

(I did search for this bug, but could not find it. Sorry if I missed anything).
TypeScript Version:  2.5.2
Code
class ClassA {
  val: number = 2;
}

// Works as expected
class ClassB extends ClassA {
  constructor() {
    super();
    this.val = this.val + 1; // this.val type check works as expected
  }
}

// Error as expected
class ClassC extends ClassA {
  val = "hello"; // <-- Error as expected, can't set string as ClassA.val is number
}

// Wrong ERROR (IMO) Should be equivalent to ClassB
class ClassD extends ClassA {
  val = this.val + 1; // <-- ERROR: 'val' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
}

Expected behavior:
ClassD should be the equivalent as ClassB.
// this.val should be of type "number" as defined in base class (as recognized in ClassB).
class ClassD extends ClassA {
  val = this.val + 1; // <-- should be the exact equivalent as `ClassB`, this.val should be of the typeof BaseClass.val
}

Actual behavior:
// Wrong ERROR (IMO) Somehow assignment of "this.val" make "val" of type any now (but worked fine in ClassB)
class ClassD extends ClassA {
  val = this.val + 1; // <-- Wrong ERROR: 'val' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
}

Practical usecase
While simple re-assigning might seems uncommon, base property augmentation can be common, and the direct class property make the class more tierce.
Our basic example is as follow:
// base.ts

export class BaseView {
  events: EventBindings = {};
  config: Config = {};
}

// mono type assign
export function assign<T extends object>(a: T, b: T): T {
  return Object.assign(a, b);
}

// SubView.ts
import {assign, BaseView} from 'base';

export class SubView extends {

  events = assign(this.events, { // <-- Unfortunately, type error here, "this.events" has become "any"
    "click": () => { /* do something */ }
  }
  config = assign(this.config, { // <-- Unfortunately, type error here, "this.config" has become "any"
    modal: true
  }
}

Right now, we put those "augmentations" in constructosr, but would be nicer if we can just have them as direct property assignment.

Please see https://github.com/Microsoft/TypeScript/issues/3667

@mhegazy sorry. Too bad it cannot be fixed.

I would not give up hope just yet. we have not found a solution that is not a breaking change, but we are still looking into it.

@mhegazy Cool, thanks for the hopeful note.

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


Fuzzilli uses too much memory

During long fuzzing sessions, Fuzzilli may eventually use a considerable amount of memory (multiple gigabytes as reported by e.g. top). This can then quickly become a problem if not enough memory is left for the target engine (which also tend to require quite a bit of memory). This issue is meant to track efforts to reduce the memory consumption of Fuzzilli.
I did some quick tests on macOS using the leaks tool and xcode's memory graph viewer and it doesn't immediately look like memory is being leaked. The heaps tool reports quite a bit of memory usage from the data structures associated with programs (instructions, variables, operations), though so it is probably worth optimizing them. It should also be noted that the sharing of Operation instances doesn't currently happen for imported programs, which might be another thing worth optimizing. However, further investigation of the main factors contributing to the high memory usage are also still necessary.

Commit https://github.com/googleprojectzero/fuzzilli/commit/2e7c967d171a5059aff6f9ab8df6be0e36216018 improves a few things, such as decreasing the size of serialized Programs

Closing this for now. https://github.com/googleprojectzero/fuzzilli/commit/67023fdddfe3be5f56e5de094960d56fec5f9696 decreased memory usage further, and currently there don't appear to be OOM related failures during fuzzing, at least not with a noticeable frequency


Streams won't load in Wall Panel

I'm using a Samsung Galaxy A7 tablet, fully updated.
This card works great when viewed in the Home Assistant app, or directly in the Samsung Browser or Chrome (thanks so much, it's awesome).
However I'm using HA embedded in the WallPanel app, and the live stream or clips just won't load.  WallPanel uses the WebView component).
Anything I should try?  I haven't tried setting up WebRTC yet, is that more likely to work?

Hi @bjammin, thanks for the feedback!
Do other Home Assistant cameras (outside of this card) render their live view okay on the tablet? i.e. is your problem specific to this  card?

Hi @bjammin, thanks for the feedback!
Do other Home Assistant cameras (outside of this card) render their live view okay on the tablet? i.e. is your problem specific to this card?

Good question.  At best they load inconsistently - sometimes they load, sometimes they don't.  However the frigate card never loads any stream or clip.
So I don't think it's necessarily a problem with the card, more likely something to do with the way the Webview component works.  Is it worthwhile trying WebRTC?

Ah. You could try WebRTC yes, it uses a different video technology so it's possible, but as Webview is (AIUI) a fairly generic web rendering component, I wouldn't get my hopes up.
Other (more adventurous) options include trying to update Webview on your tablet, or install LineageOS.

Thanks, I'll do some experimenting over the next week or so.


Last Week in Pony - February 12th, 2023

@SeanTAllen Give the new section a look. I tried to add a bit of copy at the top that we can reuse week-to-week about the purpose of the section, then a paragraph on what we are highlighting this week, then a paragraph on the specific thing we are highlighting.


Fix docker compose issue

Fixed the docker compose issue, when trying to run the repository, locally.
#2795

To test these out:
Run:
docker compose pull
docker compose build
docker compose up

I will paste that here so everyone (including me) who gets here knows what this is all about:
https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425?permalink_comment_id=3935570


Asset and Art Naming conventions stylesheet

Create a stylesheet for asset naming conventions.

google doc with updated naming conventions, will be adding stylesheet as we make it.
https://docs.google.com/document/d/1pKZ5Pc6Hcj3n15JnHgH-8GAVV2K9GnnSEe0QFeYp3VA/edit?usp=sharing

Should we put this in the Wiki here? You can just edit the wiki here like any other wiki on the web.


Multiple Sequence Alignment tool?

MAFFT may be able to handle considerably longer sequences than 10kb: http://mafft.cbrc.jp/alignment/software/tips.html#longsequences
Perhaps windows could be entire chromosomes? #2
But also see note in MAFFT documentation: "Note that MAFFT assumes that the all input sequences share the order of homologous sites or blocks.  If the sequences have repeat or inversion, use other tools such as FASTA and MUMmer." [emphasis added]
The suggested alternative MUMmer could be another option, but there is a steeper learning curve, and it is not clear if it is doing multiple sequence alignment or just several pairwise alignments.

Closing, as the parallelization of MAFFT seems to work fine.


favicon changed to new logo

Related Issue
#507

Closes: #507
Description of Changes

Checklist:

[ ] My code adheres to the established style guidelines of this project.
[ ] I have conducted a self-review of my code.
[ ] I have included comments in areas that may be difficult to understand.
[ ] I have made corresponding updates to the project documentation.
[ ] My changes have not introduced any new warnings.
[x] All of the above

Loader bhi update krdo...usmai bhi purana logo h

m soch rha the loader m bhi new logo kaisa rhega?? ek baar. new logo loader m update krke dekhna..how it is looking?

m soch rha the loader m bhi new logo kaisa rhega?? ek baar. new logo loader m update krke dekhna..how it is looking?

@ShreyaDhiman24 conflictss

@ShreyaDhiman24 conflictss

solved..


New tray icon doesn't show online status nor unread alert

My Setup

Operating System: Fedora 29 fully updated
App Version: 2.15.0
Installation type: flatpak

[x] I have tested with the latest version
[x] I can simulate the issue easily

Description

Start Rocket.Chat
Enable tray icon
Screenshot: https://imgur.com/a/GlcG0nQ

Current Behavior

Tray icon doesn't show the online status nor it shows if there are unread messages
Expected Behavior

Display a green overlay image or change the icon to red to indicate the online status. For the unread messages I would expect a red overlay image as before

User presence (online, away etc.) is not shown in tray icon anymore since it was a convoluted feature for users using multiple Rocket.Chat servers. However, the unread status should be working... Does it not appear even on direct messages and mentions?

Not even. That screenshot was taken while a direct message was unread.

I have a similar issue where the icon just disappears after a day or two. Running on Windows 7 x64.
Screen Clip: https://imgur.com/a/G4cKtqO
If I quit and relaunch it comes back. This was not happening in 2.14.7.

I still have this in 2.15.1

Can't enable Unread Tray Icon Alert option. I select On, press Save changes, then RC reloads data and option again is Off.
Tray icon shows direct (or mentions) messages as small red dot, but doesn't show for any other messages (for example, Slack shows red dot for direct messages and mentions and green dot for all other unread messages)

Can't enable Unread Tray Icon Alert option. I select On, press Save changes, then RC reloads data and option again is Off.
2.17.2, Win 10

Same thing happens on MacOS client 2.16.0 with server version 2.4.2

@dmi7ry @sketch242 This seems to be an issue with Rocket.Chat server not persisting your user preferences. Do you mind opening an issue in the server repo?

Looks like someone beat us to it.  https://github.com/RocketChat/Rocket.Chat/issues/16288

Can't enable Unread Tray Icon Alert option. I select On, press Save changes, then RC reloads data and option again is Off.

Same here: Xubuntu 1910 (xfce 4.14), Rocket.Chat version 2.17.2-1555.
Although I never see the Rocket.Chat panel icon. the app "Rocket.Chat" is enabled in the list of applications in the notifications panel plugin. In the Rocket.Chat settings, notifications are enabled.
Whatever happens in Rocket.Chat, the icon does not get  shown in the panel.
When I re-visit the Rocket.Chat preferences (My Account - Preferences - Messages), the setting for "Unread Tray Icon Alert" is set to "off" again.

I have the same problem. Any solution?

Please test if the latest release did solve this. If not please reopen the issue or create a new one and tell us. I will be closing this one for now.
Thank you!


SAMZA-1949: Add java docs and configuration documentation for side inputs

Reopening https://github.com/apache/samza/pull/748 since I lost access to my previous account.

@bharathkk Let's pick this up and merge this when you have some time.

@prateekm I also added more documents and samples to illustrate side inputs for various API offering.


PredictMod v1.0 Push to Production

Hi @pmcneely, Urnisha and I have tested the PredictMod v1.0 and other than the MG items we discussed, the EHR portion meets our minimum viable product qualifications. If possible, I'd like to push just the EHR portion to production so that we have some progress to show to the VA. Is this feasible by the end of the month?

That is great news, thanks! Let me know if there's anything I can do to
help.
On Thu, May 18, 2023 at 9:30 AM Pat McNeely @.***>
wrote:

@lorikrammer https://github.com/lorikrammer Sure thing - we'll have
both MG and EHR portions running on the "production" (
hivelab.biochemistry.gwu.edu) by the end of the month.
—
Reply to this email directly, view it on GitHub
https://github.com/GW-HIVE/PredictMod/issues/98#issuecomment-1553057630,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZNMRJ3XVP2EICLGNMR3CG3XGYP5XANCNFSM6AAAAAAYFUM2YQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Lori Krammer | She/Hers
Research Assistant, HIVE Lab
Department of Biochemistry and Molecular Medicine
School of Medicine & Health Sciences
The George Washington University
Washington, DC 20037

The production server at hivelab.biochemistry.gwu.edu/gfkb/predictmod is live. I've also put in a shim for the metagenomic analysis so that one page will serve both flavors of the PredictMod utility.


display repository wiki

We don't seem to be using the wiki, let's disable it so people don't look at it.
We have doc/ in the repository which contains documentation.

Done