"nixos-rebuild build-vm-with-bootloader" fails

'build-vm-with-bootloader' fails. 'build-vm' works.
Steps to reproduce
$ nixos-rebuild -I nixpkgs=. -I nixos-config=configuration.nix build-vm-with-bootloader
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/zzbjpxcfxrnzihkkdqghdm3ywfrwzg9b-nixos-boot-disk.drv
  /nix/store/6gxp4bflsaqavb493p9wg8wsjl6clqxl-run-nixos-vm.drv
  /nix/store/488cakp8gq6p59289bn4a3ilsxq73y1z-nixos-vm.drv
building path(s) ‘/nix/store/x98r4wi5iyvh4aaxl49d6kxw5nmqsc4z-nixos-boot-disk’
Formatting '/nix/store/x98r4wi5iyvh4aaxl49d6kxw5nmqsc4z-nixos-boot-disk/disk.img', fmt=qcow2 size=41943040 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
QEMU 2.6.1 monitor - type 'help' for more information
(qemu) char device redirected to /dev/pts/0 (label serial0)
builder for ‘/nix/store/zzbjpxcfxrnzihkkdqghdm3ywfrwzg9b-nixos-boot-disk.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/6gxp4bflsaqavb493p9wg8wsjl6clqxl-run-nixos-vm.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/488cakp8gq6p59289bn4a3ilsxq73y1z-nixos-vm.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/488cakp8gq6p59289bn4a3ilsxq73y1z-nixos-vm.drv’ failed

configuration.nix:
{ config, lib, pkgs, ... }:

{ # empty config
}

At first I thought it was just poor error handling due to missing boot.loader config or something. But the same error happens when I using my regular/working configuration.nix file.
Technical details

System: NixOS 16.09
Nix version: 1.11.4
Nixpkgs version: 62606be9b07e11b59fad35113a9a22627fc15e1b (master branch as of today), also tested on NixOS 16.03/16.09/unstable

If also fails for me on NixOS 16.03.

It seems to fail on this line:
https://github.com/NixOS/nixpkgs/blob/c311871a6d0a3f83a0cec3e6b8804a741b83dcb5/nixos/modules/virtualisation/qemu-vm.nix#L147
I traced it with trial and error by inserting some return 0. If someone knows a better way to debug runInLinuxVM invocations, I'd be glad to know about it.

@edolstra, @ts468

Thanks, I'll have a look!

Should be fixed in master: https://github.com/NixOS/nixpkgs/commit/0a8d9779c5b3bce15b252bb0f31c94744107ecf6
@globin: Maybe you want to cherry-pick it into 17.03?
@lbonn: For debugging the VM it might help to remove "-nographic" in https://github.com/NixOS/nixpkgs/blob/0a8d9779c5b3bce15b252bb0f31c94744107ecf6/nixos/modules/virtualisation/qemu-vm.nix#L136

@globin: I leave the issue open until the fix is confirmed and cherry-picked into 17.03.

@globin: Please cherry-pick that one as well: https://github.com/NixOS/nixpkgs/commit/b9a7aacef71671bdeffdc7c4f21e3b25cb3d4a5a

Confirmed that it works on release-17.03.

Thanks btw, made it possible for me to fix memtest easily as I don't have a grub on my system. :)

Yeah, thanks for fixing this!


Cannot connect to daliserver

Installed on a raspberry pi 3, as per instructions. Everything seemed fine, and the service is running. But can't seem to connect. I've tried everything I can think of for ip address and port, and keep getting messages like:
Can't connect to <IP_ADDRESS>:55825 at usbdali.pm line 72
Using a debugger, the low-level connect function in IO/Socket.pm is saying "Connection refused".
Your help will be greatly appreciated!!
Thanks

Note: The service status is always "Active (exited)", even after reboot or restart.

Note

Note: the service status is always "Active (exited)", even after reboot or restart

Please start daliserver directly and see if it finds the USB adapter.

Looks like daliserver binary was not built/installed correctly, so the init service failed (obviously).
Closing this bug.


Image Preview is white

When I assign a Bitmap into the ImageCropView some devices show a white background instead of the picture. Do you know something about that problem?

Do some devices show picture in same source code?
"layout_width" and "layout_height" of ImageCropView must be "match_parent".
is right?

Yes. Some devices show the picture just the way it should be. I think it's a matter of image size.
Today im going to check the logs in a device that fails to show the picture and they Ill know more information.
Thank you for your response.

Oh. I see
please check issue #1
imageCropView.setImageBitmap(bitmap) -> imageCropView.setImageFilePath(uri.toString())


Compute folder-level viewport for folder zoom links

Currently, a folder with no defined viewport will have no zoom link, so that
it's only possible to zoom to individual layers with viewports defined.  There
is no 1-click way for users to find a folder-level viewport within which to
toggle sublayers on and off and see the resulting overlays toggled.

We should compute the union of all descendant layers' viewports (or maybe the
union of currently enabled sublayer viewports) and always display the
folder-level zoom-to link if at least one descendant has a viewport.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 10 Apr 2013 at 12:09

Closing - This repository is being archived. It is no longer maintained.


Update import/export account for Cardano

[x] Allow import/export for 15-word seed phrase
[x] Warn users about wallet compatibility upon creating unified account -> No need
[x] Support import/export JSON file for Cardano on Unified account
[x] Fix bug importing watch-only account

[ ] Show popup Incompatible seed phrase when import Cardano account (15 words)

Actual:

Show popup Incompatible seed phrase
Create Unified account

Expect: Do not show popup, create Cardano solo account

[ ]  Show popup Incompatible seed phrase when import Cardano account (15 words)

Actual:

Show popup Incompatible seed phrase
Create Unified account

Expect: Do not show popup, create Cardano solo account

Ans: Metamask (EVM), Polkadot.js (Substrate) also support for 15-words seed. The accounts created from the seed from those wallets are compatible with SubWallet -> We can create Unified Account from 15-words seed.

Show popup Incompatible seed phrase when import Cardano account (15 words)

Polkadot.js (Substrate) and Metamask (Ethereum) also supported for 15-words seed. The accounts created from those wallets are compatible with the unified account created from SubWallet => We can create unified account from 15-words seed.


[Feature Request][Keras] Allow loss function using multiple tensors as input

Some loss functions not only depend on y_pred and y_true but also depend on other tensors, such as a CTC loss (related to

https://github.com/ysoullard/CTCModel/blob/d9e87fb24a6f7446457de5c89004404a900ce00b/CTCModel.py#L108
https://github.com/robmsmt/KerasDeepSpeech/blob/553638821c996cb6049e34185babacdb8f00c215/model.py#L145
https://github.com/ypwhs/captcha_break/blob/master/ctc_2019.ipynb

),
Yolo3 loss (related to

https://github.com/qqwweee/keras-yolo3/blob/e6598d13c703029b2686bc2eb8d5c09badf42992/train.py#L131
https://github.com/experiencor/keras-yolo3/blob/768c524f277adbfd26c2f44d73cb1826bbaf2d10/yolo.py#L361

)
and CRF loss function (relate to

tensorflow/addons#1363
tensorflow/addons#377

).
Maybe we can provide a container named GroupedTensorContainer to make it works like below:
x_np, y_np = get_test_data()

x_input = tf.keras.layers.Input(shape=x_np.shape[1:])

# NOTE: tensors can from different layers
pred_y, loss_required_1, loss_required_2 = SomeLayer(5)(x_input)

canned_tensors = GroupedTensorContainer(visiable=pred_y, hidden=(loss_required_1, loss_required_2))

model = tf.keras.Model(x_input, canned_tensors)

model.compile("adam", loss=SomeLoss())
model.fit(x_np, y_np)
model.evaluate(x_np, y_np)

container = model.predict(x_np)
container  # this is the visible tensor

while the SomeLoss has such a prototype:
class SomeLoss:
    def __call__(self, y_true, y_pred, sample_weight=None):
        pred_y = y_pred.visiable_tensor
        loss_required_1, loss_required_2 = y_pred.hidden_tensors

       loss = compute_loss(
            y_true, pred_y, loss_required_1, loss_required_2
        )

        return loss

System information

TensorFlow version (you are using): 2.1
Are you willing to contribute it (Yes/No): Yes

@pavithrasv Please take a look, thank you!

@pavithrasv Could you please take a look?
Or anyone from the official team willing to take a look? This issue already waiting for more than one year, but I am still want to figure out: the idea is good or not.

@howl-anderson, Sorry for the late response. Is this still an issue for you?
Can you please try recent TFv2.7 and let us know whether it is persisting. Also, share a simple standalone code to reproduce the issue. Thanks!


zodToJsonSchema: pipeStrategy 'output'

Using transform in the output zod schema works pretty well.
Unfortunately, the generated openapi document indicates the wrong type in response.
Here is what I get:
"amount": {
  "type": "integer",
  "format": "int64"
}

I've found that we could get the correct response definition by using zod pipe and pipeStrategy 'output':
.output(z.object({ amount: z
    .bigint()
    .transform((v) => v.toString())
    .pipe(z.string().regex(/^\d+$/)) }))

Then I get the right response definition:
"amount": {
  "type": "string",
  "pattern": "^\\d+$"
}

Related issue: https://github.com/jlalmes/trpc-openapi/issues/264

Hey @jlalmes, any chance to have this merged?

I'm working on another option that would be useful for this case (callback). Maybe you could find a way to expose the zodToJsonSchema options object through the trpc-openapi API? BigInt serialization isn't really standardized with JSON after all, so a one-size-fits-all solution is unlikely

Thanks for looking that this PR @StefanTerdell ,
The solution I'm proposing here is not specific to BigInt. It enables usage of z.pipe for any use case. And I think it's the correct way to generate the openapi schema. What the API returns is the output of the zod schema, not the input.


Add support for QOS 1

May require some API changes.
Support for local persistence of message queue.

Is there any news or workaround to do QoS 1 please? =)

There is some support for QoS 1:

cdb6280b366f75f24caa61f55d89380581a3e5ff: Send PUBACK when receiving a publish with qos > 0
1acc44549f0b6c1139f3e36a56e5d59e16a6ae68: Ack after handling qos > 0 packets
6b33690030ccac02f9b37bc12b9f423be7b60897: Added puback handling for qos level 1 and 2

I haven't closed this issue because I haven't verified that support is complete.

Hey, is there any support yet for QOS 2? I see you added puback handling

Any update on this, i.e. is QoS 1 officially supported?

Any update on this?


rename method doesnt only rename

Operation System: windows 7
Beaker version:  Beaker v0.8.0-prerelease.9
await archive.rename( '/folder/new.json', '/folder/new2.json' ) ;
I tried several times to rename a file but the rename method doesn't rename the file,it just creates new copy of the file with the requested name.

Thanks for reporting.
The rename process works by copying the files and then deleting the old ones. It has to do that because hyperdrive has no concept of renaming internally. (cc @mafintosh- would there be any benefit to adding it?)
It sounds like Beaker is failing on the delete step for some reason. I'll investigate.

@pfrazee is it how webDB works? When you try to update a property on a json file,webDB actually creates new updated file then delete the old one?

No, webdb simply overwrites the files. The process I described is for file moves only

On Oct 6, 2018, at 3:45 PM, arni077<EMAIL_ADDRESS>wrote:
@pfrazee is it how webDB works? When you try to update a property on a json file,webDB actually creates new updated file then delete the old one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I'm not able to reproduce this. Can you tell me more about what happened? Were you syncing to a local folder? Was preview-mode on?

1.yes
2.preview wasnt on

No.


routing: configurable capacity fraction for apriori probability

Change Description
This PR adds a capacity fraction configuration parameter to make the capacity factor used in apriori probability calculations adjustable. The capacity fraction decides how large the effective fraction of a channel's capacity is in pathfinding. When a payment amount comes close to the capacity fraction, these channels are considered less.
The shape of the capacity factor function is slightly altered, it is limited in how low it can become in the case of channel saturation (and therefore how high the penalty can get in pathfinding as the weight is proportional to 1/(apriori probability * capacity factor)).
The capacity factor can be turned off by setting a capacity fraction of 1.0 (i.e., use all the capacity). The allowed value range is [0.75, 1.0] with a conservative default of 0.9999 (this still has some effect).
A comparison between the current and revised capacity factor can be seen here for a channel of 1Msat. To see how much a saturated channel is penalized more compared to the unsaturated case, one can have a look here. Note, there are sliders to play around with config parameters.
Todo:

[ ] release notes

Maybe we could be "a bit" more aggressive with the DefaultCapacityFraction but it is something that we can always change in the future.

Thank you for the review! Yes, it's difficult to find a good value here, but open to that, my approach was rather to be cautious. In the latest version of code comments I hope that it's more clear that 0.9999 still has some effect due to the smearing. It becomes more obvious by looking at https://www.desmos.com/calculator/rm1kg0fwpl, moving the slider to the right.


[BUG] - Error when analyzing template with experimentalFeaturesEnabled in bicepconfig.json

Describe the bug
It seems that analyzing template which has resource inside always is failing when bicepconfig.json has experimentalFeaturesEnabled.
As an example we can take official sample from Azure github:
https://github.com/Azure/azure-docs-bicep-samples/blob/main/samples/create-storage-account/main.bicep
Exception details:
Microsoft.Azure.Templates.Analyzer.Core.TemplateAnalyzerException: Error while evaluating rules.
 ---> System.InvalidCastException: Cannot cast Newtonsoft.Json.Linq.JProperty to Newtonsoft.Json.Linq.JToken.
   at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
   at Newtonsoft.Json.Linq.Extensions.Convert[T,U](IEnumerable`1 source)+MoveNext()
   at Microsoft.Azure.Templates.Analyzer.RuleEngines.PowerShellEngine.PowerShellRuleEngine.AnalyzeTemplate(TemplateContext templateContext)
   at Microsoft.Azure.Templates.Analyzer.Core.TemplateAnalyzer.AnalyzeAllIncludedTemplates(String populatedTemplate, String parameters, String templateFilePath, TemplateContext parentContext, String pathPrefix)
   --- End of inner exception stack trace ---
   at Microsoft.Azure.Templates.Analyzer.Core.TemplateAnalyzer.AnalyzeAllIncludedTemplates(String populatedTemplate, String parameters, String templateFilePath, TemplateContext parentContext, String pathPrefix)
   at Microsoft.Azure.Templates.Analyzer.Core.TemplateAnalyzer.AnalyzeTemplate(String template, String templateFilePath, String parameters)
   at Microsoft.Azure.Templates.Analyzer.Cli.CommandLineParser.AnalyzeTemplate(TemplateAndParams templateAndParameters)

When I was debugging I found out that temporary json files created from bicep during analyzing differs depend on experimentalFeaturesEnabled, which seems to be causing exception.

Expected behavior
Bicep is analyzed without throwing exception when experimentalFeaturesEnabled in bicepconfig.json
Reproduction Steps

Sample bicepconfig.json:

{
    "analyzers": {
        "core": {
            "enabled": true,
            "rules": {
              "max-outputs": {
                "level": "warning"
              },
                "explicit-values-for-loc-params": {
                    "level": "off"
                }
            }
        }
    },
    "experimentalFeaturesEnabled": {
        "userDefinedTypes": true
    }
}

Sample bicep file:

https://github.com/Azure/azure-docs-bicep-samples/blob/main/samples/create-storage-account/main.bicep

Run:

TemplateAnalyzer.exe analyze-template C:\main.bicep -v
Environment
Template Analyzer Version: 0.5.2
.NET version: 7.0.102
IDE: Visual Studio 2022 (17.4.4)

Thanks for reporting. Template-Analyzer is currently using an older version of bicep since template-analyzer is still targeting .NET6. We'll be moving to the latest Bicep.Core on .NET7 which may fix this issue with the next release.

Template Analyzer was recently updated to the latest version of Bicep and .NET 8, so it's possible this issue is resolved. Could you try with version 0.7.0?

still open even with 0.8.0


blog link

we should add a link to the blog. (and maybe move the "Journal" content to medium??) cc @rowanc1

We could migrate the blog posts over to medium: https://help.medium.com/hc/en-us/articles/218572107-Migrate-to-Medium


Stalling at Step6

Hi, I had to reinstall ClairS-TO and did at first not notice that there was an update last week. Whenever I ran my pipeline it stalled at step 6, when writing logs I think. After downgrading to version 0.1.0 it runs again through as before. Does someone else see this issue?

Hi Hans-Peter,
Could you please send me the log file?

Hi, sorry for my late reply, I was on holiday. I moved the clairs-to log file to the logs folder and bundled it in a tar file so you have all logs available.
clairs-to_logs.tar.gz

Hi, @hpf0815,
Thanks a lot for your interest and support. We have checked your running logs and found that the issue was caused by the incompatibility in your data and the Verdict module at the moment. It is worth noting that the Verdict module currently only works for GRCh38 reference genome and we are still continuing to improve it. We have released a new Docker image with adding more compatibility checks in the Verdict module. You could rerun the program with your data with the latest image of ClairS-TO and check if the same issue still exists.
Lei


del isn't called when expected

The goal I'm trying to accomplish is a class that cleans up after itself when the object is no longer in use. Users (i.e: me) sometimes forget to clean up their own messes.
__del__ seemed to be the right way to implement this, but it isn't working as expected.
I have the following module (test_helpers.py):
class NoisyThing:

    def __init__(self, name):
        log.info(f'starting NoisyThing {name}')
        self.name = name
        self.counter = 0
        self.trigger_func = None

        self.startup()

    @pyscript_compile
    def __del__(self):
        self.trigger_func = None

    def startup(self):

        @time_trigger("period(now, 1sec, now + 30sec)")
        def be_noisy():
            self.counter = self.counter + 1
            log.info(f'{self.name} counter {self.counter}')

        self.trigger_func = be_noisy

If used like this, by reloading (just saving the file again with no changes) you can see by the log output the old object and trigger functions are not destroyed. Reloading test_helpers, however, does stop the noise:
from test_helpers import NoisyThing

a = NoisyThing('a')

Ideally, the above would work as the goal is to make NoisyThing clean up after itself.  However, this (which doesn't accomplish the goal) also doesn't work:
from test_helpers import NoisyThing

a = NoisyThing('a')

@time_trigger('shutdown')
def shutdown():
    # without global a "name 'a' is not defined" NameError occurs
    global a
    del a

The only way to make it work is to call it directly:
from test_helpers import NoisyThing

a = NoisyThing('a')

@time_trigger('shutdown')
def shutdown():
    a.__del__()

Perhaps, when a context is reloaded/destroyed, all of the variables in that context could be iterated and explicitly deled.
Another solution (not for object destruction in general, but for handling trigger functions created like this) might be to have a pyscript method explicitly for registering trigger functions in the current context. This would allow me to replace the last line of startup with func.register(be_noisy).
Another solution (that might break other things?) is to have modules run in the context of whatever is calling it. That way they are destroyed when the calling script is destroyed, instead of being tied to the module itself.

It's also worth noting that returning the trigger functions doesn't clean up the mess either:
test_helpers.py
class NoisyThing:

    def __init__(self, name):
        log.info(f'starting NoisyThing {name}')
        self.name = name
        self.counter = 0

    def startup(self):
        @time_trigger("period(now, 1sec, now + 30sec)")
        def be_noisy():
            self.counter = self.counter + 1
            log.info(f'{self.name} counter {self.counter}')

        return be_noisy

test_script.py
from test_helpers import NoisyThing

a = NoisyThing('a')
a_triggers = a.startup()

Like #281 I suspect this may've been caused by #457, so it could be fixed now that Craig has resolved that issue.


A process to find new solutions

Hi there, I'm testing a way to implement a FMC technique to search others solutions based on a single one. It is called NISS.
It seems you're proposing a new feature: implementing the NISS (Normal Inverse Scramble Switch) technique to find alternative solutions based on a single one.

Understanding NISS
From what I just learned on the Internet, NISS involves:

Applying a few prefix moves to a scramble,
Solving the instance, and
Canceling the prefix moves.

This technique works just because we're interested in relative transitions and the starting point of a scramble-solution loop can be arbitrarily rotated.
Implication
By applying NISS, you're essentially solving a given state from different perspectives multiple times (e.g., with 1 prefix move, 18 times; with 2 moves, 18 × 15 = 270 times).
Complexity-wise, this is equivalent to solving a given state with a larger beam width, which correlates strongly with the number of expanded nodes.
Quick Experiment
To assess NISS, we should compare it against the default with an at least 18x wider beam search.

Although we don't have enough samples to draw conclusions, solution lengths are largely bounded by the beam width parameter.
Therefore, I'm skeptical about the prospects of using NISS compared to simply increasing the beam width.

Feel free to object or test NISS more extensively.

Thanks for replying my message!
And thank you for your beautiful system to solve the Rubik's cube! It's fascinating!!
I still think NISS could help finding shorter solutions at a cost of little additional time.  If we set a correspondent beam width (11024 + x) to give the same time consuming (48s+7s) it will no longer give us a 19 moves solution...
I think it's a valid way to search for great solutions.
If you are willing to wait double the time, it is possible to use the same strategy for the inverse scramble as a new scramble:
The very first solution is already better than the original one:
Only solving the inverse scramble:
Beam width = 11024
moves: 19 , time: 40.4495673750007 , solution: D2 R U' F U2 F' U F2 R2 D2 R2 L U L' U2 D' R' F2 R'
...
beam width = 1024
moves: 18 , time: 2.863695836998886 , solution: D2 L F' D F2 D' F D2 R2 B2 R' U L' U2 D' R' F2 R'
moves: 18 , time: 2.768658573999346 , solution: D2 L F' D F2 D' F D2 R2 B2 R' U L' U2 D' R' F2 R'
moves
...
It took additional ~40s to find a 19 move solution and than ~20s latter a 18 move solution!
I don't know if this will convince you, but I had to try hahahaha.
I used the following code to extract those results:
Solves[[result['num_nodes'],result['time'],result['solutions'][0]]]
a = result['solutions'][0].split(" ")
sol=''
for i in range((len(a)-1)):
sol+=a[i]
niss = NISS(sol)+" "+inv_scram
niss = normalizar(niss)
sol=sol+" "
alphacube.load()
result1 = alphacube.solve(scramble=niss,beam_width=1024,)
Solves.append([result1['num_nodes'],result1['time'],normalizar(sol+" "+NISS(result1['solutions'][0]))])
for i in Solves:
print('num_nodes:',i[0],', moves:',len(i[2].split(" ")),', time:',i[1], ', solution:',i[2])
Thank you for your time!

I see... It seems like you're suggesting to apply NISS after obtaining initial solution(s), not from the very beginning without prior knowledge.
If that's the case, then your suggestion -- reducing the initial complexity with NISS and re-solving the instance -- might be in fact reasonable.
At least in the case "D U F2 L2 U' B2 F2 D L2 U R' F' D R' F' U L D' F' D R2", as you mentioned, rescaling the beam width by (191260 + 15648) / 191260 to account for the extra time only reached 20-move solutions at best.
Note, however, it's still possible that increasing the beam width to account for the extra time works better on average.
Maybe that's something you may want to look into further.
If you will, you can get a dataset by calling dataset = alphacube._evaluator.get_dataset() and test your extension.

Hi there,
Upon verifying the effectiveness of this strategy on a random dataset sample, I discovered that in the majority of cases, it does not yield a better solution. When a better solution is found by NISS implantation, increasing the beam width would likely be more beneficial in many cases. Regrettably, the example I provided to you turned out to be an outlier.
I sincerely apologize for any inconvenience or time wasted due to this oversight.

@m-a-t-h-e-u-s
Thanks for reporting the evaluation result.
Let me first tell you that this is definitely not something you should be apologizing for and that I appreciate your suggestion.
As a matter of fact, I am still not sure if we should reject your proposal to (optionally) apply NISS post hoc.
Would you be willing to provide the code you used for the evaluation?
My concern here is that you might not have thoroughly tested your proposal.
More specifically, there actually might be a sweet spot where the trade-off between search complexity and optimality could be improved. The parameters to explore are:

The number of prefix moves you apply with NISS
The proportion of beam width relative to the initial solve

Thank you for beeing nice!
In the rare case that NISS finds a better solution (depends on bw original and bw niss), It is hard to me to find a correspondent beam width that matches the number of moves of the better solution from NISS, and then compare the time taken.
It would be nice to find a good cutoff number of moves to check using NISS as well. I think it is linear with respect to the length of the original solution.
I know it's another topic, but I'm trying to perform symbolic regression on your model. However, dealing with 54 entries and 18 outputs is quite overwhelming. I'm contemplating training another model to predict the number of moves required for the AlphaCube to solve a given scramble (I recall you did this, but I'm unsure if you have the model saved). Then, I'll use it as an evaluation function, similar to chess engines, and proceed with symbolic regression on this model, which involves 54 entries and 1 output.
Here is the humble code I used, you can put it in a loop and extract the data you think is important.
def NISS (scramble): #inverting a sequence of moves NISS("R U' F2") = "F2 U R'"
a = scramble.split(" ")
b = ''
for i in range(len(a)):
if len(a[len(a)-1 - i]) == 1: #U -> U'
lin = a[len(a)-1 - i] + "'"
else:
if a[len(a)-1 -i ][1] == "'": #U' -> U
lin = a[len(a)-1 - i][0]
else: #U2 -> U2
lin = a[len(a)-1 - i]
b = b + lin + " "
return b
def NISS_candidates(scramble, bw_initial, bw):
import time
time1 = time.time() #to see the total time of computation
inverse_scramble = NISS (scramble) #inverse of the scramble
alphacube.load()
result = alphacube.solve(scramble=scramble, beam_width=bw_initial,) #initial solution
total_time = result['time'] #to see time of searching new solutions only
num_moves = len(result['solutions'][0].split(" ")) # to track the number of moves of the original solution
Solves = [[num_moves, result['time'], result['solutions'][0]]] #number of moves; time; solution
Original_solution = result['solutions'][0].split(" ")
fragment_solution = '' #a sequence from the beginning up to a part of the solution
for i in range(num_moves - 5): #it is certain that omitting the 5 last moves of the solution it will give the original solution
fragment_solution += Original_solution[i]
new_scramble = NISS(fragment_solution) + " " + inverse_scramble #New scramble generated
#niss = normalizar(niss)
alphacube.load()
result1 = alphacube.solve(scramble=new_scramble,beam_width=bw,) #bw may be different to bw_initial
total_time += result1['time'] #add cumulative time of solution only
new_solution = fragment_solution + " " + NISS(result1['solutions'][0]) #according to NISS technique
Solves.append([len(new_solution.split(" ")), total_time, new_solution]) #number of moves of new solution; time to get new solution; new solution
fragment_solution += " "
time2 = time.time()
return Solves, time2 - time1
scramble = dataset[5] # a example that I found a better solution with NISS with those parameters
bw_initial = 11024
bw = 1024
Solutions, total_time = NISS_candidates(scramble, bw_initial, bw)
print('Total time of NISS approach:',time)
for i in Solutions:
print(i)
equal_original = len(Solutions)-1
while (Solutions[equal_original-1][0] == Solutions[equal_original][0]) and (equal_original > 2):
equal_original -= 1
print('From', equal_original, 'to beyond, the solutions were the same.')
best = Solutions[0][0]
best_position = 0
for i in range (1, len(Solutions)):
if Solutions[i][0] < best: #finding the best solution
best = Solutions[i][0]
best_position = i
if best_position == 0:
print('No better solution was found')
print('Best solution:', Solutions[0])
print('Wasted time:', total_time - Solutions[0][1])
else:
print('A better solution was found')
print('Original solution:', Solutions[0])
print('Best solution:', Solutions[best_position])
print('Total add time required:', total_time - Solutions[0][1])
print('Specific add time required:', Solutions[best_position][1] - Solutions[0][1])
Thank you for your attention.


Parsing oddity when using 'svid', 'cfg', 'srch', and 'scl' keys

On 0.4.2 in nixos I noticed that if I use any of the above keys in either defsrc or deflayer I get a parse error saying parse error then saying unexpected 's' (in the case of 'svid', 'srch', and 'scl') expecting ')'.
Here is the configuration file giving me trouble:
(defcfg
    input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
    output (uinput-sink "T440p Keyboard")
    cmp-seq ralt
    cmp-seq-delay 5
    fallthrough true
    allow-cmd false
)

(defsrc
    esc  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10  f11  f12   home end  ins  del
    grv  1    2    3    4    5    6    7    8    9    0    -    =     bspc
    tab  q    w    r    t    y    u    i    o    p    [    ]    \
    caps a    s    d    f    g    h    j    k    l    ;    '    ret
    lsft z    x    c    v    b    n    m    ,    .    /    rsft
    lctl spc  lmet lalt      spc            ralt ssrq rctl pgup up   pgdn
                                                           left down rght
)

(deflayer default
    esc  mute vold volu f20  brdn brup svid wlan cfg  srch scl  file  home end  ins  del
    grv  1    2    3    4    5    6    7    8    9    0    -    =     bspc
    tab  q    w    r    t    y    u    i    o    p    [    ]    \
    caps a    s    d    f    g    h    j    k    l    ;    '    ret
    lsft z    x    c    v    b    n    m    ,    .    /    rsft
    lctl _    lmet lalt      spc            ralt ssrq rctl pgup up   pgdn
                                                           left down rght
)

(deflayer colemak-dh
    esc  mute vold volu f20  brdn brup svid wlan cfg  srch scl  file  home end  ins  del
    grv  1    2    3    4    5    6    7    8    9    0    -    =     bspc
    tab  q    w    r    t    y    u    i    o    p    [    ]    \
    caps a    s    d    f    g    h    j    k    l    ;    '    ret
    lsft z    x    c    v    b    n    m    ,    .    /    rsft
    lctl _    lmet lalt      spc            ralt ssrq rctl pgup up   pgdn
                                                           left down rght
)

Thank you for your time.

(in the case of 'svid', 'srch', and 'scl')

Where did you find these keys? They don't seem like real keys to me.

Where did you find these keys? They don't seem like real keys to me.
I think I know what happened. I followed a link to the source code but I think it was outdated and I looked at source code from that link and found those keys.

Sorry for wasting your time.


Requirement: Remove Backend Connection Status -

we should monitor if our backend is down but this doesn't make sense for an end user.

https://github.com/neo4j-labs/llm-graph-builder/pull/246


*.CSV does not match foo.csv. (Case is not ignored)

Because of filepath.Glob(). https://github.com/golang/go/issues/5441
We have to make new glob function.


Edit/Cancel Ethereum Transaction - LLM part

📝 Description

Addition of a resend flow to speedup an ethereum transaction
Addition of flow to cancel a transaction

❓ Context

Impacted projects: LLM
Linked resource(s):

https://ledgerhq.atlassian.net/browse/LIVE-4317
https://ledgerhq.atlassian.net/browse/LIVE-4318
https://ledgerhq.atlassian.net/browse/LIVE-5066

✅ Checklist

[x] Test coverage
[X] Atomic delivery
[X] No breaking changes

📸 Demo
N/A
🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

TODO: add tests

👋  ESLint config has been unified on develop after we merged https://github.com/LedgerHQ/ledger-live/pull/3622 – this will improve the project consistency, remove eslint dependencies duplicates, and overall simplify the maintenance. This comes with a prettier library upgrade and unification of the prettierrc too, so you likely have conflicts with develop.
Hopefully, here is the procedure to easily fix this. please proceed as follow:
Step 1: sync your branch with develop up to the config changes:
2 cases

if your branch were continuously rebased with develop and don't have any merge commit, you can do

git rebase aa1e0ebc0a0498b4350754899b6a368fbd42e811

otherwise prefer

git merge aa1e0ebc0a0498b4350754899b6a368fbd42e811

then, apply the config
pnpm i
pnpm lint:fix --force

if there are remaining errors that lint couldn't fix, please fix them and pnpm lint again.
then commit in your branch.
git commit -a -m "chore: lint fixes"

Step 2: finalize the rebase/merge with develop
2 cases

if your branch were continuously rebased with develop and don't have any merge commit, you can do

git pull --rebase origin develop

otherwise prefer

git merge origin/develop

you should now be up to date. 👍


Measure generated code size

Add a command-line option to cton-util wasm for measuring the generated code size. The code size of a function is the number returned by Context::compile().
When compiling a wasm module, it is useful to be able to report:

Per-function wasm bytecode size and machine code size.
Aggregate sizes (bytecode and machine code) for the whole module.

While we still have a lot of low-hanging fruit in the generated code quality, code size is a good proxy for performance, and it is much easier to measure.

Trying this.


Metrics check for process' network transmit/receive queue lengths

This sensu check returns the network transmit and receive queue length metrics for a specified process. Specifically, the script looks at all the sockets owned by the process, uses the netstat -tpane command and extracts the queue lengths for each socket from this command output.
Also fixed a minor bug that where the metrics weren't being summed up for all the pids.

This new module will need a criticality added, like we added in 4bf3b0650054077d6335fa923351892b5701b81c

Apologies, forgot about the python functionality that could substitute for grep. Also added criticality for both of these scripts. In addition, simplified and adapted the scripts to match style/syntax of other plugins in this repo

Sorry to bother you reviewers, but I'd greatly appreciate it if y'all could take a peek at this again. Thanks for your time.

I think this is fine, @paulczar ?

@j2sol FYI criticality is only required for alerts.   metrics do not need.


Injecting images in Html

Hello, there are similar issues but nothing worked for me, I  am trying to inject images in html. I tried with base64 and with the url it self but nothing works.  Any idea?
const dataUrl = await imageToBase64(`http://docxtemplater.com/puffin.png`);
questionHtml +=`<p><img  style="height:100px" src="data:image/png;base64, ` + dataUrl + `" alt="test"/></p>`;

The following is in a for loop but ignore that, the rest of the information is displayed only the , <img> element is not shown
``+++HTML `
<meta charset="UTF-8">
<style>
table {
table-layout: fixed;
border-collapse: collapse;
margin: 0 auto;
width: 17cm;
}
th {
border: 1px solid #585858;
padding: 2px 4px;
}
td {
padding: 0 4px;
border: 1px solid #585858;
}
</style>
<body>
 ${questionsListTableHtml[$question]}
</body>
`+++

I can't really tell from this example what goes wrong. Can you provide executable code to reproduce this?


Connect versions to iToolKit repository Release page in github

Auto updater added
And in issues you can Go setting and clean cache for force update


gpio-table is partly hidden so that i can't select GPIO 26 or GPIO20

The new rpi gpio-table is partly hidden behind the following parts as you can see in the screenshot. I can't select GPIO 26 or GPIO20.

Firefox 54.0 for Linux Mint
Node-RED version: v0.17.3
Node.js  version: v6.11.0
Linux 4.9.28-v7+ arm LE on RaspberryPi
Details:
In /usr/lib/node_modules/node-red/nodes/core/hardware/36-rpi-gpio.html the table is ment to be 380px high, but is 440px high. It's because every row is 22px high instead of planned 19px. 22px come from the radio button, which is rendered 16px high with a margin-top of 4px and two borders of 1px. The margin-top of 4px is defined in red/style.min.css.
Possible solution:
For this special table, i think it's ok to delete the margin-top.
I for myself inserted the following style twice into "36-rpi-gpio.html" :
       div.pinTableRow input {                 margin-top:0;         }

I don't see this myself when I test on Chrome or Firefox, but I do see if happen if I modify the heights of div.pinTableRow... which is odd until I realised the containing form has a max-height set on it - which is preventing the form from growing to accommodate variations in size.
I don't see any need for max-height, so will remove. That should address the problem.

Works for me.
Nice solution, indeed!


Can't deploy to heroku due to Syntax Error (unrecognized JSX)

Hi,
just did a fresh install with Rails 5.1.5, added react_on_rails, works nice locally, but fails to deploy (it doesn't seem to recognize JSX).
simulator master $ git push heroku master
Counting objects: 539, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (424/424), done.
Writing objects: 100% (539/539), 237.61 KiB | 0 bytes/s, done.
Total 539 (delta 183), reused 216 (delta 60)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:        engines.yarn (package.json):  unspecified (use default)
remote:
remote:        Resolving node version 8.x...
remote:        Downloading and installing node 8.11.1...
remote:        Using default npm version: 5.6.0
remote:        Resolving yarn version 1.x...
remote:        Downloading and installing yarn (1.6.0)...
remote:        Installed yarn 1.6.0
remote:
remote: -----> Restoring cache
remote:        Skipping cache restore (not-found)
remote:
remote: -----> Building dependencies
remote:        Installing node modules (yarn.lock)
remote:        yarn install v1.6.0
remote:        [1/4] Resolving packages...
remote:        [2/4] Fetching packages...
remote:        info<EMAIL_ADDRESS>The platform "linux" is incompatible with this module.
remote:        info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
remote:        [3/4] Linking dependencies...
remote:        warning "@rails/webpacker ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>remote:        warning " ><EMAIL_ADDRESS>has unmet peer dependency "babel-runtime@>= 6".
remote:        warning " ><EMAIL_ADDRESS>has unmet peer dependency "js-yaml@>= 3.0.0".
remote:        warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0-rc || ^15.0".
remote:        warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0-rc || ^15.0".
remote:        warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^3.0.0".
remote:        warning "webpack-dev-server ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^2.0.0 || ^3.0.0".
remote:        [4/4] Building fresh packages...
remote:        Done in 32.28s.
remote:
remote: -----> Caching build
remote:        Clearing previous node cache
remote:        Saving 2 cacheDirectories (default):
remote:        - node_modules
remote:        - bower_components (nothing to cache)
remote:
remote: -----> Pruning devDependencies
remote:        yarn install v1.6.0
remote:        [1/4] Resolving packages...
remote:        [2/4] Fetching packages...
remote:        info<EMAIL_ADDRESS>The platform "linux" is incompatible with this module.
remote:        info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
remote:        [3/4] Linking dependencies...
remote:        warning "@rails/webpacker ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>remote:        warning " ><EMAIL_ADDRESS>has unmet peer dependency "babel-runtime@>= 6".
remote:        warning " ><EMAIL_ADDRESS>has unmet peer dependency "js-yaml@>= 3.0.0".
remote:        warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0-rc || ^15.0".
remote:        warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0-rc || ^15.0".
remote:        warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^3.0.0".
remote:        warning "webpack-dev-server ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^2.0.0 || ^3.0.0".
remote:        [4/4] Building fresh packages...
remote:        warning Ignored scripts due to flag.
remote:        Done in 7.51s.
remote:
remote: -----> Build succeeded!
remote:  !     This app may not specify any way to start a node process
remote:        https://devcenter.heroku.com/articles/nodejs-support#default-web-process-type
remote:
remote:  !     Unmet dependencies don't fail yarn install but may cause runtime issues
remote:        https://github.com/npm/npm/issues/7494
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.3.7
remote: -----> Installing dependencies using bundler 1.15.2
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Fetching gem metadata from https://rubygems.org/.........
remote:        Fetching version metadata from https://rubygems.org/..
remote:        Fetching dependency metadata from https://rubygems.org/.
remote:        Fetching rake 12.3.1
remote:        Fetching concurrent-ruby 1.0.5
remote:        Fetching minitest 5.11.3
remote:        Installing rake 12.3.1
remote:        Installing minitest 5.11.3
remote:        Installing concurrent-ruby 1.0.5
remote:        Fetching thread_safe 0.3.6
remote:        Installing thread_safe 0.3.6
remote:        Fetching builder 3.2.3
remote:        Installing builder 3.2.3
remote:        Fetching erubi 1.7.1
remote:        Fetching mini_portile2 2.3.0
remote:        Installing erubi 1.7.1
remote:        Installing mini_portile2 2.3.0
remote:        Fetching crass 1.0.4
remote:        Fetching rack 2.0.4
remote:        Installing crass 1.0.4
remote:        Fetching nio4r 2.3.0
remote:        Installing rack 2.0.4
remote:        Installing nio4r 2.3.0 with native extensions
remote:        Fetching websocket-extensions 0.1.3
remote:        Installing websocket-extensions 0.1.3
remote:        Fetching mini_mime 1.0.0
remote:        Installing mini_mime 1.0.0
remote:        Fetching arel 8.0.0
remote:        Installing arel 8.0.0
remote:        Fetching public_suffix 3.0.2
remote:        Using bundler 1.15.2
remote:        Fetching coffee-script-source 1.12.2
remote:        Installing public_suffix 3.0.2
remote:        Installing coffee-script-source 1.12.2
remote:        Fetching execjs 2.7.0
remote:        Fetching method_source 0.9.0
remote:        Installing execjs 2.7.0
remote:        Installing method_source 0.9.0
remote:        Fetching thor 0.20.0
remote:        Fetching connection_pool 2.2.1
remote:        Installing thor 0.20.0
remote:        Installing connection_pool 2.2.1
remote:        Fetching diff-lcs 1.3
remote:        Fetching ffi 1.9.23
remote:        Installing diff-lcs 1.3
remote:        Fetching multi_json 1.13.1
remote:        Installing multi_json 1.13.1
remote:        Fetching libv8 6.3.292.48.1 (x86_64-linux)
remote:        Installing ffi 1.9.23 with native extensions
remote:        Installing libv8 6.3.292.48.1 (x86_64-linux)
remote:        Fetching pg 1.0.0
remote:        Installing pg 1.0.0 with native extensions
remote:        Fetching puma 3.11.4
remote:        Installing puma 3.11.4 with native extensions
remote:        Fetching rb-fsevent 0.10.3
remote:        Installing rb-fsevent 0.10.3
remote:        Fetching rspec-support 3.7.1
remote:        Installing rspec-support 3.7.1
remote:        Fetching tilt 2.0.8
remote:        Installing tilt 2.0.8
remote:        Fetching turbolinks-source 5.1.0
remote:        Installing turbolinks-source 5.1.0
remote:        Fetching rainbow 2.2.2
remote:        Installing rainbow 2.2.2 with native extensions
remote:        Fetching i18n 1.0.0
remote:        Installing i18n 1.0.0
remote:        Fetching tzinfo 1.2.5
remote:        Installing tzinfo 1.2.5
remote:        Fetching nokogiri 1.8.2
remote:        Installing nokogiri 1.8.2 with native extensions
remote:        Fetching websocket-driver 0.6.5
remote:        Installing websocket-driver 0.6.5 with native extensions
remote:        Fetching mail 2.7.0
remote:        Installing mail 2.7.0
remote:        Fetching rack-test 1.0.0
remote:        Installing rack-test 1.0.0
remote:        Fetching rack-proxy 0.6.4
remote:        Installing rack-proxy 0.6.4
remote:        Fetching sprockets 3.7.1
remote:        Installing sprockets 3.7.1
remote:        Fetching addressable 2.5.2
remote:        Installing addressable 2.5.2
remote:        Fetching coffee-script 2.4.1
remote:        Installing coffee-script 2.4.1
remote:        Fetching uglifier 4.1.9
remote:        Installing uglifier 4.1.9
remote:        Fetching mini_racer 0.1.15
remote:        Installing mini_racer 0.1.15 with native extensions
remote:        Fetching rb-inotify 0.9.10
remote:        Installing rb-inotify 0.9.10
remote:        Fetching rspec-core 3.7.1
remote:        Installing rspec-core 3.7.1
remote:        Fetching rspec-expectations 3.7.0
remote:        Installing rspec-expectations 3.7.0
remote:        Fetching rspec-mocks 3.7.0
remote:        Installing rspec-mocks 3.7.0
remote:        Fetching turbolinks 5.1.1
remote:        Installing turbolinks 5.1.1
remote:        Fetching activesupport 5.1.6
remote:        Fetching loofah 2.2.2
remote:        Installing loofah 2.2.2
remote:        Installing activesupport 5.1.6
remote:        Fetching sass-listen 4.0.0
remote:        Installing sass-listen 4.0.0
remote:        Fetching rspec 3.7.0
remote:        Installing rspec 3.7.0
remote:        Fetching rails-html-sanitizer 1.0.4
remote:        Installing rails-html-sanitizer 1.0.4
remote:        Fetching sass 3.5.6
remote:        Installing sass 3.5.6
remote:        Fetching rails-dom-testing 2.0.3
remote:        Installing rails-dom-testing 2.0.3
remote:        Fetching globalid 0.4.1
remote:        Installing globalid 0.4.1
remote:        Fetching activemodel 5.1.6
remote:        Installing activemodel 5.1.6
remote:        Fetching jbuilder 2.7.0
remote:        Fetching actionview 5.1.6
remote:        Installing jbuilder 2.7.0
remote:        Installing actionview 5.1.6
remote:        Fetching activejob 5.1.6
remote:        Installing activejob 5.1.6
remote:        Fetching activerecord 5.1.6
remote:        Installing activerecord 5.1.6
remote:        Fetching actionpack 5.1.6
remote:        Installing actionpack 5.1.6
remote:        Fetching actioncable 5.1.6
remote:        Installing actioncable 5.1.6
remote:        Fetching actionmailer 5.1.6
remote:        Fetching railties 5.1.6
remote:        Installing actionmailer 5.1.6
remote:        Installing railties 5.1.6
remote:        Fetching sprockets-rails 3.2.1
remote:        Installing sprockets-rails 3.2.1
remote:        Fetching coffee-rails 4.2.2
remote:        Fetching rails 5.1.6
remote:        Installing coffee-rails 4.2.2
remote:        Installing rails 5.1.6
remote:        Fetching sass-rails 5.0.7
remote:        Fetching webpacker 3.4.3
remote:        Installing sass-rails 5.0.7
remote:        Installing webpacker 3.4.3
remote:        Fetching react_on_rails 10.0.2
remote:        Installing react_on_rails 10.0.2
remote:        Bundle complete! 20 Gemfile dependencies, 71 gems now installed.
remote:        Gems in the groups development and test were not installed.
remote:        Bundled gems are installed into ./vendor/bundle.
remote:        Bundle completed (33.62s)
remote:        Cleaning up the bundler cache.
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        ReactOnRails: Set generated_assets_dir to default: public/webpack/production
remote:        cd /tmp/build_93fd636f62c13aa901396765b5b646cc && RAILS_ENV=production bin/webpack
remote:        Hash: fa96312fb31240ca4f50
remote:        Version: webpack 3.11.0
remote:        Time: 1768ms
remote:                                                 Asset       Size  Chunks                    Chunk Names
remote:            hello-world-bundle-012443c678121fbca9cb.js     901 kB       0  [emitted]  [big]  hello-world-bundle
remote:                   hello_react-cbedc3a09ac1270ea6f2.js    2.98 kB       1  [emitted]         hello_react
remote:                   application-db50d639870ec0024f48.js    3.27 kB       2  [emitted]         application
remote:        hello-world-bundle-012443c678121fbca9cb.js.map    1.02 MB       0  [emitted]         hello-world-bundle
remote:               hello_react-cbedc3a09ac1270ea6f2.js.map     2.5 kB       1  [emitted]         hello_react
remote:               application-db50d639870ec0024f48.js.map    3.19 kB       2  [emitted]         application
remote:                                         manifest.json  450 bytes          [emitted]
remote:          [45] (webpack)/buildin/global.js 509 bytes {0} [built]
remote:          [64] ./app/javascript/packs/application.js 515 bytes {2} [built]
remote:          [65] ./app/javascript/packs/hello_react.jsx 226 bytes {1} [built] [failed] [1 error]
remote:          [66] ./app/javascript/packs/hello-world-bundle.js 224 bytes {0} [built]
remote:            + 131 hidden modules
remote:
remote:        ERROR in ./app/javascript/packs/hello_react.jsx
remote:        Module build failed: SyntaxError: Unexpected token (10:2)
remote:
remote:           8 |
remote:           9 | const Hello = props => (
remote:        > 10 |
Hello {props.name}!

remote:             |   ^
remote:          11 | )
remote:          12 |
remote:          13 | Hello.defaultProps = {
remote:
remote:
remote:        ERROR in ./app/javascript/bundles/HelloWorld/components/HelloWorld.jsx
remote:        Module build failed: SyntaxError: Unexpected token (16:6)
remote:
remote:          14 |   render() {
remote:          15 |     return (
remote:        > 16 |       <App>
remote:             |       ^
remote:          17 |         <MainChart />
remote:          18 |         <Timeline />
remote:          19 |       </App>
remote:
remote:         @ ./app/javascript/packs/hello-world-bundle.js 3:0-69
remote:        rake aborted!
remote:        Command failed with status (2): [cd /tmp/build_93fd636f62c13aa901396765b5b6...]
remote:        /tmp/build_93fd636f62c13aa901396765b5b646cc/vendor/bundle/ruby/2.3.0/gems/react_on_rails-10.0.2/lib/tasks/assets.rake:64:in `block (3 levels) in <top (required)>'
remote:        /tmp/build_93fd636f62c13aa901396765b5b646cc/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote:        Tasks: TOP => assets:precompile => react_on_rails:assets:compile_environment => react_on_rails:assets:webpack
remote:        (See full trace by running task with --trace)
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
 ! [remote rejected] master -> master (pre-receive hook declined)
e```

It was missing .babelrc, I am surprised rails or the gem didn't set it up.

@hakunin Did you use the default webpacker setup? or a custom setup?

Followed the tutorial from README https://github.com/shakacode/react_on_rails where it says rails new my-app --webpack=react, but now I re-ran the command in an empty directory and it does create .babelrc.
I must have copied the files wrong when I moved them. Looks like mv somedir/* omits dotfiles. https://askubuntu.com/questions/259383/how-can-i-get-mv-or-the-wildcard-to-move-hidden-files


Land Ops - Include script/demos from USMC presentation?

I know this is last mniute, but is it possible to include the demos or at least the script used for the USMC presentation on the TEM disk? (the demos Lyle showed at the Sprint Review on Friday)
If we can at least include the script so others can understand a good workflow to use that would be great.

This demonstration is being updated for the 2015 FedGIS and did not make the cutoff for the 2014 Q4 Ops Server release.


[Feature request] hc:TabControl tabs

It would be nice to be able to close tabs in hc:TabControl by middle clicking on them, as in Chrome and many other applications.
Also, I would like to see in context menu of tabs such items as "Close tabs to the left" and "Close tabs to the right".

I mean clicking the middle mouse button on a tab.
I know that I can close a tab with context menu and with X button, but it's more convenient for me to close tabs with the middle mouse button and I'd like to see such a function here.


Error during clean build of latest

Hello!
Running into this error during compilation:

If it helps:
crertel@cazellnu:~/hacks/lovr/build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.3.0-6ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)

Ah, it looks like GCC doesn't support __has_builtin and our defined(__has_builtin) check isn't working correctly to detect that (this was a pretty recent change).
In the meantime, if you don't need threads, you can compile with the -DLOVR_ENABLE_THREAD=OFF CMake flag to skip this.
I'm going to try this w/ GCC on linux in the next few days, will report back if I get it fixed.  Thank you for bringing this up!

Ok, I polyfilled __has_builtin as suggested in the clang docs and now GCC is compiling everything properly.


[feature] legend improvements

Request
It would be ideal to show the number of items each legend entry represents.
For example, in the following screenshot it would be ideal to see the count of items in each risk grouping.

Each legend item has a selectionQuery behind it. Perhaps you can iterate the legend items and execute the query to get the count?


fix: add twilio verify support on mfa

What kind of change does this PR introduce?
We don't store the OTP with Twilio Verify and will need to do the check with Twilio if we want to support it

Will close this out tomorrow.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

6 of 29 (20.69%)  changed or added relevant lines in 5 files are covered.
1416 unchanged lines in 43 files lost coverage.
Overall coverage decreased (-0.4%) to 57.907%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/api/sms_provider/messagebird.go
0
3
0.0%

internal/api/sms_provider/textlocal.go
0
3
0.0%

internal/api/sms_provider/twilio.go
0
3
0.0%

internal/api/sms_provider/vonage.go
0
3
0.0%

internal/api/mfa.go
6
17
35.29%

Files with Coverage Reduction
New Missed Lines
%

internal/api/anonymous.go
2
70.0%

internal/api/helpers.go
2
81.82%

internal/mailer/mailer.go
3
74.51%

internal/models/cleanup.go
4
88.37%

internal/api/saml.go
4
82.28%

internal/api/logout.go
6
82.35%

internal/conf/saml.go
6
79.49%

main.go
6
0.0%

internal/api/api.go
7
86.62%

internal/api/admin.go
7
65.75%

Totals

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

Covered Lines:
9356

Relevant Lines:
16157

💛  - Coveralls


Implement GitHub source code links in docs app & generation script

This is the final part of https://github.com/Qiskit/documentation/issues/454. It's blocked by https://github.com/Qiskit/documentation/issues/518 and https://github.com/Qiskit/documentation/issues/517.
Once we have a design, we need to implement it. We'll need to decide on what CSS class names to use etc and make sure that they're preserved by our API generation script. This will relate to the overall improvement of API docs, where we also are going to need to start preserving class names so that we can have specific styling rules: https://github.com/Qiskit/documentation/issues/479.

Closed by https://github.com/Qiskit/documentation/pull/620. We'll need to add an additional implementation for the linkcode extension as part of https://github.com/Qiskit/documentation/issues/517, but that is tracked by #517.


RFC: Registry UI

Abstract
The registry needs a user interface to display documentation to users and make it searchable. This RFC will detail the technical implementation of the registry UI for the purposes of making a decision.
Design considerations
During the preliminary discussions, we have outlined the following criteria:

The registry must only expose properly licensed files. Providers that do not exhibit an OSI-approved license should not have their documentation exposed.
The UI should be updated alongside the registry itself. If a new version of a provider or module is added to the registry, the documentation should be updated too.
The UI should have an almost instantaneous feel to it, users should prefer to use it for documentation.
The UI should be indexed by search engines.
The UI should require very little maintenance.
The UI must make sure that the markdown parser does not allow in HTML tags that could potentially be dangerous (e.g. script tags). It may be preferable to not allow HTML tags at all.

Background research
To evaluate the size of the registry, I have downloaded about half of all providers present in the OpenTofu registry. The docs folders amounted to roughly 6 GB of data and 850k files. By extrapolation, this would mean that the registry UI would be roughly 10-15 GB in size and contain 1.5-2M files if hosted statically, assuming one markdown file corresponds to one HTML file. Packing all files related to a provider/version is not feasible because some providers (AWS, Azure, etc) contain hundreds of files and would negatively impact loading times.
Front-end technology
When it comes to front-end technology, we have three options:

Static files with minimal JS for search functionality. This is the simplest solution and the least likely to break. It also allows for heavy optimization for loading times.
Server-side rendering using Cloudflare workers and caching. This is more complex, hard to test, but saves us from having to pre-generate HTML files and potentially reupload the entire registry UI if we change the layout.
SPA loading from GitHub. The raw.githubusercontent.com domain has CORS headers set, so this would be feasible. We would only need to index the repositories.
SPA that loads markdown files from an R2 bucket. This would require us to upload the markdown files and keep them in sync.
XML data files with XSLT style sheets. It's a remnant from a bygone era, but browsers support it and Google indexes it. This would allow us to change the layout as we please without having to recreate all HTML files but still enjoy the benefits of static files. It would cause one additional request to load the XSLT file.

Given the performance and search indexing requirements above, solution 1 seems to be the most appropriate, although solution 3 is definitely intriguing because it would require very little maintenance.
Front-end optimization
HTTP/2 promised that it would make front-end loading times faster with Server Push, but it has several problems and hasn't gained wide adoption. It has since been removed from browsers. The alternatives to server push require extra round trips.
It is worth noting that using external sources, such as linked CSS files may cause caching issues across such a vast number of HTML files and therefore, CSS files should either be inlined or strictly URL-versioned.
One of the alternatives that we should make use of is inlining critical resources, such as CSS files. Since the registry UI can be fairly minimalistic in its appearance, inlining resources is feasible. Incidentally, this technique also bypasses caching issues with linked resources.
Build process
In order to build the HTML files, we should create a Go library that does the following:

Perform a sparse clone of the given registry. It should also provide the option to use an already existing clone for bulk updates.
Sparse checkout the LICENSE/LICENSE.txt/LICENSE.md files, as well as the docs/ and/or website/docs folders.
Perform a license detection. I used go-license-detector in the past and it seems satisfactory.
Render the markdown. Hugo uses Goldmark because it's extensible in how it parses and renders HTML. Hugo also uses Chroma for pre-generated syntax highlighting, which is beneficial for performance. For safety, we may want to re-parse the HTML and sanitize for disallowed tags and attributes. We should also make sure we add CSP meta tags to prevent some classes of attacks.
Embed the existing HTML into our template.
Upload the resulting HTML files to an R2 bucket, cleaning out any files that should no longer be there. We can do this externally, or build it into the application.

For development purposes, we may want to provide a separate binary that lets provider authors start this in their local development version.
Costs
Based on the R2 pricing, the initial upload and any full refresh will cost us 5-10 USD and the storage will cost us $0.015 per month.

I'm personally not a huge fan of pre-generating all pages, as then each change we do to the frontend will:

Take a while to deploy, as it has to download 10 GB worth of markdown files, regenerated them, and then upload them.
The above will cost us 10 USD for all the operations involved, every time we make a change.

I would instead heavily suggest going with either

javascript frontend rendering based on markdown files fetched from our API
rendering a fully-static page dynamically via cloudflare workers, then caching it heavily

Slightly relevant blog post: https://blog.cloudflare.com/serverless-rendering-with-cloudflare-workers/
Though I personally believe a simple javascript frontend that fetches the markdown files and renders them is the most boring solution.

To consider: Documentation is not 1 version per module/provider, it needs to be available for each module / provider version. So, it's much, much more than 10GB.

Ok for a web UI but it would be also useful a command line option for searching providers like
tofu providers search postgres
Matteo

Is it intended that the UI is an app that uses an API that the registry has or built into the registry and can not be separated from it?

I'm interested in the registry as a tool to enable air-gapped and scripted installs/updates of infrastructure. In that case, I wouldn't need and would consider the UI to introduce potential additional vulnerabilities I'd like to not track so keeping them as isolated capabilities would enhance my registry experience in these disconnected spaces.

UI code?


Type Picker Window Doesn't Match Unity Styles

Current Type Picker Style

Unity's Object Picker Style

Unity's Test Runner Style

I want to make the style into a namespace-nested tree of values (similar to the tests)


Editor's wrap mode.

Hello,
first of all, thank you for your tool: ScintillaNET.
I am on my way to evaluate it and I found out that when one uses the "WrapMode.Word" or the "WrapMode.Whitespace", the words are properly wrapped but the indicator's marks are cut on the screen. As a consequence, when, by example, the "HoverForeColor" property of an indicator is different from its "ForeColor" property, the foreColor of all wrapped indicator's markers is partially rendered.
For example, if the expression "welcome home" is highlight in red using an indicator having a "ForeColor" set to red and a "HoverForeColor" set to yellow and the expression is wrapped in the editor, then on hovering over the word "home" its turns yellow (as expected) but the word "welcome" stays in red. The same effect is observed when hovering on the word "welcome": the forecolor of the
second word of the expression, "home", stays red.
Hope my explanations are clear.
Best regards.

Here is a screenshot :

NB: when the mouse is on the "x" character the whole mark appears in yellow but at the positions after the "x" only the word "exemple" appears in yellow.

This looks to me like a bug in the native Scintilla component -- not something we have control over in the managed ScintillaNET wrapper. I've opened a bug report for the native Scintilla team to look into this issue. You can track the response with me at this link:
https://sourceforge.net/p/scintilla/bugs/1784/

Thank you very much for your quick answer and action.
I suspected a Scintilla bug as well. It is not a big bug, anyway...

Neil has updated the bug tracker with information about the issue and a fix for the Native Scintilla component. It will likely be included in the next SciLexer.dll release. When it is, I will update ScintillaNET.


Saltcorn 0.9.6-beta.15 Date Field shows different value than entered

Describe the bug
Date field with Day_Only attribute shows the day before the selected one
To Reproduce
Steps to reproduce the behavior:

Go to tables
Create or select a table
Create a Date field with the Only_Day attribute selected
Go to edit table data
Enter a record, if entered in the date field: 20/07/2024, it shows the value of 19/07/2024

Expected behavior
The date entered in the date field must show the same date that has been entered
Screenshot:

Additional context
Mi zonetime is America/Bogota

Fixed in #2753


fix(reports): 13006 - fix report page styles

Scroll bar is now at it's place
Sticky header is visible
Paddings fixed for laptops

stick bar fixed for big screens (> 1920px width)

Yes breakpoints would be cool but hard to implement to ATM, as far as i remember (we discussed this few months ago)


Add Email Insights Callout to Global.md

Description of the change:
Add Email Insights Callout to Global.md
Reason for the change:
New callout!
Link to original source:
https://sendgrid.com/docs/ui/analytics-and-reporting/global/

Closes #
#4577

Thank you so much for your work on this PR! Our policy is to accept the first and best PR for each page, and this PR has already been completed. I am going to post several more issues very similar to this for our new services today - so look for those!


pgbackups and mandrill  does not exist failure to deploy on Heroku

Something went wrong:
The addon "pgbackups" does not exist. Please ensure that the addon is spelled correctly.
Something went wrong:
The addon "mandrill" does not exist. Please ensure that the addon is spelled correctly.

So what happens when you google that error?


Remove Job from Info API

a part of issue #12151
Signed-off-by: Hu Keping<EMAIL_ADDRESS>

Updated-add a structure Info, is this change good to you? ping  @LK4D4 @duglin

Ok for me. What about test? Maybe there is already some in integration-cli.

I am plan to add a new file integration-cli/docker_api_info_test.go to do the test. It's on the way.

Test ready. @LK4D4  @jfrazelle
Since the CLI command docker info has been checked by the docker_cli_info_test.go, I think there is only lack of checking for REST API GET /info. I put it into a new file docker_api_info_test.go.

Please squash your commits down to one.
Overall this looks good.
We need to also modify the CLI code to use a structure too. Would you like to do that one as well? If so, we could do it in this PR at the same time if you're up for it.  If not we can do it in a separate PR.  Just let us know.

@duglin I'll do it.

update.

make change on CLI command docker info
upgrade test

I'm trying to fix this CI error:
daemon/execdriver/native/exec.go:13:2: C source files not allowed when not using cgo: nsexec.c

ping @duglin  @LK4D4

rebase, ping

:( needs rebase.

@cpuguy83 rebased

ping @duglin @LK4D4

LGTM

LGTM


fix #102

set single line on input for setup manual url
submit form on keyboard done action

Hi @fchauveau,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


Blur input on touch devices when clicking on the rest of the page.

Before this change
On Safari (Mac OS), Chrome (Mac OS and android and Mac OS with touch device emulation):

when the user clicks on the <input> element

then the <input> element is focused

when the user clicks or taps outside the react-autosuggest component

then the <input> element loses focus

On Mobile Safari (iOS) and Chrome (iOS):

when the user clicks on the <input> element

then the <input> element is focused

when the user clicks or taps outside the react-autosuggest component

then the <input> element does NOT lose focus

The only way to cause it to loose focus was to click on another element that could receive focus or to press the 'minimise' button on the device's keyboard.
After this change
On Safari (Mac OS), Chrome (Mac OS, android and iOS), Mobile Safari (iOS):

when the user clicks on the <input> element

then the <input> element is focused

when the user clicks or taps outside the react-autosuggest component

then the <input> element loses focus

This replicates the behaviour of the search box on http://google.com
Also fixed bug where the user tapped or clicked on a suggestion, then dragged outside the component meaning the mouseup or touchend event wasn't triggered on the suggestion, so the justClickedSuggestion flag was not reset.
I tried to create some tests for this, but failed to correctly trigger events on the document.

@andysprout Thanks a lot for this!
Any chance you could split this PR into smaller PRs, that could be reviewed and merged independently?

I can have a go, while trying to fix the issue that makes ios inconsistent I managed to find and fix two other bugs - I'll try to create separate prs for those bug fixes, but the ios fix will be dependant on them.

Created #175 I'll update this PR if that is merged in.

Rebased and reverted back to ES6 classes

@moroshko, @nkbt, @andysprout, can somebody please help me with this? I'm having issue and this might fix it.

Having the same issue here @andysprout @moroshko
When I'm on iPad, after selecting an option (onSuggestionSelected), the input should trigger a blur, but apparently it's not. So, after selecting an option, the iPad keyboard stays there.

@matheusml What you are describing sounds like a different issue. Have you tried:
focusInputOnSuggestionClick={false}
?

Closing for no activity.

@moroshko focusInputOnSuggestionClick still not working on ios devices. - 2019


feat(processors): add a processor decorator

Add sghi.etl.commons.processors.processor, a decorator that marks a callable as Processor. The decorated callable MUST accept at least one argument but have at MOST one required argument.

:tada: This PR is included in version 1.0.0-rc.1 :tada:
The release is available on:

v1.0.0-rc.1
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

v1.0.0
GitHub release

Your semantic-release bot :package::rocket:


Select country dialog fails when called from nested navigator

Hello lib owner!
I encountered a bug - when I call select country dialog and tap on any country, it doesn't close but instead a page under it is closed. I dig a little bit into this and found that when dialog is opened, root navigator is used (this is by default) but when .pop() is invoked there is no indication that root navigator should be used. When you have just root navigator in your app this is fine but in my case I use nested navigator so .pop() is called on wrong navigator. So line 194 in country_selector_navigator.dart should look like:
onCountrySelected: (country) =>
Navigator.of(context, rootNavigator: true).pop(country),

I've said countless time to the flutter team this will become a problem because they are mixing navigation with overlay like dialogs. So this particularly grinds my gear.
Are you opening the dialog from the root navigator or a nested one ?

That's because flutter is mixing two concepts that have no business in being mixed up together. Namely: Navigation and Overlays.
Anyway, it seems to me that rootNavigator should be used in all instance of the selector navigator class.
So yeah I'll accept a PR that does that.

Anyway, it seems to me that rootNavigator should be used in all instance of the selector navigator class.

I've checket all the rest of the variants namely ".bottomSheet(), .draggableBottomSheet(), .modalBottomSheet(), .searchDelegate()" and they are working as expected. This is because they all use current (nested in my case) navigator. So I updated just .dialog().
Please review my PR

I didn't mean overlay in the flutter sense. All things like dialog bottom sheets etc have nothing to do with URLs, yet they are coupled with the routing mechanism on a logical level.


Handle notifications

Hi all!
Is there a way to handle notification events? Something like that:
telegram.on('message',(event) => { console.log(event); })
Thanks in advance!

Duplicate of #40


Perf: Refactor to check user role in memory not db

Doesn't resolve any issue
Description
Since we have multiple current_user.has_role? calls in many controllers/views, let's use Rolify's has_cached_role? instead as this performs the authorization check with user's roles in memory rather than going to the database every single time.
The difference is that has_role? performs a query everytime, while has_cached_role? loads the roles on the user object and performs the check without any queries.
The documentation for this method has a warning:

This method should be used with caution. If you don't preload the roles, the has_cached_role? might return false. In the above example, it would return false for @user.has_cached_role?(:member, Forum), because User.with_role(:admin, Forum) will load only the :admin roles.

I was not able to replicate that behavior personally (like mentioned in this issue). Also with this change we are fetching all roles right after the user is set regardless.
I know that "caching" authorization checks sounds like a bad idea. But it is only "cached" for the length of the request, so I think it's fine. And it would help with performance across the app.
An example is the distributions index page, which went from 6 database queries regarding roles down to 2 (one loading all the roles and one when current_role is called to fetch the first role).
If this approach is rejected, I would propose we set up our own way of caching/storing these rolify checks in views. Because some pages trigger a lot of these queries.
Type of change

Refactor (performance)

How Has This Been Tested?
Locally and by running the test suite.

I can hide this change behind a feature flag if we want to extra careful.

Re: feature flag.  We mostly use feature flags for multi-stage changes (like the current 'packs' milestone, or things we would initially release to limited users for beta.
I feel that this is a change that either we are very confident in or we don't put forward to production at all.

I'm OK with this change. All tests are passing and from what I can read, there don't seem to be any reproductions of the original claim of flakiness (which was added when the feature first was, almost 10 years ago.
I'm good with merging and we can see if anyone complains of issues. @cielf thoughts?

A question:  If this were to go awry,  do we know what the expression would  be?
and
My knee-jerk response is that I'm a bit iffy  about putting it in so close to high new-banks-who-are-using-the-system-for-real season, just because of the higher support load.
But/and my knee-jerk response has always been a bit over-cautious.

Hard to say how it would fail, because it doesn't look like it should.
But if it did fail, it would be bad because it touches both authorization and authentication. So potentially users getting signed out, or not being able to view pages they should have access to. I imagine it would be noticeable in logs though. I would expect a higher number of 302 responses (redirecting users to different pages if they don't have access or redirecting to the sign in page if they don't pass authentication).
So I understand the cautiousness. We can either wait till later or put it behind a feature flag so that we could quickly turn it off.

Hmm...  I'm wondering how this interacts with #4511, then.

What's with the gazillion commits on this one too?


added admin

#17  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @leonchike and the rest of your teammates on  Graphite


[5.9] Modify the acquire method of the RedisLock class

Raw acquire method will do two redis commands to set the expiration time.I think it is not a good ideal, because the second command probably fail. I modify the function that combine two command in one command. It guarantee the acquire method atomic.

Please try to resubmit with passing tests. Thanks!

@driesvints Thank you for your response! I learned how to simplely use test case.


character "&" in "Alias" attribute is not supported via AAD Connect.

This document states that "&" character is supported in the "Alias" attribute to be synced from AAD Connect to EXO. However, in a current scenario with a customer, the "&" is being changed for an underscore character. After discussing this topic with Nuno Alexandre MSODS Beta Engineer, our AdminWebService via Proxy Calc will always change this unsupported characters for an underscore .
This public document is not consistent with what our service does.
You can contact me if something is required -<EMAIL_ADDRESS>I'm attaching the screen shot from our Proxy Calculation.cs to provide more clarity.

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

ID: c7f835af-5905-368a-df68-6646782ad807
Version Independent ID: 153ce2d2-dab5-9c8f-c511-ee3bc8ee2dbc
Content: Set-Mailbox (ExchangePowerShell)
Content Source: exchange/exchange-ps/exchange/Set-Mailbox.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

Discussed via email and updated Alias parameter accordingly. The & character is supported in the Alias value as described, but bad things happen in Azure AD Connect synchronization if the Alias value contains an &.
Thanks for the feedback.
Closing


docs(lang/latest): parameterize landing page Jade by language

ng2.io preparatory work.
cc @ericjim @Foxandxss

Are all the new links that appear on the js side (say AoT) having a "this is not here yet" ? Instead of a 404.

@Foxandxss Yes ... we don't want 404s when you toggle from one lang to another.

FYI, added missing cookbook AoT chapter placeholders for JS and Dart in #2418.


DTSPO-18362 - cleaning up access and adding allowed dev branch access

Jira link (if applicable)
DTSPO-18362
Change description
cleaning up access and adding allowed dev branch access

Plan Result (prod_app_registrations)
:warning: Resource Deletion will happen :warning:
This plan contains resource delete operation. Please check the plan result very carefully!
Plan: 1 to add, 0 to change, 4 to destroy.

Create

module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/auto-shutdown-dev:ref:refs/heads/development"]

Delete

module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/DTSPO-17195_auto-shutdown:pull_request"]
module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/DTSPO-17195_auto-shutdown:ref:refs/heads/master"]
module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/aks-auto-shutdown-releases:pull_request"]
module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/aks-auto-shutdown-releases:ref:refs/heads/master"]

Change Result (Click me)

  # module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/DTSPO-17195_auto-shutdown:pull_request"] will be destroyed
  # (because key ["DTS AKS Auto-Shutdown-repo:hmcts/DTSPO-17195_auto-shutdown:pull_request"] is not in for_each map)
  - resource "azuread_application_federated_identity_credential" "this" {
      - application_object_id = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1" -> null
      - audiences             = [
          - "api://AzureADTokenExchange",
        ] -> null
      - credential_id         = "1e112701-238d-41e5-89e2-83cd58669ecb" -> null
      - display_name          = "repo_hmcts__DTSPO-17195_auto-shutdown_pull_request" -> null
      - id                    = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1/federatedIdentityCredential/1e112701-238d-41e5-89e2-83cd58669ecb" -> null
      - issuer                = "https://token.actions.githubusercontent.com" -> null
      - subject               = "repo:hmcts/DTSPO-17195_auto-shutdown:pull_request" -> null
    }

  # module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/DTSPO-17195_auto-shutdown:ref:refs/heads/master"] will be destroyed
  # (because key ["DTS AKS Auto-Shutdown-repo:hmcts/DTSPO-17195_auto-shutdown:ref:refs/heads/master"] is not in for_each map)
  - resource "azuread_application_federated_identity_credential" "this" {
      - application_object_id = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1" -> null
      - audiences             = [
          - "api://AzureADTokenExchange",
        ] -> null
      - credential_id         = "5380a76f-50c3-470a-9b2e-0f0b1ae981a7" -> null
      - display_name          = "repo_hmcts__DTSPO-17195_auto-shutdown_ref_refs__heads__master" -> null
      - id                    = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1/federatedIdentityCredential/5380a76f-50c3-470a-9b2e-0f0b1ae981a7" -> null
      - issuer                = "https://token.actions.githubusercontent.com" -> null
      - subject               = "repo:hmcts/DTSPO-17195_auto-shutdown:ref:refs/heads/master" -> null
    }

  # module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/aks-auto-shutdown-releases:pull_request"] will be destroyed
  # (because key ["DTS AKS Auto-Shutdown-repo:hmcts/aks-auto-shutdown-releases:pull_request"] is not in for_each map)
  - resource "azuread_application_federated_identity_credential" "this" {
      - application_object_id = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1" -> null
      - audiences             = [
          - "api://AzureADTokenExchange",
        ] -> null
      - credential_id         = "132e7ca0-98f6-43df-a5bb-e4532d2aa0d1" -> null
      - display_name          = "repo_hmcts__aks-auto-shutdown-releases_pull_request" -> null
      - id                    = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1/federatedIdentityCredential/132e7ca0-98f6-43df-a5bb-e4532d2aa0d1" -> null
      - issuer                = "https://token.actions.githubusercontent.com" -> null
      - subject               = "repo:hmcts/aks-auto-shutdown-releases:pull_request" -> null
    }

  # module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/aks-auto-shutdown-releases:ref:refs/heads/master"] will be destroyed
  # (because key ["DTS AKS Auto-Shutdown-repo:hmcts/aks-auto-shutdown-releases:ref:refs/heads/master"] is not in for_each map)
  - resource "azuread_application_federated_identity_credential" "this" {
      - application_object_id = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1" -> null
      - audiences             = [
          - "api://AzureADTokenExchange",
        ] -> null
      - credential_id         = "8c6b4299-fec5-4bed-91ed-9b4f93b511f7" -> null
      - display_name          = "repo_hmcts__aks-auto-shutdown-releases_ref_refs__heads__master" -> null
      - id                    = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1/federatedIdentityCredential/8c6b4299-fec5-4bed-91ed-9b4f93b511f7" -> null
      - issuer                = "https://token.actions.githubusercontent.com" -> null
      - subject               = "repo:hmcts/aks-auto-shutdown-releases:ref:refs/heads/master" -> null
    }

  # module.this.azuread_application_federated_identity_credential.this["DTS AKS Auto-Shutdown-repo:hmcts/auto-shutdown-dev:ref:refs/heads/development"] will be created
  + resource "azuread_application_federated_identity_credential" "this" {
      + application_object_id = "a6f9fe00-14a8-48df-aca5-8b743dc5e2c1"
      + audiences             = [
          + "api://AzureADTokenExchange",
        ]
      + credential_id         = (known after apply)
      + display_name          = "repo_hmcts__auto-shutdown-dev_ref_refs__heads__development"
      + id                    = (known after apply)
      + issuer                = "https://token.actions.githubusercontent.com"
      + subject               = "repo:hmcts/auto-shutdown-dev:ref:refs/heads/development"
    }

Plan: 1 to add, 0 to change, 4 to destroy.

:information_source: Objects have changed outside of Terraform
This feature was introduced from Terraform v0.15.4.

Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:

  # module.this.azuread_application.this["DTS HMCTS way indexer"] has changed
  ~ resource "azuread_application" "this" {
      + group_membership_claims        = []
        id                             = "26e7bad2-0aa2-494b-a442-9d11d19acad3"
      + identifier_uris                = []
        tags                           = []
        # (13 unchanged attributes hidden)

        # (6 unchanged blocks hidden)
    }

  # module.this.azuread_service_principal.this["DTS HMCTS way indexer"] has changed
  ~ resource "azuread_service_principal" "this" {
      + alternative_names            = []
        id                           = "29703cf0-15f5-411c-be38-425663df214b"
      + notification_email_addresses = []
        tags                         = []
        # (15 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

Unless you have made equivalent changes to your configuration, or ignored the


[BEAM-2086] Remove TestDataflowRunner reliance on metrics in streaming

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Metrics are not supported yet in Dataflow streaming.

The Dataflow service automatically shuts down jobs when their input watermarks reach infinity, so we don't need metrics for that.
Counting PAsserts is nice but given the current architecture less of a critical concern. And anyhow, Dataflow just doesn't support it yet!

Building on https://builds.apache.org/view/Beam/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/2945/

R: @bjchambers failures are https://issues.apache.org/jira/browse/BEAM-2096.

Coverage decreased (-0.04%) to 69.791% when pulling d7643d570370b2cb5199e0f041e5d3926e55f710 on kennknowles:TestDataflowRunner into b82cd2446fa681576f83bae0fc2bdd1f03be5e7e on apache:master.

Coverage decreased (-0.03%) to 69.795% when pulling ed8bd62652126d8d0cf054cee5cc79dda88e3415 on kennknowles:TestDataflowRunner into 196f4ba0bb3a4a8385a9f7eb078378d51bd39f89 on apache:master.


[Ethereum] Liquality does not work with some dapps

I expect that anywhere MetaMask works, Liquality would work as well. However after some testing I notice that Liquality does not work (or has some UX flaws working) with the following Ethereum dapps:

Dapp URL
Attempted connection method

https://client.aragon.org
Connect via Unknown

https://curve.fi
Connect via MetaMask

https://app.daohaus.club/
Connect via Liquality - Liquality shows up as an option, but the screen goes blank once the approve button is clicked in the Liquality popup

https://oasis.app/connect
Connect via MetaMask - this works, but Oasis still suggests installing MetaMask

https://yearn.finance
Connect via MetaMask

https://zk.money
Connect via MetaMask

cannot connect to https://app.compound.finance/ without refreshing page after enable


Add authentication with intra login and repo, browse command

I have added 3 features. One is the user authentication feature. The other is subcommand to clone repository. The last is subcommand to open project page in web browser.
User Authentication
Users can authenticate themselves by adding a redirect URI to the configuration file. The obtained token is saved in the configuration file so that the login information is retained continuously. The user only has to set it up the first time, and goft will automatically update it after that. Config file is now stored in ~/.config/goft/config.yml. I think it is easier for users to understand it is saved in the same location as other programs like GitHub CLI.
$ goft auth login
Logged in as tkomatsu
$ goft auth logout
Logged out
$

You need to call saveConfig() inside each command in order to save the token after the execution of the command.
cobra.Command{
	Use:   "foo",
	Short: "You need to call saveConfig()",
	RunE: func(cmd *cobra.Command, args []string) error {
		defer saveConfig()
		// ... execute command
	}
}

You can also do requests to endpoints such as /me after authentication.
repo Command
I have added list, clone, and path as subcommands of repo. I also added the API endpoint for them.
list
list command can display a list of repositories stored in the 42 intra. The maximum number of repositories to display can be set as an option, and the default value is 5.
$ goft repo list -h
Show team locked project list

Usage:
  goft repo list [flags]

Flags:
  -h, --help        help for list
  -L, --limit int   Maximum number of repositories to list (default 5)

Global Flags:
      --config string   config file (default is $HOME/.config/goft/secret.yml)
$ goft repo list
old-cpp-module-00
ft_containers
ft_communication_v2
refactor_bsq
go-piscine-go-00
$

clone
clone command takes a slug as first argument and clones the latest repository for the project. You can additionally pass the target directory of the clone as second argument.
$ goft repo clone ft_containers
Cloning into 'ft_containers'...
remote: Enumerating objects: 965, done.
remote: Counting objects: 100% (965/965), done.
remote: Compressing objects: 100% (307/307), done.
remote: Total 965 (delta 655), reused 936 (delta 641)
Receiving objects: 100% (965/965), 143.47 KiB | 4.48 MiB/s, done.
Resolving deltas: 100% (655/655), done.
$ goft repo clone ft_containers targetdir
Cloning into 'targetdir'...
remote: Enumerating objects: 965, done.
remote: Counting objects: 100% (965/965), done.
remote: Compressing objects: 100% (307/307), done.
remote: Total 965 (delta 655), reused 936 (delta 641)
Receiving objects: 100% (965/965), 143.47 KiB | 4.35 MiB/s, done.
Resolving deltas: 100% (655/655), done.
$ ls
ft_containers			targetdir
$

path
path command takes slug as an argument and outputs the path to the latest repository for the issue to the standard output. This command is to use when you want to add a remote repository to an existing local repository like this.
$ git remote -v
origin	git@github.com:tkomatsu/ft_containers.git (fetch)
origin	git@github.com:tkomatsu/ft_containers.git (push)
$ goft repo path ft_containers
git@vogsphere-v2.42tokyo.jp:vogsphere/intra-uuid-4cb9e09e-d06b-49dc-adaa-d8cefe3e7005-3576881
$ git remote add intra `goft repo path ft_containers`
$ git remote -v
intra	git@vogsphere-v2.42tokyo.jp:vogsphere/intra-uuid-4cb9e09e-d06b-49dc-adaa-d8cefe3e7005-3576881 (fetch)
intra	git@vogsphere-v2.42tokyo.jp:vogsphere/intra-uuid-4cb9e09e-d06b-49dc-adaa-d8cefe3e7005-3576881 (push)
origin	git@github.com:tkomatsu/ft_containers.git (fetch)
origin	git@github.com:tkomatsu/ft_containers.git (push)
$

browse Command
browse command takes slug as an argument and open user project page in web browser.
$ goft browse webserv
$ goft browse c-piscine-c-00

Format
golint is deprecated (https://github.com/golang/go/issues/38968). I use goimports for format. The files I made changes to has been applied.

Finally, I've fixed. Please check Pull Request.

Hello Tatsuhiro!
Really appreciate your contribution
Is it possible to separate these into different PRs please? (Check CONTRIBUTING.md)
User authentication
Why would you want to authenticate a user? any specific usage you have in mind?
I agree with the config file's location part, it is better to follow the standard as you said.
Repo command
It looks like you had in mind a student will use this to list his repos, but my purpose of Goft is to make it easy for staff members to interact with the API, so our use case would be to list repos of a specific student (passed as an argument) rather than a login from the config file
list
How do you see this command used? I think the path command is enough, or maybe combine list and path into one command that outputs the project details and the repo's path?
clone
In my opinion, it is simpler to use the path command and manually git clone the repository rather than add code to Goft that does that.
path
Check comment on list
Browse command
How do you see this command used too? Don't you think it is simpler to use the intranet to open a link?

Thank you for checking PR!

Is it possible to separate these into different PRs please? (Check CONTRIBUTING.md)
I'll do it.

I've separated this PR so I'll close this PR.


added available() function

increase compatibility with acan2151

Thank you for your contribution, I have published the 1.1.0 release that includes the available method.
Pierre

Le 22 sept. 2022 à 02:11, Modellfan @.***> a écrit :
increase compatibility with acan2151
You can view, comment on, or merge this pull request online at:
https://github.com/pierremolinaro/acan-esp32/pull/5 https://github.com/pierremolinaro/acan-esp32/pull/5
Commit Summary
44e77d1 https://github.com/pierremolinaro/acan-esp32/pull/5/commits/44e77d1a3289c99899c488c72152c6372ed28909 added available() function
File Changes (2 files https://github.com/pierremolinaro/acan-esp32/pull/5/files)
M src/ACAN_ESP32.cpp https://github.com/pierremolinaro/acan-esp32/pull/5/files#diff-03cf7e5e53ea577b2a8a3f1e0d8d7af04dfbc4df3f1400bc2e4d05173b48d080 (5)
M src/ACAN_ESP32.h https://github.com/pierremolinaro/acan-esp32/pull/5/files#diff-cf146860373589ac087eb8f4fab6b5811435f5bc5eb27ae58d52f55e7d8bdd5d (1)
Patch Links:
https://github.com/pierremolinaro/acan-esp32/pull/5.patch https://github.com/pierremolinaro/acan-esp32/pull/5.patch
https://github.com/pierremolinaro/acan-esp32/pull/5.diff https://github.com/pierremolinaro/acan-esp32/pull/5.diff
—
Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/pull/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVBAZJGIJCALIKQYCSLV7OP2FANCNFSM6AAAAAAQSRXCSQ.
You are receiving this because you are subscribed to this thread.


add cmd to update the contributor faces

Motivation/Description of the PR

We haven't updated the contributor faces for awhile. Now it's time.
Add command to update the contributor faces.

Type of change

[x] :hammer: Markdown files fix - not related to source code

👍