Update Composer dependencies (2021-01-15-00-13)

Visual regression test failed!

Visual regression test failed!


Chrome Autocomplete does not behave as expected when an input mask is applied

Hi @RobinHerbots
TLDR;
Input fields with an autocomplete attribute will be modified whenever autofill is used if an inputmask is applied.
Expected behaviour is once a field with autocomplete contains data, it does not get modified by autofill.
Scenario:
I have three fields.
<input type="text" id="full_name" class="form-control" placeholder="John Snow" autocomplete="name" >
<input type="tel" id="mobile" class="form-control" placeholder="04XX XXX XXX" autocomplete="tel" >
<input type="text" id="street_address" class="form-control" placeholder="1 Somewhere Street" autocomplete="street-address" >

Normally in a browser with autofill enabled, clicking on any of the fields will pop up the autofill selection.  I select one of the details and the form gets filled with those details.
If I then click on one of the other fields, the autofill popup is displayed again.  When I select one of the details, only the field I am on gets updated, because the other fields already have content.
When I add an input mask to the mobile number:
$("#mobile").inputmask({mask: "9999 999 999", placeholder: "04XX XXX XXX"});

The behaviour is the same for an empty form.
Once the form contains details, if I click on a field that has autocomplete and select any autofill option, it will modify any field containing an autocomplete attribute that has the inputmask applied, even if the field contains manually entered information
In this image I have manually entered a mobile number and have clicked on the address to change address

I selected a different address, and you will see the mobile number has been changed

Here is the demonstration:
https://codepen.io/michaelphipps/pen/XWdZBgv
When you open that pen, the inputmask is initially commented out in the javascript window to show the normal behaviour.  Uncomment to see how inputmask modifies fields that contain data when an option is selected from the autofill popup

OS: Ubuntu 20.04
Browser Google Chrome Version 84.0.4147.135 (Official Build) (64-bit)
Inputmask version 5.0.5

@RobinHerbots any comments on this please?

@RobinHerbots any comments on this please?

I 've just read and tried your issue and you are correct.  I will try to
Fix this asap.
Op wo 13 jan. 2021 12:20 schreef sKopheK<EMAIL_ADDRESS>
@RobinHerbots https://github.com/RobinHerbots any comments on this
please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobinHerbots/Inputmask/issues/2388#issuecomment-759384067,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACNX36HCFMF3EPAU4BRCLLSZV6YXANCNFSM4RA733PQ
.

It's still happening.... 2023...


Sugar ORM create tables but do not save data

Sugar ORM is creating my model tables, and when the .save() method is called it shows in log that object was saved.
The problem is that when i try to get the objects (over listAll, findAll and findwithQuery) i did not receive any object. So, its not being saved.
Im using sugar orm with wasp lib, and GSON lib.

Same issue here. But the data did save. I used sqlitestudio to inspect the data. It's there. But usding listAll, findAll can't get the results. Always return empty list.

Same yuluyi issue.I can see the table populated but when I try to retrieve data by listAll/findAll,find I always get empty list

Are you setting your own id?
It's what happened to me, on logcat appears as saved but then listAll() size is 0.
Issue #171 talks about this.

@witalobenicio, it was happening the same thing with me. I was not matching all the fields in my POJO with sugarORM table I was created. As @galaxyfeeder  mentioned about ids... sugarORM creates an ID and I was also getting an ID from my JSON (btw, I am also using GSON) and It was kinda overriding my ID itself. I've created another field called idBackEnd or something like this.
1)Look your entire model class and check if all the fields you are receiving from your json matches
2)Change the ".db" in your AndroidManifest, just to test.
Hope you can get it working.

I set my own ids and the table get populated.The problem is that some fields are lists of objects and they cannot be retrieve because I found it sugarORM doesn't support List.
What I don't understand is what happen wheb lists get received, are they converted in array or in String like this :[1,2,3,4,5,6]?

i have built an app .. Sugar creates every table for which i extend sugarrecord except one class . I dont know whats the issue .. uninstalled it many times . There's an empty constructor in it also .

Confirmed. Sugar 1.3.1, 1.3 and 1.2 do not insert new entries on an empty table when save() is called after setId(). Only with id = null, entries are inserted.

the issue was empty constructor needs to be public !! That was my mistake

Love you 029vaibhav


[DEFECT]  intermittent failure observed in LSS

Defect Description
related issues: #1170 and #1107
close #1170 and #1107
Describe the defect
Intermittent failure on master and linux.
(159/710) Diff ( 10.93sec)tests/framework/PostProcessors/LimitSurface/testLimitSurfacePostProcessor
What did you expect to see happen?
All test should pass
What did you see instead?
(159/710) Diff ( 10.93sec)tests/framework/PostProcessors/LimitSurface/testLimitSurfacePostProcessor
Do you have a suggested fix for the development team?
Describe how to Reproduce
Steps to reproduce the behavior:
1.
2.
3.
4.
Screenshots and Input Files
Please attach the input file(s) that generate this error.  The simpler the input, the faster we can find the issue.
Platform (please complete the following information):

OS: [e.g. iOS]
Version: [e.g. 22]
Dependencies Installation: [CONDA or PIP]

For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.

[x] 1. Is it tagged with a type: defect or task?
[x] 2. Is it tagged with a priority: critical, normal or minor?
[x] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
[x] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[x] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[ ] 1. If the issue is a defect, is the defect fixed?
[ ] 2. If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] 4. If the issue is a defect, does it impact the latest release branch? If yes, is there any issue tagged with release (create if needed)?
[ ] 5. If the issue is being closed without a pull request, has an explanation of why it is being closed been provided?

This also happed in PR #1213, check the pr for details.


fix openapi generation for swagger ui to 3.0.2 for compatibility

Not quite sure why this suddenly broke, but this seems to fix it

Yeah fair point, I was tossing up whether to upgrade the swagger UI, it's a major version upgrade so could break things but I'll give it a shot

@illusional I had a crack at updating to the new swagger ui react to support openapi def 3.1.0, but it is a bit of a rabbit hole, v5 of swagger UI requires v9 of react-redux which requires v18 of react, and upgrading to v18 of react requires updating most of our component libraries, I'm not even sure all of them will support react 18. I think it'd be good to get temporary fix out and look at upgrading react separately.


Option to require stronger passwords

We should considering adding an option to allow developers to set the password strength and have the client and server test for this. A good option would be to follow OWASP password length & complexity. This could leverage libs such as:
https://www.npmjs.com/package/owasp-password-strength-test

I vote for not making this an option but rather part of the framework.
I like it that we're making sure the framework is following secure guidelines and so we should adopt it.
@jloveland care to PR it?

sure, I will work it this week.

On Aug 24, 2015, at 11:16 AM, Liran Tal<EMAIL_ADDRESS>wrote:
I vote for not making this an option but rather part of the framework.
I like it that we're making sure the framework is following secure guidelines and so we should adopt it.
@jloveland care to PR it?
—
Reply to this email directly or view it on GitHub.

:+1:

:+1:

:+1:

Just and update on this: I got the server side working and accompanying unit tests this weekend. I am now working in the client side.

On Aug 25, 2015, at 3:16 AM, Nacho García Fernández<EMAIL_ADDRESS>wrote:
—
Reply to this email directly or view it on GitHub.

Nice!

@lirantal assuming you can close this issue.

Great, thanks, I updated the milestone too.

@lirantal Any reason in particular we're keeping this open?

you can close this issue..resolved in #878


Debug TestHostinfoData. Avoid unformatted json errors (Flaky 4)

…ests

moved to one branch & multiple commits: https://github.com/newrelic/infrastructure-agent/pull/937


Extraction dimension and functions

Added Extraction dimension.
Previous Dimension class was renamed to DefaultDimension, but is still accessible via Dimension.apply, so code Dimension("dim") is valid.
Added all extraction functions
except "searchQuery", "lookup" and "registeredLookup": these are tightly coupled with respective query types, and I decided not to implement them in this PR.

Extraction fucntions are in its separate file for two reasons:

It is a big piece of code to place it inside Dimension.scala.
Some of the functions could be used in Filters, so these functions could be a common thing for different parts of the project. (Marker traits could be used for distinction, or smth like that)

logback-test.xml was added to get rid of huge amount of logs while tests are running.

@Fokko, Hi
Can you look at circle failed build? Something is wrong with it rather than with code. I'll appreciate your help very much.

Hi @vkorchik, thanks for reaching out. Appreciate the contributions you're doing to Scruid, together we'll make an awesome product! The problem is in the Codacy token. This one is not available for pull-requests since it would a security breach. Evil people could then extract the token and make mis-use of it. I've disabled codacy on PR's, which is fine I guess. If you rebase onto master, the tests should pass. Cheers!

hi @Fokko , thank you for quick response!
What do you mean by "rebase on master"? You mean to create the same branch in the original repo (ing-bank/scruid), i.e. not in my fork, and create PR then?

Rebasing on master means that you need to pull the current master in your own branch. You can do this from your fork, but you need to add the ing-bank repo as a separate remote.

Oh, I'm sorry, I've missed your commit today in the morning, and thought "but I am on master!". Ok, will be done in a minute :smile:

Thanks for the contribution, looking good. Would be nice to squash the commits though.

@bjgbeelen, done. Thank you for note.


Mashable support

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2<IP_ADDRESS>. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2<IP_ADDRESS>

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Site support request (request for adding support for a new site)

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
youtube-dl -v http://mashable.com/2016/11/03/portable-projector-monitor-smartphone/#V23YOtG9ykqi
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://mashable.com/2016/11/03/portable-projector-monitor-smartphone/#V23YOtG9ykqi']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.12 - Linux-4.4.0-45-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.8-0ubuntu<IP_ADDRESS>, ffprobe 2.8.8-0ubuntu<IP_ADDRESS>, rtmpdump 2.4
[debug] Proxy map: {}
[generic] #V23YOtG9ykqi: Requesting header
WARNING: Falling back on generic information extractor.
[generic] #V23YOtG9ykqi: Downloading webpage
[generic] #V23YOtG9ykqi: Extracting information
ERROR: Unsupported URL: http://mashable.com/2016/11/03/portable-projector-monitor-smartphone/#V23YOtG9ykqi
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 1636, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 2525, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 2514, in _XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 18, column 96
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 357, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 2433, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://mashable.com/2016/11/03/portable-projector-monitor-smartphone/#V23YOtG9ykqi

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: http://mashable.com/2016/05/10/amazon-smart-home-universe/?utm_cid=mash-prod-nav-sub-st
Single video: http://mashable.com/2016/11/03/portable-projector-monitor-smartphone/#V23YOtG9ykqi

To developers: seems they use Brightcove before (#1697) while now they turned to JWPlatform.


Migrate sources to Tonel format

Coverage decreased (-100.0%) to 0.0% when pulling d8518ed1bc357962465d5b3c8c80c898a486d5ac on tonel-migration into 8f745b9e011923ccad071bce3925bd8b08dde196 on master.

Don't merge it until the coveralls support for Tonel is fixed.


Changed shell to zsh and autocomplete doesn't trigger

Describe the bug
Switched default shell to zsh and tab autocomplete doesn't work
To Reproduce

Install Azure CLI under Bash via apt.
Install zsh sudo apt install zsh
Launch zsh shell zsh
Type command az group show -n Foo where Foo is the start of a resource group name, and hit tab

Expected behavior
After a pause the resource group name should autocomplete, but with zsh nothing happens
Environment summary
WSL with apt on Windows 10 1803
Additional context
None

Note. When I launch a bash shell the auto-complete still works.
Is there something I need to copy from my .bashrc into my .zshrc for this to work?

I am facing the exact issue, works on bash but not on zsh.It would we really cool to fix this for zsh.

I've reinstalled the CLI under zsh and it still doesn't work. It's really annoying that bash is the only shell where autocomplete works

Any update?
zsh is hardly obscure, it's used by everyone

Its working for me with  azure-cli version 2.0.70


[MetaSchedule] Developer Ergonomics Enhancement II

Follow-up of #11622, per discussion with @Kathryn-cat

[x] Allow using a string "default" in TuneContext to quickly specify a set of target-specific
rules
[x] Enhance detection of ScheduleFn in TuneContext to make it easier for users to quickly try
out template-driven scheduling on TIR.

Next PR:

Add TuneContext.tune to allow directly tuning without task scheduler.

@Kathryn-cat comments addressed! would love to have another round of review :-)  thanks!

LGTM!

Thanks for reviewing!


PROCESS_BASIC_INFORMATION incorrectly generated?

Actual behavior
Declaring an instance of the struct PROCESS_BASIC_INFORMATION and passing it to NtQueryInformationProcess results in either a read/write memory error or incorrect values ending up in the struct.  The issue seems to be the PEB[] PebBaseAddress declaration.
While the struct has the correct sizeof compared to  when it is read from memory even the unrelated struct fields (like UniqueProcessId) have the wrong values when passed to ntqueryinformationprocess.   I was confused that VS internal seemed to use the call without issue, but then realized they are actually declaring their own instance of the class: https://github.com/microsoft/vs-extension-testing/blob/b78ac2a63a471cc0a56b45af0a1d7b2473288202/src/Microsoft.VisualStudio.Extensibility.Testing.Xunit.Shared/Harness/VisualStudioInstance.cs#L273-L281
Here is the generated version
internal partial struct PROCESS_BASIC_INFORMATION
		{
			internal winmdroot.Foundation.NTSTATUS ExitStatus;
			internal winmdroot.System.Threading.PEB[] PebBaseAddress;
			internal nuint AffinityMask;
			internal int BasePriority;
			internal nuint UniqueProcessId;
			internal nuint InheritedFromUniqueProcessId;
		}

changing winmdroot.System.Threading.PEB[] to IntPtr fixes it.
Expected behavior
Calling NtQueryInformationProcess with it to not throw an exception and have the right data values.
Repro steps

NativeMethods.txt content:

NtQueryInformationProcess

Any of your own code that should be shared?

nuint nreturnLength = 0;
PROCESS_BASIC_INFORMATION pbi = default;
PInvoke.NtQueryInformationProcess(handle, PROCESSINFOCLASS.ProcessBasicInformation, &pbi, (uint)Marshal.SizeOf<PROCESS_BASIC_INFORMATION>(), ref returnLength);

Context

CsWin32 version: [e.g. 0.4.422-beta]
Win32Metadata version (if explicitly set by project):
Target Framework: [e.g. netstandard2.0]
LangVersion (if explicitly set by project): [e.g. 9]

Thanks for this report. But I'm struggling to get your example to compile. You take a pointer to PROCESS_BASIC_INFORMATION but C# won't let you do that because it is a managed type (due to the array field). If I change NativeMethods.json to disallow marshaling, that allows the pointer you declared to work, but that also converts the array to a pointer, which would resolve your problem.

Oh, I guess that CS8500 is just a warning. But it is an apt warning. It's telling you this won't work. :) You can't take a pointer to a managed type and expect it to behave.
So the workaround would be setting allowMarshaling to false in the NativeMethods.json file as I mentioned above.
Or I think you can use Marshal.StructureToPtr to get .NET to do its marshaling thing on the array first so you can then pass your pointer into NtQueryInformationProcess.

Sorry it was a quick example from the vs code but below is a complete one.   Although it sounds like you did have it working.
NativeMethods.txt:
NtQueryInformationProcess
OpenProcess
PROCESS_BASIC_INFORMATION

Program.cs:
using System;
using Microsoft.Win32.SafeHandles;
using Windows.Win32;
using Windows.Win32.System.Threading;
using Marshal = System.Runtime.InteropServices.Marshal;
namespace NtQueryInformationProcess {
	internal class Program {
		unsafe static void Main(string[] args) {
			uint processId = 29120;
			var handle = PInvoke.OpenProcess_SafeHandle(PROCESS_ACCESS_RIGHTS.PROCESS_QUERY_INFORMATION | PROCESS_ACCESS_RIGHTS.PROCESS_VM_READ, false, processId);
			TEST_PROCESS_BASIC_INFORMATION pbi=default;
			PROCESS_BASIC_INFORMATION pbiOfficial=default;
			PROCESS_BASIC_INFORMATION *pbiOfficial2;
			TEST_PROCESS_BASIC_INFORMATION* pbi2;

			TryFetch(processId, handle, &pbi, (it) => it->UniqueProcessId, Marshal.SizeOf(pbi));
			var alloced = Marshal.AllocHGlobal(Marshal.SizeOf(pbiOfficial));
			var alloced2 = Marshal.AllocHGlobal(Marshal.SizeOf(pbiOfficial));
			pbiOfficial2 =(PROCESS_BASIC_INFORMATION *) alloced;
			pbi2 = (TEST_PROCESS_BASIC_INFORMATION*)alloced;
			TryFetch(processId, handle, pbi2, (it) => it->UniqueProcessId, Marshal.SizeOf(pbiOfficial));
			TryFetch(processId, handle, (PROCESS_BASIC_INFORMATION*)alloced2, (it) => it->UniqueProcessId, Marshal.SizeOf(pbiOfficial));
			var pbiOfficial3 = (TEST_PROCESS_BASIC_INFORMATION)Marshal.PtrToStructure(alloced2,typeof(TEST_PROCESS_BASIC_INFORMATION));
			Console.WriteLine($"Manual PtrToStructure: {pbiOfficial3.UniqueProcessId}");
			TryFetch(processId, handle, pbiOfficial2, (it) => it->UniqueProcessId, Marshal.SizeOf(pbiOfficial));
			TryFetch(processId, handle, &pbiOfficial, (it) => it->UniqueProcessId, Marshal.SizeOf(pbiOfficial));
		}
		unsafe private delegate nuint GetUniqueId<T>(T*p);
		unsafe private static void TryFetch<T>(uint pid, SafeFileHandle procHandle, T * pbi, GetUniqueId<T> UniquidId, int pbiSize){
			var returnLength = 0U;
			IntPtr pbiAddr1 = (IntPtr)pbi;
			var res = PInvoke.NtQueryInformationProcess(procHandle,PROCESSINFOCLASS.ProcessBasicInformation,pbi, (uint)pbiSize, ref returnLength);
			Console.WriteLine($"procHandleAddy: {procHandle.DangerousGetHandle()} pbiAddr: {pbiAddr1} size: {pbiSize} actual pid: {pid} UniqueProcessId: {UniquidId(pbi)} status: {res.SeverityCode}  last pInvokeError: {Marshal.GetLastPInvokeError()} Last win32 error: {Marshal.GetLastWin32Error()} Last sys error: {Marshal.GetLastSystemError()}");
		}
		[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)]
		internal struct TEST_PROCESS_BASIC_INFORMATION {
			internal Windows.Win32.Foundation.NTSTATUS ExitStatus;
			internal IntPtr PebBaseAddress;
			internal nuint AffinityMask;
			internal int BasePriority;
			internal nuint UniqueProcessId;
			internal nuint InheritedFromUniqueProcessId;
		}
	}
}

So the win32 generated code does convert the pointer to a PEB structure to the PEB[] array which cannot, as you mentioned,  properly be used.   I am not sure  Marshal.StructureToPtr would actually have a use?  It requires you to have already allocated the unmanaged memory it just copies the managed data to the unmanaged memory but NtQueryInformationProcess doesn't read any data from the memory it is writing the data to it.    We couldn't use Marshal.PtrToStructure afterwards either I believe, as the array would still cause the alignment to be incorrect.
I am sure allowMarshaling to false would resolve but that would disable marshaling for everything.  It would still seem this is a bug? As far as I know this structure is only used by QueryInformationProcess, and the structure generated essentially can't ever  be used.   There is also the fact that while PebBaseAddress is a pointer to a PEB structure, its a pointer in the other processes memory.  I believe that means our process could never read it directly (in terms of the marshaled structure generated) unless we were calling it on ourselves.  So in this sort of situation doesn't an IntPtr or a nuint make more sense?
I realize this is auto generated code but I can't imagine being the only one who would add PROCESS_BASIC_INFORMATION to the NativeMethods.txt and expect to get something usable back.   Maybe a blacklist of structures that are invalid to marshal so if a user tried best they would get would be a pointer or it would simply refuse to generate it at all.

Thanks for elaborating. I haven't used this API myself, and it's helpful to me that you're explaining how this API is used.
I did a little more digging and the PebBaseAddress is an array instead of a pointer because PEB is a managed type. It's managed because one of its fields is PPS_POST_PROCESS_INIT_ROUTINE PostProcessInitRoutine, and PPS_POST_PROCESS_INIT_ROUTINE is a delegate (a managed type).
We do have the capability in CsWin32 to force certain type hierarchies to be emitted as blittable (non-marshaled). Given what you're saying, it sounds like PROCESS_BASIC_INFORMATION is perhaps one of those.

I believe PROCESS_BASIC_INFORMATION isn't used at any other time than for NtQueryInformationProcess (backed up that MS defines the struct on the function page and not as its own type + a search of other code shows similar exclusive use).
While you could call NtQueryInformationProcess on yourself (say to get the parent process id) even doing so I don't think there is any way you could used the PROCESS_BASIC_INFORMATION as declared.  You have access to all the memory but, as mentioned, can't martial that from a ptr into the managed type (as it is both a value type for an existing struct and Marshal.PtrToStructure(alloced,typeof(PROCESS_BASIC_INFORMATION))  won't work as the sizing doesn't match.
Aside from getting the parent process ID the other main use for NtQueryInformationProcess is likely to find the PEB address of a remote process to be able to access some of the PEB fields (cwd/command line).  For remote processes the marshaling won't make sense (as it won't be accessible either and would still size wrong).
If PROCESS_BASIC_INFORMATION.PEB[]  isn't accessible/usable in any situation, and will fault if used in the intended situations forcing it to be blittable would seem like the way to go.

Agreed. I actually spent a good part of yesterday fixing this in CsWin32. Rather than special case this particular struct, I was looking for the systemic problem so that similar structs that may have the same problem can be fixed at the same time. I found several bugs along the way, and fixing it isn't trivial. However I have a set of changes that I'm feeling good about and am running our exhaustive generation tests on it now to find any remaining issues. I hope to have a PR later today.


delete token and get new token

versions used:
"react": "0.52.0",
"react-native": "0.52.0",
"react-native-fcm": "^14.1.0"
how can i delete token and get new token ?, i can't find in readme,
please help me, thanks :)

try deleteEntityFCMToken then getEntityFCMToken?

may i ask, can the token update itself when expired ?, and when FCMEvent.RefreshToken is triggered?
because when token is expired i want get new token and update to my db.
thanks

Firebase SDK handles token update and it will trigger FCMEvent.RefreshToken.


Add second set of prerequisites

❓ What type of PR is this?

[ ] Refactor ♻
[x] Feature ✨
[ ] Bug Fix 🛠
[ ] Optimization 🚀
[ ] Documentation Update 📄
[ ] CI/CD 🤖

💬 Description

This PR is additional to the first set of prerequisites.
🎟 Related Tickets & Documents

Related Issue #2

🃏 Added/updated tests?
We encourage you to keep the code coverage percentage at 90% and above.

[x] Yes
[x] No, because this is not necessary.
[ ] No, and this is why:
[ ] I need help with writing tests

🌿 What branch would you like to merge this into?

develop
📷 [optional] What gif best describes this PR or how it makes you feel?

Summary by CodeRabbit

New Features

Introduced a new configuration option for code formatting, allowing for a maximum line length of 100 characters.
Added new configuration files to support module resolution, enabling cleaner import paths.
Introduced a new dependency to enhance the application's icon and UI component capabilities.
Created a central App class for managing application elements with improved structure.
Implemented two new test suites to ensure reliability of core functionalities.
Replaced user interaction logic with a structured application initialization process.

Bug Fixes

Enhanced error handling in the app initialization process.

Chores

Cleaned up the index.html file by removing extensive inline styles for better maintainability.

🚨 Check Failures: The checks are failing, but don’t worry! The issue is due to the main-page file not being included in this PR. The failure comes from commit 2bb4033 because main-page is not yet available. All good! 😊

This PR is needed as it stands. If there are additional prerequisites, please open a separate PR for those. Thanks! 🙌


'pyftsubset' command occurs encoding error in WINDOWS

My windows system preferred encoding is 'cp936' (Chinese, result of python code 'locale.getpreferredencoding()').
when I use command:
pyftsubset myfont.ttf --text-file=myfonttable.txt
'myfonttable.txt' file is encoding as 'utf-8,unix', but the io.open() will open the text file with encoding 'cp936'.
I modified the code in subset/_init_.py, line 2905 to:
text += open(g[12:], encoding='utf-8').read().replace('\n', '')
It works well.

PR?

Run command:
pyftsubset myfont.ttf --text-file=myfonttable.txt
Occurs ERROR in windows with default codepage 936.
OS:Windows 7 professional sp1
Python Version:2.7.10
Error Traceback:
Traceback (most recent call last):   File "D:\Program Files\Python27\Scripts\pyftsubset-script.py", line 9, in <module>     load_entry_point('fonttools==3.0', 'console_scripts', 'pyftsubset')()   File "D:\Program Files\Python27\lib\site-packages\fonttools-3.0-py2.7.egg\fontTools\misc\loggin n wrapper     return func(*args, **kwds)   File "D:\Program Files\Python27\lib\site-packages\fonttools-3.0-py2.7.egg\fontTools\subset\__in  main     text += open(g[12:]).read().replace('\n', '') UnicodeDecodeError: 'gbk' codec can't decode bytes in position 2-3: illegal multibyte sequence

'myfonttable.txt' content:
"这是一个测试文本"
file encoding is 'utf-8', line ending is Unix style.

Yes, that would be nice! :)

OK, The pull request is pass, I will close this issue.

Just for cross-referencing, this was the pull request: https://github.com/behdad/fonttools/pull/655


bau: don't send 404 messages to sentry

We currently hook up sentry to the raven logger to capture exceptions and error
messages.
Rails is currently logging 404s as errrors using the string representation of
the error (not just the exception).
As 404s are not something we can usually action this change will stop them from
being sent to Sentry.

HTTP 202


difference to tokio-timer?

What's the difference of futures-timer to tokio-timer?

This crate doesn't currently depend on tokio, but I don't have a lot of time to maintain it unfortunately. There may be implementation differences as well, I'm not too familiar with tokio-timer

The later tokio-timer release (0.2) depends on the Tokio runtime.
"Using the timer API requires a timer instance to be running. The Tokio runtime takes care of all that setup for you." - https://tokio.rs/blog/2018-03-timers/
If one tries to use the tokio-timer outside of the Tokio runtime the timers simply don't fire (IIRC).


Fix multiarray_load()

To address issues like https://github.com/pyiron/pyiron_atomistics/issues/174

Codecov Report

Merging #52 (75c9212) into master (9efaa17) will decrease coverage by 10.80%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master      #52       +/-   ##
===========================================
- Coverage   90.64%   79.83%   -10.81%
===========================================
  Files           3        3
  Lines         620      620
  Branches      130      130
===========================================
- Hits          562      495       -67
- Misses         33       92       +59
- Partials       25       33        +8

Impacted Files
Coverage Δ

h5io/_h5io.py
75.38% <100.00%> (-11.87%)
:arrow_down:

h5io/tests/test_io.py
91.92% <0.00%> (-8.08%)
: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 9efaa17...75c9212. Read the comment docs.

@larsoner Can you take a look at this pull request?

@larsoner I just want to ping you again, can you merge this?

Sorry I missed the original ping!


Issue - private registry - scoped package - gitlab -  debug--- [gitlab] deny user:  access to package: @scopename/packagename

Describe the bug
I have setup a private verdaccio (default 3.6.0 and manually increased to 3.8.1) registry with verdaccio-gitlab plugin (2.0.0).
I am able to download non-scoped packages (from public repo via proxy) but I am not able to download scoped packages from via proxy and my npm registry. I require authentication for both, publish and access.
Trace log:
 info <-- <IP_ADDRESS> requested 'GET /@scopename/packagename'
 trace--- api middleware using legacy auth token
 trace--- authenticating yetanotherusername
 trace--- [gitlab] authenticate called for user: yetanotherusername
 trace--- [gitlab] user: yetanotherusername not found in cache
 trace--- [gitlab] querying gitlab user groups with params: { min_access_level: 40 }
 debug--- [gitlab] saving data in cache for user: yetanotherusername
 info --- [gitlab] user: yetanotherusername successfully authenticated
 debug--- [gitlab] user: yetanotherusername, with groups: { publish: [ 'yetanotherusername', 'indeework' ] }
 trace--- authentication for user yetanotherusername was successfully. Groups: [ 'yetanotherusername', 'indeework' ]
 trace--- allow access for @scopename/packagename
 debug--- [gitlab] allow user: yetanotherusername access to package: @scopename/packagename
 trace--- allowed access for @scopename/packagename
 debug-=- updating package @scopename/packagename info
 http <-- 200, user: yetanotherusername(<IP_ADDRESS> via <IP_ADDRESS>), req: 'GET /@scopename/packagename', bytes: 0/1367
 http <-- 200, user: yetanotherusername(<IP_ADDRESS> via <IP_ADDRESS>), req: 'GET /@scopename/packagename', bytes: 0/1367
 info <-- <IP_ADDRESS> requested 'GET<EMAIL_ADDRESS> trace--- allow access for @scopename/packagename
 debug--- [gitlab] deny user: <empty> access to package: @scopename/packagename
 trace--- forbidden access for @scopename/packagename. Error: access denied, user not authenticated in gitlab and unauthenticated package access disabled
 http <-- 401, user: null(<IP_ADDRESS> via <IP_ADDRESS>), req: 'GET<EMAIL_ADDRESS>error: access denied, user not authenticated in gitlab and unauthenticated package access disabled
 http <-- 401, user: null(<IP_ADDRESS> via <IP_ADDRESS>), req: 'GET<EMAIL_ADDRESS>error: access denied, user not authenticated in gitlab and unauthenticated package access disabled

The first authentication call is successful. However, the second call to the gitlab auth plugin seems to provide an empty user to the plugin, resulting in: [gitlab] deny user:  access to package: @scopename/packagename
I know, the error is thrown in the plugin code, but it looks like Verdaccio is not providing the proper user.name to the plugin?
To Reproduce
Steps to reproduce the behavior:

Create a scoped top level group in Gitlab
Use the provided configuration and start Verdaccio
Make sure the user has maintainer or owner rights on the group
Publish a package with the name "@/packagename>" to the Verdaccio registry
Try to add the package as a dependency to another project

Expected behavior
Must be possible to download the package after initial (npm login) authentication and successful (see first success message) authorization.
Configuration File (cat ~/.config/verdaccio/config.yaml)
storage: /verdaccio/storage/data

plugins: /verdaccio/plugins

listen:
  - <IP_ADDRESS>:4873

url_prefix: /verdaccio/

auth:
  gitlab:
    url: http://gitlab/gitlab
    authCache:
      enabled: true
      ttl: 300
    publish: $maintainer

uplinks:
  npmjs:
    url: https://registry.npmjs.org/

packages:
  '@scopename/*':
    # scopename packages
    access: $authenticated
    publish: $authenticated
    gitlab: true

  '**':
    access: $authenticated
    publish: $authenticated
    proxy: npmjs
    gitlab: true

logs:
  - { type: stdout, format: pretty, level: trace }
  #- {type: file, path: verdaccio.log, level: info}

web:
  enable: true

Debugging output
npm install @scopename/packagename
npm ERR! code E401
npm ERR! 401 Unauthorized<EMAIL_ADDRESS>
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/username/.npm/_logs/2018-09-15T21_05_29_180Z-debug.log

Additional context
Maybe the user.name is not properly provided to the allow_access call when trying to download the .tgz from the registry.

I found a hint in https://github.com/verdaccio/verdaccio/issues/586
Adding always-auth=true to ~/.npmrc solves the issue. Do you have an idea, why this is needed?

Are you using yarn?

I am using npm

Have you tried to ask for help their repository? I think this issue is quite specific for Gitlab plugin  and here you might not get too much help because we do not maintain that plugin.


previousValues -> id result malformed on DELETED subscriptions

Describe the bug
When subscribed to DELETED events, previousValues -> id returns the string CuidGCValue(...). (... represents the actual ID)
To Reproduce
Steps to reproduce the behavior:

Subscribe to DELETED and be sure to query previousValues with the id field:

subscription {
  user {
    previousValues {
      id
    }
  }
}

Delete an entry to trigger subscription.

Expected behavior
The id field should be the actual ID. I suspect a function is being returned as a string rather than being called somewhere in the code.
Versions (please complete the following information):

OS: Fedora 28
Prisma 1.13.2

First mentioned in #2824.

Just commenting to say I am experiencing this issue as well.

I am able to reproduce this as well. The returned data looks like:
{
  "data": {
    "user": {
      "previousValues": {
        "id": "CuidGCValue(cjkcezgmc00f40884ljcf9asf)"
      }
    }
  }
}

Thanks for reporting! 🙏
I pushed a fix and created a release 1.13.4. Build artifacts will be available in a few minutes.

Hey guys wondering if I am missing something or if this fix is not working. I am currently using a demo server on prisma cloud and UI says it is version 1.18-beta-1. When I lookup 1.18-beta tag in the prisma repo it look like this change is in there (https://github.com/prisma/prisma/commit/ae844618857502a2b9c180c3b3742c6b0b01aedf). In my app I have a subscription for notifications and when I delete a notification I currently still get this:
{
    "data": {
        "notification": {
            "mutation": "DELETED",
            "previousValues": {
                "id": "CuidGCValue(cjmvnu812any60b48oxw07heq)",
                "viewed": false,
                "__typename": "NotificationPreviousValues"
            },
            "node": null,
            "__typename": "NotificationSubscriptionPayload"
        }
    }
}

Any help would be great thanks.

Thanks for reporting the issue and your thorough description! 🙏 This has been fixed in 1.18.1.

@mavilein I'm seeing a similar, but slightly different, issue with delete mutation IDs as StringIdGCValue(ID_HERE)
Tested against 1.18.1

Response:
{
   "type":"data",
   "id":"1",
   "payload":{
      "data":{
         "feedSubscription":{
            "mutation":"DELETED",
            "node":null,
            "previousValues":{
               "id":"StringIdGCValue(cjoel023cwjtc0a01bh5awc32)",
               "message":"edited the message!<PHONE_NUMBER>120",
               "__typename":"CommentPreviousValues"
            },
            "__typename":"CommentSubscriptionPayload"
         }
      }
   }
}

based on a data model of:
type Comment {
  id: ID! @unique
  createdAt: DateTime!
  updatedAt: DateTime!
  isPublic: Boolean! @default(value: "false")
  message: String!
  author: User!
  children: [Comment!]! @relation(name: "CommentOnComment", onDelete: CASCADE)
  parent: Comment @relation(name: "CommentOnComment", onDelete: SET_NULL)
}

type User {
  id: ID! @unique
  email: String! @unique
  password: String!
  name: String!
  comments: [Comment!]!
}

subscription:
type Subscription {
  feedSubscription: CommentSubscriptionPayload
}

resolver:
const Subscription = {
  feedSubscription: {
    subscribe: (parent, args, ctx, info) => {
      return ctx.db.subscription.comment(
        {
          where: {
            node: {
              isPublic: true
            }
          }
        },
        info
      );
    }
  }
};

@afrankel-sfdo : We indeed had one more regression here. Will reopen and fix soon.

@mavilein any updates? anyway I can assist?

Just ran into this issue as well and worked around it like so:
const [, id] = previousValues.id.match(/\((\w+?)\)/);

@afrankel-sfdo : Thanks for pinging. Thought i merged a fix but i didn't. The fix is available in 1.23.4.

@mavilein thanks! Upgraded to<EMAIL_ADDRESS>(confirmed via yarn.lock), ran yarn prisma generate then yarn prisma deploy. Restarted the server, but still seeing: id: "StringIdGCValue(cjqia4yt43o2f0991q6zszwmg)" in previousValues on a DELETE mutation.
Is there some set I'm missing?


2nd python can't run tensorflow

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): windows10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):tensorflow.org
TensorFlow version:1.13.1
Python version:3.5
Installed using virtualenv? pip? conda?:pip
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:10.1
GPU model and memory:1070

Describe the problem
While import tensorflow as tf in jupyter notebook. It's my second python in my system. The first one can run tf ok.
Provide the exact sequence of commands / steps that you executed before running into the problem
import tensorflow as tf
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
`---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()
57
---> 58   from tensorflow.python.pywrap_tensorflow_internal import *
59   from tensorflow.python.pywrap_tensorflow_internal import version
C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in ()
27             return _mod
---> 28     _pywrap_tensorflow_internal = swig_import_helper()
29     del swig_import_helper
C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23             try:
---> 24                 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25             finally:
C:\RQPro\rqalpha\lib\imp.py in load_module(name, file, filename, details)
242         else:
--> 243             return load_dynamic(name, filename, file)
244     elif type_ == PKG_DIRECTORY:
C:\RQPro\rqalpha\lib\imp.py in load_dynamic(name, path, file)
342             name=name, loader=loader, origin=path)
--> 343         return _load(spec)
344
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call last)
 in ()
----> 1 import tensorflow as tf
C:\RQPro\rqalpha\lib\site-packages\tensorflow_init_.py in ()
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
25
26 from tensorflow._api.v1 import app
C:\RQPro\rqalpha\lib\site-packages\tensorflow\python_init_.py in ()
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers
C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()
72 for some common reasons and solutions.  Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74   raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\RQPro\rqalpha\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\RQPro\rqalpha\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\RQPro\rqalpha\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

`

TensorFlow supports CUDA 10.0 (TensorFlow >= 1.13.0). Please refer this link and let us know in case this does not help. Thanks!

yes, I uninstalled 10.1 and installed 10.0. Then it works fine. But the odd thing is my anaconda-python 3.7.4 works with tensorflow-gpu 1.13.1 and CUDA 10.1 fine.

Are you satisfied with the resolution of your issue? Yes No


Use a container for more repeatable builds

Just more convenient for folks who might not have maven and associated tooling. Confirmed the .hpi is built correctly.

Thank you! :)


Avatars in the html

Hello I noticed in the html source this:

	    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales tincidunt leo vel tempus. Nunc justo nibh, dictum et lorem non, pulvinar consequat orci. Duis euismod hendrerit tortor, ut iaculis libero tempor id. Ut volutpat, nulla vitae interdum tristique, massa sapien luctus lectus, sed porttitor ex metus a dui.

But in my iOS db export I can't find the Avatars directory.

I also have no idea on where is the avatars of iOS WhatsApp for now.

I looked again on the iOS backup and found where the avatars are stored! I will work towards including the avatars for iOS.

It's working in 1 on 1 chats, but in groups it displays the group avatar instead of the users' ones.
In 1 on 1 chats I noticed that in some cases it is displaying old avatars(cached in some way from whatsapp?) and not the latests. Maybe if the user have more than 1 profile images it use the first and not the latest?
Example:
a user have two profile image:
393475555501-1375641367-1375641782.jpg (I it's think from a group where this user belong)
393475555501-1668360926.jpg (the actual wa avatar)
In 1 on 1 chat it display the first instead of the latest.
Another thing I noticed is that in some chats if I click on the avatar it display another picture (for example from a group where the user belong), .thumb and .jpeg are different. Example:

						Juan Juanito

17:27

							Hello, ok, no problem!

I also notice the issue of group chat. Maybe there will be another fix for that. Assuming no fix for that in the foreseeable future, would you prefer to (a) keep showing the group avatar or (b) not show the avatar in group chats?
Could you try to replace the code in extract_iphone.py lines 43-47 with the following and see if the correct avatar is shown?

            for avatar in avatars:
                if avatar.endswith(".thumb") and data[content["ZCONTACTJID"]].their_avatar_thumb is None:
                    data[content["ZCONTACTJID"]].their_avatar_thumb = avatar
                elif avatar.endswith(".jpg") and data[content["ZCONTACTJID"]].their_avatar is None:
                    data[content["ZCONTACTJID"]].their_avatar = avatar

Yes. It is possible that .thumb and .jpg are different. The current implementation is just iterate over all possible files. There is no way to tell if the image contents are the same between the thumbnail and the avatar. And I want to avoid adding unnecessary dependencies on the exporter.

If it's not possible to display the other users' avatars I think it is better to keep the group avatar at least.
and 3. This solved but only in some cases. I noticed this:

In the next case, for 1 on 1 chats of<PHONE_NUMBER>11 you can choose from this:
393381961111-1362753161-1362753674.thumb <= it's a GROUP avatar
393381961111-1485804964-1485805039.jpg <= it's a GROUP avatar
393381961111-1485804964-1485805039.thumb <= it's a GROUP avatar
393381961111-1666265085.jpg <= This is the right one for 1on1 chat

The right one is:
393381961111-1666265085.jpg
The .thumb doesn't exists and wtsexporter wrongly choose to use:
393381960328-1362753161-1362753674.thumb as avatar
and
393381960328-1485804964-1485805039.jpg as link to the avatar.
The next case is similar to the previous one but the .thumb exists:
393469510625-1544247670-1544248176.thumb <= it's a GROUP avatar
393469510625-1544247670-1544248176.jpg <= it's a GROUP avatar
393469510625-1528113443.thumb  <= This is the right one for 1on1 chat
393469510625-1514889781-1514889782.jpg <= it's a GROUP avatar

but wtsexporter choose again a group image:
393469510625-1544247670-1544248176.thumb as avatar
393469510625-1544247670-1544248176.jpg as link to the avatar
A more "complicate" one:

393471412345-1354147243-1390210230.jpg <= it's a GROUP avatar
393471412345-1354147243-1390210230.thumb <= it's a GROUP avatar
393471412345-1357809601-1384804167.jpg <= it's a GROUP avatar
393471412345-1357809601-1384804167.thumb <= it's a GROUP avatar
393471412345-1359446549-1426112043.jpg <= it's a GROUP avatar
393471412345-1359446549-1426112043.thumb <= it's a GROUP avatar
393471412345-1371244762-1371534399.thumb <= it's a GROUP avatar
393471412345-1375165184-1375479277.jpg <= it's a GROUP avatar
393471412345-1375165184-1375479277.thumb <= it's a GROUP avatar
393471412345-1441891779.jpg  <= it's an OLD 1on1 CHAT avatar
393471412345-1444585598-1444585600.jpg <= it's a GROUP avatar
393471412345-1444585598-1444585600.thumb <= it's a GROUP avatar
393471412345-1463548569-1463548570.jpg <= it's a GROUP avatar
393471412345-1463548569-1463548570.thumb <= it's a GROUP avatar
393471412345-1463548569-393471412345-1463548569.jpg <= it's a GROUP avatar
393471412345-1471411256-393471412345-1471411256.jpg <= it's a GROUP avatar
393471412345-1471411257-1471411258.jpg <= it's a GROUP avatar
393471412345-1483696658.jpg  <= it's an OLD 1on1 CHAT avatar
393471412345-1485431234-1485431235.jpg <= it's a GROUP avatar
393471412345-1485431234-1485431235.thumb <= it's a GROUP avatar
393471412345-1485431234-393471412345-1485431234.jpg <= it's a GROUP avatar
393471412345-1494941749.jpg  <= it's an OLD 1on1 CHAT avatar
393471412345-1508585140-393471412345-1508585140.jpg <= it's a GROUP avatar
393471412345-1532665103-1532665104.jpg <= it's a GROUP avatar
393471412345-1532665103-1532665321.jpg <= it's a GROUP avatar
393471412345-1532665103-1532665351.jpg <= it's a GROUP avatar
393471412345-1532665103-393471412345-1532665103.jpg
393471412345-1534514800-1534514816.jpg <= it's a GROUP avatar
393471412345-1534514800-1534514816.thumb <= it's a GROUP avatar
393471412345-1537370945.jpg  <= it's an OLD 1on1 CHAT avatar
393471412345-1543044662-1543044858.jpg <= it's a GROUP avatar
393471412345-1543044662-1543044858.thumb <= it's a GROUP avatar
393471412345-1547723910-1547723913.jpg <= it's a GROUP avatar
393471412345-1547723910-1547723913.thumb <= it's a GROUP avatar
393471412345-1565509357.jpg  <= it's an OLD 1on1 CHAT avatar
393471412345-1565509357.thumb  <= it's an OLD 1on1 CHAT avatar
393471412345-1570200050-393471412345-1570200050.jpg <= it's a GROUP avatar
393471412345-1570200071-1570200072.jpg <= it's a GROUP avatar
393471412345-1570200071-1570200072.thumb <= it's a GROUP avatar
393471412345-1581347010.jpg   <= THE WINNER!!! This is the right one for 1on1 chat, the last in alphabetical(?) order without multiple ids

In this case for 1 on 1 chats you have to choose
393471412345-1581347010.jpg
I think that the rule is:
Display in 1 on 1 chats the last in alphabetical order .jpg or .thumb avoiding the ones with multiples "ids" (I don't know how to call them) like: phonenumber-ID-ID.jpg|thumb or phonenumber-ID-phonenumber-ID.jpg|thumb
If you need a thumb and there's only the jpg, you need to convert it... or use jpeg directly.

Could the format be like this? <group creator/PM's contact number>-<group creation timestamp (for group only)>-<avatar timestamp>

There seem to be a bug with avatars in iOS group chat (dev branch & 0.9.5), where all the avatars are the same
https://imgur.com/a/JYlGsP5
When I check the html, it all produce the same innerHTML for everyone

There seem to be a bug with avatars in iOS group chat (dev branch & 0.9.5), where all the avatars are the same https://imgur.com/a/JYlGsP5 When I check the html, it all produce the same innerHTML for everyone

Are the avatars the group's avatar?

Are the avatars the group's avatar?

Yes they are

Then it will be considered as a feature request rather than a bug, since it is expected behaviour.

To ensure individual avatars for each party in a group chat, we must incorporate some identifier (such as a class name or relative path) on a per-message basis. If this isn't feasible, we may consider omitting avatars in the group chat to prevent confusion.
PS. I did a quick check, Telegram export does not include avatar.


Composer lock out of sync

Description
composer.lock file out of sync with composer.json causes issues when trying to require a new package, example:
composer require psr/simple-cache
Using version ^1.0 for psr/simple-cache
./composer.json has been updated
Running composer update psr/simple-cache
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires spiral/framework ^2.7, found spiral/framework[dev-master, v2.7.0, ..., 2.8.x-dev (alias of dev-master)] but the package is fixed to 2.6.x-dev (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Proposed solutions:
run composer update and commit/push new composer.lock file
OR
remove composer.lock and add to .gitignore and add "composer install" as the first entry within the "post-create-project-cmd" script, example:
"post-create-project-cmd": [
    "composer install",
    "php -r \"copy('.env.sample', '.env');\"",
    "php app.php encrypt:key -m .env",
    "php app.php configure -vv",
    "spiral get-binary"
]

Done https://github.com/spiral/app/releases/tag/v1.3.1


SSH will not run command

Issue Description
Trying to run SSH commands will fail with an error.
I'm trying to run:
ssh(     	host: "<IP_ADDRESS>",     	username: "user", 	    password: "password", 		commands: 			[ 				"cd /Users/user/Desktop/Shared/automation_mobile", 				"python flow.py "+ lane_context[SharedValues::HOCKEY_DOWNLOAD_LINK] + " ios" 			],     )
But the second command ("python...") always fail although its working fine when trying it from terminal ssh.
The command looks like that: "python flow.py https://upload.hockeyapp.net/apps/0336ea95sdgf45gtwrfg72b86 android"
Trying to reduce the command even to "python flow.py" without args will not work either.
Complete output when running fastlane, including the stack trace and command used
 [17:48:08]: -----------------
[17:48:08]: --- Step: ssh ---
[17:48:08]: -----------------
[17:48:08]: [SSH COMMAND]: cd /Users/user/Desktop/Shared/automation_mobile
[17:48:08]: [SSH COMMAND]: python flow.py
[17:48:08]: SSH Command failed 'python flow.py https://upload.hockeyapp.net/apps/0336ea95sdgf45gtwrfg72b86 android' Exit-Code: 2
[17:48:08]: Moving to Error lane

Environment
fastlane 1.81.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? NO
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? NO

Hi @nmayafit Thanks for reaching out. What happens when you pipe the python command into the first cd command.
Something like cd /Users/... | python
Also, can you share the output when you run 'python flow.py https://upload.hockeyapp.net/apps/0336ea95sdgf45gtwrfg72b86 android'
Thanks!

Same result:
[13:03:20]: --- Step: ssh ---
[13:03:20]: -----------------
[13:03:21]: [SSH COMMAND]: cd /Users/local/Desktop/Shared/automation_mobile | python flow.py https://upload.hockeyapp.net/apps/92d8axxxeb2a23 ios
[13:03:21]: SSH Command failed 'cd /Users/local/Desktop/Shared/automation_mobile | python flow.py https://upload.hockeyapp.net/apps/92d8axxxeb2a23 ios' Exit-Code: 2
[13:03:21]: Moving to Error lane
If I connect using my terminal it will successfully run the command.

Got it working with ";" instead of "|".


new \MongoDB\BSON\UTCDateTime not recognized

Hello,
in Laravel 9 I am getting this error with mongodb:
$ahora = Carbon::now();
$now = new \MongoDB\BSON\UTCDateTime($ahora);
Any ideas what i can do to help idehelper to recognize this command?

getting this error

What's the error? Can you share a stacktrace?

No stacktrace just an errror:
Undefined type 'MongoDB\BSON\UTCDateTime'.intelephense(1009)

Maybe I'm missing something, but I don't see the relation to this project…?

My apologies if i made a mistake but i was under the impression that ide helper helps intelephense understanding the different facades and methods used in a project.

Related to Eloquent it does, but this MongoDB and there's no support for that
intelephense is only "accidentally" supported (my own wording). It uses phpdoc, maybe features championed by phpstan once phpstorm catches up, which is usually the fastest of all IDEs to support nice features
(and some things generated by ide-helper are outright phpstorm specific, like the meta file for DI resolving)


Cached/Keyed Nodes

Elm and React allow devs to "key" nodes to tell the vdom not to regenerate, and snabbdom is no exception.
https://github.com/snabbdom/snabbdom#key--string--number
Suggest a new Node type called "CachedAs("my key")" or something, that allows you to make parts of your view tree for caching / re-use.

This very much depends on the outcome of the "replace snabbdom" issue #21. And may in fact just be unnecessary.


Building --prod with 29 colors in variables.scss causes white screen

Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Expected behavior:

Steps to reproduce:

ionic start whiteScreenWithALotOfColors tabs
replace $colors with code above
ionic cordova platform add android
ionic cordova run android --prod

Related code:
$colors: (
  primary: #97ca44,
  secondary: #38a550,
  tertiary: #db584a,
  quaternary: #b53d78,
  quinary: #613a94,
  danger: #f53d3d,
  light: #f4f4f4,
  dark: #222,
  divider: #d7d7d8,
  loginLinks:#808080,
  shortcutColor0: #cfd8dc,
  shortcutColor1: #f44336,
  shortcutColor2: #e91e63,
  shortcutColor3: #9c27b0,
  shortcutColor4: #3f51b5,
  shortcutColor5: #2196f3,
  shortcutColor6: #00bcd4,
  shortcutColor7: #009688,
  shortcutColor8: #4caf50,
  shortcutColor9: #8bc34a,
  shortcutColor10: #cddc39,
  shortcutColor11: #ffeb3b,
  shortcutColor12: #ffc107,
  shortcutColor13: #ff9800,
  shortcutColor14: #ff5722,
  shortcutColor15: #795548,
  shortcutColor16: #000000,
  pendingLogColor: #ffc107,
  durationInputHeeader: #00897b
);

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
cli packages: (C:\brokenAppWithMultipleColors\node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node : v7.10.0
    npm  : 4.0.2
    OS   : Windows 10

In theory, this generates s 50kb*30 colors css bundle which is 1.5mb.
This is a duplicate of https://github.com/ionic-team/ionic-app-scripts/issues/506

Hello! Thank you for opening an issue with us!
@Yunksi - if you look at the issue @AmitMY linked there is a good explanation as to why the issue exists and also some ways people have worked around it.
And thank you @AmitMY. I was just about to move this, but no point creating duplicate issues... :)
Thank you for using Ionic

I'm sorry for opening duplicate issue, didn't see that one before. Thanks for pointing that one out.


Remove version: Mayakron.AcrylicDNS version 2.1.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: URL works;


Flickering issue caused by t_ut

Hello, @brammool
It's again that 'annoying' guy that is not happy with the current state of screen clearing/redrawing in vim and related issue #8002
I did more investigations, and have found that 'flickering' that i described caused by some CursorMoved autocommands (matchparen plugin, + I use popular lsp plugin coc.nvim that has some CursorMoved autocmds too) or some heavy calculations in statusline.
You can test it youself create this minimal.vim:
func! HeavyFunc() abort
  let x = 0
  for i in range(1, 8000)
    let x += 1
  endfor
endfunc

adjust loop so it wouldn't be too much visible when scroll
vim -u minimal.vim
set ls=2
invoke it on autocmd CursorMoved * call HeavyFunc() or set statusline=%{HeaveFunc()}
open some big file  and scroll it with hold down C-f
If all done right there should be flickering or if HeavyFunc() is too slow even visible slow redraws of the screen.

As i undertand it right, calculations of autocmds and statusline could happen in between screen clearing and drawing. So if this autocmds and statusline is heavy then screen could be blank (at least its bottom part) for some time, and that is causing so called 'flickering'.
Could it be addressed somehow?
And maybe because of this (autocmd calculated in between screen cleared and drawn states) :redraw! can visibly flicker too. But it is just assumption, not sure how to test it. But :redraw! is sometimes instant(fast enought so an eye cant catch it), but sometimes especially with heavy statusline/a lot of visible closed folds can 'flicker' too.

Hello, @brammool
It's again that 'annoying' guy that is not happy with the current state of screen clearing/redrawing in vim and related issue #8002
I did more investigations, and have found that 'flickering' that i described caused by some CursorMoved autocommands (matchparen plugin, + I use popular lsp plugin coc.nvim that has some CursorMoved autocmds too) or some heavy calculations in statusline.
You can test it youself:
func! HeavyFunc() abort
  let x = 0
  for i in range(1, 8000)
    let x += 1
  endfor
endfunc

adjust loop so it wouldn't be too much visible when scroll
vim -u minimal.vim
set ls=2
invoke it on autocmd CursorMoved * call HeavyFunc() or set statusline=%{HeaveFunc()}
open some big file  and scroll it with hold down C-f
If all done right there should be flickering or if HeavyFunc() is too slow even visible slow redraws of the screen.

So after my investigations what i understand the logic to clear and redraw the screen is:

Clear the screen
process all invoked autocmds and statusline calculations (something else?)
and only then add text to the screen.

Maybe it is possible to swap calculation of autocmds/statusline etc and clearing the screen? So it would be like

Caclulate autocmds and other required stuff
Clear the screen
Add text to the screen

Any limitations to achieve this?

The flicker is most likely caused by using the clear-screen sequence.
If omitting that and displaying the text on top of what is there already
would avoid it, especially if the text didn't scroll.  You can make a
vertical split to simulate this.
So long as the screen is cleared before redrawing yoo would always see a
little flicker, depending on how fast the text can be drawn.  This
mainly depends on syntax highlighting.
--
SIGIRO -- irony detected (iron core dumped)
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

So the question is is there any particular benefit of clearing whole screen before drawing it?
Is it faster, removes some possible left over artifacts? Any other reason?
And one of any of the questions above are important, why then if you split and make one window height only 1 line it doesn't require to clear the whole screen on big jumps (I understand that there different logic in implementations, I just don't understand why it requires in one situation, but not the other?) It is definitely that statusline after the jump would not go anywhere from your screen, so there is no reason to remove it in between screen drawing.

If omitting that and displaying the text on top of what is there already
would avoid it

That what I personally would like to have, but not sure about any issues or shortcomings this could strike with.
If you have time, can you explain or link to some resource, why screen should be cleared before drawing new info. Or this is just a strategy you have selected?

So the question is is there any particular benefit of clearing whole
screen before drawing it?  Is it faster, removes some possible left
over artifacts? Any other reason?

Clearing the screen is required when the contents is unknown.  E.g.
after executing a shell command.  Otherwise it's to optimize the number
of characters sent to the terminal.  This matters mainly over a remote
connection these days.

And one of any of the questions above are important, why then if you
split and make one window height only 1 line it doesn't require to
clear the whole screen on big jumps (I understand that there different
logic in implementations, I just don't understand why it requires in
one situation, but not the other?) It is definitely that statusline
after the jump would not go anywhere from your screen, so there is no
reason to remove it in between screen drawing.

If omitting that and displaying the text on top of what is there already
would avoid it

That what I personally would like to have, but not sure about any
issues or shortcomings this could strike with.
If you have time, can you explain or link to some resource, why screen
should be cleared before drawing new info. Or this is just a strategy
you have selected?

We could perhaps have a way to prefer not to clear the screen.
This would work OK when using a fast (local) terminal and drawing is
slow enough to make flickering visible.  This will require some work,
and risk that there are drawing artefacts.
--
LETTERS TO THE EDITOR (The Times of London)
Dear Sir,
I am firmly opposed to the spread of microchips either to the home or
to the office.  We have more than enough of them foisted upon us in
public places.  They are a disgusting Americanism, and can only result
in the farmers being forced to grow smaller potatoes, which in turn
will cause massive unemployment in the already severely depressed
agricultural industry.
Yours faithfully,
        Capt. Quinton D'Arcy, J. P.
        Sevenoaks
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Hello, @brammool
I have finally tracked this issue. Sorry for a lot of misleading recently.
I'm not sure why I didn't test it before, but option termguicolors and colorscheme with it support caused such flickering that i have described. Didn't test it before, because my colorscheme is gui only and not cterm.
Now i can fully reproduce with vim --clean -c "set nu rnu termguicolors laststatus=2" and open some big file and scroll with pressed C-f C-b causes a lot of statusline flickering. And :redraw! are sometimes flickers too (visible to an eye), but with notermguicolors redraw! my eye can't catch it.

One thing you can do is using the "script" program.  Run "script", edit some file with Vim that causes flicker, then exit Vim and exit script.  Then the file "typescript" will show what was sent to the terminal.  Perhaps that sows something.

While recording this logs have found that set t_ut= suggested by @lacygoill https://github.com/vim/vim/issues/8002#issuecomment-1085366813 helped to completely remove flickering with vim --clean and other builtin colorschemes besides default one. But still have no impact to my config.

@brammool sorry for wasting so much of your time.
My full config with only changed colorscheme to any of builtin ones and set t_ut= option completely removed flickering for me.
Thank You.

Have tracked the issue.
Having Normal highlight with guibg=NONE and relate on the terminal background color caused such flickering.


Sequence prepped plasmids

Sequence the following vectors using SP072, 75:

15a.10
26.10
66.10
69.10
17_pKD46.10
37_pKD46.10
67_pKD46.10

Sequence the following vectors using BSEVA_L1_overhang:

15a.10
26.10
66.10
69.10

Additionally sequence the following vectors with LMP_F to determine the sequence of the gentamycin cassette:

66.10
69.10
67_pKD46.10

Results of first round of sequencing
The following constructs contained no observed mutations:

17_pKD46.10
67_pKD46.10
B1 (15a.10)
H3 (26.10)

The following constructs contained point mutations:

37_pKD46.10: 2158G>A (LMS), additional insertion with some probability...
F12 (69.10): 1508_1526del, similar to E12
H11 (66.10): 1695_1696insAGCAGCAACGATGTTACGC, similar region to E11

2nd round of sequencing
Sequence the following constructs using LMP: F11, G11, G12 & H12

In contrast to the alternative 3 oris, pBR322 and p15A replicate via a relaxed mechanism. There might therefore be some incompatability between the SEVA gentamicin cassette sequence and oris that replicate via a relaxed mechanism.

2nd round of sequencing results

All 66.10 & 69.10 constructs contained mutations in the same region of SEVA_GM. Either a deletion of a 21 bp repeat or a duplication yielding a trimeric repeat. Given the CDS of the gentamicin resistance gene is unclear in the case of the 21 bp deletion, the trimeric repeat will be submitted to Addgene.
H11 (66.11) is now validated.

3rd round of sequencing

Sequence G12 using BSEVA_L1_overhang, SP072 & 75.

3rd round of sequencing results

G12 (69.11) is not validated.


Build(deps-dev): Bump @storybook/addon-links from 6.5.2 to 6.5.3 (#3509)

Pull request opened by the merge tool on behalf of #3509

Merged in 409d6b15372a520bdcaa7659f0a6f3bb03cc5a96


Set more padding on volume pref SeekBar for Lollipop and above

Improves the visual appearance of the VolumePreference Seekbar for Lollipop and above. See pics for below for screenshots across APIs 10, 15, and 23 post this change. Fixes #210.
API v23

API v15

API v10

The padding specs for a dialog are here:
https://www.google.com/design/spec/components/dialogs.html#dialogs-specs
It looks like 75px is roughly 24dp in your screenshot, but that might not be true on all devices. I'd make sure it's 24dp.

I added the volume icon to match the slider examples in the material docs and matched the appropriate spacing (24dp to left of icon, content 80dp from left of dialog). To make this easier I factored out the dialog into an XML layout file, screenshots for the various versions as below:
API v23

API v15

API v10

I'm not totally sure why the Travis CI build is failing, I can just see that there was a lint error somewhere at my ImageView declaration but not sure what...is there a way I can run the linter locally and view the precise error?
In any case I have a hunch it could be because I'm missing the "android:contentDescription" attribute. Is the general practice to add a string first (something like "Bell volume") to the English strings.xml and then it would be translated later?

Unfortunately, there's not a great process with the linter. You'll nee to run ./gradlew app:lint and then check out the output html. You should be able to track down the lint errors in the files you've changed here.
On another note, sorry to nit-pick but the space between the icon and slider seems too big to me for some reason. Is there extra padding there on accident or something?

Yes, if you run ./gradlew lint then look at app/bplid/outputs/lint-results.html you'll see the error is:
[Accessibility] Missing contentDescription attribute on image

Just a trick (hint?) : You may also start lint from Android Studio with menu Analyze -> Inspect Code, travis-ci build gives you the file and the line where the new lint warning/error is.
In your case :
$ ./scripts/check-lint-count.sh app/build/outputs/lint-results.xml $HOME/.cache/lint/lint-results.xml
Historical count : 552, new count : 553
FAILURE: lint issues increased from 552 to 553
497a498
> <location file="/home/travis/build/connectbot/connectbot/app/src/main/res/layout/volume_preference_dialog_layout.xml" line="29" column="5"/>

Thanks for the catch, it looked like there was some inner padding on the SeekBar in Lollipop itself so I just reset with android:padding="0dp" for that element and added a contentDescription for the ImageView for a11y. Updated screencaps below:
API v23

API v14

API v10

I just updated the lint failure output so it's more clear what is causing the issue.

FYI, commit 9bceeb in conjunction with these changes made the seekbar styling on API v10 look consistent with v14/15 and v23. See below:
API v23

API v15

API v10


Please, add JSS to the available styles.

JSS is nice. :D

As we would like to keep the generator small, I would not add it currently. Maybe if there are some more requests for it?


Add asdf-deno to install instructions list

Closes #80

Context: #80

@imbsky
Thank you for the contribution. I have a question about asdf-plugin repository. Recently the repo has accepted another plugin as deno plugin in a PR https://github.com/asdf-vm/asdf-plugins/pull/104. Does this mean that johnlayton/valdastreet is the official plugin for asdf ecosystem?

I'm also the maintainer/member of the asdf-plugins and asdf-community. In my opinion, the notion of official plugin doesn't quite fit for asdf version manager. Although I will update to asdf-community/asdf-deno, because We have a confident that asdf-community/asdf-deno is tested and checked well.

asdf-community/asdf-deno is actually installed and run, tested with bats-core, and lint with shellcheck on GitHub Actions.

https://github.com/asdf-community/asdf-deno/blob/master/.github/workflows/workflow.yml

Well, the same thing (The fact that asdf-plugins is NOT an official plugin directory) I said is in the README for asdf-plugins...

I updated plugin directory.


deploy agents and indexer to production with latest version

[ ] agents
[ ] indexer

New agents have been successfully deployed and indexer reconfigured to pull xdai transactions


Huge Grammer file is not parsed correctly

I'm currently contributing to https://github.com/arangodb/arangodb but for some reason their grammer.y file does not work with your plugin correctly. Is it wrongly formatted?

#4 should fix this


Silent mode not working on GitHub

Hi, we have the github.silent option set in our our now.json, but the Now bot is still commenting on PRs, like larq/larq#304:

Silent Mode supposed to remove these, right?

Nevermind, the commenting mode looks different from this. Closing.


Itch build fails to run on Linux

When I run spamality.love on Ubuntu, I get a blue window, with "Spamality!" in the title bar, and the following white error text in the window:
Error

jam/assets.lua:25: attempt to call field 'getInfo' (a nil value)

Traceback

jam/assets.lua:25: in function 'loadSprites'
jam/jam.lua:25: in function 'loadAssets'
jam/jam.lua:84: in function 'load'
[C]: in function 'xpcall'

love --version says LOVE 0.10.2 (Super Toast) This is Ubuntu 18.04.

Did you install Love from the official Love Ubuntu PPA, or from Canonical's PPAs?

I... don't know. Is there some easy way I can find out? :)

When running sudo apt update the Love2D PPA should appear in the list (don't know the exact URL).
If you see the string bartbes/love-stable in the log, it means you have Love's PPA added in, otherwise run this:
sudo add-apt-repository ppa:bartbes/love-stable
sudo apt update
sudo apt install love

Also some technical background on this issue:
The official Ubuntu repositories seem to have an outdated version of Love in them, and because Spamality was developed under Love 11.1, which compresses love.filesystem.isDirectory() (and a few others) into the one universal love.filesystem.getInfo() function, which Spamality obviously uses, the crash happens.
This is a problem that could be fixed with a simple polyfill, however the crash itself isn't caused by lovejam but rather the end user using an outdated version of love.


Update 3, no nvme volume after reboot, no E10M20 functionality

I shouldn't have done it... I did it 🙃
Setup:
DS1821+
E10M20-TI with 2x WD Red nvme Operating as R/W Cache for Volume 1
Volume 1: 4x SHR-2 HDD
Volume 2 - Internal nvme slots: 2x 970 Evo Plus SHR-1 Volume

Attempted to Upgrade from Update 1 > Update 3 after having issues on Update 2 and rolling back to Update 1.
Alas, similar or even worse issues on Update 3. Let me recount:
Update 3 applied. No forced reboot - everything operating normally.
Ran script 3.1.62 manually to ensure proper settings. Manually Reboot
hdd_db script scheduled to run at shutdown and boot
After reboot, no nvme volumes appear. Volume 2 missing, HDD Volume 1 Critical no nvme Cache
Drives and E10M20 show in script output but do not have any functionality from this point on. LAN 5 from the E10M20 does appear to show up.
Attempt to force downgrade to update 1 by running the reinstall script and then applying PAT file.
After reboot, this does resolve the issue with Volume 2 it appears and is functional after "update" reboot.
E10M20 still only functional for LAN thus Volume 1 remains critical.
However, even after applying the PAT, info still shows DS remains on update 3.
After rebooting once more, back to entirely broken state.

Update:
I've attempted telnet version downgrade and even the process described here using a spare drive:
https://www.reddit.com/r/synology/comments/140ywsm/how_i_broke_dsm_and_recovered_without_losing_my/
No matter what, after applying the PAT for 7.2U1 and then getting into DSM, we're on Update 3
So I guess the options are:

Figure out a way to downgrade to U1 where everything works perfectly.
or
Make E10M20 and NVME volumes work on U3.

Thoughts?

I've gotten back to Update 1!
After running the reinstall version script and rebooting, we're met with Synology Web Assistant.
I had the thought to block all outbound internet traffic from the DS as I had a hunch it might be auto-applying the Update 2 and Update 3 patches as part of the restore after manually selecting Update 1 PAT.
I was right.
However, the DS does require internet connection to begin the update with local pat. Yikes.
I enabled the firewall policy to allow traffic for a moment, started the upgrade and then blocked all outbound internet traffic.
Success, restore complete on update 1 - data volumes back. A bit of resetup to do since I deleted settings and restored throughout my debugging.
Domains contacted by web assistant that appear relevant:
update7.synology.com
dataupdate7.synology.com
dataautoupdate7.synology.com
So basically I feel like I should never update again lol

So basically I feel like I should never update again lol

A few other people said this after update 2 was released. I've been too scared to update my DS1821+ to update 2 or 3. Though I did update my DS720+ test NAS without any issues.

Domains contacted by web assistant that appear relevant:
update7.synology.com
dataupdate7.synology.com
dataautoupdate7.synology.com

Did you capture more than just the domains?
Do you have auto update enabled for DSM updates?
Many synology.com addresses are configurable/editable in 4 different files on the DS1821+ but "dataupdate7.synology.com" is hardcoded in 2 library files. I can't tell if the libraries only use the hard coded URLs if the URL is not configured in synoinfo.conf - like the drive_db_test_url that we can add to synoinfo.conf to prevent DSM updating the drive databases with drive_db_test_url=<IP_ADDRESS>
And I can't find "dataautoupdate7.synology.com" in any of DSM 7.2 Update 1's files.
Synoinfo.conf contains:
pkgupdate_server="https://pkgupdate7.synology.com"
rss_server="http://update7.synology.com/autoupdate/genRSS.php"
rss_server_ssl="https://update7.synology.com/autoupdate/genRSS.php"
rss_server_v2="https://update7.synology.com/autoupdate/v2/getList"
security_version_server="https://update7.synology.com/securityVersion"
small_info_path="https://update7.synology.com/smallupdate"
update_server="http://update7.synology.com/"
update_server_ssl="https://update7.synology.com/"
updateurl="http://www.synology.com/"
Files containing "dataupdate7.synology.com"
https://dataupdate7.synology.com/ is hardcoded in libhwcontrol.so and libsynoinstallcpp.so

libhwcontrol.so seems to only use https://dataupdate7.synology.com/ to get Synology drive firmware updates.
libsynoinstallcpp.so seems to only use https://dataupdate7.synology.com/ to get DSM small (nano) updates via https://dataupdate7.synology.com/smallupdates.

/usr/share/data_update/data_update.conf:
{
	"config": {
		"download_scheme": "https",
		"db_netloc": "dataupdate7.synology.com",
		"db_ver": "v1",
		"cur_volume": ""
	}
}

/usr/syno.sbin/junior_expansion_pack.sh:
get_update_server_hostname() {
	echo "dataupdate7.synology.com"
}

/usr/syno/bin/securityscan/Define.py:
# Demain name and URL for DB info
DB_URL_DOMAIN_NAME          = "dataupdate7.synology.com"

is there any more word on whether this will work with update 3? the work you've done is top notch, but I'm like you with your 1821+, not brave enough to attempt update past 7.2U1

I updated my DS1821+ a week ago to update 3 and haven't had any issues.
My DS720+ updated itself(!) to update 3 when I ran my Synology_DSM_reinstall script to reinstall DSM 7.2 with update 1.  I have it set to not auto update.

Well that's good news. I would have thought more people would have posted if there were wider-ranging issues with U3 as well, so I may bite the bullet myself over the weekend.

Agreed. I only know of a very small number of people who had issues after updating to update 2 or update 3.

And I can't find "dataautoupdate7.synology.com" in any of DSM 7.2 Update 1's files.

To answer my own question:
Synology HDD/SSD Update Pack Download Site

dataupdate7.synology.com
dataautoupdate7.synology.com
dataautoupdate7.synology.cn (Only for China)

DSM Update Download Site

global.download.synology.com
global.synologydownload.com
update7.synology.com
autoupdate7.synology.com
autoupdate7.synology.cn (Only for China)

Source: https://kb.synology.com/en-my/DSM/tutorial/What_websites_does_Synology_NAS_connect_to_when_running_services_or_updating_software

I recently bought a ds1821. I updated dsm to UPDATE 3 and installed packages. I wanted to use shr-6 ssd cache, so I bought E10M20, and ran script. but like zcpnate, all ssd cache was gone. so I restored script..
are there no option for use E10M20 on UPDATE 3?
how about device name change on script?  ex. E10M20-T1 to E10G18-T2

Do you want the NVMe drives in the E10M20-T1 as cache drives or a volume?
Can you try https://github.com/007revad/Synology_enable_M2_card
Looks like I might need to buy a E10M20-T1 and do some testing.

Just did the update, can confirm no issues with the Samsung NVMe sticks as volume in my 920+. Docker spun right back up and all is good.

Do you want the NVMe drives in the E10M20-T1 as cache drives or a volume?
Can you try https://github.com/007revad/Synology_enable_M2_card
Looks like I might need to buy a E10M20-T1 and do some testing.

I ran Synology_enable_M2_card.sh on my DS1821+ dsm7.2U3 with E10M20-T1,  same phenomenon.
All M2 drives were gone.
I did restoration.

There's a new release candidate version of the script that now correctly enables M.2 cards like the E10M20-T1 for the DS1821+ and DS1621+
https://github.com/007revad/Synology_HDD_db/releases/tag/v3.2.67-RC

Synology_HDD_db v3.2.68 released which now correctly, and simply, enables E10M20-T1, M2D20, M2D18 and M2D17 in models that use device tree and are using DSM 7.2 Update 2 and 3, 7.2.1, 7.2.1 Update 1, 2 and 3.
I also updated Synology_enable_M2_card which does the same but allows you choose which M.2 card to enable, or choose to enable all of them.


d2l-meter-circle

Out of scope:
Animation
RTL
x/y or % choice

A little tip: if you're ever looking to get element screenshots that are sized perfectly for an element, Chrome Dev Tools supports Cmd+Shift+P - Capture node screenshot.

A little tip: if you're ever looking to get element screenshots that are sized perfectly for an element, Chrome Dev Tools supports Cmd+Shift+P - Capture node screenshot.

For the readme I've been using the generated goldens. Maybe this can be automated to load new screenshots.


Implement Discord::Paginator

Implements a paginator utility class for making requests across paginated endpoints seamlessly.
This is useful for:

fetching large volumes of channel history for backfilling a chat log database
a means of examining all of the guilds a client is in if they're in more than 100
listing all of the members of a guild if there are more than 1000

Example:
client.page_channel_messages(381889335278043137, limit: 20, page_size: 5).each do |message|
  p({message.id.to_u64, message.author.username, message.content})
end

(Results)
Closes #140

@meew0 comments from @RX14 in the past suggested it wasn't worth using types other than Int32 in REST. Though, this was before automatic casting of literals was added. I'm fine with changing it back, I think it just got in my way while writing this.

There's no point in using the smallest number literal type possible unless the range is exactly the same. Int32 and Int64 are really the only types that should be used in high level code, the rest are just there for completeness and for low-level programming. If say Int16's broke I don't think anyone would notice for quite some time.

That makes sense. @z64 can you fix the typo and rebase?

Sure thing.

Updated


Bulk Tagging of Findings via API

Is your feature request related to a problem? Please describe
There is no capability to bulk tag findings via the API
Describe the solution you'd like
Ability to bulk tag findings via the API (i.e. propagate tags on tests into findings).
Describe alternatives you've considered
An alternative to doing this via bulk tagging in the API would be to tag findings in the GUI, although that adds additional steps & time to the process
Additional context
The reason we’re looking into, is that it looks like when findings are tagged and then they get pushed to JIRA, those tags carry into JIRA as labels, which can be very useful for automation then in JIRA.)

Can you elaborate on how you'd see the bulk tagging working? I see you mention propagating tags on tests to findings. We added ways to find those findings in search via test-tags:xxx, in the UI filters and also in the api via test__tags or something like that. If there's something missing to work with tags on tests (or engagements, products), let us know.
I assume with bulk tagging via the API you'd want to use the findings endpoint and apply some filters and at the same time specify new tags to be added to those filtered findings? Or how do you see it working?

Hi - We use the reimport API to import scan results and add tags via reimport to the tests to help us search.  I would like to have the option to have the tags in the reimport call get added to the findings in addition to the test being imported.  this is because when findings are tagged and are pushed into JIRA from dojo, the tags go into JIRA as labels which will be useful for us.    another option for bulk tagging findings in addition to just having the reimport test tags get carried onto the findings as well, would be to allow for another type of tag label in an import/reimport call so that you can specify tags get added to just the findings (i think this would be the preferred scenario).  being able to tag findings using import/reimport would be preferred over the findings endpoint as we could do it all in one step.


Error while changing Rate or Unit in Reimburse expenses page - reported by @aneequeahmad

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

Action Performed:

Click on use icon to open setting page.
Click on workspace > Reimburse expenses
Change Track distance Rate or Unit

Expected Result:
Should be able to change the Rate or Unit
Actual Result:
Can't change the Rate or Unit and see error An error occurred while updating the workspace. please try again later
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: 1.1.91-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/43995119/186820719-e7a23e19-9624-42ba-bd48-2d6324dc3450.mov
Expensify/Expensify Issue URL:
Issue reported by: @aneequeahmad
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1661445864439179
View all open jobs on GitHub

Might be related to this change https://github.com/Expensify/App/pull/10374

The Web-E PR for the refactor of Policy_CustomUnit_Update had breaking changes in lib/GetAPI.php to the data structure returned. For the time where Web-E changes are on prod but the corresponding App PR is on not on prod, this is the result. Fortunately the App PR is on staging and should make it to prod shortly, so I think we're fine to just live with this issue in the meantime.

@madmax330 is there any bug reporting job created for this, i can see this is fixed in prod.

@bfitzexpensify Would you please create reporting bonus job on upwork for @aneequeahmad and pay them out? Thank you very much!
@aneequeahmad Thanks for eagle's eye!

Contract created, accepted, paid and ended

🚀

Hmm I doubt if it was eligible for the reporting bonus. There was no PR made to fix this specifically (If I am correct?) and this issue was going to get solved as mentioned above.

@Puneet-here, a bug which is on Production and has priority should be reported ASAP so it can be fixed on priority in a separate PR or existing PR. Does this makes sense ? Thanks

@Puneet-here We discussed internally, the issue was valid at the time of reporting and it was our fault we have messed up the order of deployments and deployed frontend before the backend was ready.
We want to make sure contributors keep testing and discovering bugs and incentivize contributors to do this. The bug was valid and it was not contirbutor's fault it was fixed by backend deploy.
I agree this is an edge case which is probably not clearly described in the contributing guidelines.


Selecting Display Quantity Selector in the products page raises error

Hi
I would like to display the quantity selector in my products overview page, so I edit the block and enable Display Quantity Selector. Upon choosing save, suddenly displays now 1 item (instead of my 7)
After selecting Publish Changes the site displays:
An unexpected error occurred.
Fatal error: Call to a member function getHandle() on null
Page is broken, I had to restore an earlier version of this particular page.
Thanks for looking into this.

Thanks for this, should be fixed by:
https://github.com/concrete5-community-store/community_store/commit/cd5547d40a8f31abd2c7dc2273132a262eac8a17

How cool and fast is that?!
Thanks very much.


Update README: Deploying Bark on AWS SageMaker

Dear Bark Repository Maintainers,
I am writing to request an update to the README file of the Bark repository to provide instructions on how to download and load the required Bark models on a SageMaker instance.
Currently, the README file lacks detailed information on how to deploy the Bark model on AWS SageMaker, which is a popular platform for running machine learning models in production. Many users, including myself, would greatly appreciate a comprehensive guide that covers the necessary steps and best practices for deploying the Bark model on SageMaker.

+1

+1

+1

+1

+1

Hello @gkucsko
I'm wondering if you could help here with the above?
I've created the below python approach for inferencing with AWS SageMaker but sadly missing the way how to provide the speaker name.
Do you have maybe any idea?
import json
import re

from typing import Any

import boto3
import click
import numpy as np
import soundfile as sf

class SageMakerEndpoint:
    def __init__(self, endpoint_name: str):
        self.endpoint_name = endpoint_name
        self._runtime_client = None

    @property
    def runtime_client(self):
        if self._runtime_client is None:
            session = boto3.Session()
            self._runtime_client = session.client("sagemaker-runtime")
        return self._runtime_client

    def query(self, input_data: dict[str, Any]) -> dict[str, Any]:
        """Query the SageMaker endpoint with the given input data."""
        payload = json.dumps(input_data).encode("utf-8")
        try:
            response = self.runtime_client.invoke_endpoint(
                EndpointName=self.endpoint_name,
                ContentType="application/json",
                Body=payload
            )
            return json.loads(response["Body"].read().decode("utf-8"))
        except Exception as e:
            print(f"Error querying endpoint: {e}")
            return {}

def save_audio(audio_data: list, sampling_rate: int, output_file: str):
    """Save the audio data as a WAV file."""
    audio_np = np.array(audio_data).flatten()
    sf.write(output_file, audio_np, sampling_rate)

def split_script(script, max_words=30):
    # Split the script into sentences
    sentences = re.split(r"(?<=[.!?])\s+", script)

    sections = []
    current_section = []
    current_word_count = 0

    for sentence in sentences:
        sentence_word_count = len(sentence.split())

        if current_word_count + sentence_word_count <= max_words:
            current_section.append(sentence)
            current_word_count += sentence_word_count
        else:
            # Add the current section to sections if it's not empty
            if current_section:
                sections.append(" ".join(current_section).strip())

            # Start a new section with the current sentence
            current_section = [sentence]
            current_word_count = sentence_word_count

    # Add any remaining sentences to sections
    if current_section:
        sections.append(" ".join(current_section).strip())

    return sections

@click.command()
@click.option("--endpoint-arn", required=True, help="The ARN of the SageMaker endpoint.")
@click.option("--prompt", required=True, help="The prompt for speech generation.")
@click.option("--output", default="output.wav", help="The output audio file name.")
def main(endpoint_arn: str, prompt: str, output: str):
    """Main function to query the SageMaker endpoint and save the generated audio."""
    endpoint_name = endpoint_arn.split("/")[-1]
    print(f"Endpoint name: {endpoint_name}")

    sagemaker_endpoint = SageMakerEndpoint(endpoint_name)

    sections = split_script(prompt, max_words=30)

    all_audio_data = []
    sampling_rate = None

    for section in sections:
        print(f"Processing section: {section}")
        input_data = {"inputs": section, "history_prompt": "v2/en_speaker_0"}
        response = sagemaker_endpoint.query(input_data)

        if "audio" in response and "sampling_rate" in response:
            audio_data = response["audio"][0]  # Extract the first (and only) list in the audio list
            all_audio_data.extend(audio_data)

            if sampling_rate is None:
                sampling_rate = response["sampling_rate"]
        else:
            print("Unexpected response format from the endpoint.")

    if all_audio_data and sampling_rate:
        save_audio(all_audio_data, sampling_rate, output)
        print(f"Combined audio saved to {output}")
    else:
        print("No audio data generated.")

if __name__ == "__main__":
    main()

Especially the
input_data = {"inputs": section, "history_prompt": "v2/en_speaker_0"}

is not working as I expect it to work, speaker is selected randomly.


⚠ GitLab Server has degraded performance

In 2c0f8d2, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 4205 ms

Resolved: GitLab Server performance has improved in 38f6c6b.


feat: @wagmi/cli

Description
Release @wagmi/cli
Additional Information

[x] I read the contributing docs (if this is your first contribution)

Your ENS/address: awkweb.eth

@SocketSecurity ignore<EMAIL_ADDRESS><EMAIL_ADDRESS>


Another "port"

Hey there, I just got around to cleaning up and open sourcing a library I built for my company which implements most of the methods that zxcvbn uses, as well as some custom.
We needed a Java library that did the same type of work that zxcvbn does, and back in 2014 when I started looking around, I didn't see anything that was in good condition, so I started one from scratch (I know there are some now...).  We've been using it internally for a good while, but I didn't get around to cleaning up, and commenting the code until a few days ago.
I wanted to focus on being highly configurable for different use-cases, and I think I achieved that pretty well, though any feedback is more than welcome.
It can be found here: nbvcxz
Mind putting a link under the "ports" section?

Merged your PR. Thanks again for porting.