Android app crashes as soon as opening

Description
I can't make my app run.
Reproduction
get project from my partner cloned in bitbucket (in my partner environment the app works like a charm) , after that i do npm i, then try to ran my app and getting following error
03-21 13:42:21.144 20977-21021/com.laRancherita2 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
                                                                   Process: com.laRancherita2, PID: 20977
                                                                   java.lang.RuntimeException: An error occured while executing doInBackground()
                                                                       at android.os.AsyncTask$3.done(AsyncTask.java:300)
                                                                       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
                                                                       at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
                                                                       at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                                       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                       at java.lang.Thread.run(Thread.java:818)
                                                                    Caused by: java.lang.NoSuchMethodError: No virtual method setCallWebSocket(Lokhttp3/Call;)V in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/data/com.laRancherita2/files/instant-run/dex/slice-okhttp-3.6.0_4fc54f61c851178d14681b3754ecb1a500425e9b-classes.dex)
                                                                       at okhttp3.ws.WebSocketCall.enqueue(WebSocketCall.java:108)
                                                                       at com.facebook.react.devsupport.InspectorPackagerConnection$Connection.connect(InspectorPackagerConnection.java:243)
                                                                       at com.facebook.react.devsupport.InspectorPackagerConnection.connect(InspectorPackagerConnection.java:44)
                                                                       at com.facebook.react.devsupport.DevServerHelper$3.doInBackground(DevServerHelper.java:159)
                                                                       at com.facebook.react.devsupport.DevServerHelper$3.doInBackground(DevServerHelper.java:155)
                                                                       at android.os.AsyncTask$2.call(AsyncTask.java:288)
                                                                       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                       at java.lang.Thread.run(Thread.java:818)
03-21 13:42:21.146 20977-21020/com.laRancherita2 I/Process: Sending signal. PID: 20977 SIG:9

then, a lot of searching after i saw this issue
then i added this line to my gradle
configurations.all {
        // OkHttp 3.5.0+ includes the websockets API, so we need this to prevent a conflict
        exclude module: 'okhttp-ws'
}

#UPDATE
if i remove code of configurations i'm getting this error
03-21 16:26:39.674 7778-7985/com.laRancherita2 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
                                                                 Process: com.laRancherita2, PID: 7778
                                                                 java.lang.RuntimeException: An error occured while executing doInBackground()
                                                                     at android.os.AsyncTask$3.done(AsyncTask.java:300)
                                                                     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
                                                                     at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                     at java.lang.Thread.run(Thread.java:818)
                                                                  Caused by: java.lang.NoSuchMethodError: No virtual method setCallWebSocket(Lokhttp3/Call;)V in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/app/com.laRancherita2-1/split_lib_dependencies_apk.apk:classes32.dex)
                                                                     at okhttp3.ws.WebSocketCall.enqueue(WebSocketCall.java:108)
                                                                     at com.facebook.react.devsupport.JSPackagerWebSocketClient.connect(JSPackagerWebSocketClient.java:72)
                                                                     at com.facebook.react.devsupport.DevServerHelper$1.doInBackground(DevServerHelper.java:131)
                                                                     at com.facebook.react.devsupport.DevServerHelper$1.doInBackground(DevServerHelper.java:119)
                                                                     at android.os.AsyncTask$2.call(AsyncTask.java:288)
                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                     at java.lang.Thread.run(Thread.java:818)
03-21 16:26:39.715 7778-7986/com.laRancherita2 I/Process: Sending signal. PID: 7778 SIG: 9

after that i'm getting this issue
03-21 15:49:21.123 6130-6200/com.laRancherita2 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
                                                                 Process: com.laRancherita2, PID: 6130
                                                                 java.lang.RuntimeException: An error occured while executing doInBackground()
                                                                     at android.os.AsyncTask$3.done(AsyncTask.java:300)
                                                                     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
                                                                     at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                     at java.lang.Thread.run(Thread.java:818)
                                                                  Caused by: java.lang.NoClassDefFoundError: com.facebook.react.devsupport.JSPackagerWebSocketClient
                                                                     at com.facebook.react.devsupport.DevServerHelper$1.doInBackground(DevServerHelper.java:122)
                                                                     at com.facebook.react.devsupport.DevServerHelper$1.doInBackground(DevServerHelper.java:119)
                                                                     at android.os.AsyncTask$2.call(AsyncTask.java:288)
                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                     at java.lang.Thread.run(Thread.java:818)

Solution
Idk
Additional Information

React Native version: 0.39
Platform: Android (iOS working well at the moment)
Operating System: MacOs
Dev tools: Android Studio 2.3

Are you using Okhttp 3.5?

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

I have the same issue. Just wondering if the original author solved it and if so how.

Fixed it with this code: https://stackoverflow.com/questions/43020878/react-native-activity-crashes-probably-related-to-packaging-okhttp3


Bug fixes

Description
The graph store registry served no purpose
Fixes https://github.com/run-llama/llama_index/issues/10969
Adds missed kwarg to NoText synthesizer
Fixes https://github.com/run-llama/llama_index/issues/10970
Fixes openai import in rankgpt
Fixes https://github.com/run-llama/llama_index/issues/10964
Fixes resolving model name to string for openai embeddings
Fixes https://github.com/run-llama/llama_index/issues/10958
Off by one error in sentence window node parser
Fixes https://github.com/run-llama/llama_index/issues/10947

Will publish v0.10.7 with above fixes


Fix proposal for issue #134 - TakePictureAsync landscape issue

Fix proposal for TakePictureAsync: image "always" stored in landscape even when taken in portrait  #134 android issue
I Fixed this issue altering the TakePhotoAsync method to rotate the captured image(onto disk)
if necessary

So, I think I could use some of this code, however I believe this should be done earlier in the process perhaps. My questions would be:
1.) Why do we need to compress the image
2.) Does the image get saved to it's original location again
3.) What happens if it doesn't need to be rotated
4.) Should RotateImage be done on another task or perhaps all of Fixorientationasync should be.

1.) Why do we need to compress the image?
It was just the way i found to save the image to disk and without loosing transparency that may have been added due to post camera edition(i.e before activityOnResult).
2.) Does the image get saved to it's original location again?
Yes, the FixOrientationAsync(string filePath) takes the mediaFile´s path as argument
and rotates the image in-place;
3.) What happens if it doesn't need to be rotated?
Nothing, the method simply returns false, I´ve found the TakePhotoAsync (obviously) faster
when rotation isn´t needed.
4.) Should RotateImage be done on another task or perhaps all of Fixorientationasync should be?
Maybe, but there isn´t a technical reason i understand of, that requires it to be.

Hi @jamesmontemagno  - just wondering if there has been any progress with this? And if not, if there's possibly some way I could contribute/donate to get the ball rolling? I would love for this to be resolved as it's affecting one of my apps, however I'd prefer not to fork the plugin if possible.

@thekiwi i already posted a workaround for this, and i currently use it. Didn´t fork the plugin,
it was easy to integrate cos i don´t normally use plugins directly in my codebase, i always create a wrapper arround the api.
Just created the pull request for sharing.

I need some more time to marge it in an push out an alpha for testing :)

I need some more time to marge it in an push out an alpha for testing :)

@jamesmontemagno i can imagine

@jamesmontemagno i can imagine


feat(PageHero)!: add short text variation

Overview

Adds a textLength prop to PageHero for long text (9 col text, 3 col image) vs short text (6 col text, 6 col image). Videos are set up specifically to have 7 cols text and 5 cols for video so that was left as is. Also refactors to use more built in gamut system props.

PR Checklist

[x] Related to designs: https://www.figma.com/file/J5yB1jyELiNt3Vb47T9GcE/Job-Readiness?node-id=2%3A43
[x] Related to JIRA ticket:[REACH-1323]
[x] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-kit@0.5.90-alpha.c24f19.0@codecademy/gamut-labs@23.0.1-alpha.c24f19.0<EMAIL_ADDRESS>
📬Published Alpha Packages:@codecademy/gamut-kit@0.5.92-alpha.7da6ee.0@codecademy/gamut-labs@23.2.0-alpha.7da6ee.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://614e2422a7cc9b2a7038251a--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.5.92-alpha.0a1e7f.0@codecademy/gamut-labs@23.2.0-alpha.0a1e7f.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61548f597b0b4c2fd30f6ef5--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.5.94-alpha.2f0767.0@codecademy/gamut-labs@23.3.1-alpha.2f0767.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6154940a38d3fa310db3296a--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.5.95-alpha.8afe9e.0@codecademy/gamut-labs@23.3.2-alpha.8afe9e.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61549daba3fd4500d09afe9d--gamut-preview.netlify.appDeploy Logs


Effect prediction throws error (even if raise_on_error=False)

Executing the following code results in a sqlite3.OperationalError: no such column: exon_id independet if raise_on_error=False or raise_on_error=True. Maybe this effect prediction is not possible based on hg18?
from varcode import Variant
from pyensembl import ensembl_grch36
# common driver gene mutation in KRAS
var = Variant(contig=12, start=25289551, ref="C", alt="A", ensembl=ensembl_grch36)
var.effects(raise_on_error=False)

Hi @johannesreiter, the older Ensembl GTFs don't have exon IDs in them and Varcode relies on that field. Any of the GTFs for GRCh37 or GRCh38 won't have this problem, would it be possible for you to switch to a more recent reference? If not, I can try to fix this.

I guessed that this is the problem. Since hg18 is so rare, it doesn't really matter. I was simply wondering if the error handling should be different as one would expect that no exception is raised when raise_on_error=False.
With GRCh37 the prediction works extremely well. I like it a lot! Thanks!


Remove mach-o macros from file parsing

Compiled with
./configure --disable-silent-rules \
--disable-dependency-tracking \
--prefix=$PWD/build \
--enable-dotnet \
--enable-cuckoo \
--enable-magic \
--enable-macho \
--enable-dex \
--with-crypto

And then checked with make check
Overview
I'm interested in adding additional support to the mach-o functionality in Yara. I was planning to start with adding symbol table support similar to the elf module.
However, I've found working with the macho.c file to be extremely cumbersome since all the functions are currently macros.
Proposal
To remove the macros in favor of a little additional if 32 vs 64 bit code. I think this actually helps readability because you don't have to remember what the macros expand into and keep track of 32 vs 64 bit. I haven't yet come up with an elegant way to handle the different byte ordering but before going further I wanted some feedback on the approach.
You can see the included changes to just the fat header parsing. Essentially the main fat parsing code only deals with 64 bit and then if we do have a 32 bit file we basically read the data and widen it to the 64 bit structure.
I choose this path based on how some of this is handled in the xnu sources as well as dyld mach-o parsing code.
If this approach makes sense then I will continue converting the macho.c module.
Additionally, is there any reason that the macho module isn't enabled by default like the elf and pe modules are?
Progress

[x] Remove macros from fat file parsing
[x] Remove macros from main file parsing
[x] Remove macros from segment parsing
[x] Remove macros from entry point parsing
[x] Remove macros from thread state parsing

@plusvic Any feedback or opinion on this proposed change?

Hi @knightsc, sorry for the delayed response. I'm very busy lately and I'm spending time on YARA only by bursts every a few weeks. I've done a quick review and it looks to me. I'm not merging it now, but I'll do it eventually. So, feel free to proceed with any other change you have in mind.

Thanks, I've added some progress indicators to the summary to make it more clear what I have left to refactor.

This should be ready for review.
Short note: My first pass at making these changes resulted in me mutating the buffer of data passed in  to the module. Most of the time this is fine but when passing the same buffer of memory into yr_rules_scan_mem over and over again things would continually get mutated in wrong ways. In turn I ended up at certain points copy struct memory over to local variables in order to do byte swapping in a more robust fashion that didn't require all the macros

@plusvic Any chance of getting this merged? Before opening any further mach-o changes I was hoping to get some of this clean up in.

Just signed the google CLA

+1 to getting this merged in. I'd also like help with developing out the macho modules features/supported once this is merged in.

@plusvic I just rebased this on the latest master so it would be up to date with Yara 4.0 code. I would still love to get this merged in and continue to build some additional Mach-O support. I was wondering if now might be a good time to get it merged since 4.0 was just released?


The assert polyfill is needed when using InsecureTokenProvider

PR #10488 added a dependency on the node "assert" package in test-runtime-utils. That package contains InsecureTokenProvider, which is used in many demos and samples in the browser, so the assert dep introduces the need for a polyfill.
The assert polyfill is quite large and we should avoid requiring it.

I face the same problem. Is there any workaround to fix this in Angular 12 projects?

The fix for this should be in upcoming version 1.2.6 and 2.0.0-internal.1.2.0.


Its like people who dont know how to do, write this stuff.

Why oh why would you give a first example while trying to explain something new like this:
(_, _, area) = city.GetCityInformation(cityName);
I have used these in the past and for someone trying to learn them, this is as confusing as an example gets.   You know what they say about people who cant explain something in simple ways, they dont truly understand it themselves.

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

ID: 8047b417-55af-c6df-9333-f1e1c428e594
Version Independent ID: 8bcc16bb-c2d8-0b6d-af20-6958964efe9e
Content: Discards - C# Guide
Content Source: docs/csharp/discards.md
Product: dotnet-csharp
Technology: csharp-fundamentals
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

I'd just ask you to take a look at our code of conduct @JesseWatson63 given the title you've given to this issue: https://dotnetfoundation.org/code-of-conduct
Thanks!

what did I violate exactly?   DId I hurt someones feelings?

First, my earlier comment addressed the concern with the content. I'll close this as answered.
Second,

what did I violate exactly? DId I hurt someones feelings?

This section of the code of conduct applies to the original title:

Examples of unacceptable behavior include:

[elided]
Other conduct which could reasonably be considered inappropriate in a professional setting


[BUG] Read only user cannot create Short URL's

Describe the bug
When using a read-only user,  a http403 error happens when trying to create a Short URL, with the message: Unable to create short URL. Error:
To Reproduce
Steps to reproduce the behavior:

Duplicate the role kibana_user to kibana_user_global_ro
On the role kibana_user_global_ro add an index permission for the index "*" with get, read, search,suggest permissions.
On the role  kibana_user_global_ro add a global_tenant read only permission.
Associate the user with the roles kibana_user_global_ro and kibana_read_only
Go to OpenSearch Dashboards Discover, Share, and select Short URL

Expected behavior
Read-only users should be able to navigate and use the Short URL feature without the need for a tenant write permission.
OpenSearch Version
1.0
Dashboards Version
1.0.0
Plugins
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Screenshots

Thanks for opening this! Creating the short URL does a write operation to the system index to store the URL. However, the security plugin prevents write operations to the system index for read only users.

This is an expected behavior of security plugin.

I believe this a side effect of how short URLs are generated (by writing to a protected index). I believe we should consider to support this for readonly users by improving the implementation to meet the needs of the user.
I am also open to hear reasons on why we should not support this for readonly users.
@elfisher @ahopp would appreciate any insights. Thanks

What should the expectations of the user be here? I would think if the user it was shared with has permissions to the objects loaded in the page, then the URL should be loadable by that user.

@elfisher The URL itself is loadable, but the issue is with current implementation for creating a share saved object short URL link, which seems to check if a user has write permissions to the tenant index, in order to generate a shareable URL. I think the user experience we should strive for is - If a user has permissions to view an object, they should also be able to generate a shareable short URL to the same. Note that when the receiving user clicks on the shareable link, they still need to authenticate to Dashboards, but the shared link acts like a bookmark that will take them straight to this dashboard or whatever other saved object is being shared.
Happy to hear any different views as well.

@elfisher The URL itself is loadable, but the issue is with current implementation for creating a share saved object short URL link, which seems to check if a user has write permissions to the tenant index, in order to generate a shareable URL. I think the user experience we should strive for is - If a user has permissions to view an object, they should also be able to generate a shareable short URL to the same. Note that when the receiving user clicks on the shareable link, they still need to authenticate to Dashboards, but the shared link acts like a bookmark that will take them straight to this dashboard or whatever other saved object is being shared.
Happy to hear any different views as well.

That makes sense and sounds reasonable. @kavilla and @davidlago I'd love to get your thoughts on what the right way forward is to enable this experience.

Hi, since I started looking into it, I talked with @kajetan-nobel who is working on the parent task: https://github.com/opensearch-project/security/issues/2701. It seems like this short_url task could be done in the scope of the parent one. Here's the PR:
https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4498/files#diff-11afec5e134a00ee3d5860652aa06d2c6cd6b0e2e3c54d0110a1c64eba1dd8d4R41-R45

Here's PR: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5539
It doesn't fully utilize the solution mentioned in comment https://github.com/opensearch-project/security-dashboards-plugin/issues/891#issuecomment-1691743385 by Peter. Let me know what do you think

Closing as issue was resolved in scope of different task: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5539#issuecomment-1832594360

Comment above states:

Resolution of the root issue
...
Workspace [2] is a new effort to decouple the access control model of the OpenSearch backend from the Dashboards features

Just tried the workspace feature on 2.18 with an Read Only Collaborator. The user sees the Short Link Button, but it results again in Unable to create short URL. Error: Forbidden

Is the "Short Link" feature supposed to work with readonly contributors in workspaces?


chore: bdd-spring-1574693483 to 0.0.1

chore: Promote bdd-spring-1574693483 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


Suggestion: FTP Client

Currently the only existing FTP client is FileKong, which doesn't seem to work for FTPS or SFTP, and I would personally find it convenient to be able to browse an FTP server for CIAs and being able to copy between them for backups of saves, etc.

there is no reason to need sftp for a 3ds. You transfer personal info back and forth?
have you even googled 3ds ftp? Never even heard of file Kong and I can name 3 clients off the top of my head.

I'd love links for 3DS FTP clients that let you download files from an FTP server and to a 3DS. Key here being the 3DS is not a server. ftpd, FTP-3DS, FTPony, FTBrony, FTP-GMX, etc are all FTP servers, not clients.

Ah... now I see what you want. Sounds like a completely separate project though, not a simple addition to FBI.

An FTP client would probably belong in a separate app, not FBI.


Regarding the transmit gain of the ANT500 used for hackRF transmission

Hey,
I want to konw how far the HackRF SDR transmits the signal. What is the maximum distance from the HackRF and Mobile .
What is the transmit antenna gain for ANT500

I had experimented a maximum of 2 feet successful spoofing distance for ANT500. What does ur results suggest? I have read somewhere that there is a 20db attenuation in the transmit signal. Kindly share, If it can be disabled somehow.


Facing Error: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.

Hi,
I'm trying to use pyedifice but on running the code, faced with error

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: direct2d, minimal, offscreen, windows.

The program used is calculator.py which is provided in the examples directory.
Solutions Tried:
1. Installed pyqt5 (pip install pyqt5)
2. Installed PyQt5-tools (pip install PyQt5-tools)
3. Reinstalled pyedifice
Systems detials:

OS: Windows 10 (Build: 19042.746)
Python Version: 3.8.5

Regards

Hi,
Do you have Pyside2 installed? Otherwise, to use pyqt5, you have to set the EDIFICE_QT_VERSION environment variable to PyQt5, since the default library used is PySide2. You can do this via:
EDIFICE_QT_VERSION=PyQt5 python -m edifice calculator.py

or
export EDIFICE_QT_VERSION=PyQt5  # You can put this in your bashrc or your shell init script
python -m edifice calculator.py

Another potential issue with Windows 10 (especially if you want to use the Linux subsystem) is setting up an XServer. Are you able to get raw QT working?
from PyQt5 import QtWidgets
app = QtWidgets.QApplication([])
window = QtWidgets.QLabel("Hello World")
window.show()
app.exec_()

If not, you might have to install an XServer, e.g. https://sourceforge.net/projects/xming/
Let me know if these solutions work or not!

Hi,
Setting EDIFICE_QT_VERSION=PyQt5 worked for me.
Thank you very much

For Macbook users who have 2 QT libraries crashing together, throwing errors like
"... Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.",
export DYLD_PRINT_LIBRARIES=1  export EDIFICE_QT_VERSION=PyQt5
And remember to put the class name to run at the end
python -m tutorial.py Oscillator


Tutorial 04 failing - AttributeError: 'DataFrame' object has no attribute '_data'

Hello! I've been trying metaflow but I got stuck on tutorial number 04.
This is what i get when trying to execute it:
2020-08-11 17:09:02.454 Workflow starting (run-id<PHONE_NUMBER>444702):
2020-08-11 17:09:03.378 [1597176542444702/start/1 (pid 7882)] Task is starting.
2020-08-11 17:09:04.594 [1597176542444702/start/1 (pid 7882)]     Internal error
2020-08-11 17:09:04.600 [1597176542444702/start/1 (pid 7882)] Traceback (most recent call last):
2020-08-11 17:09:04.600 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/cli.py", line 884, in main
2020-08-11 17:09:04.600 [1597176542444702/start/1 (pid 7882)]     start(auto_envvar_prefix='METAFLOW', obj=state)
2020-08-11 17:09:04.600 [1597176542444702/start/1 (pid 7882)] Using metadata provider: local@/Users/bi002708/OneDrive - BANCO INTER SA/metaflow-tutorials
2020-08-11 17:09:04.600 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/click/core.py", line 764, in __call__
2020-08-11 17:09:04.600 [1597176542444702/start/1 (pid 7882)]     return self.main(args, kwargs)
2020-08-11 17:09:04.664 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/click/core.py", line 717, in main
2020-08-11 17:09:04.664 [1597176542444702/start/1 (pid 7882)]     rv = self.invoke(ctx)
2020-08-11 17:09:04.664 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
2020-08-11 17:09:04.664 [1597176542444702/start/1 (pid 7882)]     return _process_result(sub_ctx.command.invoke(sub_ctx))
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/click/core.py", line 956, in invoke
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     return ctx.invoke(self.callback, ctx.params)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/click/core.py", line 555, in invoke
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     return callback(args, kwargs)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/click/decorators.py", line 27, in new_func
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     return f(get_current_context().obj, args, kwargs)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/cli.py", line 445, in step
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     max_user_code_retries)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/task.py", line 451, in run_step
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     output.persist(self.flow)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/datastore/datastore.py", line 48, in method
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     return f(self, args, kwargs)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/datastore/datastore.py", line 500, in persist
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     sha, size, encoding = self._save_object(obj, var, force_v4)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/datastore/datastore.py", line 429, in _save_object
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     transformable_obj.transform(lambda x: pickle.dumps(x, protocol=2))
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/datastore/datastore.py", line 66, in transform
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     temp = transformer(self._object)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/tmp/tmplj4lal94/metaflow/datastore/datastore.py", line 429, in <lambda>
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     transformable_obj.transform(lambda x: pickle.dumps(x, protocol=2))
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/pandas/core/generic.py", line 1931, in __getstate__
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     return dict(_data=self._data, _typ=self._typ, _metadata=self._metadata,
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]   File "/opt/anaconda3/envs/metaflow_PlayListFlow_osx-64_2b8c423287a339b3e7c633a6dc58580161663113/lib/python3.7/site-packages/pandas/core/generic.py", line 5063, in __getattr__
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]     return object.__getattribute__(self, name)
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)] AttributeError: 'DataFrame' object has no attribute '_data'
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)]
2020-08-11 17:09:04.665 [1597176542444702/start/1 (pid 7882)] Using analysis from 'Run('MovieStatsFlow/1597169402444620')'
2020-08-11 17:09:04.668 [1597176542444702/start/1 (pid 7882)] Task failed.
2020-08-11 17:09:04.668 Workflow failed.
2020-08-11 17:09:04.668 Terminating 0 active tasks...
2020-08-11 17:09:04.668 Flushing logs...
    Step failure:
    Step start (task-id 1) failed.

Can you re-execute tutorial 2 before executing tutorial 4?

Sure. I've just did it. The problem persists though.

@vitorinter, I was able to get it to work by launching tutorial 2 with the following command:
python 02-statistics/stats.py --environment conda run --with conda:python=3.7,libraries="{pandas:0.24.2}"

Im clossing it.
I had 2 problems.

Had to add export USERNAME="<your_name>" to the shell .rc file
Had to downgrade my pandas version to 0.24.2 on my metaflow environment. (which is strange. i thought it was isolated)

We made a recent release with a comment to that effect. You are right that the environment you use to execute Episode 4 is isolated. The issue is that Episode 4 reads an artifact produced in Episode 2 which used your system Pandas version (it must have been 1.0+). Pandas has breaking changes between 0.24.2 and 1.0+ so 0.24.2 (the version used in Episode 4) can't read the artifact produced by 1.0+ (the version used in Episode 2). In a future release, we will update the version of the Pandas version used in Episode 4 to be more recent and alleviate these issues.

No problem! I could have made a better job at closing in to the issue aswell.


question about short_memory

Hello, When I read your paper and reproduced the code, I had a question. You mentioned in your paper: we fuse the outputs from two adjacent frames with an adaptive aggregation algorithm. As shown in the red box below:

The implementation of this part in the code is as follows:

My question is as follows: last_output_embed represents the output of the previous frame, why is it not tracks[b-1].last_output but tracks[b].last_output.
I'm sorry to bother you again. If I have any misunderstanding, please advise me.

In last_output_embed = tracks[b].last_output, the b is the corresponding batch, not the time step. In our experiments, as the batch size is set to 1, the b is 0 all the time.
We update the last_output in the later code.

In last_output_embed = tracks[b].last_output, the b is the corresponding batch, not the time step. In our experiments, as the batch size is set to 1, the b is 0 all the time. We update the last_output in the later code.

Tanks for your reply!now i have saved my question!


Opt-out for Push Notifications on Specific Device in CleverTap User Profile

I am currently dealing with a minor issue. I noticed that in the user profile, there's a list of devices associated with the user. If a user has granted permission for push notifications, a green notification icon is displayed next to the respective device (see attached screenshot).
Is there a way to implement an opt-out specifically for push notifications on an individual device?

Hi @RobertAdamczyk,
Yes, you can opt-out for push notification for specific device. You have to set "MSG-push" property to NO for that specific device. You can refer this doc: https://developer.clevertap.com/docs/user-profiles-ios#updating-user-profilepush-profile-method to update the user property, for this you can use: @"MSG-push": @NO.

Yes, it works as expected. Thank you for the prompt support.


NullPointerException, fails to connect to servers?

22:19:55 [SEVERE] Exception in thread "Thread-142"
22:19:55 [SEVERE] java.lang.NullPointerException
22:19:55 [SEVERE]     at me.dommi2212.BungeeBridge.PacketHandler.handlePacket(PacketHandler.java:230)
22:19:55 [SEVERE]     at me.dommi2212.BungeeBridge.ClientRunnable.run(ClientRunnable.java:42)
22:19:55 [SEVERE]     at java.lang.Thread.run(Thread.java:745)
Happens after reloading the Bungee Plugin.
After reloading the Clients on the servers it stops spamming the error above.

This issue was already reported and will be fixed in the next days.
Anyway thanks for reporting!
Please stay patient until it's fixes.

Fixed bug in version 1.6.1:
https://github.com/dommi2212/BungeeBridge/commit/e3db44652ae55b6e86f608db28875245e7956e9e


Handle parser panic on unary plus

What was wrong?
Parser panicked on unary plus https://github.com/ethereum/fe/issues/443
How was it fixed?
Added error message when unary plus is hit.
To-Do

[ ] OPTIONAL: Update Spec if applicable

[ ] Add entry to the release notes (may forgo for trivial changes)

[ ] Clean up commit history

Codecov Report

Merging #643 (6c689af) into master (3e0009f) will decrease coverage by 0.04%.
The diff coverage is 37.50%.

@@            Coverage Diff             @@
##           master     #643      +/-   ##
==========================================
- Coverage   86.77%   86.73%   -0.05%
==========================================
  Files          96       96
  Lines        8585     8591       +6
==========================================
+ Hits         7450     7451       +1
- Misses       1135     1140       +5

Impacted Files
Coverage Δ

crates/parser/src/grammar/expressions.rs
88.88% <37.50%> (-1.49%)
:arrow_down:

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 3e0009f...6c689af. Read the comment docs.

:100:


How to upgrade the nginx version from 1.14.0 to a higher version ?

❔ Question
How to upgrade the nginx version from 1.14.0 to a higher version once Paladin app is installed?
Is there a command supported by Paladin?
🔦 Context
We are getting the below Vulnerability issue due to the nginx version.
"According to its Server response header, the installed version of nginx is 1.9.5 prior to
1.16.1 or 1.17.x prior to 1.17.3. It is, therefore, affected by multiple denial of service
vulnerabilities"
💻 Code Sample

@rjvkumar18 currently there is no command to upgrade the version. We have planned to upgrade the ngnix version in our future releases.

@lakspp thanks for the update.
Could you please provide us work around for this issue if you have any.
Can I change the nginx version in the dockerfile and do a fresh installation of Paladin ?

@rjvkumar18 Sure, you can update the docker file and try redeploy command. We have not tested this yet.
We will update the version in the coming releases.

Thanks @santhosh-challa.


TO Client: Return status codes for all client functions

It would be a good idea to return status codes from client functions to better test the trafficops api. A common use case would be to test for 404s while using PUT or DELETE.
A part of the underlying argument is that the client should be more versatile.
Related: #3447
There are some instances where we have already returned status codes:
client/role.go
33:func (to *Session) CreateRole(region tc.Role) (tc.Alerts, ReqInf, int, error) {
54:func (to *Session) UpdateRoleByID(id int, region tc.Role) (tc.Alerts, ReqInf, int, error) {
76:func (to *Session) GetRoles() ([]tc.Role, ReqInf, int, error) {
92:func (to *Session) GetRoleByID(id int) ([]tc.Role, ReqInf, int, error) {
109:func (to *Session) GetRoleByName(name string) ([]tc.Role, ReqInf, int, error) {
126:func (to *Session) DeleteRoleByID(id int) (tc.Alerts, ReqInf, int, error) {

client/staticdnsentry.go
90:func (to *Session) UpdateStaticDNSEntryByID(id int, sdns tc.StaticDNSEntry) (tc.Alerts, ReqInf, int, error) {

We should put the status code in the ReqInf object.

Is this still an issue? I believe

We should put the status code in the ReqInf object.

has been done

Yes, this was done by https://github.com/apache/trafficcontrol/pull/5334.


Replaced instanceof with Array.isArray to support iframes

Hi James!
My team and I faced a weird problem using your library in our project.
Let me briefly explain the scenario:

Create a store with redux-resource reducers as usual.
Make store accessible globally like window.store = store;
Add an <iframe> to the page. As src points on the same domain, so we can access the store from the iframe too (window.parent.store).
Dispatch an action from iframe.

The problem is the list of resources is not an instance of Array anymore and your code follows in a wrong way. Please, have a look at the documentation on MDN. I reproduced this case for you — https://output.jsbin.com/yotoyexiva Please, check browser’s console.
My suggestion is to replace instanceof with Array.isArray(), which works perfectly.
Please, let me know you have any questions.

Hey again @mistakster . Sorry again for the delay; work has been crazy lately! This was just released as v3.0.5.

@jamesplease, thanks a lot! Cheers.


feat: add workflow for building napi images

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

Comparison is base (e88b70e) 0.05% compared to head (7447a40) 0.05%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff           @@
##            main   #1129    +/-   ##
======================================
  Coverage   0.05%   0.05%
======================================
  Files        498     494     -4
  Lines      25339   24973   -366
  Branches    4613    4512   -101
======================================
  Hits          13      13
+ Misses     25326   24960   -366

Flag
Coverage Δ

unittests-aries-vcx
0.05% <ø> (+<0.01%)
:arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Change the provider string in ingest requests

We've made a small change to the way we handle storage providers in the storage service.
Previously, to start an ingest, you'd make a POST request with the following body:
{
  ...,
  "sourceLocation": {
    "provider": {"type": "Provider", "id": "aws-s3-standard"},
    ...
  }
}

With the new providers, this should be changed to "amazon-s3". Goobi should send the new provider string in requests to the storage service.
Part of https://github.com/wellcomecollection/platform/issues/4551

@alexwlchan can we use the new name right now or do you need to prepare the storage service first?

can we use the new name right now or do you need to prepare the storage service first?

Right now!
The storage service will accept both names right now, but eventually I'd like to remove the code that handles the old names.

This was changed in Goobi and it appears it has already been deployed to production in the meantime as well.


base url handling issue

Hi I'm trying out apigen-ts to generate the client for an api-server but I got problem running it.
The openapi def is here
https://github.com/artemiscloud/activemq-artemis-jolokia-api-server/blob/main/src/config/openapi.yml
After generation, in my code I do
const api = new ApiClient({
  baseUrl: apiServerUrl + "/api/v1/",
})

Then I invoke one of the api method
api.development.apiInfo().then((response)=>{
    console.log('response: ', response);
  }).catch((ex) => {
    console.log('error', ex);
  });

I got 404 error. The reason seems to be in the generated client code the fetch url is not correctly formed
For example if my api-server listens on https://localhost:9443, the baseUrl I passed in ApiClient is https://localhost:9443/api/v1/ , inside the client code when handling the method call, it uses URL constructor
 const url = new URL('/api-info', 'https://localhost:9443/api/v1/')
It turns out the new url removed the path from base url before appending the path (/api-info), like this
(new url) https://localhost:9443/api-info
but the correct url should be https://localhost:9443/api/v1/api-info.

The version is ^0.1.2

Thank you @vladkens !


ECS optimisation

The ECS is horribly slow compared to other libraries. Once it's optimised to a more acceptable speed, I will also change the rendering backend to use the ECS instead of the current setup with pointers in vectors.

Performance is fine, still horribly slow but fine. I'll reopen the issue when it becomes noticeable.


VCS not found on Windows virtualenv

Originally reported by: Barry Laffoy (BitBucket: laffoyb, GitHub: laffoyb)

Running setuptools with a hgtools dependency in a Windows virtualenv will fail if no global hg executable is available on the path.
(dev) PS C:\env\dev\build> python setup.py bdist_wheel
Traceback (most recent call last):
  File "setup.py", line 69, in <module>
    test_suite="nose.collector"
  File "c:\Python27\Lib\distutils\core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "C:\env\dev\build\dev\lib\site-packages\setuptools\dist.py", line 269, in __init__
    _Distribution.__init__(self,attrs)
  File "c:\Python27\Lib\distutils\dist.py", line 287, in __init__
    self.finalize_options()
  File "C:\env\dev\build\dev\lib\site-packages\setuptools\dist.py", line 324, in finalize_options
    ep.load()(self, ep.name, value)
  File "C:\env\dev\build\dev\lib\site-packages\hgtools\plugins.py", line 113, in version_calc
    dist.metadata.version = calculate_version(options)
  File "C:\env\dev\build\dev\lib\site-packages\hgtools\plugins.py", line 94, in calculate_version
    mgr = managers.RepoManager.get_first_valid_manager()
  File "C:\env\dev\build\dev\lib\site-packages\hgtools\managers\base.py", line 42, in get_first_valid_manager
    return next(RepoManager.get_valid_managers(location))
StopIteration: No source repo or suitable VCS version found

To demonstrate the setup, there is no hg on the path:
PS C:\> Get-Command hg | select path
Get-Command : The term 'hg' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Command hg | select path
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (hg:String) [Get-Command], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand

But with the virtualenv activated, hg.bat is available:
(dev) PS C:\> Get-Command hg | select path

Path
----
C:\env\build\dev/Scripts\hg.bat

In hgtools.managers.cmd.Mercurial, the exe is defined as "hg". This lead to _invoke creating commands of the form subprocess.Popen(["hg", "status"],...)
But by opening a Python shell I can see that this won't work, whereas calls to hg.bat will work.
>>> import subprocess
>>> subprocess.Popen(["hg", "status"])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\Python27\Lib\subprocess.py", line 711, in __init__
    errread, errwrite)
  File "c:\Python27\Lib\subprocess.py", line 948, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
>>> subprocess.Popen(["hg.bat", "status"])
<subprocess.Popen object at 0x027A5F30>
>>> M .hgignore
? .hgignore.swp
? .hgignore~
? hgtools-6.3.zip

I'm not sure if this is a bug in hgtools, or in the underlying subprocess.Popen.
It seems like there should be a way to work around this by fiddling with the environment variable PATHEXT, but I can't seem to figure it out.
A workaround that definitely works is to install a global Mercurial executable, by some method other that pip install. This will provide a hg exe on the path. This isn't always ideal though.
(edit to fix code formatting)

Bitbucket: https://bitbucket.org/jaraco/hgtools/issue/30

Thanks for the report. Yes, it's true that Popen doesn't work as expected with PATHEXT. A search of PATHEXT on bugs.python.org yields quite a few related issues.
As I understand it (though I have no reference), Microsoft has commented on this issue and has indicated that a fix to generally support PATHEXT in the CreateProcess API (which Popen uses) is unlikely to happen, and that wrapper executables should be used for maximum compatibility.
I believe there is room for the Python code to work around this limitation, and have Popen resolve the PATHEXT to the hosting executable and run the program that way, but that would be outside the scope of hgtools.
Another option might be to invoke Popen with shell=True, which will use a shell process such as cmd.exe to resolve the PATHEXT script. I'm reluctant to simply make this change as I'm unaware what other implications that might have.
As this project is largely defunct in deference to setuptools_scm, I suggest the issue be taken up there. If the issue is fixed there, then I'd be happy to accept the same behavior for this library.
In the meantime, I'm marking this as wontfix, as I won't have time to invest in troubleshooting or testing, but I welcome pull requests.

Thanks for the report. Yes, it's true that Popen doesn't work as expected with PATHEXT. A search of PATHEXT on bugs.python.org yields quite a few related issues.
As I understand it (though I have no reference), Microsoft has commented on this issue and has indicated that a fix to generally support PATHEXT in the CreateProcess API (which Popen uses) is unlikely to happen, and that wrapper executables should be used for maximum compatibility.
I believe there is room for the Python code to work around this limitation, and have Popen resolve the PATHEXT to the hosting executable and run the program that way, but that would be outside the scope of hgtools.
Another option might be to invoke Popen with shell=True, which will use a shell process such as cmd.exe to resolve the PATHEXT script. I'm reluctant to simply make this change as I'm unaware what other implications that might have.
As this project is largely defunct in deference to setuptools_scm, I suggest the issue be taken up there. If the issue is fixed there, then I'd be happy to accept the same behavior for this library.
In the meantime, I'm marking this as wontfix, as I won't have time to invest in troubleshooting or testing, but I welcome pull requests.


Restriction on deleting an active project has disappeared

Description
Previously it was impossible to delete an active project, its context menu didn't have this item. Most likely it was broken after refactoring merge.
Steps to reproduce:

Open the Projects view
Call the context menu for the active project
Expected: No Delete menu Item
Actual: Delete item exists in the context menu, and we can successfully delete active project, after that no active project is selected

DBeaver Version
24.2.2
Operating System
win11
Database and driver
No response
Steps to reproduce
No response
Additional context
No response

It worked on 24.2.0


Cluster is dead?

There are Issues dated from begining of December/2015, and the latest commit happened on November/2015.
There is someone heading it?
][`s

Seems to be on hold for now

Any news about it?

should fork it and update it yourself


[3.0] Mouse cursor stuck in "resizing" icon when the mouse exits window border

Tested on Godot master 3ceefab232604b09d3fff843c24a13e99f50912b
Windows 10 64 bits
Repro steps:

Open Editor Settings (or any other resizeable editor window)
Move the mouse to a border, see it changes to a resizing icon
Move the mouse away from the window: notice the cursor stays a resizing icon (wrong behaviour).
Click outside of the window: notice the cursor becomes normal again

When doing 3), I expected the mouse to go back to a normal pointer.

Duplicate of #7622.


Demo #5, #6

Mounting IPFS on /ipns/local/docker-registry
Supercedes  #19
Fixes #1
Fixes #2
Fixes #3

@hosh I can go ahead and run through these for you

@hosh In 005 I got to step 4 and when running make I got the following error:
$ make
mkdir /ipns/local/docker-registry
Starting docker-registry on ipfs if it is not already started
docker ps | grep ipfs-registry || docker run -d \
	  -p 5000:5000 \
	  --name ipfs-registry \
	  -v /ipns/local/docker-registry:/ipns/local/docker-registry \
	  -t \
	  ipfs/docker-registry:0.1.0
2c591d9b8ab38c17b2462cbc33b8c42b1ee59b1ae29ce81937d15570f8162c85
Loading demo image if it is not already loaded
docker images | grep 4986bf8c1536 || docker load < /ipfs/QmPveebHsVPpS6Q9oPEtDBjJARnWFNNGuLhuCQE9aCejte/busybox.img
docker tag -f 4986bf8c1536 "busybox:latest"
docker tag -f "busybox:latest" "localhost:5000/busybox"
docker push "localhost:5000/busybox"
The push refers to a repository [localhost:5000/busybox] (len: 1)
Sending image list
Pushing repository localhost:5000/busybox (1 tags)
511136ea3c5a: Image successfully pushed
df7546f9f060: Image successfully pushed
ea13149945cb: Image successfully pushed
4986bf8c1536: Image successfully pushed
Pushing tag for rev [4986bf8c1536] on {http://localhost:5000/v1/repositories/busybox/tags/latest}

Look, we have a registry

ls /ipns/local/docker-registry/images
4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125
511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158
df7546f9f060a2268024c8a230d8639878585defcc1bc6f79d2728a13957871b
ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2

Deleting demo image and try a pull

docker rmi -f 4986bf8c1536
Untagged: busybox:latest
docker pull "localhost:5000/busybox"
Pulling repository localhost:5000/busybox
2015/04/21 14:15:52 invalid character 'a' after top-level value
make: *** [demo] Error 1


languages improved + fix repeated js in discussions

I hope you better like this way to integrate the titles.
Additionally chatter.js was duplicated in discussions when you select the sidebar in the config, now solved.
I have also new views, mobile friendly, I changed it 30%, not sure if to create a pull request, add them as new "vendor" template..

not merged yet??

Thanks

I have two questions.

Shouldn't the errors attribute config be set to "true" by default?
Why are we using this strtolower(trans('chatter::intro.titles.discussion')) in the translation files? If you now set it to "Discussions" in the config, all languages will use that word.

Shouldn't the errors attribute config be set to "true" by default?
Nice catch, fixed in #177

Why are we using this strtolower(trans('chatter::intro.titles.discussion')) in the translation files? If you now set it to "Discussions" in the config, all languages will use that word.
You might want to translate Discussions to the other languages as well.

But in that case you need:

chatter::intro.titles.discussion.en = Discussion
chatter::intro.titles.discussion.es = Discusión
chatter::intro.titles.discussion.nl = Discussie

Also I just found out there's a problem with UTF-8 and strtolower. This needs to become mb_strtolower to keep multi-byte/encoding issues at bay.
Although my preference is to not use Config settings in translations at all.

@gerbenjacobs
You're right with the "true" errors
Regarding using 'chatter::intro.titles.discussion' this word is taken from a file in lang, not in config,  it was like that before, but I changed it in this fix, because I agree better not to use config for words.
And yes, mb_strtolower might be better, I use that because in some languages you can capitalise al the words in a sentence, but in others is not correct.


Update cluster-proxy-addon chart to fix a security issue.

Signed-off-by: xuezhaojun<EMAIL_ADDRESS>The related issue: https://github.com/stolostron/backlog/issues/26546
The related fix PR: https://github.com/stolostron/cluster-proxy-addon/pull/81

/assign @eemurphy  Please take a look, thanks!

/lgtm


Availability blocks and rules models changes

@nonsense66 Did this get fixed?

public enum AppointmentOptimizationCode : short it is still here. We need to be careful when merging this stuff. I'll update my MR with availability block controller changes and probably update this as well.


Annotation different from Deprecated are not properly colored.

Interesting. Is that in the grammar or what? Should it even be colored blue?

I think that having a color for the annotations is nice as most mainstream languages do it also
I will check it :)

Interesting. Is that in the grammar or what? Should it even be colored blue?

So it is defined in the grammar, but some of the annotations introduced later are missing, do you want me to add them or remove all of them? we could use a pattern actually to avoid this issues, but I am missing the information whether or not it is possible to define new annotations (I believe no)

I think you should just add the annotations which are supported by the compiler. I believe there is just a handful.


Fixed Gradle setup

Summary

Load Android Gradle Plugin conditionally

This wraps the Android Gradle plugin dependency in the buildscripts section of android/build.gradle in a conditional:
if (project == rootProject) {
    // ... (dependency here)
}

The Android Gradle plugin is only required when opening the project stand-alone, not when it is included as a dependency. By doing this, the project opens correctly in Android Studio, and it can also be consumed as a native module dependency from an application project without affecting the app project (avoiding unnecessary downloads/conflicts/etc).
for more info, you can refer to this thread and especially this comment.

set root project's Gradle config instead of hardcoded configs (with fallback option)

remove buildToolsVersion config, because it's no longer necessary with newer versions of the Android Gradle plugin.

Test Plan
Suppose you use this library on a project that has a different AGP version than this library's AGP version and the latter one is not installed on the OS. by this change, the library's AGP will not download during the build process (which it shouldn't be)
What's required for testing (prerequisites)?
An OS that has not installed the Android Gradle Plugin version that this library already using.
What are the steps to reproduce (after prerequisites)?
Just import this library in a project and run it on an Android emulator or a real device
Compatibility

OS
Implemented

iOS
❌

Android
✅

Checklist

[X] I have tested this on a device and a simulator
[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

@jhen0409
please review and merge this.

Thank you!


[Question] Difference in gpt-neo-125m weights loading with huggingface from_pretrained and HookTransformers.from_pretrained

Hi Neel,
Thanks for this powerful tool for interpretation and it helps me a lot in understanding the mechanics of LLMs. But I found there is slight difference in gpt-neo-125m weights loading with huggingface from_pretrained and HookTransformers.from_pretrained even for wte.weight. I suppose the two weights should be the same because they are all loaded from EleutherAI/gpt-neo-125m. I am not sure if I am wrong with understanding the source code of HookTransformers.from_pretrained. Could you please try to check if such problem exists or could you please figure out where I did it wrong? Thank you very much!

Hey,
If you look at the token probability distribution, they should be the same. TransformerLens performs many operations under the hood to facilitate interpretability (see this explanation).
If you don't want TL to perform this weight processing, use .from_pretrained_no_processing instead of .from_pretrained.


Text shapes are missing from snapshot and svg

Text shapes are not returned when calling lc.getSnapshot and lc.getSVGString().

I'm trying to debug this but not yet sure where to look.

Turns out that you need to click away from the text twice for the shape to be considered a part of the image.
Ie, First click stops editing of the text.  Second click deselects the text.  At this point the text is considered a shape attached to the drawing.


fix: [oadp-1.1] CRD description of default restore resource priorities

Update CRD description and follow refactor from Scott PR's https://github.com/openshift/oadp-operator/pull/1147

/retest

/retest

1.1.6 was released
/unhold

/lgtm


Fix for netlify 404 error

When visiting the netlify deploy preview, the server responds with 404 error messages

This is a proposed solution, I don't know if it's going to fix the issue since I don't have access to netlify

the issue is fixed on the main branch. No need to merge changes from this PR


Login error seems to be back.

I installed Python 3.8, got all the necessary libraries, and got a fresh install of this repository. Then I try to run example.py and I get:
requests.exception.hTTPError: 400 Client Error: Bad request for url: https://api.robinhood.com/oauth2/token/

During handling of the above exception another exception occurred:

raise RH_exception.LoginFailed()

I saw another user say that (months ago) Robinhood updated their payload requirements but I have seem to met them?
payload = {
  'client_id': MYCLIENTID,
  'device_token': MYDEVICETOKEN,
  'expires_in': 86400,
  'grant_type': 'password',
  'scope': 'internal',
  'password': MYPASSWORD,
  'username': MYUSERNAME
}

Still get a login failed... Used to work!!!

Same problem here

Any solution? Is something MFA related? Or did it just start 'suddenly' working?

Using the parameters above I was able to login. Probably you need to login on web first to get a valid token?

I'm having the same problem.  2FA is on and I have a valid token.  I keep getting a 400 Client Error notification after entering my 2FA code.  I'm able to login via the web based application (desktop) and mobile app without incident.
Here's the error I get:
>>> from Robinhood import Robinhood
>>> mytrader=Robinhood()
>>> logged_in=mytrader.login(username="xxxx", password="xxxx")
MFA: xxxxxx
Traceback (most recent call last):
  File "/Users/Fergus/Dropbox/VINST/software/Robinhood/Robinhood/Robinhood.py", line 123, in login
    res.raise_for_status()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py", line 909, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.robinhood.com/oauth2/token/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/Fergus/Dropbox/VINST/software/Robinhood/Robinhood/Robinhood.py", line 130, in login
    return self.login(username,password,mfa_code)
  File "/Users/Fergus/Dropbox/VINST/software/Robinhood/Robinhood/Robinhood.py", line 126, in login
    raise RH_exception.LoginFailed()
Robinhood.exceptions.LoginFailed

I've updated the Robinhood source file to include the access_token, expires_in, token_type, scope, refresh_token, challenge_type, and device_id and saved this file before navigating back to the Robinhood directory to reinstall the source file via "pip3 install ." to no avail.  Here is what my Robinhood payload looks like now:
        payload = {
            'password': password,
            'username': self.username,
            'grant_type': 'password',
            'client_id': self.client_id,
            "access_token": "xxxx",
            "expires_in": xxxx,
            "token_type": "Bearer",
            "scope": "internal",
            "refresh_token": "xxxx",
            'challenge_type': 'sms',
            "device_id": "xxxx"
        }

Any help would be much appreciated.

It appears that the login requires device_token. I tried to push my changes by creating a PR but received an authorization error.
In order for you to make it work, you could use uuid library to generate a device token in Robinhood.py file.

class Robinhood:

  def login(self,
                username,
                password,
                mfa_code=None):

    devicetoken = uuid.uuid1()

    self.username = username
            payload = {
              'password': password,
              'username': self.username,
              'grant_type': 'password',
              'client_id': self.client_id,
              'device_token': devicetoken
            }

Thanks for the suggestion. Unfortunately, this fix does not appear to work on my end (same error as others report). I have already verified I can login to RH via web and mobile.

I'm having the same problem. This appears to be related to issues #176 #177 #183. 2FA is on and I have a valid token. I keep getting a 400 Client Error notification after entering my 2FA code. I'm able to login via the web based application (desktop) and mobile app without incident (Version 2019.51.37).
Here's the error I get:
>>> from Robinhood import Robinhood
>>> mytrader=Robinhood()
>>> logged_in=mytrader.login(username="xxxx", password="xxxx")
MFA: xxxxxx
Traceback (most recent call last):
  File "/Users/Fergus/software/Robinhood/Robinhood/Robinhood.py", line 123, in login
    res.raise_for_status()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py", line 909, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.robinhood.com/oauth2/token/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/Fergus/software/Robinhood/Robinhood/Robinhood.py", line 130, in login
    return self.login(username,password,mfa_code)
  File "/Users/Fergus/software/Robinhood/Robinhood/Robinhood.py", line 126, in login
    raise RH_exception.LoginFailed()
Robinhood.exceptions.LoginFailed

I've updated the Robinhood source file to include the access_token, expires_in, token_type, scope, refresh_token, challenge_type, and device_id and saved this file before navigating back to the Robinhood directory to reinstall the source file via "pip3 install ." to no avail. Here is what my Robinhood payload looks like now:
        payload = {
            'password': password,
            'username': self.username,
            'grant_type': 'password',
            'client_id': self.client_id,
            "access_token": "xxxx",
            "expires_in": xxxx,
            "token_type": "Bearer",
            "scope": "internal",
            "refresh_token": "xxxx",
            'challenge_type': 'sms',
            "device_id": "xxxx"
        }

Any help would be much appreciated.

The note by @securient helped solve my problem.  I changed the "device_id" to "device_token" in my payload, removed MFA and was then able to login without issue.

@qualiaMachine, are you still getting the same error? Take a look at this PR https://github.com/Jamonek/Robinhood/pull/198/files and see if you have made the same changes in your code.

I made those changes, still getting the error

Working with @securient changes outlined above!

@securient's solution works when MFA is enabled in the account. It does not fix the issue when MFA is NOT enabled.

Was there ever a solution to the above? I am a new user trying to log in and getting this error myself.

@alake16 @securient @tipu

Same here. Only works with MFA on and I have to type th 6-digit code. Any suggestions?

@adithyabsk  Why is this closed?

@zacharytyhacz yes, I don't know either. Is this resolved, please let us know.

@zacharytyhacz @diogobotelho have you tried the project recently? Login works

hey @adithyabsk it seems there is some intermittent issue. Login works for me in my mac. but doesn't work in my linux (Centos) with same parameters. MFA enabled. getting HTTP error 400. Only difference AFAIK, in my mac its Python3.7 Linux 3.6. Any clue?


Fix false positive for a corner case of short-circuiting expressions

NilAway is complaining about the latter dereference in the short-circuiting expressions:
func foo() bool {
  return s == nil || *s == ""
}

We have support for short-circuiting expressions in NilAway, but this is a corner case that we somehow missed. We should add support for it.

Same here, for
type AType struct {
	Field int
}

func F1(a *AType, b *AType) bool {
	return a != nil && b != nil && a.Field != b.Field
}

func TestF1(t *testing.T) {
	if F1(nil, nil) {
		t.Fatalf("f1 should not accept nil, nil")
	}
}```

Similar experience here for this code block where short circuiting will prevent accessing a field of a nil item.
func (r *Room) getInfoAboutRoom() {
    hasField := r.Obj != nil && r.Obj.Field != nil
    ...

It also is giving false positives for short circuiting slice indexing behind a length check which is very common and convenient operation because it returns 0 for both nil slices as well as non-nil empty slices meaning only a single check is necessary to cover both cases.
Here is a simple program to reproduce the false positive:
package main

import "fmt"

func isFirstByteZero(s []byte) bool {
        return len(s) > 0 && s[0] == 0
}

func main() {
        fmt.Println(isFirstByteZero(nil))
}

$ nilaway ./...
nilawayfp\main.go:6:23: error: Potential nil panic detected. Observed nil flow from source to dereference point:
        -> nilawayfp\main.go:10:30: literal `nil` passed as arg `s` to `isFirstByteZero()`
        -> nilawayfp\main.go:6:23: function parameter `s` sliced into


OGC/Web service harvesting

Hello,
When I am trying to access the OGC harvesting function from menu (see screenshot) I am redirected on URL : http://ubisi54:8080/oss/#
What should be the proper URL for this function ? Do you have an idea why it doesn't work ?

Which version of OpenSensorSearch do you use?

The new harvesting functionality will be deprecated in future versions, see #49


Update http4s-blaze-client, http4s-circe to 0.20.13

Updates

org.http4s:http4s-blaze-client
org.http4s:http4s-circe

from 0.20.12 to 0.20.13.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: semver-patch

0.20.14 is imminent.


achurchard/style fixes

Style fixes to conform with azdev style.
Work item 810679
Manual testing done by running some CLI commands.

setup.md, which is aimed at developers, already has a section on running azdev style and azdev linter. I've added a note that black is a useful tool for resolving these problems, but I don't have much beyond that.


Can't open existing world

not sure if its this mod or another, crash log had lots of names for this mod so I brought it to you http://pastebin.com/8iwYP2mP

Should be fixed in commit 2c7085aa332da4178eafc0f30f9477ac452afd92

This has been confirmed as not fixed, still looking into the root again.

Fixed in 24a2f504c3dc35e596839a8d7a2d14633cb5ad05


Error when try to stream

After insert a image and set the option 'end_at' and try to_stream in the excel object i get this error.
undefined method `to_xml_string' for nil:NilClass

Bump.  Also seeing this error even without using end_at.


[#46] Finding the latest version

add more Javadoc to VersionMatcher.

Signed-off-by: Jeff Mesnil<EMAIL_ADDRESS>This fixes #46

@vsalbaba could you please review?


Cannot save values to a profile

Describe the bug
When sending a POST /api/{domainType}/{id}/profile/{namespace}/{name} request to save profile values, the response returned clears all values submitted and loses information. However, a 200 OK status is returned suggesting something went right.
First noticed this when testing the DOI profile, however it is not just related to that as I can replicate with another profile.
To Reproduce
From the UI:

Select any model that is editable.
In the "Description" tab, click the dropdown menu to select "Add new profile"
Enter any values into your chosen profile, then save.
In the browser network tab, view the request/response for the profile POST.

Expected behavior
The values submitted should have been saved and returned back to the client application. Reloading that item should also reload the data submitted.
Screenshots
This screen shows the POST request and data sent for a "Profile Specification Profile":

This screen shows the response to that POST - notice how the currentValues are lost:

Here is the same issue with a DOI profile:

This is probably more how the return body is built … as we know the values are saved due to tests, if you perform a “get” the data is in the profile. I don’t think our existing tests check the body of the response after the post

I tested this in Postman sending the manual profile requests, but could not replicate it. So my original idea of it not working on the backend was false. However, after experimenting with the frontend and reviewing changes on the ProfileController recently made, I think I now know what went wrong.
Commit 43010b1c0d6cbdca2c72523d83dc6ce8ff673a30 shows changes made to the ProfileController, showing that how the profile instance is bound from the request has changed slightly - by first creating a blank profile instance, then bindData() using the request object.
What I found in the UI though was this code:
const data = JSON.stringify(result.profile);
return this.resources.profile.saveProfile(
  this.catalogueItem.domainType,
  this.catalogueItem.id,
  selected.namespace,
  selected.name,
  data);

The data request payload was a JavaScript object but was stringified into a string for some reason (the mdm-resources function parameter says it should be a string, but that seems wrong). My guess is that because a string was provided and not a raw JSON object, this interfered with the binding in the ProfileController.
By changing the UI to always send a JSON object like this:
const data = JSON.parse(JSON.stringify(result.profile));

The request is valid and ProfileController correctly binds the data submitted.

@pjmonks as an FYI the original code in the controller did the same thing as I updated it to do, except it manually worked thru the Json body rather than using the inbuilt grails code to do the same thing. I did however notice that the original code wouldn’t actual map certain things due to an invalid casting. Which is one of the reasons I updated it. Therefore there should have been no difference between the operations before and after.
This is because both methods essentially turned the Json sent into a jsonObject (map or array)

I have resolved the issue in MauroDataMapper/mdm-ui#272, so this issue can be closed now.


Problem about the ruby rule

Hi,I am using your ruby-sonar-plugin recently.It works well but having no rules to find the issues.Do you have some ruby rules or could you have some ways to get some?

It should be calculating complexity... in Sonar, you can see the settings "Type of complexity, Saikuro or Cane".  #4 adds support for code duplication, Roodi, Reek, Cane violations... but it's having merge issues :(  You can take a look at the PR to see what was done. Unfortunately, the logic was done against an older version of Sonar (3.7.4) and the API has changed since we accepted #5 (which uses Sonar 4.5.2).

Is it possible to have rules defined as in rubocop or rubycritic? I am not much in to coverage but with coding standard rules. Any tip to do that with sonar?


test: test cases

Makefile changes to show test coverage of all files which are missing test file too
update readme
refactor/remove unnecessary code
test cases

Coverage report
 Click to see coverage of changed files
FileStatementsMissingCoverageCoverage(new stmts)Lines missing

  codecov
  github.py
  github_client.py
  settings.py
  template.py

Project Total

This report was generated by [CI-codecov]


Add support for ContentFragment in conversation

ContentFragments are pieces of content injected in the conversation context.
They will be used to:

inject a document in context
inject an opened tab the day we have refactor the extension
inject the context of a slack thread when working with the slack bot

This will likely be a new action on the conversation, something like postNewContentFragment

ContentFragments will be stored as messages (a new 3d type of message)


Added support for chef-provisioning 1.0

Also addresses

chef/chef-provisioning-docker#24
chef/chef-provisioning-docker#37
chef/chef-provisioning-docker#27
chef/chef-provisioning-docker#46

I used this as an opportunity to write https://github.com/chef/chef-provisioning-docker/pull/51, and while the latter doesn't cover everything here, I feel pretty good about it.
:+1:

This looks good to me (other than a few minor comments).  Because I'm so unfamiliar with Docker I am interested in adding good testing to make sure this works.  But that won't be a blocker to getting this merged!

Absent any unanswered concerns, I'll merge this in about an hour.

@randomcamel will you close the 4 related issues listed at the top of this?


Switch tab while inside terminal

I just noticed that I can not switch between tabs while in the terminal using keystrokes. ctrl+tab does not work and I am not aware of any other to change tabs. The terminal seems to swallow every and all keystrokes that it obtains.

Indeed. I am guessing the author(s) of this plugin are not using it all the times like some of us are.
@webBoxio/owners are you open to open this package to new contributors ?

poke @vigo @f @tjmehta

yes we are very open for help! please help us out to fix this. fork/pr and i'll merge + release asap. lets fix this all together!

Good to know ! Thanks for the fast reply :)
I try when I get some times to fix some issues that annoy me :)

that would be super kool @MoOx

any news here?

Duplicate of #6


[omnibus] Change pgsql's local service user and db superuser to not be hardcoded

If a user changes the postgres username or superuser in their server configuration they are never able to complete a reconfigure because those values are hard coded in the changed check.

http://wilson.ci.chef.co/job/chef-server-12-trigger-ad_hoc/99/

@andy-dufour Rebase and we can merge this

@andy-dufour Rebase and we can merge

Rebased and pushed.


"Failed to set variable: (2) Invalid Parameter" when enrolling MOK

I'm unsure if this is a bug in shim, mokutil, or user error.  I also filed a bug against mokutil here: https://bugs.launchpad.net/ubuntu/+source/mokutil/+bug/1600452
Feel free to close the issue if you can determine that it's not related to Shim (although any hints on what might be causing it would be appreciated!)
Testing Environment:
Lenovo Thinkpad P50, fresh install of Ubuntu 16.04 64bit
$ apt-cache policy mokutil
mokutil:
  Installed: 0.3.0-0ubuntu3
  Candidate: 0.3.0-0ubuntu3
  Version table:
 *** 0.3.0-0ubuntu3 500
        500 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
$ apt-cache policy shim
shim:
  Installed: 0.8-0ubuntu2
  Candidate: 0.8-0ubuntu2
  Version table:
 *** 0.8-0ubuntu2 500
        500 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

Steps to reproduce:
(1) do not disable SecureBoot as suggested during the install.
(2) install virtualbox-5.0 from the virtualbox ppa (deb http://download.virtualbox.org/virtualbox/debian xenial contrib)
(3) Follow instructions here to manually sign the vboxdrv kernel module (https://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04-and-i-want-to-keep-secur/768310#768310)
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"
$ sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
$ sudo mokutil --import MOK.der

(enter password)
(4) reboot, click "enroll mok", "continue", "yes", enter password, (screenshots here: https://sourceware.org/systemtap/wiki/SecureBoot)
Expected behavior:
new mok will be enrolled and I will be asked to reboot (several users from the original askubuntu answer indicated that these exact steps worked for them.
Actual behaviour:
"Error: Failed to set variable: (2) Invalid Parameter"
Troubleshooting steps taken:

tried different passwords, and was able to eliminate that being the cause.
found relevant lines of code producing the error: lines 919-931 in https://github.com/rhinstaller/shim/blob/master/MokManager.c

  efi_status = uefi_call_wrapper(RT->SetVariable, 5, db_name,
            &shim_lock_guid,
            EFI_VARIABLE_NON_VOLATILE
            | EFI_VARIABLE_BOOTSERVICE_ACCESS
            | EFI_VARIABLE_APPEND_WRITE,
            MokNewSize, MokNew);
 }

 if (efi_status != EFI_SUCCESS) {
  console_error(L"Failed to set variable", efi_status);
  return efi_status;
}

unable to find where uefi_call_wrapper() is defined

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mokutil 0.3.0-0ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Jul 9 18:56:59 2016
InstallationDate: Installed on 2016-07-08 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: mokutil
UpgradeStatus: No upgrade log present (probably fresh install)

This also just happened to me right now - Thinkpad X260. Not with VirtualBox, but tp_smapi-dkms. Same versions of mokutil and shim.

In the UEFI Plugfest Taipei this year, I found that Lenovo server firmware didn't support EFI_VARIABLE_APPEND_WRITE although it's already in the UEFI SPEC for years, and their server showed the same issue as you reported. From what I know, their firmware team is still working on that, so I won't be surprised if their laptop firmware had the same problem.

Thanks for the feedback/hypothesis.  Maybe I'll try filing a bug-report with Lenovo and see if I can get any information from them.  Is there any way to verify that this is the problem?

You can write a simple EFI app to write a variable with EFI_VARIABLE_APPEND_WRITE.
The example application in gnu-efi is a good start:
https://sourceforge.net/p/gnu-efi/code/ci/master/tree/apps/t2.c
Invoke RT->SetVariable with an arbitrary GUID, variable name and an one bytes variable, and then print the returned status with Print(L"Return %r", status). In the UEFI with the problem, you will get "Invalid Parameter" while the application will work fine in other UEFI application.
PS. Remember to remove the variable if it writes successfully.

I can confirm this behaviour on a Thinkpad X1 Carbon just now.

I also confirm the issue on the Thinpad X1 Carbon

Okay, I'll try to review the EFI documentation and create a test app as you suggest.  Once we have some more formal evidence that this is the problem we can all start filing bug reports with Lenovo.  Unfortunately, given my work schedule, I probably won't have time to dive into the EFI documentation for another couple weeks.  If any of the other Thinkpad users want to take a crack at it beforehand, please by all means go for it.

I can also confirm the issue on the Thinpad T460s.

Hi, @lcp, could you give me an example snippet of code of the call you're describing?
I'll try to compile and execute it here in my test machine.
Regards

Here is the code:
https://github.com/lcp/uefi-fun/tree/master/WriteAppend
You will need at least make, gcc, and gnu-efi to compile the code. If crt0-efi-x86_64.o is not in /usr/lib64, you can specify the EFI_PATH to change the path. For example, type "make EFI_PATH=/usr/lib64/gnuefi" if crt0-efi-x86_64.o is in /usr/lib64/gnuefi.

Thank you @lcp , I'll try to execute it and get back with results.

Hello @lcp,
I've succesfully compiled and executed your example, and given the output I can confirm the Lenovo firmware doesn't support the EFI_VARIABLE_APPEND_WRITE flag.
I've used the gnu-efi library from Ubuntu 16.04 for compilation, and following the instructions here [1], I've installed the EFI shell executable from Tiano Core site [2]. Also, I had to disable Secure Boot (because the shell is not signed, I suppose); I think this does not affect the result of the program, right?
I've uploaded a couple of photos [3], one of the error itself, and another one of the BIOS & hardware version (the BIOS is 1.13, the latest one as of today [4]).
[1] http://www.rodsbooks.com/efi-programming/hello.html
[2] https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
[3] http://imgur.com/a/9eRHe
[4] http://support.lenovo.com/ar/es/products/Laptops-and-netbooks/ThinkPad-T-Series-laptops/ThinkPad-T460s?beta=false
Thank you

Yep, Secure Boot doesn't matter in this case. Thanks for your confirmation. I guess Lenovo won't support it in the short term. We probably have to patch MokManager to make it compatible with Lenovo machines...

Just sent a pull request to fix the issue.
https://github.com/rhinstaller/shim/pull/60

Since I don't have any Lenovo machine with UEFI, I will appreciate anyone who can help to verify the patch.
The steps:

disable Secure Boot
replace MokManager.efi in the system (remember to back up the file)
enroll an arbitrary key and check the key with "mokutil -l"

Hello @lcp, it worked!
It took me a while to figure out how to build shim (there are a couple of different paths in Ubuntu), but with the new MokManager I enrolled a new key without problems, and now I can load signed virtualbox modules with SB enabled.
Is there anything else I can do?
Regards

In other news, I wanted to test the new Lenovo's BIOS version, 1.14 [1], just to make sure the bug isn't already fixed:
[1] http://support.lenovo.com/ar/es/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t460s/downloads/DS112118

@marcelofernandez I'm guessing that BIOS update is just fixing the massive Thinkpad security vulnerability discovered at the beginning of the month (http://www.digitaltrends.com/computing/lenovo-security-vulnerability/).  I can probably figure it out myself (I suspect the main changes are just that the gnu-efi libraries are in /usr/lib) but would you mind sharing what paths you needed to change for Ubuntu if you happen to be online at the moment?
@lcp Wow, thank you! I'm really impressed with how responsive you were to this issue and how rapidly you came up with a fix.  If you ever find your way to Shanghai I owe you a drink and/or meal for sure!

@adempewolff, ok, that sounds correct, but I'll update anyway.
This is the output of "git diff" in a working-state shim directory in Ubuntu 16.04 as of today:
marcelo@marcelo-notebook:~/src/shim$ git diff
diff --git a/Makefile b/Makefile
index 640ecf2..158e7e6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,17 @@ LD            = $(CROSS_COMPILE)ld
 OBJCOPY                = $(CROSS_COMPILE)objcopy

 ARCH           = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,)
-OBJCOPY_GTE224  = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.version //g' | cut -f1-2 -d.` \>= 2.24)
+OBJCOPY_GTE224  = 1
+#OBJCOPY_GTE224  = /usr/bin/objcopy

 SUBDIRS                = Cryptlib lib

-LIB_PATH       = /usr/lib64
+LIB_PATH       = /usr/lib

 EFI_INCLUDE    := /usr/include/efi
 EFI_INCLUDES   = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I$(shell pwd)/include
-EFI_PATH       := /usr/lib64/gnuefi
+#EFI_PATH      := /usr/lib64/gnuefi
+EFI_PATH       := /usr/lib

 LIB_GCC                = $(shell $(CC) -print-libgcc-file-name)
 EFI_LIBS       = -lefi -lgnuefi --start-group Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a --end-group $(LIB_GCC)
diff --git a/shim.c b/shim.c
index ed01899..4845f3f 100644
--- a/shim.c
+++ b/shim.c
@@ -1118,7 +1118,7 @@ static EFI_STATUS handle_image (void *data, unsigned int datasize,
        EFI_STATUS efi_status;
        char *buffer;
        int i;
-       unsigned int size;
+       //unsigned int size;
        EFI_IMAGE_SECTION_HEADER *Section;
        char *base, *end;
        PE_COFF_LOADER_IMAGE_CONTEXT context;

The changes are:

Regex failing despite Ubuntu 16.04 has objcopy 2.26.1, but I didn't want to fix that.
Lib paths, as you suggested.
An unused variable giving a fatal error, so I commented that one.

Regards

Thanks, will test tonight provided the great firewall stops killing my connection to github and my clone can complete...

@lcp It worked for me too.  New key was enrolled successfully and I can see it with mokutils -l

Confirmed: Lenovo T460p with Fedora 24. Bug is still present in newest BIOS 2.08 published on 2016-07-21.

I forgot to mention that there are two pending patches needed to build against git HEAD:
https://github.com/rhinstaller/shim/pull/53
https://github.com/rhinstaller/shim/pull/56
But you guys made it anyway :-p
@adempewolff MokManager.efi.signed is equivalent to MokManager.efi except the signature from the auto-generated key.
Thank you all for the verification :-D
@vathpela Could you help to check in the patch?

Hello lcp,
I  just found this thread after having the issue with my new Thinkpad T460 on Fedora 24.
I successfully applied your patch, and it worked flawlessly.
I hope it will reach distributions soon.
Thank you very much !

Confirmed this bug on a X1 Carbon (20FB) with latest BIOS 1.17. Will try the fix later.

Confirmed with Lenovo Yoga 260 and BIOS 1.47.

So as I see it everything for this is merged?  I'm going to go ahead and close this issue now.  If I've misunderstood, please re-open with a brief summary of whatever I've missed.

I can confirm the error with my Thinkpad T460p. I tried to compile shim but I never came that far to get a file calle MokManager.efi. I only get a MokManager.o, then the compilation with 'make' stops with:
pesign -n certdb -i fbx64.efi -c "shim" -s -o fbx64.efi.signed -f
rm fbx64.efi mmx64.efi

I really don't get how I can get the needed file ... Searching for an answer for 2 hours didn't help.
Is there someone with an Lenovo Thinkpad who got the issue fixed and can provide his MokManager.efi?


add Spectrogram

Purpose:

apped signal power spectrogram
If this PR references an issue be sure to link to it
Consider including a picture if it would help clarify what this pull request does
New contributors please review CONTRIBUTING.md in the root folder

//create
var data = new SpectrogramData(dataHeigth, dataWidth, -70, moveOrientation, moveMode);
var specPlot = formsPlot1.Plot.AddSpectrogram(data, ScottPlot.Drawing.Colormap.Turbo);
formsPlot1.Plot.AddColorbar(specPlot);

//update
double[] values = new double[512];
data.Append(values);
specPlot.Update();
formsPlot1.Render();

add signal power spectrogram

Hi @yfzhn, thanks for this PR! Do you have a sample data file I can use to test the demo? I tried a 16-bit stereo WAV file but that did not work. Is this supposed to be used with a different file type?

This PR creates spectrograms using Math.NET Numerics, but it's worth noting that I also have simple FFT and Spectrogram libraries that perform this task without such a heavy dependency

https://github.com/swharden/FftSharp

https://github.com/swharden/Spectrogram

Hello, it's not easy to email you with attachments.
I choose ScottPlot in the project, I like the design concept, easy expansion. About submitting the "Spectrogram" code, I think so that the existing "Heatmap" can be implemented, but it is more troublesome to update dynamically, and from the perspective of the implementation code, it is more suitable for static graphs, which does not have enough performance as a dynamic graph. In the "Spectrogram" code, I turned the 2-D array into a 1-D array to operate, and I worked in parallel to improve performance with the least data per modification.
"Math.NET Numerics" is used because the "Math.NET Numerics" library is abundant and more authoritative in the signal processing projects. But it doesn't matter, it's just a demonstration "Spectrogram", no requirement for data correctness. Attattachment are separate independent able code and executable programs.
appendix
https://wx.mail.qq.com/ftn/download?func=3&key=ca9d423388e60e68f8ee1d336665666387be293364656663104d0404010654510d571e52025c564e01535607495d0400024f065107550301055b010751574663661256501017090447035e6c330c08075a1540750b170b10741243024a1f0f1321776756f88f6f4970cd3d573e6e06964a9b24c18f&code=5b33defc&k=ca9d423388e60e68f8ee1d336665666387be293364656663104d0404010654510d571e52025c564e01535607495d0400024f065107550301055b010751574663661256501017090447035e6c330c08075a1540750b170b10741243024a1f0f1321776756f88f6f4970cd3d573e6e06964a9b24c18f&fweb=1&cl=1
gif picture
https://wx.mail.qq.com/ftn/download?func=3&key=ca9c4466d9e15f3ef8ef1a663762373513c8406735623735104c0002035701570c061957070007180100060418000307534e525f565605010c54525604542835620a5a025a1544735a115915741247046a55780e7d36784454137f48520b5121bf34c27e4abaee2e0748620dae8915288e455e92&code=5c4f5b75&k=ca9c4466d9e15f3ef8ef1a663762373513c8406735623735104c0002035701570c061957070007180100060418000307534e525f565605010c54525604542835620a5a025a1544735a115915741247046a55780e7d36784454137f48520b5121bf34c27e4abaee2e0748620dae8915288e455e92&fweb=1&cl=1
张海能
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "ScottPlot/ScottPlot"                                                                                @.>;
发送时间: 2022年11月13日(星期天) 晚上10:34
@.>;
<EMAIL_ADDRESS>主题: Re: [ScottPlot/ScottPlot] add Spectrogram (PR #2259)
Hi @yfzhn, thanks for this PR! Do you have a sample data file I can use to test the demo? I tried a 16-bit stereo WAV file but that did not work. Is this supposed to be used with a different file type?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

I'll close this issue for now, but track development of a Spectrogram plot type in #2304


Create a new folder in these repository and put all the files and folder in that

Create a new folder in these repository and put all the files and folder in that
want to add all files and folder to a new folder "ReactJS_Tutorial" #1

Done


Adding ListEntries and DeleteLogger commands

@bshaffer Please take a look.
@SurferJeffAtGoogle FYI

@bshaffer Thanks PTAL

LGTM!


Don't generate empty toc

Would it be possible not to display the table of contents when it's empty?
Example:

https://momo.morph.ist/out/8dd57e35-e4cf-4514-a122-71bc050bb72f.md
https://momo.morph.ist/out/8dd57e35-e4cf-4514-a122-71bc050bb72f.tex
https://momo.morph.ist/out/8dd57e35-e4cf-4514-a122-71bc050bb72f.pdf

If it's not possible latex-side, we'll add the heading count to the metadata passed to the latex template to simply not print \tableofcontents to the latex file.

There is a package here to explore. Otherwise, we will have to store something to the .aux, but it is possible to manually count :)

It seems to produce weird PDFs, I wouldn't use it.

This issue it is fixed zmd side.

Perfect :)