Fix a stack overflow within -[OCMBoxedReturnValueProvider handleInvocation:]

The code was using the method signature's return type to determine how large a stack buffer should be used for retrieving the overridden return value. This was problematic as the overridden return value may not be of the same type as the method signature's return type. It may be an unrelated type, in the case where -handleInvocation: would go on to throw an exception, or it may be a related type of a different size. This comes up when dealing with methods of a BOOL return type but overriding the return value with an integer literal (0/1) or C11 boolean constant (true/false) which are of type int and so require more than a single byte to store.
To address this we now use a size derived from the overridden return value's Objective-C type encoding to determine how
large a buffer is required.

No new tests are added as this is caught by existing tests when run with Address Sanitizer enabled.


Add LinkerD

Hi again,
Noticed that LinkerD wasn't on the list - hope I've got this right.
Thanks!

Probably worth noting that I haven't included the {{ .ExeExtension }} suffix as a result of #56 , but the package is available for Windows.

thanks @Sierra1011 & @Cleming

and sorry for the wait


Request: Show club summary

Hi,
It would be great if we can see a club summary menu, where you can see what players you got from the same club, country, league...
I see it most absent when doing a sbc, and I know I need 3 players from the same club for example, its really hard to find if you have or not.

If anyone knows a way to do this without having to loop over all club pages, please comment! Since we don't know which players were bought/sold/received/discarded on other mediums we need to check the club every once in a while to find out. With a very big club this would become cumbersome and a very long process.

You can use FUTBIN's import feature(https://www.futbin.com/user/club) and pull the data from there. Basically, ask user to first use the import feature on FUTBIN and then you can pull in the data and then you can use that data. Maybe that could work.

Using Futbins import feature is a no-go. Not everyone makes use of that, and they probably loop over your complete club every once in a while as well.
@nokai yes, if you have a way of getting the club details without too much hassle, please let us know.


Replace .bg-white with .bg-body in docs

Response to issue #32810
Use of the .bg-white class to define visual aspects of the examples
would be unintuitive for theme builders to test themes on.
This replaces instances of .bg-white with .bg-body in the examples.

Edited examples to replace use .bg-white class with .bg-body class

product
offcanvas
pricing
cheatsheet
cheatsheet-rtl

Edited utilities colors.md & shadows.md to include .bg-body class

A docs mention has been added to #32819.

A docs mention has been added to #32819.


Capture 'taps' as points

This PR captures all touches at JS level (including 'pan start'), and renders them natively.
fixes #5
fixes #6

Thanks for your contribution!


"Internal error occurred: failed calling webhook" GKE Private Cluster

Describe the bug:
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.2/cert-manager.yaml
kubectl apply -f clusterissuer.yaml
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
  name: letsencrypt-prod
  namespace: cert-manager
spec:
  acme:
    server: https://acme-v02.api.letsencrypt.org/directory
    email: _MYMAIL_
    privateKeySecretRef:
      name: letsencrypt-prod
    solvers:
    - dns01:
        cloudflare:
          email: _MYMAIL_
          apiKeySecretRef:
            name: cloudflare-apikey-secret
            key: apikey

kubectl apply -f ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/acme-challenge-type: dns01
    cert-manager.io/acme-dns01-provider: cloudflare
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: 'true'
  name: wp-bernd-ingress
  namespace: wp-bernd
spec:
  rules:
  - host: _MYHOST_
    http:
      paths:
      - backend:
          serviceName: wp-bernd-klaus-onl-svc
          servicePort: 80
  tls:
  - hosts:
    - _MYHOST_
    secretName: wp-bernd-tls

Error from server (InternalError): error when creating "ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io
": Post https://ingress-nginx-controller-admission.ingress-nginx.svc:443/extensions/v1beta1/ingresses?timeout=30s: net/http: request canceled while waiting for co
nnection (Client.Timeout exceeded while awaiting headers)

GKE FW Rule for Port 6443 was created.
Expected behaviour:
Create Ingress + Checkout Cert
Steps to reproduce the bug:
see above
Anything else we need to know?:
Environment details::
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.4-gke.10"
Cert-Manager 14.2
Install without Helm
/kind bug

failed calling webhook "validate.nginx.ingress.kubernetes.io indicates an issue in the Nginx Ingress component, not with cert-manager.
/triage support

hy @meyskens  - thanks for the fast reposne, ... ofc, have not tought about this. will look into it..


parse double-quoted Dot attributes

https://github.com/networkx/networkx/pull/2833

Pure pydot minimal reproducible example (MRE) for the issue of pydot/pydot#170, networkx/networkx#2832, networkx/networkx#2833:
import pydot

dot_data = """
digraph G{
    "A_0" [shape="ellipse" style=filled];
}
"""

g = pydot.graph_from_dot_data(dot_data)[0]
print(g)
print(g.get_nodes()[0].obj_dict['attributes']['shape'])
print(g.get_nodes()[0].obj_dict['attributes']['style'])

# Output (pydot 1.4.1)
#
# digraph G {
# "A_0" [shape="ellipse", style=filled];
# }
#
# "ellipse"
# filled

The question is why ellipse is stored with quotes. AFAICT, NetworkX closed the issue not because it was solved, but because they consider it a pydot issue that should be solved here at pydot.
This issue is related to and probably even a duplicate of pydot/pydot#72. Both concern DOT IDs. However, in pydot/pydot#72 it concerns node name IDs and here it concerns a DOT attribute IDs.
Let's try to discuss these issues in pydot/pydot#72 first, until it becomes clear that they really have different causes and solutions. Marking this as duplicate for now.


Consider boosting results that match multiple tokens on case changes

Consider boosting results that match all tokens that were generated from case changes. Target queries:

XmlSerializer - ExtendedXmlSerializer should be in the results
ImageSharp - RestSharp shouldn't be the second result
ClosedXml - ClosedXML.* packages should be second

This was fixed by Joel's update that required results match all tokens.


No module named env；No module named ddpg_agent

Excuse me, where are env and ddpg_agent

Check Reinforcement Learning and Pytorch folder please.

I just started learning robotics. So thank you very much for your reply. I've discovered my problem. But now when I run DDPG_pytorch_test.py, I get AttributeError: 'continuumEnv' object has no attribute 'seed'. Can you tell me why

Can you just comment env.seed(10) line in the DDPG_pytorch_test.py? Then it should work.

Wow, this is cool！your work is very good！ I will study hard and look forward to communicating with you again.

Thanks a lot. I am closing the issue then. If you have further problem, please open a new issue. Good luck with your studying :)


Helpers not logging correct values in production (minifaction?)

class app extends ReactiveComponent {
  constructor () {
    super(arguments);
    this.helpers({
      currentUser() { return Meteor.user() },
      isAdmin() { return Permissions.hasPermission(Meteor.userId(), 'admin') },
    })

    console.log(this.currentUser);
    console.log(this.isAdmin);
  }
}

On localhost the two values log the user object, and true respectively. However on the production host I'm getting undefined for the user object, and false for isAdmin.

@vacarsu data may be not loaded when you try to log it. Use $watch/autorun to be sure that data was loaded.

Probably related to #968

@vacarsu have you tried changing currentUser to currentUser1 ?
Did it help?

@vacarsu please use the new angular-with-auth package - http://www.angular-meteor.com/api/1.3.2/auth
Reopen if that doesn't work for you


Do Not merge - This is needed to work with the latest upstream nuttx

@pavel-kirienko
This is just a second place holder on top of the latest version PX4 is using of libuavcan on their master to build with upstream nuttx

@pavel-kirienko - this can now go into master.


[BUG] Please do not use deprecated flags.

Official Dockerimage use deprecated flag -config.
Please use --cfgpath instead.
https://github.com/DataDog/datadog-agent/blob/975738dbf7b054cb8ee438d14c6ec5081c415dab/Dockerfiles/agent/entrypoint.d/process-agent#L4
Agent Environment

I tried with public.ecr.aws/datadog/agent:7.42.1-jmx
Describe what happened:
WARNING log appears.
WARNING: `--config` argument is deprecated and will be removed in a future version. Please use `--cfgpath` instead.

Describe what you expected:]
No WARNING log.
Steps to reproduce the issue:
Use process-agent on official images.
Additional environment details (Operating System, Cloud provider, etc):

Hello @mitoma,
Thank you for reporting this issue! We have merged a fix for it. Since the release process for 7.43 has already started, this fix will be released in 7.44.
I'll leave this issue open until 7.44 is released, so that we can verify it is fixed.

This has been fixed in 7.44.0, but since then a different config was deprecated.
2023-05-01 15:22:49 UTC | PROCESS | INFO | (pkg/util/log/log.go:585 in func1) | process_config.enabled is deprecated, use process_config.container_collection.enabled and process_config.process_collection.enabled instead, see https://docs.datadoghq.com/infrastructure/process#installation for more information

However, I will close this issue and track the new one separately.


Feature/102

Fixes #102

Coverage remained the same at 100.0% when pulling fab22c3382b610a97d4db348182d040e979c6ad3 on feature/102 into 2fed3b38ad4bc82a7c567349b3dcd32efeba34ac on master.


Add missing import in installation doc URLconf section.

Thanks. The import seems to be redundant though since debug_toolbar is also imported at the first line in the if DEBUG block:

Oh, my bad. I didn't see it. so sorry.

Don't worry!


feat(FN-1853): squash migrations

Note: this has not fully been decided on yet, so this PR is functioning primarily as a proof of concept.
Introduction :pencil2:
We want to squash our migrations.
Resolution :heavy_check_mark:
Squashes all current migrations into a single migration.
Miscellaneous :heavy_plus_sign:

Codecov Report
Attention: Patch coverage is 0% with 16 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (feat/e2etf-sql@d6e04f8). Click here to learn what that means.

Files
Patch %
Lines

...ations/1711545731998-AddUtilisationReportTables.ts
0.00%
16 Missing :warning:

Additional details and impacted files
@@                Coverage Diff                @@
##             feat/e2etf-sql    #2943   +/-   ##
=================================================
  Coverage                  ?   32.99%
=================================================
  Files                     ?     1407
  Lines                     ?    31246
  Branches                  ?     4997
=================================================
  Hits                      ?    10310
  Misses                    ?    18307
  Partials                  ?     2629

Flag
Coverage Δ

api-test
0.40% <ø> (?)

unit-test
33.25% <0.00%> (?)

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

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


Talk organization/structure

How to structure the tracks, typoes of talks, durations, themes

please add others if needed

@henrikrexed and I had the Idea to have more but shorter talks; something like lightning talks?
-> therefore we could have more speakers and more diversity.
depending on the venue I would propose to have one "bigger" stage for keynotes and one for lightning talks.

lighting talks: 15 min
Speaking track or co spenaking: 30min
We should include sponsor talks as well. What about adding workshops of 90min the first day?

maybe we can also have a panel discussion on the "main" stage. end-users/customers and established engineers and/or maintainers etc.
probably also have 1/2/3 workshops at a "pre-day/evening". afternoon before the first day, meet-and-greet organizers/speakers
we need to consider that each/some sponsors will also want to have a speaking slot (30min)
-> maybe have a "small" stage in the expo roon for sponsor-presentations during coffee breaks
by now, we think that we at least need the following rooms at the venue:

one main room/main stage
one/two side-stages in a dedicated room
an expo room for sponsors, maintainers,..
a dedicated chillout area


fix sandbag height

resolves an issue on

#714
@MaloTV

The DamageOverlay for the sandbags needs to be edited as well or else it will move when damaged

thanks

I think it is so shifted up because the damage overlay "leaks" down so it needs to be shifted up like that. Not sure how I was going to fix it so I left it how it was 😅

Yup. I fixed this by just... clipping the extra details, unfortunately


Default screen resolution is Mobile

Why default screen resolution is Mobile? Shouldn't it be as some parameter? I was looking for any docs, but didn't found.

You can set it with http://webdriver.io/api/window/setViewportSize.html

See an example here
https://github.com/xolvio/meteor-cucumber/blob/master/sample-tests/hooks.js#L14


Getting window is not defined

I'm getting an error when I import the example into my code. window is not defined at node_modules/react-notification-badge/lib/components/AnimationCounter.js 33.2
When I tried to do an npm-install, I got<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
We are on React 15.4. Is this package just not compatible with React 15.x?

This package depend on React ^15.0.1
https://github.com/georgeOsdDev/react-notification-badge/blob/master/package.json#L62
Please tell me your app's package.json.
By the way,I'm not sure window is not defined is caused by React version issue.
It seems to be issue related with build flow like browserify or webpack.

Yes, it could be a webpack issue, if no other users have had this problem, we can close this issue.


How to launch ReactNative projects in fbsimctl-powered simulators?

Any ideas how to launch ReactNative-projects on all these iOS-simulators simultanously that was launched powered by fbsimctl?
When i launch the app with "react-native run-ios" it will only appear on the very first simulator that was launched. When i launch via XCode all other simulators will shutdown automatically except this one that was selected in the XCode launch-bar.
In the README is stated the command:
fbsimctl launch com.facebook.someapp
I replaced the app-id to mine and it did not help, but will output something like:

Error Domain=com.facebook.FBSimulatorControl Code=0 "App com.myown.appid can't be launched as it isn't installed"

It is also mentioned to call
fbsimctl install Someapp.app
I tried it with an exported IPA directly out of XCode. It produces:

Error Domain=com.facebook.FBSimulatorControl Code=0 "Could not determine Application information for path /private/var/folders/cj/c_zjt5x12ps_6q93t023qc4w0000gn/T/61863B0A-89D3-4002-ACC4-D31EC256BA50-70447-0000472A108998F9/Payload/XXXXXX.app" UserInfo={NSLocalizedDescription=Could not determine Application information for path /private/var/folders/cj/c_zjt5x12ps_6q93t023qc4w0000gn/T/61863B0A-89D3-4002-ACC4-D31EC256BA50-70447-0000472A108998F9/Payload/XXXXXX.app

Any ideas?

It looks like the IPA extraction component may be broken for this Application cc @zsol.
If you manually unzip the .ipa can you install the .app using fbsimctl install Someapp.app? Does the path ending Payload/XXXXXX.app exist on your filesystem?

We just released idb. a new tool that improves significantly over fbsimctl. idb can handle installation from a .ipa or a .app. We recommend switching over. As part of our renewed commitment to this repo we are cleaning up old issues and will be monitoring and reviewing more closely from now on. if you still think this issue is relevant feel free to reopen


Request - Need a Dimensional Blacklist 1.10.2

Issue Description:
The issue is sometimes chickens and more chickens are spawning in undesirable places.

yep, happens with compact machines, if you got any grass blocks inside random chickens will spawn turning it to a mess.

@Kazzamkablam I believe this can be done with a mod called In-Control I believe. I will still look into adding this later.


chore(docs): remove authenticate from README

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

Project coverage is 0.09%. Comparing base (a2db14a) to head (1fab4cd).

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #19   +/-   ##
=====================================
  Coverage   0.09%   0.09%
=====================================
  Files         77      77
  Lines       6561    6561
=====================================
  Hits           6       6
  Misses      6555    6555

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


Undo moving the colorization from the decorator to the loggers

Put it back in LoggingDecorator:  leaving that to the loggers creates more work when you create a new logger.  The formatting should be part of what slf4js gives you,

No, this isn't really correct after all.  The original reasons for colorizing in the actual Logger still apply:  each Logger knows how to implement colorizing messages in its environment (e.g., console vs. browser console).
That said, my criticism in this issue still applies: too much work in the Logger.  Thus, I compromised. I moved the colorization code to a separately utility where a Logger can require it and call it.

I moved the colorization to appenders.  Now I support multiple simultaneous appenders, as I always intended.


Decoding base64 body

Hi, Zaahid! Hope for your advice.
We receive non-standard emails from the same sender.
mail_example.txt as example (Some data has been removed, but this does not affect the main problem).
Email with headers:
Content-Type: multipart/mixed
Content-Transfer-Encoding: base64

The sender uses SAP Web Application Server 7.00, which encodes the entire body of the message in base64 encoding.
According to RFC 1521 such email is not valid
If a Content-Transfer-Encoding header field appears as part of a message header, it applies to the entire body of that message. If a Content-Transfer-Encoding header field appears as part of a body part's headers, it applies only to the body of that body part. If an entity is of type "multipart" or "message", the Content-Transfer-Encoding is not permitted to have any value other than a bit width (e.g., "7bit", "8bit", etc.) or "binary
As a workaround, we now use this construction
before check multipart/mixed and base64 and entire body is encoded in base64
$message = $zBatesonMimeParser->parse($nonStandardMail, false);
$message->removeHeader("Content-Transfer-Encoding");
$message->addRawHeader("Content-Transfer-Encoding", "binary");
$message->setContent(base64_decode($message->getContent()));
$message2 = $zBatesonMimeParser->parse($message->getStream(), false);

Perhaps there are better ways to do this?
Thank you for your attention.

Hi @denyszrazhevskiy --
That's pretty close to what I'd do.  I'm not a huge fan of base64_decode though since it doesn't work on streams which might be annoying for larger emails... here's what I'd do instead:
use ZBateson\MailMimeParser\Stream\HeaderStream;
use GuzzleHttp\Psr7\AppendStream;
use GuzzleHttp\Psr7;

$encoded = $zBatesonMimeParser->parse($nonStandardMail, false);
$message = $zBatesonMimeParser->parse(
    new AppendStream([ new HeaderStream($encoded), $encoded->getContentStream() ]),
    true
);

Hope that helps :)


ItemEntity#age shadows Entity#age

I think the name needs to be changed to something else, though I'm not sure exactly what. Calling it age is problematic because it shadows Entity#age and makes it private, making it difficult to reference the field from the parent class without a cast.
Also ItemEntity#age appears to function differently between client and server, meaning code that makes use of that field will cause weird desyncs and jumping of item entities, wheras Entity#age does not exhibit this behaviour.
ItemEntity#age also doesn't seem to properly reflect the way it's used. i.e. From implementing a similar entity for my own mod, I've been able to identify that it's used for two things:

It controls whether an item despawns, is merged, and can be picked up
It controls the rotation and vertical bobbing of the item on the client.

// ItemEntity.java
   @Environment(EnvType.CLIENT)
   public float method_27314/*getRotation*/(float tickDelta) {
      return ((float)this.getAge() + tickDelta) / 20F + this.hoverHeight;
   }

and
// ItemEntityRenderer.jsva
float verticalOffset = MathHelper.sin(((float)itemEntity.getAge() + tickDelta) / 10F + itemEntity.hoverHeight) * 0.1F + 0.1F;

I also suggest the following name changes:
Item#method_27314 -> Item#getRotation
Item#hoverHeight -> Item#uniqueOffset
Maybe calling it itemAge would do as a possible workaround, since Mojang appears to have called it Age in the nbt? I would also add a javadoc to the field so people are aware of the above noted desync issue. I've seen it occur white a few times in the past, both in vanilla and with mods, where items jump sporadically so it may be a more common problem that anyone seems to have noticed.
Also before anyone asks: The reason i noticed this as an issue was because:
A: Way back in the forge days I was trying to make items float on clouds, and they would jitter and ghost through before jumping back.
B: More recently I was implementing logic to make feathers float to the ground realistically, and saw somewhat similar behaviour. It would jump occassionally when using ItemEntity#age but would move smoothly when using Entity#age, which is why I recommend the change.

Seems this item.age is one of those fields that's only initially sent by packets and whose synchronization doesn't occur at all (expects client and server to increase that field consistently together).
In addition, this age has a special handling logic when it has Short.MIN_VALUE, like the pick up delay.


Quantization tables should have wider type (probably uint16_t)

8 bits are not enough to store many useful default quant tables (example: https://github.com/mozilla/mozjpeg/blob/master/rdswitch.c#L322-L333 by the way, this is apparently the table which is used by default in mozjpeg, they probably have good reasons for using it instead of the JPEG Annex K).
Even when using a table which is all ≤ 255, after the scaling with quality parameter the values can become bigger and I think it's not good to have to limit them. (both the standard cjpeg tool and the mozjpeg fork allow values larger than 255 in final quantization tables, it can be seen by inspecting jpeg files produced by them with djpeg -v -v example.jpg > /dev/null; as an extreme example, a file produced by cjpeg -q 1 has quantizer values as big as 6050)
If you agree with the idea of changing the quant tables type from uint8_t to uint16_t, I might try to develop a patch.

Hi,
thanks for the suggestion. I'm not convinced going above 255 is that useful. In the samples i've seen, the large entries above 255 are of the bottom-right corner of the quant matrices and i wonder if any coefficient ever gets dequantized using them at such low quality setting! (of course, twisted bitstreams doing this are always possible).
In any case, supporting > 255 tables is a bit more involved that what it looks: you need to change MAKE_INV_QUANT() and QUANTIZE() macros, re-write the sse2/NEON code, etc.
Btw, i noted a bug in my DQT-parsing function, fixed here:
https://github.com/webmproject/sjpeg/commit/897e13af57194d7aa34764cf08ba2064cf402a56
Thanks for bringing this to my attention!

hmm, yes, this indeed looks like too much work. I thought it's easier.


Create Customized Video Time

[ ] Set the Video in the central viewing area as the video with a offset starting time, so that the videos that user views will be in sync with each other.

[ ] The server should be able to keep track of the time and set the video offset according to how much other people have watched.

OK. 200 pts.


Everything left in work history

Context
WIP
Changes proposed in this pull request
WIP
Guidance to review
WIP
Link to Trello card
192 - Adding work history

This should have been opened as draft


Add Kafka hash partition type to improve query performance

Motivation
We use druid to store a large amount of monitoring data. By default, the Kafka index service is used to ingest data, and the query performance is very poor.
After analysis, by default, the monitoring data will be randomly written into each partition of Kafka. The data will be randomly consumed by Kafka peon, and the index will be established to generate segments.
When querying, the broker can only filter segments by time, and cannot further filter according to query conditions. It needs to scan a large number of real-time nodes, historical nodes, and a large number of segments, resulting in poor performance.
Proposed changes

Kafka real-time index service supports a new partition type, adding KafkaPartitionNumberedShardSpec class, which extents from NumberedShardSpec ,Override the possibleInDomain function in the KafkaPartitionNumberedShardSpec class, implement hash filtering, and add the following core fields:type = "kafka_partition", kafkapartitionids, partitiondimensions.

Modify the KafkaIndexTask class to support the KafkaPartitionNumberedShardSpec type in kafkaindextask.newdriver.

Add the partitionfunction field in the configuration of Kafka ingression spec, and configure all fields that need to be hashed in the partitionfunction.

Add a simple hash code to the data production side:

int p = hash(dim1,dim2,...)
ProducerRecord<byte[], byte[]>(topic, p,event)

Rationale
When writing data, partition the data, which is beneficial to compression and sorting. During the query, the scanning range is further trimmed by the user-defined filter conditions to optimize the performance of concurrent queries.
Performance comparison
Before optimization

After optimization

This kind of approach is definitely great for performance. The main reason we haven't done it yet is that it can be too fiddly for most users. A key problem is: what happens if the producer doesn't correctly do the hash codes? What if we want to add partitions to the kafka topic? We would want to build something that the average user could use easily, and correctly.
Something I had thought of in the past, but never implemented, was to do something like you suggest, but add an extra safety step that detects if partitioning has been done correctly by the kafka producer. If it has, then we write shard specs that are pruneable; otherwise we write ones that are not pruneable. Another option would be to use Bloom filters for pruning rather than hash function, that way we are flexible to whatever way data has been partitioned by the producer. Bloom filters could be too big to stuff into a shard spec, though.
I'm wondering if you have thoughts around how this could be done in a way that is robust to the user doing partitioning "wrong", adding partitions, etc?
Btw, I'm not sure if you are doing this already, but after handoff you can use reindexing / compaction to rewrite data with range partitioning and get pruneable shard specs. We do this in production for some datasources that originate from Kafka.

thank you for your reply。
In fact, we have used this technology in large-scale clusters and have seen better query performance.
Our implementation may be more complicated than I have described. In a table, we use not only hash partitions but also enumeration partitions, considering data skew and combining hash partitions.
I also want to talk about my own views on some of the issues you mentioned above.

what happens if the producer doesn't correctly do the hash codes?

I think we can implement something similar to the client SDK to constrain this behavior. The Kafka header carries some partition information, indicating that the producer writes data according to the specification.

What if we want to add partitions to the kafka topic?

The Kafka producer can specify to write the existing partition. Even if the partition is added, the old partition can still be written. In most cases, the partition of Kafka topic only allows capacity expansion, not capacity reduction.
Because it is very expensive to delete the topic, the volume will not be reduced by deleting the topic.

We would want to build something that the average user could use easily, and correctly.

I think that average users prefer to configure their tables step by step through the browser interface in the existing way, so there will be no mental burden.
If Druid can provide the implementation of Kafka partition type at the database level, many developers do not need to implement and maintain these nonstandard codes, and can unlock more performance.


How to Delete a key locally?

When using IPFS I want to unsubscribe the topic and .delete(key)  locally. Not delete the key across the network.
How do I Achieve this?

You could disconnect from the network and then delete the key. What is the problem here?
You can disconnect with y.connector.disconnect(). But I don't know if y-ipfs supports this (I'm not the author of the package)

There is no need to disconnect .delete() infact deletes just the local copy. I just tested.
Thanks, Anyways. :)


envoy won't start as a user if /dev/shm/envoy_shared_memory_0 is owned by root

If you normally run envoy as a user (say: istio-proxy), but you run it as root to debug something, you won't be able to then start it again as the non-root user.
/dev/shm/envoy_shared_memory_0 is owned by root and Istio crashes when it can't read it.
Deleting that file and restarting brings everything back to life.
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.366][15786][critical][assert] external/envoy/source/server/hot_restart_impl.cc:43] panic: cannot open shared memory region /envoy_shared_memory_0 check user permissions
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.367][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:101] Caught Aborted, suspect faulting address 0x6d00003daa
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.367][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:85] Backtrace obj</lib/x86_64-linux-gnu/libc.so.6> thr<0> (use tools/stack_decode.py):
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.367][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #0 0x7f2993968fcf
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.367][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #1 0x7f299396a3f9
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.367][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:93] thr<0> obj</usr/local/bin/envoy>
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.368][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #2 0x5fa612
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.368][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #3 0x5fa83b
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.368][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #4 0x4c44bb
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.368][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #5 0x41adb5
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.369][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:93] thr<0> obj</lib/x86_64-linux-gnu/libc.so.6>
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.369][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #6 0x7f29939562b0
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.369][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:93] thr<0> obj</usr/local/bin/envoy>
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.369][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:95] thr<0> #7 0x44ca88
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.369][15786][critical][backtrace] bazel-out/local-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:97] end backtrace thread 0
Nov 26 23:36:42 localhost istio-start.sh[15754]: W1126 23:36:42.370554   15781 agent.go:204] Epoch 0 terminated with an error: signal: aborted
Nov 26 23:36:42 localhost istio-start.sh[15754]: W1126 23:36:42.370624   15781 agent.go:303] Aborted all epochs
Nov 26 23:36:42 localhost istio-start.sh[15754]: [2017-11-26 23:36:42.577][15789][critical][assert] external/envoy/source/server/hot_restart_impl.cc:43] panic: cannot open shared memory region /envoy_shared_memory_0 check user permissions

@craigbox not really sure what we can do better here. Do you want the error message without the panic/abort (clean exit(1))?

Your call - in this case it appears you know you can't start but then crash trying. You could either exit cleanly, or open an new shared memory file?
Doesn't matter to me, I'm unlikely to make the mistake again :)

Going to close for now as the error message is clear before the panic. If this comes up again we can get rid of the abort.


Hardware and software loading

After connected hardware and software loading stucked

/*
MIT License
Copyright (c) 2021 Felix Biego
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <Update.h>
#include "FS.h"
#include "FFat.h"
#include "SPIFFS.h"
#include <NimBLEDevice.h>
//#include <SD.h>             // For OTA with SD Card
#define BUILTINLED 2
#define FORMAT_SPIFFS_IF_FAILED true
#define FORMAT_FFAT_IF_FAILED true
#define USE_SPIFFS  //comment to use FFat
#ifdef USE_SPIFFS
#define FLASH SPIFFS
#define FASTMODE false    //SPIFFS write is slow
#else
#define FLASH FFat
#define FASTMODE true    //FFat is faster
#endif
#define NORMAL_MODE   0   // normal
#define UPDATE_MODE   1   // receiving firmware
#define OTA_MODE      2   // installing firmware
uint8_t updater[16384];
uint8_t updater2[16384];
#define SERVICE_UUID              "15c155ca-36c5-11ed-adc0-9741d6a72f04"
#define CHARACTERISTIC_UUID_RX    "15c1564c-36c5-11ed-adc1-a3d6cf5cc2a4"
#define CHARACTERISTIC_UUID_TX    "15c156e2-36c5-11ed-adc2-7396d4fd413a"
static BLECharacteristic* pCharacteristicTX;
static BLECharacteristic* pCharacteristicRX;
static bool deviceConnected = false, sendMode = false, sendSize = true;
static bool writeFile = false, request = false;
static int writeLen = 0, writeLen2 = 0;
static bool current = true;
static int parts = 0, next = 0, cur = 0, MTU = 0;
static int MODE = NORMAL_MODE;
unsigned long rParts, tParts;
static void rebootEspWithReason(String reason) {
Serial.println(reason);
delay(1000);
ESP.restart();
}
class MyServerCallbacks: public BLEServerCallbacks {
void onConnect(BLEServer* pServer) {
Serial.println("Connected");
deviceConnected = true;
}
void onDisconnect(BLEServer* pServer) {
  Serial.println("disconnected");
  deviceConnected = false;
}

};
class MyCallbacks: public BLECharacteristicCallbacks {
//    void onStatus(BLECharacteristic* pCharacteristic, Status s, uint32_t code) {
//      Serial.print("Status ");
//      Serial.print(s);
//      Serial.print(" on characteristic ");
//      Serial.print(pCharacteristic->getUUID().toString().c_str());
//      Serial.print(" with code ");
//      Serial.println(code);
//    }

void onRead(BLECharacteristic* pCharacteristic) {
  Serial.print(pCharacteristic->getUUID().toString().c_str());
  Serial.print(": onRead(), value: ");
  Serial.println(pCharacteristic->getValue().c_str());
};

void onNotify(BLECharacteristic *pCharacteristic) {
  //uint8_t* pData;
  std::string pData = pCharacteristic->getValue();
  int len = pData.length();
  //        Serial.print("Notify callback for characteristic ");
  //        Serial.print(pCharacteristic->getUUID().toString().c_str());
  //        Serial.print(" of data length ");
  //        Serial.println(len);
  Serial.print("TX  ");
  for (int i = 0; i < len; i++) {
    Serial.printf("%02X ", pData[i]);
  }
  Serial.println();
}

void onWrite(BLECharacteristic *pCharacteristic) {
  //uint8_t* pData;
  std::string pData = pCharacteristic->getValue();
  int len = pData.length();
  // Serial.print("Write callback for characteristic ");
  // Serial.print(pCharacteristic->getUUID().toString().c_str());
  // Serial.print(" of data length ");
  // Serial.println(len);
  // Serial.print("RX  ");
  // for (int i = 0; i < len; i++) {         // leave this commented
  //   Serial.printf("%02X ", pData[i]);
  // }
  // Serial.println();

  if (pData[0] == 0xFB) {
    int pos = pData[1];
    for (int x = 0; x < len - 2; x++) {
      if (current) {
        updater[(pos * MTU) + x] = pData[x + 2];
      } else {
        updater2[(pos * MTU) + x] = pData[x + 2];
      }
    }

  } else if  (pData[0] == 0xFC) {
    if (current) {
      writeLen = (pData[1] * 256) + pData[2];
    } else {
      writeLen2 = (pData[1] * 256) + pData[2];
    }
    current = !current;
    cur = (pData[3] * 256) + pData[4];
    writeFile = true;
    if (cur < parts - 1) {
      request = !FASTMODE;
    }
  } else if (pData[0] == 0xFD) {
    sendMode = true;
    if (FLASH.exists("/update.bin")) {
      FLASH.remove("/update.bin");
    }
  } else if (pData[0] == 0xFE) {
    rParts = 0;
    tParts = (pData[1] * 256 * 256 * 256) + (pData[2] * 256 * 256) + (pData[3] * 256) + pData[4];

    Serial.print("Available space: ");
    Serial.println(FLASH.totalBytes() - FLASH.usedBytes());
    Serial.print("File Size: ");
    Serial.println(tParts);

  } else if  (pData[0] == 0xFF) {
    parts = (pData[1] * 256) + pData[2];
    MTU = (pData[3] * 256) + pData[4];
    MODE = UPDATE_MODE;

  } else if (pData[0] == 0xEF) {
    FLASH.format();
    sendSize = true;
  }

}

};
static void writeBinary(fs::FS &fs, const char * path, uint8_t *dat, int len) {
//Serial.printf("Write binary file %s\r\n", path);
File file = fs.open(path, FILE_APPEND);
if (!file) {
Serial.println("- failed to open file for writing");
return;
}
file.write(dat, len);
file.close();
writeFile = false;
rParts += len;
}
void sendOtaResult(String result) {
byte arr[result.length()];
result.getBytes(arr, result.length());
pCharacteristicTX->setValue(arr, result.length());
pCharacteristicTX->notify();
delay(200);
}
void performUpdate(Stream &updateSource, size_t updateSize) {
char s1 = 0x0F;
String result = String(s1);
if (Update.begin(updateSize)) {
size_t written = Update.writeStream(updateSource);
if (written == updateSize) {
Serial.println("Written : " + String(written) + " successfully");
}
else {
Serial.println("Written only : " + String(written) + "/" + String(updateSize) + ". Retry?");
}
result += "Written : " + String(written) + "/" + String(updateSize) + " [" + String((written / updateSize) * 100) + "%] \n";
if (Update.end()) {
Serial.println("OTA done!");
result += "OTA Done: ";
if (Update.isFinished()) {
Serial.println("Update successfully completed. Rebooting...");
result += "Success!\n";
}
else {
Serial.println("Update not finished? Something went wrong!");
result += "Failed!\n";
}
}
else {
  Serial.println("Error Occurred. Error #: " + String(Update.getError()));
  result += "Error #: " + String(Update.getError());
}

}
else
{
Serial.println("Not enough space to begin OTA");
result += "Not enough space for OTA";
}
if (deviceConnected) {
sendOtaResult(result);
delay(5000);
}
}
void updateFromFS(fs::FS &fs) {
File updateBin = fs.open("/update.bin");
if (updateBin) {
if (updateBin.isDirectory()) {
Serial.println("Error, update.bin is not a file");
updateBin.close();
return;
}
size_t updateSize = updateBin.size();

if (updateSize > 0) {
  Serial.println("Trying to start update");
  performUpdate(updateBin, updateSize);
}
else {
  Serial.println("Error, file is empty");
}

updateBin.close();

// when finished remove the binary from spiffs to indicate end of the process
Serial.println("Removing update file");
fs.remove("/update.bin");

rebootEspWithReason("Rebooting to complete OTA update");

}
else {
Serial.println("Could not load update.bin from spiffs root");
}
}
void initBLE() {
BLEDevice::init("NimBLE OTA");
BLEDevice::setMTU(517);
BLEDevice::setPower(ESP_PWR_LVL_P9);
BLEServer *pServer = BLEDevice::createServer();
pServer->setCallbacks(new MyServerCallbacks());
BLEService *pService = pServer->createService(SERVICE_UUID);
pCharacteristicTX = pService->createCharacteristic(CHARACTERISTIC_UUID_TX, NIMBLE_PROPERTY::NOTIFY | NIMBLE_PROPERTY::READ );
pCharacteristicRX = pService->createCharacteristic(CHARACTERISTIC_UUID_RX, NIMBLE_PROPERTY::WRITE | NIMBLE_PROPERTY::READ | NIMBLE_PROPERTY::WRITE_NR);
pCharacteristicRX->setCallbacks(new MyCallbacks());
pCharacteristicTX->setCallbacks(new MyCallbacks());
pService->start();
pServer->start();
// BLEAdvertising *pAdvertising = pServer->getAdvertising();  // this still is working for backward compatibility
NimBLEAdvertising *pAdvertising = BLEDevice::getAdvertising();
pAdvertising->addServiceUUID(SERVICE_UUID);
pAdvertising->setScanResponse(true);
pAdvertising->setMinPreferred(0x06);  // functions that help with iPhone connections issue
pAdvertising->setMinPreferred(0x12);
pAdvertising->start();
//BLEDevice::startAdvertising();
Serial.println("Characteristic defined! Now you can read it in your phone!");
}
void setup() {
Serial.begin(115200);
Serial.println("Starting BLE OTA sketch");
pinMode(BUILTINLED, OUTPUT);
//SPI.begin(18, 22, 23, 5);       // For OTA with SD Card
//SD.begin(5);                    // For OTA with SD Card
#ifdef USE_SPIFFS
if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) {
Serial.println("SPIFFS Mount Failed");
return;
}
#else
if (!FFat.begin()) {
Serial.println("FFat Mount Failed");
if (FORMAT_FFAT_IF_FAILED) FFat.format();
return;
}
#endif
initBLE();
}
void loop() {
switch (MODE) {
case NORMAL_MODE:
  if (deviceConnected) {
    digitalWrite(BUILTINLED, HIGH);
    if (sendMode) {
      uint8_t fMode[] = {0xAA, FASTMODE};
      pCharacteristicTX->setValue(fMode, 2);
      pCharacteristicTX->notify();
      delay(50);
      sendMode = false;
    }
    if (sendSize) {
      unsigned long x = FLASH.totalBytes();
      unsigned long y = FLASH.usedBytes();
      uint8_t fSize[] = {0xEF, (uint8_t) (x >> 16), (uint8_t) (x >> 8), (uint8_t) x, (uint8_t) (y >> 16), (uint8_t) (y >> 8), (uint8_t) y};
      pCharacteristicTX->setValue(fSize, 7);
      pCharacteristicTX->notify();
      delay(50);
      sendSize = false;
    }

    // your loop code here
  } else {
    digitalWrite(BUILTINLED, LOW);
  }

  // or here

  break;

case UPDATE_MODE:

  if (request) {
    uint8_t rq[] = {0xF1, (cur + 1) / 256, (cur + 1) % 256};
    pCharacteristicTX->setValue(rq, 3);
    pCharacteristicTX->notify();
    delay(50);
    request = false;
  }

  if (writeFile) {
    if (!current) {
      writeBinary(FLASH, "/update.bin", updater, writeLen);
    } else {
      writeBinary(FLASH, "/update.bin", updater2, writeLen2);
    }
    writeFile = false;
  }

  if (cur + 1 == parts) { // received complete file
    uint8_t com[] = {0xF2, (cur + 1) / 256, (cur + 1) % 256};
    pCharacteristicTX->setValue(com, 3);
    pCharacteristicTX->notify();
    delay(50);
    MODE = OTA_MODE;
  }

  break;

case OTA_MODE:
  if (writeFile) {
    if (!current) {
      writeBinary(FLASH, "/update.bin", updater, writeLen);
    } else {
      writeBinary(FLASH, "/update.bin", updater2, writeLen2);
    }
  }

  if (rParts == tParts) {
    Serial.println("Complete");
    delay(5000);
    updateFromFS(FLASH);
  } else {
    writeFile = true;
    Serial.println("Incomplete");
    Serial.print("Expected: ");
    Serial.print(tParts);
    Serial.print("Received: ");
    Serial.println(rParts);
    delay(2000);
  }
  break;

}
}

It's not compatible with Felix Biego ESP32_BLE_OTA_Arduino. Decided to create new Arduino/PlatformIO library
ArduinoBleOTA from scratch, because ESP32_BLE_OTA_Arduino does not support security and integrity mechanisms
Please use instead:
https://github.com/vovagorodok/ArduinoBleOTA/blob/main/examples/basic/main.ino

I also want to develop flutter app could you tell me what steps are needed to upload firmware file using ble ota

Sure. I prefer to work with VS Code with PlatformIO extension  to compile and flash ESP32.

MICROCONTROLLER SIDE. Compile and flash example ArduinoBleOTA to ESP32 (prefered env:esp32dev_nimble for now). Or add ArduinoBleOTA library to your existing project by:

lib_deps =
<EMAIL_ADDRESS>build_flags =
	-D USE_NIM_BLE_ARDUINO_LIB

PHONE SIDE. Compile ble_ota_app and install apk to your phone. If you need compiled apk let me know. I'll release apk in Google Play  Store soon (one small issue should be resolved before that)

Please ask me for details. I'll try to answer you ASAP

Sure. I prefer to work with VS Code with PlatformIO extension to compile and flash ESP32.

MICROCONTROLLER SIDE. Compile and flash example ArduinoBleOTA to ESP32 (prefered env:esp32dev_nimble for now). Or add ArduinoBleOTA library to your existing project by:

lib_deps =
	https://github.com/vovagorodok/ArduinoBleOTA
build_flags =
	-D USE_NIM_BLE_ARDUINO_LIB

PHONE SIDE. Compile ble_ota_app and install apk to your phone. If you need compiled apk let me know. I'll release apk in Google Play  Store soon (one small issue should be resolved before that)

Please ask me for details. I'll try to answer you ASAP

@vovagorodok
I am working on flutter app using flutter blue plus library. I facing issue in implementation of sending file to esp32

Not sure what is needed from my side. ble_ota_app uses flutter_reactive_ble package, not flutter_blue_plus. ble_ota_app not for uploading files but for upload/update firmware.
Do You search solution for upload/update firmware or just for sending files over ble?

@vovagorodok i want to update firmware from binary file using app

Than please compile i flash ArduinoBleOTA example as first step.
Are You use Arduino IDE or Visual Studio Code + PlatformIO?

Than please compile and flash ArduinoBleOTA example as first step.
Are You use Arduino IDE or Visual Studio Code + PlatformIO?

I want to perform ble ota from file which user send using app

ble_ota_app supports it. Upload local files are disabled for registered hardware (in order to protect users from uploads by indecent). If You want to allow/enable logal files upload for all please enable option in: Settings -> "Always allow local files upload"


URL fix and global variable change

This pull request fixes the Newsapi registration link (.com => .org), which currently points to some random search engine, and also removes an unnecessary global argument from the show_news() function.

lets talk @wilt00 https://gitter.im/instantnews/Lobby


Debug Failure. Parameter symbol already has a cached type which differs from newly assigned type.

Bug Report

🔎 Search Terms

Error: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
🕗 Version & Regression Information

This is a crash
This changed between versions 4.6.4 and 4.7.2
This is still happening with the currently latest 4.8.3

⏯ Playground Link

Can't reproduce in the playgorund. To reproduce, run:
tsc code.js --allowJs --noEmit --target esnext.

💻 Code
code.js

class Model {
  save() {
    return this.createMissingLabels()
      .then(() => this.$store.save(this));
  }

  createMissingLabels() {
    if (this.labels && Array.isArray(this.labels)) {
      return Promise.all(this.labels.map(
        label => this.$store.createLabel(label)
      )).then(labels => (this.labels = labels));
    }
    return Promise.resolve();
  }
}

🙁 Actual behavior

Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type

🙂 Expected behavior

No crash

Unsurprisingly, this bisects to #43845, so this appears to be another case where we are accidentally fixing a parameter more than once, but what must be a different code path than #49740.

Seeing this same issue on 4.7.2. Switching to 4.6.4 remedied the problem, but definitely less than ideal.

I've just ran into this issue on 4.9.3 and while it for some reason fails to reproduce on TSPlayground I did manage to make it reproduce on the TS Bug Workbench. Interestingly, it does not reproduce on the current Nighty (5.0.0-dev.20221130) and instead produces proper TS errors:

4.9.3 Bug Workbench
Nightly Bug Workbench

I ran into this when upgrading TS from 4.2.3 to 4.9.3 on a large internal project. I can't boil it down to a reproducable set of code, but here are the steps I followed to find the offending section of code so I could refactor how the types were specified.

Run tsc with --generateTrace traceOutputDir
Then run npx @typescript/analyze-trace traceOutputDir

At the top of the output was a path to the file that was last processed. I was then able to comment out all of the code in the file, verify that the compile was successful and then slowly reintroduce code until necessary.
In my case, I was able to add an explicit type to a generic function that was trying to do type inference.
You can read more about that analyze-trace tool here

Hi,
I'm running into this issue here: https://github.com/skaut/wordpress-version-checker/actions/runs/6865709436/job/18670310204?pr=1051
I know the file where the issue happens (here), but have no idea how to fix this. And unlike others, I'm on TS 5.2.2
Happy to help investigating this, just don't really know how. On my local machine, it's a heisenbug :(

This was fixed in TypeScript 5.0. @marekdedic if you can still reproduce a bug with the same error message, please file a new issue with some repro steps. The logs from the CI run you linked have expired. Thanks!

Hi @andrewbranch
Thanks for the response, unfortunately, I am still getting this with TS 5.3. I filed a new issue (#57435) with a repro. Could you please take a look at it there and let me know if there's anything more you need?


Failed to pull singularity image

Description of the bug
I'm running the pipeline and getting this error:
ERROR ~ Error executing process > 'NFCORE_SCNANOSEQ:SCNANOSEQ:UCSC_GTFTOGENEPRED'
Caused by:
Failed to pull singularity image
command: singularity pull  --name depot.galaxyproject.org-singularity-ucsc-gtftogenepred-447--h954228d_0.img.pulling.1727829650369 https://depot.galaxyproject.org/singularity/ucsc-gtftogenepred:447--h954228d_0 > /dev/null
status : 255
hint   : Try and increase singularity.pullTimeout in the config (current is "20m")
message:
FATAL:   Error making http request: Head "https://depot.galaxyproject.org/singularity/ucsc-gtftogenepred:447--h954228d_0": dial tcp <IP_ADDRESS>:443: connect: connection refused
Command used and terminal output
nextflow run -r dev nf-core/scnanoseq --input './Elena-cDNA-2/20240624_1312_1D_PAW58377_76308a2c/fastq_pass/fastq_data.csv' --outdir scnanoseq_test --fasta '/datasets/work/hb-rabbit-gbc/work/Maria_Jenkel_ONT_Data_04-07-2024/Rabbit_New/fasta/genome.fa' --gtf '/datasets/work/hb-rabbit-gbc/work/Maria_Jenkel_ONT_Data_04-07-2024/Rabbit_New/genes/genes.gtf' --barcode_format 10X_3v3 -profile singularity

Relevant files
slurm-64022331.txt
System information
nextflow version <IP_ADDRESS>14
HPC
slurm
singularity
Linux
dev

Hi @sme229 :
Thanks for reporting - this is an issue that has been observed (sporadically) in other nf-core pipelines as well, so we will need to solve it on an individual basis (unlikely to be something within scnanoseq itself).
Let's start with the following steps:

Please ensure you set a singularity cache directory ($NXF_SINGULARITY_CACHEDIR). You can do so with something like export NXF_SINGULARITY_CACHEDIR=<path_in_your_system>, noting that the path_in_your_system should be location with sufficient storage (a bit on this is present at https://nf-co.re/docs/usage/getting_started/introduction/#tips-and-tricks.

Please run the pipeline with the test profile first. This will allow you to a. ensure the pipeline is running properly with a downsample input b. along the way it will download the images, and if there are continued issues we will be able to test them quicker.

You can run the test (after completing step 1 above), with the following command:
nextflow run nf-core/scnanoseq -r dev  -profile test,singularity --outdir ./scnanoseq_test_out

Let us know what happens with the above.

Hi @lianov thanks so much for your help, it has now completed successfully.


Introspect and refresh token end point does not work with AD Authentication

Authorization server successfully gives the token and store in SQL server database but during introspect endpoint and refresh token endpoint it gives following error
java.lang.IllegalArgumentException: The class with org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap and name of org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap is not in the allowlist. If you believe this class is safe to deserialize, please provide an explicit mapping using Jackson annotations or by providing a Mixin. If the serialization is only done by a trusted source, you can also enable default typing. See https://github.com/spring-projects/spring-security/issues/4370 for details
The above issue does not exist  with in memory authentication.

Closing this as a duplicate. See this comment for details.


meson: Override dependencies to improve usage as a subproject

With this change, graphene can be consumed as a subproject without
making any changes to the build files of a project. All you need to do
is provide a wrap file with a [provide] section:
https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
This is also necessary because otherwise projects need to hard-code
the subproject name, which might be graphene when using wrap-git or
graphene-1.10.8 when using wrap-file (to build from a release
tarball). This can cause conflicts between different subprojects that
consume graphene differently.
Other projects like glib, cairo, pango, etc already do this.
Also, stop using fallback: kwarg for deps that don't need it.

Thanks!


lastCompletedGeneration is always 0

https://github.com/isaaguilar/terraform-operator/blob/050359562e483474fbd031d9cf758154c68b872b/pkg/controllers/terraform_controller.go#L541
lastCompletedGeneration  is status is always 0 for me
I would expect it to be "9" in this particular case.
status:
  lastCompletedGeneration: 0
  outputs:
    instance_ip_addr: |-
      {
XXXXXXXXXXXXXX
      }
  phase: completed
  podNamePrefix: oskarrro-testo-ko7txe2x
  stage:
    generation: 9
    interruptible: true
    podType: ""
    reason: COMPLETED_APPLY
    startTime: "2022-11-10T20:58:19Z"
    state: complete
    stopTime: "2022-11-10T20:58:19Z"
  stages: []

Thanks, I'll increment the status on successful workflow executions. I didn't find that field very useful, but it should be a trivial fix.


When "cr.Spec.Image.Tag" is empty use "c.VMAgentDefault.Version" as default in func "newDeployForVMAlert"

When "cr.Spec.Image.Tag" is empty use "c.VMAgentDefault.Version" as default in func "newDeployForVMAlert":

Should use c.VMAlertDefault.Version as default

Thanks for reporting! Will be fixed at the next release.

Added to the 0.17.1 release


[WIP][GWS] management

Changes Unknown when pulling ad89e426830ae03dcca51e932acc06f8b5f8d6f5 on sunny4381:features/management into ** on shirasagi:dev/gws**.


.babelrc 热替换问题

之前 clone了一个版本，.babelrc 有个配置
"env": {
"development": {
"presets": ["react-hmre"]
}
}
现在 .babelrc 把该配置去掉了，我在修改组件之后并没有更新。
并且会报如下提示：
process-update.js:81[HMR] The following modules couldn't be hot updated: (Full reload needed)
This is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html for more details.
如果带上env配置， prod 打包以后 运行就会报 react module错误。
不知道该如何处理，希望能给一个方案。

之前用的 hot reload 模块不更新了，最近我会更新一个版本，用新的模块
On Wed, Dec 14, 2016 at 9:26 PM, zhangping2014<EMAIL_ADDRESS>wrote:
之前 clone了一个版本，.babelrc 有个配置
"env": {
"development": {
"presets": ["react-hmre"]
}
}
现在 .babelrc 把该配置去掉了，我在修改组件之后并没有更新。
并且会报如下提示：
process-update.js:81[HMR] The following modules couldn't be hot updated: (Full reload needed)
This is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html [http://webpack.github.io/docs/hot-module-replacement-with-webpack.html] for more details.
如果带上env配置， prod 打包以后 运行就会报 react module错误。
不知道该如何处理，希望能给一个方案。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [https://github.com/fireyy/react-antd-admin/issues/8] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AAEC83qhOWEwsRggdR99SWg88dFFjrQDks5rH-59gaJpZM4LM6wa] .

如果更新好了 麻烦在问题下面回一下。 @fireyy

done b899eca50f70ffa5cb1c6ec51a878474e51b6352

谢谢 @fireyy


Exception caught in Api Request NoSuchMethodError

Class 'List<dynamic>' has no instance getter 'keys'.
I/flutter (31423): Receiver: Instance(length:0) of '_GrowableList'
I/flutter (31423): Tried calling: keys

There is no check for torrent list response from ApiRequest before accessing its path keys so when the torrent list is empty still it tries to access 'keys' getter which doesn't exist.
@harchani-ritik I propose to add a check for elements/size of response torrent list before accessing any of it's method to prevent this exception.

Class 'List<dynamic>' has no instance getter 'keys'.
I/flutter (31423): Receiver: Instance(length:0) of '_GrowableList'
I/flutter (31423): Tried calling: keys

There is no check for torrent list response from ApiRequest before accessing its path keys so when the torrent list is empty still it tries to access 'keys' getter which doesn't exist.
@harchani-ritik I propose to add a check for elements/size of response torrent list before accessing any of it's method to prevent this exception.

Same issue occurs in history screen too, in case of empty list.

@rj-since-2000 I guess you can create one single issue detailing all the error handling issues and I guess @tusharojha is already working on the error handling PR

#90 #91 #89 #73 #83 are all related to error handling.

Not all of these but yes majorly the issues related to error handling will be resolved in #64.
Actually, I am waiting for @harchani-ritik  for a review after that I will make the suggested changes.

@tusharojha Could you mention the issues that your PR might resolve so that @rj-since-2000 can work on the others.

@pratikbaid3 @tusharojha
PR #64 is moreover related to errors related to server side response and adding all these error handling to it may end up having too much for a single PR. I think we can have a single issue for all these issues

Could you mention the issues that your PR might resolve so that @rj-since-2000 can work on the both

Sure, #90 #91 only.

@tusharojha If you have solved this issue in #64 should I close this ?


Allow port number in FN_REGISTRY for private registry support

Fixes #69.
After the discussion in https://github.com/fnproject/cli/pull/72 it looks like any heavy name validation will be moved to server side. However this doesn't fix the issue of the validateImageName implementation blocking port numbers in the image prefix. This PR just makes that function a bit more flexible and allows people to move forward with custom private registry paths and the like.
This now supports FN_REGISTRY being anything like:

owner (for docker.io)
hostname.com (for custom registry)
hostname.com:port (for custom registry on custom port)
hostname.com/owner (for owner in custom registry)

Docker push automatically works out when you're talking about a custom registry or an owner in docker.io by matching on the first part of the full image name. (see https://github.com/docker/distribution/blob/master/reference/normalize.go#L33)

Thanks!


SearchView margin and padding

How to remove padding and margin from the search view ? What does search_version_margins do ?

It is adding margin to SearchView. Or you can set your own in XML.

How to set our own in XML ?

android:margin attribute in xml ...


ICM: Automate replication deployment

scale down live
dbprepare + replication edit system
scale down edit
copy sites folder from edit to live
backup edit db
restore live db
scale up edit and live

Not the right aproach since we need admin right on the managed instace.


Golem

Fun concept
loses games more often than not, Very expensive to field short (40G + captain)
Has tech potential with kohan buffs and provided modifiers.
unlimited morale is always handy, vulnerable to enchantments but could soak DPS from range quite well.
Very slow. 14 MS. MS
average DV mandatory being a "weaker elemental"
Adjustments
Unit Cost 10 - > 8 (already expensive upkeep)
Movementspeed  14 - > 15

An interesting note, golems don't have a listed commission cost. 10 is the default value assigned to any unit missing CostGold in its INI

huh, wasn't aware of that


feat: Add support for filtering encrypted field in list of values

I have implemented a fix for issue: https://github.com/47ng/prisma-field-encryption/issues/119.
Almost the same as PR: https://github.com/47ng/prisma-field-encryption/pull/120

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

6 of 10 (60.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.8%) to 78.469%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/encryption.ts
6
10
60.0%

Totals

Change from base Build<PHONE_NUMBER>3:
-0.8%

Covered Lines:
273

Relevant Lines:
328

💛  - Coveralls

Any idea on ETA of this MR?

I'm hoping to get more free time during the holidays to give this project a fresh coat of paint 🤞


Allow accessing information_schema... tables

As reported by Paul:
SELECT table_name
FROM information_schema.tables
WHERE table_schema='public'
AND table_catalog='banking'

And I get this error:
[PG_DIFFIX] Tables without an anonymization label can't be accessed in anonymized mode.

For some reason it works with pg_catalog.... tables.
One workaround is to use treat_unmarked_tables_as_public = on; setting

Also pg_catalog.pg_tables is not whitelisted.


Demo Gif added to README.md

Description
Added Demo gif to readme

Checklist:

[ ] Code follows the style guidelines
[ ] Code commented in relevant places
[ ] Changes to necessary documentation made
[ ] Has test cases for code.

Tests Performed:

[ ] Upload data to Datastore
[ ] Retreive data from Datastore
[ ] Map Visualization
[ ] Network Map Visualization
[ ] List other manual test cases performed

Looks really good!


Update dependency svelte to v3.24.0

This PR contains the following updates:

Package
Type
Update
Change

svelte
devDependencies
minor
3.23.2 -> 3.24.0

Release Notes

sveltejs/svelte
v3.24.0
Compare Source

Support nullish coalescing (??) and optional chaining (?.) operators (#1972)
Support import.meta (#4379)
Fix only setting <input> values when they're changed when there are spread attributes (#4418)
Fix placement of {@html} when used at the root of a slot, at the root of a component, or in <svelte:head> (#5012, #5071)
Fix certain handling of two-way bound contenteditable elements (#5018)
Fix handling of imported value that is used as a store and is also mutated (#5019)
Do not display a11y-missing-content warning on elements with contenteditable bindings (#5020)
Fix handling of this in inline function expressions in the template (#5033)
Fix collapsing HTML with static content (#5040)
Prevent use of $store at compile time when top-level store has been shadowed (#5048)
Update <select> with one-way value binding when the available <option>s change (#5051)
Fix published tweened types so the .set() and .update() options are optional (#5062)
Fix contextual bind:this inside {#each} block (#5067)
Preprocess self-closing <script> and <style> tags (#5080)
Fix types for animation- and transition-related param objects so each param is optional (#5083)

Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will now ignore this update (3.24.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


issue with snakemake

I've just finished installing Atlas and am having some trouble running a test assembly. I don't know Snakemake well enough to trouble shoot this error so I apologize if this is a naive question. The error is below:
BIO-C02WG1PRHTDF:metagenomics kabirpeay$ atlas assemble config.yaml
[2018-10-11 21:15 INFO] Executing: snakemake --snakefile /Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/Snakefile --directory /Users/kabirpeay/Desktop/metagenomics --printshellcmds --jobs 8 --rerun-incomplete --configfile '/Users/kabirpeay/Desktop/metagenomics/config.yaml' --nolock --use-conda  --config workflow=complete --
SyntaxError:
Not all output, log and benchmark files of rule error_correction contain the same wildcards. This is crucial though, in order to avoid that two or more jobs write to the same file.
File "/Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/Snakefile", line 177, in
File "/Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/rules/assemble.snakefile", line 128, in
[2018-10-11 21:15 CRITICAL] Command 'snakemake --snakefile /Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/Snakefile --directory /Users/kabirpeay/Desktop/metagenomics --printshellcmds --jobs 8 --rerun-incomplete --configfile '/Users/kabirpeay/Desktop/metagenomics/config.yaml' --nolock --use-conda  --config workflow=complete -- ' returned non-zero exit status 1.

Sorry for that. Come back to it this afternoon. Try 'atlas qc' for the
start.
On Fri, Oct 12, 2018, 06:33 Kabir Peay<EMAIL_ADDRESS>wrote:

I've just finished installing Atlas and am having some trouble running a
test assembly. I don't know Snakemake well enough to trouble shoot this
error so I apologize if this is a naive question. The error is below:
BIO-C02WG1PRHTDF:metagenomics kabirpeay$ atlas assemble config.yaml
[2018-10-11 21:15 INFO] Executing: snakemake --snakefile
/Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/Snakefile
--directory /Users/kabirpeay/Desktop/metagenomics --printshellcmds --jobs 8
--rerun-incomplete --configfile
'/Users/kabirpeay/Desktop/metagenomics/config.yaml' --nolock --use-conda
--config workflow=complete --
SyntaxError:
Not all output, log and benchmark files of rule error_correction contain
the same wildcards. This is crucial though, in order to avoid that two or
more jobs write to the same file.
File
"/Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/Snakefile",
line 177, in
File
"/Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/rules/assemble.snakefile",
line 128, in
[2018-10-11 21:15 CRITICAL] Command 'snakemake --snakefile
/Users/kabirpeay/anaconda3/lib/python3.6/site-packages/atlas/Snakefile
--directory /Users/kabirpeay/Desktop/metagenomics --printshellcmds --jobs 8
--rerun-incomplete --configfile
'/Users/kabirpeay/Desktop/metagenomics/config.yaml' --nolock --use-conda
--config workflow=complete -- ' returned non-zero exit status 1.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pnnl/atlas/issues/139, or mute the thread
https://github.com/notifications/unsubscribe-auth/AHLK2nE6MvJOFYVJxp8QoLMYuFXvlx5Sks5ukBufgaJpZM4XYxiZ
.

Hey @mykophile
Atlas is under development. But I pulled the newest version.
Could you try to install it directly from github; see Readme for instructions.
It should have everything to fix your issue, maybe you need to install biopython.
Good luck, and thank you for using Atlas.


toolchain: on Fedora + CentOS, use the Ubuntu 18.04 clang

I was hoping it would avoid errors I see on a Fedora host like:
external/llvm_toolchain/bin/clang: /lib64/libtinfo.so.5: no version information available (required by external/llvm_toolchain/bin/clang)

But it doesn't; however Fedora releases are much closer to 18.04
anyway, so I think this would be a good change anyway.

Thank you for your PR.
Can you also fix the test in fedora_test.sh? You can run that script directly to run the test.
Most likely you will have to install libtinfo5.so in the docker image in that test. I can also look into it if it's not clear.

@siddharthab I've fixed that Fedora test!  I'm not sure why the mac build is failing -- I think it is unrelated to this PR?

Thank you!


Load testing for CoMPAS

As a PO
I want to know how CoMPAS performs when looking at response times (multiple substations/ multiple versions)
So I know if it's acceptable or not
Background:
The CoMPAS needs to be fast enough for end-users. This can be tested inside the company firewall. If this required we can later added to a public servers and automate this for the community once a need occurs.
Acceptance criteria:
-Document test setup
-Share testsetup with other CoMPAS users
-Build the test script and add it to the repository
-report the error findings in an seperate issue
-Report findings here as well

Typical: 2800 substations x 10 SCD files per substations = over 10k substations
Typical size 50 Megabyte (without compression)

The idea is to use Gatling (https://gatling.io/open-source/) for performance test and robot framework for integration tests. @AliouDIAITE does this sounds good for RTE?


install nvidia libs like HOW?

About your "guide":
What bottles runner? soda? wine?
What preset? App \ gaming \ Custom?
Then Install "setup_nvlibs.sh".
No WINEPREFIX? simply ./setup_nvlibs.sh ?
when writing a guide be detailed
No matter what runner, it returns:
00dc:err:wgl:X11DRV_WineGL_InitOpenglInfo  couldn't initialize OpenGL, expect problems
Driver nvidia installed,
D.E. : XFCE4
Bottles installed through Flatpak.

I agree. The guide needs lots of work. Right now it's here to help me remember how I did it "last time it worked". Check out the daz forums for more help and info.


Load default presets

Description
When a project is created the user should get the default presets with its associated fields and icons. What we end up after talking with @gmaclennan is the following:

Bundle the default config file inside the app (probably on this repo). This can change in terms of user need. i.e. the config could be distributed as a regular file that gets loaded through a dialog in the frontent.
When creating a new project, we first delete all the presets in the db (to avoid db bloat) and then load and write to the db the default fields, icons and lastly the presets.
After inviting a new peer to the project, they would get all the default presets from the project creator

Additionally we discussed replacing the format from a tarball to a zip (since it can be open in every OS without a command line) and the extension from .mapeosettings to .mapeoconfig.
I've already created the issue on the mapeo-settings-builder repo to take that into account for future configs

Can you split this into two issues:

Add a project.importConfig({ pathToConfigFile }) method that imports presets, fields and icons from a config file into the database.
Pre-populate the database with default config when a project is first created.

(1) should be done first, then we can work on (2) separately.


Swarm info logging is sent to stderr

Issue
Logging from Swarm node in etcd backed cluster with level=info is sent to stderr
Versions
Swarm 1.2.5
etcd 3.0.9

Run command
docker --host <IP_ADDRESS>:2376 run --detach  --restart=always --name=swarm-join --label=availset=worker --label=type=swarm.node --env SERVICE_IGNORE=true --volume /etc/docker:/etc/docker swarm:1.2.5 join --advertise <IP_ADDRESS>:2376 etcd://<IP_ADDRESS>:2379/swarm

Log being sent to stderr
time="2016-11-17T09:33:42Z" level=info msg="Registering on the discovery service every 1m0s..." addr="<IP_ADDRESS>:2376" discovery="etcd://<IP_ADDRESS>:2379/swarm"

To verify
docker logs swarm-node > stdout.log 2>stderr.log

Stderr.log contains all the messages of the type given above
This causes our logging tool to register this message as an error, which obviously is not something we want.

Not sure why it was set to stderr for log output. @aluzzardi ?
https://github.com/docker/swarm/blame/master/cli/cli.go#L48
		log.SetOutput(os.Stderr)


You shouldn't need to add all classes in a heirarchy when suppression constructors

From<EMAIL_ADDRESS>on October 12, 2008 21:38:41
When using suppressConstructorHeirachy you should be able to do:
@PrepareForTest( SuppressConstructorHierarchyChild.class )
@RunWith(PowerMockRunner.class)
public class SuppressConstructorHierarchyDemoTest {
@Test
public void testSuppressConstructor() throws Exception {
suppressConstructorCodeHierarchy(SuppressConstructorHierarchyChild.class);
}
..
}
instead of
@PrepareForTest( { SuppressConstructorHierarchyChild.class,
SuppressConstructorHierarchyParent.class,
SuppressConstructorHeirarchyEvilGrandParent.class })
@RunWith(PowerMockRunner.class)
public class SuppressConstructorHierarchyDemoTest {
..
}
Original issue: http://code.google.com/p/powermock/issues/detail?id=24

From<EMAIL_ADDRESS>on October 12, 2008 12:39:12
Summary: You shouldn't need to add all classes in a heirarchy when suppression constructors

From<EMAIL_ADDRESS>on October 13, 2008 09:39:25
Already works
Status: Fixed


[dv,chip] Increase timeout for RMA mode

Increase timeout when moving to RMA LC, required when using real flash model when each erase operation is very long.

@jdonjdon I think I can override it in the closed source but since it is relevant for any real flash model, if it will stay here, others can benefit from this change as well.

n override it in the closed sourc
@sha-ron, I agree this is for real flash model but I am not sure it is for any real flash model.
Other vendor models may require different adjustment. So to me it is still vendor specific.

@jdonjdon I think most flash devices are similar and since there is some guard band here it will be ok and better than what we have now,
Anyway, let me know what you decide and I will update accordingly.

Fixed per @jdonjdon suggestion.


Added ZOPEN_NAME in buildenv file

Have added ZOPEN_NAME var to handle the numbered tarballs

@IgorTodorovskiIBM @MikeFultonDev  Can you please review. I am not aware where else to add the reviewers.


Feature/mock pickup

What's here (& why)

Can now schedule a mock pickup
SwiftUI helpers
Model changes to adjust to mock data
Code organization

Needs review

My ability to stay on task and not devolve into refactoring when working on a task 😬

Agreed, honestly! I went into a bit of a fugue state trying to fix a SwiftUI bug and just ended up all over the place in an effort to fix it, and got distracted by some things along the way without really realizing it until all was said and done. Just making this pull request woke me up to the fact that my work style has been leaning a bit too far towards the chaotic side. 😅 I'm working to reign it in though.


Please review the recommended value of the CSP

The recommended value of the CSP written in the last table seems a little kinder [script-src https: 'nonce'] than ['nonce']. What do you think?

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

ID: 32dfe62d-84d9-fa1f-742b-91f2f0c3478c
Version Independent ID: 32dfe62d-84d9-fa1f-742b-91f2f0c3478c
Content: Security issues (preview)
Content Source: power-pages-docs/security/site-checker-security.md
Service: power-pages
GitHub Login: @vamseedillimsft
Microsoft Alias: vamseedilli

Thank you for your feedback.  Closing the issue.


Add a method of creating a table with splitKey

Usually hbase has a lot of data to write, in order to spread the write pressure, the pre-partition will be created in advance, so I add a method of creating a table with splitKey.

LGTM!


dev: Explore how we architect "Contract Account" to store bytecode as 32 or 16 bytes instead of 1-byte / storage

Describe the Feature Request
On Cairo 0, we are currently storing all bytecodes as 1-byte data. So for a 10Kb contract, we are triggering 10.000 stores(when deploying the contract) and also 10.000 reads(on any contract call), which is expensive as for every storage or read a hash is calculated.
With storage improvement to 32 or 16 bytes, we decrease the amount of store and reads.
Describe Preferred/Possible Solution

Use storage index: Besides storing 32/16 bytes for each storage, once the hash for the storage location is calculated we can access up to 256 more slots by adding to the index.

Use dw(currently not possible). We could use dw to store the code in the contract and just access them as needed.

Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

[x] Yes
[ ] No

Closing as PR and design will encompass it #279
Also this issue isn't accurate, as we already pack 16 bytes into storage for bytecode


Feature: Support distro packages

OSSEC started to provide packages for various distros (RHEL, CentOS, Debian, Ubuntu):
http://www.ossec.net/?page_id=19
Those packages provide things like init-scripts/systemd units which currently are not provided by this cookbook (except for Arch).
It would be nice to support installation/configuration of those packages with this cookbook.
related: #43 #38

Oh nice!
In my opinion we should just rip out all the source compile stuff and support only package installs. That's the only really sane way to maintain this going forward so we don't have all the "bump version" pull requests.

:+1:

I've made a start on this but it's a little more painful than it should be. I don't want to add the whole "atomic" repository so I'm looking at the standalone "ossec" repository. EPEL is required for inotify-tools but that's okay. The repository lacks the 2.8.2 release and the WUI package though. The RPMs are also signed with a key that doesn't match any of the published ones. Someone else reported this almost a year ago and no one replied. Haven't looked at the DEBs yet.

DEBs for 2.8.2 are now up but still no WUI.
I've done a lot more on this now and have put the result so far up on our packages branch. I've had to break the recipes up slightly because Debian has no common package whereas CentOS does. We need to install the package in order to create the user that will own the configuration file.
Facing more issues with the DEBs including ossec-batch-manager.pl not being present and the ossec user being created with a home at /home/ossec instead of /var/ossec. Please follow along with the fun on the mailing list!

We're using packages on both RHEL and Debian now


Server-side rendering with hooks-based makeStyles() API

Expected Behavior
I should be able to pass a SheetsRegistry to <JssProvider> and it should be populated with styles generated from calls to makeStyles().
Current Behavior
SheetsRegistry is not populated with CSS from calls to makeStyles().
The SSR documentation is empty so this may be par for the course for the new @material-ui/styles package.
Your Environment
"@material-ui/core": "3.5.1",
"@material-ui/styles": "^3.0.0-alpha.0"

You do no longer need the JssProvider component. The server side part API & documentation was left behind. We have had many reports that the current setup is too complicated. I think that we should simplify it. It's the occasion. Now, if you don't want to wait this effort, you can still make it work. It should be about using our StylesProvider component over JssProvider.

Got it, I'll take a look at using StylesProvider, thanks!

Should we continue to use createMuiTheme from '@material-ui/core/styles' ? Doesn't seem like @material-ui/styles provides its down version.

@material-ui/styles is a standalone styling package. The theme must be imported from @material-ui/core.

@oliviertassinari This distinction isn't super clear given that @material-ui/styles contains modules such as ThemeProvider. For this reason, having certain theming logic be split between the two packages may be confusing to the end user.

The ThemeProvider is used for a generic theme and is not specific to the theme shape used in @material-ui/core.
It's basically just a utility component that is both context consumer and provider in order to merge outer themes with the theme passed via props.
The distinction is made via ThemeProvider vs MuiThemeProvider naming.

I am experiencing an issue where we are transitioning to the hooks and finding that production class name generation is having overlap between the styles created from makeStyles and those done via the traditional withStyles() connector function to classes.  There are two 'jss1', etc. classnames made.  This is causing some really wacky behavior.  Is this related?

@TroySchmidt see #13800

@pheuter  Could you manage to use makeStyles with SSR?
The sheetsRegistry only contains the custom styles but not the theme styles.


Add example to show usage of functions find_reader and select_app

This example includes a simple python script showing the usage of the functions find_reader and select_app. It also includes a documentation explaining how the program uses these functions to get some basic card information and how a person might use this example themselves.
Now all the naming scheme problems should be gone.

Updated the README.md as requested in #6


fix: replace file (DEV-4118)

resolves DEV-4118

Please load the project in the store for cases when there is no project in the store. This is the case when we route to a resource directly or via the search. Then there is no project in the store. We could use resource.attachedToProject and then load it into the store.

Please load the project in the store for cases when there is no project in the store. This is the case when we route to a resource directly or via the search. Then there is no project in the store. We could use resource.attachedToProject and then load it into the store.

@domsteinbach  should work now

Please load the project in the store for cases when there is no project in the store. This is the case when we route to a resource directly or via the search. Then there is no project in the store. We could use resource.attachedToProject and then load it into the store.

@domsteinbach should work now

When you search for a resource in a new tab - without having worked within the project before, it does not work to replace a file. Err. Msg displayed in the snackbar: "Cannot read properties of undefined (reading 'shortcode')"

@domsteinbach I have added attachedToProject in the upload component parameters. It works everywhere now.


Update best-practices.md with turbo mode

🚀 Deployed on https://66abe86b0e9243522def3e2f--cozy-fox-0defec.netlify.app


Publish 7.6-20221005014152+0000

Publish 7.6-20221005014152+0000

@bot-gradle test and merge

OK, I've already triggered a build for you.


LoCon LoRA settings formula

Can you give some formulas
How many unet rank and text encoder rank we should set?
According to what?
What learning rates we should apply?

There is no formula for the settings
all depends on your base model/ what you want to train and your dataset.
But you may want to read this experiment:
https://rentry.org/LyCORIS-experiments


Port the examples from packed_simd

packed_simd hosts various examples in its repo, featuring classics like

[ ] Aobench
[ ] Dot Product
[ ] Fannkuch Redux
[ ] Mandelbrot
[ ] Matrix Inverse
[ ] N-Body
[ ] Options Pricing
[ ] Slice Sum
[ ] Spectral Norm
[ ] Stencil
[ ] Triangle Xform

We've already had users come up with code (in spite of not even being published to crates.io), so obviously we're doing something right in terms of making a decently intuitive API, but we should port some of these to the current API to provide more practical working examples, and also tacitly a bench suite, in this repo or another. That or we should figure out why we're not doing so.

Should every example be packaged in a mini-crate? or would a single runnable for Rust Playground be a better idea?

Cargo supports examples in the examples/ directory, which can be automatically built and tested: https://doc.rust-lang.org/cargo/guide/project-layout.html)
I would put them each in their own file in there.


Refine the secret name in Build example yaml

Refine the secret name in Build example yaml as a better name.

First the credentials needs the name parameters

Change the secret names for builder and output to a better names

/lgtm
/approve


y-axis label issue

My chart is correct, except for the Y-axis always showing 0.

My options object is:
const options = {
    maintainAspectRatio: false,
    legend: {
        display: false
    },
    tooltips: {
        mode: 'nearest'
    },
    cornerRadius: 20,
    scales: {
        xAxes: [{
            ticks: {
                autoSkip: true,
                maxTicksLimit: 4,
                fontSize: 12,
                fontFamily: "Montserrat",
                fontColor: "#0f1222"
            },
            gridLines: {
                display: false,
                drawBorder: false
            }
        }],
        yAxes: [{
            gridLines: {
                display: false,
                drawBorder: false
            },
            ticks: {
                fontSize: 12,
                fontFamily: "Montserrat",
                fontColor: "#0f1222"
            }
        }]
    }
};

And my data is:
const yesterday = {
    labels: [
        "12 AM", "1 AM", "2 AM", "3 AM", "4 AM", "5 AM", "6 AM", "7 AM", "8 AM", "9 AM", "10 AM", "11 AM",
        "12 PM", "1 PM", "2 PM", "3 PM", "4 PM", "5 PM", "6 PM", "7 PM", "8 PM", "9 PM", "10 PM", "11 PM"
    ],
    datasets: [
        {
            label: 'Yesterday',
            backgroundColor: '#7d49c6|#daa3ff',
            borderWidth: 0,
            hoverBackgroundColor: 'rgba(110, 215, 195, 1)',
            data: [0, 0, 0, 0, 0, 2, 33, 30, 44, 56, 12, 15, 23, 34, 45, 54, 10, 34, 56, 55, 44, 40, 20, 12]
        }
    ]
};

Here is my chart:
<Bar id="test" height={ 200 } data={ props.data } options={ props.options } />

Any ideas what might be going on?

Well that sucks... apparently the issue was with using the Brave browser.   Turning off the shields in the browser makes both the tool tips (an issue I didn't report) and this y-axis numbering issue work correctly.


Cannot build SignalR-rel-2.0.0

This is my first comment here, so first of all let me thank you all the hard work you put into this library!
The problem I encountered is that the version labeled with SignalR-rel-2.0.0 can not be built. I ran the build.cmd /t:Restore command, and it gave me the following output:
Output
Where can these missing packages be found? If some additional package feeder is needed, then it would be wise to put its url into the readme file (or the build script could automatically update the package source list if a nuget.exe location is given in a command arg)
Is there any way to have a .NET Core 2.0 compatible version of SignalR?

SignalR rel/2.0.0 isn't a thing. In fact the branch should be deleted as it means nothing (since nothing shipped).
We're preparing for an alpha of SignalR Core (1.0.0-alpha1) on top of ASP.NET Core 2.0 (the only version that will run on ASP.NET Core 2.0) next week. Here's a sample on how to run it today https://github.com/davidfowl/SignalRCoreAlphaSample.

@davidfowl By the way, what is your versioning strategy for SignalR?
I would hope that it would match the version of ASP.NET Core that it is running on top of.
So, v2.0.0-alpha1 would be the first release.
I understand that it is weird from an engineering point of view, but it would make a lot more sense for end-users (I remember the whole confusing with the versions for .NET Core 1.x, .NET Standard 1.x, etc).
Actually, considering that this library lives in the Microsoft.AspNetCore namespace, I think it also makes sense from an engineering point of view.

@davidfowl
Will there by MSSQL support in the alpha? e.g.
https://docs.microsoft.com/en-us/aspnet/signalr/overview/performance/scaleout-with-sql-server
In your sample app it looks like only a redis package is available at the moment.
Thanks!

@OpenSpacesAndPlaces In an ASP.NET Community Standup, Damian said that it will only be Redis for now.

@KPixel as for versioning the product as 2.0.0 or 2.1.0 instead of 1.0.0, we'll discuss it after the alpha since it won't align with the ASP.NET core version right now anyways.

@davidfowl Thank you for your answer. Can't wait for the release.


Javascript linter does not obey javascript.implicitProjectConfig.experimentalDecorators for decorators in script tags

VSCode Version: 1.43.0
OS Version: n/a

I have the  javascript.implicitProjectConfig.experimentalDecorators set to true in my settings:
Given a script.js
@MyDecorator
class MyClass {
     ...
}

Does not produce any warnings as expected.
However in index.html:
...

...

The linter says Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.

This has the same root cause as #26338:

I realize this is known, but I will add the mention with respect to @json.
Here is the relevant docs page, if a person wanted to make a unit test using @json: https://laravel.com/docs/7.x/blade
If anyone finds this in the future, if "javascript.implicitProjectConfig.experimentalDecorators": false, is set in settings.json, it should suppress this error.
Additionally, both tsconfig.json and jsconfig.json files, in the root of the project, take precedence over that settings.json setting.


python310Packages.platformdirs: 3.5.1 -> 3.10.0

Description of changes
Update platformdirs to its latest version.
Changelog: https://github.com/platformdirs/platformdirs/compare/3.5.1...3.10.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

I will re-open this against staging as it requires a big rebuild.


Pass data from component to Angular Basic Modal.

Hello Team,
I need to know how do I pass the data from component to the basic modal popup while opening the same.
As i need to pass on the data and will be utilised with the save button functionality available in modal popup component.
Thanks in advance.
Kind Regards,
Kunal Kakkad

Hello,
I am pretty confused by the answer, can you please just elaborate it with code snippet kind of thing?

Why not do something like this?
import { Component } from '@angular/core';
import { BaseModal, BaseModalConfig, BasicModalService } from 'angular-basic-modal';
import { SaveService } from './save.service';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  bmc = new BaseModalConfig();

  dataToSave = {
    key1: 'value-a', key2: 'value-b', key3: 'value-c'
  }

  constructor(private modal: BasicModalService, private saver: SaveService) {
  }

  askToSave() {
    const bmc = new BaseModalConfig();
    bmc.title = 'Save?';
    bmc.message = 'Save ' + JSON.stringify(this.dataToSave) + ' ?';
    bmc.width = 400;
    bmc.height = 160;
    bmc.cancelBtn = 'Cancel';
    bmc.confirmBtn = 'Save'

    this.modal.show(bmc, BaseModal).then((res: string) => {
      if (res === 'Save') {
        // Make call to service to save data.
        console.log('saving...');
        this.saver.saveToBackend(this.dataToSave)
          .subscribe(result => {
            console.log(result);
          });
      }
    });
  }
}

Service mock-up:
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable()
export class SaveService {

  constructor(private http:HttpClient) {
  }

  saveToBackend(data:any) {
    const url = 'https://foobar/rest/xyz';
    return this.http.post(url, data);
  }
}```


Update apt packages to include nano

Users have been asking for nano so they don't get stuck in vim

If we were feeling nice we'd also make sure nano is set as default in everyone's gitconfig but I don't recommend we do this because (as far as I know), it's not that simple (we don't want to mess about with editing everyone's config files, which they may already have set up how they like.
Would it maybe be easier to set global default text editor (i.e. not just git) to nano?

I added RUN update-alternatives --set editor /bin/nano which seems to successfully make git default to nano

It didn't work for me until I unset my EDITOR env variable. I don't know what set it - it's not in the our Docker file or the rocker Dockerfile, or start.sh. I assume it gets set somewhere along the way and so I've added the unset EDITOR.

Confirmed that others have EDITOR set to vi by default, so it needs unsetting.

This got released on rstudio 3.4.2-6. See: https://github.com/ministryofjustice/analytics-platform-rstudio/releases