Extend attrs by adding custom decorators to attributes

I'm thinking about refactoring a project so that it uses attrs under the hood (for more info, see benbovy/xarray-simlab#19), and I'd like to be able to do something like this:
@process
class Foo(object):
    bar = variable()

    @bar.custom_decorator
    def meth(self):
        pass

In the example above, process wraps attr.s and variable wraps attr.ib. Custom decorators would be a very nice way of implementing operations like validating input value or setting default value, but here more domain-specific.

@wsanchez happy to provide more details. Basically, I'm developing a package in which I want to create very succinct classes that will be used as components of numerical models (a model = a collection of such classes that I call "processes"). Each of these classes declare some variables (e.g., physical fields) + some methods that will be called during a simulation to get, set or update values for these variables.
I think attrs is very suited for this kind of project. I could simply reuse features like default values, validators, etc.
I think that the reasons why I add wrappers around  attr.s and attr.ib are quite similar to environ_config: I use some reserved keys in attr.ib metadata and there is additional logic in order to create process classes that is based on these reserved keys. Additionally, the attr way of creating classes is something that I'd like to expose to users (e.g., scientists, modellers), and I think that process and variable are more meaningful names than attr.s and attr.ib in this specific case.

Ah, you're basically asking for _CountingAttr to become public, so you could subclass it. It's not an unreasonable request I think.

You can wrap attr.s and attr.ib today, and it's fine (except a little non-composable). I used to do it in cattrs until attrs got its own type metadata.

Unfortunately, I didn't succeed in trying to add a custom decorator to attr.ib.
The closer (though not working) solution I found is to subclass _CountingAttr, which already looks very fragile:
from attr._make import _CountingAttr

class CountinAttrExtended(_CountingAttr):
    def custom_decorator(self, meth):
        self._custom_decorator = meth

import attr

def variable(dims, intent='input', description=''):
    metadata = {'attr_type': AttrType.VARIABLE,
                'intent': intent,
                'description': description}

    return CountinAttrExtended(
        default=attr.NOTHING,
        validator=None,
        repr=False,
        cmp=False,
        hash=None,
        init=False,
        converter=None,
        metadata=metadata,
        type=None,
    )

    return a

def process():
   # wrapper around attr.s

The basic example below runs fine but won't fully work because the _CountingAttr instance is later turned into an Attribute instance, which doesn't keep the custom decorator.
@process(time_dependent=False)
class Grid(object):
    length = variable(intent='input', description='grid total length')
    spacing = variable(intent='input')
    x = variable('x', intent='output')
    nnodes = variable((), intent='output')

    @nnodes.custom_decorator
    def get_nnodes(self):
        return self.x.size

    def initialize(self):
        self.x = np.arange(0, self.length + self.spacing, self.spacing)

Also, I can't add attributes dynamically to neither _CountingAttr or Attribute because these both use __slots__ I guess...
Is there any other way to achieve this?

Ah, you're basically asking for _CountingAttr to become public, so you could subclass it. It's not an unreasonable request I think.

Yeah exactly! That's a much better way to expose the problem :)

Yeah, the problem is _CountingAttr will get replaced, so what you want to do is: in the custom_decorator method, stick something on the function it's decorating. Then wrap attr.s and read the thing you've stuck on and do some extra work. I think that's the best you can do atm.

in the custom_decorator method, stick something on the function it's decorating. Then wrap attr.s and read the thing you've stuck on and do some extra work.

Sounds like a reasonable workaround.
However, in the example above  @nnodes.custom_decorator will still give a AttributeError: '_CountingAttr' object has no attribute 'custom_decorator', right?
Although @nnodes.custom_decorator is nice and consistent with built-in decorators (validator and default),  I'm fine using something like @custom_decorator('nnodes') atm.

OK, I see, thanks @Tinche

So I finally refactored my project so that it now extends attrs and it works great!! The code is here: https://github.com/benbovy/xarray-simlab.
Thanks again for the help here!
[slightly off-topic] The way attrs is used in that project may be a bit unusual? There is a wrapper around attr.s that turns all (wrapped) attr.ib defined in the decorated class into properties of that class (all attr.ib wrappers thus set init=False). I hope that this is not something you consider as a hack and that next versions of attrs will continue to support this.
Back to this issue, I'm still a bit worried about the fact that I had to use attrs' internals (i.e., subclass _CoutingAttr here). Any chance of eventually making it part of the public API?
Feel free to close this issue if this is never going to happen.

I'm still a bit worried about the fact that I had to use attrs' internals (i.e., subclass _CoutingAttr here). Any chance of eventually making it part of the public API?

Any chance of eventually having _CoutingAttr in the public API (or any alternative that allows adding custom decorators)?
The problem with my subclass of _CoutingAttr is that it's now broken with the new kwd_only argument introduced in #411. I guess this is likely to happen again in the future.
I certainly could maintain it, but it would be nice if a more stable solution exists. If you think this request is reasonable, I'd be happy to work on it!

Yes I agree, it is probably not worth this edge case.
Instead of subclassing _CoutingAttr I ended-up monkey-patching it with an extra compute method. I think it's quite safe (unless you plan to add a method with that name later) and I'm fine with this solution.

@benbovy I'm reading the above as you found a satisfactory solution, so I'm going to close. Holler if you think that was premature.


Libobjc2 binaries are not in git-lfs

Seems to be a recent regression from #711 . While you are at it, could you inventory other binaries that have fallen through the cracks?

Fixed.


Review Modules for language changes

Update this file so that it is up-to-date with regard to new language features, especially around union types and ES6 features

Currently missing information about the ability to output concatted modules with --outFile and implies that only namespaces get this:

[Namespaces] can span multiple files, and can be concatenated using --outFile.

...

One effect of this is that it's not possible to use the --outFile compiler switch to concatenate multiple module source files into a single JavaScript file.


[Question] Gateway Debug Mode

Question
new function
Add a new debugging mode on the gateway. When it is turned on, the client passes the header['debug']=true of the http protocol. The gateway defines an interface and implements this interface in each plugin to complete the writeback of debug information. Finally, the gateway Add an attribute trace:{} at the same level as code to the returned message to output the debugging information of the passed plugin to the client caller, so that the caller can judge whether the PLUGIN and rules defined by itself are correct through the debugging information, without passing The traditional log method can be used to locate problems, reduce one transition, and improve the efficiency of development

new function
Add a new debugging mode on the gateway. When it is turned on, the client passes the header['debug']=true of the http protocol. The gateway defines an interface and implements this interface in each plugin to complete the writeback of debug information. Finally, the gateway Add an attribute trace:{} at the same level as code to the returned message to output the debugging information of the passed plugin to the client caller, so that the caller can judge whether the PLUGIN and rules defined by itself are correct through the debugging information, without passing The traditional log method can be used to locate problems, reduce one transition, and improve the efficiency of development

train of thought

Framework-level implementation
Provide plug-in developers with an entry to write back debugging information (interface definition)


Feature request - set timer for automated dismissal

Hey, I love this library. API is simple and easy to use. Only feature that's missing for me is the ability to set a timer on the view and have it automatically dismiss itself. Thanks.

+1

+1

I use it like this and it works fine:
    let tipView = EasyTipView(text: text, preferences: preferences)
    tipView.show(forView: sender, withinSuperview: self.view)

    let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(1 * Double(NSEC_PER_SEC)))
    dispatch_after(delayTime, dispatch_get_main_queue()) {
        tipView.dismiss()
    }

I don't think this is within the attributes of the view, to auto hide itself, but you could easily wrap it in an extension: https://gist.github.com/teodorpatras/d0c37bfbbc1425dec8f42ca41ba05796


Generate a badge with the coverage %age in it

It would be awesome if you could also generate a badge that we can integrate in the README of our project.
It should be green / yellow / red depending on some thresholds of coverage (80%, 50%?). Maybe these threshold should be customizable?
Here is an example (made with coveralls.io) of the wished result (clickable image):

Have the same issue. Found solution on similar GitHub Action: Pytest Coverage Comment
It generates the badge with the right color :)


Adding listen address

You can specify the port, but not the listening address. It's possible now.

@Gegonz ? :)

This PR only modify print.
TODO: update this PR with https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-server/html/GstRTSPServer.html#gst-rtsp-server-set-address

Indeed, changing that immediately.

Is this PR abandoned, in progress or can it be merged?

You can merge it


Fatal error: Class 'PDO' not found in /home/xxxx/models/rb.php on line 365

hello elinoretenorio,
i was install jobskee using http://www.jobskee.com/download.php
webite and instructions.
i was follow all step as given .
after that i was run my site its gives me a fatal error:
Fatal error: Class 'PDO' not found in /home/xxxx/models/rb.php on line 365
i am also trying to open rb.php file but it can't open . all time my browser give a notification is cant not support or some time not responding the browser. i was change all thing you mention in your code.
please give me some idea to solve this error.
my email id<EMAIL_ADDRESS>

this means you do not have PDO module enabled in your hosting environment. you need PDO extension enabled in your hosting to use Jobskee
http://php.net/manual/en/pdo.installation.php


3d_car_racing_game

This game is for single player and made using html , CSS and JavaScript .

please assign this  task to me

HI @Teddy1404 , could you please elaborate on the features of the game with full details, demo / mock UI sample/Video,? better share detailed documentation.


testing: add gimmeproj command

gimmeproj manages a pool of projects and leases to those projects.

R= @tbpg


add subclasspicker attribute and drawer

Add the SubClassPicker Atribute.
Use it with the SerializeRerefence Attribute to chose a non-monobehaviour class

This change is

can you explain a scenario where this is used for please?

can you explain a scenario where this is used for please?

For badminton we have 5 minigames, we load the minigame with a scriptable object that contains the common parameters to all the minigames. One of those parameters is the specific minigame controller itself ( MiniGameControllerBase in the screenshot ).
MiniGameControllerBase is not a MonoBehaviour so with this attribute I can pick the controller I will need to instanciate for my minigame.
For MiniGame_Snake => SnakeController, for MiniGame_Duck => DuckController, for MiniGame_Balloons => BalloonsController, etc....

Editor/AttributesDrawer/SubClassPickerAttributeDrawer.cs line 48 at r1 (raw file):
Previously, lucas-baran (Lucas Baran) wrote…
Isn't .Name throwing a null ref if managedReferenceValue is null?

nope


Introducing PL/SQL Block (issue #146 - part 1).

Coverage increased (+0.2%) to 99.15% when pulling cb7df10e5ee8660e2dd319fe9ad8af4b77cbfff8 on wwe_issue_146 into b8c96d350531fcec09387472567c5d6002006263 on master.


Models

Hi there..
I would to know why there are 4 files numbered from 0 to 3 for each model knowing that they give different energy and structure for each file..?! how can make differents between.!!
something else, I tried the aimnet2-qr_b97md4_qzvp_2.jpt model it gives nothing I think it has the same problem as describe in:
https://github.com/isayevlab/AIMNet2/issues/36
Thanks

I would to know why there are 4 files numbered from 0 to 3 for each model knowing that they give different energy and structure for each file..?! how can make differents between.!!

These are models with different initialization of the weights. Statistically, these models give similar results. Disagreement between the models can give an estimate of the prediction confidence.

something else, I tried the aimnet2-qr_b97md4_qzvp_2.jpt model it gives nothing I think it has the same problem as describe in:
https://github.com/isayevlab/AIMNet2/issues/36

The bug was related to long range electrostatics code. aimnet2-qr model should not use explicit electrostatics.

@zubatyuk  thanks for your response
I'm a little confused, for example with the C60 the energy obtained with the different models :
aimnet2_wb97m_0   -2287.6370014600943
aimnet2_wb97m_1   -2287.420225139271
aimnet2_wb97m_2   -2287.90024342262
aimnet2_wb97m_3   -2287.4902789926864
We notice that there is a difference in energies...!
what should I do... should I choose the default model, chosing  the one that gives the lowest energy or let AIMNet2 choose automatically ?!
Thanks..

@DeepDevIA, you should probably familiarize yourself with the idea of active learning and the Query by Committee (QBC) approach... e.g., our old paper https://pubs.aip.org/aip/jcp/article/148/24/241733/963478/Less-is-more-Sampling-chemical-space-with-active
This will explain why we use an ensemble of neural nets and how to interpret different energy values.

ok thanks


Feature/remove objc dependencies

Note that the podspec was not updated yet and the macos target field has to be adjusted as well.

Maybe document the reason why the Component object was renamed to Identity but the related string constants stay "Component" for now.

@johannesrohwer Will add this information in this branch.


Is this the actual WormGPT form GPT-J? Like it doesn't use openai api key?

Just use ollama or local ai or shuttle

change the base url to gpt-j idk lol

OPENAI_API_BASE_URL - Custom url for the OpenAI API, useful for connecting to custom backends. No effect if USE_AZURE is true, leave blank to keep the default url
the following is an example:
OPENAI_API_BASE_URL=https://api.shuttleai.app/v1
set it to this and by a shuttle gpt3 same as gptj but better more models uncensored

Just use ollama or local ai or shuttle

How?


Fix release process

We need to clean up the release process, it has some issues right now.

[x] Set up a release branch and a manual release action like we have for some of the SDKs
[x] There is an action in the github cd workflow that tries to update the cargo.toml file whenever a pr is merged.  it does this on a branch, but then nothing seems to happen after that, so we have accumulated a ton of those branches.  We should remove that action from the "push" workflow
[x] clean up the old branches from that job
[x] Update the release workflow so that it does properly update the cargo.toml file
[ ] Verify that --version shows the right value for a released version
[x] general audit of the rest of the stuff in the github workflows to make sure it looks reasonable.
[x] there is a .semrel dir committed to this repo, which I don't believe is actually used for anything; double-check and remove it.

Work for this ticket is probably relevant for #181 as well.


Error Validating Apple Credentials

Hi,
I just faced an issue building the iOS release .ipa file.
I've tried it with version 0.30.1 and also the latest version on Windows as well as on MacOS. Here's the log:
C:\TIB-IDE\App\my.cool.app>exp build:ios -c
[exp] Making sure project is set up correctly...
[exp] Your project looks good!
[exp] Checking if current build exists...
[exp] No currently active or previous builds for this project.
[exp] Checking for existing Apple credentials...
We need your Apple ID/password to manage certificates and provisioning profiles from your Apple Developer account.
? What's your Apple ID? ***************
? Password? ***********
? What is your Apple Team ID (you can find that on this page: https://developer
.apple.com/account/#/membership)? *********
[exp] Validating Apple credentials...
[exp] Error validating credentials. You may need to clear them (with -c) and try again.
[exp] Unable to validate credentials: Internal error occurred. Please try again in a few minutes or contact support.
I've made sure that my credentials are absolutely valid. Also I have not changed anything (no updates of NPM, exp, anything else). A few days ago everything worked fine. Does anybody know whats happening?
Building Android works fine btw!
Best regards,
Oliver

Hi! We had an issue with the networking to our iOS build machines this morning. I've just brought that service back online, and everything appears to be functioning. Can you give it another try?
Also, just a note that you should only need to build the IPA once for each "version" of your exp.json file. The newest version of your JavaScript will be pushed out to the client, unless you make changes to the exp.json manifest (updating the sdk version, changing the bundle identifier, etc).

Hi Adam,
it all seems to work fine again!
Thanks for the info. I've had to do some changes in exp.json, thats why I had to create a new build.
Thanks for your help! :-)

Hi! I have been struggling with this for the last two days as well. Getting the exact same error with 2FA disabled on my Apple ID.

@ph3b I'm going to be online intermittently for the next couple of days, but please get in touch with me on our community slack (my username it ap there) so I can find out more about your failed build. We're working on improving this system but for now I need to manually check logs for your build to see what failed.

Bump. running into the same issue now.


Cancelling after giving focus to Processes select dropdown, but not selecting a script, incorrectly generates an error

Describe the bug
On DSpace 8.x when selecting a new process, if you do not select one, and either click outside the select drop down or select the default "Choose a script..." option and then click the Cancel button, an error is generated: "Script is required".
Interestingly, this only happens the first time the button is clicked. If you then click it a second time, you are redirected back to the Processes overview page.
To Reproduce
Steps to reproduce the behavior:

Login in as administrator (for example on https://demo.dspace.org/)
Select processes from the left hand admin menu to go to the Processes overview page
Select New+
Select the dropdown
Either select "Choose a script..." or click outside the drop down
Select Cancel

Expected behavior
Pressing Cancel should redirect the user back to the processes overview page regardless of what he selects in the dropdown.

@J4bbi : I'm not able to reproduce this on either our Demo Site (https://demo.dspace.org, running 7.x) or Sandbox Site (https://sandbox.dspace.org, running pre-8.0)
Here's what I see:

Login in as administrator (for example on https://demo.dspace.org/)
Select processes from the left hand admin menu to go to the Processes overview page
Select New+
Select the dropdown
5, Either select "Choose a script..." or click outside the drop down.   (I can verify this shows the "Script is required" message that you shared a screenshot of)
Select Cancel.  (For me, the "Cancel" button works in both 7.x and 8.0.  It sends the user back to the Processes Overview page.)

Maybe this bug was in an earlier version of DSpace 7?  Perhaps it's already been fixed in the latest code, which is why it's not reproducible on the Demo site or Sandbox Site.
Or, maybe you are using a different browser?  I'm testing in latest Chrome (124.0.6367.208 (Official Build) (64-bit))

This was fixed here (PR #2683 & backport PR #2696) by changing the <button> to a <a> link

Thanks for verifying, @alexandrevryghem !  In that case, closing this as fixed in 7.6.2 and 8.0


What are the return parameters from send_email() function?

I'm reading your documentation for sending out transactional emails but I can't seem to find any documentation for the return parameters from send_email() function. I see that it returns an array, but what do its members mean? And how do I check if send_email() succeeded?

As part of the sendinblue API version 2 deprecation plan this repository is no longer supported. Please refer to its updated version 3: https://github.com/sendinblue/APIv3-php-library


[lc_ctrl] Update transition interface regwen behavior

This came up in https://github.com/lowRISC/opentitan/pull/4242#discussion_r528905590.
Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

Thanks for the fix @msfschaffner


Connection Error: Only when using AD Password Mode

I am getting the following error while using the Spark Connector with the AD Password
value = OUTPUT_CONVERTER[type](answer[2:], gateway_client)
325             if answer[1] == REFERENCE_TYPE:
--> 326                 raise Py4JJavaError(
327                     "An error occurred while calling {0}{1}{2}.\n".
328                     format(target_id, ".", name), value)
Py4JJavaError: An error occurred while calling o2282.load.
: java.lang.NoClassDefFoundError: com/nimbusds/oauth2/sdk/auth/ClientAuthentication
I have tried the connector with the SQL Auth (UID, Password, also with the Service Principal and Token they both work. So i am not sure, if this is because of the missing assembly referenced here(https://github.com/microsoft/sql-spark-connector/issues/26)
The code is being run from a Synapse Notebook. Any Ideas?

Could you share the repro?

Here is a Snapshot of the code we use. This is used in a notebook (Synpase) agains the default Spark Cluster running Spark 3.2. The connector works if i use SQL Auth or the Service Principal/Token
jdbc_df = spark.read.format("com.microsoft.sqlserver.jdbc.spark").option("url", "jdbc:sqlserver://Z-ondemand.sql.azuresynapse.net") \
.option("dbtable", "dbo.MyTable").option("authentication", "ActiveDirectoryPassword") \
.option("user","a@test.com").option("password", "XXXXXXXXXXXX").option("encrypt", "true")\
.option("hostNameInCertificate", "*.database.windows.net")\
.option("driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver")\
.load()

I am not sure where the issue is from. Maybe check this and contact Synapse support.

I have also reported this to the MS Q&A Forums. But the error seems to be in the Connector than with Synapse by itself. I wonder if anyone else has used AD/password approach at all. Anyways, i will post any update/solution i stumble upon.


Don't modify snap data in getMedicalDeduction

Shoot, thought I had changed that in an old version. I guess it just never made it through. Thanks!


Markdown Editor

Checklist

[x] I run yarn run webpack:build:main: the project builds without errors.
[x] I run yarn lint: there project builds without code style warnings.
[x] I removed unnecessary whitespace changes in all related files.
[x] I updated the documentation and models.
[x] I tested the changes and all related features on the test server https://artemistest.ase.in.tum.de.
[x] ~I added (end-to-end) test cases for the new functionality.~

Motivation and Context
The motivation behind the markdown editor is to enable the instructors with an easier way of using markdown language while creating the problem statements/questions. Currently, there is not option of using a button to run markdown changes on the text.
Additionally, the implementation of the markdown editor changed the previous structure of the commands and the client classes. Before the client had its own commands and executed it by itself - meaning that all the clients having the same commands had duplicate code. With the new logic the client sets the commands he needs and the markdown editor class triggers the execution of the logic behind each command.
With this implementation we increased the efficiency for the instructors and created a more structured implementation.
Description
The markdown editor contains the default commands and the domain commands. Domain commands are set by the client that requires those. Default commands are contained within the markdown editor per default - nevertheless each client can remove default commands if they are not needed.
In addition to the markdown function, the instructors are getting notified with a warning if there are no explanations added to each answer option within the multiple choice question.
Steps for Testing
Create Multiple Choice Question
Create Drag and Drop Question
Create Short Answer Question
Create Modeling Exercise
Multiple Choice Question:

Domain Commands
Default Commands - execute & revert
Preview
Warning -> all answer options have an explanation

Drag and Drop Question

Domain Commands
Default Commands - execute & revert
Preview
Picture Upload
Reevaluate

Modeling Exercises

Default Commands - execute & revert
Preview

Screenshots

Overall good code quality. Was really nice to go through :)


how i can

Feature name: hotkeys
How i can delete hotkey, like "none"? thank you
1.18.2

None means that there is not mapping set. If you want to delete an hotkey you can edit bc_config.properties in your config/ folder of your minecraft.


Update for reset password URL link. - [merged]

In GitLab by @wknet123 on Apr 1, 2020, 07:55
Merges dev-reset-password-link -> dev

In GitLab by @wknet123 on Apr 1, 2020, 08:11
mentioned in commit b250adef0087704365136c65f0a102728d43fc1b

In GitLab by @wknet123 on Apr 1, 2020, 08:11
merged


Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.5.0] AndroidManifest.xml:24:18-86

Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.5.0] AndroidManifest.xml:24:18-86

Warning:
application@android:label was tagged at AndroidManifest.xml:5 to replace other declarations but no other declaration present


Automatically attempt to reconnect after failure

As per my tweet on https://twitter.com/hammyhavoc/status/935595873656098816, I've been asked to open an issue here regarding it.

@RocketChat If the desktop client can't connect to a RocketChat server and you're presented with the 'Reload' button and error, does it ever automatically attempt to reconnect? If not, that needs addressing; been trying to ping colleague but their RC client had that.

Hey @HammyHavoc, thanks for the suggestion. That would actually be pretty cool, we can't focus on it right now but we'd love if someone from the community could work on this.

I'd also love to see this feature. I've also got the same problem when using autostart, meaning that the client gets started without having a wifi/vpn connection yet.

So I now got something that works for me.
In the file /src/public/loading-error.html
I added the following line somewhere in the <html>
<script>setInterval(() => { document.getElementById("reload").click() }, 10000)</script>
Quick and simple... opinions?


Suggestion to show session times on now/next

During the conference I was using the app to check when the current session ended and the next started and how long each were so I thought it might be nice to add that info to the now/next display, to save having to go into the full schedule?
It looks like there could be some space available in the current layout for a time to be displayed, something like this maybe?

Though I seem to remember there being less space in the actual app, rather than how it's showing in this image (from the storyboard)

Happy to provide a PR if it's considered a suitable addition!


support for RTL Language

when trying to use the widget with hebrew string in app:flw_labelText, the hint is positioned with an offset to the right
(causing the text to be trunced)
also, when the widget is in focus, the label position is also with offset
layout file in this example:
<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <FloatingLabelEditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:drawablePadding="10dp"
        app:flw_labelText="טקסט בעברית" />
    <FloatingLabelEditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:flw_labelText="טקסט פשוט שאמור להיות מימין" />
</LinearLayout>

see screenshot:

*SOLVED BY:
adding in class DefaultLabelAnimator
in method: setLabelAnchored
after calculating the float values, add:
    ViewGroup.LayoutParams params = label.getLayoutParams();
    params.width = inputWidget.getWidth() - inputWidget.getPaddingLeft() - inputWidget.getPaddingRight();
    label.setLayoutParams(params);

Hi,
can you submit a pull request against the develop branch so that we can merge it easily?
I think the proper way to fix that would be to use paddingStart and paddingEnd instead of paddingLeft and paddingRight.
thanks for the report, good catch.

i did...
i am not familiar with the whole gitHub stuff, so maybe i did it wrong....
http://www.ideomobile.com/
Raz Maimon / Project Manager, Dev. Team Leader
<EMAIL_ADDRESS>/054-6539487
IdeoMobile
http://www.Ideomobile.com http://www.ideomobile.com/
On Wed, Jul 1, 2015 at 6:09 PM, Vincent Prat<EMAIL_ADDRESS>wrote:

Hi,
can you submit a pull request against the develop branch so that we can
merge it easily?
I think the proper way to fix that would be to use paddingStart and
paddingEnd instead of paddingLeft and paddingRight.
thanks for the report, good catch.
—
Reply to this email directly or view it on GitHub
https://github.com/marvinlabs/android-floatinglabel-widgets/issues/35#issuecomment-117710973
.

Ok. Thanks, I'll have a look as soon as I get time.


Add brexit_current_state_notice

What
Add a new field to the schema of:

CaseStudy
DetailedGuide
DocumentCollection
Publication
HTML publication

Context

We are adding a button to Whitehall to allow publishers to display a new type of call out box on their transition related content. Here's the PR .
Currently publishers can add a call out box for post transition content, this is called the brexit_no_deal_notice and is present on docs such as this.
A document will only ever have either a brexit_no_deal_notice or a brexit_current_state_notice. This is determined by a validation on the Whitehall database.

https://trello.com/c/IwXzb5FM/589-design-whitehall-publisher-functionality-to-generate-current-state-notice

You can deploy this one now if you're confident that we've got everything


Project : Add Weather App

Please assign this issue to me for Hacktoberfest

Please assign this issue to me for Hacktoberfest 2023

Please assign this to me

Please assign this to me


Added note on DirectFileAccessOn*ComputersEnabled

Added note on DirectFileAccessOn*ComputersEnabled to clarify which previews are still supported while DirectAccess is blocked.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md
:white_check_mark:Succeeded
View (exchserver-ps-2010) View (exchserver-ps-2016) View (exchserver-ps-2013) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Release?

I was considering packaging this for my Linux distribution. Is there any chance of this getting a tagged release some time?

Some time, yes. Soon? Depends on when we implement a workaround to the buffer problem in issue #4. Strictly speaking the affected applications are not doing things like they should (run the init function before attempting to deflate/inflate data), instead they assume they can cheat and do a faster dirty init themselves. Unfortunately this is highly dependant on data-structures and features not changing so it breaks.
I cannot promise anything regarding timelines unfortunately.


Loader is failing with JSON issues.

The loader function is failing.
The last successful import was 2022-03-03 18:02:27 UTC.
Digging through the logs I find the following error:
additionalErrors: [
0: {
code: 3
message: "Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 211; errors: 1. Please look into the errors[] collection for more details."
}
1: {
code: 3
message: "Error while reading data, error message: JSON processing encountered too many errors, giving up. Rows: 209621; errors: 1; max bad: 0; error percent: 0"
}
2: {
code: 3
message: "Error while reading data, error message: JSON parsing error in row starting at position 0: Row size is larger than: 104857600."
}]
error: {
code: 3
message: "Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 211; errors: 1. Please look into the errors[] collection for more details."
}
state: "DONE"
}

$ gsutil ls -l 'gs://ossf-malware-analysis-results/**' > allpackagewithsizes.out
$ cat allpackagewithsizes.out | sort -n | tail
  64417903  2022-02-02T22:19:07Z  gs://ossf-malware-analysis-results/pypi/pqrs/0.8.0.json
  65228324  2022-03-03T16:52:06Z  gs://ossf-malware-analysis-results/pypi/foodx-devops-tools/0.13.1.post1.json
  65338726  2022-02-23T17:42:14Z  gs://ossf-malware-analysis-results/pypi/foodx-devops-tools/0.13.1.json
  65628551  2022-02-11T16:28:02Z  gs://ossf-malware-analysis-results/pypi/ansible-kernel/1.0.0.json
 125303369  2022-03-03T19:58:44Z<EMAIL_ADDRESS> 125361942  2022-03-07T22:51:09Z<EMAIL_ADDRESS> 125365214  2022-03-08T00:26:53Z<EMAIL_ADDRESS> 125408813  2022-03-03T19:22:35Z<EMAIL_ADDRESS> 125469811  2022-03-07T22:52:29Z<EMAIL_ADDRESS> 125474362  2022-03-08T00:29:46Z<EMAIL_ADDRESS>
Inspecting the huge packages shows the recent addition of git causes these packages to clone a git repo that has a very large submodule (thousands of files).

This failure is somewhat silent.
We probably should call. .Wait() on the job and log the errors it returns to avoid having to dig through BigQuery job logs to find failures.

This failure is somewhat silent.
We probably should call. .Wait() on the job and log the errors it returns to avoid having to dig through BigQuery job logs to find failures.

Yep, we definitely need to surface these a bit better. A potential issue with Wait() in the current GCP function is the max timeout we can set on the function it self (540 seconds), but maybe that's plenty for the forseeable future.

Might be able to push the job id onto a pubsub queue and have it checked periodically to examine the outcome of the job.

Work left on this issue: add some altering/logging to make it easier to find the job id, and see the outcome of an import.

@calebbrown I think we might have enough logging now to close this, what do you think?

Fixed by #947 which calls .Wait() and prints any errors to stdout (which get logged to the Cloud console)


Dev link

This PR aims to address #82. I more or less followed the system used by npm link to achieve the following:

Develop an opertator local-op in /path/to/operator/local-op
Develop a recipe local-rec that has local-op as a dependency
Create a link between local-op and the dependencies folder of local-rec at local-rec/.dependencies/operators/local-op
Develop local-op and local-rec in tandem and create baked recipes from the local-rec folder

Let's show an example scenario where local-rec dependencies look like this:
dependencies:
- type: operator
  name: honeybee-radiance
  hash: 4e6b9354ade52b792988abef4426d744b587fb26eaabbc681ad27c75aa0c8048
  version: 1.2.3
  source: https://example.com/test-repo
- type: operator
  name: local-op
  hash: 4e6b9354ade52b792988abef4426d744b587fb26eaabbc681ad27c75aa0c8048
  version: 1.2.3
  source: https://example.com/test-repo

The CLI command works like this:
> cd local-op
> queenbee recipe link local-op /path/to/operator/local-op

In this command local-op is the name or alias of the dependency in the dependencies.yml file and /path/to/operator/local-op is the absolute or relative (it handles both) path to the operator folder we want to associate with this dependency in our .dependencies folder.
The link command will then create a symlink between /path/to/operator/local-op and /path/to/recipe/local-rec/.dependencies/operator/local-op.
Warning: Compiling a recipe into a baked recipe will only work if you compile it using the from_folder function and set refresh_deps to False. If you don't set refresh_deps to False queenbee will try to download the dependency from the defined source, check the digest hash etc...

Before we merge this it would be awesome if we could test this on Windows. Not sure how symlinks work for windows...


sorald.mine does not report all violations because of lack of source position

Reference: https://github.com/SpoonLabs/sorald/pull/696#issuecomment-1026544291
Some violations mined by SonarJava were filtered out because they did not have any source position associated with them. See https://github.com/SpoonLabs/sorald/pull/315. In my opinion, we should still report them even though we know we can't repair them with the current infrastructure of the project. The best and the most foolproof way to list down all such rules would be to refer to sonar-java's source code. For example, I observed that instances of S1996 did not report any position with them. I referred to its source code and found out that they do not report position for any instance.
Known unreported violations:

S1996
S1228
S4032

It is very tough to determine this information statically, so I have asked this question on their forum. Last resort is to execute the code and figure this out from the dynamic information we get.

I found the disparity in the rules we report and the rules that exist (SonarJava v<IP_ADDRESS>52). I have updated them in a gist: https://gist.github.com/algomaster99/755539f4e1ade1743d8a5b2c1bf4e238.

@NiklasWicklund reported some violations that are not detected by sorald.mine.

S1176
S100
S101

I am pretty sure each of these rules would have a source position associated with them (based on my intuition) so I do not see why Sorald would not support them.

Fixed in https://github.com/SpoonLabs/sorald/pull/751.


subscription_list: Show @-mention indicator when that applies

Fixes: #747
unreads changes here are reflections of what web has at unread.ts

Thanks @sm-sayedi and @kenclary for the reviews!
I figured that there are more cases that still need handling..
Specifically, the unread count / muted unread badge are related have more complex cases when there are mentions, I'll make more investigation on zulip/zulip and update this comment.
And currently, we don't have a record for muted mentions which should be fixed in this PR.
So marking this as a draft for now until it is ready.

GitHub is showing there's a conflict in lib/widgets/theme.dart, could you resolve that please?

Sure! just fixed PTAL @chrisbobbe.


Template Filling, Styles & Page Setups

I am trying to replace an implementation of PHPExcel with js-xlsx under node js as I am no longer using php server-side.
I have a series of excel templates that are pre-formatted with colours and styling, and also page size, margins, print areas etc etc, and then I simply add text to the relevant cells, under PHPexcel it works very well.
I discovered js-xlsx a few hours ago and thought I had found the solution, but it appears that I am unable to duplicate the original file, only with the cell values changed, whilst maintaining everything else in the original file.
var XLSX = require('xlsx');
var wb = XLSX.readFile('/usr/share/nodejs/dwap/public/xls/qplan.xlsx',{cellStyles:true});
XLSX.writeFile(wb,'/usr/share/nodejs/dwap/public/xls/out.xlsx',{bookSST:true});

I have used the simple code above to read in a formatted file and then save it again, but all of the styling is lost.
Is it possible to achieve this kind of functionality with js-xlsx and if so what am I doing wrong ?

Is there any new development for keeping raw template styles once file is written?

We offer this in the Pro compendium.  Since companies have paid for the features already, it would be unfair to them if we turned around and made it available as open source.  We have a longer comment in a gist.


Update user_queue table composite key closes #167

Codecov Report

Merging #173 (61fd330) into main (276acc0) will increase coverage by 0.46%.
The diff coverage is 48.24%.

@@             Coverage Diff              @@
##               main     #173      +/-   ##
============================================
+ Coverage     82.19%   82.66%   +0.46%
- Complexity      339      356      +17
============================================
  Files            45       46       +1
  Lines           966      992      +26
  Branches        138      128      -10
============================================
+ Hits            794      820      +26
- Misses           80       89       +9
+ Partials         92       83       -9

Flag
Coverage Δ

unittests
82.66% <48.24%> (+0.46%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...om/innopolis/innoqueue/domain/queue/model/Queue.kt
100.00% <ø> (ø)

.../com/innopolis/innoqueue/domain/user/model/User.kt
100.00% <ø> (ø)

...nnopolis/innoqueue/service/NotificationsService.kt
91.66% <0.00%> (-1.20%)
:arrow_down:

...lis/innoqueue/domain/queue/service/QueueService.kt
69.87% <40.57%> (+1.54%)
:arrow_up:

...lis/innoqueue/domain/queue/util/UsersQueueLogic.kt
60.00% <50.00%> (ø)

...com/innopolis/innoqueue/service/ToDoTaskService.kt
82.89% <60.86%> (+6.27%)
:arrow_up:

.../kotlin/com/innopolis/innoqueue/model/UserQueue.kt
100.00% <100.00%> (ø)

...otlin/com/innopolis/innoqueue/model/UserQueueId.kt
100.00% <100.00%> (ø)

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


chore: verify with 4.5

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This looks good. Can we update the MPL at least. And maybe the ESDK?
Also, I think that 4.6 is the latests Dafny version. Does that just work?


Segfault when calling destructor without initializing

Hi all,
a simple program like this one:
int main(int argc, char **argv){
  TebOptimalPlanner teb;
}

produces a segfault. The reason is that in the destructor it tries to clear the graph without having been initialized.
Suggested solution is to modify the destructor as:
TebOptimalPlanner::~TebOptimalPlanner()
{
  if (optimizer_){
    clearGraph();
  }
}

Best,
Mayte.

thanks for pointing this out @mtlazaro!
Fixed in kinetic and cherry-picked to melodic and dashing.


Fix Markdown in .github/ISSUE_TEMPLATE.md

Fixed Markdown to make checkboxes work.
Incorrect
-[ ] item

Correct:
- [ ] item (notice space)

And this is how it looks like:
-[x] incorrect

[ ] correct

See video tutorial about checkboxes.

Current coverage is 90.49%

Merging #859 into master will decrease coverage by -1.17% as of 1b33eb8

@@            master    #859   diff @@
======================================
  Files           71      71
  Stmts         4102    4102
  Branches       845     845
  Methods          0       0
======================================
- Hit           3760    3712    -48
  Partial         10      10
- Missed         332     380    +48

Review entire Coverage Diff as of 1b33eb8

Powered by Codecov. Updated on successful CI builds.

Thanks! I was wondering why this wasn't working.


feat: Add code compatibility with landing on stars.

This is the PR I talked about Galacticraft-API#27.

I'd argue that even though landable stars are outside the scope of the galacticraft itself, It would still be a good idea to add them to the api, just for the fact that they might be implemented in add-ons. For GC4, it was impossible to make stars landable without patching the code, so I thought the same would be the case for GC5. It doesn't look like that's correct, but regardless, I plan to also create a similar PR but for GC4. Maybe if it gets added to GC4 you'll consider adding it to GC5?

As always, feedback?

@marcus8448 New PR!

@ROMVoid95 Some of the changes were just automatic things done by the editor.

@ROMVoid95 Some of the changes were just automatic things done by the editor.

then dont check them in when you commit

@ROMVoid95 Some of the changes were just automatic things done by the editor.

then dont check them in when you commit

I didn't even notice the changes even occurred.

I'm going to have to uphold the reasoning for not accepting this PR made in https://github.com/TeamGalacticraft/GalacticraftAPI/pull/27. With emphisis on the fact this API is currently depended on by other addons and mods.
Another problem, this would directly affect systems added by addons which GC should not be doing. As doing so can possibly introduce bugs and/or runtime isssues down the line.
However, I have been wanting to add the capability to register custom celestial types directly to the GC Registry instead of only being constrained to extending the current types GC defines. Since this would also be a feature that would benefit what your wanting to do here. and would be willing to implement this, I would be more than happy to further review a PR for that.


(fleet) fix the OCI agent run_path (#27275)

(cherry picked from commit 1253c7b9a05608e686d9fc6c9b6222ce94f9f7df)

What does this PR do?
backpourt #27275

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Space as factor of (themed) constant

Just an idea:
Given a constant of 16(px)
When setting margin m={.5} it whould be 8px and m={-1.5} it would be -24px.
More flexibel and easier to remember.

You can supply your own transform functions with custom style functions, or use a function like this to generate the theme object


doc updates for v6.0.0-beta.3 release

doc updates for v6.0.0-beta.3 release

The failed AppVeyor build is somehow a daily build (not sure why). The failed tests there are already fixed by #4058 in master. But the release branch doesn't have the fix and hence those tests failed.

The packaging failure in OSX is because it tried to create the package beta.3 with beta.3 powershell. It's not a real problem.

Given that, I will merge this branch.


BS in-source files supports

Hey guys,
I've started getting to know reason and reason-react in the last days, so I'm still totally new to the syntax/language and the complementary tooling such as bucklescript.
I do have a side project that I'm working on from time to time which is basically a simple CRA application. So I decided to start putting some reason flavour in it and as far as I could understand it it should be easy to migrate little pieces to reason incrementally.
Long story short:

I've replaced react-scripts with reason-scripts
I've migrated index.js to index.re
I've activated the new in-source builds in conjunction with .bs.js suffix (as recommended from the docs)
...and I bumped into some small issues 🙃

One thing, being that there was a bug in bs-loader that would ignore the suffix. I've opened a PR for that https://github.com/reasonml-community/bs-loader/pull/40
However, reason-scripts still uses version 1.8.0 of bs-loader and it should be upgraded to version 2. Not a huge deal, as this issue can be worked around using a resolutions field with yarn.
Still, I think reason-scripts should support this new options out of the box.
Here comes the additional missing feature: if I activate the in-source option, I'll end up having the compiled file .bs.js next to the source file
Foo.bs.js
Foo.re

However, the eslint rule used by webpack should exclude those auto generated files ending with .bs.js. Using a .eslintignore won't help because it's disabled on purpose on the rule.
A naive "fix" would be something like this:
- test: /\.(js|jsx|mjs)$/,
+ test: function testForJsFilesExcludingBsFiles(fileName) {
+   if (fileName.endsWith('.bs.js')) return false;
+   return /\.(js|jsx|mjs)$/.test(fileName);
+ },

So far those have been the "issues" that I have encountered while getting started with reason.
It would be nice to have them addressed, I'm not sure if there are other things that need to be improved though. But in general, having a good reason/bs support out of the box would be very nice.
Thanks a lot! 🙏
PS: I wanted to open an issue first to discuss those things, I'm also happy to provide a PR if you guys want to 😉

Adding all that in a PR sounds good to me 😄 The reason I've been delaying adding bs-loader@2 is because I want to move away from it in the future with reason-scripts. bs-loader has some complexities that have been handled at the build-system level, like adding in-source builds. Ideally I'd like the have reason-scripts based off of that.

Sounds good. So how do you plan to proceed here?


Added missing toggle to Accordion

Added missing toggle property to accordion. W/o that we have prop types issue:
 Failed prop type: The prop `toggle` is marked as required in `Accordion`, but its value is `undefined`.

See here: https://github.com/reactstrap/reactstrap/blob/ee18f48da45a367bf879104df76b0eb380207d89/src/Accordion.js#L25

[x] Bug fix
[ ] New feature
[ ] Chore
[ ] Breaking change
[ ] There is an open issue which this change addresses
[ ] I have read the CONTRIBUTING document.
[ ] My commits follow the Git Commit Guidelines
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.

[ ] I have updated the documentation accordingly.

[ ] My change requires a change to Typescript typings.

[ ] I have updated the typings accordingly.

[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

PR is still open... :) So if might work if you manually build version with this PR

?

Woo hoo, looks like it was already merged. When can I expect this in stable release? We are so close to clean console output. Let's make that happen. :)

It's been a year since this problem has been fixed and it's not released yet. Is anybody using the Accordion?


v4.3 TCG summons/statusEffects are missing in other languages

For example, id 112091 (Yelan's status effect) can only be found in English in @genshin-db/tcg/src/data.min.json.
In commit 3ee66eff, you can see only English's TCG index is fully updated, while other lanuguages only have tcgactioncards and tcgcharactercards updated.

Ah. I had switched to English-only because I was fixing a bug with tcg extractor, but then I forgot to undo it. @.@

Fixed in v5.0.5, thank you!


Switch to PostgreSQL

Closes #7
This adds PostgreSQL as the database and moves us off of SQLite3. This is required prior to deploying to Heroku. Also included are basic instructions for getting a PostgreSQL database up and running.
/cc @cheshire137

What is this witchcraft, Rick! rake db:setup does it all, like you said!
% psql db/development
psql (9.6.1)
Type "help" for help.

db/development=# \d
                     List of relations
 Schema |           Name           |   Type   |    Owner
--------+--------------------------+----------+-------------
 public | ar_internal_metadata     | table    | cheshire137
 public | compositions             | table    | cheshire137
 public | compositions_id_seq      | sequence | cheshire137
 public | heroes                   | table    | cheshire137
 public | heroes_id_seq            | sequence | cheshire137
 public | map_segments             | table    | cheshire137
 public | map_segments_id_seq      | sequence | cheshire137
 public | maps                     | table    | cheshire137
 public | maps_id_seq              | sequence | cheshire137
 public | player_heroes            | table    | cheshire137
 public | player_heroes_id_seq     | sequence | cheshire137
 public | player_selections        | table    | cheshire137
 public | player_selections_id_seq | sequence | cheshire137
 public | players                  | table    | cheshire137
 public | players_id_seq           | sequence | cheshire137
 public | schema_migrations        | table    | cheshire137
 public | users                    | table    | cheshire137
 public | users_id_seq             | sequence | cheshire137
(18 rows)

PostgreSQL blowing my mind here. 😀


App not showing in external share screen on ios

My project use ionic 5 this plugin is work on android device but iOS device not showing my app in external share.
My code.
import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';

declare var cordova: any;

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html',
  styleUrls: ['app.component.scss'],
})
export class AppComponent {

  constructor(
    private platform: Platform
  ) {
    this.initial();
  }

  async initial() {

    await this.platform.ready();

    cordova.openwith.init((res: any) => {
      console.log('##### openwith success #####', res);
    }, (err: any) => {
      console.log('##### openwith error #####', err);
    });

  }

}

From the above problem We have optimized this plugin to work with Ionic & Cordova and solved our personal issues only. There is no guarantee that this model will not encounter any other problems.
https://github.com/secretmoo35/ionic-cordova-plugin-openwith
Thanks.


Update usage-analytics.md

Fixed link and Roadmap title as per https://github.com/MicrosoftDocs/OfficeDocs-O365ITPro/issues/193

@SuPotter Can I merge this?

@IrenePasternack - can you please assist to check, approve and merge the content for this PR?
Thank you.

@SuPotter Can we merge this?

@IrenePasternack  - I would like to follow up on this. Can you please assist to check, approve and merge the content for this PR based on issue #193?
Thank you.

This looks correct to me. Going to go ahead and merge.


Fix undefined reference to libtensorflow-core.a

Adjust gcc parameter order to fix linker error. Tested on gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)

Can one of the admins verify this patch?

Can one of the admins verify this patch?


nit: update jest-image-snapshot "4.2.0",

update jest-image-snapshot "4.2.0",
npm install warning about jest-image-snapshot requires jest of this specific version.
Please review and approve this request.

Hello, can someone please review and approve this PR at your convenience. Thanks!


incorrect filepath generated in the footprint file pointing to the 3d model

Describe the bug
extra drive prefix was added to the filepath of the 3d model in the footprint file. It looks that the current path is used as a prefix instead of the absolute path as specified on the command line. Maybe check if it's an absolute path or relative path and act accordingly when composing the path to be entered in the footprint file pointing to the wrl file.

Thank you for reporting the issue.
Unfortunately, I do not have time to fix this issue for now.
You should be able to implement this without difficulties and submit a PR afterwards.
Thanks for your understanding.


Functional arrow component with default props

Hey, thanks for this collection of snippets, it is really great.
I would love to not have to add default-props every time I bootstrap a component. Do you think that you can add an extra snippet that creates an arrow functional component with prop types and also default props?
Thanks in advance.

@danielo515 Thanks for issue, but there is no defaultProps to any of components, so I would not add this as separate thing.
As idea you can add
defaultProps = {}

and
${1:ComponentName}.defaultProps = {}

To snippets.

Yes, in fact I have one.
But that requires me to type 50% more snippets than having it just on one 🤣
What about creating a version of all the existing snippets but with defaultProps?

@danielo515 If you can that would be awesome but I'm not sure about the name :) If you have any Idea just create a PR :)

@danielo515 This issue has lack of activity from any other users, I don't think it's needed :) Closing.


Insert more spacing to the end of code. Also dial tones for switchboard responds with error.
Not with attachment. Or question. Just want to report a potential bug.

Package Name:
Package Version:
Operating System:
Python Version:

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Bc no-one knows what I am talking about. And I can only say that I am just an explorer.

Bye

I thought I did close the pull request myself. You'll have to excuse me,
This whole thing is really massive.
On Fri, Sep 11, 2020, 3:30 PM Swarts, Collin<EMAIL_ADDRESS>wrote:

Closed #13740 https://github.com/Azure/azure-sdk-for-python/issues/13740
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-sdk-for-python/issues/13740#event-3758275903,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADTLNIF2ESARLEL5LDZEIFTSFKQHRANCNFSM4RH2J6DQ
.


Warning: AppsCase Adware

I just tried to access panel.getwarden.net, but I'm concerned there is something dodgy going on with it.
I was redirected to rep.appscase.com (I didn't realise at first), where I was asked to complete a captcha, then Firefox asked for my permission to install software. It was at this point I noticed I had been redirected.
I can only guess that panel.getwarden.net has been hacked?

Same here. I'm pretty sure that the domain has not been renewed on time.


URL to Microsoft Digital Defense Report does not work

The URL in the first section to the Microsoft Digital Defense Report does not work

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

ID: bad1a372-3d89-f509-6bd2-1e6d12b1d6c7
Version Independent ID: 92fb5a9a-24b8-6f17-2749-99e3b0e999fb
Content: Secure your Azure AD identity infrastructure - Azure Active Directory
Content Source: articles/security/fundamentals/steps-secure-identity.md
Service: security
Sub-service: security-fundamentals
GitHub Login: @martincoetzer
Microsoft Alias: martinco

@myfope Thank you for your feedback . We will investigate and update the thread.

@myfope Please find the report here https://www.microsoft.com/en-in/security/business/security-intelligence-report. We have updated the link in the article and the change request will be approved once content team has completed their review. You can use the Microsoft digital defense report as linked above .

@myfope We have merged the changes . It should go live in the next 24 hours.


Undefined reference to fread_s

When compiling with MSYS2, this error will pop up during the linking phase:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
Lib/libbinary_io.a(binary_io.cpp.obj):binary_io.cpp:(.text+0x1a5): undefined reference to `fread_s

From my minimal research, fread_s isn't part of the C++ standard, so it seems to be a portability issue

My version of g++ is g++.exe (Rev2, Built by MSYS2 project) 11.2.0

MinGW isn't supported

Oh, is there some limitations with supporting MinGW? As far as I know it's just GCC on Windows

I've added MinGW support in a pull request so I'll close this


Can not install Figma on ubuntu

Step 1. git clone https://github.com/302bis/figma-app-ubuntu.git
Cloning into 'figma-app-ubuntu'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 3771 (delta 0), reused 0 (delta 0), pack-reused 3770
Receiving objects: 100% (3771/3771), 214.29 MiB | 1.55 MiB/s, done.
Resolving deltas: 100% (578/578), done.
Checking out files: 100% (3493/3493), done.
Step 2. sudo snap install --edge figma
error: snap "figma" not found

I have the same problem. I've downloaded the .snap file from the url and snap util cannot install the app because error: cannot find signatures with metadata for snap "figma_0.4_amd64.snap"

@SibaMvelo You can try installing the .snap file using,
git clone https://github.com/302bis/figma-app-ubuntu.git && cd figma-app-ubuntu && sudo snap install --dangerous figma_0.1_amd64.snap && figma

This command should install figma-ubuntu on your computer and launch it immediately
@alyxe-code Did you use the --dangerous flag?


Decompression?

I haven't seen a cmd line switch for decompression to file? Is it not supported? I want to update some xdelta patches in isos.
Considering i used the option for larger block sizes i'm uneasy about using other decompressors (unless you say it's ok ofc).

Well, if another decompressor doesn't support it, it'll just fail.  Also, you can use --crc.
I suppose I could add a decompression option.  Another possibility would be applying or unapplying xdelta patches to an iso/cso (and outputting a cso.)  Though, I'm not sure xdelta is the ideal patch format for block based files.
-[Unknown]

A problem with xdelta support idea is that it needs to be 'softpatch'
What i'm currently doing is to apply the xdelta hacker provided patch, then creating my own xdelta from the hacked iso to the original so i can reset and not need to keep the original. You can use this idea if softpatching is impractical. It would still ballon file sizes though (besides not really being part of the CSO file format ofc, unless it allows adding arbitary subheaders).

Well, I think you need to keep around any xdelta patch if you want to unapply it.
I was thinking it would just automate decompress/recompress steps around applying (or reversing) an xdelta patch, in other words hardpatching.  CSO doesn't have any direct mechanism to add extra data.
-[Unknown]

you need to keep around any xdelta patch if you want to unapply it
i've been using this reset method for quite a while, i didn't see anything in the original xdelta command line tool indicating that the patches themselves contain reset data.

CSO doesn't have any direct mechanism to add extra data.
Ugh what a pity. I'd seriously would start using and evangelizing CSO2 if emulators supported it and it had support for 'hardpatch' with resets.

Oh, for some reason I misremembered that xdelta supports reversing patches.  I think I mistake it in my memory for ninja2 or something.
I think we've had this discussion on best patch format before.  Somehow I'm not sure vcdiff/xdelta is ideal for isos.  Not sure.
It seems like if the patcher used xor, the only thing that would be tricky to reverse would be deletions.  Maybe those could be optionally represented as an xor of another portion of the source data.  In that way, patch file instructions could be presented without any risk of containing any portion of the original data...
-[Unknown]

Ehhh, i'm using xdelta not because it's the 'best' (i really have no idea)  but because it's what the PSP hacking scene uses. If 9 out of 10 patches are distributed as xdelta (modulo things like the Final Fantasy Type 0 patch, which needed to decompress every thing from inside the iso therefore making binary patching impractical) then that is what i'd like to see used.

Another option is creating a new file-format, say:
.deltacso (or something) that wraps the cso with a header containing the needed stuff for reset the hardpatch and teach emulators and loaders to use it. Seems kinda troublesome.
They guy that did the CSO specification should really have thought about optional data headers...

Okay, well, patching format discussion aside, I've implemented decompression in v1.5.0.
Just use maxcso --decompress compressed.cso -o result.iso.  It supports all input formats, including ZSO, CSOv2, DAX, and any block sizes.
-[Unknown]


remove offerer bypass on restricted orders; update forge test

Motivation

Solution

i think this is old now?


v 4+ 'Unknown' is not the top of the species options in the species dropdown on 'Add Tree'

ToDO : @SafiDS tried to fix this in PR #397 and #415 and #418 - but I guess this is one stubborn bug.
In release 72 (testflight  ) the bug remains.
The rule is 'Unknown' should ALWAYS be the first thing a user sees in the species dropdown - always.

No longer a problem since release 74. Closing.


Game of Life example doesn't work

Hello, I tried to copy everything for the Game Of Life but when I try to build it it fails. This is the output from doing cargo check:
The code in main.rs and style.rs is exactly copy-pasted
error[E0432]: unresolved import `iced::time`
  --> src/main.rs:10:5
   |
10 |     time, Align, Application, Checkbox, Column, Command, Container, Element,
   |     ^^^^ no `time` in the root

error[E0432]: unresolved imports `iced::canvas::Cache`, `iced::canvas::Cursor`, `iced::canvas::Event`, `iced::canvas::Geometry`, `iced::mouse`, `iced::Rectangle`
   --> src/main.rs:133:19
    |
133 |             self, Cache, Canvas, Cursor, Event, Frame, Geometry, Path, Text,
    |                   ^^^^^          ^^^^^^  ^^^^^         ^^^^^^^^ no `Geometry` in `canvas`
    |                   |              |       |
    |                   |              |       no `Event` in `canvas`
    |                   |              no `Cursor` in `canvas`
    |                   no `Cache` in `canvas`
134 |         },
135 |         mouse, Color, Element, HorizontalAlignment, Length, Point, Rectangle,
    |         ^^^^^ no `mouse` in the root                               ^^^^^^^^^ no `Rectangle` in the root

error[E0405]: cannot find trait `Program` in module `canvas`
   --> src/main.rs:288:22
    |
288 |     impl<'a> canvas::Program<Message> for Grid {
    |                      ^^^^^^^ not found in `canvas`

error: aborting due to 3 previous errors

which version of Iced do you use? Looks like the one from crates.io. However all examples refer to master. Checkout the 0.1 branch to get examples which work with 0.1.1.

Ah you are right, I didn't think about that at all. It looks like there is no game_of_life example in 0.1 branch so I guess it makes sense it doesn't work.
Since I am basically making Langton's Ant and I want to have the same controls as this I think I'll try to use the master branch, thanks!


"Sync" includes and out directories

Right now, the out directory is deleted if present, and then the entire includes directory is copied over.
It would be more efficient (and less prone to permission errors, particularly on Windows but on other platforms as well) to "sync" the out directory to match that of the includes directory. Instead of deleting everything in the folder, we can just delete what's been removed (including previous page output) and replace the files that changed.

https://pypi.org/project/dirsync/2.2.2/ This package might help. Not sure though; I need something that will leave the includes folder intact, so not quite a full on sync.

https://github.com/dotcomboom/AutoSite/commit/c5b028e21bb611eb113ec855f6d3528155e644bf


Rename Rect3 to AABB

This has been on my mind since @reduz renamed AABB to Rect3, and I'd like to discuss this before beta, while we can still make such a change.
This change was made along Matrix3 -> Basis change (which made sense because Matrix3 was not a general matrix but a rotation-scale matrix). but AABB -> Rect3 change did the opposite thing: AABB is a special kind of Rect3, the name should have been kept (since axis-aligned bounding box is a very specific case of a 3D generalization of rectangle.
So I'd like to rename Rect3 back to AABB.

Also, AABB is the term used in literature and other game engines.

I don't mind either way
On Nov 16, 2017 5:42 PM, "Ferenc Arn"<EMAIL_ADDRESS>wrote:

Also, AABB is the term used in literature and other game engines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12973#issuecomment-345056229,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z29ZbIv6ecNoLeCH9Pvqa5YY2aAoPks5s3J5KgaJpZM4QhGze
.

Great! I'll submit the PR before the deadline.
Just a note to myself, I'll need to update the c# files in mono module as well

I don't really mind either.
But if we do this change we loose the explicit "3-dimensional" property of the class, as AABB also exist in 2D. That being said, Basis also removed it, so i guess it's ok.

I'm fine with the change too, but make sure to be thorough (including renaming files when relevant), I remember having had to fix many s/AABB/Rect3/ after reduz's initial renaming.

I'll do a first pass using qtdevelop's refactor tool (never used qtdevelop before so we'll see how it goes), and do a second pass with grep and manual replace which should catch the remaining stuff.

A tip for QtCreator's refactoring tool: make sure to add as many #defines as possible in your Godot.config, otherwise the refactoring tool ignores all the code within #ifdefs... Maybe there's a way to override this behaviour though, it's a bit silly.

I've finished Rect3 -> AABB change.
Now I see the reason why @reduz did that change though: Rect2 is an inconsistent name for 2D AABB. Following the convention for Transform Transform2 etc, would you mind if I rename Rect2 to AABB2?

Is there any difference between a 2D AABB and a rectangle?
Rect2 is the return value of things like get_rect(). So I'm not sure if renaming it to AABB2 would really make things clearer: http://docs.godotengine.org/en/stable/classes/class_sprite.html?highlight=get_rect#class-sprite-get-region-rect

Well, Rect2 is used for a lot of things that are not physic-related, like GUI for example.
IMHO, I wouldn't recommend changing it to AABB2; as AABB is a term strongly related to physics collision.

@groud AABB is used in rendering and culling too ;)

@groud AABB is used in rendering and culling too ;)

Sure, in 3D. :) But when used in 2D, it usually refers to collisions.

Rect2 is fine as is, its used for drawing and many other things. In 3D its pretty much only used as bounding box

OK, sounds good to me

Ah yeah it's used for UI rectangles so it's dual purpose, makes sense.
Haven't used non-3D stuff much so far but I do remember the Control derived objects


Don't allow re-minting / dilution of existing FTs

Code currently allows minting of additional copies of existing FTs. Supply should be set once upon token creation, and dilution should not be possible.

This is not required to be on the base contract. The mint function is internal which means they are going to be used by another contract which inherits from ERC721X. If desirable, the other contract will implement a mint function which can only be callable once

Yep, that makes sense — it should be up to the developer to determine if they want to allow re-minting or not.
Eventually we should add some examples to this repo of different fully fleshed out implementations with best practices, but will this for now.


Ecactus Agave Inverter Solar Data API Home Assistant Integration

Hi all,
I'm a newbie to Home Assistant looking to integrate the data from my Solar setup into HA. There is no integration available for this brand yet and I've tried using other brands but this has not worked.
I have little to no coding experience, but I have managed to complete the following with some basic information.

I have the OpenAPI document
I have the required ID & Password
I have the device SN.

Using these I have been able to send a call and generate a user token via postman using a get URL call.
I now wish to use this token to gain access to the data. that the device exports to its native app.
I have the following info to work with form the API document.

My main issue is with the deviceQueryInfoDto parameter. How do I articulate the values for this?
Also is there a standard value I insert into the value for the end & start parameters

end = (end second timestamp) integer(int64)
start = (start second timestamp(The time span is the last 1 months)) integer(int64)

There is no information on the token duration. is there a standard protocol on how long this token lasts?
Describe the solution you'd like

Access to the data
Details on the sensor creation
Advice on the next steps

We're not providing HA support here, sorry!


Python package binaries from imported devenv not available

Describe the bug
I have a composable devenv like so:
devenv.yaml
devenv.nix
├── devenv
│   └── mkdocs
│       ├── devenv.yaml
│       ├── devenv.nix
│       └── pyproject.toml

In the top level devenv.yaml I have something like this:
inputs:
  nixpkgs:
    url: github:cachix/devenv-nixpkgs/rolling
imports:
  - ./devenv/mkdocs

In the ./devenv/mkdocs/devenv.nix I set up a python env:
{ pkgs, ... }:

{
  languages.python.enable = true;
  languages.python.venv.enable = true;
  languages.python.poetry.enable = true;
  languages.python.poetry.activate.enable = true;
  languages.python.poetry.install.enable = true;
}

with ./devenv/mkdocs/pyproject.toml like so (truncated for brevity):
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
mkdocs = "^1.6.0"

From directly within the devenv/mkdocs devenv I can use python and I can use the packages installed by poetry, eg mkdocs.
❯ which python
/Users/tom/workspace/devenv/mkdocs/.venv/bin/python

❯ which mkdocs
/Users/tom/workspace/devenv/mkdocs/.venv/bin/mkdocs

Problem: From the top level devenv (which imports the mkdocs one) I can use the python binary, but not the ones installed by poetry such as mkdocs.
❯ which python
/Users/tom/workspace/.devenv/state/venv/bin/python

❯ which mkdocs
mkdocs not found

Expectation: I expect to be be able to use the things installed from the imported devenvs poetry venv
Version
❯ devenv version
devenv 1.0.8 (aarch64-darwin)

It should also warn you that pyproject.toml is missing, which is a sign that we're working from the top-level directory.
The module is designed to work from the top-level directory. Composing devenvs like this is tricky, because Nix doesn't have a reliable way of letting us know where an option is defined, e.g. mkdocs/devenv.nix. If we add an option to specify the working directory for the python project, then only one of the devenv's will work, which brings us back full circle.

Best I came up with so far is adding an alias to the binaries that I want to share into the top level devenv:
e.g.
# scripts.mkdocs.exec = lib.mkForce "$DEVENV_ROOT/devenv/mkdocs/.venv/bin/mkdocs $@";

Kinda janky, but sorta works.


Add support for chain 1 (testnet).

According to SLIP44, all test networks are supposed to use a BIP44 path with the chain ID set to 1.  At the moment, the Ethereum Ledger app will reject anything that isn't chain 60 or 61.
Add support for chain 1 as a valid BIP44 derivation path.

Fixed in https://github.com/LedgerHQ/blue-app-eth/commit/4a4dcdce9a469df7027b09c242adc2db5733800f, released on 2017-06-02.

Not yet released for the blue.

Should be done since 1.0.19


How to get the rendering results of normal from 'Geometry Grid	 and	MLP'

Hello! I want to see the results of normal extracted from Geometry Grid and MLP Module, is there any scripts to finish this?
Waiting for your reply!

Sorry for not being clear, what I mean is how to get the result of normal image rendered by the Geometry Grid and MLP module

The normal maps are rendered here: https://github.com/taconite/IntrinsicAvatar/blob/d243d20c4bfa5df10e6613c986a32bd76e7d1d3e/models/intrinsic_avatar.py#L1249-L1285
The corresponding functions are:
https://github.com/taconite/IntrinsicAvatar/blob/d243d20c4bfa5df10e6613c986a32bd76e7d1d3e/models/volrend.py#L638
https://github.com/taconite/IntrinsicAvatar/blob/d243d20c4bfa5df10e6613c986a32bd76e7d1d3e/models/volrend.py#L810


⚠ Samsung has degraded performance

In 46fb797, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2444 ms

Resolved: Samsung performance has improved in 1a32601.


Update auto-comment-pr.yml

Which Issue(s) This PR Fixes(Closes)

Fixes #issue_id
Brief Description

How Did You Test This Change?

🚀Thanks for your contribution🎉, CodeRabbit will review your code first🔥


Create VRX support on CloudSim

Create a new app in CloudSim to run VRX.
Consider the ability to grant access to a few people for testing.

A potential date where we could use this app is September 22 where we'll be talking about VRX in an event hosted by RoboNation.

https://github.com/Field-Robotics-Lab/dockwater/wiki/Customize-and-Run


Way of converting between types of different overflow tags

What is your question?
Is there a way of converting between datatypes with different overflow tags.
What are you trying to do?
One may need to change the overflow type within an algorithm.
TEST(math, convert_overflow_type)
{
    auto a = cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::native_overflow_tag, int16_t>{0.5};
    auto b = cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::native_overflow_tag, int16_t>{0.5};
    auto c = a + b;
    cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::saturated_overflow_tag, int16_t> d = c;
    std::cout << "d = " << d << std::endl;
}

Going through rep works but is quite cumbersome:
static constexpr auto a = cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::native_overflow_tag, int16_t>{0.5};
static constexpr cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::saturated_overflow_tag, int16_t> b = cnl::from_rep<cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::saturated_overflow_tag, int16_t>, int16_t> {}(static_cast<int16_t>(to_rep(a)));
static constexpr auto expected = cnl::static_number<16,-15, cnl::neg_inf_rounding_tag, cnl::saturated_overflow_tag, int16_t>{0.5};
static_assert(identical(expected, b));

There's no such API currently.
I took a look at this yesterday. There is a set_rounding_t alias which does a near-identical thing for rounding_integer. But a quick fix to copy/paste this as set_overflow_t isn't as quite simple as it sounds and merely highlights the fact that there is a more general-purpose solution fighting to get out.
I think that adapting set_tag_t so that it works recursively, is probably the way to go. This will replace set_rounding_t and be used thus:
constexpr auto b{set_tag_t<decltype(a), saturated_overflow_t>{a}};


Added unit test support (managed by the WebFX CLI)

Pull Request Template
^ BTW I didn't notice this detail when approving the PR template, but is it necessary to keep this title in the template?
Pre-PR checklist

[X] PR is not a duplicate
[X] Changes have been made in a separate branch. Branches MUST have descriptive names that start with either the fix/ or feature/ prefixes. Good examples are: fix/signin-issue or feature/issue-templates.
[ ] PR is associated to an issue

Description
I uncommented a unit test Andrew wrote in the modality-base-server-datasource module, and I ran webfx update to update the build chain with the latest version of the WebFX CLI (which now supports unit testing). Also I moved the declaration of the junit & mockito libraries in the root webfx.xml so they can be used in any other Modality module. I also moved the integration test libraries in that same root webfx.xml, but kept them commented as the CLI doesn't support integration test yet.
Type of change

[X] New feature (non-breaking change which adds functionality)

How has this been tested?
I ran mvn test on the modality-base-server-datasource module and got this result:
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.modality_project.base.server.services.datasource.TestModalityLocalDataSourceProvider
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.919 s - in org.modality_project.base.server.services.datasource.TestModalityLocalDataSourceProvider
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Final checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

PS: I didn't tick the 'code' checkboxes as I didn't write any new code...

I've now removed the 'Pull Request Template' header.
This update looks good and i'm happy to merge, except the build is failing - is this because the GitHub Actions usage limits have been exceeded?

It's a new error that occurred a few days ago already, and I think it's coming from Gluon and not from our side.
I opened an issue for it: https://github.com/gluonhq/gluonfx-maven-plugin/issues/438
So I will do the merge if you're happy with that.

Gluon replied to my issue: https://github.com/gluonhq/gluonfx-maven-plugin/issues/438
So good to know they are working on it.
But I think you can merge the PR before they fix the problem.


General update to drop getTable() in favor of blob()

This PR updates the spec and explainer with information closer to the proposal we want to make.
Namely, the spec drops references to getTable(), which is no longer part of the spec that we're proposing, in favor of blob().
This also introduces the concepts necessary to explain font data, namely the SFNT container.
The explainer has been updated to contain current information.
Fixes #27
Fixes #37
Fixes #40

This doesn't build for me:
LINE ~65: Couldn't find 'SFNT' in bibliography data. Did you mean:
  font
  xfn
  wfs
  apng
  sri
 ✘  Did not generate, due to fatal errors

This doesn't build for me:
LINE ~65: Couldn't find 'SFNT' in bibliography data. Did you mean:
  font
  xfn
  wfs
  apng
  sri
 ✘  Did not generate, due to fatal errors

I'm working on making a change to specref to include SFNT.

This doesn't build for me:
LINE ~65: Couldn't find 'SFNT' in bibliography data. Did you mean:
  font
  xfn
  wfs
  apng
  sri
 ✘  Did not generate, due to fatal errors

I'm working on making a change to specref to include SFNT.

specref change here: https://github.com/tobie/specref/pull/629


err instanceof Error

hey @philbooth I am trying to check.error() on a FandangledError object which inherits from Error, eg this: https://github.com/elastic/elasticsearch-js/blob/master/src/lib/errors.js
instead of toString() returning '[object Error]' it returns '[object Object]' however err instanceof Error returns true
thoughts?

Hello mate. :)
Yep, I think the two tests should be ||-combined. Feel free to PR, if not I'll do it over the weekend.
And as it's a breaking change, I'll also use the major version bump to make certain other interface changes that have been requested elsewhere.

Fixed and published to npm as version 4.0.0.

Thanks @philbooth I will be visiting London from the 23rd so I can buy you a :beer:!

I will be visiting London from the 23rd...

Noted in calendar.


fsharp/fsharp:latest not found by Bitbucket pipelines

Admittedly, I'm new to Bitbucket and their pipelines (and I know that this isn't Bitbucket).  However, my F# console app built successfully until four days ago which, coincidentally is also when a number of pushes were made to the repo here.
I use the fsharp:latest image from hub.docker.com but the build fails because of the error:
Error: image fsharp/fsharp:latest not found
Any ideas what may be going on?
Again, everything built successfully until four days ago when I started getting these failures.

Use FROM fsharp:latest

BTW, you actually mention that in your message. Look closely! It's not fsharp/fsharp:latest but fsharp:latest.

Turns out that Docker was having big issues yesterday too.  So, even with the correct line of fsharp:latest, builds were failing all over the place.  It wasn't just me!

S3 has tentacles everywhere.


linux hardening: checksecurity 2.0.15 -fail to fetch from: http://ftp.de.debian.org/debian/pool/main/c/checksecurity/checksecurity_2.0.15.tar.gz  unable to fetch and compile checksecurity into Petalinux for basic system security checks.

HI,
working with Petalinux 2021.2, (gatesgarth), with linux red hat on my PC.
trying to implement meta-security with its hardening features like bastille and checksecurity as s explained in :
https://github.com/Xilinx/meta-security/tree/rel-v2021.2
in meta-security layer i want to use checksecurity package, as explained in docs folder overview.txt.
meta-security is exist and implemented in linux as a layer, and for example nmap and other packages are compiled with command petalinux -build -c ..
for checksecurity package (in recipes-scanners) the fetch process fails as seen in attached picture:

unable to fetch from http://ftp.de.debian.org/debian/pool/main/c/checksecurity/checksecurity_2.0.15.tar.gz.
when i'm trying to go to the source with my PC /phone i get :
"the requested URL was not found on this server".
1.what are the possibilities & tools to harden my linux with petalinux?
2.maybe the tar.gz location was changed?
3.what is the right way to compile checksecurity into my image?
4 . in addition, bastille doesn't work on my embedded while typing " bastille -c --os Yocto" , command is unknown.
Meta-security Docs
=============
In this section the contents of the layer is listed, along with a short
help for each package.
 == bastille ==

Bastille is a system hardening / lockdown program which enhances the

security of a Unix host. It configures daemons, system settings and

firewalls to be more secure. It can shut off unneeded services

like rcp and rlogin, and helps create "chroot jails" that help limit the

vulnerability of common Internet services like Web services and DNS.

usage : The functionality of Bastille which is available is

    restricted to a purely informational one. The command:

    bastille -c --os Yocto

    will cause a series of menus containing security questions

    about the system to be displayed to the user. For each

    question, a default response, specified in the configuration

    file which is installed with Bastille, will be selected.

    The user may select an alternate response. When the user

    has completed the sequence of menus Bastille saves the

    responses to the configuration file.

    The command:

    bastille -l lists the configuration files that Bastille

    is able to locate.

    The other functionality which Bastille is intended to provide

    is actually unavailable. This is not due to errors in poky

    installation or configuration of the application. The Bastille

    distribution is no longer supported. Significant modifications

    would be required to make it possible to make use of the

    functionality which is currently unavailable.

Additional information about Bastille can be found in the package

README file and other documentation.

Alternatives to Bastille include buck-security and checksecurity,

described elsewhere in this file.

== checksecurity ==
checksecurity is a simple package which will scan your system for several simple security holes.

It uses a simple collection of plugins, all of which are shell scripts which are configured by environmental variables.

    usage : To start checksecurity simply write in the terminal :

        checksecurity

More detailed usage can be found in the man pages and README file of the package.

please help.
thanks for advance!

@hudini87 It appears that this issue lacks any specific ties to Vitis AI.  Potential paths to obtain support for the questions that you have asked might include the user forums, your local FAE, or opening a case with worldwide technical support.  This repository is for Vitis AI specific issues and not for general technical support.
I hope that you find solutions to this challenge.
--Quenton


AppGet Reports Wrong Version Number

The current AppGet installer is named appget.0.8.19.exe. With this version installed running appget version reports version <IP_ADDRESS> which does not agree with the version indicated by the installer.
Presumably, version 0.8.19 is the correct application version and appget version needs to be corrected.

This probably has something to do with the updated build process. I'll take a look.


How does this compare to https://github.com/alkemics/CancelablePromise

I noticed your prior art didn't list this package: https://github.com/alkemics/CancelablePromise

Good question! real-cancellable-promise and cancelable-promise can do the same things, but the two libraries have different underlying philosophies and behaviors.
The big idea behind real-cancellable-promise is that promise.cancel() should truly cancel the API call, animation, or whatever other operation the promise represents.
real-cancellable-promise

When creating a CancellablePromise instance, you provide a normal Promise and a cancel function. The cancel function is supposed to cancel the underlying asynchronous operation. This is how real-cancellable-promise is intended to be used.
If a CancellablePromise is canceled, it rejects with a Cancellation object which you can catch using try-catch.
If it's not possible to cancel the underlying asynchronous operation, you can use the pseudoCancellable function which causes the CancellablePromise to reject on cancellation without affecting the underlying asynchronous operation.

cancelable-promise

It looks like the default usage is something like this: new CancelablePromise((resolve) => setTimeout(resolve, 1)). The underlying asynchronous operation is not canceled. This is analogous to pseudoCancellable in my library.
It look like, if a CancelablePromise is canceled, it neither resolves nor rejects.
You can use the onCancel callback to cancel the underlying asynchronous operation.

Oh that's great. I am actually looking to really cancel the underlying async operation.
For alot of web requests this can be done with abort controller.
What are your thoughts regarding other kinds of async operations like file writing... Etc?

real-cancellable-promise should work well with AbortController.
I am not really a Node.js guy, so I don't know much about file I/O in JavaScript. But real-cancellable-promise should work fine here as long as you can create a cancel function that aborts the file writing operation.

Great turns out that even FS has AbortController.


Formatting error on ordered list nested in unordered list

Seen here: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/accessing-device-properties

Thanks again @rpavlik, this is another good find.  I've updated the page in question.  If you like, consider a pull request next time.  Whatever's easier...  Thanks again for caring about the driver docs!

No problem - I didn't know if this was a rendering tool issue or a source/input issue (nesting those two kinds of lists in Markdown is something I usually don't dare attempt). I was really just trying to use the docs :D and don't know the recommended dev workflow here for testing a fix (Looks like the hidden powershell script does do something, though something that takes a long time), so I figured it was better to at least report it than ignore it because I couldn't fix it right away.

Excellent point, Ryan!  I was not thinking about the rendering issue, which does indeed come from an oddity on our side.  You might have noticed that GitHub handled those extra line breaks with no problem.  So you're absolutely right, no way for you to test our internal rendering engine :)

(well, the build script kind of works, but the generated files... leave a lot to be desired.)

Is there anything in particular you are trying to accomplish?  Do you just want the docs as local HTML?


Support tuple return type (multi-value feature)

Problem
When compiling a tuple return function as shown below, wasm function is created to be passed as a param.
rust: fn return_tuple() -> (u64, u128)
WAT: (func $return_tuple (type $t6) (param $p0 i32)
A single return is passed as result like this:
rust: fn return_single() -> u64
WAT: (func $stub_return_single (type $t12) (result i32)
If the tuple return is passed as a single param, it is impossible to identify it on the vm host side and copy the region.
Solution
https://hacks.mozilla.org/2019/11/multi-value-all-the-wasm/
This can be solved using wasm's multi-value feature.
RUSTFLAGS="-C target-feature=+multivalue"
We can expect to create a multi value return like this:
WAT: func $return_tuple (type $t6) (result i32 i32)
Problem of Solution
There are two problems.

The above rustc feature is not yet stable. Experimentally compiling the sample contract is failing.
.../release/deps/libuuid-462c11271c01b650.rmeta -C target-feature=+multivalue`` (signal: 11, SIGSEGV: invalid memory reference)
Cannot support yet multi-value feature by Singlepass of Wasmer
https://github.com/wasmerio/wasmer/blob/9291c27941f15a2446be603a5f64f716bf321361/lib/compiler-singlepass/src/compiler.rs#L80

Please check other development language. For example C/C++

This issue was reviewed before the introduction of proc macros #[callable_point] and #[dynamic_link], when primitive types were delivered as they are.
But now it is passed through serialization by the above proc macro. Therefore, it can be expected that a tuple can also be passed as a single serialized data.
It is necessary to check whether the tuple type is enabled by serialization.


Reboots for Applications in Application Groups

Can you add a known issue for Application Groups that indicates that in 1910 applications that require a reboot will cause the application group to return a failed status?

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

ID: 87b75008-ff8a-3cef-f465-1bc93f7caa42
Version Independent ID: fe6e1908-4efc-db07-9d84-24ee7b8d74e7
Content: Create application groups - Configuration Manager
Content Source: sccm/apps/deploy-use/create-app-groups.md
Product: configuration-manager
Technology: configmgr-app
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Thanks @AdamGrossTX for the feedback. I added a bullet for this, should publish live in the next hour or so.


f1 tv stream not working

System Details

OS: Win 11
Thorium Version 117.0.5938.157

Problem
f1 tv stream stuck on loading even though it works on like brave
Screenshots

Additional Notes
Add any other context about the problem here.

I guess this website uses widevine to process audio and video

shame there is no fix ..great browser

Why does it work on linux and not on windows?

Why does it work on linux and not on windows?

it works on linux?

Why does it work on linux and not on windows?

it works on linux?

I'm on Linux, but don't have access to the F1 TV subscription so I can't check.
However F1 TV uses Widevine DRM as stated here which seems to only have a Linux patch built into the browser.
If you want to watch content from your Windows machine, instead of using Thorium you can use RaceControl which seems to have a lot of great ratings, and is OpenSource. I can't guarentee it works, so I apologise if it doesn't.

Why does it work on linux and not on windows?

it works on linux?

Perfectly

I can confirm that it works perfectly on Linux but not on Windows and MacOS.

This issue has been explained in the FAQ


How to get plain text from response ?

Trying to execute the following script
function main(splash)   local url = "http://google.com/robots.txt"   splash:set_result_header(       "Content-Type", "text/plain")   assert(splash:go(url))   assert(splash:wait(0.5))   return {     html = splash:html()   } end
As a result I get the robots.txt file wrapped by

 ...

How to get plain text from response?

splash:html() returns a snapshot of DOM, and browsers adds these elements.
If you need to just fetch a file without processing it in a browser you can use splash:http_get.

Thanks this code works now
function main(splash)   local url = splash.args.url  	local response = splash:http_get(url).info   assert(splash:wait(0.5))   return {     response   } end