Visualize accuracy on tensorboard

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):binary
TensorFlow version (use command below):1.13.1
Python version:3.6.4
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:9/7.4
GPU model and memory: Nvidia Geforce 840m 4 Go

Describe the current behavior
Hello,
I'm trained a model and I have all .ckpts files with graph.pbtxt and checkpoint file.
I would like to visualize all parameters, for e.g ( accuracy , precision , valid loss and train loss ) using Tensorboard.
The problem is that I can only visualize the loss and the learning_rate graph
How can I see all the metrics and graphs on Tensorboard?

@abdou31,
As per my understanding, you might be using the code similar to that shown below, as shown in this link
model.compile(loss='mse', # keras.losses.mean_squared_error    optimizer=keras.optimizers.SGD(lr=0.2))
By adding the line, metrics=['accuracy'], you should be able to visualize the Accuracy in Tensorboard. Code should be as shown below:
model.compile(loss='mse', # keras.losses.mean_squared_error
    metrics=['accuracy'],
    optimizer=keras.optimizers.SGD(lr=0.2),)

Please let us know if it works. Thanks!

Sorry, for some false information.
I can see only the variable of global_steps and loss, not learning_rate and loss variables as mentioned in the image below:

For the code , I do not have used keras implementation , I have used estimator and that was some of my code:
if mode == tf.estimator.ModeKeys.PREDICT:
        return tf.estimator.EstimatorSpec(mode=mode, predictions=predictions_dict)

    # Calculate loss using mean squared error.
    label_tensor = tf.convert_to_tensor(labels, dtype=tf.float32)
    loss = tf.losses.mean_squared_error(
        labels=label_tensor, predictions=logits)

    # Configure the train OP for TRAIN mode.

    if mode == tf.estimator.ModeKeys.TRAIN:
        optimizer = tf.train.AdamOptimizer(learning_rate=0.0001) # Reducing the learning rate value from 0.001 to 0.0001
        train_op = optimizer.minimize(
            loss=loss,
            global_step=tf.train.get_global_step()
            )
        return tf.estimator.EstimatorSpec(
            mode=mode,
            loss=loss,
            train_op=train_op,
            export_outputs={'marks': tf.estimator.export.RegressionOutput(logits)})

    # Add evaluation metrics (for EVAL mode)
    eval_metric_ops = {
        "accuracy": tf.metrics.accuracy(
            labels=label_tensor,
            predictions=logits)}
    return tf.estimator.EstimatorSpec(
        mode=mode, loss=loss, eval_metric_ops=eval_metric_ops)

What should I change?

@abdou31,
Can you please check this link where the Model is built using Estimators and Accuracy is Visualized in Tensorboard.
Thanks!

I have tried what is mentionned in the link but , I go this error:

ValueError: Passed (<tf.Tensor 'accuracy/value:0' shape=() dtype=float32>, <tf.Tensor 'accuracy/update_op:0' shape=() dtype=float32>) should have graph attribute that is equal to current graph <tensorflow.python.framework.ops.Graph object at 0x0000018B36721DA0>.

That was what I have added :
 accuracy=tf.metrics.accuracy(labels=label_tensor,predictions=logits)
    # Create train hook list to visualize loss , accuracy and global_steps

    train_hook_list=[]
    train_tensors_log={"accuracy":accuracy,"loss":loss,"global_steps":tf.train.get_global_step()}
    train_hook_list.append(tf.train.LoggingTensorHook(tensors=train_tensors_log,every_n_iter=100))
    # Configure the train OP for TRAIN mode.

    if mode == tf.estimator.ModeKeys.TRAIN:
        optimizer = tf.train.AdamOptimizer(learning_rate=0.0001) # Reducing the learning rate value from 0.001 to 0.0001
        train_op = optimizer.minimize(
            loss=loss,
            global_step=tf.train.get_global_step()
            )
        return tf.estimator.EstimatorSpec(
            mode=mode,
            loss=loss,
            train_op=train_op,
            training_hooks=train_hook_list,
            export_outputs={'marks': tf.estimator.export.RegressionOutput(logits)})

To solve the error please go through the following question @abdou31

@abdou31 Were you able to solve the probe using the recommendation above? Thanks!

No .
Because my problem is related to regression not classification

Can you try just adding tf.summary.scalar("accuracy", accuracy) to your estimator model function, below where you define the accuracy metric?

@nfelt sorry but the main problem here is a regression problem. There is no accuracy in regression

I asked about accuracy because that's what was shown in the sample of your model function.  If that's not the model function and metric you're interested in getting working, can you post the details of what those are and what the specific problem is?

@nfelt , The problem is I would like to show accuracy in Tensorboard after training my model.
I'm working on a model that predict eye landmarks in real-time, I would like to tell you that this is related to a regression problem, not a classification problem.
Do you have any idea how can I see the correct accuracy ( summary graph ) on Tensorboard ?
Note: the original project that I work on it is CNN facial Facial landmark of Yin Guibang ,

I have tried what is mentionned in the link but , I go this error:

ValueError: Passed (<tf.Tensor 'accuracy/value:0' shape=() dtype=float32>, <tf.Tensor 'accuracy/update_op:0' shape=() dtype=float32>) should have graph attribute that is equal to current graph <tensorflow.python.framework.ops.Graph object at 0x0000018B36721DA0>.

That was what I have added :
 accuracy=tf.metrics.accuracy(labels=label_tensor,predictions=logits)
    # Create train hook list to visualize loss , accuracy and global_steps

    train_hook_list=[]
    train_tensors_log={"accuracy":accuracy,"loss":loss,"global_steps":tf.train.get_global_step()}
    train_hook_list.append(tf.train.LoggingTensorHook(tensors=train_tensors_log,every_n_iter=100))
    # Configure the train OP for TRAIN mode.

    if mode == tf.estimator.ModeKeys.TRAIN:
        optimizer = tf.train.AdamOptimizer(learning_rate=0.0001) # Reducing the learning rate value from 0.001 to 0.0001
        train_op = optimizer.minimize(
            loss=loss,
            global_step=tf.train.get_global_step()
            )
        return tf.estimator.EstimatorSpec(
            mode=mode,
            loss=loss,
            train_op=train_op,
            training_hooks=train_hook_list,
            export_outputs={'marks': tf.estimator.export.RegressionOutput(logits)})

Update:
I solved this problem, in training it appears the accuracy:

But when I try to visualize the accuracy on Tensorboard, I didn't get it :

What is the problem here??

where I can add your code for show accuracy when training my model

Hi There,
We are checking to see if you still need help on this, as you are using an older version of tensorflow which is officially considered end of life . We recommend that you upgrade to the latest 2.x version and let us know if the issue still persists in newer versions. Please open a new issue for any help you need against 2.x, and we will get you the right help.
This issue will be closed automatically 7 days from now. If you still need help with this issue, please provide us with more information.


Code generation for composite templates

Over at gnome gitlab @sophie-h created a python script that automatically generates composite template code for bindings from the ui files by parsing the xml, extracting the objects and creating fields (or functions in this case but that's an easily changed implementation detail) for every object that has an id.
I then rewrote it as a rust build script. It could also be reworked as a macro or something similar. You would only need to use the macro, specify a folder that contains your .ui files and it would automatically generate template code for you.
This has several advantages to manually writing template bindings:

Compile time checking of UI files, if a field is missing or has the wrong type your code would not compile
Less code to be written and maintained.

Would this be a good addition to gtk-rs? If so, does anyone have any feedback on how to integrate it best? @bilelmoussaoui @sophie-h

Shouldn't be needed because we do support composite template in gtk4-rs, see the following example https://github.com/gtk-rs/gtk4-rs/blob/master/examples/src/bin/composite_template.rs

If such a script provides more than that and makes things easier, the best approach would probably be to make it a proc macro (you can read the .ui files from the macro code) so it can be directly integrated into the Rust code instead of having external code generation via build.rs (which is rather suboptimal build-system-wise).

Yes, rewriting it as macros was the idea. I just didn't want to do it before getting feedback about it. Composite templates don't check your actual ui files for any errors or typos, do they? These errors are only caught at runtime which makes it impossible to catch by CI etc. And you still need to write the template files.

Yes, rewriting it as macros was the idea. I just didn't want to do it before getting feedback about it. Composite templates don't check your actual ui files for any errors or typos, do they? These errors are only caught at runtime which makes it impossible to catch by CI etc. And you still need to write the template files.

Definitely, see my suggestion in #77, Vala does exactly the same thing by having an attribute to specify either a resource uri or a file path and it does check the types at build time that way.

Ah yes that looks like a good way to do it. I guess three LOC per template file are a good compromise between magic and not having to write a lot of code. I can look into it.

Sounds great, thanks for looking into this :)


[$80] Show error details

Background
When we process payments, some of them might fail. We would like to be able to see the error details of why the payment failed and easily find failed payments.
Payment List Popup
Show payment list not only inside the history/details, but also in the main table. For this purpose we updated API so now it can return payments inside the main list. So now we can ask to return payments fields like this:
GET /resourceBookings?workPeriods.startDate=2020-09-27&fields=id,workPeriods.startDate,workPeriods.payments.status,workPeriods.payments.amount,workPeriods.payments.challengeId,workPeriods.payments.statusDetails,startDate&workPeriods.payments.status=failed

only request filed which are necessary to render payments list

Error Details Popup inside Payment List Popup
When there is a failed payment inside the Payment List Popup next the failed label show a red circle with exclamation sign inside ! (can create it using CSS) and when we click it, show a popup with error details which come from payments.statusDetails
The info inside this popup should look like this:
Challenge: 0013123123-12312312-12312-312312
Error: Cannot Activate this project, it has no active billing account.
Code: 400     Retry: 1     Step: active-challenge

Style it to match other styles.

Error Details Tooltip next to Total Paid
When we show Work Periods in the main table or inside history we would like to indicate if this Work Period has at least one payment failed.

If Work Period has at least one payment failed, show the same red circle with ! next to it
If Work Period payment status is completed then make red circle semi-transparent (opacity: 0.3) because it's not that important if the payments in general were completed
If we click this red circle, show the same Error Details Popup with the latest failed payment (if there several failed)

Filter by "Have failed payment"
We would like to easily find all the Work Periods which have some failed payments. For this purpose add one more filter under "Payment Status" which would look like this:

By default it should be turned off
If we turn it on, then we should add filter workPeriods.paymetns.status=failed this should return us only Resource Bookings with Work Period which has at least one failed Pyament

Verified on Dev Env.

Verified on PRod Env with @nkumar-topcoder


is it dog friendly?

Is the website dog friendly?

Oh yeah you can bring your dog, no problem.

@gjrdiesel I didn't ask if I can bring my dog, I asked if the website is dog friendly

I'm labeling this help wanted, we're going need a on duty lifeguard before going further.


chore: add retry and back-off when creating receivers and senders

@Hadi-E could you please open a PR aganist chore/workflow-update branch?

Changed


Optimizing Images

Properly formatting and compressing images can save many bytes of data.
Reduction of 84.9KiB (50% reduction)
Source: PageSpeed Insights
Below are compressed images:
shot1.png ( 59.9KB --> 27.3KB )

shot2.png ( 107KB --> 54.3KB)

Thanks for the suggestion again! It is of course not a priority to optimize the Github Page, however if I was to fix this specific one, don't you think replacing ".png" images with ".svg" ones would be far a better optimization?

since this is not a priority right now I will be closing this issue.


Custom Transactions are not showing in the Performance tab

Versions + Platform

[ ] SDK version -<EMAIL_ADDRESS>[ ] Electron version -<EMAIL_ADDRESS>[ ] Platform - macOS

Description
`
"@sentry/electron": "^3.0.0",
"@sentry/integrations": "^6.17.0",
"@sentry/node": "^6.17.0",
"@sentry/react": "^6.17.0",
"@sentry/tracing": "^6.17.0",
"@sentry/types": "^6.17.0",

`
I am instrumenting custom transactions based on the docs however the transaction does not appear in the performance dashboard.
It is is capturing the default Request transaction from electron but not my custom one.
I do see in the logs that the transaction is started & finished but never sent to sentry.
My sampleRate & traceSampleRate is set to 1.
`
  enabled: true,
  debug: true,
  environment: Environment.Development,
  sampleRate: 1,
  tracesSampleRate: 1,

`
my code looks like:
`
const Sentry = require('@sentry/node');

async initSequence() {

  const transaction = Sentry.startTransaction({ name: 'InitSequence', op: 'task' });
  Sentry.getCurrentHub().configureScope((scope) => scope.setSpan(transaction));

  const initializeServicesSpan = transaction.startChild({ op: 'initializeServices' });
  await this.initializeServices();
  initializeServicesSpan.finish();
  transaction.finish();
}

`
Here is what I see in logs
Sentry Logger [Log]: [Tracing] starting task transaction - InitSequence
Sentry Logger [Log]: [Tracing] Finishing task transaction: InitSequence.
Sentry Logger [Log]: Sending 'transaction' request
Sentry Logger [Log]: Successfully sent

Thanks for the detailed report. I'll take a look!

It looks like transaction spans are not getting serialised correctly when captured from the Electron main process.
Currently the docs only cover tracing in the renderer so I need to add some more details about configuring in the main process.
As in the node.js performance docs, you need to import @sentry/tracing for transactions to work as this hooks the tracking extension points in the SDK:
const Tracing = require('@sentry/tracing');
// Note: You MUST import the package for tracing to work

However, I've just tried this myself and it still doesn't appear to fix the serialisation issue so I will need to dig a bit deeper!

Yeah i tried importing Tracing package but still it didn't work.

Just for my knowledge, @timfish - how long does it take for the new release to be available with this fix?

I've triggered the release of v3.0.2 so once the CI tests have passed, it just needs someone approving the release here.


Provided module cannot be loaded

When using this lib in my cloud function on nodejs14 it is producing the following issue:
Provided module can't be loaded.
Did you list all required modules in the package.json dependencies?
Detailed stack trace: Error: Cannot find module '/src/plugins/plugin-http.js'
...

Any help is appreciated.

I'm closing this issue out as stale, but please feel free to reopen, especially if you're able to provide some concrete repro steps (e.g. your package.json, how you invoked esbuild, etc.).


Time zone is not appling

I made this template-rust-backend-with-electron-frontend template now. But, I found cargo-generate cannot apply to a time zone expectedly.
My template has {{ "now" | date: "%FT%T%z" }} in package.json. It be changed to 2020-03-20T07:15:54+0000. I user expected to applying to a local time zone but it's just +0000. ( eg. Expected to "2020-03-20T16:15:54+0900" if user live in Japan. )
I think the issue is a bug of cargo-generate.

Hi @usagi.
cargo-generate uses liquid for template placeholders - you can see the documentation of liquid, about the date, here: https://shopify.github.io/liquid/filters/date/
Is this liquid issue is related to your problem: https://github.com/cobalt-org/liquid-rust/issues/332 ?

@k0pernicus Oh, thank you for telling me!


Django 1.9 Deprecations

Almost a complete dupe of https://github.com/stefanfoulis/django-filer/pull/580 but it hasn't moved in a month and is in need of a rebase so I moved everything and resubmitted. Logs are spewing 1.9 warnings so hopefully we can get this released quickly!

Also covers #597.

LGTM
@stefanfoulis dropping Django 1.4 it's not really a big deal to me

Friendly bump. Just don't want to let this sit. Thanks!

@yakky Python world is so small :D I got this warning too while trying to fix this project https://github.com/raspberrywhite/raspberrywhite/pull/27 from @astagi :)
I will put a note and wait for the next release to fix this specific warning.

@stefanfoulis going on two weeks now. Can we merge and release this?


contents: add create and update methods

Signed-off-by: Jess Frazelle<EMAIL_ADDRESS>
What did you implement:
Added create and update methods for contents, happy to change any of the naming.

How did you verify your change:
using it on a project
What (if anything) would need to be called out in the CHANGELOG for the next release:
You can now create and update file contents.

@jessfraz thanks again!


Homebridge not updating current state

First of all, thank you for a great plugin. Very easy to add all of my devices, naming, index etc.
But something I haven’t figured out is how to sync the device statuses. Lets say I use the wall switch or have a timer set up in the tasmota web interface then it wont change the status in HomeKit. I can see in the logs that MQTT is sending from the tasmota device but nothing is received in homebridge.
Is this a known bug/limitation or am I just missing something obvious?
Thank you!

Thanks for your feedback.
As you're clearly pointing out, this is a more like a limitation I haven't figure out. You can see for instance (here[https://github.com/AtomBaf/homebridge-mqtt-tasmota/blob/master/src/switch.js#L19] that an assumption is made on the initial state of the system when the first connection is made.
However, I don't have in my own setup the typical thing you're describing: a timer. What exactly tasmota is publishing when a timer-based event is triggered ? If you can send the mqtt message log, I would modify the code to handle this message as well. It seems easy to applicate. I can do it on my own, but not sure if it would help if you have a different version/setup/device on your own tasmota.
Thx again for your help in understanding these things.

FYI, I tested some timer on my own setup and the state of the tasmota switch is correctly reflected in homebridge/homekit after a timer event. Did I miss something about your query?

Hi,
Thank you for the quick reply, much appreciated!
The main issue is that it doesn’t update when I use the physical wall switch. The timers I can just program in the home-app instead of in the tasmota web-interface
In the Homebridge-log it doesn't detect my action when I press the button which I can see in the Tasmota-console. Here I press off in the home-app and then I use the wall switch button (Sonoff T1 touch) to turn the lights back on. But in Homebridge it doesn't detect that action.
Homebridge log:
[1/9/2022, 6:57:35 PM] [Tvättstugan Belysning korridor] Set Power: false
[1/9/2022, 6:57:35 PM] [Tvättstugan Belysning korridor] Updated CurrentPower: OFF
Tasmota console log:
18:57:35 MQT: stat/tasmota_FF740F/RESULT = {"POWER":"OFF"}
18:57:35 MQT: stat/tasmota_FF740F/POWER = OFF
18:57:46 MQT: stat/tasmota_FF740F/RESULT = {"POWER":"ON"}
18:57:46 MQT: stat/tasmota_FF740F/POWER = ON
I need to log on to my Synology to find the logs for the timers I had earlier today to verify that it's acting the same or if I'm misstaken.
Thank you!
Please let me know if I can contribute to your support in any way.

I maybe won't be very helpful, but as far as I can see, the code is explicitly listening to the stat/XXX/RESULT topic.
(https://github.com/AtomBaf/homebridge-mqtt-tasmota/blob/e9de22c821d8d351873862d72896e6d41729cb94/src/switch.js#L13)
Any message from this topic is then handled and parsed to update the state of the accessory. (https://github.com/AtomBaf/homebridge-mqtt-tasmota/blob/e9de22c821d8d351873862d72896e6d41729cb94/src/switch.js#L46)
Maybe one hint: do you have in your accessory definition an index set? As you can see in the code, if this is true, then the parsing function will expect POWER1 instead of POWER to be published in the mqtt message by the tasmota device. I did some trials on effectively tasmota is publishing a POWER message and not POWER1 if the device is a simple switch. This could be the cause of your problem which I would solve easily.
Let me know your config, and if you can grap it, all the MQTT messages published during your test case.

Finally got it and fixed it.
Thx for your patience and feedback.

Hi
Wow, that was quick!
And with this update all devices status are also synced when Homebridge is restarted! Thank you so much!

11 jan. 2022 kl. 09:55 skrev AtomBaf @.***>:
Finally got it and fixed it.
Thx for your patience and feedback.
—
Reply to this email directly, view it on GitHub https://github.com/AtomBaf/homebridge-mqtt-tasmota/issues/5#issuecomment-1009726863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUGBSO3USEOV5JFVQUTVEDUVPV6PANCNFSM5LRYZIEQ.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.

And how can I Donate a contribution for this?
Best regards
Oscar

11 jan. 2022 kl. 10:37 skrev Oscar Ekström @.***>:
Hi
Wow, that was quick!
And with this update all devices status are also synced when Homebridge is restarted! Thank you so much!

11 jan. 2022 kl. 09:55 skrev AtomBaf @.*** @.***>>:
Finally got it and fixed it.
Thx for your patience and feedback.
—
Reply to this email directly, view it on GitHub https://github.com/AtomBaf/homebridge-mqtt-tasmota/issues/5#issuecomment-1009726863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUGBSO3USEOV5JFVQUTVEDUVPV6PANCNFSM5LRYZIEQ.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.

Thx Oscar, this is not necessary to donate, but if you'd like to, this is much appreciated.
Updated to version 0.4.6

Hi Fabien
Well you saved me a lot of hazzle and headache so I sent you 10 Euros anyway.
Thank you very much!
Best regards
Oscar

11 jan. 2022 kl. 12:28 skrev AtomBaf @.***>:
Thx Oscar, this is not necessary to donate, but if you'd like to, this is much appreciated.
Updated to version 0.4.6
—
Reply to this email directly, view it on GitHub https://github.com/AtomBaf/homebridge-mqtt-tasmota/issues/5#issuecomment-1009871092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUGBSKG25FFMHIABTYV7FDUVQH5DANCNFSM5LRYZIEQ.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.


Add a STAGING environment and build tasks to seed.config.ts

Sometimes in staging build the application will have to use a different api endpoint, but it looks like the current seed.config.ts does not define a staging environment. There is no gulp tasks for staging build as well. Please consider adding those.

You can configure one by:

Create a file tools/env/staging.ts.
Run the seed with npm run build.prod -- --config-env staging.


Fix the golang version requirement in README

Bark client now uses the log/slog package which is part of Go release 1.21 and above. We need to update the required go version in the README.

Done


ENH clean the deps

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin rerender

Hi! This is the friendly automated conda-forge-webservice.
I tried to re-render for you but ran into some issues, please ping conda-forge/core for further assistance. You can also try re-rendering locally.

@conda-forge-admin rerender

Hi! This is the friendly automated conda-forge-webservice.
I tried to re-render for you but ran into some issues, please ping conda-forge/core for further assistance. You can also try re-rendering locally.

local rerender didn't change anything

@conda-forge-admin rerender

Hi! This is the friendly automated conda-forge-webservice.
I tried to re-render for you but ran into some issues, please ping conda-forge/core for further assistance. You can also try re-rendering locally.


Inconsistent white border in different image sizes

Question about an existing feature
What are you trying to achieve?
Consistent output without white border.
When you searched for similar issues, what did you find that might be related?
Nothing, not sure what to search for.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
await sharp(svgPath).resize(1000).png().toFile(pngPath);
await sharp(svgPath).resize(1200).png().toFile(pngPath);

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
  <path fill="white" d="M32 32h300v300H32Z" />
  <path d="M32 32h300l-172 54L332 332H32Z" />
</svg>

Please provide sample image(s) that help explain this question

1000x (no white border)

1200x (white border)

Both these images appear to be rendered as-expected, both have a transparent background.
I suspect your question relates to the semi-transparent pixels around some of the edges in the 1200px PNG example.
The logic to calculate the "natural size" of an SVG is not entirely straightforward - see https://github.com/libvips/libvips/blob/35053f55e372bd3e687e987c2d68ea5cf62f85cd/libvips/foreign/svgload.c#L402 - and may result in scaling via cairo, which can introduce anti-aliasing at edges for some dimensions.
Given the viewBox in this SVG is relatively simple (e.g. no offset), providing explicit width and height attributes will help everything involved in its rendering to determine the natural size.
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
+ <svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">

Thank you for pointing me to the right direction. Unfortunately neither replacing viewBox with width and height nor simply adding it along viewBox did not change output for 1200x.

You could also try using shape-rendering to reduce anti-aliasing.
- <path d="M32 32h300l-172 54L332 332H32Z" />
+ <path d="M32 32h300l-172 54L332 332H32Z" shape-rendering="crispEdges" />

Doesn't really work in my case, it only made border slightly more obvious and made diagonal lines ugly (as expected).

1200x

@danielwerg Were you able to make any progress with this?

@lovell Nope, learned to accept it when I was still working on project that needed it.

Thanks for the update, I'll close for now.


XOR Calculator

Enter calculator name -
XOR Calculator
Describe calculator functionality -
The calculator should be able to calculate the xor of the two input values.
Under which category you wish to place it -
[yes] Computer Science
[] Mathematics
[] Physics
[] Chemistry
[] Biology
[] Finance
[] Scientific
[] Health
[] Sports
[] Let project owner decide

kindly asssign me his issue

Hey @Satvik-Garg,
Assigned.
You may contribute your code under the folder path -
calc_for_everything\calculators\src\computer_science\xor_operator
Issue completion deadline - 4th Oct 7:00:00 pm IST
NOTE - In case the issue completion deadline is not met, the issue will be assigned to a new participant


add to README info on go, dep versions

In the meeting on 1/29 we decided we would use 1.9/latest.  We should add this fact into the README.

Is this not closed?


Game header images (or "heroes,"as they're alternatively called) aren't fully seen

Compared to the stock steam layout, the header images for games are a bit smaller and it usually cuts out the main purpose of the image. Like for example in Bioshock Infinite you can't see the main character, but in stock steam you can. In some library themes you can see the rest of the image through some type of glass like area (which is fine but I feel like the full thing would be better) and in shiina's theme you can't see the rest of the image at all.  I was thinking maybe a feature could be implemented where the user can change the dimensions of that picture and how much of it the user wants to be shown.

Compared to the stock steam layout, the header images for games are a bit smaller and it usually cuts out the main purpose of the image.

The header in OldGlory is shorter than in vanilla Steam, so yes, more of the image will be behind the main game page panels. There is also some adjusting made to position the image from the top.
/* Unset Header Image height to show top and bottom */
.sharedappdetailsheader_ImgContainer_QlR9E {
  height: unset;
}

The default height is 120%, changing this number around determines where the top of the image starts from. 133% approximately mimics the positioning from Vanilla Steam.
scss\_gamepage_header.scss contains the layout changes for the header, so disabling this would go back to using the vanilla Steam layout.
Now because CSS is very customisable I could add in lots of variables to make this easier to customise at a later date.

I was thinking maybe a feature could be implemented where the user can change the dimensions of that picture and how much of it the user wants to be shown.

This would most likely be options to change across all gamepage images, and not on a game-by-game basis, where a custom image background would be better suited.


Space Around Zones Keeps reseting

ℹ Computer information

PowerToys version:
PowerToy Utility:
Running PowerToys as Admin:
Windows build number: [run "winver"]

📝 Provide detailed reproduction steps (if any)

Change "Space Around Zones" from default value of 20 to 5
reboot PC.
the value in the "Space Around Zones" stays at 5 in settings, but the actual spacing between windows on the screen is back to 20.

✔ Expected result
What is the expected result of the above steps?
❌ Actual result
What is the actual result of the above steps?
📷 Screenshots
Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

dup of #8002


Mobile Web using RenderRepaintBoundary.toImage()

Steps to Reproduce
RenderRepaintBoundary boundary = globalKey.currentContext.findRenderObject();
var image = await boundary.toImage();
Expected results:
I'm using Flutter-web to take a screenshot of a widget.
Actual results:
It works on PC but hasn't worked on my Android. Tried with chrome and the default browser. I get the error:
Unsupported operation: toImage is not supported on the Web

Code sample

// Copyright (c) 2019, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  final String title;

  const MyHomePage({
    Key? key,
    required this.title,
  }) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  GlobalKey globalKey = new GlobalKey();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            RepaintBoundary(
                  key: globalKey,
                  child: Image.asset(''),
                ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: (){
          RenderRepaintBoundary boundary = globalKey.currentContext.findRenderObject();
          boundary.toImage();
        },
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

Logs

[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19042.1466],
    locale en-US)
    • Flutter version 2.8.1 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\deziu\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30517.126
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Community Edition (version 2020.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.2
    • Flutter plugin version 49.0.4
    • Dart plugin version 202.7319.5

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.19042.1466]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 97.0.4692.99
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 97.0.1072.62

• No issues found!

Hi @BernardinD, please provide the output of flutter doctor -v.
Thank you

@danagbemava-nc just added it

Similar to 47721.
Hi @BernardinD,
Please see this comment from above referenced ticket and another comment in which the issue is split into two tickets.
Please follow-up there for updates on this issue.
Closing this as duplicate. If you disagree, write in comments and I'll reopen.
Thanks.

@danagbemava-nc Those threads don't seem to cover mobile-web. I can get it to work from a PC so the problem seems to be mobile specific

Mobile-web is just the html renderer being used. The default for desktop is canvaskit whereas html is the default for mobile devices. You can confirm this by running flutter run -d chrome --web-renderer html. It will reproduce on desktop as well.

@danagbemava-nc i understand now. Thx so much!


Site published to IIS returning 404 for API urls

My site is serving static content just fine, but when I try to access the API urls, it returns 404 errors. Not sure where to begin looking for this. Having trouble finding the process id so I can do remote debugging and finding the cause. Any thoughts?

So I figured out the issue. My production setup was from RC1, and my site was pointing to wwwroot instead of the root like it required back then(at least for my site).
I pointed it to the root, and now things work. Hope my suffering helps another at some point.

Cross reference: https://docs.asp.net/en/latest/migration/rc1-to-rtm.html


corrupted core.py incorrect size & No module

Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment

Operating System: Ubuntu20
Python Version: Python 3.5.6 :: Anaconda, Inc.
Python Bitness: 64
How did you install Zipline: conda
Python packages:
package_python_list.txt

Hey. I'm trying to use zipline and run backtest with it but I get into problem.
Now that you know a little about me, let me tell you about the issue I am
having:
Description of Issue

What did you expect to happen?
run it and using it.
What happened instead?
problem with using it.
when I imported zipline and run it it said :
No module named 'zipline.data.adjustments'

when I was installing it , it gave this problem at the end :

so maybe there is something wrong with that.
attached the core.py text into a txt file for you to see:
core.txt

Here is how you can reproduce this issue on your machine:
Reproduction Steps

...
What steps have you taken to resolve this already?
completely removed the env. the reinstalled it again and it's happening again.
Anything else?
...
Sincerely,
dan

same issues
if anyone has  a solution pls help


Provide import facility to populate the setting from the legacy server manager

On the Windows platform the InterSystems cube provides access to a facility for defining server connections. This information is stored in the Windows Registry. The ability to import the server connections defined therein  would be very helpful for those transitioning from Studio.

@isc-jamien is any work underway on this yet? If so, can the GH issue be assigned to someone so as to indicate this?

Please assign it to me. Tyler (who isn't available a bit) has published his work in progress at https://github.com/ty-d/intersystems-servermanager/tree/ImportServersFromRegistry and I intend to finish it up and submit a PR this month.

Registry pointer in Developer Community post.

@gjsjohnmurray thanks - this is in-progress but has gotten bumped by some other things priority-wise.


[Bug]: Chat content is not modifiable

Your minimal.lua config
Default
Error messages
  Error  23:20:21 msg_show.emsg E21: Cannot make changes, 'modifiable' is off
__
Health check output
codecompanion.nvim report ~

Log file: /Users/niba/.local/state/nvim/codecompanion.log
OK plenary.nvim installed
OK nvim-treesitter installed
OK telescope.nvim installed
OK dressing.nvim installed
OK curl installed

Log output
Nothing in logs
Describe the bug
The chat becomes unmodifiable when I add any selected code using the CodeCompanionAdd command
Reproduce the bug

Open the chat buffer
Send anything to the AI
Go back to the code buffer
Use the CodeCompanionAdd command to move selected code from the code buffer to the chat buffer.
Chat buffer is not modifiable

Final checks

[X] I have made sure this issue exists in the latest version of the plugin
[X] I have tested with the minimal.lua config file above and still get the issue
[X] I have shared the contents of the log file

@niba - I can't seem to recreate this. Is it still an issue for you?

Yes, I added logs to unlock and lock buff functions
When I ask AI about something i get

locking
unlocking

but when I use CodeCompanionAdd to send selected text to chat then I have log

unlocking
locking

Thanks again for some thorough analysis!


Musicgen forward implementation

This PR implements forward method for musicgen model: huggingface/candle#975

@qooba did you add generate method?


[Feature] Add tools to convert distill ckpt to student-only ckpt.

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Add tools to convert distill ckpt to student-only ckpt to better support other task.
Modification
Add tools/model_converters/convert_kd_ckpt_to_student.py.
BC-breaking (Optional)
Does the modification introduce changes that break the backward compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here and update the documentation.
Checklist
Before PR:

[ ] Pre-commit or other linting tools are used to fix the potential lint issues.
[ ] Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
[ ] The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
[ ] The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

[ ] If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects, like MMDet or MMSeg.
[ ] CLA has been signed and all committers have signed the CLA in this PR.

Thanks for your advice. And I have modified the PR and tested a ckpt, evaluating bbox mAP on MMDet successfully, getting the right score.


rule(macro multipath_writing_conf): create and use the macro

What type of PR is this?
/kind rule-update
Any specific area of the project related to this PR?
/area rules
What this PR does / why we need it:
multipath, which is run by systemd-udevd (in our environment), writes to /etc/multipath/wwids, /etc/multipath/bindings and a few other paths under /etc/multipath as part of its normal operation. Falco is sending alerts for this, but given that it's expected behaviour for multipath, it probably shouldn't!
For more information about multipath defaults, see https://manpages.debian.org/testing/multipath-tools/multipath.conf.5.en.html
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?:
rule(macro multipath_writing_conf): create and use the macro

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign mstemm
You can assign the PR to them by writing /assign @mstemm in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

rules/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Welcome @nmarier-coveo! It looks like this is your first PR to falcosecurity/falco 🎉

Welcome @nmarier-coveo! It looks like this is your first PR to falcosecurity/falco tada

For the record, it isn't! I'm just using my work account now instead of @marier-nico :smile:

/cc @Kaizhe

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Kaizhe
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [Kaizhe]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: fc103d187e91b99715d723c30e8f89a380ab68f2

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, Kaizhe, leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [Kaizhe,fntlnz,leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, Kaizhe, leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [Kaizhe,fntlnz,leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/milestone 0.27.0


[move source lang] Added check for instantiation loops

Motivation

Fixed subdir issues with the ir test migration tool
Added check for instantiation loops
Error messages are particularly hard for this. They are complicated but hopefully helpful.

Test Plan

New test
Migrated existing (and very well thought out) tests

@vgao1996 @bob-wilson @tzakian The most help I really need here is for the error messages: Do they make sense?
I struggled to get them in a place where it was obvious what was going on

@bors-libra r=bob-wilson

:pushpin: Commit adf8c5b has been approved by bob-wilson

:hourglass: Testing commit adf8c5b270ba7c3037d378d1a397376cc66cfae8 with merge 13e3221ca43b3b8f2d27bbbbbe249fa82d5d4c9e...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra r=bob-wilson

:pushpin: Commit 260e25c has been approved by bob-wilson

:hourglass: Testing commit 260e25cdb6908f18310e088b70e76c5b6fc0652b with merge f46aaa9e3a6a10d5e9b1e92fdd3fffa3bce063c5...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra retry

:hourglass: Testing commit 260e25cdb6908f18310e088b70e76c5b6fc0652b with merge 652012b15b77699c6f5a26e2f487b1c72c2ede66...

:broken_heart: Test failed - checks-circle_commit_workflow

:umbrella: The latest upstream changes (presumably dac3a34d4b8d37ff55640d661e889235d4475479) made this pull request unmergeable. Please resolve the merge conflicts.

@bors-libra r=bob-wilson

:pushpin: Commit 0ce00da has been approved by bob-wilson

:hourglass: Testing commit 0ce00dabae81b9aecea46f94a5c4e65dbc36cc55 with merge ad9377464552b08efa284a393a684fbebbe0ae08...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: bob-wilson
Pushing ad9377464552b08efa284a393a684fbebbe0ae08 to master...


fix: improve rbac settings of yurt-manager component

What this PR does / why we need it:
improve rbac settings of yurt-manager component
Which issue(s) this PR fixes:
Fixes #1812
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

/assign @rambohe-ch

/rerun

/lgtm

/approve


update ndjson parse of stream results coming back

Fixes https://github.com/elastic/synthetics/issues/660

:broken_heart: Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-11-24T11:34:32.418+0000

Duration: 5 min 1 sec

Steps errors
Expand to view the steps failures

Checks linting

Took 0 min 4 sec . View more details here
Description: npm run-script lint

:robot: GitHub comments
Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

closing in favour of https://github.com/elastic/synthetics/pull/665


Add->REST API Client... command fails in VS2015

After installing Azure App Service Tools v2.9.6. 14.0.21111.0, I get the following error when clicking OK in the Add REST API Client dialog is:

Generating client code and adding to project started
Generate client code for REST API with following parameters:
REST API Name: MessageMarkerWebAPIClient, Base namespace: ABLUploadEmailAddin, Metadata file path: C:\Users\jxxxxx\AppData\Local\Temp\WebToolsAutoRest\MessageMarkerWebAPIClient\201611201949071018\swagger.json

Exception: Could not load file or assembly 'Newtonsoft.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Generating client code and adding to project failed
Adding REST API client for failed

I worked around the error by copying Newtonsoft.Json.dll (file version <IP_ADDRESS>22) into the C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE directory.

@jimt4593 This is the repository for Azure management libraries, not VS tooling.  Please redirect this issue at the VS team.

@jim4593 how exactly would we do that?

@markcowl isn't the "Add REST Client" a visual studio extension that is included in the Azure SDK?

@markcowl this is still an issue - could you please help us at least get in touch with the right MS people to get some support? Thank you much.

Same problem here, REST API Client generation was working fine before installing newest Azure SDK, so it has to have something to do with it.
Here is a workaround that worked for me: http://stackoverflow.com/questions/41373912/add-rest-api-client-command-fails-in-vs2015
Just download the NuGet package and copy the .dll into the stated folder and it should work again.

Same Issue here. Had to generate the REST API Client in Visual Studio 2013.

For a permanent workaround consider to download the AutoRest NuGet package manually and use the included AutoRest.exe via command line (e.g. NuGet Package Manager Console) to always have the newest version in use.

This worked for me, but I did have to resolve one additional error.  When installing the API (after copying Newtonsoft.Json.dll 7.0.1, then I had a problem with Microsoft.Rest.ClientRuntime 2.3.2 failing to install.  I installed it via NuGet Package installer, then did the API install again and it all worked.


dev: example recipes

Create a set of runnable recipes on how to implement beerus for use.
Ref: https://github.com/a16z/helios/tree/master/examples

Create a basic implementation of Beerus lightclient example runnable https://github.com/a16z/helios/blob/master/examples/basic.rs

Add call execution using starknet_call.hurl example as reference https://github.com/keep-starknet-strange/beerus/blob/main/examples/beerus-rpc/starknet/starknet_call.hurl (Should have similar logic using helios example https://github.com/a16z/helios/blob/master/examples/call.rs)

Add client.rs Beerus build instructions using helios client example as reference https://github.com/a16z/helios/blob/master/examples/client.rs

Add example runnable instructions to Beerus README and link for visibility.

assign me please

@tonypony220 assigned, and thanks!


[Issue] Load Html Sometimes Doesnt Load a body

What platform are you experiencing this issue on?
Linus (Arch)
What version of UWB are you using?
2.2.1
What Unity version are you running?
2022.3.48f1
Describe what the issue you are experiencing is.
The html load function does not properly load some html data
it works sometimes but this specific set doesnt work well.
Provide reproducible steps for this issue.
Call browser LoadHtml(string) and put in the below html data.
Any additional info you like to provide?

Log Entries for DNS

<logEntries>
<logEntry><breadcrumb onclick='uwb.ExecuteJsMethod(`navigate`, `[Redacted]?searchTerm=5d9b73e6-01d7-46e5-a4e6-6cacac98843d`);' breadcrumb.guid='5d9b73e6-01d7-46e5-a4e6-6cacac98843d'>
            <guid>5d9b73e6-01d7-46e5-a4e6-6cacac98843d</guid>
            <time>10/15/2024 1:09:15 PM</time>
            <name>Dns:IsAddressValid</name>
            <playerName>[Redacted]</playerName>
            <aliasName>[Redacted]</aliasName></breadcrumb><log> Requests to see if [Redacted]is valid in address book valueOf Operation is True</log></logEntry>
<logEntry><breadcrumb onclick='uwb.ExecuteJsMethod(`navigate`, `[Redacted]?searchTerm=d0c28bce-b0cf-44ad-820c-34b8b21a50ea`);' breadcrumb.guid='d0c28bce-b0cf-44ad-820c-34b8b21a50ea'>
            <guid>d0c28bce-b0cf-44ad-820c-34b8b21a50ea</guid>
            <time>10/15/2024 1:09:24 PM</time>
            <name>Dns:IsAddressValid</name>
            <playerName>[Redacted]</playerName>
            <aliasName>[Redacted]</aliasName></breadcrumb><log> Requests to see if [Redacted] is valid in address book valueOf Operation is True</log></logEntry>

</logEntries>

Html output using dev tools

Further information
removing the styles from the html loads the body,m
adding styles back in remove the body
heres my text implementation
$styleCss injects the css into the text
and $entries injects the log entries that dont appear when css is on

Log Entries for DNS

<logEntries>
$entries
</logEntries>

another experiment moving the css style to the endof of the body
loads the $entries and part of the css
maybe theres a limit to the bytes that can be transmitted to the browser

Log Entries for DNS

<logentries>
<logentry><breadcrumb onclick="uwb.ExecuteJsMethod(`navigate`, `[redacted].com?searchTerm=0f0b3410-3c2b-4173-97aa-1695d6e06b2d`);" breadcrumb.guid="0f0b3410-3c2b-4173-97aa-1695d6e06b2d">
            <guid>0f0b3410-3c2b-4173-97aa-1695d6e06b2d</guid>
            <time>10/15/2024 1:31:30 PM</time>
            <name>Dns:IsAddressValid</name>
            <playername>[redacted]</playername>
            <aliasname>[redacted]</aliasname></breadcrumb><log> Requests to see if [redacted].dev is valid in address book valueOf Operation is True</log></logentry>
<logentry><breadcrumb onclick="uwb.ExecuteJsMethod(`navigate`, `[redacted]?searchTerm=70142b92-5fb1-403f-b8b5-3fe32689e4ff`);" breadcrumb.guid="70142b92-5fb1-403f-b8b5-3fe32689e4ff">
            <guid>70142b92-5fb1-403f-b8b5-3fe32689e4ff</guid>
            <time>10/15/2024 1:31:41 PM</time>
            <name>Dns:IsAddressValid</name>
            <playername>[redacted]</playername>
            <aliasname>[redacted]</aliasname></breadcrumb><log> Requests to see if dns.com is valid in address book valueOf Operation is True</log></logentry>

</logentries>

    ```

```html
        private string logHtml = @"

Log Entries for DNS

<logEntries>
$entries
</logEntries>

";

LoadHtml currently just calls LoadUrl with a url of data:text/html,{html}.
The hashtags in your css for your colours are causing the url to be fragmented by the browser, so the browser only renders the content upto the hashtag.
A workaround for now is to just use rgb() in your css.
This ideally shouldn't be a problem. CEF doesn't provide a direct way to load html. I will have to look into a better solution for loading html.

Having a look at the cef examples, it seems like they base64 encode then url encode the provided html content before calling load url with data:text/html;base64,{html}.
I have done this and it fixes the issues of the hashtags fragmenting the url which causes the rendering issues. Fix will come in next release.

Fixed in release 2.2.2.

Thanks man, its working great now , I really appreciate it


Add the ability to copy props

What problem does this feature solve?
When doing unit tests, I need to grab props data, as an example. Rather than trawling through the data from a parent component, it would be nice to be able to just copy it directly from devtools for that component specifically.
What does the proposed API look like?
It would work in a similar way to the data properties do, except instead of a pencil (to edit) there's an icon to copy to clipboard.

Duplicate of #442


Using it for log analysis instead of log suppressing

As explained here #5
An example of using this library to read the logs instead of suppressing them, useful when you're fighting with a hidden (by Jest) logs and a failing test.

I will fix these tests this weeknd so we can get this in

Codecov Report

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

@@          Coverage Diff          @@
##           master     #6   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines          25     25
  Branches        3      3
=====================================
  Hits           25     25

Continue to review full report at Codecov.

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


LOC: FRA: MAC only: The shortcut key for Toggle Panels should be "⇧⌘#" or "⇧⌘@".

Launch Brackets.
Expand View panel.

Result:
The shortcut key for Toggle Panels is "⇧⌘`".
But on local keyboard there is no "`".
Expect:
The shortcut key for Toggle Panels should be "⇧⌘#" or "⇧⌘@".

Tagging @abose

WE might need to change to for all non english locales now.
Can you check which all keyboard layouts doesn't have the ` symbol?


Add the ability to flag errors from a specific host.

Description
There are some errors that could be a temporary problem with the host. For instance, hosts that have migrated from said and have lost sectors. Depending on the reason, I am not necessarily wanting to add them to the block list if they have otherwise been proven to be a stable and reliable host. At the same time if this issue keeps happening then I want to be aware of it so I can add the host to the block list if needed.
My proposed solution is to add an action in the error log host menu that allows you to flag that specific error on that specific host. Then, if that host runs into the same error later on, there should be an indication on the alert that this this error has previously been flagged on the host before.
Example:

Version
v1.0.5
What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?
Ubuntu 22.04.3 Server LTS
Anything else?
No response

I don't think we need to flag the host. Each alert has a unique ID.  So what I propose instead is keeping track of the last time a specific alert was dismissed.
So in this particular case, you might reset the lost sectors, then dismiss the alert and after a day the alert shows up and tells you "LastOccurrence: 1 day ago". This could possibly be extended with some more metadata such as the number of times it has occurred.


Update deps and peerDeps to avoid warnings

Any changes here for end-users? Looks like these were major bumps.

Any changes here for end-users? Looks like these were major bumps.

Documented breaking changes in the PR description. We will need to release a new major version.


CocoaPods could not find compatible versions for pod "TrezorCrypto":

After trying to install this Pod, it's showing this error:
[!] CocoaPods could not find compatible versions for pod "TrezorCrypto":
  In Podfile:
    GoldenKeystore was resolved to 1.0.3, which depends on
      TrezorCrypto (= 0.0.6)

None of your spec sources contain a spec satisfying the dependency: `TrezorCrypto (= 0.0.6)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Hi,
Probably a little bit too late but the problem is related to TrezorCrypto version 0.0.6.
The latest one is 0.0.9.
To quickly run locally and test, you can: clone GoldenKeystore repository locally; update GoldenKeystore.podspec setting
s.dependency 'TrezorCrypto', '0.0.9'

then update your project Podfile specifying local path
pod 'GoldenKeystore', :path => 'LOCAL_PATH'

Finally execute pod install.
The best thing to do should be a dedicated PR.
Hope it helps.


chore: use GlobalHeader from gatsby-theme-newrelic

Description
Updates the site to use the GlobalHeader component from gatsby-theme-newrelic.

Spoke in person, but for others, the ESLint errors are due to the upgrade of prettier. I had upgraded prettier to work with the auto code formatting in the theme, but it looks like there were more changes than I had realized. My current plan is to open a separate PR with the prettier upgrade and everything run through prettier. Once that is merged, that should resolve these conflicts and we can move forward with this change.

ESLint issues should be fixed once #588 is merged and pulled into this branch

@tangollama Phew, finally got everything updated and pushed up. Looks like we are good to go on the ESLint front!


Fix anchor link for getDerivedStateFromError

The anchor for getDerivedStateFromError was previously #getderivedstatefromerror when it should be #static-getderivedstatefromerror

Thx


Serve Images from Google Cloud, but disable Cloud for new images

Bit of a silly question maybe, but I would like to disable cloud upload for new images, but continue serving already uploaded images from cloud. This is a setting just for my local dev environment. Currently I have all images on cloud, and none locally, but when I disable Stateless, the urls are replace by local urls again and thus not available. Is it possible to keep urls with cloud for existing images and only serve new uploads locally?

@kLOsk You have to do some hacking. Remove this filter and image will no longer be synced.
add_filter( 'wp_update_attachment_metadata', array( 'wpCloud\StatelessMedia\Utility', 'add_media' ), 999, 2 );
This is the main entry point for sync to start.

Some Stateless Compatibility could initiate the sync even you remove the above filter. In that case you should look in lib/classes/compatibility dir.
File URL Replacement setting could cause some issue if enabled.
Let us know if this works.

@kLOsk You have to do some hacking. Remove this filter and image will no longer be synced.
add_filter( 'wp_update_attachment_metadata', array( 'wpCloud\StatelessMedia\Utility', 'add_media' ), 999, 2 );
This is the main entry point for sync to start, though there are others.

In which file and on which line is this snippet of code?
add_filter ('wp_update_attachment_metadata', array ('wpCloud \ StatelessMedia \ Utility', 'add_media'), 999, 2);

@barrsofilho wp-content/plugins/wp-stateless/lib/classes/class-bootstrap.php line 224

Not working :/

Looks resolved. Closing.


Fix NullReferenceException when displaying Toast or SnackBar

Description of Change
Now instead of an exception, toast/snackbar wouldn't be shown.
Not perfect, but seems better then the exception.
Maybe there's a better fix with retries or something

Bugs Fixed

Fixes #959

API Changes
None
Behavioral Changes
Toast/snackbar wouldn't be shown in rare cases where previously exception would be thrown.
PR Checklist

[ ] Has tests (if omitted, state reason in description)
[ ] Has samples (if omitted, state reason in description)
[x] Rebased on top of main at time of PR
[x] Changes adhere to coding standard

[ ] Updated documentation

@VladislavAntonyuk, @AndreiMisiukevich, @pictos Could you please take a look at this? Is there a better fix for this issue?

It looks good in terms of code stability, but we do not show the Snackbar.
I suggest to throw custom exception that this page cannot be the "parent" for the Snackbar.
Thoughts?

this page cannot be the "parent" for the Snackbar

The thing is that the page can be "parent" for the Snackbar. This code fails only if we try to show Snackbar at the same time when we change current page. Both pages are fully capable of displaying Snackbar, but when we are in the middle of transitioning between them, GetRenderer() returns null

As described in the issue, you run the Snackbar on page appearing.
Looks like that sometimes the Snackbar Snow method is called before the renderer set the control.

What about other platforms? Can you reproduce it for UWP or iOS?
I would suggest to create some kind of retry policy: if the getRenderer returns null, we can wait for a few seconds and try again.
But the root cause of the issue from my point of view is that OnAppearing calls Snackbar before we actually can get the view

@maxkoshevoi Is this just occur with Shell?

Can you reproduce it for UWP or iOS?

Didn't try to reproduce it on other platforms. My app can be built only for Android as of now. Don't have time to create a new project and test it on UWP (don't have Mac to test it on iOS)

I would suggest to create some kind of retry policy

Updated PR with retry logic instead of just returning. Tested and it works with 50 ms retry.
Forgot that we can use await in platform specific logic too 😄

But the root cause of the issue from my point of view is that OnAppearing calls Snackbar before we actually can get the view

Well, actually, OnAppearing triggers a network request, and if it fails (which happens really quickly if device isn't connected to the internet) toast is displayed. Seems like a valid use of a toast.

Is this just occur with Shell?

I'm not sure about that. What I can say is that it definitely happens is Shell app

When switching between tabs
When Poping page of the stack

@maxkoshevoi because of that I said to wait until we see the issue and discuss it first.
Since this only happens on Shell (did you test on TabbedPage?) and in a very specific moment, navigation I would that's a Shell problem and not our lib.
Shell has some navigations corners that lead into edge cases just like this one, and I don't see value in trying to fix it here, because, maybe, this is a workaround and not a fix.
Also, let's move this discussion to the issue and please can you provide a repro?

@maxkoshevoi can you solve these conflicts?

@pictos @brminnick Why is this retargeted to develop? It's a bugfix that doesn't change an API.

@maxkoshevoi I believe that happens because of the nullable PR, at that time we moved all PRs to target develop

COMMENT EXPLAINING THE PURPOSE OF THIS METHOD

Good point. I'll add it

Can we preserve Return-Type to be void?

@AndreiMisiukevich Can I ask why do you want to preserve it as void? This is internal API, so users won't notice it.
Anyway, ContinueWith won't help you here, since you still need to wait until task completes (otherwise method will return while task is still running).
There are two options to preserve void return type and return when method executed to completion:

Replace await with .Result
Replace Task.Delay with Thread.Sleep

Can we preserve Return-Type to be void?
@AndreiMisiukevich Can you explain why you need to preserve the void return type?

@maxkoshevoi No, do not ever use Thread.Sleep or .Result

@maxkoshevoi No, do not ever use Thread.Sleep or .Result

Yeah, it's bad to use them since they block the thread. But that's the only way to preserve void return type.
Just provided some options to do that =)

If we do need to preserve the void return type, we'll use the .SafeFireAndForget() extension method.

It won't help here since

It doesn't return result of the task (and we need result of GetRendererWithRetries)
It doesn't wait until task completes, so it breaks existing execution flow

Can we preserve Return-Type to be void?

@AndreiMisiukevich Can you explain why you need to preserve the void return type?

I thought it is related to public API

@AndreiMisiukevich Added comment and changed implementation to recursive one.

@pictos can you please take a look again?

@maxkoshevoi thanks for the changes, I'll take a look today night or tomorrow during the day.

@pictos Just a friendly reminder that PR is ready for merge

@pictos It should be possible, but complicated. We would need to create mini-Shell environment with two pages inside our sample app


feat(camera_web): add camera options

Description

Added web camera options used to specify audio and video constraints. These options are going to be used when accessing a user media device with getUserMedia.

Type of Change

[x] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Closing, moved to https://github.com/flutter/plugins/pull/4164.


Noticeable frame drops when resize the sidebar and got 100% CPU usage

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.89.0
OS Version: macOS 14.4.1

Steps to Reproduce:

disable all extensions
Just resize file explorer, You will see that the system is very slow and the CPU usage is up to 100%.

https://github.com/microsoft/vscode/assets/9758711/8a2e60e6-686b-48cc-bf5d-1a3093c8b9fb
Sorry, I can't use vscode's built-in Iusse Reporter to create this issue

Here is my env information

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Can you please follow our performance wiki and update the issue with necessary profiling information
Wiki: Performance Issues (visual studio code is consuming a lot of cpu) ()

I restarted vscode after that, and now I can't reproduce it, and I can't export the profiling information.
There may be a reason: I opened vscode for a long time and did not close it, so it may be a memory leak.
If you are unable to troubleshoot without profiling information, please feel free to close the issue.
If I encounter this situation again next time, I will take the profiling information. Thank you for your investigation


Tx links are broken

Go to stellar.expert (either public or testnet).
Click a link for an operation in the Recent Operations panel.
Link will give you a 404 error.

This is a result of an extra "/" character in the URL right before "tx".
For example: https://stellar.expert/explorer/testnet//tx/5a7b1b4e378ccafa137c680ee45f5103b926c220922bc4df70b26a4b98e9020a

Fixed


Adding summary-always to the PR

Type of change

Enhancement / new feature

Description
Adding summary-always option to be able to upload a summary to the PR every time is called.

/perf

@franvila PR looks good, but I'm assuming your still testing something as its in draft. Feel free to ping for a review when your ready.


fix(breadcrumb): guard against undefined facets

Summary
If a breadcrumb widget gets "its" hierarchical menu added dynamically, there will be a render where getFacetValues returns undefined.
I checked, and all other cases of getFacetValues guard already for its result possibly being undefined.
Also added the common test for optimistic UI for breadcrumb, as it's a related fix.

Result

No error when hierarchical menu for a breadcrumb gets added dynamically

@Haroenv should this guard be also applied to the hierarchical menu as well?

@Haroenv should this guard be also applied to the hierarchical menu as well?

Hierarchical menu, menu, refinement list etc. already have this guard


Compose Multiplatform- build for iOS Target

Add iOS App module
Add ktor and compose multiplatform lib
Move build logic to gradle dir
Remove detekt, firebase
Update settings.gradle.kts
Add androidMain
Add commonmain
Add iosApp
trying to build by adding dependencies
Add configureAndroid
Add ComposeMultiplatformConventionPlugin
Register plugin
Android App Builds Yay!
Use design-system in :android-app
iOS / Common
Add design system to :commonMain
Wanted to add as a module but it's not working
Add design system module taj
Add kotlin-inject lib to module :core:di
Use kotlin-inject instead of hilt
Make date-time module multiplatform
Make :core:coroutines-ext module multiplatform
Make :Core:network multiplatform and use ktor
Ktor sample
Make tripplanner:ui Multiplatform
Make trip-planner:state multiplatform
update trip-planner:ui - multiplatform
update ui, -icons / resources
Create SavedTripsViewModelFactory
Make :state multiplatform
Make searchstop multiplatform
Make timetable multiplatform
Make usualride multiplatform
Make :network api and real multiplatform
Make sandook multiplatform
Using RealSandook directly -temp
Update TitleBar - rebase main
Add HttpClient and TripRequest
Ktor works
update SavedTripsViewModel
Update TimeTableViewModel
update UsualRideViewModel
Add KrailNavHost / Splash Screen
Remove duplicate DateTimeHelper
Fixing compilation errors
DateTime issues
Fix: KMP does not support enum nav type
ViewModel - https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-viewmodel.html#adding-the-common-viewmodel-to-your-project
Ktor Engine - https://ktor.io/docs/client-engines.html#default
Copy text change
Fix icons
Debug saved trips error
DI : Failed attempt - kotlin-inject
DI: Koin to rescue
DI - Providing separate HttpEngine for android / iOS as when using koin for providing object, it does not use the default for the platform
DB: Integrate SQLDelight
Creating Sandook using SqlDelight
Koin- android context can be provided once android-app is inside compsoe-app
kotlin-inject take 2
HttpClient Injection works
FAIL: kotlin-inject DI
DI - Koin Try again
Add linker flag for -lsqlite3
https://github.com/sqldelight/sqldelight/issues/5368#issuecomment-2324975285
https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-ktor-sqldelight.html#add-the-dynamic-linking-flag-for-sqldelight
Update ios app icon
Clean up not required dependencies
Clean up kotlin-inject lib
Update CI for Krail
CI: Add iOS Build
Update CI
Add x code and ruby version

#359  👈 (View in Graphite)
main

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


[WIP] SliverVisibility

Description
Adds the SliverVisibility widget!
Related Issues
Fixes #45182
Tests
SliverVisibility tests - oodles of them!
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I signed the CLA.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] All existing and new tests are passing.
[ ] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[ ] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] No, this is not a breaking change.

Blocked by #45580

No longer blocked by SliverOffstage fix. :)


Adding SerivceFabric Python SDK

Adding python SDK for Service Fabric, version 5.6.130. This is designed to work with Service Fabric, product version 5.6.

Fixing requested formatting

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1147   +/-   ##
=======================================
  Coverage   55.14%   55.14%
=======================================
  Files        2168     2168
  Lines       60461    60461
=======================================
  Hits        33340    33340
  Misses      27121    27121

Continue to review full report at Codecov.

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


[SPARK-38148][SQL] Do not add dynamic partition pruning if there exists static partition pruning

What changes were proposed in this pull request?

Add check in PartitionPruning if the partition has static filter. So we can skip add dynamic partition pruning if there already exists.
Why are the changes needed?

Dynamic partition pruning add a filter as long as the join condition contains partition columns. But if there exists other condition which contains the static partition pruning, it's unnecessary to add an extra dynamic partition pruning.
For example:
CREATE TABLE t1 (c1 int) USING PARQUET PARTITIONED BY (p1 string);
CREATE TABLE t2 (c2 int) USING PARQUET PARTITIONED BY (p2 string);

SELECT * FROM t1 JOIN t2 ON t1.p1 = t2.p2 and t1.p1 = 'a' AND t2.c2 > 0;

Does this PR introduce any user-facing change?

no, only change the plan
How was this patch tested?

Add test in DynamicPartitionPruningSuiteBase

cc @cloud-fan @wangyum @maryannxue

is it similar to https://github.com/apache/spark/pull/34062 ?

cc @cloud-fan

thanks, merging to master!

thank you @cloud-fan !


Minor documentation fixes

This PR fixes a few minor documentation issues:

fix of broken link
fix of typo
fixing of unclosed <div> element
small addition in code sample (autorender.md)
correcting number of auto-render-specific keys.

Codecov Report

Merging #2852 (35557de) into master (aa75213) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2852   +/-   ##
=======================================
  Coverage   93.92%   93.92%
=======================================
  Files          87       87
  Lines        6326     6326
  Branches     1308     1308
=======================================
  Hits         5942     5942
  Misses        354      354
  Partials       30       30

Continue to review full report at Codecov.

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


commented if/else statement is still evaluated in "Replacing If Else Chains with Switch" section

If I don't erase all the if/else statement, the coding won't pass the test.
Even though my answer was right, the commented if/else is still being tested by the program.
I mean something like this :
 /*
  if(val === "bob") {
    answer = "Marley";
  } else if(val === 42) {
    answer = "The Answer";
  } else if(val === 1) {
    answer = "There is no #1";
  } else if(val === 99) {
    answer = "Missed me by this much!";
  } else if(val === 7) {
    answer = "Ate Nine";
  }
  */

You are correct.  Unfortunately our tests can't parse JavaScript to ignore things in comments.  There is a limit to the complexity of our testing system.
Sorry, can't reasonably fix this.
Thanks and Happy Coding!


chore(NODE-6502) Use a python venv wherever we use Python in driver CI

Description
What is changing?
Use scripts from drivers-evergreen-tools instead of using the system python package manager.
Tested against https://github.com/mongodb-labs/drivers-evergreen-tools/pull/545 to ensure there are no regressions in requiring Python 3.8+ syntax.
https://spruce.mongodb.com/version/672e33e060d13d0007e3cdb4/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC
Is there new documentation needed for these changes?
No
What is the motivation for this change?
Some places in Node's CI we rely on the system python/pip, which can lead to compatibility issues when we call drivers-evergreen-tools scripts and broken CI.
Release Highlight

Fill in title or leave empty for no highlight

Double check the following

[x] Ran npm run check:lint script
[x] Self-review completed using the steps outlined here
[x] PR title follows the correct format: type(NODE-xxxx)[!]: description

Example: feat(NODE-1234)!: rewriting everything in coffeescript

[x] Changes are covered by tests
[ ] New TODOs have a related JIRA ticket

I updated and ran again against https://github.com/mongodb-labs/drivers-evergreen-tools/pull/545.
https://spruce.mongodb.com/version/672e580262625300076c1050/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

New build: https://spruce.mongodb.com/version/672e7b7543cf44000751a5cf/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC


Add AppStorage persistence keys for types that are raw representable as Data

AppStorage (UserDefaults) supports persisting, among other types, Int, String and Data.  Further, the library can persist types that are raw representable as Int or String, but doesn’t do the bridging for types that are raw representable as Data.
Having support for this, one can then easily persist any type in AppStorage that is Codable (because Codeable types can be coded to and decoded from Data).  While I think the library could/should add support for persisting Codable types out of the box, if that is not desirable for some reason, clients can work around this easily as long as raw representing Data itself is persistable.
A workaround I have been using in my project is to define a property wrapper (this is preferable to conforming types, esp. those one does not own, to RawRepresentable directly):
import Foundation

@propertyWrapper
public struct RawRepresentableFromCodable<Value: Codable> {
  public var wrappedValue: Value

  public init(wrappedValue: Value) {
    self.wrappedValue = wrappedValue
  }
}

extension RawRepresentableFromCodable: Equatable where Value: Equatable {}

extension RawRepresentableFromCodable: RawRepresentable {
  public init?(rawValue: Data) {
    guard let value = try? JSONDecoder().decode(Value.self, from: rawValue) else {
      return nil
    }
    self = RawRepresentableFromCodable(wrappedValue: value)
  }

  public var rawValue: Data {
    try! JSONEncoder().encode(wrappedValue)
  }
}

and then add add that before @Shared:
@Shared(.appStorage(“someKey”))
@RawRepresentableFromCodable
public var someProperty: SomeCodableType

@AlexKobachiJP Thanks for taking the time to PR this. For now we would like to stick with providing the same APIs on .appStorage as Apple's native @AppStorage, and to our knowledge Apple does not provide such APIs and instead would also require the workaround you post above. Unless we're mistaken, do you agree it's a good idea to remain consistent with Apple here and close this PR for now?

@stephencelis thanks for the review!  If staying close to Apple's implementation is a goal---it does make it easier to switch back if necessary---then not merging this is agreeable.  P.S. It was good to meet you guys at try! Swift Tokyo last month!

Just in case this helps anyone:  Without merging the current PR, the workaround is simply to use String instead of Data as the raw representing type, and one can still put any Codable type into Shared (the use of Base64-encoding just increase storage size vs. raw bytes, but that should not cause concern):
import Foundation

@propertyWrapper
public struct RawRepresentableFromCodable<Value: Codable> {
  public var wrappedValue: Value

  public init(wrappedValue: Value) {
    self.wrappedValue = wrappedValue
  }
}

extension RawRepresentableFromCodable: Equatable where Value: Equatable {}

extension RawRepresentableFromCodable: RawRepresentable {
  public init?(rawValue: String) {
    guard
      let base64EncodedData = rawValue.data(using: .utf8),
      let data = Data(base64Encoded: base64EncodedData),
      let value = try? JSONDecoder().decode(Value.self, from: data)
    else {
      return nil
    }
    self = RawRepresentableFromCodable(wrappedValue: value)
  }

  public var rawValue: String {
    try! JSONEncoder().encode(wrappedValue).base64EncodedString()
  }
}

Nice to meet you too! And thanks for understanding, and sharing the alternative for folks interested.


Lab 4 - Implemented Numeronyms

Created numeronym() and numeronyms() functions. numeronym() takes a string as input and returns a string with the first and last character wrapped around it's length -2. numeronyms() takes a variadic string slice as input and returns a slice of those strings converted to numeronyms.
Fixes #361
Review of colleague's PR #376
Changes proposed in this PR:

Numeronym converter

Oh, huh - I'm not a codeowner.
Will seek to rectify that!

@joel00wood pending branch update, but otherwise good to go


EAGLE-516 Implement application entity service by jdbc

Implement application entity service by jdbc
Implement site entity service by jdbc
Add query/queryWithCond/update method in JDBCMetadataQueryService

https://issues.apache.org/jira/browse/EAGLE-516

Thanks for the contribution.

Anytime!

@r7raul1984 have you finished develop for this ticket?

Yes.

LGTM.


Cannot use withGraphFetched and withGraphJoined in same query

I have a use case where I would like to use withGraphJoined and withGraphFetched in the same query. This does not seem to be possible however as this example shows (PoiModel is a model with two BelongsToOne relations story and type):
nesh> PoiModel.query().withGraphFetched('story').withGraphJoined('type').then()
Promise { <pending> }
knex:query select "pois"."id" as "id", "pois"."name" as "name", "pois"."type_id" as "type_id",
"story"."id" as "story:id", "story"."name" as "story:name",
"type"."id" as "type:id", "type"."organization_id" as "type:organization_id", "type"."name" as "type:name"
from "pois"
left join "stories" as "story" on "story"."id" = "pois"."story_id"
left join "object_types" as "type" on "type"."id" = "pois"."type_id" undefined +2s

nesh>
nesh> PoiModel.query().withGraphJoined('story').withGraphFetched('type').then()
Promise { <pending> }
knex:query select "pois".* from "pois" undefined +13s
knex:query select "object_types".* from "object_types" where "object_types"."id" in (?) undefined +10ms

nesh>

As we can see in the first case the story relation is fetched eagerly even though this was not specified. In the second the story relation is not fetched at all.
The reason for wanting to use withGraphJoined is to be able to filter and sort on a relation, and the reason for wanting to use withGraphFetched in the same query is as to not mess up the number of matching rows for one-to-many relations (retrieved by count(*) OVER() AS full_count)

You can probably replace withGraphJoined by joinRelated.


Comment out 'payload' const to eliminate lint no-unused-vars error

Merged without review per Trion's request in previous PR


Translate a Docker Compose File to Kubernetes Resources

When I run the curl command to install kompose, it tells me the exe is incompatible with the 64 bit version of windows. Do you know how I can fix this?

@kish0620 would you be willing to provide some more information?

the command that you ran
the error message that you saw
the version of Windows you're running
what CPU architecture your PC uses

That will help us work out how to revise that page.
/triage needs-information
/language en
/sig cli


Changed the query-bodleian URI to a real manifest.

Changed the URI from a drag-and-drop microformated link that 30x redirects, to the manifest that it redirects to.

thanks, I think now that it doesn't have a query string we could probably comment this one however, as otherwise people will be hitting your server every time they run a test for no good reason :-)

Whatever you prefer. It'll hit a Varnish cache first, so it's not going to put any heavy strain on our server, but yeah, it might be best.


Can not build Tesseract with SW and Cmake.

Environment

Tesseract Version:  Tesseract 4.1.1
Commit Number:
Platform: Window 10 64bit

Current Behavior:
I can not build Tesseract with SW and Cmake.
I had download SW client and save it at "D:\SW" then add to Path
This is my SW information
sw.client.sw version 1.0.0
git revision df126bc667375de822ef38bb4ba932f4c3801912
assembled on 10.02.2020 09:08:00 SE Asia Standard Time
I had download Leptonica-1.79.0 and Tesseract-4.1.1
Then I built Leptonica with SW and Cmake, generated and Build the solution in Visual Studio 2017, it's works well.
But when I build Tesseract, things don't go so well.
I got an error:
Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
Configuring tesseract version 4.1.1...

See also "D:/TESSERACT/tesseract-4.1.1/build/CMakeFiles/CMakeOutput.log".
See also "D:/TESSERACT/tesseract-4.1.1/build/CMakeFiles/CMakeError.log".
I turn off the CPPAN_BUILD (its default is ON) but I still got that problem and I don't know how to fix it. Last time, I build Leptonica-1.78.0 and Tesseract-4.1.0 it seems like there is no such file as cppan,cmake. This is the log file attached
CMakeError.log
CMakeOutput.log
Expected Behavior:
Build tesseract-4.1.1 solution.
Suggested Fix:

Shouldnt Build with sw [SW_BUILD]: be on?

@egorpugin any suggestions?

Hi,
In general you should not build lept separately.
When you build tess, sw downloads and builds lept package.
If you need to use tess in your app, check out this simple example.
https://github.com/SoftwareNetwork/sw/blob/master/test/integrations/cmake/tess/CMakeLists.txt

If you still need to build tess with SW, you must pass -DSW_BUILD=1 to cmake.
Try it, feel free to ask further.

@egorpugin I tried it and its work well.  Many thank ^^

What is your compiler and version? Also try to update sw sw --self-upgrade before your actions.

I use Visual Studio 16.4 (2019), and CMake 3.15.3 (that is bundled with CLion). The build works for the master branch, but since version 5 is still alpha I am interested in building the 4.1 branch. That one fails (master builds without any issues).

I did not actually support 4.1.
Try to find that line and replace _l with _lib.
Or show me that place, I'll try to help.

I do not see _l in 4.1, only in 4.0.
Replace it with _slib.


Run example.py Error:  Failed to modify the attention method of LlamaForCausalLM

Hello. I just simplily run the example.py and met the error in the "=====SelfExtend using Torch======" part:
Traceback (most recent call last):
  File "./LongLM/example.py", line 112, in <module>
    SelfExtend.apply(model, group_size, window_size, enable_flash_attention=False)
  File "./LongLM/SelfExtend.py", line 123, in apply
    raise Exception(f"Failed to modify the attention method of {arch_name}")
Exception: Failed to modify the attention method of LlamaForCausalLM

transformers=4.41, flash_attn=2.5.8
Meanwhile, I have noticed the similar problem https://github.com/datamllab/LongLM/issues/31, So I tried setting the attention not be flash attention in the same time:
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype=torch.bfloat16, use_flash_attention_2=False)
SelfExtend.apply(model, group_size, window_size, enable_flash_attention=False)
I printed the model, which shows it's not the flash attention:
  (model): LlamaModel(
    (embed_tokens): Embedding(32000, 4096)
    (layers): ModuleList(
      (0-31): 32 x LlamaDecoderLayer(
        (self_attn): LlamaSdpaAttention(
          (q_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (k_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (v_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (o_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (rotary_emb): LlamaRotaryEmbedding()
        )
        (mlp): LlamaMLP(
          (gate_proj): Linear(in_features=4096, out_features=11008, bias=False)
          (up_proj): Linear(in_features=4096, out_features=11008, bias=False)
          (down_proj): Linear(in_features=11008, out_features=4096, bias=False)
          (act_fn): SiLU()
        )
        (input_layernorm): LlamaRMSNorm()
        (post_attention_layernorm): LlamaRMSNorm()
      )
    )
    (norm): LlamaRMSNorm()
  )
  (lm_head): Linear(in_features=4096, out_features=32000, bias=False)
)

So where is the problem?

This problem may come from: in transfromers==4.41, the default Attention module for Llama models are changed from LlamaAttention / LlamaFlashAttention2 to LlamaSdapAttention. Hence, the forward function modification will fail . You may modify these lines: line1, line2 to fix this problem. But we are not sure whether other parts work well with transfromers==4.41. You'd better use transformers==4.38.2 or transformers==4.40.

Seems good. Thanks. I will try it again later.


Add default connect options

Thanks for the lib mate! This just defaults connection options to localhost:6600 if none are supplied.

published as 1.3.0


refactor(wasm): consider replacing lol_alloc with dlmalloc-rs

We should consider replacing lol_alloc with dlmalloc-rs.
I would expect some benefits:

dlmalloc-rs is used by rust std itself as default allocator for wasm target, so we can expect better support and less bugs
might have better performance

Possible downsides:

might increase size of the executor and smart-contracts

Measured impact on changing allocator for default executor.
TLDR: slight increase in size, no noticeable difference in performance.
So the only benefit is stability (due to inclusion is rust std).
@mversic should i open PR or it doesn't wroth it?
Before:
476K    ./configs/swarm/executor.wasm
After:
480K    ./configs/swarm/executor.wasm
Delta: +0.8%

Before:
validate_blocks/validate_blocks
time:   [9.5776 s 9.7572 s 9.9737 s]
After:
validate_blocks/validate_blocks
time:   [9.4780 s 9.7702 s 10.079 s]
change: [-3.4595% +0.1333% +4.0266%] (p = 0.95 > 0.10)
No change in performance detected.

Heap allocations as well doesn't show significant difference.

Before:

After:

Yes, you can open a PR


[BUG] when istart roblox on bloxtrap It asks me to run as administrator and when I run it as administrator Roblox freezes after a few seconds or a minute

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[X] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
8.1
What problem did you encounter?
****help pls
Bloxstrap Log
8.1

Did you set it to run as Administrator in Roblox's compatibility settings?


[CORE] Investigate ways to reduce CPU usage

Investigate how we can remove the while (true) { do_bbs_work(); } with something more event driven, so that we don't chew up 100% of the CPU.
Initial thoughts are:

Perform work on a timer that runs at a certain user configurable interval, such as 100hz. Lower number uses less CPU, higher number provides more responsiveness
Suspend background activities entirely when no clients are connected, allowing the system to go down to 0% CPU. Might cause some issues with games like Tele-Arena that use the timers to respawn enemies.

Closed by #353


Test building of docker image in travis

To avoid errors in Dockerfile it should be tested that it successfully builds.

Closed by #89


Change position of Git Fugitive window

When I used Fugitive for the last time the :Gstatus window would open at the top. In Spf13 Vim the window opens at the bottom.
How to tell Fugitive to open the window at the top instead of the bottom?

Just put 'set splitbelow' in your rc file ;)

And can I put Gstatus window on vary bottom when I call it? I always split 3 winodws (top left, top right and bottom). If I call Gstatus on top left window, it would split against to top left window (1).  I want it be locate to vary bottom(2) no matter which window I was in.
(1) Call Gstatus on top left window

(2) What I want

+1 I would also like to have this functionality in the plugin.
As a work around you can add some mapping that moves the window all the way down:
map gst :GstJ


Update pypi.python.org URL to pypi.org

For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html

Pull Request Test Coverage Report for Build 694

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.109%

Totals

Change from base Build 689:
0.0%

Covered Lines:
2717

Relevant Lines:
2827

💛  - Coveralls

Pull Request Test Coverage Report for Build 694

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.109%

Totals

Change from base Build 689:
0.0%

Covered Lines:
2717

Relevant Lines:
2827

💛  - Coveralls

Thanks!


Staging - Request Entity Too Large

A large file gets an entity to large during upload (see image)

Looks like this is working now.


why does this happen ? install error....

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9015550-why-does-this-happen-install-error?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github).

i install this at intel edison

Unfortunately, we don't have prebuild binaries for x86 Linux.
You have two ways to solve this problem:

Install full building environment (read in node-gyp readme)
Contribute to v8-debug and v8-profiler projects to add x86 Linux prebuild binaries.
Informative tutorial:
http://cylonjs.com/blog/2014/11/19/creating-multiplatform-precompiled-binaries-for-node-modules/#.VHM_3dKsVI0

could you explain more easily ?? it is so difficult to me...

I got the same problem


Don't depend on typescript protocol.d.ts

For TS 5.0, we're making some major build changes and package cleanups stemming from our conversion from namespaces to modules. protocol.d.ts is one file I'm trying to eliminate, as it's tricky to produce in the new build. See also:

https://github.com/microsoft/TypeScript/issues/50758
https://github.com/microsoft/TypeScript/pull/51026
https://github.com/microsoft/TypeScript/issues/49332

Rather than using this a d.ts file, we can depend on the same namespace as exported by tsserverlibrary instead, a file that is definitely not going away.
This actually reveals a couple of interesting things:

The ambient protocol namespace was being used in a couple places where it shouldn't have been.
Two types needed to be reexported via the protocol, implying that our protocol is not self-contained. That's something to address on the TS side, but nothing new.

Thank you!