Lightstreamer stops after 2 hours

Hello everyone,
Hope you're all ok in those tough times,
I have an issue with the lightstreamer stream api : it works fine for about 2 hours and then stops.
I have found online that it's a problem with the LOOP that "finishes its natural cycle" so I need to reconnect and subscribe to all the feeds that I had but I can't find a way to detect that "end of cycle".
I tried to log something everytime I receive a loop message but I don't log anything.
Please help! It drives me crazy! :)
Thanks in advance,
Sacha

I've made a workaround :
In the IGStreamService class, I've added a new thread that checks every few seconds if the data has been updated. If yes, nice, if not, disconnect and reconnect.
I plan on sharing the code but I really need to clean it as there are a lot of new variables and functions just for my use-case. I'll remove all of this, make sure everything works and make a pull request because you gave us a really great tool, so the least I can do is to help a little

In my opinion this shouldn't be a concern of the "end user" or someone using the library. The library should handle this. Thanks for your workaround @sacharbit could be a good solution until this is implemented in the library. It appears that other libraries handle a "LOOP" message.
There is useful thread here: https://labs.ig.com/node/162 that talks about using the HEARTBEAT epic which apparently keeps your session from expiring or whatever the LOOP message means has happened. This could be another workaround. I've successfully got a HEARTBEAT subscription working and I'm currently running it with a debug log level. If I don't report back here then you can probably assume that the HEARTBEAT subscription solves the issue for me.
Back to the library though, which is where I think the LOOP should be handled. I'll raise an issue to discuss if it's already handled somehow and I can have a go at doing what needs to be done when a LOOP message occurs.
For those wanting to implement a HEARTBEAT workaround, I did it like so, just under my other subscriptions:
        heartbeat_items = ["TRADE:HB.U.HEARTBEAT.IP"]
        heartbeat = Subscription(
            mode='MERGE',
            items=heartbeat_items,
            fields=["HEARTBEAT"],
        )

        heartbeat.addlistener(self.on_heartbeat_update)
        sub_heartbeat = ig_stream_service.ls_client.subscribe(heartbeat)

Then I have an "on_update" method that really does nothing apart from print so I know it's doing something:
    def on_heartbeat_update(self, item_update):
        print(item_update["values"])

Just for completion, if you need debug level log, then add this:
    logging.basicConfig(level=logging.DEBUG, format='%(message)s')

Well that heartbeat didn't solve it for me.

So I made sure to be up to date with what's in Master and ran my stream in debug mode. I expected it to fail but by the time I went to bed it was still running and it was even still running in the morning. I looked back through the log and could see it rebinding successfully. I've updated everything on my server and am now running it with logging turned on. Hopefully it's just to ensure you're running the latest code to fix this issue.

Nope, got a LOOP with no rebind.

woaw! That was a rollercoaster of emotions :D

Make sure that in lightstreamer file in line around 350, you have rebind=True and receive=False
because for me it works!

@oliverpolden Have you made progress on handling LOOP in the library? If not I will give it a try; been facing that same issue and I'm tired of it! But wouldn't want to start from scratch if you've already got uncommitted code.

No I’m afraid not.

On 5 Jul 2020, at 13:52, RRMXkun<EMAIL_ADDRESS>wrote:

@oliverpolden Have you made progress on handling LOOP in the library? If not I will give it a try; been facing that same issue and I'm tired of it! But wouldn't want to start from scratch if you've already got uncommitted code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

I've made a pull request. Basically, you have to add the version and LS_CONTENT_LENGTH.
My pull request : https://github.com/ig-python/ig-markets-api-python-library/pull/127

Pull request has been merged in

Hi, I'm seeing a disconnect after about 6 hours, and experienced this every time I've subscribed.  I'm curious about the setting Message = None, and then stopping the While Loop by setting receive = False, when I received a Timeout.  Here is my stack trace.  Is there a way to handle the connection drops for this timeout error? Would adding rebind = True in the first If Message is None cause issues?
Thanks
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\trading_ig\lightstreamer.py", line 333, in _receive
message = self._read_from_stream()
File "C:\Python38\lib\site-packages\trading_ig\lightstreamer.py", line 170, in _read_from_stream
line = self._stream_connection.readline().decode("utf-8").rstrip()
File "C:\Python38\lib\http\client.py", line 659, in readline
result = self.fp.readline(limit)
File "C:\Python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "C:\Python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "C:\Python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Hi, I'm seeing a disconnect after about 6 hours, and experienced this every time I've subscribed.  I'm curious about the setting Message = None, and then stopping the While Loop by setting receive = False, when I received a Timeout.  Here is my stack trace.  Is there a way to handle the connection drops for this timeout error? Would adding rebind = True in the first If Message is None cause issues?
Thanks
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\trading_ig\lightstreamer.py", line 333, in _receive
message = self._read_from_stream()
File "C:\Python38\lib\site-packages\trading_ig\lightstreamer.py", line 170, in _read_from_stream
line = self._stream_connection.readline().decode("utf-8").rstrip()
File "C:\Python38\lib\http\client.py", line 659, in readline
result = self.fp.readline(limit)
File "C:\Python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "C:\Python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "C:\Python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

@chis86

Would adding rebind = True in the first If Message is None cause issues?

Yes it would, the connection is still active at this point we just received an empty message, so we wouldn't want to rebind at this stage. By the time you receive the error you're seeing we're already out of the loop as en exception has been raised by this part of the code:
            try:                 message = self._read_from_stream()                 log.debug("Received message ---> <{0}>".format(message))             except Exception:                 log.error("Communication error")                 print(traceback.format_exc())                 message = None
Therefore you will never reach the if message=None part.
The only way to address this that I can see is to make use of the Heartbeat:
   heartbeat = Subscription(mode='MERGE', items=["TRADE:HB.U.HEARTBEAT.IP"], fields=["HEARTBEAT"])     heartbeat.addlistener(heartbeat_update)     sub_heartbeat = ig_stream_service.ls_client.subscribe(heartbeat)
and re-establish a connection if the heartbeat stops. We could try to implement this in the LSClient class of lightstreamer.py.

@chis86

Would adding rebind = True in the first If Message is None cause issues?

Yes it would, the connection is still active at this point we just received an empty message, so we wouldn't want to rebind at this stage. By the time you receive the error you're seeing we're already out of the loop as en exception has been raised by this part of the code:
            try:                 message = self._read_from_stream()                 log.debug("Received message ---> <{0}>".format(message))             except Exception:                 log.error("Communication error")                 print(traceback.format_exc())                 message = None
Therefore you will never reach the if message=None part.
The only way to address this that I can see is to make use of the Heartbeat:
   heartbeat = Subscription(mode='MERGE', items=["TRADE:HB.U.HEARTBEAT.IP"], fields=["HEARTBEAT"])     heartbeat.addlistener(heartbeat_update)     sub_heartbeat = ig_stream_service.ls_client.subscribe(heartbeat)
and re-establish a connection if the heartbeat stops. We could try to implement this in the LSClient class of lightstreamer.py.


FilePaths with foreign characters can't be used for LSP events to the server

See https://github.com/aspnet/Razor.VSCode/issues/252.
Dan mentioned it might be due to:
Is the issue here possibly that we need to enable IRI support in System.Uri?:

https://docs.microsoft.com/en-us/dotnet/framework/network-programming/international-resource-identifier-support-in-system-uri

Daniel Roth

@NTaylorMullen I tried adding a test and things appear to work on my end, I wonder if vscode is somehow mangling the uri?
See: #130

I wonder if vscode is somehow mangling the uri?

Hmmm, maybe? That being said I'd imagine there would be a whole lot more issues if they weren't following the spec for the LSP URI.

Maybe it's the cross-plat URI impl? One user in VSCode's path was: /home/tiago/Área de Trabalho/projeto/ONE/SOURCE/Site/Views/Cadastro/Parametro/Usuario/Index.cshtml

This looked to be due to the version of .NET Core I was using. Upgrading to netcoreapp2.2 in my app fixed the problem.


Fixes #1526 event factory method generations

SpongeAPI | event-impl-gen
Fixes #1526
Added an annotation org.spongepowered.api.util.annotation.eventgen.FactoryGenerationProof to prevent abstract-mean event interfaces from getting a generation method.
You need to bump the dependency on event-impl-gen manually to see the effects, and I currently cannot test that unfortunately because I don't know how to update this dependency.

FactoryGenerationProof isn't a good name IMO. something like NoFactoryGeneration is more clear to me.

@simon816 How about AbstractEvent? These events do not generate because they mean to be abstract.

Superseded by #1977.


How to select iPhone model for iOS simulator?

When I launch my tests using xctool -sdk iphonesimulator -scheme MyScheme test it works perfectly, except that the simulator launched is for iPhone 4s model. I'd prefer to run tests in iPhone 6 instead. I can't see anywhere where this can be chosen for xctool. Is it possible? instruments can specify model using -w switch.

You can use the -destination argument which is straight from xcodebuild.
In your case it would be -destination "name=iPhone 6"

Thanks, that worked!
I didn't really understand from the --help output what the -destination switch did.


Problem with main char

If you have some characters, for example
Char1    - not in corp
char2    - in corp
char3  -  in corp
and make group, auto or manual, adding to group doesn't work.

Which Version of SeAT-Groups do you use? Which of these Chars is the Main?

I have  a group of characters. Char milenium is in another corp then others

Create group and add this characters group in it

and if in this char_group main character isn't in corporation wich i give role in access managment, seat-group doen't addthis char_group to access role

First of all it is important to note that the affiliated corporation (available for whom) needs to be the same as your main_character.
Furthermore: You have assigned managers. However managers are not entitled to be in a group. They still need to join the managed group.
I hope this helps

I am closing this issue since OP misconceived managers to be member of the group. Instead by design a Manager must not be a member, he might but is not required to.
A Manager is basically a Bouncer:

@herpaderpaldent I have actually seen a similar issue here.  If a user signs in with a character whose out of corp but then links a character in corp SeATGroups does not assign auto groups for the corp to the account group.  IMO this needs to be reopened and investigated.

If a user signs in with a character whose out of corp but then links a character in corp SeATGroups does not assign auto groups for the corp to the account group

Works as designed.
Reason: If  you purge a member from your corp, chance is high you miss an alt. You don't want that purged member to keep roles, just because you have forgotten to purge an alt.

If a user signs in with a character whose out of corp but then links a character in corp SeATGroups does not assign auto groups for the corp to the account group

Works as designed.
Reason: If  you purge a member from your corp, chance is high you miss an alt. You don't want that purged member to keep roles, just because you have forgotten to purge an alt.


Create summary table of all DP benchmarks

The DP models benchmark for a given sample size can be summarized in the table below, with the cells being compile times (if applicable) and execution times. Timings for forward passes and gradient computations of the models will also be computed if high-level API is available and exposed. The appropriate accompanying data visualizations (line plots, surface plots) will be included to make the results more interpretable. Links will be included to MWEs.

[ ] Make a dynamic table which changes N. (e.g. N=50, 100, 200, 400, 800, 1600).
[ ] Make interactive line plots where

x-axis is N, and y-axis is execution time or compile time
be able to select which implementations / PPL to show on the plot

Model (PPL), sample size = N
Collapsed Gibbs
SMC
Particle Gibbs
HMC/NUTS (SB)
ADVI (SB)

DP mixture of Gaussians (Turing)
[ ] TODO
[ ] TODO
[ ] TODO
[X] TODO
[ ] TODO

DP mixture of non-Gaussians (Turing)
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO

DP mixture of Gaussians (STAN)
NA
NA
NA
[X] TODO
[ ] TODO

DP mixture of non-Gaussians (STAN)
NA
NA
NA
[ ] TODO
[ ] TODO

DP mixture of Gaussians (Nimble)
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO

DP mixture of non-Gaussians (Nimble)
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO

DP mixture of Gaussians (Pyro)
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO

DP mixture of non-Gaussians (Pyro)
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO
[ ] TODO

DP mixture of Gaussians (TFP)
NA
NA
NA
[ ] TODO
[ ] TODO

DP mixture of non-Gaussians (TFP)
NA
NA
NA
[ ] TODO
[ ] TODO

Notes:

Prefer doing the experiments by column as opposed to by row in this table. This way, if we are run out of time, we have benchmarks across PPLs, for a few implementations; and not benchmarks across a few implementations for one or two PPLs.
For now, for fix truncation level for number of stick-breaking components. Time permitting, see if a benchmark can be done to include varying truncation levels.

This Google sheet contains the timings.

Some changes in decorators provided significant speedups in TFP implementation. Need to update

[ ] timings
[ ] notebook
[ ] snippets


It's not possible to create a billing address

We have the saveInAddressBook mutation, but it always assumes the address is a shipping address. We should add a parameter to specify billing address when needed. It's something supported by the method it delegates to.

Fixed by #188


Undo default capitalization of column names?

Thanks for this very nice-looking tool.
I noticed that the UI capitalizes my column names, at least by default.  This is inconvenient, because I have to then separately check what the capitalization is for the columns, before using the names from the display.   Is there any way to disable changing case of the column names by default?
Thanks again.

Thank you for flagging this.  I have been aware of the problem, I'll take a look at a fix today.

Great - thanks for your fast reply.


Add support for PWC tensor

This PR implements support for PWC Hamiltonian.
Notably it allows to use the propagator solver for optimal control problems with PWC drives, which leads to a huge speedup (e.g. optimisation of Fock 2 preparation with cavity + transmon goes from ~3 minutes to ~20 seconds on my CPU). I think it’s important to have a good enough PWC Hamiltonian sesolve solver, because this is the first step of many optimal control proof-of-concept, it's a quick way to know wether something is doable or not.
The propagator solver is by far our best solver for sesolve (for constant and PWC Hamiltonian), we're roughly on par with qutip performance-wise for n ≤ 300 on CPU. There are many possible improvements to be made to the propagator solver, namely support for sparse matrices, and use of e.g. Krylov method to compute directly the application of the matrix exponential to the state. Here's an example mini benchmark:
n = 128
a = dq.destroy(n)
K = 0.1
H = a.mH @ a - K/2 * a.mH @ a.mH @ a @ a
psi0 = dq.coherent(n, 3)
tsave = np.linspace(0, 1.0, 11)

# ...

# === sesolve timing results
# dynamiqs (dopri5, CPU):     125.061 ± 10.26 ms
# dynamiqs (propagator, CPU): 3.141 ± 0.51 ms
# qutip:                      3.439 ± 0.17 ms

Mini benchmark code
import dynamiqs as dq
import qutip as qt
import numpy as np
from time import time

def run(f):
    niters = 10
    res = []
    for _ in range(niters):
        start = time()
        f()
        end = time()
        res.append((end - start) * 1000)
    res = np.array(res)
    print(f'{res.mean():.3f} ± {res.std():.2f} ms')

n = 128
a = dq.destroy(n)
K = 0.1
H = a.mH @ a - K/2 * a.mH @ a.mH @ a @ a
psi0 = dq.coherent(n, 3)
tsave = np.linspace(0, 1.0, 11)

# dynamiqs, dopri5
run(lambda: dq.sesolve(H, psi0, tsave, options=dict(verbose=False)))

# dynamiqs, propagator
run(lambda: dq.sesolve(H, psi0, tsave, solver='propagator', options=dict(verbose=False)))

# qutip, propagator
H = dq.to_qutip(H)
psi0 = dq.to_qutip(psi0)
run(lambda: qt.sesolve(H, psi0, tsave))

I propose to modify the doc later, once this is a bit more used and we have converged on the PWC format. For now the chosen format is tuple of static and PWC parts (H0, (H1, times, values), ...) where times has shape n+1 and values has shape n. It’s a bit tricky to use lists because we also allow them for batched tensors.

Will be replaced by soon-to-be PRs.


Ollama: migrate from Gson to Jackson

Apart from Gson being used in OllamaApiIT, OllamaMessagesUtils uses Json.toJson() method that use Gson under the hood

cc @Martin7-1

@langchain4j Hi! For the class which uses Json.toJosn(), should we change langchain4j-core and implement JacksonJsonCodec to replace current GsonJsonCodec? We can make GsonJsonCodec deprecated and change loadCodec like this:
    private static JsonCodec loadCodec() {
        for (JsonCodecFactory factory : loadFactories(JsonCodecFactory.class)) {
            return factory.create();
        }
        return new JacksonJsonCodec();
    }

In this way, we don't need to mannually change the usage of Json.toJson()

@Martin7-1 I feel like it was a bad idea to have Json.xxx() in the langchain4j-core module and use it everywhere, there are a few problems with it:

it forces langchain4j-core to depend on some json library which is not ideal as this modele is used transitively in all other modules (whether they need json or not)
it means that serialization logic should be the same across all modules, but some modules require special logic

So I was considering moving Json class into langchain4j module and using it only to serialize/deserialize tools and structured outputs. WDYT?


fix-307-implement ready/live probe customization

Description

adding customization to grafana readiness/liveness probes
This change will overwrite hardcoded values for these probes, if no values are defined within the CR then the operator will stick with default values

Relevant issues/tickets

#307
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] This change requires a documentation update
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added a test case that will be used to verify my changes
[ ] Verified independently on a cluster by reviewer

Verification steps

Checkout the master branch:

run make cluster/prepare/local NAMESPACE=grafana
run the operator locally with operator-sdk operator-sdk run local --watch-namespace="" --operator-flags="--zap-level=1"
wait for the operator to properly deploy all resources
check the grafana-deployment Pod yaml and note the values in Liveness and Readiness probe fields
stop the operator
Once the above have finished:
checkout this branch locally
edit deploy/examples/Grafana.yaml and append the following to the end of the spec field:

where N is an arbitrary number (up to preference)
  livenessProbeSpec:
    initialDelaySeconds: N
    timeoutSeconds: N
    periodSeconds: N
    sucessThreshold: N
    failureThreshold: N
  readinessProbeSpec:
    initialDelaySeconds: N
    timeoutSeconds: N
    periodSeconds: N
    successThreshold: N
    failureThreshold: N

apply the new Grafana.yaml cr
ensure that the Liveness and Readiness probes are updated accordingly on the cluster

Looks good. e2e test should pass once the CRD is fixed.

/lgtm


Update warning of using private keys in .env file

Problem
Currently, the information section for use of Private Keys in an .env file for local development states:

The private key of your wallet will be included in the .env file of the project and won't be pushed to GitHub.

We teach to always avoid private keys in .env files as it's one of the most common ways new web3 developers (experienced or not) lose funds. We even have students pledge to never put private keys with funds in them, and it's an anti-pattern that has been propagated across web3 hurting new people. pledge one and pledge 2
Proposed Update

The private key of your wallet will be included in the .env file of the project and won't be pushed to GitHub. However, as this means the private key is in plain text, it's recommended to use a private key that isn't associated with any real funds.

Refer to https://github.com/matter-labs/zksync-web-era-docs/pull/1031 for making the changes in zksync-docs


Token Group Interface Spec

The following is a spec for a "Token Group Interface" - which serves to outline an interface for grouping tokens together.
This interface is designed to be generic over whatever type of asset (represented by tokens) you might be implementing an interface over.
Two common examples are demonstrated in this PR/spec:

Token Collections: Collections of tokens where one token identifies the collection (or group), and all other tokens are simply "members" of the collection
Token Editions: Token "editions" where one token serves as the original, and all others are "reprints"

Note: These are implementations of the interface specific only to this example, and interfaces that follow the guise of "collections" or "editions" can be implemented in a variety of ways.

For more information about the nuances of this interface, see the README.md of each crate!

Marking as a draft for now until I can circle back and work on this some more - but anyone is free to take a look in the meantime!
(It will not pass CI yet)

Closing for #5190


avoid namespace conflict

The commit 684d4e8 is another solution to insert the html hook. It's has less impact than the solution proposed in #69.

@cerdiogenes Thanks for this! But I'm leaning towards to removing the magic (it is confusing and can really cause a lot of trouble) using the proposed solution in #69. Anyway, thanks again :+1:

The commit b15acaa is about conflict between controller and modules as explained in gotchas. Do you have interest in this? I can submit another PR only with this.

@cerdiogenes Yes. Please submit another PR and I'll review it. Thank you!


Fix type hint to proper paginator class

This should fix #31 here and BootstrapCMS/CMS#139

Thank you @mrrsm. :)


Add support for BooleanString

Overview
Accepts true, false, t, f, yes, no, y, n, and numeric values along with options to narrow valid inputs.

Work for this issue will begin begin on branch work-liquid-labs/string-input/15.


Fixed SDF shape transformations

Fixed SDF shape transformations (poses defined in model, link, collision, and visual now concatenate in correct order)
Changed SDF affordance naming (dropped SDF prefix, zero length names, and collision/visual name suffix when link contains only one element of that type)

Can you upload a video or write a description of how you're using this?  Sounds cool!

I'll create a unit test.
I'm just copy-pasting python commands into the DDApp console at the moment:
from ddapp import sceneloader
sc=sceneloader.SceneLoader()
sc.loadSDF('absolute_path_tofile.sdf')


hi，I add some code to enable jadx can decompile apk by file's type, not only by file's extension

hi，I add some code to enable jadx can decompile apk by file's type, not only by file's extension.
I just modified jadx/core/utils/files/FileUtils.java and jadx/core/utils/files/InputFile.java.
thanks!

Coverage decreased (-0.4%) to 72.417% when pulling b4472fd7d413e583b084adb1dd845dbc9a2686e0 on bigfool:master into b2f41e95bfce73936b4d316917c95977daf6e1a4 on skylot:master.


feat: Adds re-usable component CopyableText

Description
Adds re-usable component CopyableText
Adds ui-shared tests back to yarn test
Adds CopyableText to AzureAuth dialog (manual token entry)
Adds check for Linux users
Task Item
#minor
Screenshots

Coverage decreased (-0.6%) to 55.858% when pulling 8a9b85d4bad5663fb75ede3159020b0626a75fe6 on sorgh/copy_com into 7340f23da884bad454c3c259668e5a65f4cb48b8 on main.


pkg/apis: remove duplicate MergeStepsWithStepTemplate function

Changes
Remove duplicated function MergeStepsWithStepTemplate.
/kind misc
/cc @tektoncd/core-maintainers
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[x] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[x] Commit messages follow commit message best practices
[x] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
NONE

/retest

/lgtm

Looks ok to me but just wanna check - is there a specific motivation for this change?  I thought a lot of the code in the v1alpha1 package was intentionally duplicated / aliased?

Looks ok to me but just wanna check - is there a specific motivation for this change? I thought a lot of the code in the v1alpha1 package was intentionally duplicated / aliased?

No real motivation except I was looking at some code and this dead code / duplicated code bothered me. Some duplicated code was initially "intentional" when we were storing v1alpha1 object. Now it is less "intentional" and more "it's v1alpha1 so it is less important to modify".


Add install-autogen

Add a Makefile target for installing autogen.

Probably will start using https://github.com/B1NARY-GR0UP/nwa for managing license headers.


Don’t use space characters to make space for disclosure chevron

Currently, three spaces are used to to create padding for the disclosure chevron. This feels wrong. Hopefully there is a better solution.
https://github.com/florianpircher/GutenTag/blob/1d7bbe72eafe85711b37f76cd14bd211d62039b9/Guten Tag.glyphsPalette/Contents/Resources/plugin.py#L291-L295

The space collapse is caused by Glyphs internal customizations. See: https://forum.glyphsapp.com/t/does-glyphs-3-modify-the-internals-of-nstokenfield/17877/2


AP FLC not working.

Dear Calibx,
As the titel says, the AP FLC button don't respond.
This is in the stock msfs planes like the c172
Al the other knobs workin corect
Greating Matthieu

I've seen the same issue on the Longitude.

Ok I will investigate

Ok I don't understand why but it doesn't work with the C172, make strange thing with 747 ...
Can you explain me how it should work and what it is used for ?

Ok I don't understand why but it doesn't work with the C172, make strange thing with 747 ...
Can you explain me how it should work and what it is used for ?

FLC decides what Vertical Speed to use for Climbing and and Descending. I only use it on planes that have Auto Throttle and use VS for the ones that don't.
On planes with Auto Throttle (AT), the AT will automatically be controlled to maintain the speed you are at when you engage it. On the Longitude which have very powerful engines compared to it weight, it could easily climb at over 4k to 5K FPM. If you change the speed while in FLC, it will automatically adjust the VS. On decent you can select a speed of say 250 know and the plane will descend at what ever VS it can to maintain that speed.
On planes with out AT, when you press FLC it uses that speed as the reference speed to calculate the VS/pitch to use, but it's the pilot's responsibility to adjust the throttle maintain the pitch the the AP selected.
I find it simpler to use VS on planes without AT and usually set the VS and they keep an eye on my speed to ensure that the plane can climb at the VS i selected or on descent not to overspeed and overstress the plane.
I know a lot of pilots use FLC on planes without AT, like the C172, but I prefer VS for planes with no AT.
Hopefully someone that uses FLC on planes without AT will also chime in and tell us why they prefer FLC on those planes.

Okay. I will try.
FLC basically works the same as airplanes with Auto Throttle. only you will have to operate the throttle yourself. as captainAS007 says the FLC is used less often in airplanes without auto throttle and VS is preferred.
I don't know if the operation of FLC really matters. As long as the FLC button on the loupe deck addresses the correct data ref. The AP FLC, just like AP VS, should activate the correct button on the autopilot (g1000)

the event on the Flightsim API is named "FLIGHT_LEVEL_CHANGE". On my self-build hardware this was running without problems.


package individually doesnt include node_modules and package.json

Hi,
this is a nice lib.
but I try this lib with the serverless framework, I face some problem:
serverless.yml
package:
  individually: true

I didn't set anything in custom..inside the .serverless folder I don't see any node_modules + package.json file.
If I deploy this lambda func to aws, I guess will fail?
How can I make  node_modules + package.json file included in each lambda func zip?
Thanks!

I'd say you have to declare externals if you want to have your modules added as externals modules to your zip. Otherwise, all the code is bundle as one js file, isn't it ?
It shouldn't fail, as long as you have no native dependencies in your modules - ie only javascript depencies that are bundable by esbuild

@olup
lets say I have 20+ restapi in serverless.yml
I check another issue say need to add include to each http event, so i need to manually add all include to those 20+ API...
because I was using serverless-webpack and this can help to add node_modules + package.json file to the individual package.
I am looking for esbuild to replace webpack because it is faster

just use the external key of the config if you need, otherwise a single bundle should do.
"I check another issue say need to add include to each http event, so i need to manually add all include to those 20+ API..." this is a workaround only needed if you want to have specific bundle size on each lambda. But it's a workaround, and may not be advisable in your own case.
The bottom line is this package will work with individual pacakaging, but will not optimize the bundle size for each lambda, period. (or until the other ticket is addressed by maintainer or contributor)

@olup
thanks for the answer.
I think I will keep serverless-webpack first, but I will use esbuild-loader with it first.
for all the lambda func to do package individually.

Hey @yeukfei02, we released the individually packaging fix in v1.8.0, could you please verify that it resolves your issue.

@floydspace
hey i just try in one of my project, I use with serverless framework and run yarn run package, this means serverless package..it cannot include serverless_sdk folder
yarn run package
yarn run v1.22.10
$ serverless package
Serverless: Compiling with esbuild...
Serverless: Compiling completed.
Serverless: Zip function: k11-eshop-facebook-lambda-dev-eshopFacebook - 899.43 KB [75 ms]

  Error --------------------------------------------------

  Error: ENOENT: no such file or directory, scandir 'serverless_sdk'

thanks.

hey @yeukfei02 . could you post here your serverless.yml file ?

@olup
serverless.yml
org: keysocapp
app: k11-eshop-facebook-lambda
service: k11-eshop-facebook-lambda

frameworkVersion: '2'
useDotenv: true

provider:
  name: aws
  runtime: nodejs12.x
  stage: dev
  region: ap-southeast-1
  apiName: k11-eshop-facebook-lambda-dev
  tracing:
    apiGateway: true
    lambda: true
  environment:
    NODE_ENV: development
    MY_AWS_ACCESS_KEY: ${param:MY_AWS_ACCESS_KEY}
    MY_AWS_SECRET_ACCESS_KEY: ${param:MY_AWS_SECRET_ACCESS_KEY}
    K11_ESHOP_FACEBOOK_LAMBDA_DATABASE_URL_DEV: ${param:K11_ESHOP_FACEBOOK_LAMBDA_DATABASE_URL_DEV}
    K11_ESHOP_FACEBOOK_LAMBDA_DATABASE_URL_PROD: ${param:K11_ESHOP_FACEBOOK_LAMBDA_DATABASE_URL_PROD}
  iam:
    role:
      statements:
        - Effect: 'Allow'
          Action:
            - 'xray:PutTraceSegments'
            - 'xray:PutTelemetryRecords'
          Resource:
            - '*'
        - Effect: 'Allow'
          Action:
            - 's3:PutObjectACL'
          Resource:
            - '*'
  apiGateway:
    shouldStartNameWithService: true
    description: K11 EShop Facebook Lambda Staging
  lambdaHashingVersion: 20201221
  vpc:
    securityGroupIds:
      - sg-0ba9e979cffe84d1c
    subnetIds:
      - subnet-0274899de33681214
  timeout: 30

package:
  individually: true

functions:
  eshopFacebook:
    handler: src/eshopFacebook/handler.eshopFacebook
    events:
      - http:
          path: /
          method: post
          cors: true
      - schedule: cron(0 15 * * ? *)
    timeout: 300

plugins:
  # - serverless-webpack
  - serverless-esbuild
  - serverless-prune-plugin
  # - serverless-plugin-typescript
  - serverless-offline
  # - serverless-plugin-split-stacks

custom:
  # webpack:
  #   webpackConfig: ./webpack.config.js
  #   includeModules: true
  #   packager: 'yarn'
  #   packagerOptions:
  #     scripts:
  #       - prisma generate
  prune:
    automatic: true
    number: 3

serverless version: 2.25.2

Interesting. Would it be a problem for you to attach or link the zip'ed package for this function ? I'd like to check how the serverless_sdk is imported in the bundle. Other question, in your handler's code, do you import or require serverless sdk at any point ? and can I see the package.json ?

@olup
package.json
{
  "name": "k11-eshop-facebook-lambda",
  "version": "0.1.0",
  "main": "app.js",
  "repository"<EMAIL_ADDRESS>  "author": "Donald Wu<EMAIL_ADDRESS>  "license": "MIT",
  "dependencies": {
    "@fast-csv/format": "^4.3.5",
    "@prisma/client": "2.16.1",
    "aws-sdk": "^2.845.0",
    "aws-xray-sdk": "^3.2.0",
    "dotenv": "^8.2.0"
  },
  "devDependencies": {
    "@types/aws-lambda": "^8.10.72",
    "@types/jest": "^26.0.20",
    "@types/node": "^14.14.28",
    "@types/serverless": "^1.78.20",
    "@typescript-eslint/eslint-plugin": "^4.15.1",
    "@typescript-eslint/parser": "^4.15.1",
    "aws-lambda": "^1.0.6",
    "codecov": "^3.8.1",
    "copy-webpack-plugin": "5.1.1",
    "esbuild-loader": "^2.9.2",
    "eslint": "^7.20.0",
    "eslint-config-prettier": "^7.2.0",
    "eslint-plugin-prettier": "^3.3.1",
    "git-cz": "^4.7.6",
    "husky": "^5.0.9",
    "jest": "^26.6.3",
    "prettier": "^2.2.1",
    "prisma": "2.16.1",
    "serverless": "^2.25.2",
    "serverless-offline": "^6.8.0",
    "serverless-plugin-split-stacks": "^1.11.0",
    "serverless-plugin-typescript": "^1.1.9",
    "serverless-prune-plugin": "^1.4.3",
    "serverless-webpack": "^5.3.5",
    "standard-version": "^9.1.0",
    "ts-jest": "^26.5.1",
    "ts-node": "^9.1.1",
    "typescript": "^4.1.5",
    "webpack": "4.46.0",
    "webpack-node-externals": "^2.5.2"
  },
  "scripts": {
    "dev": "serverless offline start",
    "deploy": "serverless deploy",
    "package": "serverless package",
    "dashboard": "serverless dashboard",
    "remove": "serverless remove",
    "test": "jest --detectOpenHandles",
    "lint": "eslint '*/**/*.{ts,tsx}' --quiet --fix",
    "generate:prisma": "cd ./prisma && npx prisma introspect && npx prisma generate",
    "format:prisma": "cd ./prisma && npx prisma format",
    "prisma-studio": "npx prisma studio",
    "commit": "git-cz",
    "release": "standard-version"
  },
  "husky": {
    "hooks": {
      "pre-commit": "yarn lint && yarn run format:prisma",
      "pre-push": "yarn lint && yarn run format:prisma"
    }
  }
}

my handler.ts didnot import any sls sdk..i believe when i run yarn run package the serverless-esbuild didnot include node_modules + package.json + schema.prisma
its ok. i am still using serverless-webpack

serverless esbuild did not include node_modules nor package.json because you did not declare any externals. This is intended behavior. The is no dependencies to add to the bundle if you don't declare them in externals (the same goes for serverless-webpack, but you might be using node_externals plugin that takes ALL your dependencies as externals).
Same goes for your prisma schema. You have to declare it otherwise it won't be picked up as it's not a js/ts file.
the serverless_sdk is added automatically to your code by serverless because you must be using their hosted dashboard and metrics.

@olup
yes I use webpack-node-externals in the webpack.config.js
I think for my case will use serverless-webpack + esbuild-loader first.
thanks.

+1 I had the same issue as OP.
I was unable to include the package.json at all using the documented method for packaging e.g.
// serverless.yml
package:
  patterns:
    - '!node_modules/@aws-sdk/**'
    - package.json

Specifying externals, did include the node_modules correctly, but still no package.json
In my use case the lack of a package.json meant the lambda was not executing as an esm module.
Fortunately i was able to add outputFileExtension: .mjs to achieve this.
P.S. Love the plugin. So much faster than webpack


Add pyproject.toml and packaging config

Add pyproject.toml with setuptools build backend, and use uv to verify package works.

https://github.com/astral-sh/setup-uv
https://docs.astral.sh/uv/

Likely review this after #9 is merged, and how the requirements.txt file is generated

@ialarmedalien , Luiz Irber is one of our BER Data Integration Shenanigans colleagues, and another contractor type hired by Kjiersten to Do Stuff. He believes in reducing friction, and has a bit more familiarity with the miasma of Python-related package management tools. Can you comment on how uv, etc, fits in with other KBase tools of interest?

The tests are failing for this PR because the DTS_KBASE_DEV_TOKEN secret isn't available to PRs from a fork.

General point: let's just standardise to using py3.12 instead of having 3.11 in some places and 3.12 in others.

We need either an additional PR or amendments to this PR that do the following:

separate out the deps into runtime, testing, and documentation generation -- in particular, there seem to be a ton of documentation things that people are not going to need if they run the code locally
additional information in the README about how to install and run the project locally -- currently there's no documentation at all and only people who are already python-savvy or who want to pick through the GitHub actions will work out how to do it.

@luizirber we appreciate your contribution and don't want to dump a load of extra work on you so can you and @jeff-cohere  divide and conquer those tasks between yourselves?

We need either an additional PR or amendments to this PR that do the following:
* separate out the deps into runtime, testing, and documentation generation -- in particular, there seem to be a ton of documentation things that people are not going to need if they run the code locally

This is somewhat done already, dev deps are listed here:
https://github.com/kbase/dtspy/pull/10/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R19-R26
I can add another level to be doc vs testing deps

* additional information in the README about how to install and run the project locally -- currently there's no documentation at all and only people who are already python-savvy or who want to pick through the GitHub actions will work out how to do it.

Agreed, will add to this PR!

@luizirber we appreciate your contribution and don't want to dump a load of extra work on you so can you and @jeff-cohere divide and conquer those tasks between yourselves?

:+1:

Thanks, both. I find the Python and Javascript communities to be similarly ultra-aggressive in terms of dependencies, and I haven't really formed my own philosophy about how to manage the resuting pain that these communities feel is a cost of doing business.
@luizirber , thanks for taking point on this particular topic for the moment. Happy to kick ideas around.

additional information in the README about how to install and run the project locally -- currently there's no documentation at all and only people who are already python-savvy or who want to pick through the GitHub actions will work out how to do it.

This is on my list for the very next PR!

Separate deps segments for mkdocs and testing would be great, thanks. Something super simple would be fine for the readme -- @jeff-cohere can always flesh it out in his upcoming PR.


fix: fix kubetype-gen for http2rpc wrong plural value issue

Ⅰ. Describe what this PR did
fix kubetype-gen for http2rpc wrong plural value issue
Ⅱ. Does this pull request fix one issue?
NO
Ⅲ. Why don't you add test cases (unit test/integration test)?
NO
Ⅳ. Describe how to verify it
NO
Ⅴ. Special notes for reviews
NO

yes, i had done that. There has no change for the crd file as expected.

yes, i had done that. There has no change for the crd file as expected.

oh, right


TightConstraintSet not working with composed models

from gpkit import Variable, Model
from gpkit.constraints.tight import TightConstraintSet as TCS
from gpkit import LinkConstraint

x = Variable('x'); y = Variable('y');
m = Model(x, [TCS([x >= y]), x >= 2, y >= 1])
m.solve()
# returns error as you would expect

m1 = Model(x, [TCS([x >= y]), x >= 2])
m2 = Model(y, [y>=1])
lc = LinkConstraint([m1, m2])
m3 = Model(m1['x'], lc)
m3.solve()
# doesn't return an error #whoops

For what it's worth, this was working at commit 846d454, but something in the commits since then have broken it.

Fixed in #605

Fixed in #605

Hmm when I pull fixtight, it still doesn't appear to be working using vtail, which links with wing box....

This issue is important for thesis research - fixing it would be a huge help!

clarification: to replicate this: check out the fixtight branch of gpkit, edit constraints/tight.py to add a print statement to process_result, and run the vtail.py on the current master branch of gpkit-models. The print statement will not get executed.

updated MWE to reproduce this issue below. fixtight branch does not currently resolve.
from gpkit import Variable, Model
from gpkit.constraints.tight import TightConstraintSet as TCS
from gpkit import LinkedConstraintSet, SignomialsEnabled

x = Variable('x'); y = Variable('y');
# m = Model(x, [TCS([x >= y]), x >= 2, y >= 1])
# m.solve()  # commented to avoid throwing error here
# returns error as you would expect

with SignomialsEnabled():
    sig_constraint = (x + y >= 0.1)
m1 = Model(x, [TCS([x >= y]), x >= 2])
m2 = Model(y, [y>=1, sig_constraint])
lc = LinkedConstraintSet([m1, m2])
m3 = Model(m1['x'], lc)
m3.localsolve()
# doesn't return an error #whoops

This has nothing to do with composed models -- it has to do with Signomials
even simpler MWE
from gpkit import Variable, Model, SignomialsEnabled
from gpkit.constraints.tight import TightConstraintSet as TCS

x = Variable('x')
y = Variable('y')
with SignomialsEnabled():
    sig_constraint = (x + y >= 0.1)
m1 = Model(x, [TCS([x >= y]), x >= 2, y >= 1, sig_constraint])
m1.localsolve()
# doesn't return an error #whoops

Fixed in #605 now, and test added.


@angular/cli 8.0.2 - IE 11 polyfills

🐞 Bug report
Command (mark with an x)

- [X] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
- [X] polyfills

Is this a regression?

 Yes, the previous version in which this bug was not present was: IE 11 polyfills
Description
 IE 11 polyfills is not present in the polyfills.ts file and the angular 8 wesbite is not rendering in IE 11 browser
🔬 Minimal Reproduction
ng new testapp
enable the polyfills in the ployfills.ts and ng serve  to IE11
🔥 Exception or Error
No error but website is not rendering in IE11.
🌍 Your Environment
Windows 10, IE 11
Anything else relevant?
It is specific to IE11

It's the duplicate of
https://github.com/angular/angular-cli/issues/14455


Add stop() and play() methods for RenderingModule

This PR is related to issue #141
RenderingModule
Added two methods to better control renderingLoop:

.stop() - Stops renderingLoop execution.
.play() - Resumes renderingLoop execution.

Coverage decreased (-0.06%) to 50.059% when pulling 4fa0f80c93d80557ae4eac2331e6bdb88de3d694 on #141 into fb23e8948da9d82f31ffff9d06bcb55bc0df459e on beta.


about argument parse

Thanks for sharing, but I still have some questions about "matconvnet_hr101_to_pickle.py" to ask you.
First, I can not run it successfully even though I've downloaded "hr_res101.mat" but it still throws "AssertionError: Matlab pretrained model: /path/to/hr_res101.mat not found". I learned about the usage of ArgumentParser, but I did not solve it. If you can give me some help, I would be greatly appreciated.
Second, I do not know much about matlab, so I can not understand the code, such as "clusters = np.copy (net ['meta'] [0] [0] [0] [0] [6])". More precisely, I think "layers = net ['layers']" is correct, but why use "layers = net [' layers'] [0] [0] [0]". Further more, I think "layer_name" and "layer_type" are just a string, but why do you put all the data into layer_inputs and layer_outputs?
Third, what does "weight_file" mean? Can you elaborate on the data you wrote in the weight_file file?
Maybe you think I asked the questions are stupid, yes, I admit, but who have not experienced such a stage? Thanks very much for sharing, and I will be even more grateful if you can help me with these questions.

I'm way too late. I was stuck over here as well, after tinkering around with different formats, I went to that directory which had both the converter python file and matlab model, and ran this. It worked.
python matconvnet_hr101_to_pickle.py --matlab_model_path ./hr_res101.mat --weight_file_path ./hr_res101.pkl

Is it possible to give me anyone the pickle file? I use jupyter notebook and I couldn't manage to convert it. Thank you !

@greed2411 Thanks for this greed!  However, I got an error and thought maybe it's from the way I converted the weight file.
Did you get something like this?
Traceback (most recent call last):
File "tiny_face_eval.py", line 227, in
main()
File "tiny_face_eval.py", line 224, in main
lw=args.line_width, display=args.display)
File "tiny_face_eval.py", line 82, in evaluate
model = tiny_face_model.Model(weight_file_path)
File "/Users/tvision/Desktop/Tiny_Faces_in_Tensorflow/tiny_face_model.py", line 24, in init
self.mat_blocks_dict, self.mat_params_dict = pickle.load(f)
File "/Users/tvision/Desktop/Tiny_Faces_in_Tensorflow/tiny-env/bin/../lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

I got an error  about：TypeError: split() got an unexpected keyword argument 'num_or_size_splits'，Can you give me some help?


Support for MS-DOS Microsoft QuickC Compiler

Is your feature request related to a problem? Please describe.
I want to decompile and create C code that can be recompiled to the same binary for 16bit real mode MS-DOS EXE. The binary is pretty small at 64kb.
Describe the solution you'd like
My EXE is compiled with QuickC 2.50. I'm unsure how to add the decompiled ASM into decomp.me. I've loaded the binary in Ghidra, okay? So maybe I can copy and paste ASM for each function from there? I don't see any ASM obj dump type tool in QC 2.5. I'm also not sure how to get some initial decompiled C code from the ASM. Maybe that needs to also be taken from Ghidra, although I see that C code is a pretty poor representation and is pretty far away from what the C likely was.
Describe alternatives you've considered
I guess some sort of python tooling could be created to help prepare the inputs?
Additional context
The binaries for the QC 2.5 compiler can be found here https://winworldpc.com/product/quick-c/2x

FYI, any copy of objdump is able to have its output configured for clean asm output, like such:

(using objdump --disassemble=add_assembler_option -M i386,att /usr/local/sce/ee/gcc/bin/ee-gcc in this case)


"Changes for Basque language"

Any reason why this PR is still unmerged after almost a year, @LinusSkucas?


Callback for request cancelled from client

If the request is cancelled from client, is there callback functions we can use to do some cleanup work?
StreamFilter only provide decode/encode header/data/trailer, I don't see any function for request cancel.

There are callback events for resets which should work for this.

@mattklein123 Can you share an example how to use reset events in network/http filters?


Not working on Android with Firefox Nightly

Firefox Nightly on Android has an option to load an .xpi addon.
However, once the addon is loaded, it doesn't work, Twitch indicates that you must be subscribed.

Hi, the mobile version is not currently supported. You need to load the twitch page on the desktop version for this to work.

@Ultime850 there is opensource app for android called Xtra, you can watch streams and sub-only vods with it
Here is a link to it https://github.com/crackededed/Xtra

@Ultime850 there is opensource app for android called Xtra, you can watch streams and sub-only vods with it Here is a link to it https://github.com/crackededed/Xtra

Thanks!!!


[seata-java] 修复InsertOnDuplicateUpdate无法拦截无主键和唯一索引的SQL

What happened:
https://github.com/apache/incubator-seata/pull/5078
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:

pls assign to me

I tried to reproduce the issue mentioned in the report using MySQL. Currently, I found that when performing operations on a table without a primary key, it immediately gets blocked and prompts: "Could not find any index in the table: xxx."
The relevant part of the code is as follows:
	indexes, err := m.getIndexes(ctx, dbName, tableName, conn) 	if err != nil { 		return nil, errors.Wrapf(err, "Could not found any index in the table: %s", tableName) 	}
Therefore, I believe this issue might not exist in seata-go, or you could provide additional information for me to attempt reproducing it again.


[WIP] Add examples for the new CmdMsg pattern allowing unit testability of Cmds

// WIP: Missing documentation

Closes #402 (this PR includes the tryFindViewElement helper function)
After much discussion, we came to the conclusion that a simple pattern can allow complete unit testing when using Cmd<'msg> despite it not being unit testable.
(See full discussion in #320 and #309)
This pattern is completely up to the developer, nothing has been changed in Fabulous to support it.
The fact is that Cmd<'msg> is not unit testable because it's essentially just an array of functions.
Functions returning Cmds won't be fully eligible for unit testing, that includes init and update, which would otherwise be perfect for unit testing...
The idea of this pattern is to remove the dependency from Cmd<'msg> from init and update by using an intermediate CmdMsg discriminated union.
This union will only state intents instead of actually executing a Cmd.
type Msg =
    | FieldUpdated of string
    | FieldValidated of bool

type Model =
    { Text: string
      IsValidated: bool }

// The new discriminated union replacing direct usage of Cmd<'msg>
type CmdMsg =
    | ValidateField of string

// Some long running validation process that will eventually dispatch a Msg.FieldValidated
let validateFieldAsync value = async { ... }

/// unit -> Model * CmdMsg list
let init () =
    { Text = ""; IsValidated = false }, [] // Cmd.none is replaced by an empty list of CmdMsg

/// Msg -> Model -> Model * CmdMsg list
let update msg model =
    match msg with
    | FieldUpdated value -> { model with Text = value }, [ (ValidateField value) ] // Ask to validate the field value - equivalent of Cmd.ofAsync (validateFieldAsync  value)
    | FieldValidated validation -> { model with IsValidated = validation }, []

let view model dispatch = (...)

// A new function that will map a CmdMsg to the actual Cmd to execute
let mapCommands cmdMsg =
    match cmdMsg with
    | ValidateField value -> Cmd.ofAsync (validateFieldAsync value)

// Converts init to a signature supported by Fabulous
/// unit -> Model * Cmd<Msg>
let initCmds () =
    let model, cmdMsgs = init ()
    let cmd = cmdMsgs |> List.map mapCommands |> Cmd.batch
    model, cmd

// Same for update
/// Msg -> Model -> Model * Cmd<Msg>
let updateCmds () =
    let model, cmdMsgs = update msg model
    let cmd = cmdMsgs |> List.map mapCommands |> Cmd.batch
    model, cmd

// Finally starts the program
type App() =
    Program.mkSimple initCmds updateCmds view
    |> Program.run...

init and update now have a full data-only return type.
Greatly simplifying unit testing.
[<Test>]
let updatingFieldShouldUpdateModelAndTriggerValidation () =
    let initialModel = { Text = "Previous Text"; IsValidated = false }
    let expectedReturn = { Text = "New Text"; IsValidated = false }, [ (ValidateField "New Text") ]
    App.update (FieldUpdated "New Text") initialModel |> should equal expectedReturn

Interestingly enough, this also completely enable code reuse between Fabulous and Elmish.
init and update 100% not specific to Fabulous.

@cmeeren & @aspnetde : Don't hesitate to give your opinion on this PR

Looks good! You might want to consider including helper functions that accept a mapCommands function and an update function and returns a convertedUpdate function, and similar for init. That way, users won't have to implement the (allegedly trivial) mapping themselves, and it's possible to simply inline it into the Program.mk... call.

I'm fine with it, too.
(Side note: In my small sample app I ended up with a similar approach like the one used in the ElmishContacts sample, having pages with Msg + ExternalMsg to communicate with their parents. I also had one top level command to show alerts. Implementing this approach shown here would have meant to have Msg + ExternalMsg + CmdMsg + ExternalCmdMsg. That had been a bit too much so I kept going with Msg.Foo and Msg.CmdFoo.)

I also had one top level command to show alerts. Implementing this approach shown here would have meant to have Msg + ExternalMsg + CmdMsg + ExternalCmdMsg.

@aspnetde That's interesting.
What are exactly your alerts? Are they alert dialogs or something else?
I'm trying to imagine when it would make sense to introduce the concept of ExternalCmdMsg.
Personally I would only use ExternalMsg to handle all external things. Like navigation or triggering commands on other pages.
This way there's no need to an ExternalCmdMsg. CmdMsg stays specific to its page.
type Msg =
    | SomeMsg

type ExternalMsg =
    | TriggerCmdOnOtherPage

type CmdMsg =
    | TriggerCmdOnThisPage

let update msg model =
    match msg with
    | SomeMsg -> model, (Some TriggerCmdOnOtherPage), TriggerCmdOnThisPage

/// The other page
type Msg =
    | PageATriggeredCmd

type CmdMsg =
    | TriggerCmdOnThisPage

let update msg model =
    match msg with
    | PageATriggeredCmd -> model, None, TriggerCmdOnThisPage

For example I had a small function I didn't want to duplicate x times across the app. Like:
let private showErrorAlert errorMessage = async {
    do! Application.Current.MainPage
            .DisplayAlert("Error", errorMessage, "Okay") |> Async.AwaitTask
    return None
}

I guess that one could also be moved in some kind of helper module. But it's not hard to imagine a scenario where one would return a specific message type etcetera.
Anyway: No showstopper here!

Excellent explanation in 922fa90. Might borrow from that (and the rest of this PR) for Elmish.WPF.
Might I suggest that you explicitly say that the mkProgramWithCmdMsg does not do anything "magic" and that the user would get the same result by writing trivial code to convert update and init themselves? IMHO that could help drive the point home that this is indeed just a general pattern where absolutely no magic (or even non-trivial) is involved on Fabulous' part.

Wonderful! 👍

/azp help

/azp list

/azp run pr build


fix: fix menu position

Types

[ ] 🎉 New Features
[ ] 🐛 Bug Fixes
[ ] 📚 Documentation Changes
[ ] 💄 Code Style Changes
[ ] 💄 Style Changes
[ ] 🪚 Refactors
[ ] 🚀 Performance Improvements
[ ] 🏗 Build System
[ ] ⏱ Tests
[ ] 🧹 Chores
[ ] Other Changes

Background or solution
Changelog

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


Make it easier to create HubConnections in ts/js

Currently the user needs to pass an http connection when creating HubConnection. We could move this to options and create the HttpConnection for the user automatically. We could combine options so that they can pass only one options object for both HubConnection and HttpConnection.
Con: It would kind of blur the separation we have between HubConnection and HttpConnection.

Fixed in #2cc72d72cd6b32e596fa7f72a3623cc7d1e9eaf6

Fixed in bb79a9760c7052622bbc5aaeabb9fe7a600b9b84


Bug Doorbell

Hello team, there are 2 bugs concerning the bell. The first bug is that when a person rings we receive two notifications on the phone and the homepod rings twice. The second Bug is the fact that the video of the doorbell on the home application takes about thirty seconds to appear, which is a problem. I hope you will succeed in correcting these problems. Thank you again for your work!

The funny thing is, on the Apple TV i’ve got a livestream in five seconds.

How did you configure the video on the eufy app regarding the bell?

In my cases it take 5-10 seconds till the videostream starts.
What not works is, if I get the push notification for a ring and long press on it, I don't get a video.


Explicitly convert the values to string

Since we read the value from YAML, we might get some weird stuff,
if we don't quote explicitly:

MacBook-Pro-van-Fokko:dbt-source fokkodriesprong$ python3
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 26 2018, 19:50:54)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>>
>>> yaml.load("name: 19.25")
{'name': 19.25}
>>> data = yaml.load("name: 19.25")
>>> type(data['name'])
<class 'float'>

>>> data = yaml.load("name: 1925")
>>> type(data['name'])
<class 'int'>

>>> data = yaml.load("name: 'no'")
>>> type(data['name'])
<class 'str'>

>>> data = yaml.load("name: no")
>>> type(data['name'])
<class 'bool'>

This was the case when reading numerical table names:
2020-03-02 09:10:33,892358 (MainThread): Traceback (most recent call last):
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/main.py", line 80, in main
    results, succeeded = handle_and_check(args)
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/main.py", line 158, in handle_and_check
    task, res = run_from_args(parsed)
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/main.py", line 210, in run_from_args
    results = task.run()
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/task/generate.py", line 201, in run
    catalog_table = adapter.get_catalog(self.manifest)
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/adapters/base/impl.py", line 1016, in get_catalog
    results = self._catalog_filter_table(table, manifest)
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/adapters/bigquery/impl.py", line 493, in _catalog_filter_table
    return super()._catalog_filter_table(table, manifest)
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/adapters/base/impl.py", line 998, in _catalog_filter_table
    return table.where(_catalog_filter_schemas(manifest))
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/agate/table/where.py", line 25, in where
    if test(row):
  File "/usr/local/Cellar/dbt/0.15.2_1/libexec/lib/python3.7/site-packages/dbt/adapters/base/impl.py", line 82, in test
    return (table_database.lower(), table_schema.lower()) in schemas
AttributeError: 'decimal.Decimal' object has no attribute 'lower'

resolves #2175

Description

Checklist

[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

It looks like this is already checked:

self = <dbt.parser.schemas.SourceParser object at 0x7f697b718ef0>

    def get_unparsed_target(self) -> Iterable[SourceTarget]:
        path = self.yaml.path.original_file_path

        for data in self.get_key_dicts():
            try:
                data = self._renderer.render_schema_source(data)
                source = UnparsedSourceDefinition.from_dict(data)
            except (ValidationError, JSONValidationException) as exc:
                msg = error_context(path, self.key, data, exc)
>               raise CompilationException(msg) from exc
E               dbt.exceptions.CompilationException: Compilation Error
E                 Invalid sources config given in models/schema.yml @ sources: {'name': 19.25, 'schema': 'test15831538856086_sources_042', 'quoting': {'identifier': True}, 'tables': [{'name': 'test_table', 'identifier': 'other_source_table'}]} - at path ['name']: 19.25 is not of type 'string'

this PR for #2715 was ultimately fixed by #2208 - closing. Thanks for opening it @Fokko! :D

Sweet, thanks!


Added Hacker news mini-search-engine

Is there anything that should be done from  my side?

Hi @DeeTomPanda ,
Please update your directory to HackerNews/USERNAME/...your files.
Thank You.

Have updated it as asked
Pull request #441 opened


Currency binding

Currency binding generates a invalid result.
The problem is located here:
        public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            try
            {
                deserializer(value as string, overrideCulture ?? cultureInfo);
                return new ValidationResult(true, null);
            }
            catch
            {
                return new ValidationResult(false, errorProvider.GetErrorMessage(value));
            }

on ConversionValidator.cs
The deserializer seems to validate correctly when the user input a value but when validation is called after (like a button) it fails because the string parsed contains special caractes like "R$" for brazillian currency. Example:
User inputs 7,75 and it validates OK and turns it into "R$7,75" then when I press the validation button it will fail saying the string contains invalid characters.
If you don't have time it's ok, I'll take a look at it when my graphics card arrives

I managed to boot on secure mode, and found it! Added to the fork.

I have an idea, we can include a PreProcess step in conversion
[PreProcess("R\$(\d+)", "$")]
public int Price { get; set; }

from which the replacement will be fed into the converter. I'll think of other solutions and from next week I can become more involved in these things. Looks like you're in a similar situation so that time we can split up every feature and implement them.

@EdonGashi Yes that would be great beacause it opens up to more things, as for currency this should be fixed by passing NumberStyles to double.parse but this could happen on other types too, I'll check it out when I can.

@EdonGashi Hey I think you should open a issue to keep track of suggestions, cause I've got loads and when I get some free time I'd be glad to add them!

Opened #17 & started testing some approaches to field conversion

Added [Replace("regexpattern", "replacement")] attribute which can be used to modify input string before being parsed. Currently this only works for converted fields. I'm not sure if this should also work for strings, since in them you can just define a custom setter to process the value.
This shouldn't be used for things like currency though, because I'm adding a new attribute [NumberStyle(NumberStyles.Currency)] which can decorate numeric properties. Otherwise hard coding Currency number as fallback does not sound too flexible.

Awesome!

Reopening so I don't forget about NumberStyles


Make all examples work with tsconfig strict = true, then roll out as default

Any update on this? I just went through a migration to turn this on explicitly on a project I recently joined. It required ~200 changes to type annotations. (And my team was surprised to learn the default was "never type-check null/undefined".) Enabling this by default for new projects will get this right from the start.


Only getting gojq: compile error: function not defined: keys_unsorted/0

On macOS 13.2.1 with go 1.20.1, I am unable to use gojq for anything because of the error gojq: compile error: function not defined: keys_unsorted/0.
❯ echo '1' | gojq .
gojq: compile error: function not defined: keys_unsorted/0
❯ echo '{ "foo": 123 }' | gojq .
gojq: compile error: function not defined: keys_unsorted/0
❯ echo '{ "foo": 123 }' | gojq keys
gojq: compile error: function not defined: keys_unsorted/0
❯ gojq --version
gojq 0.12.12 (rev: HEAD/go1.20.1)

I found this trying to use gojq with something more involved related to the AWS CLI:
aws ssm get-parameters-by-path \
  --path / --recursive |
  jq -r ".Parameters[].Name | select((. | startswith(\"/${env_name}/\")) and (. | endswith(\"/config\"))) | \"\t\" + ." |
  sort

jq is a wrapper function that calls gojq if it is detected and jq otherwise.

The keys_unsorted function is not implemented in gojq as documented in Difference to jq. You might have configured jq configuration in ~/.jq which contains keys_unsorted.

Ah. That substantially decreases my ability to use gojq as it appears that there is no obvious way to suppress the reading and compilation of ~/.jq.
Aside from removing keys_unsorted from this file, do you have any recommendations on how to fix this?

Setting $HOME empty will help (env HOME= gojq .).


Box still looks at development path when binary deployed to server.

I've followed the example in the README file and I'm not able to run my binary on a different machine, packr always looks for the path on my development machine.
Relevant project structure:
|-model/database.go
|-sql/subDir/file.sql
|-main.go
In model/database.go
getQuery("subDir/file.sql")
func getQuery(filename) {
box := packr.NewBox("../sql")
query := box.String(filename)
return query
}
I build with:
packr -v
go build
or
packr build -v
I see expected output:
packing file subDir/file.sql
packed file subDir/file.sql
built box ../sql with ["subDir/file.sql"]
and run the binary:
./app-binary
On my server, the files are not found, I just get a blank string from box.String(filename). If I use box.MustString(filename) and inspect the error I can see it is looking at the path on my development machine (which doesn't exist on the server).
I can see the -packr.go file after running packr and my files exist there:
func init() {
packr.PackJSONBytes("../sql", "subDir/file.sql", ""SU5TRVJblah"")
}
Am I missing something?

 The reason is that since it drops go files those files need to be in the path you’re about to compile.

I might not have illustrated my problem sufficiently, but I fixed the issue and it wasn't a packr problem so I'm sorry to mark it as one. I was reading the query files into global variables, and the read was executed before the init() function that initialises the packr box.
I'm still learning Go and on a new project and I didn't realise the order of execution that was occurring.


Support for unrestricted access to kube-apiservers

Allows me to query kube-api when there is not auth required.  Do I need to up the version in setup.py or do you manage that separately with your release process? (i'm new to python ecosystem)

Coverage decreased (-0.07%) to 36.965% when pulling a006ed80327a8add6ba7c8d4c88f3c479b87a4f1 on davidsiefert:master into 077a405afd366ba6f762b6d7f7e0b60d05c2ef8d on eldarion-gondor:master.

Hmmm, lemme see if I can add a test here...

Coverage increased (+1.7%) to 38.716% when pulling 1784f9d5369a2fceeb3dc7182b9b49b88efd8d84 on davidsiefert:master into 077a405afd366ba6f762b6d7f7e0b60d05c2ef8d on eldarion-gondor:master.

Cool, how does this look for resolving #18?

@davidsiefert
So I just tried your PR and it doesn't seem to work, here's the output as well as my .kube/config, could you add a case for this?
~/dropbox/etc                                                                                ⍉
▶ python test.py
Traceback (most recent call last):
  File "test.py", line 7, in <module>
    api = HTTPClient(KubeConfig.from_file("/home/wikus/.kube/config"))
  File "/usr/local/lib/python2.7/dist-packages/pykube-0.9.0-py2.7.egg/pykube/http.py", line 26, in __init__
    self.session = self.build_session()
  File "/usr/local/lib/python2.7/dist-packages/pykube-0.9.0-py2.7.egg/pykube/http.py", line 36, in build_session
    if "token" in self.config.user and self.config.user["token"]:
  File "/usr/local/lib/python2.7/dist-packages/pykube-0.9.0-py2.7.egg/pykube/config.py", line 155, in user
    return self.users[self.contexts[self.current_context]["user"]]
  File "/usr/local/lib/python2.7/dist-packages/pykube-0.9.0-py2.7.egg/pykube/config.py", line 119, in users
    for ur in self.doc["users"]:
KeyError: 'users'

apiVersion: v1
clusters:
- cluster:
    server: http://localhost:8080
  name: dev
contexts:
- context:
    cluster: dev
    user: default
  name: dev
current-context: dev
kind: Config
preferences: {}

I do want to get this contribution merged, but I am blocking it until I have sorted out CLA requirements. Sorry for the delay, but know it isn't because the feature isn't useful or the patch is bad (I just have my mind elsewhere).

@jacobwegner CLA?

Okay cool I see--lemme add another test case

Coverage increased (+2.03%) to 39.072% when pulling 42d639d05bcb2ef1c1eabde23d448b3abe32031f on davidsiefert:master into 077a405afd366ba6f762b6d7f7e0b60d05c2ef8d on eldarion-gondor:master.

Alright! What a rush! :tada:
Lemme know if there are any improvements I can make to my PR--again I am new to Python ecosystem.  Thanks!

@brosner Can you comment more on the CLA requirements for pykube?

@detiber it'll just be the usual stuff, mostly just confirming that code contributed is actually yours to contribute.

Hi there!
Will this merge address cases with barebones configs like the ones used in development environments where you run k8s locally, such as:
apiVersion: v1
clusters:
- cluster:
    server: http://<IP_ADDRESS>:8080
  name: k8smaster-01
contexts:
- context:
    cluster: k8smaster-01
    user: ""
  name: default-context
current-context: default-context
kind: Config
preferences: {}
users: []

or should I open a different issue for this? Currently configs like this don't work with pykube because it fails with an empty user.

@pcm32 yes, this PR should fix that. I am hoping to get this merged soon, but there are outstanding issues for @davidsiefert to resolve.

+1 for this PR. I'd love to use this package, but can't until it supports the no auth scenario.
Thanks!


Escaped quotes in arguments

Problem
In $CARGO_HOME/config.toml used escaped quotes for linker arguments, but quotes passed as is (with backslash) to the arguments.

and so directly to the linker.
Version
cargo 1.75.0-nightly (6fa6fdc76 2023-10-10)
release: 1.75.0-nightly
commit-hash: 6fa6fdc7606cfa664f9bee2fb33ee2ed904f4e88
commit-date: 2023-10-10
host: x86_64-pc-windows-msvc
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.3.0-DEV (sys:0.4.66+curl-8.3.0 vendored ssl:Schannel)
os: Windows 10.0.17763 (Windows Server 2019) [64-bit]

Could you give full reproduction steps, including the final observed problem?

I am going to close due to lack of a minimal set of steps to reproduce, and it has been inactive for a while. Here are tips about how to create a minimal, complete, and verifiable example.
Feel free to comment below or open a new issue if there is any update.


[Python] Change development release postfix to dev

Close https://github.com/dmlc/xgboost/issues/6984 .
May need to make some changes to CI, let's see the result first. ;-)

@trivialfis Thanks for creating the PR!


[PE-D][Tester A] findmeetings feature not working properly

User guide says that the AFTER_DATE should come first followed by the BEFORE_DATE.
Here I have entered the dates of the incorrect format but the error thrown is simply Unknown Command. Perhaps a more insightful error can be thrown if I have typed the incorrect format of the dates.
Furthermore I have typed out the command as specified in the example, yet I still get an error for some reason. Perhaps theres some bug with the feature itself?

Labels: severity.High type.FunctionalityBug
original: JordanChua/ped#7

Yeah, this was my own dummy typo :/ fixed already


Add function getimstatus().

Add a function to get the IME status.
Plugins that divide control according to the IME status can be developed.
For example: input completion plugin may break by IME.
On Windows, it is difficult to get the IME status by external program.
So it had to be implemented in vim.

Codecov Report

Merging #4904 into master will increase coverage by 0.15%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #4904      +/-   ##
==========================================
+ Coverage   81.49%   81.64%   +0.15%
==========================================
  Files         123      123
  Lines      143509   146154    +2645
==========================================
+ Hits       116948   119334    +2386
- Misses      26561    26820     +259

Impacted Files
Coverage Δ

src/evalfunc.c
91.29% <100%> (+0.17%)
:arrow_up:

src/xdiff/xemit.c
67.1% <0%> (-1.39%)
:arrow_down:

src/if_python3.c
74.39% <0%> (-1.39%)
:arrow_down:

src/if_python.c
76.05% <0%> (-1.32%)
:arrow_down:

src/spellfile.c
73.86% <0%> (-1.23%)
:arrow_down:

src/blob.c
85.61% <0%> (-0.6%)
:arrow_down:

src/xdiff/xpatience.c
89.22% <0%> (-0.59%)
:arrow_down:

src/libvterm/t/harness.c
88.59% <0%> (-0.5%)
:arrow_down:

src/ex_cmds2.c
84.12% <0%> (-0.42%)
:arrow_down:

src/list.c
91.12% <0%> (-0.4%)
:arrow_down:

... and 98 more

Continue to review full report at Codecov.

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


Update how to deal with /data/db not found

This is a bit user and unix specific.  Setting up Mongodb is beyond the scope of our regular instructions.


LUCY-295 Int widths for text/byte sizes

Address -Wconversion warnings relating to string lengths, code point counts, and binary data lengths.
In addition, minor refactoring of Inversion.

Looks good.


precommit: ensure current year is present in LICENSE[.md]

I always forget to update copyright year ranges in licences, short of (or in additional to) automating this, adding a simple grep check to the precommit recipe would be quite handy.

I did notice a really minor difference between our styles of LICENSE the other day. Yours seem to use (c) as a copyright symbol, whereas I use the Unicode symbol ©. Might be relevant when implementing this.

I think it would be adequate to literally grep for the current year with word boundaries and complain if it's not there.

I manage this through Terraform now, anyone else feel free to reopen if it's still relevant to your needs.


Update BUG REPORT template

in BUG REPORT template there are listed client and server unsupported from current version of library

Agreed :-)


[4.0][BUGFIX] fix switch icon_picker

No break on switch iconset always pick default option.

A new inspection was created.

The inspection completed: No new issues

Hi @adriallongarriu ,
Thanks a lot for the PR - such an easy fix, I'm sorry I didn't get to merge this sooner. I've just merged it into master and it'll be available in a few hours with a composer update.
Thank you for putting this together - you rock!
Cheers!


fix an issue with extra spacing in large items. close #819

Deploy preview for landscape ready!
Built with commit 6d69ad21f8e3d83703c9161a9d3572a8884bd97f
https://deploy-preview-830--landscape.netlify.com


Send multiple responses for a single input

Is it possible to send multiple response to a conversation? How can i do something like this
user: Hello
bot: Hello, hi
bot: Good afternoon
bot: How can I help you today?

This would need a custom logic adapter and possibly a custom output adapter to handle this case. At the moment, the existing ones just handle returning a single response.

Ah ok. I see what you are saying - the logic adapter outputs multiple responses in a certain format and let the output adapter send the response as multiple messages

Another use case for the bot returning two response is:

User submits a request asking for a report
This kicks off a script (python) to run a report
The Bot replies "Hold on. Let me generate that report."
Bot replies again "Here's a link to your report and the tracking number is..."


Build ipywidgets and copy output into right place

For #3429

Codecov Report

Merging #8620 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #8620   +/-   ##
=======================================
  Coverage   58.45%   58.45%
=======================================
  Files         520      520
  Lines       23568    23568
  Branches     3865     3865
=======================================
  Hits        13776    13776
  Misses       8873     8873
  Partials      919      919

Continue to review full report at Codecov.

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


npm install not working

It seems there's a problem with react-addons-test-utils in this package.
I am unable to npm install to be able to build
$ npm install
npm WARN deprecated<EMAIL_ADDRESS>This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated<EMAIL_ADDRESS>no longer maintained
npm ERR! code ETARGET
npm ERR! notarget No matching version found for<EMAIL_ADDRESS>npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'react-trix'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/billd/.npm/_logs/2018-10-16T20_44_22_575Z-debug.log

@adueck thanks for reporting the issue. I'll look into it as soon as possible, but I have difficulties finding work hour for this project.
I'm open to getting help via PR if anyone is interested.


range_date filter is not appended with .inuse class

Hi,
found bug, when you click date from datepicker the input is not appended with .inuse class, if you type date manually it is appended
example: http://yadcf-showcase.appspot.com/server_side_source.html

fixed by @misanek :)


[firebase_database] Fix for cacheSize issue

Description

Pretty simple fix for the casting issue documented in #81

Related Issues
#81
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[X] If the pull request affects only one plugin, the PR title starts with the name of the plugin in brackets (e.g. [cloud_firestore])
[X] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[X] All existing and new tests are passing.
[X] I updated/added relevant documentation (doc comments with ///).
[X] The analyzer (flutter analyze) does not report any problems on my PR.
[X] I read and followed the Flutter Style Guide.
[X] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[] I updated CHANGELOG.md to add a description of the change.
[X] I signed the CLA.
[X] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[X] No, this is not a breaking change.

It looks like the failures were CI/CD side and not code related as they both resolved with a timeout error.
If there's something I need to do with the code, please let me know.

???

???

Thanks for this PR. It can now be closed as it's been addressed in 3.1.5 release, with tests.


Mat-tooltip bug: The pipe 'async' could not be found

When i run command :ng build --prod, I found an error in console
ERROR in : Template parse errors: The pipe 'async' could not be found ("
]class.mat-tooltip-handset]="(_isHandset | async)!.matches" [@state]="_visibility" (@state.start)="_an")
My configurations in angular.json
 "configurations": {             "production": {               "fileReplacements": [                 {                   "replace": "src/environments/environment.ts",                   "with": "src/environments/environment.prod.ts"                 }               ],               "optimization": true,               "outputHashing": "all",               "sourceMap": false,               "extractCss": true,               "namedChunks": false,               "aot": true,               "extractLicenses": true,               "vendorChunk": false,               "buildOptimizer": true             }           }         },
angular: 6.1.2
angular/material: 6.4.5
rxjs: 6.2.2

Setting "enableIvy": false (or simply removing it) in angularCompilerOptions (tsconfig.json) resolved this issue for me.

Setting "enableIvy": false (or simply removing it) in angularCompilerOptions (tsconfig.json) resolved this issue for me.

Thank you @resamsel !  This is resolved this issue for me too.

@resamsel Thank you!

@resamsel But for internationalization should i keep that configuration?

@resamsel make my day, thank :)

please, Angular team,and @josephperrott you cannot close this issue without resolving the problem as it doesn't concern troubleshooting --> we've got a real bug here.

please, Angular team,and @josephperrott you cannot close this issue without resolving the problem as it doesn't concern troubleshooting --> we've got a real bug here.

why should they close the issue? problem doesn't resolved. it doesn't work with ivy and this is not good

Did anyone solve this problem without disabling Ivy? I have exactly the same error.
ERROR in : Template parse errors:
The pipe 'async' could not be found ("
]class.mat-tooltip-handset]="(_isHandset | async)?.matches" [@State]="_visibility" (@State.start)="_an"): C:/Users/mcamusso/mcafee/dev/ng-workspace-components/demo/node_m
odules/@angular/material/tooltip/typings/index.d.ts.TooltipComponent.html@0:51

@camu891 Ivy Renderer not is a production ready feature, actually is in development, actually does not exist async pipe support using Ivy Renderer.

Actually, this issue isn't a bug, as the Ivy renderer is not in prod yet, so it's not used for rendering in Angular applications for now (maybe in future versions) and disabling it won't affect anything you're doing on actual version.


Disable options

Hello!
I've been playing around with certain ideas with the options and i was wondering if there is a way to disable certain options?
Thanks,
Karan Kumar

Hi @karankumar89
I would use the render prop to render custom list items then disable them as needed. On your array of items you can add a disabled property and reference that:
 <Picky
  {...restOfYourProps}
  render={({
    style,
    isSelected,
    item,
    selectValue,
    labelKey,
    valueKey,
    multiple
  }) => {
    const cssClass = classNames({ disabled: item.disabled, selected: isSelected })
    return (

 selectValue(item)}
      >
        {/* required to select item */}
        <input type="checkbox" checked={isSelected} readOnly disabled={item.disabled} />
        {item[labelKey]}

    );
  }}
/>

The example uses: https://www.npmjs.com/package/classnames
I've not tested the above code but it should put you on the right track. I hope this helps 👍


[Tests] Update MatcherFunc to new Nimble Predicate API.

As per title. Nimble introduces version 7.0.0 with new Predicate API. Additionally, thanks to this update, we've got a little nicer error messages 🐼
from:

Assertions: expected to match, got <imageMapping(Status Code: 200, Data Length: 0)>

to:

Assertions: expected to <jsonMapping(Status Code: 200, Data Length: 0)>, got <imageMapping(Status Code: 200, Data Length: 0)>

(also I've updated the Cartfile to match Nimble 7.0.0)

          1 Warning

:warning:
The Cartfile or Cartfile.resolved was updated, but there were no changes in the podspec. Did you forget updating the podspec?

SwiftLint found issues
Warnings

File
Line
Reason

Error+MoyaSpec.swift
4
Function should have complexity 10 or less: currently complexity equals 19

Error+MoyaSpec.swift
55
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
28
Force unwrapping should be avoided.

MoyaProviderIntegrationTests.swift
32
Force unwrapping should be avoided.

MoyaProviderIntegrationTests.swift
36
Force unwrapping should be avoided.

MoyaProviderIntegrationTests.swift
23
Function body should span 50 lines or less excluding comments and whitespace: currently spans 143 lines

MoyaProviderIntegrationTests.swift
17
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
26
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
31
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
35
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
39
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
41
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
45
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
53
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
65
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
68
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
81
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
95
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
100
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
107
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
110
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
114
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
115
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
121
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
125
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
133
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
140
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
143
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
151
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
163
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
168
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
177
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
182
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
185
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
193
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
198
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
202
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
218
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
234
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
240
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
252
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
255
Lines should not have trailing whitespace.

MoyaProviderIntegrationTests.swift
268
Lines should not have trailing whitespace.

  Generated by :no_entry_sign: Danger

Codecov Report

Merging #1099 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1099   +/-   ##
=======================================
  Coverage   76.51%   76.51%
=======================================
  Files          22       22
  Lines         728      728
=======================================
  Hits          557      557
  Misses        171      171

Continue to review full report at Codecov.

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

(Don't worry about this SwiftLint warnings: I've got a next PR lined up, with all fixes. Just need to do some gardening before :D)


CUDA error??????

When I tried to use chatglm3-6b to test on LongBench, I got the following error after loading the model:

"variance = hidden_states.to(torch.float32).pow(2).mean(-1, keepdim=True)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions."

Could someone help me?

遇到同样问题，请问你是如何解决的？ @xvolcano02

看起来是模型的最大长度不能设置为32768，要和那个json文件中一样设置成31500


Towards submission to the scikit learn contributor org.

This uses the sklearn contributor template. Still need to sort out:

[ ] documentation
[ ] CI

And probably other things.

Changes Unknown when pulling dfd739a8ea28e33a28d900c3ecc99280b2e84a17 on arokem:master into ** on uwescience:master**.


tailwind css supports

@zeyadsharo care you add some more info?

I mean does support tailwind css  in dynamic form

It already does.

Hi @zeyadsharo, I would like to kindly ask for the future to try to add a proper description when you open an issue on a repository, the more info the better.
Not sure which kind of tailwindcss support you need, you can use customClass on the fields factories to add tailwind utility classes like this
 username: TextField({
    label: 'Username',
    customClass: 'text-xs border border-gray-400 bg-gray-200'
  }),

Worst case scenario, add a class to the input and use tailwind @apply to add the utilities on css in case you need to modify a nested element
I plan to add a Tailwindcss based example and a Tailwindcss theme in the near future here #262

@alvarosaburido
the custom class works for parent not for input
 const form = computed(() => ({       id: 'text-fields-demo',       fields: {         qty: NumberField({           label: 'Quantity',           customClass:'rounded bg-green-500'         }),       },     }));

In that case you can add a class and use tailwindcss @apply.


ObjectOptional feature request

I made a simple helper which makes provided properties optional.
type ObjectOptional<O, K extends keyof O> = ObjectOmit<O, K> & Partial<Pick<O, K>>;

Use case:
type A = { a: boolean, b: number, c: string };
type B = ObjectOptional<A, 'b' | 'c'>;

const o: B = {
  a: true,
  b: 42 // 'b' is optional now
  // as well as 'c'
};

I think it would be nice to have it in typelevel-ts. 🤔

@thepheer Sure, would you like to send a PR?

I hope I did it right. 😄


Use click for arguments?

As mentioned in #138 , may want to switch to click for argument parsing, as its more composable and offers lots of features that the stdlib doesn't. Also handles printing colored strings if colorama is installed, prompt/confirming prompts in a nice way, along with other things like progress bars if you want to mess with that.
Since this is decorator based, also means a user has the possibility to extend the CLI by adding a hook somewhere
Once #138 has been merged, I'd be willing to write an initial PR for this, as I've been using click consistently for a few years now.

closing because of #155


Question about running extract_docs_from_index.py

I try to run the extract_docs_from_index.py  with this command and the index is pre-index provided by Pyserini:
awk '{print $3}' data/robust/*.run | python extract_docs_from_index.py lucene index-robust04-20191213/ > data/robust/documents.tsv
but I get an error:

and I do not change any code in the file.
my java version is:
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
Do I have the correct java?
Could you give some advice on this error?
Thanks a lot!

I index the Robust04 document files myself and run the extract_docs_from_index.py successfully!
Then I check the document.tsv file with pandas package and found that there are 73855 records here. I don't know how many files should be there and I appreciate that if you can tell me the correct number of records here!

I have also problems while running the extract_docs_from_index.py. Could you please release the document.tsv files?

We cannot release the dataset directly due to the data usage agreement. However, I could provide a script that builds the file from the ir-datasets package, if that would help? Note that for this to work, you would need the original dataset source files.
Let me know if this is something you'd want.

I try to run the extract_docs_from_index.py with this command and the index is pre-index provided by Pyserini:
awk '{print $3}' data/robust/*.run | python extract_docs_from_index.py lucene index-robust04-20191213/ > data/robust/documents.tsv
but I get an error:

and I do not change any code in the file.
my java version is:
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
Do I have the correct java?
Could you give some advice on this error?
Thanks a lot!
I index the Robust04 document files myself and run the extract_docs_from_index.py successfully!
Then I check the document.tsv file with pandas package and found that there are 73855 records here. I don't know how many files should be there and I appreciate that if you can tell me the correct number of records here!

I have the same problem with you. Could you please tell me how to solve it?

The error says that the index was created with a newer Lucene version than the current software supports. I think you should be able to add a codecs JAR to your CLASSPATH to overcome this. Here's one that might work: https://github.com/Georgetown-IR-Lab/OpenNIR/blob/master/onir/resources/lucene-backward-codecs-8.0.0.jar
You'll probably need to add it to the classpath here: https://github.com/Georgetown-IR-Lab/cedr/blob/master/cedr/extract_docs_from_index.py#L25
Let me know if this helps!

The error says that the index was created with a newer Lucene version than the current software supports. I think you should be able to add a codecs JAR to your CLASSPATH to overcome this. Here's one that might work: https://github.com/Georgetown-IR-Lab/OpenNIR/blob/master/onir/resources/lucene-backward-codecs-8.0.0.jar
You'll probably need to add it to the classpath here: https://github.com/Georgetown-IR-Lab/cedr/blob/master/cedr/extract_docs_from_index.py#L25
Let me know if this helps!

Thanks very much! I had addressed the problem successfully, but I still have a question... Specifically, how do you get the "train_pairs" in your study?

我尝试使用此命令运行extract_docs_from_index.py 并且索引是由Pyserini 提供的预索引： awk '{print $3}' data/robust/*.run | python extract_docs_from_index.py lucene index-robust04-20191213/ > data/robust/documents.tsv
但我收到一个错误： 我没有更改文件中的任何代码。
我的Java版本是： OpenJDK的版本“1.8.0_282” 的OpenJDK运行时环境（编译1.8.0_282-8u282-b08-0ubuntu1〜20.04-B08） OpenJDK的64位服务器VM（编译25.282-B08，混合模式） 我是否有正确的java？
你能就这个错误给出一些建议吗？ 非常感谢！
我自己索引了 Robust04 文档文件并成功运行了 extract_docs_from_index.py！ 然后我用pandas包查看document.tsv文件，发现这里有73855条记录。我不知道那里应该有多少个文件，如果您能告诉我正确的记录数，我将不胜感激！

您好，能看一下您处理的document.tsv文件的样例吗？我没有拿到完整的文件，所以不知道数据应该处理成什么样子

Hi，Can you share the files under your index-robust04-20191213 folder, please?