[Feature Request] Add SearchView support

Describe the issue
Add easy UI support for SearchView, similar to the usage with the AndroidX Toolbar. Maybe adding extensions for TopAppBar(Material) and SmallTopAppBar(Material3). Ideally handle the animation and callbacks for setOnActionExpandListener and setOnQueryTextListener.

This feature request might be better suited for Material to add a compose version of SearchView. You could try file it at goo.gle/compose-feedback. We don't have any plans to add a SearchView wrapper at this time.

I have created a bug here: https://issuetracker.google.com/issues/245736831.


Projects API missing fields

When adding projects via API there are a number of fields that are missing:
Organization
Priority
Project state
Project type
Percentage done
is deleted

fields have not yest been added. will be done as part of 1.2


Readme Low level messaging: bus connection example error

The docs talk about "dbus.createClient(options)", but the example shows "dbus.createConnection()."

oops. Do you know which one is correct ( don't have time to read through code right now )

Any improvements to documentations are very much welcome, if you find time adding something please submit PR

Yeah, I don't know which is correct! I'm trying some experiments now. I'm having some issues getting DBus to play nicely in all of a handful of configurations, so I was trying some changes. I think createConnection() is right.

they both are correct, that was probably not a good choice of names
https://github.com/sidorares/node-dbus/blob/master/index.js#L129-L132
'connection' is for low level messaging - conn.message({...}) and conn.on('message, ...)'
'client' handles RPC-style calls by remembering association from serial/replySerial to callback

and you can access connection from a client:
var bus = require('dbus-native').systemBus(); // "client"
bus.connection.message({ body: 'hello', signature: 's'});

Heh. I find this all very confusing. I'm using DBus to communicate between a C++ app and my node.js app, on both OS X and Debian. During development, I want to be able to launch one or the other, or both, in any order, and I want them to quickly connect or abandon a connection attempt and connect later. I wish I could do this without dbus-daemon running at all, but that doesn't seem to be the case.

this module allows to communicate directly - you could pretend that you are daemon and point C++ app to your node app by setting DBUS_SESSION_BUS_ADDRESS

But it seems I have to create a socket somewhere.


Augury makes Firefox really slow

Augury version: 1.16 (my own build since it does not have a Firefox port yet)
Angular version (required): 5.2.9
Date: 23 April 2018
OS: Ubuntu 16.04
Demo test application:

I tried to reproduce the issue with an open source app but I failed. It only reproduces with the proprietary app I'm working on :(

Description of issue:

Steps to reproduce:
Open dev tools, jump to Augury tab and navigate the component tree.
The app slows down really badly.
Additional details:
Here is the performance snapshot https://perf-html.io/public/99abd0e033222a20fb85d5d6a0cc9ce562bef45b/calltree/?implementation=js&thread=0&threadOrder=0-2-1&v=3

Can you build without uglify (like npm run build:dev:firefox), so we can see the function names in your performance chart?

It does not seem like it is a really big app. Maybe some other extension is messing with Augury somehow. Check out the new profile, hope it has better data.

git log
9f8148e tag version (santiago-elustondo, 11 days ago)

I think I found a little more info. It seems to allocate A LOT of data. My Firefox profile with one tab at about:debugging and another one at my app localhost:4200 and 41 enabled WebExtensions takes around 400-500 MB shared between 1 main process and 2 Web Content ones.
Once I enable Augury the RAM slowly goes up and up until Firefox completely freezes. At some point both the content and the main process were well above 3G!!! I tried to record the memory with the about:memory tool in Firefox and I recorded it when both main and content processes were above 1G.
Here is the important part:

Here is the full image:

You can load my memory report in your about:memory page.
memory-report.json.gz
I hope this is useful information for you :)

Just a quick analysis of the first profile (the second seems to have data missing).
The extension seems to message multiple times per frame and have a heavy computation in response to the message:

GC is an issue, maybe caused by the many messages and adds overhead for collection while the heap still keeps growing.

Thank you for looking into this, @digitarald! Please keep in mind that I can run a build from a branch so if you make one with lots of consolo.log to confirm/infirm this hipotesys

Hmmmm.... GC? The same app really slows down debugger.html by allocating a lot of RAM. Maybe unrelated, but worth mentioning https://github.com/devtools-html/debugger.html/issues/6094

Hey guys, thanks for the info.
I can't say I've been able to reproduce this memory leak. (I'm on Chrome)
I've been using the following methods:
In the first instance, I am creating a large component tree all at once, taking heap snapshots before and after. As you can see, the memory allocation doubles. (Here Augury is disabled)

Then here's the same, but with Augury enabled. The size of memory is only very slightly larger in the application's execution context, and in Augury's front end context (dev tools tab) it is 25MB and grows modestly with the added component tree.
In a second test I set a timeout to update the component tree (albeit a smaller one) multiple times per second (sending many messages per second to the front end). Here again I see an increase over time, but nothing radical. I suppose that if left to continue for long enough, it could possibly grow quite large.

Do you think I'm on the right track here?

Not sure if it's the right path. I was unable to fix our app on Chrome. I will comment here if our app breaks Augury on Chrome or not.
Did you do a similar test in Firefox also where the bug was originally reported?

@digitarald, where do you see the frequency of messaging?

@digitarald, where are you seeing the frequency of messaging and the computational load attached to each message? Also, where do you see the GC problem?

@andrewthauer can I help you in any way to reproduce the issue?

@andreicristianpetcu, that would be great.
To be honest, I'm not sure I understand the issue as described.
What are you reading from the perf.html log?
Any idea how we might reproduce this?

To offer some context, we are aware that certain component dependencies (notably Router) will cause Augury to produce very large serialized messages representing that component's state when that component is selected for inspection. Even then, however, I do not experience significant lag on my end. Do you think this might be related?

@andreicristianpetcu - By any chance is your app using ngrx or redux and do you have the Redux DevTools installed in FF?

ngrx + Redux DevTools

@andreicristianpetcu - We have a working theory that somehow the combination of the Augury + Redux DevTools seems to exhibit this behaviour in both Chrome & Firefox (although it's more obvious in FF). In my case, if I disable the Redux DevTools the problem goes away. It could be related to how  both add-ons post messages and some sort of conflict with zone.js. Further investigation will be required.

@santiago-elustondo I looked today before leaving work at some memory snapshots (I don't have the source code at home). I did not want to make any statement until I understood the cause completely but I also saw some big memory objects related to zone.js.
I will try to disable Redux DevTools on Monday to see how that goes.
Thank you so much for persisting in trying to understand this issue. I really appreciate it.

@andreicristianpetcu, can you try the latest Canary Build (version 1.17.2) ?

@santiago-elustondo I will test it tomorrow. I guess you want me to test the cannary build on Firefox, right?

Yeah, you could just build the dev branch for Firefox (Canary is always up to date with the dev branch).

Hey, @andreicristianpetcu
Official 1.18.0 has been released to FireFox add-on store, bringing it up to date with the Chrome canary.
Can you tell me if the problem persists?

FYI, the Firefox add-on is still not fully working (does not update properly or show component states), because of a CSP issue we are currently working through.
The slowness (and freezing) problem due to messaging short-circuiting seems resolved on my end, however.

@santiago-elustondo  sorry I did not have time to re-test :( I was really busy at work. I will re-test a week from now since I have a week off. If it still happens I will try to provide more info, if not.... well... yay :D Hope the fix worked for our app.

Assuming fixed for everyone.
Please reopen if this issue persists.

Sorry for the radio silence. It is indeed closed. Thank you!


apperantly sql semicolon delimeter is kind of broken atm

good time of the day,
so after 0.3.2 I had issues with same sql request files which worked fine with 0.3.0
for example this query
create table testing.migration
(
    `app_id`     Int16,
    `created_at` DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`        String CODEC (ZSTD(22)),
    `user_level` Nullable(Int64) CODEC (Delta(2), ZSTD(22)),
    `session_id` Nullable(String) CODEC (ZSTD(22)),
    uid_old      Nullable(String) CODEC (ZSTD(22)),
    id           Int64,
    level_old    Nullable(Int64),
    social       Nullable(String) CODEC (ZSTD(22))
)
    ENGINE = MergeTree()
        PARTITION BY toYYYYMM(created_at)
        PRIMARY KEY app_id
        ORDER BY (app_id, created_at)
        SETTINGS index_granularity = 8192;

create table testing.refund
(
    `app_id`       Int16,
    `created_at`   DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`          String CODEC (ZSTD(22)),
    transaction_id Nullable(String) CODEC (ZSTD(22)),
    id             Int64
)
    ENGINE = MergeTree()
        PARTITION BY toYYYYMM(created_at)
        PRIMARY KEY app_id
        ORDER BY (app_id, created_at)
        SETTINGS index_granularity = 8192;

separates like this for some reason
create table testing.migration         --that on is fine
(
    `app_id`     Int16,
    `created_at` DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`        String CODEC (ZSTD(22)),
    `user_level` Nullable(Int64) CODEC (Delta(2), ZSTD(22)),
    `session_id` Nullable(String) CODEC (ZSTD(22)),
    uid_old      Nullable(String) CODEC (ZSTD(22)),
    id           Int64,
    level_old    Nullable(Int64),
    social       Nullable(String) CODEC (ZSTD(22))
)
    ENGINE = MergeTree()
        PARTITION BY toYYYYMM(created_at)
        PRIMARY KEY app_id
        ORDER BY (app_id, created_at)
        SETTINGS index_granularity = 8192;

create table testing.refund
(
    `app_id`       Int16,
    `created_at`   DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`          String CODEC (ZSTD(22)),
    transaction_id Nullable(Strin   --this one is missing some if the lines|

anyways, please ignore this if you know its on my end
ty for reading

@Advencher I have added 9b40e4e you example to test - it looks like everything is ok.
But I have some issues with clickhouse itself - this is line is pretty strange user_level Nullable(Int64) CODEC (Delta(2), ZSTD(22)),, because it causes error Value of type Nullable(Int64) in memory is not of fixed size... So it's better to check.
Anyway, I suggest you to update to latest version 0.3.3 and if error still occurs send me logs, because I have added a bit more logs during execution migrations.

Thank you for responding
I will check out everything you pointed out
Have a good NY
On Tue, 3 Jan 2023, 19:23 Aleh Strakachuk, @.***> wrote:

@Advencher https://github.com/Advencher I have added 9b40e4e
https://github.com/zifter/clickhouse-migrations/commit/9b40e4e27f238bc160356d620afc4c9dc0fd0ba1
you example to test - it looks like everything is ok.
But I have some issues with clickhouse itself - this is line is pretty
strange user_level Nullable(Int64) CODEC (Delta(2), ZSTD(22)),, because
it causes error Value of type Nullable(Int64) in memory is not of fixed
size... So it's better to check.
Anyway, I suggest you to update to latest version 0.3.3 and if error still
occurs send me logs, because I have added a bit more logs during execution
migrations.
—
Reply to this email directly, view it on GitHub
https://github.com/zifter/clickhouse-migrations/issues/15#issuecomment-1369825878,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIYILFX6IJDLLS35HQIPU3WQQY5BANCNFSM6AAAAAATLFVYG4
.
You are receiving this because you were mentioned.Message ID:
@.***>


[Bug]: Upgrade EKS 1.27 AMIs

MCP ticket was sent to me- cc'ed on them. A few ec2 instances in various venues are using an AMI that will be deprecated soon (aml2-eks-1-27) . We must upgrade to a new blessed EKS AMI (aml2-eks-1-[28-30]).

venue
ec2 ID

Unity-SIPS-test
i-018a5add1cecc7ad3

Unity-SIPS-test
i-056ce42ad3f1e1c81

Unity-SIPS-test
i-0f88f5f3d289dc4a7

Unity-SIPS-test
i-0fb1b7e224bd240c7

Unity-Venue-Dev
i-05e472ad97c33dea9

Unity-Venue-Dev
i-04a3da8237b7d76ac

Unity-Venue-Dev
i-06383b7f7c6e6e216

Unity-Venue-Dev
i-065ec0b364e65f731

Unity-Venue-Test
i-02f5805ba656be245

Unity-Venue-Test
i-01d05cf95b94dc163

Unity-Venue-Test
i-02fe69385f4719393

Unity-Venue-Test
i-0386b5e1f2afce5d3

Unity-Venue-Dev and Unity-Venue-Test brought up to EKS 1.30.
Unity-SIPS-test resources destroyed.


Synonyms ranked higher than exact word

Describe the bug
I have the synonyms pairs:
{
"hop" : ["jump"],
"jump" : ["hop"],
}

ranking rules:
"rankingRules": [
            "exactness",
            "words",
            "typo",
            "proximity",
            "attribute",
            "sort",
        ]

Whenever I search for hop I see all results for jump  before results for hop even though exactness should outrank the synonym. Is this the expected behavior? If so: Is it possible to get the exact word to outrank its synonyms?
Meilisearch version:
meilisearch-http 0.30.5

Hi @jinyus,
Thanks for the bug report, I could indeed reproduce the issue.
It's a mistake that a synonym is often treated as equally relevant to its original word. And it can also be fixed, although it won't be a trivial change. We're going to do a lot of deep work on the search algorithms in the coming weeks and months, and will keep this bug in mind in the process :-)


[Simple AA in NewDot] Next Steps for approver are incorrect when Advanced Approval is enabled

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: N/A
Reproducible in staging?: Y
Reproducible in production?: Y
E/E Issue: https://github.com/Expensify/Expensify/issues/393839
Issue reported by: @garrettmknight
Slack conversation: N/A
Action Performed:

Create a Control workspace in OldDot
Set an approver that isn't the workspace owner
Have an employee that's not the approver or admin submit an expense to the workspace chat in NewDot
Open the report as the approver in NewDot

Note: After approving, the "waiting for admin to pay" next steps also may be off
Expected Result:
Next Steps when the report is awaiting the approver's approval should read:

If you're the approver: Waiting on You to approve expense(s).
If you're not the approver: Waiting on Approver Name to approve expense(s).

Actual Result:
Next steps read:
Waiting on Workspace Owner to pay expense(s).
Workaround:
None
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos

View all open jobs on GitHub
Issue OwnerCurrent Issue Owner: @aldo-expensify

waiting for an engineer to pick this up

I'm trying to reproduce this, but I get slightly different results... Both, approver and the submitter, see the following:

Waiting for<EMAIL_ADDRESS>to approve expense(s).
The approver doesn't see the variation Waiting on You to approve expense(s)., so I guess that is something we want to fix?

I see that here we calculate the email we will show in Waiting for <email> to approve expense(s).:
https://github.com/Expensify/App/blob/6cb1038e5cbb33ace58f4e27a7bdd2efeb13e8b6/src/libs/NextStepUtils.ts#L63-L74
I don't see any logic there trying to return You if you are the approver... so I guess this was really never implemented like that

@garrettmknight is this still reproducible?

Looks like this is waiting on the approver now which is good, but I also think it should use the 'you' logic when viewed by the approver:

but I also think it should use the 'you' logic when viewed by the approver:

Ok!, I'll investigate using You then

@aldo-expensify any luck from last week?

No luck last week, but I'm going to work on it now.

I have a draft PR here https://github.com/Expensify/App/pull/49315, I'll make it read for review asap

@garrettmknight I have the following setup:

Control policy with an approver that is not an admin/owner and an employee. The approver is the default approver (advanced approval is off)
I submitted a report, which was approved and now it is pending to be paid

From the approver perspective, the next step shows:

From the policy owner's perspective, the next step shows:

This is wrong, right? The policy owner is the one that can pay, but the approver's email appears in the next step

Made the App https://github.com/Expensify/App/pull/49315 ready for review. The PR handles showing You in the next step, but it doesn't correct showing the right email when waiting for payment. I'll correct that last part in another PR (I think the bug is in the backend).

The report.managerID remains being the approver once the report is approved. Shouldn't have the report.managerID to be the policy owner once the report has been approved?

cc @marcochavezf  @Beamanator on https://github.com/Expensify/App/issues/47933#issuecomment-2354201864 and https://github.com/Expensify/App/issues/47933#issuecomment-2354271307 since you may know what is the right behaviour.

No longer a hot pick since aldo is working on it

Honestly that's a great question, I'm not tooo too familiar with "who can pay / reimburse" reports 🙃 Happy to bring this to slack to get it clarified if you'd like!

I'll bring it to slack then. There is definitely some inconsistency. The App shows the pay button only for the policy owner, but the "next step message" says that the approver is the one that has to pay.

Yepppp I feel like admins and owner usually can pay but I’m not 100% sure
when / where
On Tue, Sep 17, 2024 at 2:31 PM Aldo Canepa Garay @.***>
wrote:

Honestly that's a great question, I'm not tooo too familiar with "who can
pay / reimburse" reports 🙃 Happy to bring this to slack to get it
clarified if you'd like!
I'll bring it to slack then. There is definitely some inconsistency. The
App shows the pay button only for the policy owner, but the "next step
message" says that the approver is the one that has to pay.
—
Reply to this email directly, view it on GitHub
https://github.com/Expensify/App/issues/47933#issuecomment-2356865227,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5UTP5I6EO2S5ITZL7WCUTZXCGRFAVCNFSM6AAAAABNAP4VKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJWHA3DKMRSG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Asking here: https://expensify.slack.com/archives/C06ML6X0W9L/p1726614213444269?thread_ts=1726494273.889699&cid=C06ML6X0W9L

Changing to Daily, I'll be working on fixing the "payer" shown in the next step message.

The payer account for the next step message is calculated here: https://github.com/Expensify/Web-Expensify/blob/0b0578f71ff37e3324ae7163425da922d53d8f4c/lib/Report/NextStep.php#L856
Under this setup, we haven't added a bank account, so the "policy's reimburser" is not found, so we fallback to policyReimburserOrAdminEmail.
Maybe it is the frontend that needs fixing in this case and we should be showing the "Pay" button for the approver AND the policy owner.

Updating the payer in the next step message seems to have been done here already: https://github.com/Expensify/Web-Expensify/pull/43483
This is the App issue for it https://github.com/Expensify/App/issues/47278.
Considering that, I think there is nothing left to do here besides handling the payment for:
@ishpaul777

Payouts due:

[ ] Contributor+: $250 @ishpaul777 for internal PR review (Upwork)

Paid!


Enrich PATH of networkmanager dispatcher

Issue description
I don't mean to spam the nix community (after irc and this post https://groups.google.com/forum/#!topic/nix-devel/lvRw1HF8i34 sorry), it's just that I wanted to ping maintainers @domenkozar @Phreedom  @rickynils  @obadz and don't know how to do on other channels.
My goal is to enrich the PATH environment variable of the transient nm-dispatcher service (which is empty here on nixos-unstable: nixos-option systemd.services."nm-dispatcher".path) with at least coreutils/iproute paths (else it makes sharing hooks between other distrib hard since I would have  to replace ip calls by ${pkgs.iproute}/bin/ip or some related hack)
I don't know if I should add a path to the networkmanager service that oculd be inherited somehow by nm-dispatcher and what are the relations between dbus/systemd or if I should patch directly the "Network Manager Script Dispatcher Service" ?
Technical details

system: "x86_64-linux"
host os: Linux 4.16.0, NixOS, 18.09.git.ba64042 (Jellyfish)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.0
nixpkgs: /home/teto/nixpkgs

How do you intend to share these "hooks"? Do you intend to install them system-wide? Or should users be able to install them themselves?
In case of the former, you would have to use Nix on NixOS. Then you have the possibility to make the substitution, or to extend $PATH. In case of the latter, extending $PATH would be the only solution.

So I use this
    dispatcherScripts = [
      {
        source = hookUp;
        type = "up";
      }
      {
        source = hookDown;
        type = "down";
      }
    ];

with hookUp = ./myHook.sh since source. I don't mind copy/pasting 4/5 lines hooks and modifying them but as they grow in size it's a bother. I suppose I could rewrite them with
hook.sh:
IP=${IP:-ip}
$IP route add .....

and then do
    dispatcherScripts = [
      {
        source = writeScript hook.sh ''IP=${pkgs.iproute}/bin/ip'' + builtins.readfile ./raw_hook.sh;
        type = "up";
      }
    ];

but it seems convoluted to access a binary that your hooks are very likely to call.

After lurking the irc channel, I successively discovered systemctl edit and systemctl cat which lead me to kinda understand the nixos systemd stuff using overrides (should definitely be in the doc). I fixed my problem with: https://github.com/NixOS/nixpkgs/pull/39142


churn can't establish a connection between two machines on the same non-hairpinning NAT

Churn favours reflexive candidates but when two machines are on the same network and that network is fronted by a non-hairpinning NAT, a connection cannot be established.
Mostly an issue for people running multiple uProxy instances on the same machine if they're behind such a NAT; note, this does not describe most of our desktops.

Related:
https://github.com/uProxy/uproxy/issues/1255
If there is a simple fix for this, I'd like to do it -- this may break uProxy in easy-to-forget ways for developers.

Note that this does describe our network lab, unfortunately, making it hard to run some tests, e.g. throughput under high latency.

Note that this does describe our network lab, unfortunately, making it hard to run some tests, e.g. throughput under high latency.

I don't understand.  There shouldn't be any hairpinning when connecting between the two machines in the test lab.

Quite right. I just ran copypaste SOCKS on the lab without issue -- what is an issue is two instances on the same machine. Anyway, I dropped the priority to P2.

We expect this to be fixed with support for multiple local candidates:
https://github.com/uProxy/uproxy/issues/1255

No longer true, thanks to holographic ICE.


[1.8.9] only works with CraftTweaker version 1.8.8-3.0.2

I can't get ModTweaker2-1.0.0 to work with any other version of CraftTweaker, only 1.8.8-3.0.2
CraftTweaker-Customized-1.8.9-3.0.5 crashes on load, the others aren't detected by ModTweaker.

Sorry, we are skipping to 1.9 :)

We are actually skipping to 1.9.4 :P
On Jun 13, 2016 1:49 PM, "Yulife"<EMAIL_ADDRESS>wrote:

Closed #325 https://github.com/jaredlll08/ModTweaker2/issues/325.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/ModTweaker2/issues/325#event-690318438,
or mute the thread
https://github.com/notifications/unsubscribe/AFS9xdLxSOebDfXFzaADS6zLnPyfTXlhks5qLUPmgaJpZM4Io9Vl
.

Skipping you say? I prefer walking, but meh, to each his own. :P


Quick question

One thing that I'm unclear about right now while this is still in Preview mode.
It appears that there are two basic steps to this entire configuration.
Step 1 is to create the Windows Virtual Desktop tenant from Powershell.  It appears that you must use an Azure AD account that does not have Multi Factor Authentication assigned to it.  I have created my WVD tenant with a non MFA account.
Step 2 is to create your VM Host Pool from the Azure Portal.   I did this but I used a different account (not the one that I used to create the tenant).  When I created the host pool successfully and then tried logging into the WVD with the Remote Desktop Web Client, it told me that I didn't have any services yet.
So my question is when I create the host pool in the Azure Portal, do I need to be logged into the Azure Portal with the same user account that created the tenant from Powershell?

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

ID: d2eeca14-80ef-c0b4-2719-80ceb286ba3d
Version Independent ID: b7d3df23-3158-2807-eecc-73e7230c2033
Content: What is Windows Virtual Desktop Preview?  - Azure
Content Source: articles/virtual-desktop/overview.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@jpsebasti Hi, thank you for the feedback. May I know which document you are referring to?

This one first but in the comments is a reference to a second one that is more complete:
First I'm following the tutorials here:
https://docs.microsoft.com/en-us/azure/virtual-desktop/overview
Then I referenced this one as the first comment in the above document points to this document as being more complete:
https://techcommunity.microsoft.com/t5/Windows-IT-Pro-Blog/Getting-started-with-Windows-Virtual-Desktop/ba-p/391054
Can you answer my original question?  Do I need to deploy the VM Host Pool with the same account that I used to create the Windows Virtual Desktop Tenant?

@Heidilohr @ChristianMontoya Can either of you please confirm on this and whether we should have this information added in this document: https://techcommunity.microsoft.com/t5/Windows-IT-Pro-Blog/Getting-started-with-Windows-Virtual-Desktop/ba-p/391054
Thanks :)

No, these do not need to be the same user. You must login to Azure with an account that can create resources, but then you provide the credentials for the Windows Virtual Desktop user (or service principal) that you assigned.

@jpsebasti Hope that helped answer your question. Let me know.

@jpsebasti Hope that helped answer your question. Let me know.

Yes thank you that answered the question.  I've successfully deployed the VDI

@jpsebasti Thanks for the update.
We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.


First draft for automatic AUR PKGBUILD generation

Closes #86.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Thanks for the PR, I'll try to have a look soon. Regarding your question about the SSH key, I will set a new GH actions secret for that. Unfortunately secrets are not populated on PR runs from forks, will need to see how we handle that - probably I'll review, merge your PR and then make another myself to take care of the SSH/secrets part.


Look up table object to get electric circuits parameters for current operating point

Hello all,
The idea is to implement a new object look up table (LUT) that can store some eletrical parameters (such as phase resistance, magnetizing inductances, flux linkage etc.) at specific operating points and then be reload to calculate parameters for other operating points. The electrical parameters are then used to solve the electric equivalent circuit for the input operating point, defined by current/voltage/electrical frequency and temperatures of the different machine components (stator/rotor cores, magnets, windings etc.)
A new abstract class LUT have been implemented in PR #464 which contains stator resistance and reference temperatures at which parameters are pre calculated that are common to PMSM and SCIM. This LUT class is not usable in itself because the rest of the parameters depend on machine type.
Therefore LUT class has two children with respect to the new operating points objects (cf issue #465 ):

For PMSM, child class LUTdq contains Phi_wind at stator side for a grid Id/Iq (including Id=Iq=0) and interpolate within the grid to get Phid/Phiq and Ld/Lq. It also contains magnet flux linkage and other parameters such as magnet temperature to enable for temperature effect afterwards. LUTdq is for example used to calculate MTPA ( cf issue #467 ) or current harmonics due to PWM (cf issue #372), in validation case test_EEC_ELUT_PMSM.py.

For SCIM, child class LUTslip contains Phi_wind at stator side for several level of stator currents at slip=0 to calculate magnetizing inductance function of saturation. The magnetizing inductance function of current can be only enforced for the moment, however it could be also calculated with MagFEMM such as it was done in EEC_SCIM (cf issue https://github.com/Eomys/pyleecan/issues/165). The method solve() of EEC_SCIM has been improved to include non-linearity of magnetizing inductance. The validation case for LUTslip is EEC_ELUT_SCIM.py and is still in progress.

Best regards,
Emile

Hello @EmileDvs
as you may know I would like to merge my LUT. If it is compliant, we will see :-)
Now the main differences are the following.

Your LUT is not reproducable in the sence that (at least some of the) simulation paramters and the machine are unknown. My 'MagLUT' in contrast, is an inherited XOutput on an inherited var. Simu. (I still have to collect my code and send it to you as soon as possible.)

I made my MagLUT in a way that I can use it for any compatible machine, i.e. machines with only another length and/or winding setup. So the LUT can easily be reused.

As said, I will prepare some code and send it. You only have to tell me if you are okay with the overhead in object size for reproducablility before we try to merge it.
BR S

Hello @SebGue,
We already had the issue of missing some of the original simulation when handling LUT, so it is a good idea to have inherited LUT from XOutput actually.
I think we can simply merge our approaches if we inherit LUT from XOutput and get the quantities (e.g. Phi_wind) through getters.
We don't have problems of overhead in object size since we mainly use .h5 save format, so data is already compressed.
As asked in PR #464, is it ok for you if we handle this in a new branch of EOMYS-Public and we merge the current PR ?
Best regards,
Emile


Add support for capabilities

Add support for setting capabilities on assets.
Exposing functionality added to rpm-rs in this PR, https://github.com/rpm-rs/rpm/pull/166

The change is unexpectedly complexed and will take some time to review.
Capability-value is validated caps() in rpm::FileOptionsBuilder (which takes a string as an argument instead of capctl::FileCaps) unlike other paramters. So, this got a bigger change than I expected.

The change is unexpectedly complexed and will take some time to review.
Capability-value is validated caps() in rpm::FileOptionsBuilder (which takes a string as an argument instead of capctl::FileCaps) unlike other paramters. So, this got a bigger change than I expected.

Do you have any recommendations for simplifying the change here?
My understanding was that cargo-generate-rpm is a wrapper around rpm-rs and so I have exposed the caps field of rpm-rs without additional validation in cargo-generate-rpm.

I have applied markups as per your comments, thank you for reviewing.
Regarding your initial comment about rpm-rs taking a string and validating. That matches the existing group, user and mode behaviour of rpm-rs.
I believe capctl provided slightly different behaviour in the scenario where a capability wasn't specified "=" vs " " and capctl is only used for validation rather than directly for reading and writing the RPM capability header.
See https://github.com/rpm-rs/rpm/pull/166#discussion_r1296083449 for the discussion on usage of capctl vs parsing as a string


[OTEL-2182] Stop prefixing 3 HTTP metrics in otlp

What does this PR do?
Stop prefixing http_server_duration, http_server_request_size and http_server_response_size with otelcol.
Motivation
Those metrics used to have the otelcol prefix if they are from collector internal metrics before v0.106, then the prefix was removed. We put back the prefix in v0.108 but the same metric can be from SDKs as well. Stop prefixing them be consistent with https://opentelemetry.io/docs/collector/internal-telemetry/#lists-of-internal-metrics
Describe how to test/QA your changes
Send an OTLP metric http_server_duration, http_server_request_size or http_server_response_size, verify on DD metrics page this metric does not have the otelcol prefix.

/merge


compile error

x86_64 /ubuntu 18.04
rustc 1.32.0;
gcc + clang;
pkg-config;
libusb (1.0+)
cargo install tmkms --features=ledgertm
for any attempts to compile there is an error.

error: failed to run custom build command for hidapi v0.5.2
process didn't exit successfully: /tmp/cargo-installlEV3wy/release/build/hidapi-e3a7571fb47900f3/build-script-build (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to find libudev: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"libudev\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package libudev was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libudev.pc\'\nto the PKG_CONFIG_PATH environment variable\nPackage \'libudev\', required by \'world\', not found\n" } }', src/libcore/result.rs:1009:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile tmkms v0.5.0, intermediate artifacts can be found at /tmp/cargo-installlEV3wy

Caused by:
  build failed

apt-get install libudev-dev  corrects the error.
dependence can be specified in the description


Upgrading from GATEWAY V1.21 to V1.22 docker image gives an error when starting

When updating the docker image from Version 1.21 to Version 1.22 I am receiving the following error in the gateway docker instance:
Gateway API server stopped unexpectedly. Restarting...
/home/gateway/dist/src/services/config-manager-v2.js:123
throw new Error(${this.id} config file seems to be outdated/broken due to additional property "${err.params.additionalProperty}". Kindly fix manually.);
^
Error: plenty config file seems to be outdated/broken due to additional property "ctezAdmin". Kindly fix manually.
at ConfigurationNamespace.loadConfig (/home/gateway/dist/src/services/config-manager-v2.js:123:31)
at new ConfigurationNamespace (/home/gateway/dist/src/services/config-manager-v2.js:98:14)
at ConfigManagerV2.addNamespace (/home/gateway/dist/src/services/config-manager-v2.js:227:78)
at ConfigManagerV2.loadConfigRoot (/home/gateway/dist/src/services/config-manager-v2.js:296:18)
at new ConfigManagerV2 (/home/gateway/dist/src/services/config-manager-v2.js:193:14)
at ConfigManagerV2.getInstance (/home/gateway/dist/src/services/config-manager-v2.js:186:41)
at getLogPath (/home/gateway/dist/src/services/logger.js:43:55)
at Object. (/home/gateway/dist/src/services/logger.js:49:18)
at Module._compile (node:internal/modules/cjs/loader:1149:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1203:10)
How to fix this?

As per rapcmia:
The error was due to update on tezos/plenty. I assume you are using docker so you would need to backup your important files and delete your old gateway folder then run again docker compose again so it will copy the new version.
Confirmed it works now.


Sending commands directly to Homebridge – trigger scenes?

I was able to send commands directly to accessories connected to my Homebridge with a PUT request to /characteristics, after finding the right one in /accessories.
But I was wondering if it's possible to trigger scenes as well. Or are the scenes maybe not saved on the Homebridge server?
Is this at all possible?

I would also like to be able to programmatically trigger scenes or something to that effect.  I want to use an Amazon Dash button to turn on an iDevice Switch which turns on my coffee maker.  The Raspberry Pi can listen for the Amazon Dash, but I'm not sure how to command the iDevice Switch.

@robertvorthman homebridge-amazondash allows you to bridge Amazon Dash Button to HomeKit as a programable switch, after that you can setup an event trigger in HomeKit to control your iDevice Switch

@KhaosT Perfect!  Thank you for your quick response and for writing this plugin.

Is there a way to trigger a scene without using a switch and event triggers?
I would like to switch a scene inside my plugin code. I guess this is not possible due to the design of homebridge/homekit?
Is the best option for me to create a ghost switch in my plugin code and then creating triggers using the home app? The only other solution i can find is to "recreate" a scene by switching every accessory using characteristics.


Missing S3 canned ACL: aws-exec-read

I get the following exception:
AssertionError: Unknown canned acl: aws-exec-read

But it exists, at least according to the boto3 documentation.

I haven't had a chance to actually implement it, but fixed it so that it won't throw an exception.


⚠ BCR Bot has degraded performance

In 50db0fe, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 960 ms

Resolved: BCR Bot performance has improved in 85e74d2.


build(KONFLUX-5392): Request more memory for build container step as it is actually being used

Description
Builds are using 8 GiB of memory, so request that memory. See stone-prd-rh01:
sum by (namespace, pod, container) (
max_over_time(
    container_memory_working_set_bytes{container=~".*step-build.*", pod=~".*-build-container-pod", namespace="crt-nshift-lightspeed-tenant", pod=~"lightspeed-service-.*"}
[1d])
)

Type of change

Konflux configuration change

Related Tickets & Documents

Related Issue https://issues.redhat.com/browse/KONFLUX-5392

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

Project coverage is 73.11%. Comparing base (dcd093e) to head (5626800).
Report is 13 commits behind head on main.

Additional details and impacted files

@@             Coverage Diff             @@
##             main    #1921       +/-   ##
===========================================
- Coverage   91.60%   73.11%   -18.49%
===========================================
  Files          65       64        -1
  Lines        2894     2816       -78
===========================================
- Hits         2651     2059      -592
- Misses        243      757      +514

see 39 files with indirect coverage changes

----
🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests

/test verify

/lgtm
/approve
/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-service"

/test integration

/hold

/unhold


adding operator skipWhile - #193

Adds new operator skipWhile
Marks operator start as deprecated

Codecov Report
Base: 99.54% // Head: 99.54% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (c287642) compared to base (b49a05c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #194   +/-   ##
=======================================
  Coverage   99.54%   99.54%
=======================================
  Files          45       46    +1
  Lines        1522     1552   +30
  Branches      318      323    +5
=======================================
+ Hits         1515     1545   +30
  Misses          2        2
  Partials        5        5

Impacted Files
Coverage Δ

src/ops/start.ts
100.00% <ø> (ø)

src/index.ts
100.00% <100.00%> (ø)

src/ops/skip-while.ts
100.00% <100.00%> (ø)

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Bump std from 0.51.0 to 0.61.0

https://github.com/denoland/deno/issues/6737

@jozsefsallai hi József, could you please merge this PR and release a new version? Without this update ask cannot work in deno 1.2.0.

@akunchen
Thank you I'm going to use your repo as long as it is not merged (it's 10 days since last deno release).
Btw. shouldn't be https://deno.land/std/io/bufio.ts (without version) more stable as long as it is "only" BufReader and there won't be any major difference for the end user? Just asking. I know it's not best practice.

Sorry for the delay and thanks for the PR!


feat: Added labels to easily find secrets what created for cluster

What this PR does:
Right now cass-operator create 3 secret per cluster

${nameCluster}-superuser
${Datacenter.Name}-keystore
${Datacenter.Name}-ca-keystore

and only one ${nameCluster}-superuser has base labels and so, I can't find all the secrets created for a cluster with a command like kubectl get secret -l 'k8ssandra.io/cluster-name=my-cluster'. My cases - I want to delete all secrets after deleting a cluster (right now I generate a name but using a label would be easy)
Which issue(s) this PR fixes:
Fixes #
Checklist

[ ] Changes manually tested
[ ] Automated Tests added/updated
[ ] Documentation added/updated
[x] CHANGELOG.md updated (not required for documentation PRs)
[x] CLA Signed:  DataStax CLA

Hi, thanks for the PR. Some other things that could be nice would be adding a test in secrets_test.go to verify the labels are there. And of course, we could autodelete them by setting a controller reference to all generated secrets so that deletion of CassandraDatacenter deletes the secrets also without manual process.

Hi @Tom910,
do you still plan to work on this PR?
Thanks

Closing this in favor of https://github.com/k8ssandra/cass-operator/pull/608


Landing Page Redirect

Would it be possible to change the default landing page if we're already signed in?
If I go to Notebooks.ai and am already signed in, I should automatically be redirected to the dashboard page.

@jwinf843 will assign this for discussion, thanks for the feedback.

@jwinf843 Now if you're signed in, you'll be directly redirected to your dashboard.


How can I obtained the original serie by reconstructed approximations and details for multi-level decomposition?

Hi everyone, I am quite new in PyWavelets,
sample.xlsx
I tried to decompose my sample time series into three sub-bands by using discrete wavelet. However, I obtained a different series than the original series when I sum the reconstructed approximation and details.
When I reconstruct the decomposed series, should not I reach the same series as the original series?
Here my code,
import pywt
import pandas as pd
import numpy as np
data=pd.read_excel(r'C:\Users\ITU\Desktop\sample.xlsx')
sample=data["sample"]
(cA3, cD3, cD2, cD1) = pywt.wavedec(sample, 'db1', level=3, mode= 'sym')
n = len(sample)
sample_recons=pywt.upcoef('a', cA3, 'db1', level=3, take=n)+pywt.upcoef('d', cD3, 'db1', level=3, take=n)+pywt.upcoef('d', cD2, 'db1', level=3, take=n)+pywt.upcoef('d', cD1, 'db1', level=3, take=n)
I attached the sample time series.
Thanks
Ömer

On Tue, Jan 19, 2021 at 3:56 AM omerekmekcioglu<EMAIL_ADDRESS>wrote:

Hi everyone, I am quite new in PyWavelets,
sample.xlsx https://github.com/PyWavelets/pywt/files/5834730/sample.xlsx
I tried to decompose my sample time series into three sub-bands by using
discrete wavelet. However, I obtained a different series than the original
series when I sum the reconstructed approximation and details.
When I reconstruct the decomposed series, should not I reach the same
series as the original series?

You should get back the original result if you use the pywt.waverec
function that was designed for that purpose. I think what you are trying
with pywt.upcoef is roughly what is being done there, although I suspect
there is some subtle shift or difference in which coefficients are
discarded from the front or end after upsampling. Those details can be
tricky to get right for all boundary modes and I would recommend using the
specific function pairs such as wavedec/waverec (or dwt/idwt for single
level transforms) rather than those downcoef or upcoef functions.

Here my code,
import pywt
import pandas as pd
import numpy as np
data=pd.read_excel(r'C:\Users\ITU\Desktop\sample.xlsx')
sample=data["sample"]
(cA3, cD3, cD2, cD1) = pywt.wavedec(sample, 'db1', level=3, mode= 'sym')
n = len(sample)
sample_recons=pywt.upcoef('a', cA3, 'db1', level=3,
take=n)+pywt.upcoef('d', cD3, 'db1', level=3, take=n)+pywt.upcoef('d', cD2,
'db1', level=3, take=n)+pywt.upcoef('d', cD1, 'db1', level=3, take=n)
I attached the sample time series.
Thanks
Ömer
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PyWavelets/pywt/issues/582, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRZ7PJ2UAJMWIJIQ3OIML3S2VCKXANCNFSM4WIOEGQQ
.

On Tue, Jan 19, 2021 at 3:56 AM omerekmekcioglu<EMAIL_ADDRESS>wrote:

Hi everyone, I am quite new in PyWavelets,
sample.xlsx https://github.com/PyWavelets/pywt/files/5834730/sample.xlsx
I tried to decompose my sample time series into three sub-bands by using
discrete wavelet. However, I obtained a different series than the original
series when I sum the reconstructed approximation and details.
When I reconstruct the decomposed series, should not I reach the same
series as the original series?

You should get back the original result if you use the pywt.waverec
function that was designed for that purpose. I think what you are trying
with pywt.upcoef is roughly what is being done there, although I suspect
there is some subtle shift or difference in which coefficients are
discarded from the front or end after upsampling. Those details can be
tricky to get right for all boundary modes and I would recommend using the
specific function pairs such as wavedec/waverec (or dwt/idwt for single
level transforms) rather than those downcoef or upcoef functions.

Here my code,
import pywt
import pandas as pd
import numpy as np
data=pd.read_excel(r'C:\Users\ITU\Desktop\sample.xlsx')
sample=data["sample"]
(cA3, cD3, cD2, cD1) = pywt.wavedec(sample, 'db1', level=3, mode= 'sym')
n = len(sample)
sample_recons=pywt.upcoef('a', cA3, 'db1', level=3,
take=n)+pywt.upcoef('d', cD3, 'db1', level=3, take=n)+pywt.upcoef('d', cD2,
'db1', level=3, take=n)+pywt.upcoef('d', cD1, 'db1', level=3, take=n)
I attached the sample time series.
Thanks
Ömer
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PyWavelets/pywt/issues/582, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRZ7PJ2UAJMWIJIQ3OIML3S2VCKXANCNFSM4WIOEGQQ
.

I have no doubt that I can reach the original result with the waverec function. But it utilizes the set of coefficients.
I would like to get the sub-bands separately as: Approximation3, Detail1, Detail2 and Detail3.
I assume that when I sum all of these sub-bands, I should reach the original series. Is there any way to obtain these sub-bands separately by using waverec?

I have no doubt that I can reach the original result with the waverec function. But it utilizes the set of coefficients.
I would like to get the sub-bands separately as: Approximation3, Detail1, Detail2 and Detail3.
I assume that when I sum all of these sub-bands, I should reach the original series. Is there any way to obtain these sub-bands separately by using waverec?

On Tue, Jan 19, 2021 at 8:37 AM omerekmekcioglu<EMAIL_ADDRESS>wrote:

I have no doubt that I can reach the original result with the waverec
function. But it utilizes the set of coefficients.
I would like to get the sub-bands separately as: Approximation3, Detail1,
Detail2 and Detail3.
I assume that when I sum all of these sub-bands, I should reach the
original series. Is there any way to obtain these sub-bands separately by
using waverec?

I was working on a function to do that a while back. It is in this PR:
https://github.com/PyWavelets/pywt/pull/527.
It has been over a year since we made a new PyWavelets release, so I will
try to see about planning a new release in the coming month or so,
hopefully including that feature. In the meantime, you can copy the
functions in this _mra.py file from that PR for use locally:
https://github.com/PyWavelets/pywt/blob/06da8bffda54cba61ee5722a35385da7c167ea59/pywt/_mra.py

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PyWavelets/pywt/issues/582#issuecomment-762843695,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRZ7PMWZLEIKKWTBIOGOV3S2WDKLANCNFSM4WIOEGQQ
.

On Tue, Jan 19, 2021 at 8:37 AM omerekmekcioglu<EMAIL_ADDRESS>wrote:

I have no doubt that I can reach the original result with the waverec
function. But it utilizes the set of coefficients.
I would like to get the sub-bands separately as: Approximation3, Detail1,
Detail2 and Detail3.
I assume that when I sum all of these sub-bands, I should reach the
original series. Is there any way to obtain these sub-bands separately by
using waverec?

I was working on a function to do that a while back. It is in this PR:
https://github.com/PyWavelets/pywt/pull/527.
It has been over a year since we made a new PyWavelets release, so I will
try to see about planning a new release in the coming month or so,
hopefully including that feature. In the meantime, you can copy the
functions in this _mra.py file from that PR for use locally:
https://github.com/PyWavelets/pywt/blob/06da8bffda54cba61ee5722a35385da7c167ea59/pywt/_mra.py

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PyWavelets/pywt/issues/582#issuecomment-762843695,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRZ7PMWZLEIKKWTBIOGOV3S2WDKLANCNFSM4WIOEGQQ
.

The question was answered, and we should get a new release out soon (needed to support Python 3.10) which will likely include gh-527. So let's close this.


Removed references to Slack channels that do not exist

Changelog
Removed

Slack section of page, as those Slack channels don't exist

Hey @fasterthan,
These Slack channels do exist and are active. Closing this PR, but feel free to send us an email or open an issue if you still can't find them.


Fix warning message when ngSanitize is not found.

Noticed that there was a missing 'n' in the warning message that gets display when ngSanitize is not found.

:+1:  you're a gentleman and a scholar, good sir.

tips hat
On Mar 10, 2016 8:20 PM, "Mat"<EMAIL_ADDRESS>wrote:

[image: :+1:] you're a gentleman and a scholar, good sir.
—
Reply to this email directly or view it on GitHub
https://github.com/matowens/ng-notify/pull/31#issuecomment-195129942.


Update issue templates

Coverage remained the same at 100.0% when pulling c849cb63fcde9a09f9b95703e52c69967ca9eeaf on AMorgaut-issue-templates into f0fbd181a2908116afcc01f1199c9a4ae5727368 on master.


Tag a new release 1.3

1.3 or whatever … there are some things to release like bin … and fixes
Last release was on Oct 13, 2012

:+1: for something like that. I want the /bin change.

it's getting vaporware

At the moment, yes.

Same problem with php-resque-scheduler...
I would loved to get a PHP version of Scheduled Tasks/Cron for portability and isolation.

See #274


Screenshots bleed into background

@benenright @thibaudcolas
Screenshots bleed into the background. Especially the Wagtail header (grey on grey). The header is almost invisible.
During GSOC we tried to addressed bleeding screenshots (white-on-white) by changing the the page background from white to a very light purple: This 'fix' doesn't work.
Before/after 1
A screenshot applying drop shadows. Dropshadows give natural borders. It makes screenshots stand out.

Please open images in their actual size to inspect the effects.

Before/after 2
If we accept drop shadows as a solution, we can also drop the purple background and use a white background. To illustrate:

I find this much easier for the eyes. And easier to consume. Friendlier. The screenshots appear natural. The contents of screenshots now 'hang from the site header'. The natural anchor is restored.
With this change, the guides styling doesn't disturb the screenshot contents.
My suggestion:

Use drop shadows on screenshots (all images in the content section).
Change te background from light purple to white.

Ref, for the drop shadow I used:
    box-shadow: 0 2px 12px 0 rgb(0 0 0 / 20%);
    border-radius: 4px;
    border: 1px solid #e4e4e4;

PS: I know drop shadows are not in the Wagtail Style Guide. To me it is justified to allow them here as they are minimal, yet distinctive.
Update
Just realised that the info/warning blocks use drop shadow too.

+1 to shadowing the screenshots, but I like the light purple BG :)

Not really, #115 is a bug. This ticket is on the visual effect.
With bleeds into background, I mean the optical effect of an image which primarily consists of colours of the background, without a clear boarder.
The purple bg was created to solve the issue, but doesn't.

@lb this seems like a good feature to add. I'd create a PR for it @allcaps

@VictoriaAjala Yes, go for it!
Can you:

Keep the drop shadow for info/warning blocks identical, for consistency?
Make the drop shadow in a way that it is visible on the top-left and bottom-right of the element? See my example code.

@allcaps @lb- I have fixed this issue https://github.com/wagtail/guide/pull/181


Restore cursor after rename

restore cursor after rename
would be nice to keep working after a rename in the same spot

The problem is how it works makes it rather difficult to accurately determine where the cursor was.
When you rename a class or method, all the references to it get updated. The classes that have changes made in them are re-decompiled and the UI refreshes. This resets the cursor, but we can sort of work around that. But its limited. We know roughly how far down the text the cursor was and can estimate where it was. That or we can use the exact line info. But neither will get you exactly where you were before.
I'd like to do this, but I'm not sure if its super feasible right now with how we implement things. The reason IntelliJ and other IDE's can do this is since they operate in terms of an AST. Updating the model can update the text of the editor and reset the cursor to the beginning of the element in the AST where it was before. Recaf has no such persistent AST system.

Closing since atm this isn't really possible. The best we can do is estimate the scroll/caret position, which we do in 3X.


Setup finishes but no Magento

After running docker-compose up, it says it finished the installation and setup. When I hit http://localhost:80, however, I get a 404 (I verified that port 80 is forwarding to the nginx install). Here's the output:

setup_1   | Running Magento 2 setup script...
setup_1   | Could not open input file: /src/bin/magento
setup_1   | Reindexing all indexes...
setup_1   | Could not open input file: /src/bin/magento
setup_1   | Deploying static view files...
setup_1   | Could not open input file: /src/bin/magento
setup_1   | Applying ownership & proper permissions...
setup_1   | find: `pub': No such file or directory
setup_1   | find: `pub': No such file or directory
setup_1   | find: `/src/var/generation': No such file or directory
setup_1   | The setup script has completed execution.
magento2dockercompose_setup_1 exited with code 0
app_1     | <IP_ADDRESS> - - [20/Jan/2016:19:52:02 +0000] "GET / HTTP/1.1" 404 168 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0" "-"

Did I miss a step?

Here's your error:
Could not open input file: /src/bin/magento
Ensure /src is a listed volume under appdata.
appdata:
image: tianon/true
volumes:
- /src
- ~/.composer:/root/.composer

I removed my src directory and started over. There must have been a problem during the first setup.

Ok cool, glad you figured it out. Might have been related to the other ticket.

Now for a dumber question: how do I get to the admin? When I access
mysite.com/index.php, I get the Luma site (the test data). When I go to
mysite.com/admin, I get a 404 page.  Could it be that I have a module
disabled? I can't figure out how to access / ssh into the docker image to
see if I have the admin module enabled or not.
On Wed, Jan 20, 2016 at 1:37 PM, Mark Shust<EMAIL_ADDRESS>wrote:

Ok cool, glad you figured it out. Might have been related to the other
ticket.
—
Reply to this email directly or view it on GitHub
https://github.com/mageinferno/magento2-docker-compose/issues/7#issuecomment-173352025
.

 This is a good one.
Admin urls are now randomly generated in M2 (this is good, as it prevents brute-force hacking). You can check the file at /src/app/etc/env.php which will give you the admin url. You can also issue the following line:

This should give you the first 5 lines of app/etc/env.php, the 5th line being the admin url.

That worked! Thank you!
 This is a good one.
Admin urls are now randomly generated in M2 (this is good, as it prevents
brute-force hacking). You can check the file at /src/app/etc/env.php
which will give you the admin url. You can also issue the following line:

This should give you the first 5 lines of app/etc/env.php, the 5th line
being the admin url.

—
Reply to this email directly or view it on GitHub
<https://github.com/mageinferno/magento2-docker-compose/issues/7#issuecomment-173356770>
.


Connect call failed - but still receives some messages

Thank you for your work on this library.  I'm trying to use this on a Toshiba branded 49V6863DB.
When I run python3 tv_on_off.py with the TV already turned on and connected to Ethernet, I get this error.
Give TV IP address: <IP_ADDRESS>
Update called
Not discovered -> turned off
Update called
Trying to connect WS...
WS connect succesful!
!
Trying to connect TCP...
TCP connect/read error: [Errno 111] Connect call failed ('<IP_ADDRESS>', 1986)
Trying to read state of applications...
Application states updated!
Update called
!

So the WebSocket connects successfully, but not the TCP?
When I turn the TV off using the remote, the script picks it up:
Trying to connect TCP...
TCP connect/read error: [Errno 111] Connect call failed ('<IP_ADDRESS>', 1986)
Trying to read state of applications...
Application states updated!
<event><tv_state value='PLAYER_PORTAL'/></event>
Received WS msg: <event><tv_state value='PLAYER_PORTAL'/></event>
<event><tv_state value='PLAYER_PORTAL'/></event>
Received WS msg: <event><tv_state value='PLAYER_PORTAL'/></event>
<event>tv_status:1</event>
Received WS msg: <event>tv_status:1</event>
<event>tv_status:1</event>
Received WS msg: <event>tv_status:1</event>
Update called
!
Trying to connect TCP...
TCP connect/read error: [Errno 111] Connect call failed ('<IP_ADDRESS>', 1986)
Trying to read state of applications...
Application states updated!

So, it is getting some messages!
Is this something I'm doing wrong?

Hello!
I believe that you are doing everything right but our TV sets might have some differences. I had to reverse engineer functionality of my TV so it might not be the best approach or work with other TV models.
I used Websocket connection to get some status information from tv. For example turning TV off or opening media library causes TV to send some information through this websocket connection. TCP connection is used to retrieve some information not available through websocket connection (for example volume levels and mute state).
What you could try:

Check if your TV has another TCP port (other than 1986) open for communication and use that port. You can use nmap to search for open ports and telnet to connect. Try for example command GETMUTE.

Unfortunately it seems that you have to do some reverse engineering also as our TVs seem to use a bit different messages indicating TV on status (your tv sends xml formatted '''tv_status:1''' and my sends just '''tv_status:1''' ). Hopefully these help you on right track :)
Best Regards,
Teemu

Thank you for this. It would be too easy if Vestel provided documentation, eh?!
I couldn't telnet in on 1986, and nmap found no open ports.
So I'm decompiling the Android remote to see if that will help.
Thanks for providing this library, it has been useful :-)

I'll have to play around with nmap - I can connect to the websocket in JavaScript using
var myWebSocket = new WebSocket("ws://<IP_ADDRESS>:7681/)
myWebSocket.onmessage = function (event) { console.log(event.data); }

Looking through the APK, it appears that the TCP port is on 2000.

2870/tcp  open  unknown
4660/tcp  open  mosmig
4661/tcp  open  unknown
4725/tcp  open  unknown
7681/tcp  open  unknown
56789/tcp open  unknown
56790/tcp open  unknown
57707/tcp open  unknown


Updated a warning string in upgrade.js

I inserted an 'in' in the warning message that is displayed when the user's package.json file doesn't have a valid version number for react native.
Test plan
-run upgrade.js on a project with an invalid version number.

By analyzing the blame information on this pull request, we identified @satya164 and @skevy to be potential reviewers.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Thanks @SawyerHood!
@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review.


Keep getting singleValue is undefined and app is crashing

Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch<EMAIL_ADDRESS>for the project I'm working on.

Here is the diff that solved my problem:
diff --git a/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js b/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js
index 5045ed3..3704dbf 100644
--- a/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js
+++ b/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js
@@ -139,6 +139,7 @@ const spring = function(
     callback = _combineCallbacks(callback, configuration);
     const singleValue: any = animatedValue;
     const singleConfig: any = configuration;
+    if (!singleValue) return;
     singleValue.stopTracking();
     if (configuration.toValue instanceof AnimatedNode) {
       singleValue.track(
@@ -192,6 +193,7 @@ const timing = function(
     callback = _combineCallbacks(callback, configuration);
     const singleValue: any = animatedValue;
     const singleConfig: any = configuration;
+    if (!singleValue) return;
     singleValue.stopTracking();
     if (configuration.toValue instanceof AnimatedNode) {
       singleValue.track(
@@ -246,6 +248,7 @@ const decay = function(
     callback = _combineCallbacks(callback, configuration);
     const singleValue: any = animatedValue;
     const singleConfig: any = configuration;
+    if (!singleValue) return;
     singleValue.stopTracking();
     singleValue.animate(new DecayAnimation(singleConfig), callback);
   };

This issue body was partially generated by patch-package.

Hi @dhayaljaswantgit looks like you solved a bug, could you fill out the issue template to provide detailed information about the issue and the submit a PR for this?


ARROW-17888: [Docs] Add reference of the cookbook contrib page to New Contributor's Guide

This PR adds a reference for Apache Arrow Cookbook contributing info page to the New Contributor's Guide.

@ianmcook @thisisnic would you mind having a look at this tiny PR?

Thanks for adding this! Just one tiny phrasing suggestion, otherwise LGTM!

Thank you for the comments!
Will wait for the CI and then merge if green.


Add println!-like heuristic to the fail attribute

This PR adds println! like heuristic to the fail attribute from the failure crate. See https://github.com/rust-lang-nursery/rustfmt/commit/6e901c8f37235913a6361a97c84689f8768bf8b7 for a concrete example.
The first 4 commits are refactoring in order to achieve this. Essentially those remove ToExpr trait (which should have been a temporal fix...) and replacegg it with OverflowableItem enum.
cc https://github.com/rust-lang-nursery/rustfmt/issues/2929.

Thanks!


Adding a profile

@juds-kerller  thnx for contributing, try this year, and make sure you follow me and star this repo for updates about special swags I will be giving.
Contribute in October for Hacktoberfest 2020


Certificate.sha256Hash method

It would be good to have an equivelant to the CertificatePinner method, but I'm missing something obvious when try to implement, or the encoding isn't matching exactly?
    fun X509Certificate.sha256Hash(): ByteString =
      publicKey.encoded.toByteString().sha256()

I think you want to hash the encoded subjectPublicKeyInfo.

https://github.com/cashapp/certifikit/pull/16

TODO rename

Also https://github.com/cashapp/certifikit/pull/24


Introduce isort to codebase

[] tests added / passed
[x] Ensure pre-commit formatting checks are passing
[] changelog entry
[x] add isort to dev-requirements #149
[x] run isort once to have all imports sorted #149
[x] add isort check to pre-commit hook #149

Hi @Anyesh 👋
Thanks for your contribution!


[Das_Schwarze_Auge_4-1] Quick Fix: Passing Blow

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description
A quick fix for the most recently introduced functionality, not urgent.
Fixes

Fix: Modifier for passing blow (old buttons) was not applied fully (71902e83eda55ede2ac1062c5a00ae5ab101f545)

Miscellaneous

Correct comment (2b8de68eff756da7e0918c155e4a0b6864920423)
Add info for new version (39f6fca91a7f5483482fdd006af6921d787645b2)
Bump version number (5209d109b7b7270de45b137b85ce16e45a59c19e)

Character Sheet Info Roll20 Internal Use only.


error string handling for OpenSSL-3.0.0 needs further fixing

My comment from original "OpenSSL-3.0.0-beta1 fixes" merge request:
I just realised that for a proper fix for OpenSSL3.0 all occurrences of ERR_PACK need to be checked, since the function part is deprecated and set to 0 in ERR_PACK. That can result in overwriting other entries (library name or reasons).
This concerns:

src/ac/error.c: should be skipped entirely
src/sslutils/scutils.c: should skip loading the scerr_str_functs
src/sslutils/sslutils.c: should skip loading the prxyerr_str_functs
Also references to ERR_func_error_string also need adapting since that will always be (null). That concerns src/socklib/Server.cpp and src/common/data.cc
All these are not really breaking voms, but can lead to misleading and/or faulty error messages.
See also https://github.com/openssl/openssl/pull/9058

Originally posted by @msalle in https://github.com/italiangrid/voms/issues/98#issuecomment-922871177

@msalle would you please have a look at the changes in #133? it's quite minimal and doesn't cover all what is needed for properly handling errors according to OpenSSL 3, but at lease it should allow to have correctly formatted error messages. Thanks.

I have merged the PR with the existing changes. I'll address the rest of this issue subsequently.


Why does the dapr-https 443-3500 I added disappear. The 1.7 version of dapr does not have this problem.

The default service port mapping created by dapr of version 1.8 has dapr-http 80-3500, then I added a dapr-https 443-3500, the problem is, when I scale the number of containers, dapr-https 443-3500 disappears . The 1.7 version of dapr does not have this problem, what is the reason, thank you!

The dapr service is created or updated by reconcile function in operator, this function is responsible for enforcing the desired resource state on the actual state of the deployment/statefulset object.
Do not edit dapr service directly as it will always be reconciled by operator.

@sunzhaochang 谢谢，但是 1.8之前版本没有这个策略，为何1.8版本有这个策略呢？

在1.7版本中有个bug，导致无法正常更新service，后来的版本中修复了这个问题。

This issue can be closed as comments above. Please feel free to reopen this If you still have problems.


Fix: Hashlink content getting hidden under the top nav on visit

Closes #407

@kryptonian41 ah sorry @kryptonian41 , I will handle this issue. We have to update the HashLink component, and I have an idea on that


I2C Read Issue

I've been trying to implement an I2C interface to a MAG3110 magnetometer on esp-open-rtos and have been running into issues.
It appears that fairly often (about 50% of the time) the I2C signal is corrupted. When this happens the I2C debug output prints "I2C: arbitration lost in i2c_write_bit from bus 0" or "I2C: Read Error".
Here's some sample code:
...

#define BUS     (0)
#define SCL_PIN (5)
#define SDA_PIN (4)

#define MAG31100_I2C_ADDRESS 0x0E
#define MAG3110_WHO_AM_I 0x07

void user_init(void) {
    uart_set_baud(0, 115200);
    uint8_t bus = BUS;
    uint8_t addr = MAG3110_I2C_ADDRESS;

    i2c_init(BUS, SCL_PIN, SDA_PIN, I2C_FREQ_100K);

    while(1) {
        uint8_t output;
        uint8_t reg = MAG3110_WHO_AM_I;
        i2c_slave_read(bus, addr, &reg, &output, 1);
        printf("ouput: %d\n", output);

        for (uint16_t i=0; i<1000; i++) {
            sdk_os_delay_us(1000);
        }

    }
}

The serial output looks like this (the expected output is 196 [0xC4]):
output: 196
output: 196
I2C: Read Error
output: 196
output: 196
I2C: arbitration lost in i2c_write_bit from bus 0
output: 252
I2C: Read Error
output: 252
I2C: arbitration lost in i2c_write_bit from bus 0
I2C: arbitration lost in i2c_stop from bus 0
output: 254
I2C: arbitration lost in i2c_start from bus 0
I2C: Read Error
output: 254
output: 196
output: 196
I2C: Read Error
output: 196

I hooked up a scope to the I2C lines and often the data looks like this:

Here's a successful transmission for reference:

I've tested this same circuit, with the same ESP board using an Arduino example and it works perfectly using the Arduino Wire library - so it seems that something is up with this I2C implementation.
Any thoughts on what could be causing this?

It looks like the slave is stretching the clock after receiving the address, and either the driver is not waiting or the wait time is far to short. Could you try increasing the clock stretch wait time with i2c_set_clock_stretch(bus, clk_stretch), otherwise try to debug the clock stretching code paths?

Thanks a lot for the quick response! It looks like this solved it.
I addedi2c_set_clock_strech(bus, 300); immediately after i2c_init() and everything appears to be working flawlessly now. (smaller values weren't enough)
It looks like I2C_DEFAULT_CLK_STRETCH was originally set to 10 by default. I'm curious as to why this is so low/is this meant to be adjusted by the user?
Thanks again! I spent way too much time debugging this...

@jreed509 I feel you, I2C debugging is never too easy... Indeed there have also recently been other reports of I2C not working properly
Would be nice to see waveforms after the change of I2C_DEFAULT_CLK_STRETCH, as in how much clock stretching is actually taking place now.
Perhaps the clock stretching limit has to be increased or the clock stretching code changed somehow. In https://github.com/SuperHouse/esp-open-rtos/pull/503 I landed some optimizations for GPIO access in the I2C driver. Probably due to read_scl() being slow earlier, the default clock stretch value has worked well enough. In its current state, the clock stretching code actually seems dependent of the CPU frequency.
I'll see if I can figure something out. Don't hold your breath for it though, hopefully increasing the limit helped in solving the most acute problem. :)

@flannelhead Unfortunately, after getting I2C working reliably for me I installed my device in a not-so-easy to access location so I can't grab another waveform at the moment.
I will say (from memory) that with the increased clock stretching value, the waveform looked very similar to the 2nd (successful) waveform above.  The only notable difference was that often (but not always), the slave would stretch the clock for ~1-2 clock cycle periods at longest - the communication still worked fine when this happened.
At least according to this page a device could theoretically stretch the clock forever. Maybe it makes sense to have I2C_DEFAULT_CLK_STRETCH large by default and/or add a debug message letting the user know if the clock stretch timeout was reached?
At least for the short term though, increasing i2c_set_clock_strech(bus, 300); seems to have solved all I2C communications issues I had. Ill go ahead and close this issue.


[gardening] Fix partiion^H^H^H^H^Hitions^H^H^H^H^H^Htitions.

By being less creative in the ways we spell "partition" :-)

@swift-ci please smoke test

@swift-ci please test


My tensorboard appears many undefined events and charts

I only summary my loss as xentropy_mean in training ,but in tensorboard ,I had not find the xentropy_mean chart but many other charts I dont know. I don't know where I wrote wrong, and what's the matter indeed.
I wrote the inference(), training() and loss() in this file
`
from future import absolute_import
from future import division
from future import print_function
import math
import tensorflow.python.platform
import tensorflow as tf
NUM_CLASSES = 16
IMAGE_SIZE = 28
IMAGE_PIXELS = 784
def inference(images, hidden1_units, hidden2_units):
with tf.name_scope('hidden1'):
weights = tf.Variable(
tf.truncated_normal([IMAGE_PIXELS, hidden1_units],
stddev=1.0 / math.sqrt(float(IMAGE_PIXELS))),
name='weights')
biases = tf.Variable(tf.zeros([hidden1_units]),
name='biases')
hidden1 = tf.nn.relu(tf.matmul(images, weights) + biases)
with tf.name_scope('hidden2'):
weights = tf.Variable(
tf.truncated_normal([hidden1_units, hidden2_units],
stddev=1.0 / math.sqrt(float(hidden1_units))),
name='weights')
biases = tf.Variable(tf.zeros([hidden2_units]),
name='biases')
hidden2 = tf.nn.relu(tf.matmul(hidden1, weights) + biases)
with tf.name_scope('softmax_linear'):
weights = tf.Variable(
tf.truncated_normal([hidden2_units, NUM_CLASSES],
stddev=1.0 / math.sqrt(float(hidden2_units))),
name='weights')
biases = tf.Variable(tf.zeros([NUM_CLASSES]),
name='biases')
logits = tf.matmul(hidden2, weights) + biases
return logits
def loss(logits, labels):
batch_size = tf.size(labels)
labels = tf.expand_dims(labels, 1)
indices = tf.expand_dims(tf.range(0, batch_size), 1)
concated = tf.concat(1, [indices, labels])
print('Done2')
onehot_labels = tf.sparse_to_dense(
concated, tf.pack([batch_size, 16]), 1.0, 0.0)
print('Done1')
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits,
onehot_labels,
name='xentropy')
loss = tf.reduce_mean(cross_entropy, name='xentropy_mean')
return loss
def training(loss, learning_rate):
tf.summary.scalar(loss.op.name, loss)
optimizer = tf.train.GradientDescentOptimizer(learning_rate)
global_step = tf.Variable(0, name='global_step', trainable=False)
train_op = optimizer.minimize(loss, global_step=global_step)
return train_op
def evaluation(logits, labels):
correct = tf.nn.in_top_k(logits, labels, 1)
return tf.reduce_sum(tf.cast(correct, tf.int32))
`
and training process in this file
`from future import absolute_import
from future import division
from future import print_function
import argparse
import os.path
import sys
import time
import numpy as np
import tensorflow as tf
import mnist
TRAIN_FILE = 'train.tfrecords'
VALIDATION_FILE = 'validation.tfrecords'
TEST_FILE='test.tfrecords'
flags = tf.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_string('train_dir', '/home/queenie/image2tfrecord/tfrecords-28-gray/', 'Directory to put the training data.')
flags.DEFINE_string('filename', 'train.tfrecords', 'Directory to put the training data.')
flags.DEFINE_integer('batch_size', 100, 'Batch size.  '
'Must divide evenly into the dataset sizes.')
flags.DEFINE_integer('num_epochs', None, 'Batch size.  '
'Must divide evenly into the dataset sizes.')
flags.DEFINE_integer('hidden1', 128,'balabala')
flags.DEFINE_integer('hidden2', 32,'balabala')
flags.DEFINE_integer('learning_rate', 0.01,'balabala')
flags.DEFINE_integer('max_steps', 50000,'balabala')
def placeholder_inputs(batch_size):
images_placeholder=tf.placeholder(tf.float32,shape=(batch_size,mnist.IMAGE_PIXELS))
labels_placeholder=tf.placeholder(tf.int32,shape=(batch_size))
return images_placeholder,labels_placeholder
def fill_feed_dict(images_feed,labels_feed,images_pl,labels_pl):
feed_dict={
images_pl:images_feed,
labels_pl:labels_feed,
}
return feed_dict
def read_and_decode(filename_queue):
reader = tf.TFRecordReader()
_, serialized_example = reader.read(filename_queue)
features = tf.parse_single_example(
serialized_example,
# Defaults are not specified since both keys are required.
features={
'image_raw': tf.FixedLenFeature([], tf.string),
'label': tf.FixedLenFeature([], tf.int64),
})
image = tf.decode_raw(features['image_raw'], tf.uint8)
image.set_shape([mnist.IMAGE_PIXELS])
image = tf.cast(image, tf.float32) * (1. / 255) - 0.5
label = tf.cast(features['label'], tf.int32)
return image, label
def do_eval(sess,eval_correct):
true_count=0
for step in xrange(FLAGS.batch_size):
#print(sess.run(eval_correct))
true_count+=sess.run(eval_correct)
precision=float(true_count)/FLAGS.batch_size/FLAGS.batch_size
print('  Num examples: %d  Num correct: %d  Precision @ 1: %0.04f' %

(FLAGS.batch_size, true_count, precision))
return precision
def inputs(train, batch_size, num_epochs):
if not num_epochs: num_epochs = None
if train=='train':
filename=os.path.join(FLAGS.train_dir,TRAIN_FILE)
elif train=='validation':
filename=os.path.join(FLAGS.train_dir,VALIDATION_FILE)
else:
filename=os.path.join(FLAGS.train_dir,TEST_FILE)
with tf.name_scope('input'):
filename_queue = tf.train.string_input_producer(
[filename], num_epochs=None)
image, label = read_and_decode(filename_queue)
images, sparse_labels = tf.train.shuffle_batch(
[image, label], batch_size=batch_size, num_threads=2,
capacity=1000 + 3 * batch_size,
    min_after_dequeue=1000)

return images, sparse_labels

def run_training():
with tf.Graph().as_default():
images, labels = inputs(train='train', batch_size=FLAGS.batch_size,
num_epochs=FLAGS.num_epochs)
images_valid,labels_valid=inputs(train='validation', batch_size=FLAGS.batch_size,
                         num_epochs=FLAGS.num_epochs)

images_test,labels_test=inputs(train='test', batch_size=FLAGS.batch_size,
                         num_epochs=FLAGS.num_epochs)

logits = mnist.inference(images,
                         FLAGS.hidden1,
                         FLAGS.hidden2)

valid_prediction=mnist.inference(images_valid,FLAGS.hidden1,FLAGS.hidden2)

test_prediction=mnist.inference(images_test,FLAGS.hidden1,FLAGS.hidden2)

loss = mnist.loss(logits, labels)

train_op = mnist.training(loss, FLAGS.learning_rate)

eval_correct=mnist.evaluation(logits,labels)

eval_correct_valid=mnist.evaluation(valid_prediction,labels_valid)

eval_correct_test=mnist.evaluation(test_prediction,labels_test)

summary_op=tf.merge_all_summaries()

init_op = tf.group(tf.initialize_all_variables(),
                   tf.initialize_local_variables())

saver = tf.train.Saver()
sess = tf.Session()

sess.run(init_op)

summary_writer = tf.train.SummaryWriter(FLAGS.train_dir, sess.graph)

coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(sess=sess, coord=coord)

try:
  step = 0
  train_precision=0
  validation_precision=0
  test_precision=0
  #while not coord.should_stop():
  while not coord.should_stop():
    start_time = time.time()

    _, loss_value,images_see,labels_see = sess.run([train_op, loss,images,labels])

    duration = time.time() - start_time

    if step % 100 == 0:
      print('Step %d: loss = %.2f (%.3f sec)' % (step, loss_value,
                                                 duration))
      precision_tr=do_eval(sess,eval_correct)
      summary_str=sess.run(summary_op)
      summary_writer.add_summary(summary_str,step)

    if (step + 1) % 1000 == 0 or (step + 1) == FLAGS.max_steps:
      checkpoint_file = os.path.join(FLAGS.train_dir, 'model.ckpt')
      saver.save(sess, checkpoint_file, global_step=step)
      print('Train:')
      do_eval(sess,eval_correct)
      print('Validation:')
      do_eval(sess,eval_correct_valid)
      print('Test:')
      do_eval(sess,eval_correct_test)

    step += 1

except tf.errors.OutOfRangeError:
  print('Done training for %d epochs, %d steps.' % (FLAGS.num_epochs, step))
finally:
  coord.request_stop()

coord.join(threads)
sess.close()

run_training()
`
and the tensorboard is as the picture

This is a general support question best suited to StakcOverflow.  Could you please re-ask your question there.

@prb12 I think you should not close it, maybe it is best suited to StackOverflow, but the people who use tensorboard here is more than StackOverflow, people could get more suggests. Although I have re-asked in StackOverFlow

It is not simply a question of "getting more suggestions here".   Every "issue" reported here consumes a significant amount of developer time to track, triage, diagnose etc.
To quote from https://www.tensorflow.org/versions/master/resources/index.html:
Help / Support / How do I?
For help and support, technical or algorithmic questions, please submit your questions to Stack Overflow: https://stackoverflow.com/questions/tagged/tensorflow. You may also find answers in our FAQ, our glossary, or in the shapes, sizes and types guide. Please do not use the mailing list or issue tracker for support.
Discussions
For general discussions, please join the TensorFlow discuss mailing list. This list is intended for general discussions about TensorFlow development and directions, not as a help forum. Instead, direct your questions to Stack Overflow, and report issues on GitHub.
Report Issues
Please report bugs, feature requests and installation / compatibility issues on the TensorFlow issues tracker on GitHub. If you need help with using TensorFlow, please do not use the issue tracker for that. Instead, direct your questions to Stack Overflow.

@prb12 Ok, fine, I got it. Thanking you for noticing all these things to me


help(MatTabs): Click events on tab children will not fire 14 -> 15 change

What are you trying to do?
This appears to be a breaking change in behavior in Angular Material 15's new components.
We have a label click that loads a route and a menu icon that expands a menu in the same tab.
I have a simple setup:
<div mat-tab-nav-bar>
  <a mat-tab-link>
    <span (click)="labelClicked()">My Tab</span>
    <mat-icon (click)="iconClicked()">expand_more</mat-icon>
  </a>
</div>

On Angular Material 14 I have no issues with both of these click handlers firing.
On Angular Material 15 neither of the click events will happen.
What do I need to do to get this working again?
What troubleshooting steps have you tried?
I'm not sure where to begin with troubleshooting this. Events simply are not firing on child elements. The DOM seems set up correctly, but I suspect the new tab API is catching the click and blocking my handlers?
These are the NEW components, not the legacy ones.
Reproduction
Steps to reproduce:

Angular 13 https://angular-ivy-91vniw.stackblitz.io
Angular 15 https://angular-ivy-wjcmsc.stackblitz.io

Environment
This is easily reproduced on StackBlitz.

Our environment is more complicated.
Angular 15.3.3
Node : 16.14.2
OS   : darwin x64
npm  : 8.5.0
Chrome: 109.0.5414.87

The answer to this is to add pointer-events: auto to the style of the child elements that need to be clickable.


label extension: Clarify requirements around Link "label:assets" property

This section of the label extension spec specifies that:

... the link has a new Label specific field:

element
type info
name
description

label:assets
[string]
Assets
The keys for the assets to which the label applies

This is useful for LabelItems with multiple "label" assets that apply to different source imagery so that the linked source imagery can be tied to the label asset that was generated from that source.
However, for LabelItems that only supply one label asset, this seems extraneous. There is not a statement of whether or not this additional link-level information is required or optional; this should be clarified in the spec.

Ah - I think I understand what this is for now. The assets in the "label:assets" property of the source Link should describe the asset in the source Item to which the labels of the label Item apply to.
If that's the right read, I'm happy to clarify the docs.
The requirement component is still an outstanding question though...should this be a requirement of all source Links? Or only apply in situations where a source Item contains assets in which the labels do not apply? Perhaps it should be "STRONGLY RECOMMENDED."?

You got it right, a link with rel=source is the STAC Item from which all these labels were created from, and you could of course have multiple source links.
I was confused as well because I was looking at the SpaceNet examples, where the source links are pointing directly to a TIF, but they instead need to point to an Item.   So we either need to create an Item for the source imagery (if there is source imagery beyond the rendered one included with the Label Item, or we should remove those source links.   @nrweir I think your intention was to have a separate catalog for the SpaceNet imagery, was that right?

@matthewhanson thats correct. I'm just finishing up reorganizing all of the SpaceNet data and making COGs where they're missing - once I'm done I'll build the new catalog.

This looks merged.


[MM-46808] Add Calls keyboard shortcuts to in product help modal

Summary
PR adds Calls related keyboard shortcuts to the in product help modal.
@amyblais We are trying to get this in 7.3 if possible as work on calls side is wrapping up but we'd still like to document these in product so having to make a minor change here as well. It should not alter any functionality of course. Let me know if that makes sense.
/cc @tanmay-des @itao
Ticket Link
https://mattermost.atlassian.net/browse/MM-46808
Related Pull Requests
https://github.com/mattermost/mattermost-plugin-calls/pull/168
Screenshots

Linux/Windows:

Mac:

Release Note
Added Calls keyboard shortcuts to help modal.

Not sure if it should be in this PR, but: because of the new height of the modal, it renders below the bottom of the main screen for me. This means you have to scroll inside the modal to see all the content within the modal (as expected), but you also have to scroll the main window to see the bottom of the shortcuts modal (unexpected).

Yeah, I've noticed that. It's slightly annoying, I'll look into it.

@cpoile Could I bother you to give it another try with the last commit on top?

Works now, thanks! (as an aside -- there are so many calc(100vh - xpx) in the code base, and they're almost all different cry)

Indeed, something to tackle another day though :p

@justinegeffen Going to merge now, please let me know if there's anything else.

Cherry pick is scheduled.


fix bug for save wrong session id

fix bug for save wrong session id

Please add some description in the commit, like:

Fix bug for saving wrong session id

@leeyr338 You are in charge of this.


v2.9.4: argo server shows Built without static files

Summary
Should be able to run argo server and see UI, but instead saw "Built without static files".
Diagnostics
version="{v2.9.4+20d2ace.dirty 2020-07-25T08:30:49Z 20d2ace3d5344db68ce1bc2a250bbb1ba9862613 v2.9.4 dirty go1.14.5 gc darwin/amd64}"

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

Looks like it was fixed in 2.9.5

This is from the Github release page?

Good news.

I installed v2.9.5 from homebrew, but it still has this error.
$ argo version
argo: v2.9.5+5759a0e.dirty
  BuildDate: 2020-08-07T20:49:00Z
  GitCommit: 5759a0e198d333fa8c3e0aeee433d93808c0dc72
  GitTreeState: dirty
  GitTag: v2.9.5
  GoVersion: go1.14.6
  Compiler: gc
  Platform: darwin/amd64

This is a duplicate of #3769


Schema resolution isn't playing ball

Hello,
I have written a schema resolver
{   "schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",   "data": {     "cacheSize": 1000,     "repositories": [       {         "name": "Iglu Central",         "priority": 0,         "vendorPrefixes": [ "com.snowplowanalytics" ],         "connection": {           "http": {             "uri": "http://iglucentral.com"           }         }       },       {         "name": "Acme Iglu Repo (HTTP)",         "priority": 5,         "vendorPrefixes": [ "com.pubfactory" ],         "connection": {           "http": {             "uri": "https://s3-eu-west-1.amazonaws.com/igluresolver"           }         }       }     ]   } }
And I am trying to test it with an iglu url of iglu:com.pubfactory/myschema/jsonschema/1-0-0
Yet it keeps telling me it can't find the schema yet if I put in the url
s
https://s3-eu-west-1.amazonaws.com/igluresolver/schemas/com.pubfactory/myschema/jsonschema/1-0-0 it downloads the file,
I am missing something but I am not sure what,
Thanks,
Alex

Hi @AlexCraddock - can you direct any support requests to our forums please:
https://discourse.snowplowanalytics.com/


swap_dims() incorrectly changes underlying index name

MCVE Code Sample

import xarray as xr

# create data array with named dimension and named coordinate
x = xr.DataArray([1], {"idx": [2], "y": ("idx", [3])}, ["idx"], name="x")

# what's our current index? (idx, this is fine)
x.indexes
# prints "idx: Int64Index([2], dtype='int64', name='idx')"

# swap dim so that y is our dimension, what's index now?
x.swap_dims({"idx": "y"}).indexes
# prints "y: Int64Index([3], dtype='int64', name='idx')"

The dimension name is appropriately swapped but the pandas index name is incorrect.
Expected Output
# swap dim so that y is our dimension, what's index now?
x.swap_dims({"idx": "y"}).indexes
# prints "y: Int64Index([3], dtype='int64', name='y')"

Problem Description

This is a problem because running x.swap_dims({"idx": "y"}).to_dataframe() gives
a dataframe with columns ["x", "idx"] and index "idx". This gives ambiguous names and drops the original name, while the DataArray string representation gives no indication that this might be happening.


[RFE] Fix Helm chart repository

Description
Thanks for the new chart! However I noticed the chart Repository is not available yet.
helm repo add headlamp https://kinvolk.github.io/headlamp/ reports a 404.
As a bonus, it would be nice to add this Helm Repo to https://artifacthub.io/.
Impact
Folks can pull your Helm chart directly without needing to download from Github releases.
Environment and steps to reproduce

run helm repo add headlamp https://kinvolk.github.io/headlamp/  and see that it returns a 404
or simply go to https://kinvolk.github.io/headlamp/ and see 404

Expected behavior
The repository is successfully added when run helm repo add headlamp https://kinvolk.github.io/headlamp/ and a subsequent command of helm show chart headlamp/headlamp returns the chart.yaml

Hi @FlipEnergy . Thanks for reporting!
We hadn't yet published the github page for holding the repo. Can you double check it now?

Looks like I can add the Repo now but the chart itself is missing. I took a look at the gh-pages branch and it seems I'm right.
$ helm repo add headlamp https://kinvolk.github.io/headlamp/
"headlamp" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "headlamp" chart repository
Update Complete. ⎈Happy Helming!⎈
$ helm search repo headlamp
No results found
[dennis@DENNIS-DESKTOP ~]$ helm show chart headlamp/headlamp
Error: failed to download "headlamp/headlamp" (hint: running `helm repo update` may help)

Thanks. We'll look into it.

I hadn't noticed the actual log for the action (or I'd realize it'd not have published anything before). Should be fine now.
Thanks!


feat(sbb-train-formation):  initial implementation

Preflight Checklist

[x] I have read the Contributing Guidelines for this project.
[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the pull request tracker for a Pull Request (PR) that matches the one I want to submit, without success.

Issue
This PR Closes #1428
Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)

See Review Guidelines for more information what is checked during review process.
Changes
Changes in this pull request:

Introduce the new sbb-train-formation, sbb-train, sbb-sector and sbb-wagon components

Browsers
I tested the build on the following browsers:

[x] Firefox Desktop
[x] Chrome Desktop
[x] Edge Desktop
[x] Safari Desktop
[ ] Chrome Mobile
[ ] Safari Mobile

Screen readers
I tested the build on the following browsers:

[ ] JAWS Firefox Desktop
[ ] JAWS Chrome Desktop
[x] NVDA Edge Desktop
[ ] NVDA Chrome Desktop
[ ] VoiceOver Safari Desktop
[x] VoiceOver Chrome Desktop
[ ] VoiceOver Safari Mobile
[ ] Android Accessibility Suite Chrome Mobile

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

Codecov Report

Merging #1462 (1bc1675) into master (ab917b0) will decrease coverage by 0.73%.
The diff coverage is 64.04%.

@@            Coverage Diff             @@
##           master    #1462      +/-   ##
==========================================
- Coverage   54.85%   54.11%   -0.74%
==========================================
  Files          49       72      +23
  Lines        1659     2903    +1244
  Branches      406      765     +359
==========================================
+ Hits          910     1571     +661
- Misses        671     1222     +551
- Partials       78      110      +32

Impacted Files
Coverage Δ

...mponents/sbb-accordion-item/sbb-accordion-item.tsx
0.00% <0.00%> (-37.21%)
:arrow_down:

src/components/sbb-clock/sbb-clock.tsx
0.00% <0.00%> (ø)

src/components/sbb-link/sbb-link.tsx
59.57% <ø> (-31.86%)
:arrow_down:

src/components/sbb-logo/sbb-logo.tsx
0.00% <ø> (ø)

src/components/sbb-menu-action/sbb-menu-action.tsx
65.21% <ø> (ø)

src/components/sbb-menu/sbb-menu.tsx
25.89% <ø> (ø)

...ents/sbb-pearl-chain-time/sbb-pearl-chain-time.tsx
100.00% <ø> (ø)

...in-vertical-item/sbb-pearl-chain-vertical-item.tsx
93.75% <ø> (ø)

...-pearl-chain-vertical/sbb-pearl-chain-vertical.tsx
100.00% <ø> (ø)

src/components/sbb-pearl-chain/sbb-pearl-chain.tsx
67.74% <ø> (-3.69%)
:arrow_down:

... and 52 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix not to generate redundunt change logs

#48
This PR fixes redundant change logs (including commits from old release) listed on a release page.

thanks! I modified the changelog of the latest release. I will try this in the next release.

Thank you for the modification and rereview!


refactor: make importance of phase order obvious

I like this patch. However, I think the exiting implementation has the right level of simplicity for a reference-addon.
Now, i wonder whether it is better to keep it as it is. 🧑💻🤔

I like this patch. However, I think the exiting implementation has the right level of simplicity for a reference-addon.
Now, i wonder whether it is better to keep it as it is. technologistthinking

@nikhil-thomas updated this to a var name change to make the importance of ordering more obvious. I think this is a simpler way to achieve the same clarity.