Can not find localStorage in phantomjs-2.5.0-beta-macos

Which version of PhantomJS are you using? Tip: run phantomjs --version.
phantomjs-2.5.0-beta-macos

What steps will reproduce the problem?
1.use ptjs2.5.0-beta-macos
2.use window.localStorage in js
3.run

Which operating system are you using?
macOS High Sierra 10.13.1

Did you use binary PhantomJS or did you compile it from source?

Please provide any additional information below.
My code:
 						try{  							window.localStorage.setItem('user', JSON.stringify(user));  							window.localStorage.setItem('menus', JSON.stringify(data));  						}catch(e){  							console.log('没有localStorage');  						}

the stack is "null is not an object(evaluating 'window.localStorage.setItem')"
I don't know what's the problem with, the same code is no problem under Windows 10.

Any plan for version > 2.1.1 is effectively abandoned. Please see #15344 for more details.


3rd party modules

The directory for 3rd party modules in README.md is modulesv3. Should it be modules_v4 for version 2.0+?

The documentation will be fixed by the pull request #23 resulting in version v2.0.7-1.

Release v2.0.7-1 was published.


Update writing-inf-files.md

We should be pointing developers to infverif wherever possible as chkinf has been superseded by it.  I'm not sure if the infverif location I used is appropriate.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Unleash server is not running when connected the real device with Xcode, Only running is ios simulators

2022-02-15 13:15:53.267456+0530 unleash-demo[1409:371738] [connection] nw_socket_handle_socket_event [C1.1:2] Socket SO_ERROR [61: Connection refused]
2022-02-15 13:15:53.268080+0530 unleash-demo[1409:371738] [connection] nw_socket_handle_socket_event [C1.2:2] Socket SO_ERROR [61: Connection refused]
2022-02-15 13:15:53.268299+0530 unleash-demo[1409:371738] Connection 1: received failure notification
2022-02-15 13:15:53.268332+0530 unleash-demo[1409:371738] Connection 1: failed to connect 1:61, reason -1
2022-02-15 13:15:53.268351+0530 unleash-demo[1409:371738] Connection 1: encountered error(1:61)
2022-02-15 13:15:53.269138+0530 unleash-demo[1409:371738] Task <4777BF34-EA67-496B-91DF-22AA5AADC110>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2022-02-15 13:15:53.272623+0530 unleash-demo[1409:371744] Task <4777BF34-EA67-496B-91DF-22AA5AADC110>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x282f9f990 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <4777BF34-EA67-496B-91DF-22AA5AADC110>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <4777BF34-EA67-496B-91DF-22AA5AADC110>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:3000/proxy?, NSErrorFailingURLKey=http://localhost:3000/proxy?, _kCFStreamErrorDomainKey=1}
Something went wrong

This is probably because your real device does not have an Unleash proxy server running on localhost. You would need to give an URL the device is able to resolve to a running proxy .


[WIP] Implementation of pointcut builder with closures

For annotation haters, AOP is awful slow non-intuitive tool. There are a lot of requests to support native closures for definition of advices.
This PR aims to give a tool for defining advices with native PHP syntax.
Example:
$pointcutBuilder = new PointcutBuilder($container);
$pointcutBuilder->before('execution(public **->*(*))', function (MethodInvocation $method) {
    echo $method, PHP_EOL;
});

$pointcutBuilder->after('access(* Demo\**->*)', function (ClassFieldAccess $property) {
    echo $property, PHP_EOL;
});

Is it going to be merged?

Yes, sure, but no one asks me about merging it :) You are first! Is this feature important for you?

Yes, I'd be glad :) I'm trying to adapt go-aop-php in my project but I'm stuck in aspect definition (Cacheable feature). So I would like to try approach from this merge request.


fix: invalid helm template for ingress annotations

There is a bug in ingress.yaml helm template for annotations.
To reproduce bug uncomment ingress configuration in the values.yaml file(or just use --set).
Full path should not be used within "with" block.

Thanks for the contribution @piotrjanik!


Audio support for loop counts

XAudio2 supports loop regions & looping counts. The DirectX Tool Kit for Audio implementation only exposes infinite looping vs. no looping.

Also need enhancements to SoundStreamInstance to support looping regions.


Changed default value to be returned if actual value is undefined or null.

Coverage increased (+0.1%) to 95.558% when pulling c027799cb01e007128ac20d4c0fab532338d56e3 on default-value into e75fbb42f91fa2d7674c5c82ab14df742799e2f0 on master.


This saved me from having to write this myself!
Thanks!
Would be nice if integrated in the official Nuget package eventually...


Fatal exception during proxy generation - Excelsior JET

Hello,
Today I've encountered a strange error. I've compiled my project and the .JAR runs fine. When I make an .exe file using Excelsior it compiles fine though when ran it throws me the following exception:
[main] ERROR com.zaxxer.hikari.proxy.JavassistProxyFactory - Fatal exception during proxy generation

javassist.CannotCompileException: by java.lang.LinkageError: duplicate class definition
        at javassist.ClassPool.toClass(ClassPool.java:1099)
        at javassist.CtClass.toClass(CtClass.java:1265)
        at com.zaxxer.hikari.proxy.JavassistProxyFactory.modifyProxyFactory(JavassistProxyFactory.ja
va:121)
        at com.zaxxer.hikari.proxy.JavassistProxyFactory.(JavassistProxyFactory.java:56)
        at com.zaxxer.hikari.proxy.JavassistProxyFactory.initialize(JavassistProxyFactory.java:74)
        at com.zaxxer.hikari.HikariConfig.(HikariConfig.java:88)
I've tried making an empty application and just calling a new database pool. This works fine and compiles fine to an .exe file. This 'testing' application has no other dependencies except the sl4j api and javassist.
My 'main' application has the following dependencies:

org.jboss.netty:netty:3.2.0.Fina
mysql:mysql-connector-java:5.1.31
org.slf4j:slf4j-simple:1.7.7
org.slf4j:slf4j-api:1.7.7
net.sf.trove4j:trove4j:3.0.3
com.zaxxer:HikariCP-java6:2.0.1
org.javassist:javassist:3.18.1-GA

Here is how I instantiate a new database connection pool: http://pastebin.com/y3CkQ2Wf
Thanks.

I don't have any experience with Excelsior (this might be a question for them).  First, try upgrading to HikariCP 2.3.2, who knows what fixes between 2.0.1 and 2.3.2 might affect Excelsior?
Are you saying that the "empty" application that creates a new database pool compiles into and .exe and actually runs fine?  Including executing a simple query, for example?

Please re-open if you have more information or a status update.

Hi, I am from Excelsior.
We have the same bug report recently. Actually, the way you inject the code into ProxyFactory is not Java SE compatible and fragile. According JVM specification a JVM can resolve class references as lazily (as HotSpot does) and eagerly (as we do, we do it ahead-of-time). So non-patched ProxyFactory class can be loaded before it becomes patched and when you patch it and try to load, it results to LinkageError that is actually required by the JVM specification in this case. So your code internally relies on lazy class resolution implemented in HotSpot. But this can be changed in the future. For instance, Java 9 modules linker also does some class reference resolution ahead-of-time and your code can stop working for Java 9 modules at some point.
So I would suggest you to rewrite your code making ProxyFactory abstract and generating a descendant of it and instantiating it at run-time.
Meanwhile we have to provide our users an option to exclude ProxyFactory from ahead-of-time compilation to make the things work.
Please re-open the issue if you think that my comment is reasonable.

BTW, if you follow my suggestion it will fix the #217 issue as well

@pjBooms Upgrade your version of HikariCP.  HikariCP no longer generates classes at runtime, classes are generated at build time.

Ok, I see :).
Just curious, why is it still generated? The bodies are pretty static and can appear in the source directly.

BTW, from which version you generate classes at build time?

@pjBooms build time proxy generation started from 2.4.0.
As to why we generate proxies, we do so because interfaces like java.sql.Statement and java.sql.ResultSet have dozens of methods, but we only need to intercept a few.  As a consequence, we can have an implementation class that barely exceeds 100 lines, and generate the rest as boilerplate that simply delegates to the wrapped driver implementation: { try { return delegate.method($$); } catch (SQLException e) { throw checkException(e); } }.

Ok, but decompiled version of ProxyFactory looks exactly this way:
package com.zaxxer.hikari.pool;

import com.zaxxer.hikari.util.FastList;
import java.sql.*;

public final class ProxyFactory
{

    private ProxyFactory()
    {
    }

    static ProxyConnection getProxyConnection(PoolEntry poolentry, Connection connection, FastList fastlist, ProxyLeakTask proxyleaktask, long l, boolean flag, boolean flag1)
    {
        return new HikariProxyConnection(poolentry, connection, fastlist, proxyleaktask, l, flag, flag1);
    }

    static Statement getProxyStatement(ProxyConnection proxyconnection, Statement statement)
    {
        return new HikariProxyStatement(proxyconnection, statement);
    }

    static CallableStatement getProxyCallableStatement(ProxyConnection proxyconnection, CallableStatement callablestatement)
    {
        return new HikariProxyCallableStatement(proxyconnection, callablestatement);
    }

    static PreparedStatement getProxyPreparedStatement(ProxyConnection proxyconnection, PreparedStatement preparedstatement)
    {
        return new HikariProxyPreparedStatement(proxyconnection, preparedstatement);
    }

    static ResultSet getProxyResultSet(ProxyConnection proxyconnection, ProxyStatement proxystatement, ResultSet resultset)
    {
        return new HikariProxyResultSet(proxyconnection, proxystatement, resultset);
    }
}

Why not just put that code directly to the source and remove JavassistProxyFactory as a result?

Ok, now I understand, thank you.


day2: classif approaches: separate into topic wise files

actuaylly "classification approaches" seems to be "generative models"

can this be closed?

yeah, this is part of #337


[QoL] Xeno auto attack

About the PR
Gave xenos the ability to hold down their basic attack, wideswing and tackle button, to automatically repeat the action until released.

Media
https://github.com/user-attachments/assets/9ec724f7-b4e1-4566-8ec2-c40164831888
Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

[x] By submitting this code and/or assets, I confirm that I either own them or have provided the correct necessary licenses to use and distribute them. I agree to be fully responsible for any legal claims or issues arising from the use of these materials.

Changelog
:cl:

add: You can now as Xenonids hold down your attack, wide swing and tackle keybinds, to continue the action.

Why not give this to marines too?


PHP SDK issue

@jeromegamez I have installed the latest kreait using composer and try to call the below methods. but it says the function is not found. I am trying to integrate auth in my Codeigniter REST project.
// with an access token from Facebook
$signInResult = $auth->signInWithFacebookAccessToken($accessToken);
// with an ID token from Google
$signInResult = $auth->signInWithGoogleIdToken($idToken);
// with a Twitter OAuth 1.0 credential
$signInResult = $auth->signInWithTwitterOauthCredential($accessToken, $oauthTokenSecret);

This is unfortunately not enough information to be able to help you. "latest" is not a version number, and the code is just copied from the documentation.
Please have a look at https://github.com/tattersoftware/codeigniter4-firebase for an integration with CodeIgniter. The creator of the integration is present on our Discord server, they might be able to help you further.
Please explain further what you're trying to do and what you're expecting to happen 🙏


Installing pymumps with mumps from conda-forge

Hi,
I tried installing the package and even though the installation is successful I get an error when running the example. I install the dependencies with conda-forge (MUMPS5.1.2). The error seems to be happening when linking with the share library:
dlopen(_dmumps.cpython-36m-darwin.so, 2)
Symbol not found: ___mumps_fac_descband_data_m_MOD_inode_waited_for
Is there an easy fix? Does pymumps work with other all version
Thanks

I also get a similar problem when using mumps from conda forge:
(pm) jbw@broadway ~  $ python
Python 3.6.5 | packaged by conda-forge | (default, Apr  6 2018, 13:39:56)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mumps
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jbw/.local/miniconda/lib/python3.6/site-packages/PyMUMPS-0.3.2-py3.6-linux-x86_64.egg/mumps/__init__.py", line 2, in <module>
    import mumps._dmumps
ImportError: /home/jbw/.local/miniconda/lib/python3.6/site-packages/PyMUMPS-0.3.2-py3.6-linux-x86_64.egg/mumps/_dmumps.cpython-36m-x86_64-linux-gnu.so: undefined symbol: __mumps_ooc_common_MOD_ooc_vaddr

it's not the same symbol, but I suspect the problems may be similar

When I inspect the shared library that PyMUMPS builds (_dmumps.cpython....)

This tells me that PyMUMPS was not correctly linked against mumps because there's no entry telling the dynamic linker to pull in any mumps-related libraries, and all the mumps-related symbols are undefined.
My guess is that we are not linking against mumps_common

Ok, so if building pymumps with
libraries=['dmumps', 'mumps_common', 'esmumps', 'metis', 'scotch', 'openblas', 'mpiseq', 'pord']

in setup.py (all libraries needed) resolves all symbols for the mumps package. However, then I am getting the same segfaults as with mumps-mpi.

I am on Debian stable, which still has mumps-4.10. I guess the bindings don't work with newer mumps. Will take a look.

Yeah linking against mumps is a bit of a black art. It seems that our "mumpy" wrapper works when linking both against Debian mumps and against Conda mumps. I should reserve some time to pull the mumpy code into PyMUMPS like I said I would.

So at first sight it doesn't have anything to do with the mumps version. I just installed the mumps-5.1.2 source package from sid and things seem to be working fine. Seems to be something specific to anaconda.

what do you mean you installed from sid?

@santiagoropb, 'sid' is the name of the Debian unstable repository. Are you using the mumps or mumps-mpi package?

Thanks! I am using mumps. At this point I don't really care about using pymumps in parallel just want to test some of the features of the serial version. I believe there have been significant improvements from 4.10 to 5.1.2 so I want to run some benchmark problems that work fine with HSL/ma27 but fail with mumps-4.10. Thanks for the initiative with pymumps. I believe efficient open-source reliable linear solvers  are needed in python.

Ok, so the reason for my segfaults with anaconda was that pymumps' setup.py included the system mumps headers instead of the ones shipped with anaconda, and those were of the wrong version ..
@santiagoropb, could you try to change the linked libraries in setup.py to
libraries=['dmumps', 'mumps_common', 'esmumps', 'metis', 'scotch', 'openblas', 'mpiseq', 'pord']

and then install pymumps by hand (using python setup.py install)? On my machine this seems to work.


AAD signins - not all riskEventTypes_v2 values collected

Using the add-on,  we don't see any riskyIPAddress values in the indexed riskEventTypes_v2 fields of Splunk events.
I have searched back over our entire index and don't get any hits for this:
index=azure  sourcetype="azure:aad:signin"   riskEventTypes_v2{}=*risk*

even though I can find events that should match when I query Graph directly:
Get-MgAuditLogSignIn -All -Filter "riskEventTypes_V2/any(c:c eq 'riskyIPAddress') and createdDateTime ge 2023-08-01T00:00:00Z and createdDateTime lt 2023-08-29T00:00:00Z"

An example of a Graph-fetched log:
  {
    "CorrelationId": "108e77d9-dd07-4455-8f2b-db3562c68d9d",
    "CreatedDateTime": "2023-08-16T03:31:47Z",
...
    "IPAddress": "<IP_ADDRESS>",
    "Id": "62b96348-b714-43a3-a909-cbf49e63cb00",
    "IsInteractive": true,
    "Location": {
      "City": "Schoenwalde-Glien",
      "CountryOrRegion": "DE",
...
      "State": "Brandenburg"
    },
    "ResourceDisplayName": "Office 365 Exchange Online",
    "ResourceId": "00000002-0000-0ff1-ce00-000000000000",
    "RiskDetail": "userPassedMFADrivenByRiskBasedPolicy",
    "RiskEventTypes": [
      "anonymizedIPAddress"
    ],
    "RiskEventTypesV2": [
      "anonymizedIPAddress",
      "riskyIPAddress"
    ],

and the same event logged in Splunk.   Note the difference in the RiskEventTypesV2 field values
{
  correlationId: 108e77d9-dd07-4455-8f2b-db3562c68d9d
  createdDateTime: 2023-08-16T03:31:47Z
...
  id: 62b96348-b714-43a3-a909-cbf49e63cb00
  ipAddress: <IP_ADDRESS>
  isInteractive: true
  riskEventTypes: [ [-]
    anonymizedIPAddress
  ]
  riskEventTypes_v2: [ [-]
    anonymizedIPAddress
  ]
  riskLevelAggregated: none
  riskLevelDuringSignIn: medium

The non-beta endpoint returns these values whether I use Get-MgAuditLogSignIn (see example in original note) or  https://developer.microsoft.com/en-us/graph/graph-explorer (pic below).


free(): invalid pointer error

Immediately aborts with the error:
*** glibc detected *** /bin/sh: free(): invalid pointer: 0x000cd0cc ***
Attempting to run it on an old nas with 'uname':
Linux Seagate-D2 3.10.72-svn18863 #1 Thu Jan 17 00:12:15 UTC 2019 armv7l GNU/Linux
Kernel & software is probably too deprecated?

Can you run: ls -l /bin/sh and sh --version
If your system is systemd then perhaps also coredumpctl info to get the last crash stack trace.
Does the script even print anything before that error occurs?

ls -l /bin/sh

Your BusyBox shell has broken POSIX compliance: https://pubs.opengroup.org/onlinepubs/009695299/utilities/trap.html#tag_04_146_14
I've confirmed that the issue has already been fixed in newer BusyBox versions. It looks to have been fixed in 3 July 2017 -- BusyBox 1.27.0 (unstable) with commit message ash: fix 'trap - 65'. You're running 1.23 hence why you still have that bug (2019 must be the build time?).
For this reason, I recommend you workaround the bug by simply adding this on the line before signo=$((signo + 1)) in Mido.sh: [ "$signo" = 64 ] && break
I've fixed a few more POSIX compliance issues in regards to coreutils (e.g. replaced fmt with fold) so make sure to update and let me know if you can get it working now.

That fix worked, in that the download attempted to start, but now 'head' is giving troubles.
I installed a later version of Busybox, but still the same issue -
head: invalid option -- '-' BusyBox v1.36.1 (2023-09-01 19:09:45 UTC) multi-call binary.
I understand if you would like to close this issue; I don't want to waste any more of your time seeking to shoehorn fixes for some ancient, obsolete NAS operating system.


Graceful shutdown of native eframe

Sparked by https://github.com/emilk/egui/discussions/813
There are two user stories we want to support:
When a user closes the native eframe window (e.g. by clicking the X or pressing Ctrl-F4/Cmd-Q)…
…the egui app should continue and show a "Do you want to save your work" popup (using egui).
…the native window should close immediately, but the app should be able to take its time to save data to disk, etc.
For the first case eframe would need to communicate the closing as an event to the App rather than shutting down directly, and then have the app tell eframe when it is actually time to quit.
For the second case: currently if App::on_exit is slow, the native window will linger, frozen and unresponsive (bad). The fix is probably as simple as moving around some code in egui_glium and egui_glow.

I was wanting this functionality a while ago (to allow time for network connections to close cleanly while still showing UI progress feedback).
I got as far as determining that AFAICT the reason this wasn't currently possible was due to treating WindowEvent::CloseRequested & WindowEvent::Destroyed as being identical here:
https://github.com/emilk/egui/blob/19766bfe4cd756e27c07e338075493a2a22f5131/egui-winit/src/lib.rs#L562
I did not get as far as writing this up until now, however. :)
As I understand it, to enable graceful shutdown we'd need to treat WindowEvent::CloseRequested as a separate event type.

Is this already implemented? This example: https://github.com/emilk/egui/tree/master/examples/confirm_exit seems to work.

This example: https://github.com/emilk/egui/tree/master/examples/confirm_exit seems to work.

the example shows how to close the application using frame.close(). developer can close the window anytime using that.
this issue is more about intercepting an external close event (clicking red X close button on window's titlebar or system alt+f4 shortcut etc..). then, just forward the close event to the developer. then, dev can decide whether to close the app or show a prompt before calling frame.close or  save the state to disk before closing or just ignore it even.

It intercepts! The on_close_event function defined when implementing the eframe app is invoked when a user attempts to close the window. In this case, the function flips a boolean that shows the exit dialog to the user.
When attempting to close the window of that demo on my (Linux/Wayland) machine, instead of the window closing, I see the dialog.
Try it on yours 😁

It intercepts

oh yes. i didn't know about on_close_event until now. I guess this issue is already solved then.


Remove legacy top-scope syntax

I'm thinking we should just remove the legacy facts from the table instead. Preparing a pull request.

See #405 as an alternative that just removes the legacy facts column from the readme.


[Feature] Adding favicon to the contributor's page

Description
adding favicon to the page will enhance it more.
Screenshots

Checklist

[X] I have checked the existing issues.
[X] I have read the Code Of Conduct
[X] The changes don't break the code
[X] Please attach the screenshots and video of the development work once it is done

I would like to work on this issue.

please assign this issue to me

I am working on it. Will resolve this by today


What does the distribution story entail?

One of the key claims for an {O,N}SDI paper would be full distribution---including fs, runtime, and planner. Divide this to smaller tasks, and what it would take to complete them.
From the README:

Distributed file-system (and, more generally, networked distribution): as much of Unix is about files, incorporating an existing Unix-like distributed file-system is key to shell script distribution. With a DFS, /x/y would resolve to the filesystem of a specific node---but it should be location-aware so that Dish sends commands to where files (streams) reside.

Planner: augment and extend the functionality of the planner with the ability to optimize the distributed script and map it efficiently on the underlying infrastructure---using information about the workload, infrastructure, etc. The planner should also add and leverage metadata (lines, batches etc.) for key planning decisions.

Distributed runtime environment: currently Dish rewrites pipelines to extract parallelism---that is, the end result of our toolchain is still a shell pipeline. A more sophisticated runtime environment could provide significant benefits by manipulating metadata for both accelerating performance (e.g., wrapping commands with packing/unpacking) and fault tolerance (by knowing which of calls fail). It is important for the runtime to be optimized significantly so as to not have any issues.

Closing since this is very old and obsolete.


[MB-12760] Fix TOO approval of PPM shipment by adding missing PPM payload

Jira ticket for this change
Summary
This addresses a bug in a prime counseled PPM shipment seeing a Something Went Wrong error on the office side when the TOO approved a PPM shipment along with the move.
The response to the approve shipment mutation did not load the PPM Shipment association on the MTO Shipment so when the react query updated the query cache and components re-rendered we tried to access PPM data to display it and got an undefined error.  The page tries to redirect you to the Move Task Order page but this bad cache invalidation causes the page to crash.
I would have been more thorough but this is a big demo blocker issue for us on Thursday so it's a bit rushed ❤
Setup to Run Your Code
💻 You will need to use three separate terminals to test this locally.
Terminal 1
Start the UI locally.
make client_run

Terminal 2
Start the Go server locally.
make db_dev_e2e_populate && make server_run

Additional steps

Sign in to the customer app with a user like<EMAIL_ADDRESS>and use the pre-filled postal codes, which will go to the TOO for approval and then the prime for counseling.
Login as the TOO to the default KKFA GBLOC and approve the shipment and a basic service item
There should no longer be a Something Went Wrong failure because the approve shipment response has the ppm shipment data loaded in the payload so it doesn't cause any undefined errors when destructuring the shipment props in any component.
You should be redirected to the Move Task Order page and the PPM shipment is shown

Verification Steps for Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

Frontend

[ ] User facing changes have been reviewed by design.
[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] There are no new console errors in the browser devtools
[ ] There are no new console errors in the test output
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.

Backend

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

Screenshots

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

Messages

:book:
:link: MB-12760

  Generated by :no_entry_sign: dangerJS against 90342abd18a2dcdd573bc2c2d8c631b5d8cf05af


Update README.md

Hi,
This is a very small PR that adds a button to get the app on F-Droid, and improve the link to the Google Play Store with a button.
Thanks for your app :)

Nice 👍 merged. :)


add code test coverage to scrutinizer config

Hi,
if you add
build:
    tests:
        override:
            -
                command: 'phpunit --coverage-clover=codecoverage.xml'
                coverage:
                    file: 'codecoverage.xml'
                    format: 'php-clover'

at the end of scrutinizer config ( https://scrutinizer-ci.com/g/spress/Spress/settings/build-config ), you'd get code test coverage info.
You can see it on my fork on scrutinizer https://scrutinizer-ci.com/g/lury/Spress/code-structure/scrutinizer_fixes - there's an additional column with Test Coverage, and you can inspect coverage on the code level: https://scrutinizer-ci.com/g/lury/Spress/code-structure/scrutinizer_fixes/class/Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGenerator ( you have to click "code coverage button above the code preview )

Yeah! done (https://scrutinizer-ci.com/docs/build/code_coverage#php)

Look nice.


[Bug][Per page] Page is greater than the total available

There is an exception, when I try to change "per page" option in the MUITable at the last page (data length equals to 29, and we change per page from 10 items to 15 items, and expect total 2 pages, but got the exception: Provided options.page of `2` is greater than the total available page length of `1` )
Btw, if data length equals to 30, there are no exceptions in this case.
Such problem already have been solved at #48, but seems not at all.

Expected Behavior

We don't have an exception, and can see 2 pages with our data
Current Behavior

We have exception on display Provided options.page of `2` is greater than the total available page length of `1`
Steps to Reproduce (for bugs)

Live example: https://codesandbox.io/s/6vlml849zk

Go to last page (page number 3)
Change option "per page" from "10" to "15"
Boom!

Your Environment

Tech
Version

Material-UI
1.4.0

MUI-datatables
^2.0.0-beta-32

React
16.5.0

browser
Chrome

Ok, thanks for noting the bug. Would you like to work on the issue and send in a PR?

@gregnb I can try to solve this problem :)

@gregnb when this bugfix will be release? I need it in my project, thx )


⚠ Bofrost.at has degraded performance

In 3fdfffe, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2492 ms

Resolved: Bofrost.at performance has improved in 8a31a51 after 19 minutes.


netconan: error: Unexpected line : point-to-point;

Hi
I tried netconan on our juniper configurations but it's failing with the following error message
netconan  --anonymize-passwords -c bs1-ash1.candidate.conf

usage: netconan [-h] [-a] [-c CONFIG] [-d DUMP_IP_MAP] -i INPUT
                [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-n AS_NUMBERS] -o
                OUTPUT [-p] [-r RESERVED_WORDS] [-s SALT] [-u]
                [-w SENSITIVE_WORDS]
netconan: error: Unexpected line 11 in bs1-ash1.candidate.conf: point-to-point;

here is the first part of our config
## Last changed: 2018-12-06 17:09:11 PST
version 17.3R2-S2.1;
groups {
    ISIS-BASE {
        protocols {
            isis {
                reference-bandwidth 1000g;
                level 1 disable;
                level 2 wide-metrics-only;
                interface <*-*> {
                    point-to-point;
                    bfd-liveness-detection {
                        minimum-interval 1000;
                        multiplier 3;
                    }
                }
                interface <ae*> {
                    point-to-point;
                }
                interface lo0.0 {
                    passive;
                }
            }
        }
    }

My environment
Python 2.7.14
netconan         0.8.1

Please let me know if I'm doing something wrong
thanks
Damien

Hi @dgarros ! Use the -i (input directory) param to specify the directory you would like to anonymize (-c is the configuration file used to configure Netconan itself).
For example if your config is at configs/bs1-ash1.candidate.conf, run:
netconan --anonymize-passwords -i configs/ -o anon_configs/

This will anonymize the files in configs/ and save the anonymized versions into anon_configs/ directory.

make sense now, too many configs
thanks for the quick reply


feat: add github user extractor

This extractor pulls user data from github and creates a user metadata model.

dont forget to list down your extractor here as mentioned in this guide.

dont forget to list down your extractor here as mentioned in this guide.

Done!!!
@StewartJingga
Also, how about tests for this? Actually, Not much to test apart from mocking the Github client. Any suggestion?

dont forget to list down your extractor here as mentioned in this guide.

Done!!!
@StewartJingga
Also, how about tests for this? Actually, Not much to test apart from mocking the Github client. Any suggestion?

yeah been thinking about that as well, the best we could do is creating a mock and an interface of github client just to test if we are mapping the right data to meta.Table.


Use Dict_getArray in more places in src/core/ to avoid issues when Arrays contain indirect objects

As evident from e.g. PRs #6485 and #7118, some bad PDF generators unfortunately create Arrays where some elements are indirect objects (i.e. Refs). This seems to mostly affect Arrays that contain numbers, such as e.g. Matrix/FontMatrix/BBox/FontBBox/Rect/Color/..., and has manifested itself in PDF files that fail to render correctly (some elements are missing).
The problem in both the cases above, besides broken rendering, was that there were no errors/warnings that indicated what the problem was, making it difficult to pinpoint the issue.
Hence this patch, where I've audited all usages of Dict_get in src/core/ files, and replaced it with Dict_getArray where appropriate to try and prevent unnecessary future bugs.

/botio-linux preview

/botio test

/botio-linux preview

/botio-linux preview

/botio test

I have verified all changes with the specification and it is good to make this more solid. Thank you for the patch!


upgrade kong ingress controller to 2.7.0

https://github.com/Kong/kubernetes-ingress-controller/releases/tag/v2.7.0

https://github.com/giantswarm/kong-app/pull/251


View button should be hidden or point to the metadata page for Documents without download permissions

@allyoucanmap @giohappy the redirect to the metadata page, if the document has no download permissions, was already implemented.


Disable meta-atlas for big rare RSIs

Gods and board games
needs https://github.com/space-wizards/RobustToolbox/pull/5544 but engine won't throw a fit without it.

It's been merged, just in case


Make gradients available for all_gather on TPU

What does this PR do?
Support autograd for all_gather on TPU using torch_xla.core.functions.all_gather
Fixes https://github.com/Lightning-AI/lightning/issues/6295
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes? (if necessary)
[x] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you list all the breaking changes introduced by this pull request?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

@carmocca, I ran my new tests successfully on Colab using a TPU runtime. However, the test-on-tpus run in this PR keeps failing, I seem to hit the 100 minutes timeout and there seem to be a problem with the logs: error: You must be logged in to the server (Unauthorized).

@stekiri We haven't forgotten this PR. Some more patience is required, sorry about this. We have some issue getting the TPU CI to work on GitHub here #15788.


Environment isn't getting created upon running test_policy_gradients.py

Hi,
I am kind of new to this OpenAI Gym.
While I was trying to run the test_policy_gradient.py file, I am getting the following error.
[2017-04-16 07:51:37,265] policy_gradient logger started.
[2017-04-16 07:51:37,266] Making new env: trading-v0
Traceback (most recent call last):
  File "test_policy_gradient.py", line 17, in <module>
    env = gym.make('trading-v0')
  File "/home/ubuntu/gym/gym/envs/registration.py", line 161, in make
    return registry.make(id)
  File "/home/ubuntu/gym/gym/envs/registration.py", line 118, in make
    spec = self.spec(id)
  File "/home/ubuntu/gym/gym/envs/registration.py", line 147, in spec
    raise error.UnregisteredEnv('No registered env with id: {}'.format(id))
gym.error.UnregisteredEnv: No registered env with id: trading-v0

trying to debug, I included " import gym_trading" in the beginning of the file.
Now, I am facing the following error

I understand that for some reason, the data frame isn't getting downloaded when I "make" the gym to create an environment, which is why I suspect I am getting this error.
Could you please point out where I am going wrong? Or if there is any fix around this?
Thanks a lot in advance!
Sanketh

this worked for me, it is in the init.py file in he gym_trading folder
from gym.envs.registration import register
register(
id='trading-v1',
entry_point='gym_trading.envs:TradingEnv',
timestep_limit=1000)

I'm having the same issue - and both proposed solutions didnt work...

here is the error:
[2017-06-07 14:21:50,524] policy_gradient logger started.
[2017-06-07 14:21:50,524] Making new env: trading-v0
Traceback (most recent call last):
  File "envs/test_policy_gradient.py", line 16, in <module>
    env = gym.make('trading-v0')
  File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 161, in make
    return registry.make(id)
  File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 118, in make
    spec = self.spec(id)
  File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 147, in spec
    raise error.UnregisteredEnv('No registered env with id: {}'.format(id))
gym.error.UnregisteredEnv: No registered env with id: trading-v0

id='trading-v1', called the environment v1

@baolinliu thanks but how does that help? Now it's:
gym.error.UnregisteredEnv: No registered env with id: trading-v1

I tried around for a few days, but in the end it worked with sudo pip install -e . I'm not sure why using the -e flag made it work.
also I had to move the register call into test_policy_gradient.
Additionally with newer gym version you'd need to call env=env.unwrapped

can't get it work.
what's the install procedure?
pip install -e .
shows
Running setup.py develop for gym-trading
Successfully installed gym-trading
but still gym.error.UnregisteredEnv: No registered env with id: trading-v0

according to registration.py of gym library, env object is wrapped in a TimeLimit object
 env = TimeLimit(env, max_episode_steps=env.spec.max_episode_steps,max_episode_seconds=env.spec.max_episode_seconds)
so use env.env to run those methods such as run_strats

the reason is that the environment did't register into the gym module.
change the init.py file in the same directory with env as below:
from gym.envs.registration import register
register(
id='trading-v0',
entry_point='gym_trading.envs.trading_env:TradingEnv',
timestep_limit=1000,
)
the entry_point should be 'gym_trading.envs.trading_env:TradingEnv'

still not working

Not working for me either. If I include import gym_trading, it doesn't pass this step. and if I comment it, I get the registration error above.

After some packages update(e.g. the gym module), the notebook in the github will throw errors. So I fixed some of the issues and also made the corresponding changes required so that it can run smoothly in colab.
You may find the colab notebook link here: https://colab.research.google.com/drive/14OIx32e_pzqpMIhhRcPV5CMAHUAwVQK1?authuser=1#scrollTo=kUc4CosObaK_&forceEdit=true&offline=true&sandboxMode=true

After running this code:
trading_environment = gym.make('trading-v0',
ticker='AAPL',
trading_days=trading_days,
trading_cost_bps=trading_cost_bps,
time_cost_bps=time_cost_bps)
trading_environment.seed(42)
I get an assertion error and I don't know how to get past it if anyone can help.


fix docs action

fix #38

Codecov Report

Merging #39 (f250fc3) into main (2cb7a5a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #39   +/-   ##
=======================================
  Coverage   89.57%   89.57%
=======================================
  Files          13       13
  Lines         403      403
=======================================
  Hits          361      361
  Misses         42       42

Continue to review full report at Codecov.

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


Update CI browsers

Chrome v89 was a good version to automate. For firefox the a similar one was v88. For the win10 vers just use stable ones that are reasonably new

I've tested these ones locally, so if they fail now, then it's something else.


Test case for Swift integration (with cocoapods settings: use_frameworks!)

Related to #91

The use_frameworks! setting has been enabled in the Podfile of test project.


[stable/dex] bump dex to 2.13.0

What this PR does / why we need it:
Bump dex to 2.13.0
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign @davidkarlsen

/lgtm


Access user role from view

Laravel Version: 5.4
Voyager Version: 1.0
PHP Version: 7.1

Description:
How can I retrieve a user's role object from a view? Auth::user()->role keeps returning 'admin' object, even when it should be 'user'.

It does not return an admin or an user object, its a Role.
If you do something like dd(Auth::user()->role->name); its working perfectly fine.
Also make sure, that you (I assume you are an admin) are not the one who is logged in when calling Auth::user().


Update pl.json

Done!

Thank you, much appreciated

i have released your translation update with v3.2.1


Need a better documentation for new_type macro

Hello,
Could you please improve the documentation for new_type macro? like what kind of traits "secret", "public" and "nonce" implements and what operations are not allowed on these types.

The new_type macro is an implementation detail of the library and not a
part of the public API.
On Tue, 23 Feb 2021 at 12:38, Basavesh Shivakumar<EMAIL_ADDRESS>wrote:

Hello,
Could you please improve the documentation for new_type macro? like what
kind of traits "secret", "public" and "nonce" implements and what
operations are not allowed on these types.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sodiumoxide/sodiumoxide/issues/458, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJ5KBIZL5TNDR452CCGDTTTAOHSTANCNFSM4YCKLTQQ
.

I understand. Does it preserve constant-time guarantees? I need these information as I intend to use in a high-assurance cryptography project.

(Disclaimer: not a maintainer)
The newtype macros don't implement the actual functions supposed to run in constant-time. The macros are most often used to just reduce boilerplate code.
In case of sodiumoxide, the macros are used, among other things, to ensure all types implement constant-time operations where needed.
Anyone from the org, please correct me if I'm wrong.


Release 0.1.0

At this point, everything is set up.
Would you be ok with releasing 0.1.0 to try the automatic release process?

Everything higher than 0.0.1 and below 1.0.0 sounds good to me

Alright, then I am going to release 0.1.0.


Remote management - Sharing

Not sure how much we care about this.
workstation-setup does not enable remote management

It's been a year and looks like no-one needs this, so I'm closing the issue


javax.net.ssl.SSLException: Connection closed by peer

One of my app's users is getting the SSLException and I suspect that while making a secure connection, android is falling back to SSLv3 from TLSv1 . It is a bug in android versions < 4.4 , and it can apparently be solved by removing the SSLv3 protocol from Enabled Protocols list.
Should SSLv3 be removed by default?

After looking around, I see that TLSv1.1 and TLSv1.2 are possible, but not enabled by default on API 16, API 17, API 18 and API 19.  API 20 an on, those protocols are enabled by default.
I conclude that it's "impossible" to support TLSv1.1 on API 15 or less.
The question becomes, what is the cleanest way to enable TLSv1.1 and TLSv1.2 on API's 16 through 19?

I found this blog that extends SSLSocketFactory: https://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/
Not sure how to integrate that into this code, or if this code could/should be patched with the idea from that blog.

I was able to get my app to connect to TLSv1.2 by changing one line of code in SSLConnectionSocketFactory.java.  Instead of enabled protocols, I pulled supported protocols:
            // DRS 20170510 - Commented 1, Added 1
        //final String[] allProtocols = sslsock.getEnabledProtocols();
        final String[] allProtocols = sslsock.getSupportedProtocols();

Custom SSLSocketFactory might or might not be the proper solution. I've already tackled this once for APIs 16 through 21 using this https://github.com/smarek/Simple-Dilbert/commit/871199f1a132f508242c7ecc908e99c19d356dd9
However this might not be the ideal solution to include in the library by default, as it alters too much in my opinion, the original
Anyway thank you for sharing your solution, as it might have been, and be in future, helpful to the others.

Also official Apache guide for Android says, if you target API 22 and older, you should use their official Android port, see: https://hc.apache.org/httpcomponents-client-4.5.x/android-port.html
However if you wish to support API 16 through 28/29, providing custom SSLSocketFactory seems like the way I would go with too
dependencies {
    compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '<IP_ADDRESS>'
}


bruno: 1.12.3 -> 1.13.1, use --replace-fail

Description of changes
Changelogs:

https://github.com/usebruno/bruno/releases/tag/v1.13.0
https://github.com/usebruno/bruno/releases/tag/v1.13.1

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 304378 run on x86_64-linux 1

1 package built:

bruno


Redis ACL

The version of ioredis used, doesn't work with Redis ACLs, as it doesn't pass a user to AUTH.
I tested the old version you use, and get the following error, but with e.g. 5.0.5 and the same URL it works completely.

[ioredis] Unhandled error event: ReplyError: WRONGPASS invalid username-password pair or user is disabled.
at parseError (/root/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/root/node_modules/redis-parser/lib/parser.js:302:14)

@autarchprinceps, what do you mean by that? ioredis is not even in the list of the dependencies...


Update CS translation

Hi, I've filled and updated the Czech translation.
Description
Mostly added missing strings.
Changes:

"Token" -> "Kód" as it's more common in Czech in the context of 2FA (see e.g. Microsoft or Google).

Motivation and Context
Our users using Czech locale see the page half-translated which is a worse experience than only English text.
How Has This Been Tested?
No testing yet. However, we plan to deploy this to our site.
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Translation changes should be done in Transifex: https://explore.transifex.com/Bouke/django-two-factor-auth/


[JetBrains Toolbox Recent Projects] ...

Extension
https://www.raycast.com/gdsmith/jetbrains
Description
When you have multiple version of your ides (pretty normal when you use the jetbrain toolbox) it opens the project you select with the oldest (maybe the one you used the most, idk) version of the ide instead of the newer version as it does the official jetbrain toolbox application
Steps To Reproduce
No response
Current Behaviour
it opens the project with the older/oldest version of the ide (phpstorm, pycharm, etc..) instead of the newer
Expected Behaviour
Should open with the newer one

@massalinux the extension relies on the cli tool that JB Toolbox installs. Unless you are seeing different results when launching projects from a terminal window then I don't think there's much we can do here.

Yeah, it's not a massive issue for me, as new releases are not that regular. You could try unchecking this option in JB Toolbox settings to remove previous versions automatically:

@massalinux please check the recent update which should fix this issue

Hi George, in the meantime I deleted all old ides and ran only one version.
Giving you feedback on the next jetbrain update.
Il giorno mar 16 mag 2023 alle ore 21:59 George @.***>
ha scritto:

@massalinux https://github.com/massalinux please check the recent
update which should fix this issue
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/issues/5531#issuecomment-1550281267,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADXLHZV5MPF64LHCN5I7K3XGPMBRANCNFSM6AAAAAAWE4HWBE
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Martino Massalini
Skype: martino.massalini
Whatsapp/Telegram/Wechat: +393290620481
LinkedIn. http://it.linkedin.com/in/martinomassalini


[Enhancement] Improve and clarify the help documentation for the command line tools

Describe the bug
Hello,
When using the enabled parameter in my robot.toml, my profile is not enabled
To Reproduce
Steps to reproduce the behavior:
robot.toml:
[profiles.ci]
description = "CI pipelines"
enabled = true

Then using robotcode:
$ robotcode profiles list
  Active   Selected   Enabled   Precedence   Name   Description
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                             ci     CI pipelines

Expected behavior
Profile is enabled
Desktop (please complete the following information):
VS Code Version 1.89.1
RobotCode Version 0.85.0
OS: MacOS Ventura 13.3.1
Python Version 3.8.19
RobotFramework Version 7.0.1
robotframework-browser 18.7.0
robotframework-robocop 5.3.0
robotcode-runner 0.85.0

ok after digging a bit inside the code I understood: it will only be enabled if we select it with the option -p
I find it a bit counter intuitive, I would have expected it to be selected when enabled is true, for instance from my ci:
robotcode profiles list

would show my ci profile as enabled
But actually I need:
robotcode -p ci profiles list

The functionality works as designed. A profile must be selected, and once it is selected, it is evaluated and potentially combined with other selected profiles.
To set specific profiles as default so that you don't have to specify them each time you start, you can use the default-profiles setting.
A profile is activated by default, but whether it is truly active in a particular configuration is determined – as you have already discovered – by either selecting the profile via -p or by defining it in the default-profiles entry in robot.toml. You can also use expressions to calculate whether a profile is activated or not, and you might set certain environment variables within a profile that are then evaluated, and so on.
Take this robot.toml as an example:
default-profiles = ["ci", "test", "prod", "devel"]

[profiles.ci]
enabled = { if = 'environ.get("CI", None) == "1"' }
inherits = ["headless"]

[profiles.ci.env]
IN_CI = "1"

[profiles.headless]
enabled = { if = 'environ.get("IN_CI", "0") == "1"' }
precedence = 100

[profiles.headless.extend-variables]
HEADLESS = "ON"

[profiles.prod]
enabled = { if = 'environ.get("CI_ENV", None) == "Prod"' }

[profiles.prod.extend-variables]
URL = "https://prod.example.com"

[profiles.devel.extend-variables]
URL = "https://devel.example.com"

[profiles.test]
enabled = { if = 'environ.get("CI_ENV", None) == "Test"' }

[profiles.test.extend-variables]
URL = "https://test.example.com"

In this file, we define several profiles that are enabled or disabled depending on certain environment variables. A special case is the ci profile, where we define an environment variable that is used in the headless profile.
This allows us to define complex configurations in robot.toml, while controlling what actually happens via environment variables, similar to how it is done in CI environments.
I know there is still a lot of documentation missing on this whole topic, but I am working on it. I'll leave this bug open for now, but I will turn it into an enhancement to improve the documentation, specifically for the command line tools.

Thanks I understand a bit better now
From what you explained I understand that the enabled is only evaluated when profile is selected.
And selected means that it is either default or selected via the -p option.
Then what does active mean?
Is it "Active = Selected AND Enabled" ?

In that case shouldn't enabled by ticked when listing the profiles?
$ robotcode profiles list
  Active   Selected   Enabled   Precedence   Name   Description
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                             ci     CI pipelines

Also another question: if I have some default profiles (e.g. ci), but when I run via CLI I select the profile (e.g.g -p dryrun), will it override the default profile (dryrun only), or is it cumulative(dryrun + ci)?

In that case shouldn't enabled be ticked when listing the profiles?

no, because it was not evaluated because it is not selected, maybe we could distinguish whether it is a boolean value in the enabled setting or an expression and display it accordingly. I'll have to think about it...

Also another question: if I have some default profiles (e.g. ci), but when I run via CLI I select the profile (e.g.g -p dryrun), will it override the default profile (dryrun only), or is it cumulative(dryrun + ci)?

it is overridden, maybe we could introduce a --extend-default-profiles switch?


Wrong CRD Spec definition as an optional field

Some of Fybrik CRDs, e.g. fybrikapplication and  plotter, have the wrong definition Spec as an optional filed.
see K8s API reference
We can see it in the go Object, where the Spec has the omitempty tag, in its yaml file, and at the Web site reference.
Please review all fybrik CRDs and fix it.

Interesting, we used kubebuilder create to create most CRDs. Their tutorial has a resource with an optional Spec...

Interesting, we used kubebuilder create to create most CRDs. Their tutorial has a resource with an optional Spec...

Does it make sense to create a fybrikapplication without Spec ?


Memory usage in map_blocks: drop_axis vs. chunks

Hello, I have found a possible wrong behaviour of the function da.map_blocks. The following code creates and persists 2D data matrix on on a worker and then maps the function compute on it, which returns 1D vector. This simulates application of a regression/classification on the data matrix, rows of which are formed by samples and columns by features.
import time
import dask.array as da
import dask.distributed as dd
import numpy as np

num_rows = 20_000
num_cols = 10_000
dtype = np.float32

def compute(_):
    return np.ones(shape=num_rows, dtype=dtype)

def main():
    with dd.LocalCluster(processes=True, n_workers=1, threads_per_worker=1, memory_limit=2e9) as cluster:
        with dd.Client(cluster) as client:
            data = da.ones(shape=(num_rows, num_cols), dtype=dtype, chunks=(num_rows, num_cols))
            data, = client.persist([data])
            dd.wait([data])

            time.sleep(2)

            # drop_axis -> data is somehow copied
            res_drop_axis = data.map_blocks(compute, dtype=dtype, drop_axis=1).compute()

            # chunks -> no data is copied
            # res_chunks = data.map_blocks(compute, dtype=dtype, chunks=(data.chunks[0], (1,))).compute()

if __name__ == '__main__':
    main()

If the result res_drop_axis is computed, the data matrix is probably somehow duplicated, as shown in the following plot of memory usage for the worker process:

On the other hand, if the result res_chunks is computed, no data is copied:

This might be a serious issue, as the res_drop_axis-like approach is used in dask-xgboost, dask-lightgbm and probably in many other libraries as well.
If this was an intended behaviour, it should have been probably mentioned in the documentation of da.map_blocks.

Thank you for the careful writeup @striajan

If this was an intended behaviour

Which behavior in particular?  Using too much memory?  If so then no, this is not intended behavior.
Unfortunately I don't have any particular insight to give to you.  I don't off hand know why it would use more memory here.  If you are able to track things down that would be well appreciated.

I am running this with the ResourceProfiler and can't reproduce. I am going to close this with the optimistic assumption that this issue has been resolved, but please reopen if you still see it.
In [1]: import time
   ...: import dask.array as da
   ...: import dask.distributed as dd
   ...: from dask.diagnostics import ResourceProfiler
   ...: import numpy as np
   ...:
   ...: num_rows = 20_000
   ...: num_cols = 10_000
   ...: dtype = np.float32
   ...:
   ...: def compute(_):
   ...:     return np.ones(shape=num_rows, dtype=dtype)
   ...:
   ...:
   ...: with dd.LocalCluster(processes=True, n_workers=1, threads_per_worker=1
   ...: , memory_limit=2e9) as cluster:
   ...:     with dd.Client(cluster) as client:
   ...:         with ResourceProfiler() as prof:
   ...:             data = da.ones(shape=(num_rows, num_cols), dtype=dtype, ch
   ...: unks=(num_rows, num_cols))
   ...:             data, = client.persist([data])
   ...:             dd.wait([data])
   ...:
   ...:             time.sleep(2)
   ...:
   ...:             # drop_axis -> data is somehow copied
   ...:             res_drop_axis = data.map_blocks(compute, dtype=dtype, drop
   ...: _axis=1).compute()
   ...:
   ...:             # chunks -> no data is copied
   ...:             # res_chunks = data.map_blocks(compute, dtype=dtype, chunk
   ...: s=(data.chunks[0], (1,))).compute()
   ...: prof.visualize()

In [1]: import time
   ...: import dask.array as da
   ...: import dask.distributed as dd
   ...: from dask.diagnostics import ResourceProfiler
   ...: import numpy as np
   ...:
   ...: num_rows = 20_000
   ...: num_cols = 10_000
   ...: dtype = np.float32
   ...:
   ...: def compute(_):
   ...:     return np.ones(shape=num_rows, dtype=dtype)
   ...:
   ...:
   ...: with dd.LocalCluster(processes=True, n_workers=1, threads_per_worker=1
   ...: , memory_limit=2e9) as cluster:
   ...:     with dd.Client(cluster) as client:
   ...:         with ResourceProfiler() as prof:
   ...:             data = da.ones(shape=(num_rows, num_cols), dtype=dtype, ch
   ...: unks=(num_rows, num_cols))
   ...:             data, = client.persist([data])
   ...:             dd.wait([data])
   ...:
   ...:             time.sleep(2)
   ...:
   ...:             # drop_axis -> data is somehow copied
   ...:             # res_drop_axis = data.map_blocks(compute, dtype=dtype, drop
   ...: _axis=1).compute()
   ...:
   ...:             # chunks -> no data is copied
   ...:             res_chunks = data.map_blocks(compute, dtype=dtype, chunk
   ...: s=(data.chunks[0], (1,))).compute()
   ...: prof.visualize()


Inline mode: caret position

hello, when we write a lot of writing, when the cursor position is at the end, when we add emoji, the emoji is on the right, the cursor does not go to the right side. What do we have to do to get the cursor to the end?

please say your browser version, and it will be good to create screen video of this behavior

Add text until the end, then add emoji you'll notice the situation. I checked all the browsers. The same problem exists.
When I add emoji, it does not slip to the right side. So the emojies I added later are invisible behind the "div". The keyboard appears to scroll right to the right.

So why are you not said what you use inline mode ?
Do you have this behavior without inline mode?

I just add emoji and I can not go to the right by choosing with the mouse.

still occurs on above example ^ latest stable chrome on mac os

Same issue, are there any updates on this?


Update to use new interface since MRPT 1.5.0.

Addresses issue https://github.com/ual-arm-ros-pkg/mvsim/issues/3

I updated the code with suggested edits. The demo looks good now.

Great, thanks!! I'm continuously working on Windows these days so I'm grateful to you for taking care of this. 👍


Fix markdown table in README

Previously it didn't render due to an extra new line

sorry I missed this pr! thanks!


Fix generated paths on Windows

Fixed generated paths on Windows. Have tested relative paths and seams to work okay unsure about absolute paths.
New to Rust lang so the code is probably hacky, just how I solved it.

Thank you very much for the PR! It seems good to me, can you run cargo fmt and amend the changes to the commit?

Sure, didn't know about cargo fmt. It's nice :)

Thank you! Looks good to me!
Closes #5

Happy to help!


homebrew tap / cask is broken?

I think there is something wrong with the brew tap or cask?
$ brew tap pugetsoundandvision/pugetsoundandvision && brew install cask
Errors:
==> Tapping pugetsoundandvision/pugetsoundandvision
Cloning into '/usr/local/Homebrew/Library/Taps/pugetsoundandvision/homebrew-pugetsoundandvision'...
remote: Enumerating objects: 251, done.
remote: Total 251 (delta 0), reused 0 (delta 0), pack-reused 251
Receiving objects: 100% (251/251), 40.51 KiB | 1011.00 KiB/s, done.
Resolving deltas: 100% (107/107), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/pugetsoundandvision/homebrew-pugetsoundandvision/audioqc.rb
No available formula with the name "audioqc".
In formula file: /usr/local/Homebrew/Library/Taps/pugetsoundandvision/homebrew-pugetsoundandvision/audioqc.rb
Expected to find class Audioqc, but only found: Audiotools.
Error: Cannot tap pugetsoundandvision/pugetsoundandvision: invalid syntax in tap!

Also, I see this is the newest release:
2021-01-05
@privatezero privatezero released this on Jan 5
Will `homebrew` install this newest release?
Thanks in advance! :)

hi @rowe-morehouse, thanks for reporting that! The Homebrew tap was in fact broken as it had a legacy formula floating around that was causing issues. I've deleted that formula so things should be working again.
Yes - if things are working again, Homebrew should install that latest release, which included a fix for the brew baggit formula switching from the java script to the python script.


[AutoPR eventgrid/resource-manager] Added x-ms-azure-resource for TrackedResource, and added default values for 2 enums.

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2953

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/1736


Release notes not complete due to current VSTS API limitation

VSTS Extension you are using
GenerateReleaseNotes - affects xplat version as well
Where are you running it?
VSTS
Version of Extension/Task
2.x (latest published)
Expected behaviour and actual behaviour
Generated release notes should have all commits and work items associated with a release. Due to a current VSTS API limitation, the API listing the work items between two builds only inspects the first 200 commits that are linked to the build. Thus, if the number of commits between builds is greater than 200 and work items are linked to the 201st or earlier commit, those work items are missing in the release notes. This also affects the work item view in VSTS itself.
Steps to reproduce the problem
Create a commit with a linked work item. Create 200 additional commits without any linked work items. Run a release and generate release notes, the work item is not listed.

@rfennell I have been discussing the issue with our product teams and I would like to create a work around for the issue (either a private one or - more preferably - a public one via PR).
My idea is to not change the default behavior of the task and instead introduce a variable that enables the workaround behavior. Once the issue has been fixed by our VSTS team, you'd just have to remove the additional code and everything works as previously designed.
You're opinion?

@ReneSchumacher that sounds like a great plan, a checkbox parameter on the advanced menu perhaps to control the usage.
On point, I can see how this would effect the XPatform version, which just does a straight single API call to get the commit/wi details, but not sure how it also effect the PowerShell version, as this builds list of items by first getting a build list then getting the items for each and there is an advanced option to limit the number of WI/Commits per build. I guess you might be meaning that this number control though defaulting to 50 really has an upper limit of 200.
Always happy to consider PR, especially when they address critical issues

Yikes, forget what I wrote. I took a closer look at the PowerShell version now. The issue lies in the Get-BuildWorkItems method because the used API has the mentioned limitation. I can fix that as well, although it will be slightly more complicated.
I just realized that the PowerShell version can only be used in a build while the cross-plat version can only be used in a release. Is that by design?

A bit of context...
The PowerShell version can be used in both a build or release.It all came out on on PowerShell script I wrote to dump associated items for a build. It got repeatedly extended to become a task, then an extension then one that support releases too. This was all home grown logic
When I needed release  notes on XPlatform I decide not to move my own logic to Node, but to use the MS API as done by the VSTS UI. Hence this version only supports Releases

I see. I just looked at the current version of the PowerShell's task.json and according to that the task is only visible in build (https://github.com/rfennell/vNextBuild/blob/3daa09583fe85a94a3d402cbe13282925736db0a/Extensions/GenerateReleaseNotes/GenerateReleaseNotesTask/task.json#L10)

Has been fixed by @ReneSchumacher PR #352

It looks as if the gitClient.getCommitsBatch() call is returning a null so there is no way to loop across it. I will add a null check and a bit of extra logging. I will try to get it out tomorrow
Note that this fix will only be available in the V3 release


Create UI roadmap

Our current UI has a number of issues -- #7122.
Going forward, what do we want out of the UI? We need a roadmap similar to cli-roadmap.md so that people know how to contribute.
This was discussed at the Kubernetes contributors meeting in December.
First of all, visualization is more important than actuation. The CLI (kubectl) is expected to be the main tool for controlling the system and applications running on it. Table-friendly views should also be incorporated into kubectl, not just a GUI. That's not to say it shouldn't support actuation, but that creates additional issues, such as SSO auth.
With respect to visualization,  we need views that are customized to the most common use cases:

Understanding the system architecture and/or application topology: diagram view that shows interconnection between objects
Deployment status: what images/versions are deployed, what deployments are in progress, what pods deviate, health by deployment version, provenance info
App debugging: for devs -- what’s failing most recently / most often, why, how often, logs, events
System debugging: dashboard w/ system and node health, uptime, versions, config, status events, change history, surface logs (from builds, containers or container failures), what’s where (node-centric view: example visualization: http://azure.microsoft.com/blog/2014/08/28/hackathon-with-kubernetes-on-azure/)
Resource usage analysis: how much resources  (mem, cpu, disk) are being used (current/historical, individual/distribution), usage relative to quota or limits, why did my thing run out of resources, top (sort by decreasing usage)
App dashboard / launchpad: status overview, launch links to app-domain, custom app dashboards, links to cadvisor and/or kubelet GUIs, links to elasticsearch and heapster, etc.

Some functionality is probably lacking in order to support all these views at the moment (e.g., stats collection).
Presentation guidelines:

timeseries graphs: single-column, all same time-scale, for easy correlation
text:

dense (information density)

multi-column tables
alternate colors of rows/columns rather than introduce whitespace

highlight high-value content

sort by “most important” information for the view (e.g., priority, scale, recency, eventful)
color to highlight important/abnormal details
don’t show fields in tables by default that are almost the default/boilerplate values

flexible grouping (e.g., tree view), filtering, sorting, searching, aggregating

by namespace
by labels
by reverse label lookup
by image
by phase

Come up with recommended semantic labels/annotation keys and meanings:

env (dev, test, stage, prod)
source/containing object/provenance
responsible party (name, email, etc)
links (urls to app-specific dashboards, GUIs, web UI, etc)
html (arbitrary html to inject link, description, status)
workload type (web frontend, database, etc.)

Other issues:

simplify user experience of dealing with multiple API objects (e.g., replication controller, template, pods)
summarization of large numbers of pods
event/status history
change history
latency
similar views in CLI
help
customizable user preferences
bookmarkable view URLs
carry filter/context across views
need to show information that’s most relevant to most people by default

Finally, there are others building UIs. We've discussed building the UI such that pieces can be reused with different chrome, etc.
cc @lavalamp @jackgr @smarterclayton

@bgrant0607 we've got a organization for the various UI components that is currently living at: https://github.com/kubernetes-ui in order to share things with the team at RedHat, etc.

cc @mgannholm

cc @JanetKuo

Link to applications: #6908

cc @bryk

Copied to https://github.com/kubernetes/console/issues/21


ie11 - Object doesn't support property or method 'entries'

This page uses a few es5/es6 array prototype, but really nothing crazy. I'm only having this issue on a single page, and I'm fairly certain this issue is new (but it's difficult to know for certain when this issue came up because only a few clients use ie11)

Hi @jwerardi , it looks like you've got an error in your website that you've tracked down to the code you're loading from the polyfill service. It would be really useful if you could follow these steps.

Create a test case using an online tool like JSBin, which loads only the polyfill service script, and then includes inline any code required to trigger the problem (which should be no more than a few lines).
Raise a new issue on our issue tracker, and include:

A description of the problem (what you expected, what actually happened)
A link to your test case on JSBin (or jsfiddle/codepen/whatever)
The exact name and version number of the browser you're testing in
If relevant, the console output or a screenshot of the problem

We ask for a JSBin demo because often these kinds of errors are actually errors in the host website's code, and even if they are a problem in the polyfill, we don't have the resources to debug your application.  Please also make sure you disable any browser plugins when you are testing in JSBin, so you are certain that you are only running the test code.

Sure no problem! Makes sense, thanks for the timely response. I'll create a new issue after following your steps.
Thanks for the product by the way, it's a real life saver.


heap_caps_get_free_size(MALLOC_CAP_8BIT) reports the wrong number under some circumstances (IDFGH-4292)

Environment

Development Kit:      ESP32-DevKitC
IDF version: v4.1-510-g9798f2c9b
Build System:         idf.py
Compiler version:  xtensa-esp32-elf-gcc (crosstool-NG esp-2020r2) 8.2.0
Operating System:     Windows
Environment type: Plain Command Prompt
Using an IDE: No
Power Supply:  USB

Problem Description
Under some circumstances heap_caps_get_free_size(MALLOC_CAP_8BIT) reports the wrong number, e.g. out by four, making it appear as though there is a memory leak when there isn't.  Originally reported in the forums here.
Steps to reproduce
Run the following example, which allocates two mutexes and then frees only the first one:
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"

#include "esp_heap_trace.h"
#include "esp_heap_caps.h"

#define NUM_RECORDS 10
static heap_trace_record_t traceRecord[NUM_RECORDS];

void app_main(void)
{
    SemaphoreHandle_t mutex1;
    SemaphoreHandle_t mutex2;
    size_t heapUsed;
    size_t heapUsedAtStart;

    heap_trace_init_standalone(traceRecord, NUM_RECORDS);

    printf("Starting up...\n");

    heap_trace_start(HEAP_TRACE_ALL);

    heapUsedAtStart = heap_caps_get_free_size(MALLOC_CAP_8BIT);
    printf("Heap free at start %d.\n", heapUsedAtStart);

    heapUsed = heap_caps_get_free_size(MALLOC_CAP_8BIT);
    mutex1 = xSemaphoreCreateMutex();
    printf("Heap used by first mutex %d.\n", heapUsed - heap_caps_get_free_size(MALLOC_CAP_8BIT));

    heapUsed = heap_caps_get_free_size(MALLOC_CAP_8BIT);
    mutex2 = xSemaphoreCreateMutex();
    printf("Heap used by second mutex %d.\n", heapUsed - heap_caps_get_free_size(MALLOC_CAP_8BIT));

    heapUsed = heap_caps_get_free_size(MALLOC_CAP_8BIT);
    vSemaphoreDelete(mutex1);
    printf("Heap free()d after deleting just first mutex %d.\n", heap_caps_get_free_size(MALLOC_CAP_8BIT) - heapUsed);

    heap_trace_stop();
    heap_trace_dump();

    if (!heap_caps_check_integrity_all(true)) {
        printf("Heap is corrupt!\n");
    }

    heapUsed = heap_caps_get_free_size(MALLOC_CAP_8BIT);
    printf("Heap used at end %d, therefore total heap used %d.\n", heapUsed, heapUsedAtStart - heapUsed);

    while (1);
}

It will produce the following output:
Starting up...
Heap free at start 286244.
Heap used by first mutex 84.
Heap used by second mutex 84.
Heap free()d after deleting just first mutex 80.   <----- *** either this is incorrect or a further leak of 4 bytes has occurred in the RTOS implementation ***
2 allocations trace (10 entry buffer)
80 bytes (@ 0x3ffb98f4) allocated CPU 0 ccount 0x0518e10c caller 0x40087b06:0x40087d5b
freed by 0x400881f7:0x400e1878
80 bytes (@ 0x3ffb9948) allocated CPU 0 ccount 0x051f3ca4 caller 0x40087b06:0x40087d5b
80 bytes alive in trace (1/2 allocations)
total allocations 2 total frees 1
Heap used at end 286156, therefore total heap used 88.

As you can see, even though only 84 (80 plus a 4 byte overhead) bytes of heap have been used, heap_caps_get_free_size(MALLOC_CAP_8BIT) reports that 88 bytes have been used, hence a leak on top of the actual leak of 4 bytes.  This means that my unit tests fail because the numbers don't add up.
Though the above example is obviously an artificial case (why would I want to leave a semaphore hanging like that?) it is a real example because the mbedtls SHA functions, as compiled into ESP-IDF, allocate a semaphore for themselves when first called and never give it back, just like the second mutex above.  I can take account of this by calling heap_caps_get_free_size(MALLOC_CAP_8BIT) either side of them but that will tell me that they have used up 84 bytes of heap, not 88, hence my unit tests will fail when they check how much heap my code might have leaked at the end.
Code to reproduce this issue
See above.
Debug Logs
See above.
Other items if possible

[x] sdkconfig.txt
[x] heap_issue.elf.txt

I understand what this is now, thanks to ESP_Angus' comprehensive answer in the forums: it is a consequence of the heap being split by the final pattern of allocations and it needing an additional four bytes to track the length of the newly created contiguous block.  I'll see if I can find a way to work around it in my heap loss calculation.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_e27c58c9-1137-4525-8851-feecf200d851/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_e27c58c9-1137-4525-8851-feecf200d851.git

Docs Build status updates of commit 99086a0:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


i am use PIXI.Graphics

Your issue may already be reported! Please search existing issues before creating one.

Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce
Environment

pixi.js version: e.g. 4.7.1
Browser: e.g. Chrome 67
Device: e.g. Desktop

Why _width has value but width has no value

I called updateLocalBounds and didn't change the width the same way I wanted to change the width, but the width felt like it couldn't be changed.

Please can you provide a jsfiddle or some code that demonstrates your issue.

http://wow.techbrood.com/fiddle/40691  这是地址

谢谢你的解答了 我最终解决了问题 这里估计是一个坑 我用的displayObject这个对象来解决的 这个对象是可以设置宽度与高度的

Essentially this is what you're doing:
var g1 = new PIXI.Graphics();
g1.width = app.screen.width;
g1.height = app.screen.height;
g1.drawRect(0, 0, this.width, this.height);

This is not how width and height work in PixiJS. You cannot set these properties because there's no content to resize. If you set width and height, based on the current size, it's used to compute scale. Because your Graphic has no content, there's nothing to change.
Try this instead:
var g1 = new PIXI.Graphics();
g1.drawRect(0, 0, 100, 100);
g1.width = app.screen.width;
g1.height = app.screen.height;

是的 谢谢了


Not compatible with PostgreSQL 12

Describe the bug
A Segmentation fault error occurred during tests/candidates/test_candidates.py::test_cand_gen_cascading_delete on Travis.
Strangely, there was no problem 10 days ago (12/6) but now the test fails.
Failed on 12/16: https://travis-ci.com/HiromuHota/fonduer/jobs/267827232
Passed on 12/6: https://travis-ci.org/HazyResearch/fonduer/jobs/621864178
To Reproduce
Run the latest commit on Travis.
Expected behavior
All the tests should pass.
Error Logs/Screenshots
https://travis-ci.com/HiromuHota/fonduer/jobs/267827232
Environment (please complete the following information):

OS: OSX
PostgreSQL Version: 12.1
Poppler Utils Version: 0.83.0
Fonduer Version: fe0bfe1

Additional context
Add any other context about the problem here.

One difference between succeeded job and failed one is the PostgreSQL version.
Failed: 12.1
succeeded: 11.5

I confirmed that the following three tests fail on PostgreSQL 12 on both Linux and OSX: test_e2e, test_incremental, test_binary_relation_feature_extraction.
https://travis-ci.com/HiromuHota/fonduer/builds/141298272

Closing for now as we are not seeing this issue.
Please reopen if it occurs again.


Fix horizontal gallery button icon directions in rtl mode

What
Ensure in rtl, the chevron right/lefts are flipped to correctly indicate the page direction
Why
In rtl currently the icons point the opposite direction
How Tested

before
after

Maybe in another PR but could we do the same thing for VerticalGalleryLeftButton and VerticalGalleryLeftButton to fix the rtl snapshots like these:
https://github.com/Azure/communication-ui-library/blob/main/packages/react-composites/tests/browser/snapshots/beta/tests/browser/callwithchat/hermetic/OverflowGallery.test.ts-snapshots/overflow-gallery-with-many-participants-rtl-Desktop-Chrome-16-9-linux.png

Maybe in another PR but could we do the same thing for VerticalGalleryLeftButton and VerticalGalleryLeftButton to fix the rtl snapshots like these: main/packages/react-composites/tests/browser/snapshots/beta/tests/browser/callwithchat/hermetic/OverflowGallery.test.ts-snapshots/overflow-gallery-with-many-participants-rtl-Desktop-Chrome-16-9-linux.png

O great catch, I'll update this PR to do the same thing for those icons

Maybe in another PR but could we do the same thing for VerticalGalleryLeftButton and VerticalGalleryLeftButton to fix the rtl snapshots like these: main/packages/react-composites/tests/browser/snapshots/beta/tests/browser/callwithchat/hermetic/OverflowGallery.test.ts-snapshots/overflow-gallery-with-many-participants-rtl-Desktop-Chrome-16-9-linux.png

Maybe in another PR but could we do the same thing for VerticalGalleryLeftButton and VerticalGalleryLeftButton to fix the rtl snapshots like these: main/packages/react-composites/tests/browser/snapshots/beta/tests/browser/callwithchat/hermetic/OverflowGallery.test.ts-snapshots/overflow-gallery-with-many-participants-rtl-Desktop-Chrome-16-9-linux.png

O great catch, I'll update this PR to do the same thing for those icons

Updated 👍


(swedish) typos

I've fixed 2 copy&paste mistakes and recreated an half-translated line with google translator. I hope that helps.
@Crazymanbos Line:7 is something you may want to rewrite at a later point (I saw you had some different spellings in one or 2 words there, but since there were 2 words in the middle still in english I opted to use googles help)

Why did you change befälhavare to commander? Thats correctly translated

Why did you change befälhavare to commander? Thats correctly translated

Because it's just 3,5% of the whole line and there are 70 more instances which you left at 'Commander'. I guessed that was an mistake. Or did you plan to just translate this word and leave it like this? Half translated lines don't sound too useful in my head. If you think differently (there are for sure some special cases in any language), please enlighten me ;)

PS: while i'm thinking about these commander lines I just remembered something else from the time I translated these, currently these aren't used in the game. Reference: https://github.com/ReactiveDrop/reactivedrop_translations/discussions/202

I will come back for the rest at some point. The commander thing was correct for that line, now I must fix it again later on. And I dont translate all in one go, thats why I only did that one

Oh okay, I just read the 202. So its not supposed to be translated?

now I must fix it again later on
It's just one word. Take it easy.
It's a living thing, changes can and will happen. But you can rest assured that we will not torture ourselfs with things like ... dunno ... change for the sake of change.
But if we can improve ... we certainly should!
That being said ... I'm going to mass edit all captions soon (but not massively).

I dont translate all in one go
Yes, good, don't do that, but please, edit per-line in one go. Don't pick a single word in a line, translate it, and then leave. No reading brain wants to see something like this.

Oh okay, I just read the 202. So its not supposed to be translated?
I updated the thing with a comment today, and actually, I mixed up 2 commanders in 2 places, so it's all a bit mixed up. The not-to-be-translated-part is about L4D360UI_Loading_Starring and L4D360UI_Loading_Costarring (basemodui textfile). The rest, meaning the change you did - related to 'Commander' - is being used in the game and thus needs a good translation still.


Update CI, dev enviroment, pyproject.toml, add tests

update pre-commit config
update flake8 configuration, add import sorting
add dev dependencies, update tasks list

Don't merge this yet, this is not right, given this is a monorepo

On second thought, the above is out of the scope of this pr, and can be added in a second pr.

LGTM for now

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@1d625bb). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head fabbd2c differs from pull request most recent head 8338d7d. Consider uploading reports for the commit 8338d7d to get more accurate results

@@          Coverage Diff           @@
##             main     #21   +/-   ##
======================================
  Coverage        ?   0.00%
======================================
  Files           ?       7
  Lines           ?     321
  Branches        ?       0
======================================
  Hits            ?       0
  Misses          ?     321
  Partials        ?       0

Continue to review full report at Codecov.

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


why is there a cwd on both shellIntegration and execution ?

Testing #226655

execution.cwd is the working directory as the time the execution happened. shellIntegration.cwd is the current cwd, ie. the cwd of the upcoming execution.
// ~/vscode
console.log(shellIntegration.cwd);

const execution = shellIntegation.executeCommand('cd src');

// ~/vscode
console.log(execution.cwd);
// ~/vscode
console.log(shellIntegration.cwd);

await executionEndEvent;

// ~/vscode/src
console.log(shellIntegration.cwd);


Set up & configure Autoware sensing component

Understand Autoware Sensing
See AVP Diagram (click View->Tags, hide everything but M1)

[ ] Ensure sensor drivers are outputting correct message types on Twizy

[x] LiDAR as sensor_msgs/PointCloud2
[ ] IMU as sensor_msgs/Imu
[ ] GNSS as sensor_msgs/NavSatFix and autoware_sensing_msgs/GnssInsOrientationStamped
[ ] Cameras as sensor_msgs/Image
[ ] Radar  as sensor_msgs/PointCloud2

[ ] Ensure sensor drivers are outputtinf correct message types on ENV200

[ ] LiDAR as sensor_msgs/PointCloud2
[ ] IMU as sensor_msgs/Imu
[ ] GNSS as sensor_msgs/NavSatFix and autoware_sensing_msgs/GnssInsOrientationStamped
[ ] Cameras as sensor_msgs/Image
[ ] Radar  as sensor_msgs/PointCloud2

[ ] research the difference between using RadarTracks v Pointcloud

for reference our radar driver for the ENV200 is smartmicroa, which outputs a pointcloud

[ ] Fix up launch file configurations for ENV200 & Twizy

[ ] Configure mcav_autoware_sensor_kit

[ ] create test cases for the CI/CD pipeline

If you need to test Autoware with a simulator, read here.
If you need any help understanding your task, please ask a lead!

@dylan-gonzalez any docs or people we should refer to when testing sensor drivers on the cars?

for the van: me, @hubdwoo, @Jiawei-Liao (for IMU), @AnthonyZhOon
for the twizy: me, @AnthonyZhOon
I'll try to make some docs in the wiki tonight

@dylan-gonzalez what did you mean by lidar doesn't power on? it seems to be on rn and the web portal working

Oh fair dinkum

Running into issues launching mcav_autonomy/autonomy_launch. Issue pinned down to streedtrone.launch.xml lines 20 and 60.
Tasks to debug include

[ ] figuring out which of the two lines is causing the issue (launching kiss_icp or streedrone vehicle model)
[ ] resolving lack of launch file/directory for kiss_icp esp if this is the issue
[ ] resolving missing xacro dependency which is probably the issue

Getting the error

@AnthonyZhOon or @dylan-gonzalez if I just want to run the various sensors should I be doing it by running the streetdrone.launc.xml or should I just launch them one by one and test their output?
Eventually the former will need to work anyway no? Seems the current issue is the fact that the roslaunch pkg does not exist for humble https://index.ros.org/p/roslaunch/#humble

Is this on the twizy?

Yup on the Twizy though does that make a difference?

Running VLP16 driver on twizzy outputs the right message but there is no data. Lidar is humming so it seems to be on but not doing anything atm

Have been trying to get my head around how everything launches.
Based on the launch docs, this is where we define our launch files for both sensor drivers as well as sensing modules we want to use.
So for example, they have a launch file for pointcloud preprocessor. What remains then is implementing/modifying launch files for the following:

[ ] gnss_poser
[ ] imu_corrector
[ ] vehicle_velocity_converter
[ ] imu.launch.xml
[ ] gnss.launch.xml

@dylan-gonzalez do we want to include the gryo_bias_estimator package?

If you guys think so?

11-10-23

make sure all sensors work on the van (individually)
make sure all sensors work on the twizy (indivudally)
once all vehicle sensors work, update @Robin-Chea so he can make changes to the mcav_sensor_kit_launch files
look at radar sensor fusion with/wo lidar

RadarTracks

messages convey info about tracks of detected objects through radio waves
Contains more information about detected objects (eg. position, velocity, acceleration, size)
Objects represented by a unique ID generated by radar
All data of the object is relative to radar's frame of reference

PointCloud

Represents set of datapoints in a 3d coordinate system
Each point usually includes coordinates (x,y,z) from the sensors frame of reference
The actual data is stored in a 1D array so the format and arrangement depends on specific fields (eg. height and width)


how to install ?

Please add the process of installation in .README file.

It's not ready yet :) I'll make this clearer in the readme.
In the meantime, you can use the Export Layers plug-in for GIMP 2.10, which has the same features.
Batcher will in its first release be a port of Export Layers for GIMP 2.99.

The first version is finally released. Installation instructions are on the plug-in page.


accent color exception - is accent color required?

Exception android.content.res.Resources$NotFoundException: Resource ID #0x0
android.content.res.Resources.getValue (Resources.java:2558)
android.content.res.Resources.getColor (Resources.java:2170)
org.apache.cordova.firebase.FirebasePluginMessagingService.sendNotification (FirebasePluginMessagingService.java:105)
org.apache.cordova.firebase.FirebasePluginMessagingService.onMessageReceived (FirebasePluginMessagingService.java:71)
com.google.firebase.messaging.FirebaseMessagingService.zzo ()
com.google.firebase.messaging.FirebaseMessagingService.zzn ()
com.google.firebase.messaging.FirebaseMessagingService.zzm ()
com.google.firebase.iid.zzb$2.run ()
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
java.lang.Thread.run (Thread.java:818)

Which is here? https://github.com/arnesson/cordova-plugin-firebase/blob/master/src/android/FirebasePluginMessagingService.java#L105
The readme suggests that I 'can' set the accent color, but that doesn't imply that it is required to do so -- is there a bug here?  Is accent color required?

Same problem here. Will start debugging!

Hello,
Correct the bug please, replace .LOLLIPOP BY .M in FirebasePluginMessagingService.java
because the function call require api level 23.
old:
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
{
int accentID = getResources().getIdentifier("accent", "color", getPackageName());
notificationBuilder.setColor(getResources().getColor(accentID, null));
}
new:
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M)
{
int accentID = getResources().getIdentifier("accent", "color", getPackageName());
notificationBuilder.setColor(getResources().getColor(accentID, null));
}

@hakimdja if you think you help the maintainers out and submit a PR?

@josh-m-sharpe I leave it to you to do it, if you want

Same crash:
Exception android.content.res.Resources$NotFoundException: Resource ID #0x0 android.content.res.Resources.getValue (Resources.java:1369) android.content.res.MiuiResources.getValue (MiuiResources.java:145) android.content.res.Resources.getColor (Resources.java:981) org.apache.cordova.firebase.FirebasePluginMessagingService.sendNotification (FirebasePluginMessagingService.java:105) org.apache.cordova.firebase.FirebasePluginMessagingService.onMessageReceived (FirebasePluginMessagingService.java:71) com.google.firebase.messaging.FirebaseMessagingService.zzo () com.google.firebase.messaging.FirebaseMessagingService.zzn () com.google.firebase.messaging.FirebaseMessagingService.zzm () com.google.firebase.iid.zzb$2.run () java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113) java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588) java.lang.Thread.run (Thread.java:818)

@hakimdja  I'm not sure about this fix.  I extensively tested push notifications on a 5.1 device and didn't see this problem.  So, i'm not sure what good pushing this to lollipop will do.
Could you at least provide a reference for "because the function call require api level 23."  Which function call are you referring to?

@josh-m-sharpe
in line : notificationBuilder.setColor(getResources().getColor(accentID, null));
getColor added in API level 23 :
https://developer.android.com/reference/android/content/res/Resources.html#getColor(int, android.content.res.Resources.Theme)

Sorry, I just saw that it was corrected :
https://github.com/arnesson/cordova-plugin-firebase/pull/226

doesn't exactly look like a fix... the comments over there suggest it's still broken.

subsequently fixed here: https://github.com/arnesson/cordova-plugin-firebase/commit/4eaeca90c11cda60f07299ff4bcab32140f41c2a

We're also seeing the problem. Same crash.
We can reproduce the problem by sending a notification to the android device while the app is in the foreground (notification is received just fine), then opening the app, and sending another message:
crashes every time.

Removing the second argument from getColor(); fixed the issue for me.
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
{
int accentID = getResources().getIdentifier("accent", "color", getPackageName());
notificationBuilder.setColor(getResources().getColor(accentID));
}

Hi. Has this been fixed? I am getting same crash when receiving push notifications. Tried the fixes above but nothing worked.
Here is the crash report:
Exception android.content.res.Resources$NotFoundException: Resource ID #0x0
android.content.res.Resources.getValue (Resources.java:1551)
android.content.res.Resources.getColor (Resources.java:1102)
org.apache.cordova.firebase.FirebasePluginMessagingService.sendNotification (FirebasePluginMessagingService.java:105)
org.apache.cordova.firebase.FirebasePluginMessagingService.onMessageReceived (FirebasePluginMessagingService.java:71)
com.google.firebase.messaging.FirebaseMessagingService.zzo ()
com.google.firebase.messaging.FirebaseMessagingService.zzn ()
com.google.firebase.messaging.FirebaseMessagingService.zzm ()
com.google.firebase.iid.zzb$2.run ()
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
java.lang.Thread.run (Thread.java:818)

It seems it's sending an empty push notification. App crashes in Android 6 on receiving the empty push while in Android 5.0.2 is receiving a second blank push (in addition to the correct push expected).
I've commented line 71 in FirebasePluginMessagingService.java and got rid of the issue but of course that should be taken care of in a more elegant manner.

Can anyone confirm whether this is still an issue with the latest version?

Closing due to inactivity.  Please reopen if there is something we need to fix.


bug: Icon for 👍 and 👎 stay foused even when the popup is closed

Bug Report
Environment

Open WebUI Version: [º0.2.4]

Ollama (if applicable): [0.1.41]

Operating System: [macOS Sonoma]

Browser (if applicable): [Firefox 126.0.1]

Screencast
https://github.com/open-webui/open-webui/assets/22257750/8c2089df-81d9-4dba-9ca5-ef4889f1ca4c

Not a bug, its there to indicate you've left your feedback.


Where is the documentation for the testing backend?

This page  https://react-dnd.github.io/react-dnd/docs-testing.html says:
 // See other backend.simulate* methods for more!

However - I can not find the page that lists these methods.

Well - you can see the methods here, anyway:
https://github.com/react-dnd/react-dnd/blob/master/packages/dnd-core/src/backends/createTestBackend.js