[Feature Request] Updates on getting OpenCL and CUDA GPU support?

Gratings WSL team,
I just want to again bring up the good old "OpenCL and CUDA GPU support" topic that has been discussed many times.
Numerous previous discussions (e.g. #829 #1788 #327 ) have directed people like me to this highly voted feature request on User Voice forum. As a matter of fact, it is the HIGHEST voted feature request on the forum (which has more than 2 times the votes than the second requested feature, as of 1/20/2019). I saw a survey (#2422 ) done on August 2017, presumably to collect some early user preferences for initial project targeting. The last update on the User Voice forum was on April 2018 which was 10 months ago.
If possible, could you guys please let us know the status of this feature request and ideally, what's the estimated time frame of this project? Will we see an update in the next few months, or by the end of this year?

Closed. Silence. Love it

Guys, this is what our developers are mainly going to use WSL for (other than some types of IoT development). Would love to hear some update for this.

Not trying to blame the team or anything, my guess is that this is one of those features that is too complicated for the team to address given the current support they are getting from MS and other factors internally and externally (third-party drivers, etc.).
Given the current feedback from everywhere, I would guess GPU support is not going to come in the near future. I have switched to dual boot native Ubuntu for that reason though it's not the ideal solution (definitely less convenient than WSL + GPU support).

@chenchen2015 agreed. It's a shame VirtualBox / Docker can't (or too hard) to get GPU support either, dual-boot is only option at present

my guess is that this is one of those features that is too complicated for the team to address

That doesn't appear to be the case. The devs have held two questionnaires on CUDA here and here. If this was in the "yeah, never going to happen because impossible" category (like say, probably, insmod native-linux-kernel-module) then one wouldn't go to the trouble to conduct a survey.
The entirely-not-silent response the question posed in this duplicate issue submission was:

We are quite aware of the demand of this feature and are working to see how best we can support it..... The challenge here is not just technical but also logistical and other. Because there are multiple players involved here, and not everything is in direct control. But, we are exploring all possibilities here.

Separately,

what's the estimated time frame of this project?

Imagine, just for a moment, if opening a duplicate issue on a github bug tracker was actually an effective way to get an answer to that. Say, more effective than adding a me2 or +1 to an existing issue (also ineffective).
If there was an estimated time frame for CUDA on WSL it goes without saying that the UserVoice status would have flipped from "on the backlog" to "working on it" and you'd have got an email notification answering the rhetorical. The as-of-this-instant the answer being... no... there is no estimated time frame for this project. Which is a altogether different answer than there is no timeframe and never will be because impossible.

It's a shame VirtualBox / Docker can't (or too hard) to get GPU support either

Indeed. This is a good-as-any reason to hold out optimism. Unlike say the ever-popular nmap ask there isn't a good (or at least, particularly ideal) CUDA story on Windows for the out-of-box Linux-first tooling people are asking for.

Here is how I got it working with a little bit of hacking http://www.erogol.com/using-windows-wsl-for-deep-learning-development/
Hope it helps!!

GPU support seems to be on WSL 2 feature backlog as well (with high priority) according to Microsoft Docs on WSL 2

Can I access the GPU in WSL 2? Are there plans to increase hardware support?
In initial releases of WSL 2 hardware access support will be limited, e.g: you will be unable to access the GPU, serial or USBs . However, adding better device support is high on our backlog, as this opens many more use cases for developers that wish to interact with these devices. In the meantime, you can always use WSL 1 which has serial port and USB access. Please stay tuned to this blog and WSL team members on Twitter to stay informed about the latest features coming to insider builds and reach out to give us feedback on what devices you’d like to interact with!

Thanks, WSL team! Looking forward to see how this goes...

WSL 1 which has serial port and USB access.

That line has been nagging me a mildly, because it conflates USB device support with RS232 devices support that happens to be implemented on a Universal Serial Bus. That confuses rather than informs the answer to the FAQ question "Can I access the GPU in WSL 2". There is no USB device access in WSL1, which is #2195 #3745 and a dozen dupes with informal landing zone #412.
[Funny thing, in the context of the question: you can do compute over a USB interface -- if we had USB support.]
Which is not a complaint that USB device support is missing in either WSL2 or WSL1 (I have no horse in that race). Just that the whole "in the meantime" clause above will lead to people to believe they need to be on WSL1 for USB device support; which does not exist.

At this point, you are better off spinning up a nix VM in the cloud

At this point, you are better off spinning up a nix VM in the cloud

But then you can't justify buying large GPUs for your engineers so they can play games in spare time.

This is one of the first Google results for "WSL Cuda". I guess it's worth mentioning that it's going to finally happen soon https://developer.nvidia.com/cuda/wsl.

@XenorPLxx Nice find.
Has anyone found any concrete examples or tutorials on WSL 2 and CUDA, yet??

There's a little bit of info here and there, but the timeframe states 'in few months', so I guess it's not coming to us that "soon".

It is stated here that a public preview will start in June https://news.developer.nvidia.com/microsoft-and-nvidia-announce-june-preview-for-gpu-acceleration-support-for-wsl/
(It seems you need to be in the Windows Insider Fast Ring and apply for the Nvidia Developer Program, both is free and easy to do)

Thank you for the swift replies, and useful links @XenorPLxx and @Erik-Sovereign
I am perplexed. I am a member of both the Windows Insider Fast Ring, as well as the Nvidia Developer Program, but there still seems to be no support, or even documentation at this point...
I have been searching all day. I even attempted to see if it worked out-of-the-box as claimed, but WSL2 doesn't seem to come with Dxgkrnl, d3d12, or anything.

@everyone
https://blogs.windows.com/windowsdeveloper/2020/06/17/gpu-accelerated-ml-training-inside-the-windows-subsystem-for-linux/
Looks like it might be part of a a recent patch: Windows 10 Insider Preview 20150.1000 (rs_prerelease)

Has anyone successfully gotten this to work? I am able to run a CUDA sample application, however having issue installing OpenCL afterwards (followed this: https://gist.github.com/Brainiarc7/dc80b023af5b4e0d02b33923de7ba1ed). clinfo shows Number of platforms: 0
Trying to get OpenCV for python3 working with GPU acceleration

I need OpenCL to run olcvanitygen!

It works although Triton workflows are not yet there.

All frameworks and applications such as OpenCL and Triton need to adjust their code for WSL as the CUDA driver is not exposed in the same way as barebone driver. It is possible that in the next release of the driver Nvidia will modify it so it looks the same, but the current situation is different.
cc @deadeyegoodwin

I couldn't find this information. Is there (or will there be) GPU/CUDA support in WSL 1?

Ohhhhh, hmmmmm, Maybe you just need WSL 2.

Went for WSL 2, works like a charm.

The CUDA GPU support is obviously out but if anybody is interested in OpenCL, it might be worth paying attention to this issue:
https://github.com/microsoft/WSL/issues/6951


Add a new section Review to contributor docs

As discussed on the hacking session, let's add a new section Review covering various forms of the pull request review. Also add a bit of structure to the Pull Requests section.
Pull Request Checklist

[x] write the documentation
[x] include a release note

With this pull request we've hit the record on the number of the reviews!


Pass options to OpenALPR

Is there any way currently to pass options to the OpenALPR recognizer -- plate formate, country code, etc.?

Thank you so much, @emrosenf -- excited to try it out tonight!

You're welcome, let me know how it works

I had a couple mins -- worked flawlessly, even just on screen grabs of plates!
https://streamable.com/kdjcw

Nice! Thanks for the update and the video


Intermediate states not written out in DataPrepModule

From Thomas Kosc:

Hi David, I hope you're doing good. I have a question for you regarding a module with your name on it (but since sometime people might forget to update this info this question might  not be for you in the end !).
https://github.com/DUNE/dunedataprep/blob/develop/dunedataprep/DataPrep/Module/DataPrepModule_module.cc
It's on the DataPrep module. I want to record the intermediate states, thus I added in the fcl file the line :
physics.producers.caldata.IntermediateStates: ["extracted", "mitigated", "noiseRemoved"].
As stated in the module on l15, these vector are stored empty in standard production. How can I make these vectors to be non-empty, to actually be able to have a look at what's inside ?

Thomas:
That feature was requested back around 2016 but I don’t know that anyone ever used it. I can take a look but need a pointer to your top-level fcl (and any missing intermediaries). That module has mostly been superseded by DataPrepByApaModule which does not have the intermediate state feature but adds many others most importantly the option to process one APA (and now CRU) at a time to reduce the memory footprint.
I do sometimes want to look at the data at intermediate stages but I do this with separate jobs using different tool lists list of tools. If you look at the sequence definitions, e.g. pdsp_dataprep_sequnces.fcl for ProtoDUNE, you will see there are sequnces names for just this purpose.

It may be easy to resolve your immediate issue, e.g. by making sure the data has the labels indicated in your config but I first ask you to consider using separate jobs.

No reponse from Thomas. I assume this is resolved as suggested.


Correct Typo on Create Pull Requests and modify the link

Correct this typo to:
Create Pull Request
New link: https://github.com/chryz-hub/opensource-4-everyone/blob/master/My-PR-Contribution-Practice.md

https://github.com/chryz-hub/chryz-hub.github.io/blob/d77bd6b5f22a1bbc397a96ed4eef03221a7ca8ac/index.html#L86

Thanks, @schmelto.

https://github.com/chryz-hub/chryz-hub.github.io/blob/d77bd6b5f22a1bbc397a96ed4eef03221a7ca8ac/index.html#L86


Peer Sharing

Description
This PR is a WIP of the Peer Sharing feature. More details about the design and planning see here: https://github.com/input-output-hk/ouroboros-network/wiki/Peer-Sharing-Planning
Checklist

Branch

[x] Commit sequence broadly makes sense
[x] Commits have useful messages
[x] New tests are added if needed and existing tests are updated
[ ] If this branch changes Consensus and has any consequences for downstream repositories or end users, said changes must be documented in interface-CHANGELOG.md
[ ] If this branch changes Network and has any consequences for downstream repositories or end users, said changes must be documented in interface-CHANGELOG.md
[ ] If serialization changes, user-facing consequences (e.g. replay from genesis) are confirmed to be intentional.

Pull Request

[x] Self-reviewed the diff
[x] Useful pull request description at least containing the following information:

What does this PR change?
Why these changes were needed?
How does this affect downstream repositories and/or end-users?
Which ticket does this PR close (if any)? If it does, is it linked?

[x] Reviewer requested

bors retry

bors retry

bors retry

bors retry

bors retry

bors merge


Revise FastlaneCore::FastlaneFolder.path

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Description

Remove the code below from FastlaneCore::FastlaneFolder.path.
value = nil if Helper.is_test? # this is required, as the tests would use the ./fastlane folder otherwise

Motivation and Context

value = nil if Helper.is_test? should not be there, because it's only for testing.
We can handle this in rspec side.

I tried to make this change as simple as possible because the main target of this change is #8380.
I also plan to remove other Helper.is_test? after this get merged.

@mfurtak @KrauseFx
I updated this PR! Could you review?

@mfurtak Thanks 🚀


bug: Cairo runner does not support array arguments larger than 2^15

Bug Report
Cairo version:
737cc88d14a17e1e8b46a6d2d4061aa4b6984980

Current behavior:
When running a program with an array argument that is of length 32768:

In debug mode: Cairo runner fails with overflow when tries to increment the allocation pointer while loading arguments;
In release mode: Cairo runner loads arguments without errors postponing the memory issue to the cairo-vm execution.

Expected behavior:
Cairo runner works without errors in both debug and release, there are no memory issues during the cairo-vm execution.

Steps to reproduce:
Unit test:
https://github.com/m-kus/cairo/pull/1/files

Related code:

The minimal program to reproduce the issue:
fn main(args: Array<felt252>) {}

Other information:
Possibly related:

https://github.com/lambdaclass/cairo-vm/issues/1848#issuecomment-2397683850
https://github.com/lambdaclass/cairo-vm/pull/1759

When the arg size is large the ap_offset that is tracking ap overflows here: https://github.com/starkware-libs/cairo/blob/737cc88d14a17e1e8b46a6d2d4061aa4b6984980/crates/cairo-lang-runner/src/lib.rs#L864.

This should be done as part of https://github.com/lambdaclass/cairo-vm/pull/1759 - as the issue is the amount of instructions created for this explicit array creation.
Is going to be solved at the future when the code isn't actually changing by the specific inputs it received.
In the near future we should have a way of running code, where the input is always a Span of felts and the output is always a Span of felts, where both are directly deserialized (from the inputs) and serialized (into the output builtin) providing a provable method of run.
So basically - it isn't a bug - as this was just for local purposes (as cairo-run didn't actually run anything provable, so i would have expected it to work) - but the missing feature should exist soon enough.


@root should be %root

I think currently we're never accessing it through a template. If we want to keep templates encapsulated we might want to prevent access to the root anyway.

I'm not sure what that means.  All I know is can/component has:
initialScopeData = {
"@root": componentTagData.scope.attr("@root")
},
and that needs to change.

can-ssr: https://github.com/canjs/can-ssr/blob/master/lib/extension.js#L157


Optionally include non-production dependencies

Dependency sources currently exclude non-production dependencies, e.g.:
https://github.com/github/licensed/blob/d39cae6bb5dfccfd3df9bd847de73618690b419e/lib/licensed/source/npm.rb#L55
https://github.com/github/licensed/blob/d39cae6bb5dfccfd3df9bd847de73618690b419e/lib/licensed/source/bundler.rb#L36-L39
It might be good to have an option to include all dependencies, should a user wish to use licensed to track development dependencies as well as production.

As a note, the bundler source was updated to support including non-production dependencies  in https://github.com/github/licensed/pull/54.  This is shipped as part of the 1.2.0 release.


[json-language-features] Error while computing completions: Maximum call stack size exceeded

environment
版本: 1.41.1 (user setup)
提交: 26076a4de974ead31f97692a0d32f90d735645c0
日期: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18362

Steps to Reproduce:

create a json file
set "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json"
trigger auto complete by typing or key stroke

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

whats happen

log tab: JSON Language Server
cancelled
[Error - 上午2:36:52] Error while computing completions for file:///w%3A/test.json: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:1:1)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)
    at e.addDefaultValueCompletions (c:\Users\GongT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:70731)

If you are the author of that schema:
The definition of anything seams a bit pointless. If you allow any type, just use {}.

Obviously, I am not LOL. That schema comes from microsoft.
I can't confirm they fixed it or not these days. I will open an issue to rushstack if I got this again.
Thanks!


How to create a post API?

Hello, Sir
I am using this library but I do not create a POST API.
I am Using CakePHP 3.6

Hey, there is nothing to do with the plugin. It just provides a way to send the response back in JSON format. You can make any type of request as you do normally with CakePHP.
Now, what exactly you want to do? Please explain your problem in details, so I can help you out.

How can I perform a POST request using this Plugin?
can you give me an example?
thanks

Okay, below is an example of configuring a POST request which returns JSON response using this plugin.
Assuming your CakePHP application is running at http://cakephprest.local,

Setup a route

Okay, below is an example of configuring a POST request which returns JSON response using this plugin.
Assuming your CakePHP application is running at http://cakephprest.local,

Setup a route

In your config/routes.php, define a route.
$routes->connect('/foo/bar', ['controller' => 'Foo', 'action' => 'bar', 'isRest' => true]);

Create a FooController and define the bar action which accepts POST request only.

<?php

namespace App\Controller;

use Rest\Controller\RestController;

/**
 * Foo Controller
 *
 */
class FooController extends RestController
{

    /**
     * bar method
     *
     * @return Response|void
     */
    public function bar()
    {
        // Only accept POST request
        $this->request->allowMethod(['post']);

        // prepare your data to send back as response
        $reqData = $this->request->getData();
        $bar = [
            'reqData' => $reqData,
            'falanu' => [
                'dhikanu',
                'tamburo'
            ]
        ];

        $this->set(compact('bar'));
    }
}

Make a request

You can make a request using curl or Postman or similar ones, below is a basic curl request example.
<?php
$url = 'http://cakephprest.local/foo/bar';

try{
    $postFields = [
        'email' =><EMAIL_ADDRESS>        'password' => 'yourpassword'
    ];

    $ch = curl_init();
    curl_setopt_array($ch, array(
        CURLOPT_URL => $url,
        CURLOPT_POST => true,
        CURLOPT_POSTFIELDS => $postFields,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HEADER => false,
        CURLOPT_SSL_VERIFYPEER => false
    ));

    $result=curl_exec ($ch);
    curl_close ($ch);

    echo $result;
}
catch(Exception $ex){
	echo $ex->getMessage();
}

Thank for example, it is working fine


Make fixes to _get_user_count

This commit does two things:

Never use len(bot.guilds), even if the members/presence intent is enabled. This is because members intent does not guarantee that the members are actually cached. In fact, in my case, I do not cache (chunk) guilds at startup because that would take a ridiculous amount of memory.
I could be wrong, but I think sum() and list comprehension is faster than a for loop and +=. It still checks if guild.member_count is an actual attribute and it still checks if guild.member_count is None, so it won't break anything.

I tested the code inside of the _get_user_count, but I didn't test this as a whole.

Actually, nevermind on this. I'm going to create a larger PR that will "fix" a few other things.


Query validation error updating Date field

Bug description
Attempting to update a Date field throws a query validation error after update to version 2.6.1
Error:
Invalid `prisma.entity.update()` invocation in\n/home/node/traction-data-prisma/src/prisma-entity-repository.ts:324:49\n\n\n  Failed to validate the query `Error occurred during query validation & transformation:\nMutation (object)\n  ↳ updateOneentity (field)\n    ↳ data (argument)\n      ↳ entityUpdateInput (object)\n        ↳ yearEndDate (field)\n          ↳ Value types mismatch. Have: String(\"2020-12-31T00:00:00.000Z\"), want: Object((Weak))` at `.Mutation.updateOneentity.data.entityUpdateInput.yearEndDate`

How to reproduce
Given the following DB/Prisma schema, try to update the yearEndDate field.
Simplified PostgreSQL table:
CREATE TABLE IF NOT EXISTS "entity" (
  "id" uuid NOT NULL DEFAULT uuid_generate_v4(),
  "yearEndDate" date NOT NULL
  PRIMARY KEY ("id")
);

Schema Model:
model entity {
  id                        String             @default(dbgenerated()) @id
  yearEndDate               DateTime
}

Entity Update Type:
export type entityUpdateInput = {
  id?: string | StringFieldUpdateOperationsInput
  yearEndDate?: Date | string | DateTimeFieldUpdateOperationsInput
}

Update Entity:
this.client.entity.update({
            where: { id },
            data: {
                yearEndDate: input.yearEndDate
            }
        })

Expected behavior
In version 2.5.1, the field was updated without an error.
Expect it to update without an error in version 2.6.1
Environment & setup

OS: Windows
Database: PostgreSQL
Node.js version: 12.16.1
Prisma version: 2.6.1

Same issue here.
error:
Invalid `ctx.prisma.authDevice.update()` invocation in /Users/alan/Documents/app/nacho/prismaTs/src/resolvers/subAction/manageAuthDevice.ts:62:55   58 const region = geo && geo.region ? geo.region : ''   59 const eu = geo && geo.eu ? geo.eu : ''   60 const city = geo && geo.city ? geo.city : ''   61  →  62 const newAuthDevice = await ctx.prisma.authDevice.update( Failed to validate the query `Error occurred during query validation & transformation: Mutation (object) ↳ updateOneAuthDevice (field) ↳ data (argument) ↳ AuthDeviceUpdateInput (object) ↳ lastLogin (field) ↳ Value types mismatch. Have: String("2020-09-03T22:41:15.353Z"), want: Object((Weak))` at `.Mutation.updateOneAuthDevice.data.AuthDeviceUpdateInput.lastLogin`

code:
    const newAuthDevice = await ctx.prisma.authDevice.update({
      data: {
        lastLogin: new Date(),
      },
      where: {
        id: authDevice.id,
      },
    })

In version 2.5.1, the field was updated without an error.
Environment & setup
OS: MAC
Database: MUSQL
Node.js version: v12.18.3
Prisma version: 2.6.1
I rollback to 2.5.1 for now.

Thank you for opening this issue, I'm looking into it and a patch will be available soon 👍

So we have a fix in our development build 2.6.2-dev.1 (not recommended for production usage) it will be part of the official 2.6.2 patch release soon.

2.6.2 is released 😃
https://github.com/prisma/prisma/releases/tag/2.6.2

@Jolg42 Confirmed this is fixed in 2.6.2. Thanks!!


fix: [#4204] Fix remaining eslint warnings - botbuilder-dialogs-adaptive

Addresses # 4204
#minor
Description
This PR fixes the ESLint and JSDoc issues in the botbuilder-dialogs-adaptive library.
Note: we excluded the @typescript-eslint/no-explicit-any and @typescript-eslint/explicit-module-boundary-types to tackle those issues as a separate task as they require deeper analysis and testing.
Specific Changes

Applied auto-fixes with yarn lint --fix

Fix spacing.

Applied manual fixes for:

Missing documentation.

Moved devDependencies to the Dependencies section.

Testing
Here we can see the eslint status before and after.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage remained the same at 84.485%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
19909

Relevant Lines:
22316

💛  - Coveralls

/promoted 4230


clang-tidy and cppcheck

Clang-tidy now runs with the same checks (from .clang-tidy) on native and stm32. The issue was a missing dependency (libtinfo5) that clang-tidy needs to run in platformio checks, but it doesn't complain if it's missing.
Cppcheck is now also working for native.
Both clang-tidy and cppcheck checks have been added to the controller test script and set to fail on high level defects in CI.
Pertains to #132
TODO:

cppcheck for stm32 (and both checks for the rest of the environments)
clang-tidy for the GUI, probably using something like bears

Including controller/test causes cppcheck to look through the googletest libraries in controller/.pio. I think this is because of the include directives to the gtest header files in our test code.
To mitigate errors on CI, controller/test is omitted from cppcheck and clangtidy checks in the native and stm32 sections for now.
Checked with the pio forums here: https://community.platformio.org/t/different-patterns-for-different-check-tools/15654


SAS NBextensions for Jupyter Lab

New to the SAS kernel for Juypter - after a lengthy discussion with Jared Dean at Global Forum 2019 I'm finally up and running.
I installed the SAS NBextension for the SAS log with the following statements successfully.  My admin said to use --user since it was just for me:
jupyter nbextension install --py sas_kernel.showSASLog --user
jupyter nbextension enable sas_kernel.showSASLog --user --py
The extensions worked in a Jupyter notebook (yay, full log!) but not in Jupyter Lab.  We apparently have users of each.  I am not sure if this is supposed to work in Jupyter Lab or not.  If yes, then I'm open to suggestion on how to install, and if not, I'm curious if it could be added.
More generally, is the level of support the same for both or is one preferred?
Thanks,
Bruce

Hey @bruceuser, if I remember correctly, when Lab came out, the extensions didn't work in it; I think that was implemented differently in Lab. What Jared did was to just add a couple of Jupyter Magics, to the SAS_kernel that you can use to see the log for the last cell run, or the full log of the session:
%showLog
%showFullLog
Give these a try and see that they give you what you used to get via the widgets in Notebook. This is a better implementation, in that you get the log(s) right inline in your notebook instead of in a different browser window.
Tom

Hi Tom.  Thanks!  %showLog and %showFullLog both worked nicely in both Jupyter notebook and Jupyter Lab.  Problem solved.
I suggest that this info be added to the SAS log question in the FAQ at
https://sassoftware.github.io/sas_kernel/overview.html
Thanks,
Bruce

Awesome, glad to hear that. Yes, I first looked at the doc to find this and didn't. We certainly need to add this into the SAS_kernel doc!
Thanks!
Tom

Speaking of the SAS_kernel doc, I looked at the Jupyter magics section and did some testing.  From what I can see, a macro definition on the first line in the notebook cell causes the problem.  But, it seems like the following on the first line do not:

Macro invocation.
%LET to define a macro variable, e.g., %let myvar=abc;
%PUT to write text to the log, e.g., %put &myvar;
In 9.4MTS1M6 (this is a relatively new feature), %IF-%THEN/%ELSE statement in open code (outside of a macro), e.g.,
%if %sysfunc(weekday(%sysfunc(today()))) eq 2 %then %do;
proc print data=sashelp.class; run;
%end;

Is that correct?  This differs from the doc which refers to macro variables and running a macro.
Thanks,
Bruce

Well, I will have to defer this to @jld23, since he wrote this kernel. But, I thought the simple answer was submit a jupyter magic as the first line in a cell, but if you have a SAS macro (both start w/ %), then have the first line of the cell blank, and then macros or anything else don't get confused w/ magics. I'm afraid that's as much as I know, off the top of my head, w/out digging into this. I don't use this kernel, or jupyter magics, such that I have direct experience w/ the subtitles of this specific case. But I thought it was as simple as not coding SAS macros on the first line of the cell.
BTW, I could imagine that if the macro didn't correspond to a magic, it might happen to work? I just don't use magics enough to know. If you submit %lsmagic, it will show you the list of magics. Maybe that will be meaningful? It could be that juptyer itself sees the % on the first line and tries to process it, which is why it doesn't necessarily work when it's a macro.
Tom

Tom, I think you got it.
%lsmagic
Available line magics:
%activity  %cd  %connect_info  %conversation  %dot  %download  %edit  %get  %help  %html  %include  %install  %install_magic  %javascript  %jigsaw  %kernel  %kx  %latex  %load  %ls  %lsmagic  %macro  %magic  %matplotlib  %parallel  %plot  %pmap  %prompt4var  %px  %python  %reload_magics  %restart  %run  %scheme  %set  %shell  %showFullLog  %showLog
Available cell magics:
%%activity  %%brain  %%conversation  %%debug  %%dot  %%file  %%help  %%html  %%javascript  %%kx  %%latex  %%macro  %%pipe  %%processing  %%prompt4var  %%px  %%python  %%scheme  %%shell  %%show  %%time  %%tutor
%macro is a line magic.  So is %px.  Defining and invoking the following macro starting on the 2nd line of the cell worked:
%macro px;
%put in macro px;
%mend px;
%px
But if I put %px on the first line of the cell to invoke, it did not work.
So I suspect that yes, anything that matches a line magic on the 1st cell line gets interpreted as a line magic, whether %macro to define a macro or any of the others to invoke a macro by that name.  If it's not a line magic, it just goes to SAS.  Interestingly, %include, which is also a SAS command, seems to work similarly to in standard SAS if it's on the first line: %include some-file-path includes and executes the contents of the file.
I gather from https://ipython.readthedocs.io/en/stable/interactive/magics.html#line-magics that some of the line magics are standard and some (e.g., %include) were developed for SAS.  Is there documentation for the SAS-specific magics?
Thanks,
Bruce

I think that only %showLog and %showFullLog are magics that are from the SAS_kernel. Those others are magics that just happen to have the same names as some SAS macros. But, none of those are SAS macros, or rather SAS_kernel magics that somehow represent those SAS macros.
So, all of those things displayed from %lsmagic are Jupyter magics and go on the first line. And non are SAS macros. And SAS macros (with or without similar names) can't go on the first line. I think it's that simple, for such a confusing situation :)

Thanks!  One final note.  %INCLUDE the line magic and %INCLUDE the SAS statement have somewhat different syntax.
SAS     %include 'path-to-file';
Magic: %include path-to-file
Thanks for your help on this!
Bruce

Yes, that's because one is a Jupyter magic that has nothing to do w/ SAS and the other is a SAS macro, that has nothing to do with Jupyter. Just happen to be the same name, to include some code from a file.
Sounds like everything is working as you expect. I'll close this. If you need anything else, just open another one!
Thanks,
Tom


Flickering weird pixels between chars

VSCode Version: 1.18, 1.19
OS Version: Ubuntu 17.04

Steps to Reproduce:

update libfreetype to 2.8.1 (2.8.1-0.1~zesty)
https://www.freetype.org/
open any file with or without syntax highlighting
note :
right - between r and i
border - r and d
inherit - r and i

it reproduces on other chars too, depends on zoom level
Reproduces without extensions: Yes
There are no problems with freetype 2.8.1 in chromium, chrome, electron, cef

Possible dup of #38307 or #35675


[RFC-33] [HUDI-2429][WIP] Support full Schema evolution for Spark/Hive

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
Support full schema evolution for hoodie:
1) support spark3 DDL. include:
alter statement:
ALTER TABLE table1 ALTER COLUMN a.b.c TYPE bigint
support follow types
int => long/float/double/string
long => float/double/string
float => double/String
double => String/Decimal
Decimal => Decimal/String
String => date/decimal
date => String
ALTER TABLE table1 ALTER COLUMN a.b.c SET NOT NULL
ALTER TABLE table1 ALTER COLUMN a.b.c DROP NOT NULL
ALTER TABLE table1 ALTER COLUMN a.b.c COMMENT 'new comment'
ALTER TABLE table1 ALTER COLUMN a.b.c FIRST
ALTER TABLE table1 ALTER COLUMN a.b.c AFTER x
add statement:
ALTER TABLE table1 ADD COLUMNS (col_name data_type [COMMENT col_comment], ...);
rename:
ALTER TABLE table1 RENAME COLUMN a.b.c TO x
drop:
ALTER TABLE table1 DROP COLUMN a.b.c
ALTER TABLE table1 DROP COLUMNS a.b.c, x, y
set/unset Properties:
ALTER TABLE table SET TBLPROPERTIES ('table_property' = 'property_value');
ALTER TABLE table UNSET TBLPROPERTIES [IF EXISTS] ('comment', 'key');
2) support mor(incremental/realtime/optimize) read/write
3) support cow (incremental/realtime) read/write
4) support mor compaction
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

kindly ping @bvaradar @leesf  could you help me review those code . thanks

This PR is about RFC-33? Have we reached an agreement on the design?

@yanghua  yes, We reached a preliminary consensus.

cc @codope @bvaradar lets use this as a basis and evolve our design, move forward.
@yanghua we are close I think. Few open items, that can be resolved soon hopefully.
You can follow along the discussion in the comments here
https://cwiki.apache.org/confluence/display/HUDI/RFC+-+33++Hudi+supports+more+comprehensive+Schema+Evolution
@codope also has a bunch of these working on presto and trino already. Flink would be a good thing to tackle as well. Does Flink use the Hive record readers? cc @danny0405 as well.

cc @codope @bvaradar lets use this as a basis and evolve our design, move forward.
@yanghua we are close I think. Few open items, that can be resolved soon hopefully.
You can follow along the discussion in the comments here
https://cwiki.apache.org/confluence/display/HUDI/RFC+-+33++Hudi+supports+more+comprehensive+Schema+Evolution
@codope also has a bunch of these working on presto and trino already. Flink would be a good thing to tackle as well. Does Flink use the Hive record readers? cc @danny0405 as well.

Flink does not use the Hive record readers now ~

@danny0405  Hope you can help us complete the full schema evolution of flink， thanks

@codope  thanks for your review.   Let me answer some your questions first， I’m a bit busy today, I need to modify something for the pr of zorder
Let's add docs for all the public classes and APIs.
ok，i will added。
Does the merge schema action handle evolution of non-leaf fields in nested fields? For example, if a.b.c is renamed to a.d.c.
this is a strange demand， if you want to change a.b.c to a.d.c , why donot use  spark.sql(s"alter table ${tableName} rename column a.b to d"). we support handle all the non-leaf fields.
IIUC, the patch has not yet handled old or existing schema compatibility as mentioned in the RFC right?
already deal with this situation. pls see the TestSpark3DDL,  we first create  a table and insert some data to it. now no id-schema is produced. then we do schema change, and the id-schema is produced.  the test result confirmed this。
Since schema history is being changed not only at the write time but also at the read time, so we need to think of both writer and reader concurrency.
A little doubtful， hudi is snapshot isolated， maybe only need to deal with concurrency between write and write， if i am wrong pls fix me ， thanks
Now there is the most important question， I now tend to use metatable to store historical schema。 as we know metatable use hfile to store data， the hfile has a very good point query performance， what do you suggest？

@leesf @codope @bvaradar   update the code , add docs to all public method, and resolved most comments.  pls help me review those code again.

@bvaradar . thanks for your review。  I will try to solve these problems。 There is a little question, do we need to add all adaptations to the spark engine on this pr。  if needed，full adaptation of spark engine（both mor and cow） will be added、

Thanks @xiarixiaoyao , Yes, It makes sense to add all the spark adapations related changes to this PR .

@bvaradar @codope @leesf .  could you pls help me review this pr again, thanks
code changes

support mor(incremental/realtime/optimize) read/write
support cow (incremental/realtime) read/write
support spark3 DDL. include:
alter statement:

ALTER TABLE table1 ALTER COLUMN a.b.c TYPE bigint
ALTER TABLE table1 ALTER COLUMN a.b.c SET NOT NULL
ALTER TABLE table1 ALTER COLUMN a.b.c DROP NOT NULL
ALTER TABLE table1 ALTER COLUMN a.b.c COMMENT 'new comment'
ALTER TABLE table1 ALTER COLUMN a.b.c FIRST
ALTER TABLE table1 ALTER COLUMN a.b.c AFTER x
add statement:
ALTER TABLE table1 ADD COLUMNS (col_name data_type [COMMENT col_comment], ...);
rename:
ALTER TABLE table1 RENAME COLUMN a.b.c TO x
drop:
ALTER TABLE table1 DROP COLUMN a.b.c
ALTER TABLE table1 DROP COLUMNS a.b.c, x, y
set/unset Properties:
ALTER TABLE table SET TBLPROPERTIES ('table_property' = 'property_value');
ALTER TABLE table UNSET TBLPROPERTIES [IF EXISTS] ('comment', 'key');

support spark2 DDL.
add FileBaseInternalSchemasManager to manger history schemas,  and save historySchemas in  "./hoodie/.schema" . now we no need to save historySchemas into commit file.
add segment lock to TableInternalSchemaUtils to support concurrent read and write cache.
rename mergeSchemaAction to SchemaMerger; remove helper methods from TableChanges to a helper class, now TableChanges is ok; use visitor mode to produce nameToId for internalSchema; and other samll fixed.

Remaining problem: add more UT for this pr, add support for bootstrap table.
@bvaradar forgive me this change is too large, i still use squahsing.  Subsequent modifications will be in the form of add commit.

@hudi-bot run azure

close this  pr, as this pr is too old, and we also have a new pr about this feature


xmac94x/extend logging

Add tracing for the error i discovered where tarpaulin hangs.
Will make debugging easier for the minimal example i am about to push

So I don't know if it's just me, but this doesn't print any additional logs in your minimal example?

for me it prints (when used with -v or --debug). But i think we can close this PR and instead include your cargo_hang branch instead, as it fixes the hanging situation better
ah you already merged, perfect.


GoogleClientManager.Initialize() throws null ref whatever I do on IOS

Describe the bug
in AppDeletgate, I have read everything on internet and tried fixing all the things mentioned everywhere, but GoogleClientManager.Initialize() throws null ref. I am building  on device and the same app works on android. I have the googleservice-info.plist as bundle resource. If I try to load the plist in the appdelegate itself, it works and I can load it with the name as you are doing.
I have a valid wildcard provision profile and I use it to deploy the code on my device.
Is it possible to get some logging in the library with Debug.WriteLine() ?
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

It seems like maybe the SignIn.Sharedinstance is null.

So it seems like it only works if you compile on a mac. If you do Hot reload through visual studio the Sharedinstance will always be null.


css class autocomplete

Hello!
Don't work css class autocomplete for *.svelte files.

svelte? Never heard of it. Interesting.
You can see supported types on README.md. We need to explicitly add this support.

It is new javascript framework ) You can see: https://svelte.dev/
in short - this is an analogue of Vue.js cli

Hmm.. Looks interesting.
Well, lets add it!
I will try on my end and then prepare a VSIX file for you to test on your end. After validation, I will publish on marketplace.

ok

Hi, how are you?

Hello gencer!
14 days have already passed since the discussion. I am still waiting for this task to complete.

Hi. I had health issues for a while. Were only able to respond few simple repos/issues or PRs and i only use PC for a while in a day.
I will look into this on this weekend. Please be hold.
Thank you for your patient.

Ok. Get well

Please test this version and report back.
html-slim-scss-css-class-completion-1.5.22.zip

Fine! thank you friend
Everything works great. I will test before the end of this week, if I unsubscribe to this ticket

Found a mistake
The value is defined as the name of the class.

Gotcha!
Thank you for this. I will fix it as soon as possible. Root case of this issue is from REGEX pattern. I will minimize findings.

Here you go. Please install (same version) again and test. I'll wait for your response.
html-slim-scss-css-class-completion-1.5.22.zip


Feat : Catalog grid

Feature: Catalog grid

As a user of the portal on the catalog
I want to see a grid of cards
So that I will be able to see the resources of the catalog

Acceptance criteria
Scenario: default display (desktop)
Given that I am a user of the web portal,
And I use a desktop device
When I am on the catalog page (authenticated or unauthenticated)
Then I should see 20 cards of dataverse’s resources displayed in a 4-column grid without any filter
And each card should be labelled according to the resource type (Data space, Dataset, Service)
Scenario: See Details
Given that I am a user of the web portal,
When I am on the catalog page
Then the buttons "See details" are disabled
Scenario: long title and long category
Given that I am a user of the web portal on the catalog,
When the title of a resource is too long
Then it should be displayed on 1 line with ... at the end
When the category of a resource is too long
Then it should be displayed on 2 lines maximum with ... at the end
Scenario: mobile and tablet display
Given that I am a user of the web portal,
When I am on the catalog page (authenticated or unauthenticated)
And I use a tablet or mobile device
Then I should see 20 cards of dataverse’s resources displayed in a 2-column grid (tablet) or 1-column grid (mobile) (see mock up) without any filter
And each card should be labelled according to the resource type (Data space, Dataset, Service)
Scenario: Internationalization
Given that I am a user of the web portal on the catalog page,
When the selected language is English
Then texts should be displayed in English language,
Explore
Data Space
Dataset
Service
See Details
Given that I am a user of the web portal on the home page,
When the selected language is French
Then texts should be displayed in French language,
Explorer
Data Space
Données
Service
Voir Détails
Given that I am a user of the web portal on the home page,
When the selected language is German
Then texts should be displayed in German language,
Erkunden Sie
Datenraum
Datensatz
Dienstleistung
Siehe Details
Requirements
As this issue regards only the display of the catalog, we can use lorepsum for the titles of the resources and their categories.
We should at least see 1 dataset, 1 service and 1 Data Space to test the labels.
Resources
Mockups
desktop

Mobile

Tablet

long titles and description

Environment

staging URL: https://app.staging.okp4.network/

Additional informations
None.

Test 20/03
Desktop - Firefox / Safari / Chrome
Scenario: default display (desktop) : OK ✅
Scenario: See Details OK ✅
Scenario: long title and long category OK ✅
Scenario: mobile and tablet display OK ✅
Scenario: Internationalization ❌
Voir Détails : e -> é & d -> D

Test 21/03
Desktop - Firefox
Scenario: default display (desktop) : OK ✅
Scenario: See Details OK ✅
Scenario: long title and long category OK ✅
Scenario: mobile and tablet display OK ✅
Scenario: Internationalization OK ✅


Update README.md with build status

@mbrookes (cc @rojobuffalo) F.Y.I

@codeaholicguy @rojobuffalo @joelkoz Thank you all so much for pulling formsy-material-ui back in to shape! :100: It's a relief to know it's being looked after. :sweat_smile:
I've also invited @joelkoz as a collaborator.


Why not use Open Street Map (OSM) for Boston

This is more of a clarification question. Why did you not use OSM for Boston city and instead spend a considerable time and effort in developing this alternative? One could have just used data from OSM and overlayed the actual BS deployment in Boston on the map obtained from OSM. I couldn't find a reason in the paper as well on why OSM was not used despite Sionna documentation being a proponent of using OSM. Maybe OSM is not that accurate? Thus it impacts ray tracing performance? Looking forward to your insights on this!

Hi @hiteshPoddar,
Just to give you a bit of background, we started working with the 3D models of Boston for this paper. Initially, we considered the OSM 3D data, but

at the time there was no easy way to automate the download/extraction of the 3D models. You can obtain them using the OverPass API, but if I remember correctly you would get a GeoJSON, which requires some parsing to convert to PLY/OBJ, as required by Sionna.
many of the buildings were missing the "height" field (see this: https://gmd.copernicus.org/preprints/gmd-2021-428/gmd-2021-428.pdf and this). If missing, the height, as seen for instance here, is often estimated from the number of stories of the building or just assigned a default value. Since we were working on a ground-to-satellite link, having the correct height was crucial. The same applies if you're considering, for instance, UAVs and, although to a lesser extent, to ray-tracing in general.

These are the two main reasons why we resorted to an "official" data repository. The data we use for the BostonTwin is released by the Boston Planning & Development Agency, which is probably the most accurate and reliable source. There might be better ones if you're willing to pay for a commercial 3D model of the city.
OSM is a great resource and I'm looking forward to its future development. As of now, it's lagging a bit behind on the 3D models, but we can all contribute to it.

If you're willing to use OSM, this repo seems to be a good tool. I haven't tried it yet.
I'd be interested in knowing how to integrate that into the BostonTwin. What we provide in addition is some methods to convert locations to the local coordinate system, which is useful if you have your node locations in (latitude, longitude) and need to convert them to local coordinates. It would be cool to have that also for the OSM tool above.
So if you try it, please let me know.

@p-testolina  thank you so much for sharing the detailed insight. this repo seems to probably solve your first issue to an extent but i doubt the second issue you state - that is of accurate building height is addressed. I am wondering in terms of building density/city layout, etc - in your experience do u observe significant discrepancy between OSM and the BPDA data you used? Personally i am curious to test out your boston twin and OSM on a common area in boston and perform comparison for a TN use case to see how much accuracy is really needed for 3D models of the city. In case the discrepancies are significant - it would be a good idea to scale what you have done for boston to other cities using their official databases as well. But if OSM suffices and there inst much discrepancy then one could directly use OSM (I say this because i don't think all of us working in wireless, would want to spend a lot of time in creating a twin for every city like you have done - kudos for the great effort you have put in!)

Hi @hiteshPoddar,
The 2D OSM data is quite accurate. As I mentioned, there's the issue of missing heights when you move to 3D. I haven't checked the discrepancy yet, but it is something I'm planning for the future. Also, the height discrepancy is not necessarily an issue: in some scenarios, you might be fine using just the 2D model, or "guessed" heights. Think about a device-to-device comms scenario: if the nodes have a similar height that is lower than the buildings, you don't really care if it's a 20 or 30-meter-tall building. It's going to block your LoS anyway. If you instead have different TX/RX heights, or the nodes move in the 3D space, e.g., UAVs and NTNs, then you probably want to have an accurate height.
I totally agree that OSM would be a better choice to avoid having a "custom twin" and the corresponding code for each city - that's a lot of work and definitely not scalable. Hopefully, the citySchema that the data of the BostonTwin uses will be adopted by other cities, making our life easier :)
With the BostonTwin I was mainly trying to give a "benchmark" scenario to play with, where you have both accurate 3D models and antenna placement.

But let me know if you have any ideas, I'm always interested in hearing them and possibly collaborating!

Hi Paolo,
Have to come across https://daylightmap.org/ ? As per my understanding
meta, microsoft and some others have been working on fixing the building
height issue in OSM and releasing it under the daylight map distribution. I
found a talk on youtube related to this:
https://www.youtube.com/watch?v=TqoFd-D0TgM. Do you happen to know if they
have released this for public usage?
On Wed, Sep 4, 2024 at 7:31 PM Paolo Testolina @.***>
wrote:

Closed #18
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_wineslab_boston-5Ftwin_issues_18&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=Ukb99gbWX0LrV6JsZSPW3A&m=wSvJnCtHqKtvbDQQMPTi_Wo2bmlIrqTBXxUzHur2KWQziF9NMkORuwrRYBV-IZfY&s=FHeZuXjMIjICQ5Y2NrOP_VZCEB9TjaWnw9ATHw4WVJM&e=
as completed.
—
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_wineslab_boston-5Ftwin_issues_18-23event-2D14139038591&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=Ukb99gbWX0LrV6JsZSPW3A&m=wSvJnCtHqKtvbDQQMPTi_Wo2bmlIrqTBXxUzHur2KWQziF9NMkORuwrRYBV-IZfY&s=RkQAN-C0gHfVK2TooM3xH3XCT2SKayrBmnDhpiplVrY&e=,
or unsubscribe
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AXDYWBRNTPM3IXA36VXNLMDZU6Q5JAVCNFSM6AAAAABJLN6XC6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGEZTSMBTHA2TSMI&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=Ukb99gbWX0LrV6JsZSPW3A&m=wSvJnCtHqKtvbDQQMPTi_Wo2bmlIrqTBXxUzHur2KWQziF9NMkORuwrRYBV-IZfY&s=ChLjNOv6-SXxk12v35jXweIuMdE-UienWSvbC6v4qAc&e=
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thanks & Regards,
Hitesh
*Research Scholar(PhD), NYU Wireless, *
370 Jay St., 9th Fl.
Brooklyn, NY 11201


Absorption game type

https://boardgamegeek.com/boardgame/63114/absorption

Insufficient documentation on this game type.


New: Support finding asymmetric connection

Current coverage is 55.87% (diff: 100%)

Merging #93 into master will increase coverage by 0.07%

@@             master        #93   diff @@
==========================================
  Files            19         19
  Lines          2957       2962     +5
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1650       1655     +5
  Misses         1190       1190
  Partials        117        117

Powered by Codecov. Last update 4b3475c...aa9eda5


[New Port Request] ITensor

Library name: ITensor
Library description:  C++ library for implementing tensor network calculations
Source repository URL: https://github.com/ITensor/ITensor
Project homepage (if different from the source repository): http://itensor.org/
Anything else that is useful to know when adding (such as optional features the library may have that should be included):

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.


feat:Make header sticky for better UI

Description
currently, header has static position , It should be sticky so that it shows up even if scrolling the page
Pls assign it to me @oyepriyansh
Screenshots
Current behaviour

Desired behavior

Ready to Work?

[X] I want to work on this issue

@FazeenIjaz assigned to you

@oyepriyansh I had raised a PR, pls check it out


Network devices prelim task failure (devel branch)

Describe the Issue
When attempting to run the role from the devel branch, I am getting this bit executed:

name: "PRELIM | Find wireless network devices"
ansible.builtin.shell: find /sys/class/net/*/wireless | awk -F'/' awk '{print $5}'
failed_when: wireless_interfaces.rc not in [ 0, 2 ]
changed_when: false
register: wireless_interfaces
when:
- ubtu20cis_rule_3_1_2
tags:
- rule_3.1.2
- section3

Then it should have registered a value in wireless_interfaces for it to be used with the next task:

name: "PRELIM | Install Network-Manager"
ansible.builtin.package:
name: network-manager
state: present
when:
- wireless_interfaces.stdout | length > 0
- ubtu20cis_install_network_manager
- ubtu20cis_rule_3_1_2
- not ubtu20cis_system_is_container
tags:
- rule_3.1.2
- section3

But it throws me an error, see details below.
Expected Behavior
The prelim task to not fail when there are not network adapters or perhaps just run this not as prelim but as a regular role task.
Actual Behavior
fatal: [default]: FAILED! => {"msg": "The conditional check 'wireless_interfaces.stdout | length > 0' failed. The error was: error while evaluating conditional (wireless_interfaces.stdout | length > 0): 'dict object' has no attribute 'stdout'
The error appears to be in '/root/.ansible/roles/ubuntu-20-lockdown/tasks/prelim.yml': line 56, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:

name: "PRELIM | Install Network-Manager"\n  ^ here\n"}

Control(s) Affected
Rule 3_1_2
Possible Solution
main branch already doesn't have that added to prelim, perhaps doing it that way would be great.
** My role vars **
- role: ubuntu-20-lockdown
vars:
ubtu20cis_warning_banner: "{{ banner_text }}"
ansible_python_interpreter: /usr/bin/python3
ubtu20cis_grub_pw: "grub.pbkdf2.sha512.10000.{{ ansible_ops_cred }}"
ubtu20cis_set_root_password: false
    #Disable LVL 2 CIS tasks:
    ubtu20cis_rule_1_1_10: false
    ubtu20cis_rule_1_1_11: false
    ubtu20cis_rule_1_1_15: false
    ubtu20cis_rule_1_1_16: false
    ubtu20cis_rule_1_1_1_6: false
    ubtu20cis_rule_1_1_17: false
    ubtu20cis_rule_1_6_1_4: false
    ubtu20cis_rule_1_8_1: false
    ubtu20cis_rule_3_1_1: false
    ubtu20cis_rule_3_4_1: false
    ubtu20cis_rule_3_4_2: false
    ubtu20cis_rule_3_4_3: false
    ubtu20cis_rule_3_4_4: false
    ubtu20cis_rule_4_1_1_4: false
    ubtu20cis_rule_5_3_20: false
    ubtu20cis_rule_5_3_6: false
    ubtu20cis_rule_6_1_1: false

** Additional Notes**
I would love to use the main branch but that one has the known bug which was fixed on devel:
2023-03-06T15:55:38Z:     ubuntu20-ami-build.amazon-ebs.ubuntu_20_ami: TASK [ubuntu-20-lockdown : AUTOMATED | 1.3.2 | PATCH | Ensure filesystem integrity is regularly checked] ***
2023-03-06T15:55:39Z:     ubuntu20-ami-build.amazon-ebs.ubuntu_20_ami: fatal: [default]: FAILED! => {"changed": false, "msg": "Will not manage /etc/crontab via cron_file, see documentation."}

The latest Feb changes seem to have introduced this: https://github.com/ansible-lockdown/UBUNTU20-CIS/commit/f706c12d7cfc486cb8b702a83cbb4254c7f7b404
Breaks my automation today but fully understand we all have other work to do as well, just trying to be as helpful as possible folks.
Best Regards,
Filipe

hi @fnschroeder
Thank you for the feedback and the added detail. I have written a new branch issue_73 that should resolve the problem. The system we test on has no wireless adapter, so i didnt experience this issue. I am hoping that this branch captures this case?
If you have time to test that would be brilliant and i will raise the appropriate PR.
Many thanks again
uk-bolly

Hi @uk-bolly , that worked like a charm, thanks a LOT!!

When this one is merged into the devel branch, I will switch my code but for now just pointing to your branch covers it.
FYI: I did have to add ubtu20cis_set_root_password: false on the vars cause I am using it on building AWS AMIs so we don't care for changing the password as it will be different already every time.
Thanks again for all your work!

I have created the PR that should put this into devel.

This has been added to devel branch from PR [#83] Please feel free to test it out and get back to us.


Mac OS X GPU Support Request

Hi Team
Currently I've been doing some work with TensorFlow (some of my work on http://blog.otoro.net/) and have been developing everything a Macbook Pro running the IPython stack.  My Mac is fairly fast for regular sized tasks, and even has an NVIDA chip (NVIDIA GeForce GT 750M 2048 MB).  Although the current build doesn't support GPU's for Macs, it seems to me from reading earlier threads that it is not possible to custom build for GPU support on the Mac, despite having CUDA libraries installed.
This would really help out my work flow, especially I can get other frameworks to utilize my GPU / CUDA on the Mac.  The Macbook Pro is a great machine to develop use and develop stuff on, and lots of people I know also use MBP's to develop ML algorithms, and then send jobs off to AWS for the heavy-lifting after it works locally.
I think having GPU support for Mac would really help in not just the performance front, but allows us to debug and check any GPU specific issues when running some script locally, and be able to fix them quickly, before sending them to a EC2 or some remote GPU server.  It would make the workflow a lot smoother for developers who use Macbook Pro's with the NVIDIA chip.
Thanks in advance!

Hi hardmaru!
I'm in the same situation  as you and was able to build TensorFlow on my Mac with GPU support. I have an open pull request for the changes:
https://github.com/tensorflow/tensorflow/pull/475

Hey Ville!
Thanks- I missed that pull request when browsing the history of issues.  Hopefully they will merge your request!  If not I'll try to do it manually.
Cheers.

Since the PR is closed (hopefully temporarily) I thought a little reminder that a lot of us want this, would be helpful.

(it is just temporary, we may re-open it soon).

This would be very useful.

Agreed all comments.
Tensorflow is a great tool but I see two bottlenecks for it to be widely used:

Many clusters have the old CentOS on which TF doesn't work
Many developers use MacBook Pro, and TF doesn't support GPU integration.

I hope the team considers these issues.

Let me just add to @ueser's comments, that many of us are on CUDA 7.5.  There are a lot of reasons for this, not the least of which is that if you're setting up a new machine, its a lot easier to get a working 7.5 installation with a current distro than a working 7.0 installation.  So part of what's needed is permitting compilation with 7.5.

@elbamos I have a new open PR for OSX Cuda support that uses Cuda 7.5: https://github.com/tensorflow/tensorflow/pull/664
The PR makes it easier to test with different versions of cuDNN and Cuda by making the version of each framework a variable in the configure script.

would running it in docker make any difference
http://stackoverflow.com/questions/25185405/using-gpu-from-a-docker-container

@hurshprasad I think those solutions are meant for Linux Docker hosts running Linux Docker images.
But Docker doesn't run natively on OS X like it does on Linux. When you run Docker on OSX, it actually boots a tiny Linux VM inside either VirtualBox or VMWare Fusion. Then that Linux VM is then what actually runs Docker. It's Russian nesting dolls :)
So to share an OS X GPU with a running Docker image, there's actually two levels of indirection: VirtualBox has to allow the Linux VM to access the host GPU. Then the Linux VM has to allow the docker images running inside of it to access that GPU.
I'm not an expert, but I'd guess that making that work would be way harder than just supporting OS X GPUs directly in Tensorflow.

+1 for this feature.  With a thunderbolt e-gpu, you can do some solid work on a top spec macbook pro.

+1 for this. I have a 2014 model with an NVIDIA GPU, it shouldn't be a super hard port.

+1, for all the reasons mentioned above

+1

+1

+1
Yes, the latest MacBook Pro / Mac Pro models do not offer NVIDIA as an option, but, apparently there's a MacBook Pro in the works for 2016 that will come with NVIDIA graphics.

+1

+1

In order to keep the thread compact and easy to read, please consider just hitting "subscribe" instead of +1ing. (Also consider deleting previous posts that only have a +1 etc.)

I use a linux machine for running TensorFlow, but I'm developing on MacBookPro (Early 2013) which has NVIDIA GeForce GT 650M. Though I have installed CUDA on my mac, TensorFlow wouldn't use GPU. Any support will help me quite a lot.

+1

+1

+1

+1

+1

+1

It seems that there has been a pull request pending on this for several months: https://groups.google.com/a/tensorflow.org/forum/#!topic/discuss/yF6g1pfesCM
Does anyone know the status of this?

If you read through, Google felt there were issues with the PR, but this has really been in their hands for a long time. I gave in and installed Linux on my Mac Pro.
It turned out that running data science in Linux was 4x-6x faster than with OS X on the same hardware, for both gpu and non-gpu tasks. Because the Mac multithreading just isn't as efficient.
So, while I totally get the issue folks have, honestly getting tf to use laptop gpus on OS X I don't think is going to buy you what you want, and you're gonna be happier switching to Linux for your computations.

On Apr 8, 2016, at 3:20 PM, Ron Cohen<EMAIL_ADDRESS>wrote:
It seems that there has been a pull request pending on this for several months: https://groups.google.com/a/tensorflow.org/forum/#!topic/discuss/yF6g1pfesCM
Does anyone know the status of this?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Honestly talking about "data science" as if it was just one thing that supposedly runs "4x faster" sounds like a very broad generalization, especially when the GPU is doing most of the work.

@elbamos can you please give a link with more info on the performance? Or any way to reproduce the behaviour. Does Mac manage also the GPU threads? Aren't they supposed to be managed by the GPU controls and the drivers?

Check out this thread...
https://github.com/tensorflow/tensorflow/pull/664
https://gist.github.com/ageitgey/819a51afa4613649bd18
Reportedly, it should work.  Unfortunately, I tried it and although I got really close to doing a complete Bazel PIP build, it failed when trying near the end when going through the cuDNN v5 library. I'm not sure if it would work for you, but you should give it a try.

I don't have any links to provide or anything like that. It's just my personal experience.
But I'm someone who was running tensorflow on OS X with gpu early on (look at the thread), and I switched to Linux specifically because I do a lot of net training with gpus, so take what I have to say fwiw.
An example: a few weeks ago I was on a deadline to finish training a deep net with torch when, having done something stupid, Linux decided that booting was no longer necessary. So I rebooted the machine into OS X. Using exactly the same code on exactly the same hardware with exactly the same data, on a gpu-centric application, with a dedicated gpu that wasn't driving any monitors, each epoch took roughly twice as long on OS X. That was with torch and cuda 7.5 and cudnn v 4.
Processing a single image for demonstration purposes, including all preprocessing and reconstruction steps, took 1 min 15 seconds on OS X, and 20 seconds when I was ultimately able to get back into Linux.
I should add, the threading point is partly my speculation based on what I observed in performance running xgboost and other applications that use a multithreaded blas through R. For some reason applications seem to have an easier time using more cores on Linux.
I was very surprised that gpu performance differed. My guess is that maybe the libraries, cuda and torch and such, aren't as optimized for OS X.

On Apr 8, 2016, at 4:26 PM, Anatolii Kmetiuk<EMAIL_ADDRESS>wrote:
@elbamos can you please give a link with more info on the performance? Or any way to reproduce the behaviour. Does Mac manage also the GPU threads? Aren't they supposed to be managed by the GPU controls and the drivers?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Very interesting, indeed, but it doesn’t proof that the problem is fundamental to OS X’s architecture. We should try to isolate the problem and study it once we get a reliable way to compile TF under Mac. Maybe it was specific only to your particular configuration. I’ll try the instructions above later.

On Apr 9, 2016, at 00:19, elbamos<EMAIL_ADDRESS>wrote:
I don't have any links to provide or anything like that. It's just my personal experience.
But I'm someone who was running tensorflow on OS X with gpu early on (look at the thread), and I switched to Linux specifically because I do a lot of net training with gpus, so take what I have to say fwiw.
An example: a few weeks ago I was on a deadline to finish training a deep net with torch when, having done something stupid, Linux decided that booting was no longer necessary. So I rebooted the machine into OS X. Using exactly the same code on exactly the same hardware with exactly the same data, on a gpu-centric application, with a dedicated gpu that wasn't driving any monitors, each epoch took roughly twice as long on OS X. That was with torch and cuda 7.5 and cudnn v 4.
Processing a single image for demonstration purposes, including all preprocessing and reconstruction steps, took 1 min 15 seconds on OS X, and 20 seconds when I was ultimately able to get back into Linux.
I should add, the threading point is partly my speculation based on what I observed in performance running xgboost and other applications that use a multithreaded blas through R. For some reason applications seem to have an easier time using more cores on Linux.
I was very surprised that gpu performance differed. My guess is that maybe the libraries, cuda and torch and such, aren't as optimized for OS X.

On Apr 8, 2016, at 4:26 PM, Anatolii Kmetiuk<EMAIL_ADDRESS>wrote:
@elbamos can you please give a link with more info on the performance? Or any way to reproduce the behaviour. Does Mac manage also the GPU threads? Aren't they supposed to be managed by the GPU controls and the drivers?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/tensorflow/tensorflow/issues/491#issuecomment-207609941

You may be right. I will say, I observed this with torch, R, and tensorflow, all of them.
My point is, the folks who are very eager for Mac-tf-gpu support so they can run tf on the gpus in apple laptops, which aren't remotely cuda-optimized anyway, I think they're going to find that the book isn't worth the candle, and there are easier ways to accomplish what they want.

On Apr 8, 2016, at 5:27 PM, Anatolii Kmetiuk<EMAIL_ADDRESS>wrote:
Very interesting, indeed, but it doesn’t proof that the problem is fundamental to OS X’s architecture. We should try to isolate the problem and study it once we get a reliable way to compile TF under Mac. Maybe it was specific only to your particular configuration. I’ll try the instructions above later.

On Apr 9, 2016, at 00:19, elbamos<EMAIL_ADDRESS>wrote:
I don't have any links to provide or anything like that. It's just my personal experience.
But I'm someone who was running tensorflow on OS X with gpu early on (look at the thread), and I switched to Linux specifically because I do a lot of net training with gpus, so take what I have to say fwiw.
An example: a few weeks ago I was on a deadline to finish training a deep net with torch when, having done something stupid, Linux decided that booting was no longer necessary. So I rebooted the machine into OS X. Using exactly the same code on exactly the same hardware with exactly the same data, on a gpu-centric application, with a dedicated gpu that wasn't driving any monitors, each epoch took roughly twice as long on OS X. That was with torch and cuda 7.5 and cudnn v 4.
Processing a single image for demonstration purposes, including all preprocessing and reconstruction steps, took 1 min 15 seconds on OS X, and 20 seconds when I was ultimately able to get back into Linux.
I should add, the threading point is partly my speculation based on what I observed in performance running xgboost and other applications that use a multithreaded blas through R. For some reason applications seem to have an easier time using more cores on Linux.
I was very surprised that gpu performance differed. My guess is that maybe the libraries, cuda and torch and such, aren't as optimized for OS X.

On Apr 8, 2016, at 4:26 PM, Anatolii Kmetiuk<EMAIL_ADDRESS>wrote:
@elbamos can you please give a link with more info on the performance? Or any way to reproduce the behaviour. Does Mac manage also the GPU threads? Aren't they supposed to be managed by the GPU controls and the drivers?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/tensorflow/tensorflow/issues/491#issuecomment-207609941

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@elbamos: this is most likely not true. Can you please run the CUDA benchmarks on OSX and Linux for something simple like repeated GEMM calls (to ensure proper burn in) and report back?  CUDA provides examples that can natively be built on OSX and Linux. If you are seeing more cpu cores being used you are most likely using CPU BLAS and might be experiencing performance gains due to lack of host <-> gpu transfers.

I'm positive that I wasn't using cpu blas. Because I tried forcing it to use cpu and that was an order of magnitude slower. I also fully believe that the performance on unit benchmarks is identical.
If I have the time this weekend I may try to take some video of it.  And if there are particular benchmarks you'd like me to run, lay it out for me exactly what you'd like me to do and I'll give it a try.

On Apr 8, 2016, at 5:37 PM, Jason Ramapuram<EMAIL_ADDRESS>wrote:
@elbamos: this is most likely not true. Can you please run the CUDA benchmarks on OSX and Linux for something simple like repeated GEMM calls (to ensure proper burn in) and report back? CUDA provides examples that can natively be built on OSX and Linux. If you are seeing more cpu cores being used you are most likely using CPU BLAS and might be experiencing performance gains due to lack of host <-> gpu transfers.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

In reality, people using mac os x should be exploiting the tremendous development platform which Apple has created. Using the XCode IDE, Instrument Profiler, Swift Language and new Metal API, developers could easily program script level, super-optimized (Clang LLVM), super-fast CPU/GPU compute software.
If you are curious about the Metal API, you can watch some of the videos from WWDC (https://developer.apple.com/videos/play/wwdc2015/610/). Unfortunately, I think you might have to watch them on Safari, because for some reason the videos only stream on safari.
In fact, I highly recommend checking out this guys, Amund Tveit, https://github.com/atveit, work...
https://github.com/DeepLearningKit/DeepLearningKit
https://github.com/atveit/SwiftMetalGPUParallelProcessing

Well, I wouldn't be surprised if the CUDA drivers (or the NVIDIA drivers) for Mac aren't all that optimized at this point in time, considering Apple is not offering any laptop or workstation with NVIDIA as an option anymore.
This could change in the near future though.
But in any event, using the Mac as a development environment (including GPU support) should be supported.

I really did not intend to send things in this direction

On Apr 8, 2016, at 6:17 PM, esd100<EMAIL_ADDRESS>wrote:
In reality, people using mac os x should be exploiting the tremendous development platform which Apple has created. Using the XCode IDE, Instrument Profiler, Swift Language and new Metal API, developers could easily program script level, super-optimized (Clang LLVM), super-fast CPU/GPU compute software.
If you are curious about the Metal API, you can watch some of the videos from WWDC (https://developer.apple.com/videos/play/wwdc2015/610/). Unfortunately, I think you might have to watch them on Safari, because for some reason the videos only stream on safari.
In fact, I highly recommend checking out this guys, Amund Tveit, https://github.com/atveit, work...
https://github.com/DeepLearningKit/DeepLearningKit
https://github.com/atveit/SwiftMetalGPUParallelProcessing
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

From my understanding, there is not a very huge difference in GPU compute performance of an NVIDIA card accepting assembly language instructions compiled form OpenCL (now the Metal API) libraries and assembly language instructions compiled from CUDA libraries.
My conclusion is based on doing a google search for openCL vs. CUDA. For example, this post in 2010 from Accelereyes (now ArrayFire) shows subtle, but not huge differences in performance for various mathematical operations.
http://blog.accelereyes.com/blog/2010/05/10/nvidia-fermi-cuda-and-opencl/

With introduction of Thunderbolt 2 and 3 technology, external GPUs will likely be supported in the near future. Even now I was able to connect a GPU to my MacBook Pro externally via Thunderbolt 2 and Akitio Thunder 2. So even if Mac is not optimized enough right now, this is most likely to change in the nearest future.

On Apr 9, 2016, at 02:23, Steven<EMAIL_ADDRESS>wrote:
Well, I wouldn't be surprised if the CUDA drivers (or the NVIDIA drivers) for Mac aren't all that optimized at this point in time, considering Apple is not offering any laptop or workstation with NVIDIA as an option anymore.
This could change in the near future though.
But in any event, using the Mac as a development environment (including GPU support) should be supported.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/tensorflow/tensorflow/issues/491#issuecomment-207644451

In #664 @ville-k added support and a few have verified it works -- we'll try our best to keep it running but we don't have a test machine so please continue to contribute to keep it working!

This press release from NVIDIA may be relevant to the performance issues mentioned.
https://blogs.nvidia.com/blog/2015/08/31/mac-driver/

+1 on this!

+1 on this. This issue especially important in the light of spreading eGPU support, like on these videos:
https://www.youtube.com/watch?v=jFHjT50M7_Y
https://www.youtube.com/watch?v=vvAB3U5umug
https://www.youtube.com/watch?v=JpR8_cS-168
https://www.youtube.com/watch?v=LN7prQBjRNc
https://www.youtube.com/watch?v=pNd5_kxpPc4

+1

+1

For everyone interested in official eGPU support in macOS, I recommend creating a ticket in Apple's bug reporter: https://bugreport.apple.com/logon
And mentioning my ticket via "Also see rdar://29836015"

Bender supports running TensorFlow models in Metal API. It was tested on iPhone, not on Mac. But maybe with little changes it works for Mac!

@bryant1410 No, it uses MetalPerformanceShaders and thus allows to execute '''already trained''' networks, not training with Metal.

Oh, yeah. It only allows to do inference, not training.


Spec clarification: Can a server send multiple registration options without unregistering first?

Let's say I'm working on my language server and I've checked and confirmed that the client supports dynamicRegistration for executing a command.

My server sends a ExecuteCommandRegistrationOptions over to the client, containing 1 command, via registerCapability
Later on, my server dynamically creates/finds a new command to support, so now I have 2 commands that I want to support.
What should my server do?

Unregister the previous command then send a new ExecuteCommandRegistrationOptions containing both commands?
Don't unregister the previous command, instead send a new ExecuteCommandRegistrationOptions containing only the new command

From a specification point of view both flows are valid and should be supported by clients that support dynamic registration.


Does UPG-VPP support QoS and network slicing functions?

I see that the list of unimplemented functions includes QER. Is it currently supported? If there is no QER, are there any implementation ideas? I can assist in doing some work within my capabilities.
Also, is the network slicing function supported?

QER is not supported. There is some work in our internal version to add that, but I can't say if or when it will be public.
there is no slice support and not work is planned


Pythin was not found/not recodnized as an internal file

It says its not recodnized after i disable it but im not sure how to fix

Install version 3.10 on microsoft store


Add dashboard app structure

Added base structure for the Dash app and a sample Hello World application.
Initial structure:
plateforme
    |-- assets
         |-- style.css
    |--data
        |-- filtered_input_data.csv
    |-- app.py
    |-- requirements.txt
    |-- README.md

Initial structure is ok . it suit me


Adding Zesty.io to users

Whoops! Sorry about that, @xtuc. I went ahead and formatted it as 500x200 and ran it through svgo.

Great thanks, LGTM :+1:


Putting the player on the ground.

Can anyone give me some advice on how to put the player on the ground? I've tried using GetGroundHeight, but it doesn't work very well for highways/mountains. Here's some code showing this.
        // Get the ground height of the waypoint.
        float z = World.GetGroundHeight(new Vector2 (waypPos.X, waypPos.Y)) * 1.5f;

        // Set the waypoint position z to the ground height we calculated.
        waypPos.Z = z;

        // Move the player to the waypoint position.
        c.Position = waypPos;

Try using PATHFIND::GET_SAFE_COORD_FOR_PED

@tetchel Here's what I found actually, and for anyone else wondering how to to this, here's how I did it.
This is in C#. I got this directly from NB's Native Trainer mod.
'c' is the Game.Player.Character.
'waypPos' is the position in which you want to move to (Vector3).
Vector3 pos = waypPos;

float[] groundHeight = {100.0f, 150.0f, 50.0f, 0.0f, 200.0f, 250.0f, 300.0f, 350.0f,
            400.0f, 450.0f, 500.0f, 550.0f, 600.0f, 650.0f, 700.0f, 750.0f, 800.0f};

        foreach (float g in groundHeight)
        {
            unsafe
            {
                float z = 0;
                c.Position = new Vector3(pos.X, pos.Y, g);
                Wait(100);
                if (Function.Call<bool>(Hash.GET_GROUND_Z_FOR_3D_COORD, pos.X, pos.Y, g, &z))
                {
                    c.Position = new Vector3(pos.X, pos.Y, z + 3);
                    break;
                }
            }
        }

Glad you figured it out, but now you can use OutputArgument so you don't have to deal with unsafe code.
Example


ST L151CC algorithm issues

I've attempted to write interface firmware for a new mbed platform. The interface processor is a MK20DX128VFM and the target processor is a STM32L151CC. I've linked to my DAPLink and FlashAlgo repositories.
Currently the drag-n-drop program of the device appears successful. After programming is finished there is no fail.txt file in the USB drive. The target processor does not appear to execute, however. When connecting with a debugger, I see the following message each time I try to continue/run the application:
(gdb) c
Continuing.
stm32l1.cpu -- clearing lockup after double fault

However, if I load the same binary using the debugger or an external programmer (bypassing the interface processor), the device functions perfectly. This fact leads me to believe that the issue is the flash algorithm itself or the state the processor is in after the flash algorithm runs.
The flash algorithm code was taken from an example flash algorithm included with uVision and updated. The original code can be found at C:\Keil_v5\ARM\Flash\STM32L15x.
I have read out the contents of flash via the debugger and it looks the same (MD5 checksums matched) as the original binary.
I am aware that a double fault is usually caused by an invalid vector table, but as far as I can tell the vector table in the application is fine.
I've attached the test binary I've been using. When programmed with the debugger or an external programmer, it works great. When programmed by the interface firmware & flash algorithm, it doesn't work at all. I added the .txt to the binary name so GitHub would let me attach it.
I appreciate any help or advice on this issue.
blink.bin.txt

As it turns out, the binary programmed by the interface firmware doesn't match the original binary, so the flash algorithm needs work.


INITSYSTEM has been abandoned

The INITSYSTEM has been abandone.
Should update https://www.balena.io/docs/learn/develop/dockerfile/#init-system.

This has this PR: https://github.com/balena-io/docs/pull/1229


option to not grey out video

When using new MaterialControls the whole video screen is dimmed (greyed out) when video is paused or any interactions are happening.
This makes it really hard to see details on the video frame when video is paused or stepped trough.
Please add an option to disable dimming for the video.
PS: I tried to copy MaterialControls code but wasn't been able to remove this dimming. Suspecting that might be outside of control of the customControls.

It is true, the previous controls were super better, now that dimmed color is horrible and I have an error in expanding the video, after it expands it does not return to its original state that is to say in the small container where I put it.
imagen 1

actual controls horrible imagen 2

Is there a way to return to the previous controls like image 1?
Cheers

I found it was caused by playernotifier

1.The easy way is to use the old version of materialcontrols.（https://github.com/gj2569355373/share/blob/master/MaterialControlCustom.dart）
2.You can also download the Chewie source code for modification.

I found it was caused by playernotifier

1.The easy way is to use the old version of materialcontrols.（https://github.com/gj2569355373/share）
2.You can also download the Chewie source code for modification.

Thanks, but actually the Provider isn't the "error".
As you mention it's a "design" topic which in the past was introduced to behave like Youtube. But thank you, that you found a missing feature, that if you once tap on the dimmed background, the dimming should disappear. And re-appear if tapped again.
So this behavior should be changed.
I'll do that asap.

@Ahmadre could we please have an option to disable this "design" completely, so no dimming will be happening ever.
I can see how that could be nice on a large screen. But on the phone with a limited screen real estate this dimming makes the whole video player experience quite bad.
Another "design" piece is the large play button in the middle of the player, which is covering pretty much the most important part of the video where action is happening (on a small screens up to 2/3 of the whole area), so you can't use player to do a step-through.

@Ahmadre could we please have an option to disable this "design" completely, so no dimming will be happening ever.
I can see how that could be nice on a large screen. But on the phone with a limited screen real estate this dimming makes the whole video player experience quite bad.
Another "design" piece is the large play button in the middle of the player, which is covering pretty much the most important part of the video where action is happening (on a small screens up to 2/3 of the whole area), so you can't use player to do a step-through.

sure: I will add an option to that 👌🏼

Was the option to turn off the dimming effect implemented as @Ahmadre set out to do?

@Ahmadre any progress on this?

Same question here, is there any update?


new rule: unnecessary brackets in class definition

class Foo():
    pass

should be written as:
class Foo:
    pass

A new rule could cover this.

Not to weigh in one way or another, but just a note that black will rewrite the first example as the second.


/masternodes page

What kind of PR is this?:

/kind feature
What this PR does / why we need it:
Which issue(s) does this PR fixes?:

Fixes #56
Additional comments?:
Screenshot

Codecov Report

Merging #203 (e9fdb4b) into main (4a5798d) will decrease coverage by 2.30%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
- Coverage   83.60%   81.29%   -2.31%
==========================================
  Files          41       41
  Lines         433      433
  Branches       97       97
==========================================
- Hits          362      352      -10
- Misses         64       74      +10
  Partials        7        7

Impacted Files
Coverage Δ

src/layouts/components/Footer.tsx
100.00% <ø> (ø)

src/layouts/components/Header.tsx
85.71% <ø> (ø)

src/layouts/contexts/PlaygroundContext.tsx
36.66% <0.00%> (-30.00%)
:arrow_down:

src/layouts/contexts/WhaleContext.tsx
66.66% <0.00%> (-7.41%)
:arrow_down:

src/layouts/contexts/Environment.ts
81.25% <0.00%> (-6.25%)
:arrow_down:

src/components/prices/PriceTickerDetail.tsx
75.00% <0.00%> (ø)

src/pages/dex/index.tsx
76.47% <0.00%> (+5.88%)
:arrow_up:

src/components/prices/PriceOracleTable.tsx
93.33% <0.00%> (+6.66%)
:arrow_up:

Continue to review full report at Codecov.

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

wrap to a max of 2 lines

@fuxingloh , i have opened an issue on whale for the timelock.
https://github.com/DeFiCh/whale/issues/352

Let's wait for whale:0.9 deployment, I will put into draft for now.


Access to fetch at 'https://evolu.world/' from origin 'http://localhost:3000' has been blocked by CORS policy

Access to fetch at 'https://evolu.world/' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Synchronization with https://evolu.world fails. To reproduce this issue comment out line 51 to 53 in NextJsExample.tsx.

@FilipChalupa All I can say is that it works for me with MacOS. Maybe it's something specific to Ubuntu?

It was something not related to Evolu, I think. Feel free to reopen this issue.


Cancelled is not Copy

I'd love to have a backtrace in Cancelled to be able to debug "completion is always cancelled" problem. So it probably is a good idea to make Cancelled non Copy type, even if it is a ZST in prod.

bors r+


test: paragraph_with_url

Testing for different types of links in Markdown.

My commits were conflicting with:
fn code_block() {
        let input = "
let x: i32 = 123;
".to_string();
        let expected = "```rust\nlet x: i32 = 123;```\n".to_string();
        assert_eq!(from_html_to_md(input), expected);
}

which I removed in order to prioritise the other commits that I had made under this PR.


!include is ignored within properties block

When having
    views {
        properties {
            "plantuml.includes" "extra_styles.puml"
            "c4plantuml.tags" "true"
            "plantuml.legend" "false"
            !include sequenceDiagrams.dsl
        }

the !include directive is ignored. Moreover, the file may not exist and nothing happens.

could you please generate the docker image?

I'm travelling for the next few days, and don't have a fast/good enough Internet connection to upload a new Docker image, but it's on my todo list when I return home. If you're in a rush, you can build the DSL parser from the source, and replace the structurizr-dsl-*.jar file in the CLI.

ok thanks, did that as a temporal solution.

@simonbrowndotje just in case something went wrong> there is a new docker image to pull, but it still lacks many of the changes you did on Friday.

Friendly reminder to update the docker image :)

The Docker image has been updated a number of times over the past week; see https://hub.docker.com/r/structurizr/cli/tags for more details.
Aside from some very recent changes, everything listed on the changelog (even the "unreleased to Maven Central" changes) and PlantUML exporter documentation should be available via the CLI. If this is not the case, please open a new issue with a specific example that fails.

Ok, just FYI, this very fix is not in there.

It seems to work for me. Can you provide a specific example that doesn't work?

I found the problem by looking at the changelog:

Renamed plantuml.sequenceDiagrams to plantuml.sequenceDiagram

I think that unrecognized properties should throw an error. I'll open an issue for that.


Look for mangled name HTTP_X_CLOUD_TRACE_CONTEXT in env

The Cloud Trace ID is not being added to logs because we're looking for the header name, not the mangled CGI-like environment variable name, in the system environment.
R: @bryanmau1 CC: @JustinBeckwith

LGTM


xar: Depends on bzip2 libxml2 zlib for Linuxbrew

$ brew linkage xar
Homebrew libraries:
  ~/.linuxbrew/lib/libbz2.so.1.0 (bzip2)
  ~/.linuxbrew/lib/libc.so.6 (glibc)
  ~/.linuxbrew/lib/libdl.so.2 (glibc)
  ~/.linuxbrew/lib/libm.so.6 (glibc)
  ~/.linuxbrew/lib/libxar.so.1 (homebrew/dupes/xar)
  ~/.linuxbrew/lib/libxml2.so.2 (libxml2)
  ~/.linuxbrew/lib/libcrypto.so.1.0.0 (openssl)
  ~/.linuxbrew/lib/libz.so.1 (zlib)

Looks like this fell through the cracks.  If it's still needed, you'll want to rebase it

IMO this can be closed because xar was removed here

Gotcha, thanks!


Changing month/year position if uses multiple calendar

Describe the bug
When I use multiple calendar with range, 2 parts and use solo mode I want to get 2 independently switching calendars. But when I select first date in the left part, right part changes month/year on the next one after first part (I now it's in documentation but it's not convenient). Moreover if I select first date in the right part when the left part differs from the right one by several months , this right part changes month/year on the next one after first part too.
To Reproduce
Steps to reproduce the behavior:

Create calendar with
:multiCalendars = { solo: true, static: false, number: 2 }
range

open calendar dialog

Set the left part of the calendar to be a few months apart from the right part.

You will see changes in the right part

Expected behavior
I want to get 2 independently switching calendars.
Desktop & mobile (please complete the following information):

Library version 8.8.1 - 9.0.2

This is the current limitation in the logic, it would require significant adjustment, as it was planned to be used as the standard multi-calendar layout with support to update the months/years independently.


My code is not passing tests and I'm stuck on the listIterator

I'm working on the poorly made conditionals, right now. I apologize this should have been finished last week. I would really appreciate your input. My main problem is that the listIterator is infinite and it only works if I put a break at the end.

I'll take a look after you make the changes @flying-bus requested. Ping me here or in dynamite when you're ready.


support deferred libraries in polymer

moved from https://github.com/dart-lang/sdk/issues/17873

To support deferred libraries we would need a way to annotate what is intended to be loaded in a deferred fashion.

This could be a special attribute in html imports, or an annotation in deferred imports.

related https://github.com/dart-lang/smoke/issues/8


Look into 'DefaultAzureCredential' pattern

A few of the azure sdk packages have a DefaultAzureCredential type that enables ease of developing locally (where it might use your locally logged in azure cli) and then running the same thing in Azure (or anywhere else) with managed identity or client id/secret. See https://azure.github.io/azure-sdk/posts/2020-02-25/defaultazurecredentials.html
Is this something this library would be open to having implimented/move towards?
Brief play with code might look something like:
struct AccessToken {
  pub token: String,
  pub expires_on: DateTime<Utc>,
}

#[async_trait::async_trait]
pub trait TokenCredential {
    async fn get_token(&self, resource: &str) -> Result<AccessToken, AzureError>;
}

pub struct EnvironmentCredential;
pub struct ManagedIdentityCredential;
pub struct AzureCliCredential;

// Each of these would impl TokenCredential e.g.
impl TokenCredential for AzureCliCredential {
}

Looking at the C# implementation as another reference https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/src/DefaultAzureCredential.cs the DefaultCredential here might be something like:
pub struct DefaultCredential {
    sources: Vec<Box<dyn TokenCredential + Send + Sync>>,
}

impl Default for DefaultCredential {
    fn default() -> Self {
        DefaultCredential {
            sources: vec![
                Box::new(EnvironmentCredential {}),
                Box::new(ManagedIdentityCredential {}),
                Box::new(AzureCliCredential {}),
            ],
        }
    }
}

#[async_trait::async_trait]
impl TokenCredential for DefaultCredential {
    async fn get_token(&self, resource: &str) -> Result<TokenResponse, AzureError> {
        for source in &self.sources {
            if let Ok(token) = source.get_token(resource).await {
                return Ok(token);
            }
            // TODO: bubble up err events from individual implementations
        }

        return Err(AzureError::GenericErrorWithText(
            "End of default list".to_owned(),
        ));
    }
}

I'd like to contribute towards this end, but wanted to open an issue/discussion before committing or moving forward to the acceptance of this and aligning with the approach developed in the library already

It seems useful! Definitely go for it!
The Azure AD crate is in flux (it's the most recent, in dev crate) and needs a reorg in terms of struct/traits. Maybe your TokenCredential trait could be a good candidate to standardize the access tokens as well.
Maybe @davide-rota can chip in here as well: he's much more competent about authentication/authorization than me.