MySQL/MariaDB Error: Cannot destructure property 'name' of 'undefined' as it is undefined

OS: Windows 10 Pro 64 bit
MariaDB: 10.3.12
VSCode: 1.50.1
SQLTools: 0.23.0
SQLTools MySQL/MariaDB: 0.2.0
Description
A ~250 line (with comments) SQL script was working correctly in both the MySQL console (mysql command) and in SQLTools (SQLT).
I then added a simple "print status" type command in the script, of the form-
SELECT CONCAT(
	'Output written to: ', @OutputDirectory, @FileName
)  AS  '';

Originally I had a syntax error, so the script was failing in both environments, but having fixed the error, the script runs ok in the console but continues to fail when run from VSCode with the error:
Cannot destructure property 'name' of 'undefined' as it is undefined
Note: If I try to copy+paste the text of the console error into this bug report the result is: [object Object] not sure if that is significant?
To Reproduce
(see attachment)
Expected behavior
Script runs and writes the text to the console:
+-------------------------------------------------------------------------------------+
|                                                                                |
+-------------------------------------------------------------------------------------+
| Output written to: C:/Windows/Temp/der2_cciRefset_RefsetDescriptorDelta_GB_20201024 |
+-------------------------------------------------------------------------------------+

VSTools test case.sql.txt

IssueHunt Summary

Backers (Total: $10.00)

 michaelweissdm ($10.00)

Become a backer now!
Or submit a pull request to get the deposits!
Tips

Checkout the Issuehunt explorer to discover more funded issues.
Need some help from other developers? Add your repositories on IssueHunt to raise funds.

I second this error. The code I'm running on MySQL 8.0 is just three simple UPDATE statements:
UPDATE Employees SET RoleID = 1 WHERE Role = 'administrator';
UPDATE Employees SET RoleID = 2 WHERE Role = 'receptionist';
UPDATE Employees SET RoleID = 3 WHERE Role = 'staff';

I'm getting this error all the time now.  I'll have to switch over to mySQL workbench in the mean time.
Running MariaDB 10.3.25.
Latest VSCode version: 1.51.1.
SQLTools version: 0.23.0.
DROP TABLE IF EXISTS Users; CREATE TABLE Users (     id INT PRIMARY KEY AUTO_INCREMENT,     username VARCHAR(12) NOT NULL,     userpass VARCHAR(12) NOT NULL,     email VARCHAR(50) NOT NULL,     active BOOLEAN NOT NULL DEFAULT FALSE );

Executing SQL results into this error! Opening records from explorer works fine.

Same error here. But this error only occured when using create or drop statements, not for select. (I haven't tested it with other statements)

Same error here. But this error only occured when using create or drop statements, not for select. (I haven't tested it with other statements)

Any updates regarding this error?

Something that I just discovered...SQLTools does not seem to like Commenting. I've been watching this tutorial which introduced me to SQLTools and it works fine in the tutorial but did not for me. https://www.youtube.com/watch?v=Cz3WcZLRaWc
What I was doing however was commenting out the previous tests, to save them so I could go back and look at them later. Then I would put the new code ABOVE the commented text, assuming it would ignore everything that was commented out.
Apparently NOT. When I moved the NEW code underneath the commented out code it worked with out the error we are all experiencing. See my code below.
Interestingly, because I was so familiar with using PHP and MySQL and using PHPMyAdmin to check things I found that even with some of those errors, like the INSERT INTO, it still did do the INSERT, even with the error. (I checked PHPMyAdmin).
So this might help some of you, although it is still a bug, all comments should be ignored. Most of you just post the code that is failing but not your full code do I don't know if you have comments before your code.
If I put the SELECT * right under the -- @BLOCK it fails.
I hope this helps some of you.
-- @BLOCK -- CREATE TABLE Users( --     id INT PRIMARY KEY AUTO_INCREMENT, --     email VARCHAR(255) NOT NULL UNIQUE, --     bio TEXT, --     country VARCHAR(2CREATE TABLE Users( --         id INT PRIMARY KEY AUTO_INCREMENT, --         email VARCHAR(255) NOT NULL UNIQUE, --         bio TEXT, --         country VARCHAR(2) --     );) -- ); -- SELECT * FROM Users;  -- INSERT INTO Users (email, bio, country)  -- VALUES --<EMAIL_ADDRESS>'foo', 'MX'), --<EMAIL_ADDRESS>'Dewi', 'US'), --<EMAIL_ADDRESS>'David', 'US'); SELECT * FROM Users;

Yeah, that could really be the problem - I remember also using comments when the issue occurred.
@LordDewi This is not directly related to this topic, but the reason your code block didn't work is that you only used one backtick (`), which corresponds to an inline code block. For multiline code blocks, you should use three backticks (```).
You can find more information here. ;)

This error occurred to me when I try to execute CREATE TABLE statements. The interesting part is, that table was CREATED. So SQL executed successfully. I think it's a problem with display of results.

I tried to run multiple INSERT queries and got the same error.

Really enjoy SQL tools in vs-code.  Just running basic select statements with 1 join and a where/ group by and the only way not to get the error:
Cannot destructor property 'name' of 'undefined' as it is undefined
Is to take the comments out.  Not to bad on small queries but with my longer complex queries and procedures I have to comment through out the script.

I'm seeing the same in any insert query, they are indeed successful, initially I though something was wrong with the queries, but I guess its with the output of the result.

Getting the same thing with literally just the SQL below, no comments.
`USE testdb;
SHOW TABLES;`
Strangely, SHOW DATABASES; works fine though.

Same issues here. Flatpak VSCode on Ubuntu 21.10.
All of my queries worked fine until I ran an INSERT; with other blocks commented out. After that, even queries that worked before are throwing the Cannot destructure property 'name' error.

This is still an issue, seems like it cannot run anything other than a single statement.
I had something like the following:
USE db;
SELECT ...;
If I remove the USE statement, the query runs fine, otherwise I get the 'cannot destructure ...' error.

See also #651

Did this have a solution? Has anyone successfully removed that warning?
I have problems even with the code CREATE TABLE ...
But the table was created successfully, so what does that mean?

Did this have a solution? Has anyone successfully removed that warning? I have problems even with the code CREATE TABLE ... But the table was created successfully, so what does that mean?

I believe it means the code is running correctly but the extension is failing to parse the data being returned by the server correctly. Unfortunately I don't see any responses from the developer here so it seems this extension has probably been abandoned.

Ops, very sad indeed :(. I'll probably remove this extension. I think everyone wants to know if this is working correctly.
The question remains open until the development team updates. A long while more...

it seems this extension has probably been abandoned.

It hasn't been abandoned. I am one of the new maintainers, and the original developer is still involved as far as his day job and non-work life permits.

Fix has been merged.


Documentation around variables available to zarf packages

Is your feature request related to a problem? Please describe.
I was trying to identify what zarf variables are automatically available to zarf package creators, e.g. something like ###ZARF_PKG_NAME#### or ###ZARF_PKG_NAMESPACE### but couldn't find any documentation on it.

@Madeline-UX here is another example of Docs <> Examples <> Walkthroughs information architecture mixups.
@runyontr there are some docs here: https://docs.zarf.dev/examples/package-variables/#how-to-use-create-time-package-variables

My initial thoughts would be an addition to make docs-and-schema to add a go run main.go internal gen-variables-docs (or something along those lines)


【bug修复】修复缺少对SkyWalking源码引用声明的问题

【issue号】#164
【修改原因】项目中使用或修改SkyWalking的源码但缺少相应的声明
【修改内容】感谢SkyWalking团队在阿帕奇软件基金会(ASF)的贡献。我们的项目在演进的过程中，确实曾经使用或修改过贵团队的源码，但由于我们在项目开源方面缺乏经验，导致使用或修改贵团队源码的时候，没有及时添加相关的声明。对此，我们将按以下计划作出整改：

对项目中使用或修改SkyWalking的源码的类添加Apache Software Foundation (ASF)头信息，并将相关声明添加到LICENSE文件中
对1.中涉及的源码进行审视，将非必要的源码使用或修改移除，但仍然会保留Apache Software Foundation (ASF)头信息
对代码中误用SkyWalking的Api，以及使用了SkyWalking字样命名的属性名、类名以及文件夹的名称进行调整

本次pr涉及上述计划中的第1步
【检查者】@yangyshdan
【用例描述】暂无用例
【自测情况】本地测试通过
【影响范围】LICENSE文件，代码中使用或修改过SkyWalking源码的内容

Thanks for updating, but there are several very important things you missed here

Please update all description in English, we are tracking this as Apache SkyWalking PMC, so, all updates would be archived privately in the foundation mail list. We need this readable to the board.
You missed several important files, such as nearly most in https://github.com/huaweicloud/java-mesh/tree/develop/javamesh-agentcore/javamesh-agentcore-core/src/main/java/com/huawei/javamesh/core. The whole core is copied or modified from SkyWalking agent codebases. From Initialization, PluginLoader, ServiceManger, Intercepter core. I would say many files should keep Apache SkyWalking's APLv2.
One another important thing, the whole agent core design, plugin mechanism, runtime structure are all from Apache SkyWalking. This should be declared very clearly. If you compare this project with SkyWalking, from naming style, package structure, how to define pom.xml, how to load service, plugin, extension, are all unchanged. The design is a part of License about, not just the files themselves.

Typically, including(not all)

https://github.com/huaweicloud/java-mesh/blob/develop/javamesh-agentcore/javamesh-agentcore-core/src/main/java/com/huawei/javamesh/core/agent/common/BeforeResult.java
https://github.com/huaweicloud/java-mesh/blob/develop/javamesh-agentcore/javamesh-agentcore-core/src/main/java/com/huawei/javamesh/core/service/ServiceManager.java
https://github.com/huaweicloud/java-mesh/blob/228e93ba64/javamesh-agentcore/javamesh-agentcore-core/src/main/java/com/huawei/javamesh/core/agent/common/BeforeResult.java(comparing to SkyWalking's MethodInterceptResult).
https://github.com/huaweicloud/java-mesh/blob/228e93ba64/javamesh-agentcore/javamesh-agentcore-core/src/main/java/com/huawei/javamesh/core/agent/definition/MethodInterceptPoint.java comparing to SkyWalking's InstanceMethodsInterceptPoint, AbstractConstructorInterceptPoint, StaticMethodsInterceptPoint. All this kind of naming is only used in SkyWalking. You can see interceptorPoint is a very unique thing in SkyWalking document(https://skywalking.apache.org/docs/skywalking-java/latest/en/setup/service-agent/java-agent/java-plugin-development-guide/#bootstrap-class-instrumentation).
ConstructorInterceptor, InstanceMethodInterceptor, StaticMethodInterceptor comparing to InstanceConstructorInterceptor, InstanceMethodsAroundInterceptor, StaticMethodsAroundInterceptor. They are nearly same except the naming and removing some parameters.

I can you changed the  interceptor runtime mechanism from SkyWalking's delegating to byte-buddy advisor, which is different. But the code pattern and naming are very closing to the original version.

Hi @wu-sheng ， thanks for pointing these things out.  We are taking this issue seriously.  We are doing a thorough inspection with the whole java-agent-core code base now. Will reply soon. Thanks.

Hi @Wu-sheng, would you please take a review at the latest PR above?
The PR above shall addressed your concern. This PR fixes:

The javaagent's plugin design architecture is referred to Apache Skywalking. This needs to be mentioned in README.
Some classes from the agent core project are copied from Apache Skywalking, but with wrong declaration way.  Correct License header needs to be updated in these files.

Also PR description has been translated in English.
Some comments here for your information. After thorough inspection we found that, due to the reference to the Apache SkyWalking for the plugin instrumentation  function, many classes in the related module are copied, or partially copied, or follow SkyWalking’s design patterns, from Apache SkyWalking’s code bases. These files of this project are typically located in com.huawei.javamesh.agent.core.agent package. Other classes from plugin module that perform the code instrumenting are partially effected as well. We have listed these files in the LICENSE, and updated these files’ the legal header accordingly, which shall address your concern.
I think several thing important to be mentioned here, which we ask for your opinion too.

“javaagent's plugin design architecture reference the Apache Skywalking” is added in README Declaration section. Please Correct us if there are something we are missing.
One specific thing you mentioned is that plugin loader is similar with Aapache Skywalking. We assume you are talking about the plugin loading process is similar, because there is no specific pluginloader class. We think it is fair enough to point out that the plugin model definition and its loading process is different in java-mesh project from the APM project’s plugin mechanism such as Pinpoint, Skywalking, etc.  These modules are designed and implemented by this project team independently. So we would like to keep these files in com.huawei.javamesh.core.plugin package unchanged.   Your thoughts please? Please check the plugin document from the list below:

https://github.com/huaweicloud/java-mesh/blob/develop/docs/dev-guide/dev_plugin_module.md#组成分类
https://github.com/huaweicloud/java-mesh/blob/develop/docs/binary-docs/java-mesh-classloader-arch.png

I think right now, most of copied files are covered now. We may do further check from time to time. Right now, I think this is good to merge. Thank you for making this out quickly.


Maxspeed field missing in traffic_sign=maxspeed

Traffic_sign=maxspeed is not proposing the maxspeed field, despite it being in the presets https://github.com/openstreetmap/id-tagging-schema/blob/main/data/presets/traffic_sign/maxspeed.json#L5 (and shown correctly in iD)

Okay, I've put those back in 5.0.


Frame header without length

What does it mean to not include the frame length in the header? Are those 31 bits all zero or is the header 31 bits shorter?

And while what is bit 0 (R) supposed to mean.

Since the fact that frame length is present or not is inferred from the underlying protocol, the frame length can be completely excluded (as opposed to set to 0) for protocols that already support framing. So, the frame header will be 31 bit shorter in such cases.
The frame encoder code does this determination.

For efficiency, only 31 bits of the frame length is used. The high order bit is the sign bit for signed types. Java does not support unsigned types and inflating to a long is not necessary. So, it is easiest to simply ignore the sign bit.

Should the limitations of Java directly influence the length of this field? Especially since this protocol is runtime and language agnostic.

Normally, I would agree.
However, 2GB for a single frame is very large. Practically speaking, it is highly unlikely that even that size of a frame would be a good idea due to head of line blocking. By contrast, HTTP/2 uses a normal size of 24-bits for frame length (with the ability to go higher if needed via settings after init). Same strategy could be employed, but is unnecessary at this stage.

I'm considering this one answered. If anyone disagrees with the answer, respond back.


space_traveler_Hub : set up your Kanban board

Link to the Capstone  project
https://github.com/manzitresor/space_traveler_Hub/projects/2
while doing this project we are two people :

Manzi
Yusuf

Hi @manzitresor, @yin-ka
Approved 🍏 🟢
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights

Kanban board setup correctly ✔✔
Cards are assigned correctly and equally :heavy_check_mark:

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Update Vlc.DotNet.Core.Interops.nuspec

Add line file src="..\build\Vlc.DotNet.Core.Interops\Release - AnyCPU - .Net 4.5\Vlc.DotNet.Core.Interops.dll" target="lib\net45\AnyCPU\Vlc.DotNet.Core.Interops.dll" / to <files ... /> section.
For supprting .Net version 4.6.2.

Thanks for your contribution.
Would you mind to explain the reason for this PR? We don't have a project in 4.6.2, so you are copying the 4.5 library into the 462 folder, why? Are you facing issues referencing the .net 4.5 library from your 4.6.2 project?
Also, why just for this project?

I've been running into this problem where when I try to install
Vlc.DotNet.FOO from Nuget, I get this -
[image: Inline image 1]
This is whether I am building against 4.5, or my preferred 4.6.2.
I was hoping this might resolve the issue but then again I know nothing
about NuGet. For now I've been using a work-around in just referencing the
DLL files after extracting and dropping them into a static location.
It's not ideal, but it works I guess...
This is in VS 2017, with the following NuGet Configuration -
[image: Inline image 2]
So I don't know if the problem is with the project, VS 2017, my
configuration, NuGet itself, or some combination of all of the above. This
was just a shot in the dark to try and resolve it.
On Sun, Sep 17, 2017 at 4:38 AM, Jérémy VIGNELLES<EMAIL_ADDRESS>wrote:

Thanks for your contribution.
Would you mind to explain the reason for this PR? We don't have a project
in 4.6.2, so you are copying the 4.5 library into the 462 folder, why? Are
you facing issues referencing the .net 4.5 library from your 4.6.2 project?
Also, why just for this project?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ZeBobo5/Vlc.DotNet/pull/300#issuecomment-330032337,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGuNsH33JhvLKXbv6ynk7Px3jLsT1KOoks5sjOiXgaJpZM4PaFu-
.

--
Days Since VB6 : 0. Longest Run : 4
Seconds Since Change Request : 0; Longest Run : NaN.
I'm beginning to count the problems a well placed thread can't resolve...

Sorry, but pictures aren't displayed on github. I have a project at work where I'm using this library in a 4.6.2 project without any issue. Could you send the error message as text, or host the picture on the web and link it here?

Sure, sorry - The build output text -
Running restore with 4 concurrent jobs.
Reading project file C:\Users\Will\Documents\Visual Studio
2017\Projects\WpfApp1\WpfApp1\WpfApp1.csproj.
Restoring packages for C:\Users\Will\Documents\Visual Studio
2017\Projects\WpfApp1\WpfApp1\WpfApp1.csproj...
Restoring packages for .NETFramework,Version=v4.5...
Resolving conflicts for .NETFramework,Version=v4.5...
Scanning packages for runtime.json files...
Restoring packages for .NETFramework,Version=v4.5/win...
Resolving conflicts for .NETFramework,Version=v4.5/win...
Restoring packages for .NETFramework,Version=v4.5/win-x64...
Resolving conflicts for .NETFramework,Version=v4.5/win-x64...
Restoring packages for .NETFramework,Version=v4.5/win-x86...
Resolving conflicts for .NETFramework,Version=v4.5/win-x86...
Checking compatibility of packages on .NETFramework,Version=v4.5.
Checking compatibility for WpfApp1 <IP_ADDRESS> with .NETFramework,Version=v4.5.
All packages and projects are compatible with .NETFramework,Version=v4.5.
Checking compatibility of packages on .NETFramework,Version=v4.5 (win).
Checking compatibility for WpfApp1 <IP_ADDRESS> with .NETFramework,Version=v4.5
(win).
All packages and projects are compatible with .NETFramework,Version=v4.5
(win).
Checking compatibility of packages on .NETFramework,Version=v4.5 (win-x64).
Checking compatibility for WpfApp1 <IP_ADDRESS> with .NETFramework,Version=v4.5
(win-x64).
All packages and projects are compatible with .NETFramework,Version=v4.5
(win-x64).
Checking compatibility of packages on .NETFramework,Version=v4.5 (win-x86).
Checking compatibility for WpfApp1 <IP_ADDRESS> with .NETFramework,Version=v4.5
(win-x86).
All packages and projects are compatible with .NETFramework,Version=v4.5
(win-x86).
Running restore with 4 concurrent jobs.
Reading project file C:\Users\Will\Documents\Visual Studio
2017\Projects\WpfApp1\WpfApp1\WpfApp1.csproj.
Restoring packages for C:\Users\Will\Documents\Visual Studio
2017\Projects\WpfApp1\WpfApp1\WpfApp1.csproj...
Restoring packages for .NETFramework,Version=v4.5...
Resolving conflicts for .NETFramework,Version=v4.5...
Scanning packages for runtime.json files...
Restoring packages for .NETFramework,Version=v4.5/win...
Resolving conflicts for .NETFramework,Version=v4.5/win...
Restoring packages for .NETFramework,Version=v4.5/win-x64...
Resolving conflicts for .NETFramework,Version=v4.5/win-x64...
Restoring packages for .NETFramework,Version=v4.5/win-x86...
Resolving conflicts for .NETFramework,Version=v4.5/win-x86...
Checking compatibility of packages on .NETFramework,Version=v4.5.
Checking compatibility for WpfApp1 1.0.0 with .NETFramework,Version=v4.5.
Checking compatibility for Vlc.DotNet.Core.Interops 2.1.154 with
.NETFramework,Version=v4.5.
Package Vlc.DotNet.Core.Interops 2.1.154 is not compatible with net45
(.NETFramework,Version=v4.5). Package Vlc.DotNet.Core.Interops 2.1.154
supports:

net20 (.NETFramework,Version=v2.0)
net35 (.NETFramework,Version=v3.5)
net40 (.NETFramework,Version=v4.0)
net45 (.NETFramework,Version=v4.5)
Incompatible packages: 1
Checking compatibility of packages on .NETFramework,Version=v4.5 (win).
Checking compatibility for WpfApp1 1.0.0 with .NETFramework,Version=v4.5
(win).
Checking compatibility for Vlc.DotNet.Core.Interops 2.1.154 with
.NETFramework,Version=v4.5 (win).
Package Vlc.DotNet.Core.Interops 2.1.154 is not compatible with net45
(.NETFramework,Version=v4.5) / win. Package Vlc.DotNet.Core.Interops
2.1.154 supports:
net20 (.NETFramework,Version=v2.0)
net35 (.NETFramework,Version=v3.5)
net40 (.NETFramework,Version=v4.0)
net45 (.NETFramework,Version=v4.5)
Incompatible packages: 1
Checking compatibility of packages on .NETFramework,Version=v4.5 (win-x64).
Checking compatibility for WpfApp1 1.0.0 with .NETFramework,Version=v4.5
(win-x64).
Checking compatibility for Vlc.DotNet.Core.Interops 2.1.154 with
.NETFramework,Version=v4.5 (win-x64).
Package Vlc.DotNet.Core.Interops 2.1.154 is not compatible with net45
(.NETFramework,Version=v4.5) / win-x64. Package Vlc.DotNet.Core.Interops
2.1.154 supports:
net20 (.NETFramework,Version=v2.0)
net35 (.NETFramework,Version=v3.5)
net40 (.NETFramework,Version=v4.0)
net45 (.NETFramework,Version=v4.5)
Incompatible packages: 1
Checking compatibility of packages on .NETFramework,Version=v4.5 (win-x86).
Checking compatibility for WpfApp1 1.0.0 with .NETFramework,Version=v4.5
(win-x86).
Checking compatibility for Vlc.DotNet.Core.Interops 2.1.154 with
.NETFramework,Version=v4.5 (win-x86).
Package Vlc.DotNet.Core.Interops 2.1.154 is not compatible with net45
(.NETFramework,Version=v4.5) / win-x86. Package Vlc.DotNet.Core.Interops
2.1.154 supports:
net20 (.NETFramework,Version=v2.0)
net35 (.NETFramework,Version=v3.5)
net40 (.NETFramework,Version=v4.0)
net45 (.NETFramework,Version=v4.5)
Incompatible packages: 1
Package restore failed. Rolling back package changes for 'WpfApp1'.
Time Elapsed: 00:00:00.0400958
========== Finished ==========

Then the NuGet package configuration, which is the only thing I can think
of that is relevant, is under Options/Nuget Package Manager/General/Package
Management/Default package management format, which is set to
PackageReference.
On Sun, Sep 17, 2017 at 4:48 AM, Jérémy VIGNELLES<EMAIL_ADDRESS>wrote:

Sorry, but pictures aren't displayed on github. I have a project at work
where I'm using this library in a 4.6.2 project without any issue. Could
you send the error message as text, or host the picture on the web and link
it here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ZeBobo5/Vlc.DotNet/pull/300#issuecomment-330032827,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGuNsFZnyPtqIjJUoKzVSlsCttlFv3Hhks5sjOr7gaJpZM4PaFu-
.

--
Days Since VB6 : 0. Longest Run : 4
Seconds Since Change Request : 0; Longest Run : NaN.
I'm beginning to count the problems a well placed thread can't resolve...

I have already been through this kind of messages one day. It was caused by a bogous version of NuGet package manager. Which version of VS are you using? Which version of NuGet? (I'm trying to find some reference links in the meantime)

VS 2017 Community. How do I check the NuGet version? The CLI says that the
Package Manager Console Host version is <IP_ADDRESS>45.
I don't know if that falls in line with the NuGet UI or not.
On Sun, Sep 17, 2017 at 4:58 AM, Jérémy VIGNELLES<EMAIL_ADDRESS>wrote:

I have already been through this kind of messages one day. It was caused
by a bogous version of NuGet package manager. Which version of VS are you
using? Which version of NuGet? (I'm trying to find some reference links in
the meantime)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ZeBobo5/Vlc.DotNet/pull/300#issuecomment-330033250,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGuNsGtebluoUCxMluyKZAgAVdYkmxAqks5sjO1ggaJpZM4PaFu-
.

--
Days Since VB6 : 0. Longest Run : 4
Seconds Since Change Request : 0; Longest Run : NaN.
I'm beginning to count the problems a well placed thread can't resolve...

Oh, after some searches, I found that you were the one that opened #276 . Did you try reinstalling VS or with a colleague maybe? Did you try clearing your package cache?

Did not try reinstalling VS. I've updated it a few times ( and yes, I was
the one who opened that ticket ). I did try clearing the cache today (
recently learned about that ).
Unfortunately, I don't have the time right now to do an uninstall/reinstall
of VS 2017.
Also, I work solo from home so I don't really have any colleagues. I could
try installing VS on my work laptop and see what that does. I hadn't
thought of that until just this moment...
On Sun, Sep 17, 2017 at 5:08 AM, Jérémy VIGNELLES<EMAIL_ADDRESS>wrote:

Oh, after some searches, I found that you were the one that opened #276
https://github.com/ZeBobo5/Vlc.DotNet/issues/276 . Did you try
reinstalling VS or with a colleague maybe? Did you try clearing your
package cache?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ZeBobo5/Vlc.DotNet/pull/300#issuecomment-330033683,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGuNsCLj9j_UU9Fz-W1UHSclIYqvXlumks5sjO-vgaJpZM4PaFu-
.

--
Days Since VB6 : 0. Longest Run : 4
Seconds Since Change Request : 0; Longest Run : NaN.
I'm beginning to count the problems a well placed thread can't resolve...

Closing this so that we can continue discussion in #276


Umbrella Issue for Plugin System

Plugin System
There has been discussion of a "plugin system" that would all users of zarf to build custom additions to the Zarf ecosystem that would allow new components in Zarf.yaml files to be recognized.
Questions

What does the plugin need to implement?  Just a package function and a deploy function?  Do we require the plugin to generate SBOMs?
How does Zarf discover the plugins available?
How does Zarf bring that plugin to deployment?  How do we deal with different architectures of the computer running the plugin?  How will the Zarf controller need to be adjusted to leverage plugins?
How does Zarf run the plugin (e.g. within a container) and how does this impact the needed capabilities in both the package environment and the deploy environment?
How does someone making a plugin get started?  Are we providing a scaffold/sample like Kubebuilder does with controllers?

Action Items

[ ] Create ADR for plugin system
[ ] Implement Plugin System hooks within Zarf
[ ] Build toy plugin for testing/demo
[ ] Add plugin system to docs
[ ] Add tests for plugin system

Related:

https://github.com/defenseunicorns/zarf/issues/939

How I see this working (and what I plan on experimenting with over the break):

a component can specify a number of plugins (name to tbd), with each one having some set of the following:

the image to use
the command to use on package create
the command to use on package deploy
maybe env variables for each?

on package create, Dagger SDK would be used to perform the operations, there may be an option to fallback to the host binaries if not available
there would need to be some expected output format or file outputs for zarf to bundle for the other side
on package deploy, push the image to the registry and schedule a K8s Job, perform data injected and use the specified command to create some effect
probably have the ability to receive outputs from this job to provide to Zarf as #1137
clean up after the job runs and move on with life


expose tables in API

I'm writing a RAM stub in assembly for an embedded system that I'm going to use to quickly CRC regions of flash memory as part of the process of flashing an MCU. I was going to use this crate to generate CRC lookup tables that I would also load via the debug probe at a known address to accelerate this, but the table-access functionality is private — I just need the whole table that the crate already generates.
I can work around this -- I've just copy-pasted the crc8 and crc8_table functions into my crate, but for my use-case it'd be a nice, useful addition to this crate's API.
Would you accept a PR to expose the generated tables and table generation functions? I'd like to:

Either make the table field of Crc public or add a pub const fn Crc::table(&self) -> I::Table
Make the table module and its functions public

+1
(I also want this :))


Windows

Why is the file not being downloaded from the torrent file? Windows 10

Why is the file not being downloaded from the torrent file? Windows 10

Hi!  what do you mean? does the script don't work for you? can  you attach the output? Thanks  :)

The script is the same as yours on readme.md .
Code:
from PyBitTorrent import TorrentClient
client = TorrentClient('1.torrent')
client.start()

And the file is not being downloaded? What is the output? Have you tried to
use the example script?
On Sun, Jan 7, 2024, 19:34 Некит @.***> wrote:

The script is the same as yours on readme.md .
Code:
from PyBitTorrent import TorrentClient
client = TorrentClient('1.torrent')
client.start()
—
Reply to this email directly, view it on GitHub
https://github.com/gaffner/PyBitTorrent/issues/20#issuecomment-1880120681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK52WW3PPLP5RY7UZLNDQXDYNLMC3AVCNFSM6AAAAABBOEH5ASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGEZDANRYGE
.
You are receiving this because you were assigned.Message ID:
@.***>

I guess you got along ;)


TypeError: shape value must be int iterator

When i  run deploy_ssd.py,i meet this problem:

Traceback (most recent call last):
File "deploy_ssd.py", line 78, in
graph, lib, params = compiler.build(net, target, {"data": dshape}, params=params)
File "/home/pi/tvm/nnvm/python/nnvm/compiler/build_module.py", line 279, in build
graph, params = precompute_prune(graph, params)
File "/home/pi/tvm/nnvm/python/nnvm/compiler/build_module.py", line 396, in precompute_prune
out_arrs = _run_graph(pre_graph, params)
File "/home/pi/tvm/nnvm/python/nnvm/compiler/build_module.py", line 345, in _run_graph
graph, libmod, _ = build(graph, target, shape, dtype)
File "/home/pi/tvm/nnvm/python/nnvm/compiler/build_module.py", line 246, in build
raise TypeError("shape value must be int iterator")
TypeError: shape value must be int iterator
Thank you. @tqchen

@XiaSunny
The error basically tell that there are non int values in the shape dictionary argument to build.
Can you share the code snippet ?
Also suggest to raise this general discussion @ https://discuss.tvm.ai/

Thanks for your reply.My code snippnet is:
deploy_ssd.txt

let us move general discussion to https://discuss.tvm.ai/


implement parser for SlamSearch

SlamSearch is the search syntax used by all search fields in SlamData. It's loosely inspired by Google, JIRA, and Github search syntaxes.
This could potentially be a separate project, e.g. slamdata/purescript-search.
Grammar
RAW_CHAR := (any character except: ',', '.', '~', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '+', '=', '<', '>', '[', ']')

RAW_TEXT := RAW_CHAR+

QUOTED_CHAR := (any character except: '"') | '\' (any character)

QUOTED_TEXT := '"' QUOTED_CHAR* '"'

TEXT := RAW_TEXT | QUOTED_TEXT

INFIELD_PREDICATE := (TEXT ':')+ SIMPLE_PREDICATE

WILDCARD := '*'

TAG := '@' TEXT

VALUE := RANGE | TEXT | WILDCARD | TAG

RANGE := TEXT '..' TEXT

SEARCH_TERM_SIMPLE := INFIELD_PREDICATE | SIMPLE_PREDICATE | TEXT

INCLUDE := '+'? SEARCH_TERM_SIMPLE

EXCLUDE := '-' SEARCH_TERM_SIMPLE

SEARCH_TERM := INCLUDE | EXCLUDE

SEARCH_QUERY := SEARCH_TERM*

SIMPLE_PREDICATE := CONTAINS_PREDICATE | EQ_PREDICATE |
  GT_PREDICATE | GTE_PREDICATE | LT_PREDICATE |
  LTE_PREDICATE | NEQ_PREDICATE | LIKE_PREDICATE

CONTAINS_PREDICATE := VALUE

EQ_PREDICATE := '=' VALUE

GT_PREDICATE := '>' VALUE

GTE_PREDICATE := '>=' VALUE

LT_PREDICATE := '<' VALUE

LTE_PREDICATE := '<=' VALUE

NEQ_PREDICATE := '!=' VALUE | '<>' VALUE

LIKE_PREDICATE := '~' QUOTED_TEXT

Examples
Simple Searches

Search for everything containing the text "foo":
foo
+foo

Search for everything not containing the text "foo":
-foo

Predicate Searches

Search for everything containing a foo field whose value is greater than 2:
foo:>2

Search for everything containing a foo field whose value falls inside the range 0..2:
foo:0..2

Search for everything that does not contain a foo field whose value falls inside the range 0..2:
-foo:0..2

Search for everything that contains a foo field which contains a bar field which contains the text baz:
foo:bar:baz

Search for everything that contains a baz field matching the SQL LIKE pattern _foo%bar:
baz:~"_foo%bar"

Search for everything that contains anything matching the SQL LIKE pattern _foo%bar:
~"_foo%bar"

Search for everything that contains anything greater than 2:
>2

API
The parser should parse a search query into an AST, which describes the search in a type-safe fashion. Different components can then interpret the AST differently.
Error Correction
Users will not expect if a search fails because it doesn't match the grammar. While it is important to communicate that failure to the user in most applications (e.g. a red background in the search bar), we may want to allow the user to run the search anyway. This will require "error correction", i.e. the ability to give a "best effort" parse of the query. No Purescript parser combinators have this ability, so we'll either have to write something quick and dirty, or take a different approach.

Other search grammars:

Google Search
YouTrack Search
Github Search
JIRA Search


Olm bundle

Ref. ART-3676
It turned out that some refactoring was enough. This PR cleans up the code:

EXTRAS_ADVISORY and METADATA_ADVISORY params are never used
Elliott is no longer needed
Only a single Doozer invocation is left for olm-bundle:rebase-and-build; therefore, expanding pyartcd with a new pipeline seemed like an overkill
The groovy library file has been removed, what was left in it has been moved to the 'Build bundles' stage within the Jenkinsfile

The job has been tested in a hack space: https://saml.buildvm.hosts.prod.psi.bos.redhat.com:8888/job/hack/job/dpaolell/job/olm_bundle/29/console

/lgtm


Code for ignoring maximized windows?

I really need Gridy to stop ignoring maximized windows, it's just my workflow. In the past I've tried removing code, but always end up with a bug or two.
So please could you tell me what code should I comment out/delete, so Gridy will work on maximized windows, too?

In fact, you need to add code, not delete.
Maximized windows cannot be sized, so they need to be restored before they are sized.
You need to add this piece of code:
; Restore window if it is maximized
WinGet MinMax, MinMax, A
If( MinMax <> 0 )
  WinRestore A

To the SizeWindow function, so it looks like this:
SizeWindow( XOffset="", YOffset="" ) {
  Global GridSizeX, GridSizeY, HomeW, HomeH

  WinGet WinID, ID, A

  ; Restore window if it is maximized
  WinGet MinMax, MinMax, A
  If( MinMax <> 0 )
    WinRestore A

  WinGet MinMax, MinMax, A
  If( MinMax <> 0 or !IsWindowResizable( WinID ) )
    Return

  WinGetPos WX, WY, WWidth, WHeight, A
  NewWX := WX
  NewWY := WY

  ; Resize to Home size
  If( XOffset = "" or YOffset = "" ) {
    NewWWidth  := HomeW
    NewWHeight := HomeH
  }

  ; Resize by one unit
  Else {
    NewWWidth  := Round( WWidth  / GridSizeX ) * GridSizeX + ( GridSizeX*XOffset )
    NewWHeight := Round( WHeight / GridSizeY ) * GridSizeY + ( GridSizeY*YOffset )
  }

  HandleEdge( NewWX, NewWY, NewWWidth, NewWHeight, 12 )
  WinMove A,,%NewWX%,%NewWY%,%NewWWidth%, %NewWHeight%
}

Thank you, but I'm not sure it works. I open Notepad, maximize it and press Win+Numpad1-9 and nothing happens as before.
Of course, it works when Notepad is not maximized.

Oh - thats something else. I thought you meant the resize with keyboard (Ctrl+Shift+Arrows). This is what I showed above. For the Preset keys, I need to take a look - should be easy also.

Ok - try to add the same piece of code in the RestorePreset function:
RestorePreset( presetId ) {
  Global

  If( presetId < 1 or presetId > 12 )
    Return

  ; Extract X,Y,W,H for that preset from the INI key PositionN
  StringSplit PresetVector, Position%presetId%, `,

  ; If the height or width are invalid
  If( PresetVector3 <= 0 or PresetVector4 <= 0 )
    Return

  WinGet WinID, ID, A

  ; Restore window if it is maximized
  WinGet MinMax, MinMax, A
  If( MinMax == 1 )
    WinRestore A

  WinGet MinMax, MinMax, A
  If( MinMax <> 0 )
    Return

  If( IsWindowResizable( WinID ) )
    WinMove A,,%PresetVector1%,%PresetVector2%,%PresetVector3%,%PresetVector4%
  Else
    WinMove A,,%PresetVector1%,%PresetVector2%
}

Serenity now!
Thank you very much, it works. Great little tool.


chore(nextjs): Refactor Next.js integration using the isomorphic @clerk/backend

Type of change

[x] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[x] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Packages affected

[ ] @clerk/clerk-js
[ ] @clerk/clerk-react
[x] @clerk/nextjs
[ ] @clerk/remix
[ ] @clerk/types
[ ] @clerk/themes
[ ] @clerk/localizations
[ ] @clerk/clerk-expo
[ ] @clerk/backend
[ ] @clerk/backend-core
[ ] @clerk/clerk-sdk-node
[ ] @clerk/edge
[ ] @clerk/shared
[ ] build/tooling/chore

Description

[x] npm test runs as expected.
[x] npm run build runs as expected.

[x] Leverage the new isomorphic @clerk/backend package and reduce the complexity of our Next.js integration.
[x] Use the new terminology of RequestState and AuthObject in @clerk/nextjs

For now we updated only the Next.js > 12.2 integration paths assuming that customers use Next.js Middleware. Updating the legacy paths might follow.

This refactoring also fixes #585

@nikosdouvlis Is this ready for final review?

As discussed, closing this one in favor of https://github.com/clerkinc/javascript/pull/630


Bug fix for issue #748, riak-debug error thrown during execution

The riak_ee/rel/files/riak-debug file throws the following error during execution:
........E......EE......................dev2/bin/riak-debug: line 863: [: too many arguments

This error originates from the following line:
    if [ -n $exclude ]; then

To fix this, the $exclude must be in quotation marks as follows:
    if [ -n "$exclude" ]; then

The fix is applied in this PR.

Oy... I correctly wrapped every other if [ -n ...
:cake:

:+1: 09ed9f3, please open backports for 2.0 and 2.1 if necessary.

@cmeiklejohn backports :) thanks!
2.0:  https://github.com/basho/riak/pull/750
2.1: https://github.com/basho/riak/pull/751

Hey @jenagraham I took a look at both and it looks like it scooped up some extra changes.  Would you mind submitting with the single riak-debug change please?

@jonmeredith Thanks for the catch!  :)  I've added two new pull requests for each back port against the specific branch.  Let me know if that works out better.
2.0:  https://github.com/basho/riak/pull/752
2.1:  https://github.com/basho/riak/pull/753


Fix display of large components

Add CSS to allow for oversized components to scroll in all directions. See issue #1225.
Issue: Overflowing portions of large components are inaccessible when using Centered plugin.
What I did
I added overflow: auto to the outer wrapper and margin: auto to a new inner wrapper.
How to test
Create a component larger than your viewport and check that you can stroll both up and down to see the entire component.

It works wonders! Thanks you, you are awesome @su-narthur!
Sorry it took so long to view and merge, totally my fault!


Remove unused translations

Currently the run of the plugin gives me a nice list:
❯ npx ember-intl-analyzer
[1/4] 🔍  Finding JS and HBS files...
[2/4] 🔍  Searching for translations keys in JS and HBS files...
[3/4] ⚙   Checking for unused translations...
[4/4] ⚙   Checking for missing translations...

 ⚠   Found 211 unused translations!

   - Identification (used in cs.json)
   - Login (used in cs.json)
   - Password (used in cs.json)
   - Submit (used in cs.json)
   - admin.companies.address (used in cs.json)
...

But now what? I would have to go and manually remove every one of them. Simple shell script might do, but especially when using structured translations (like the last one in my example) this might get tricky.

A fix option has now been released as of 3.1.0 so am closing this issue.


Release 2.0.1

Changes for Version 2.0.1

Coverage decreased (-0.01%) to 98.4% when pulling cd8baf451c215ebfaa2f90164796533d711db396 on 2.0.1 into d97c804059c1c03f74c4bdf56d604cd4ebe7b66d on master.


Is requery nonblocking from top to bottom?

We all know that the JDBC is blocking. Are all threads nonblocking with requery nonblocking api?

Check out io.requery.async.CompletableEntityStore
If you use Kotlin, you can make custom suspend method for non-blocking

There are several options to get non blocking behavior, one option is the Java 8 CompletableEntityStore, the others are the RxJava 2.0 ReactiveEntityStore. Internally the JDBC API is used which unfortunately is blocking, but this hidden through those APIs through the use of pooled or dedicated threads all of which is configurable of course.


Toonami Aftermath Schedule is Incomplete

Guide
https://iptv-org.github.io/epg/guides/us.xml
Description
the schedule's only listed from 12pm to 7pm each day, even tho T.A. is a 24-hour station.

The guide isn’t showing anything now and I really hope this will get fixed since I added this channel on kodi.

Guide should be showing the full 24 hrs now


684 add conditionalities to the references tab

Context
This adds some conditionality to the references tab.
Scenarios
Received, interviewing, offered
Assuming we launch this after 28 September, applications in these statuses will all have used the new references process.
Show references tab. Only show referee details. Do not show references even if we received them last cycle.
Body text reads “References will be requested when the candidate accepts an offer. Do not contact these people before then without permission from the candidate.” No subheadings.
Conditions pending, recruited, deferred
Show references tab.
Body text says how many are received and requested. Subheadings are used.
References field
References which used the previous process should use the ‘Does the candidate have the potential to teach?’ version.
References from the new process should use the ‘References’ version.
Which references to show
If this application used the old references process, the provider should only see the 2 references which the candidate selected.
If this application used the new references process, the provider should see all received and requested references.
Rejected, declined, application withdrawn, conditions not met, offer withdrawn
Do not show references tab.
Old cycle applications
For Rejected, declined, application withdrawn, conditions not met, offer we should do same rule above.
Pending conditions, recruited, deferred should be showing the selected references only.

 Add conditionalities to the references tab


Fix Windows compilation for Crystal 1.13+

Some of the internal definitions are no longer necessary and clash with a newer stdlib, especially crystal-lang/crystal#14501 which replaces C file descriptors with their underlying Win32 handles.
spec/reader_spec.cr will run on Windows too, however it lacks the proper fiber synchronization. Also it appears REPLy expects the input to use \r\n on Windows only, but the specs do not account for that.
What was the reason behind making Ctrl+Enter exclusive to Windows? Isn't it easier to just strip the CRLF sequences at the beginning of Reply::CharReader#parse_escape_sequence?

Hello HertzDevil,
Thank you for this merge request!
In effect, spec/reader_spec is now running, but it needs to be fixed on Windows.
On Linux, the alt-enter shortcut allows users to input a new line without submitting the input. However, on Windows, this shortcut puts the terminal in fullscreen mode, and it seems impossible to change this behavior. That's why I implemented the shortcut on ctrl-enter on Windows. However, on Linux, ctrl-enter cannot be distinguished from enter because they share the same key code. Ditto for shift-enter.

Alt+Enter can be disabled in Windows Terminal, not sure about the older console host


refactor(project): replaces lodash with native Array methods

Fixes #693

Coverage increased (+0.5%) to 71.008% when pulling ded022f427026861decd620ad45eb523da7d7d0d on stalniy:refactor/lodash into fa4f2d0d076120f380f475eb71cbc585c4e4197b on troolee:develop.

Coverage increased (+0.5%) to 71.008% when pulling 49ad47dde21d08d9cdd8e19da9c3749040289c66 on stalniy:refactor/lodash into fa4f2d0d076120f380f475eb71cbc585c4e4197b on troolee:develop.

any updates on this?

I think the drivers have fallen off the bandwagon - not seeing any updates nor taking serious bug fixes in for a long time now. That's a problem when you only have 1 or 2 with approval power... what's the point in making fixes if no-one around to accept them ? They should open this up if they don't want to this codebase to die...

Hey @stalniy . Thanks for putting this together! I'm not sure yet that we want to make the leap to ES6. I think we could get rid of lodash and us ES2015 functions, or we could maintain your setup as a separate branch, but I don't think it should be a requirement for gridstack yet. How would you feel about these solutions?

When could we expect this PR to be merged in? We want as smaller size as possible, and having whole Lodash as dependency for simple operations adds redundant 500+Kbs of it.
We'd like to see either Lodash dropped completely, or, at least, require only modules you need from Lodash, not whole library, please.

Hey, @creage . As I had mentioned, I want this to be a separate build off of gridstack and not actually part of the master. I'm fine using only the necessary lodash modules if someone wants to put in a PR for that.

Can this be accepted and released as v0.3.1?

@adumesny did this work okay when you used it? @stalniy can you update the PR to fix the conflicts? I'd be happy to merge this in.

@radiolips yes it works great, been using it for couple months now. the main conflict were the removal of the dist/ content (trivial) and some small code changes since the original PR was made. I'm not sure how to modify his PR to give him credit for his work, otherwise I would be happy to fix the conflicts...

Hi guys,
I’m currently on vacation and won’t be able to work on this till the next Thursday. So, go ahead!

@stalniy are you sure? It's already been open nearly a year (sorry), it can wait one additional week if you want to handle it. Also, have a great vacation!

@adumesny Do you still have time to update and re-submit this PR with the conflicts removed? If so, I'd be happy to get this merged in.

let's wait for @stalniy to update his...

@adumesny , @radiolips I merged develop branch. All tests passed. Please check whether everthing is ok

Coverage increased (+0.4%) to 69.03% when pulling f6c1d9115c294f377bfc88842aa68fe1daf3cda0 on stalniy:refactor/lodash into 10619c30eb9b5fa5ab0d6b39130b109649b15095 on gridstack:develop.

For all IE. The rest supports this funxtion. The full compatibility https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
There are some find occurrences which can be replaced with some (some is supported from IE9) but I didn’t want to force people to include 2 polyfills for IE8 for example
That’s why used Boolean(array.find(...))

@stalniy I hate to do this to you, but could you update your PR one-more-time? I updated lodash in the last release, which required me to update several of the demos, config files, and readmes. Could you update them again, and I'll merge this in?

would that be in 0.4.1 then ? I see you released 0.4 recently. thanks.

@radiolips I won’t. You can do it yourself if you think this PR is important.


[8.x] Allow string length validation on numeric strings

Don't try to be smart about the attribute type when validating an attribute explicitly marked as "string".
This allows a validator like: 'string|numeric|min:4|max:10' to evaluate the min/max as string length instead of numeric value.
Fixes #33921

The string and numeric rules generally should not be combined.


could not access file "$libdir/postgis-2.4"

I'm using rails API with this mdillon/postgis:9.6 and got this error stacktrace:
ActiveRecord::StatementInvalid: PG::UndefinedFile: ERROR:  could not access file "$libdir/postgis-2.4": No such file or directory
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
             (SELECT c.collname FROM pg_collation c, pg_type t
               WHERE c.oid = a.attcollation AND t.oid = a.atttypid AND a.attcollation <> t.typcollation),
                     col_description(a.attrelid, a.attnum) AS comment
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"acts"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum

	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `async_exec'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `block in query'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:589:in `block in log'
	from /usr/local/bundle/gems/activesupport-5.0.2/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:583:in `log'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:87:in `query'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:739:in `column_definitions'
	from /usr/local/bundle/gems/activerecord-postgis-adapter-4.0.3/lib/active_record/connection_adapters/postgis/schema_statements.rb:9:in `columns'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/schema_cache.rb:56:in `columns'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/connection_adapters/schema_cache.rb:62:in `columns_hash'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/model_schema.rb:442:in `load_schema!'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/attributes.rb:233:in `load_schema!'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/attribute_decorators.rb:28:in `load_schema!'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/model_schema.rb:437:in `load_schema'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/model_schema.rb:349:in `attribute_types'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/model_schema.rb:368:in `type_for_attribute'
... 16 levels...
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/associations/association.rb:97:in `association_scope'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/associations/association.rb:86:in `scope'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/associations/collection_association.rb:459:in `scope'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/associations/collection_proxy.rb:36:in `initialize'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/relation/delegation.rb:101:in `new'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/relation/delegation.rb:101:in `create'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/associations/collection_association.rb:47:in `reader'
	from /usr/local/bundle/gems/activerecord-5.0.2/lib/active_record/associations/builder/association.rb:111:in `acts'
	from (irb):5
	from /usr/local/bundle/gems/railties-5.0.2/lib/rails/commands/console.rb:65:in `start'
	from /usr/local/bundle/gems/railties-5.0.2/lib/rails/commands/console_helper.rb:9:in `start'
	from /usr/local/bundle/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:78:in `console'
	from /usr/local/bundle/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
	from /usr/local/bundle/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
	from bin/rails:10:in `require'
	from bin/rails:10:in `<main>'

Btw, I have already used that hack (it doesn't help):
docker exec some-postgis update-postgis.sh

It wasn't a problem some time ago. But then you updated the 9.6 (I understand you are trying to have the version names that are used by postgres - but it's still weird to get errors from this docker container because of its updates - this situation happened not the first time with your container - that's definitely a problem!)...

Looks like docker exec some-postgis update-postgis.sh fix works just for default db (named postgres?)
So I had to do this:
psql -d your_database_name -c 'alter extension postgis update'

Now it's ok but there's still a problem with versioning, I've created a separate issue for that


VectorDrawable: parser error

When I use a pre-lollipop device application displays the following exception:
VectorDrawable: parser error
org.xmlpull.v1.XmlPullParserException: Binary XML file line #2<menu_vector> tag requires viewportWidth > 0
at it.michelelacorte.elasticprogressbar.VectorCompat.VectorDrawable.updateStateFromTypedArray(VectorDrawable.java:355)
...
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class it.michelelacorte.elasticprogressbar.ElasticDownloadView
This does not happen when I use the library Guégan Thibault (Tibolte) with exactly the same scenario, however the level of customization that has added you, I think is excellent and really want to use this library in the project I'm currently developing.
Sorry for my English and thank you very much for your great work.

First of all thanks for the tip @Ceaggar , now you would say that API uses?
However I will try to solve it as soon as possible, I'm glad you like it!!!

I am using 'it.michelelacorte.elasticprogressbar:library:1.0.4'
In the following devices:

LG-E450g with android 4.1.2 (error)
LG-D855 device with android 4.4.2 (error)
Samsung GT-I9190 with android 5.1.1 (extremely well)
LG Nexus 5 with android 6.0 (extremely well, too).

thanks for the speed of your response.

@Ceaggar  Thanks to you, I'll try to solve as soon as possible!

@Ceaggar I found a solution for the versions pre - lollipop the intro seems to trouble since the vector drawable is "designed " a runtime, it was enough to eliminate it, tomorrow I think I put a minor update for you : D

Thank you very much!

I've updated the library , thanks again , and if you have any other problem do not hesitate to report it!


Default values aren't shown in docs

I'm noticing that the "@default" flag in the code comments is not translating into a default value shown in the docs.  From the docs, it reads as though there is no default value, which is confusing.
For example, default value for containerPort (80) in LoadBalancedFargateService:
https://github.com/awslabs/aws-cdk/blob/master/packages/%40aws-cdk/aws-ecs/lib/load-balanced-fargate-service.ts#L62
Is not shown in the docs:
<EMAIL_ADDRESS>

And the (abstract), though technically true, doesn't really help either

On 7 Nov 2018, at 19:55, Clare Liguori<EMAIL_ADDRESS>wrote:
I'm noticing that the "@default" flag in the code comments is not translating into a default value shown in the docs. From the docs, it reads as though there is no default value, which is confusing.
For example, default value for containerPort (80) in LoadBalancedFargateService:
https://github.com/awslabs/aws-cdk/blob/master/packages/%40aws-cdk/aws-ecs/lib/load-balanced-fargate-service.ts#L62
Is not shown in the docs:
<EMAIL_ADDRESS>—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Remove DeppySolver wrapper and export internal solver instead

Closes #161

@ncdc rebased. Please take another look.


Update homepage in gemspec

cukes.info redirects to https://cucumber.io/

Well spotted @alexmuller!


Notifications from 2+ accounts

I am not being notified of new emails in my other gmail account when signed into both.
Inboxer 1.0.1
Electron 1.7.9
darwin x64 17.3.0

I want to close this project. Take a look at the explanation: #101
If you still need this project, please, fork the repo.


Few update on common process script

Revert change of TypeSpecProjectDirectory path match as it's used to load tspconfig firstly
Stop execution if returning failure after call sync script
Add repo variable assignment in local path scenario

//CC: @weshaggard

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

@weshaggard , should I merge this PR manually or it would be merged automatically? But I don't see auto-merge is appended to this PR.

@weshaggard , should I merge this PR manually or it would be merged automatically? But I don't see auto-merge is appended to this PR.

Yes the auto-merge label no longer works so we need to manually merge these for now.


Is MacPorts GTK4 installation supported?

I just installed GTK4 through MacPorts, but Xcode complaints:

That's weird, the only thing that comes to mind is that maybe you haven't installed pkgconfig?
sudo port install pkgconfig
Does Xcode still manage to build and run your test app successfully despite the warning?

@stackotter The build cannot continue, saying:

I am afraid that this is an issue in SPM having lack of support for MacPorts: https://github.com/apple/swift-package-manager/issues/6716

PKGConfig installed but doesn't work:

@stackotter I did a clean build but the issue still exists:

The definition in CGtk does not have an option for anything except brew / apt:

The providers in the manifest are only used by SwiftPM when generating the suggestion for how to install the package if it's missing, they don't actually affect how SwiftPM searches for the dependency on the system.
What's the output of pkg-config --libs gtk4?

Ok, that looks normal. Trying running these three commands, it could be that Xcode is doing something weird.
git clone https://github.com/stackotter/swift-cross-ui
cd swift-cross-ui
swift run RandomNumberGeneratorExample

@stackotter
ErrorReport20230718-1702.txt

Ah, it looks like macports is overriding a system version of a package. The Xcode version of ncurses is expecting to import the Xcode version of unctrl, but Macports' version of unctrl (which is different) is getting priority, so ncurses's header can't be compiled.
I have a feeling that I've gotten similar errors in the past (perhaps when trying to use the macports version of gtk4) but I can't remember how I resolved them (maybe I didn't).
This issue seems to be happening for non-SwiftPM projects too, I found this forum thread: https://trac.macports.org/ticket/59992
You could try their suggestion which is to manually edit /opt/local/include/unctrl.h to comment out all lines that reference SCREEN.
If that doesn't work, you could maybe try uninstalling macport's ncurses?
Otherwise, you may have to try using Homebrew's gtk4 package instead.

@stackotter It's weird that I can't find unctrl through port.

Editing unctrl.h doesn't work.
It will be a great pain to shift all my MacPort installations to HomeBrew.
MacPorts provides official mirrors in Mainland China and is extremely stable as a package manager.
GitHub is severely DNS-polluted here, and the entire Brew depends on GitHub.
Maybe I really have to give up using this wonderful package.

After editing unctrl.h what errors do you get? If they're the same you should try a clean build with swift package clean.
Sorry to hear that homebrew isn't an option for you :( I want to do my best to make this package available to the most people, so I think it's important that it works with macports (I just haven't tested with it in the past)

I think unctrl is part of ncurses. You can try removing it with sudo port uninstall ncurses (I think you typoed it in the screenshot you sent)

@stackotter   The new error report:
ErrorOutput-20230718-1725.txt

I think unctrl is part of ncurses. You can try removing it with sudo port uninstall ncurses (I think you typoed it in the screenshot you sent)

Looks like ncurses is a hard dependency... My local web development will be screwed if removing that.
The following versions of ncurses are currently installed:
 1) ncurses @6.3_0
 2) ncurses @6.4_0 (active)
Enter option(s) [1-2/all]: all
--->  Uninstalling ncurses @6.3_0
Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.
The following ports will break:
 gettext @<IP_ADDRESS>_2
 readline @8.1.000_0
 texinfo @6.8_0
 sqlite3 @3.36.0_0
 lame @3.100_1
 screen @4.8.0_1
 htop @3.1.1_0
 ncdu @1.16_0
 php80 @8.0.12_0
 libedit @20210910-3.1_1
 cmake @3.21.4_0
 kerberos5 @1.19.2_1
 rtorrent @0.9.8_1
 bash @5.1.8_0
 sqlite3 @3.37.0_0
 python310 @3.10.0_3
 python39 @3.9.9_0
 bash @5.1.12_0
 htop @3.1.2_0
 php81 @8.1.0_0
 php80 @8.0.13_0
 cmake @3.22.1_0
 python310 @3.10.1_0
 llvm-13 @13.0.0_0
 sqlite3 @3.37.1_0
 php80 @8.0.14_0
 php81 @8.1.1_0
 bash @5.1.16_0
 sqlite3 @3.37.2_0
 python39 @3.9.10_0
 python310 @3.10.2_0
 sqlite3 @3.38.0_0
 cmake @3.22.2_0
 llvm-13 @13.0.1_0
 ncdu @2.1_0
 php80 @8.0.16_0
 php81 @8.1.3_0
 screen @4.9.0_1
 sqlite3 @3.38.2_0
 python310 @3.10.4_0
 cmake @3.22.3_0
 kerberos5 @1.19.3_0
 llvm-13 @13.0.1_1
 ncdu @2.1.1_0

Yay I'm glad that it's building now!
Re the laggy GUI: Open an issue for that, that is not meant to be happening.


Add cmake to prerequisite list. 1.7.1

Stock arch
Add cmake to prerequisite list for urldedupe building.

Done here https://github.com/six2dez/reconftw/commit/e6820cea716a4a0862a929dafd515ded978ef3d1 Please run ./install.sh again
Thanks!


Remember my sources (feature request)

Most of the time I want to search for something in the compendium, I want to search only through the things I own. Sometimes I just found something in one section and want to search with the same sources in another.
Here my ideas:

Everytime a user searches something, you could save either all parameters or just the sources in a file or something to that user. And whenever they do another search apply those saved parameters. You could make this optional in the menu under a point "Remember my sources/search options" for those that like it the way it currently is

OR

In the options menu, give every user the option to define "default search options". Either for just sources or all options. Optional with those presaved sources you could also make a button at the top of the sources list like "use default/predefined" that applies the in the options defined selection

I prefere the first option but both are fine.
The reason to why the focus on the sources is simply, because there are so many. The list of sources gets greater all the time and filtering throught the ones you own takes ages, and I don't see it becoming better without an upgrade like this. All other search options are very short in size and very quick.

Does removing sources in the browser config not satisfy your requirements?

I don't see options to remove sources anywhere in the options. 🤔

That is 95% of what I want ... how did I miss that😅
I think it still would be nice if it remembered the sources selected when you go from for example equipment to feats, but thats not that important. Thank you for helping


Enrolling Intune managed endpoints

Hi, this article only explains how to enroll devices using Configuration Manager. Although it lists the individual settings required, there should be a guide on using Intune to configure devices for enrollment.
This is necessary for customers who have fully adopted Modern Management with Intune.

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

ID: 113ad599-a2ac-a376-70d7-86088c90f06e
Version Independent ID: 3e781a76-9e2c-50f8-7afa-a52cb944008b
Content: Enroll devices in Desktop Analytics - Configuration Manager
Content Source: sccm/desktop-analytics/enroll-devices.md
Product: configuration-manager
Technology: configmgr-other
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Thanks @BHoggs for taking the time to provide feedback on Desktop Analytics! Right now, Desktop Analytics only integrates with Configuration Manager.
This is an interesting feature idea, and I want to make sure it gets directly into the hands of the engineering team. Fortunately, we've got dedicated channels for that very purpose. :) See the Product feedback section in our docs. I think it’s important that you submit it directly, because that allows you to receive notifications and more closely monitor the progress.
I'm closing this issue as there's nothing actionable for docs at this time.

Hi @aczechowski - isn't Desktop Analytics supposed to be the direct successor to Windows Analytics?
We're already using Windows Analytics with Intune-Managed endpoints so I would have thought this would definitely be supported!

@BHoggs - Desktop Analtyics is the replacement for Windows Analytics. While Desktop Analytics builds on top of the concepts introduced with Windows Analytics, but the requirements have evolved. For our initial release, ConfigMgr is a requirement to enroll devices in Desktop Analytics. While support for Intune managed devices is in our backlog, we can't comment on timelines.


Step 5.4.2 fails

When running the playbook (the devel branch) against ubuntu 22.04 server, I get the following:
qemu.ubuntu22: TASK [ansible-lockdown.ubuntu22-cis : 5.4.2 | PATCH | Ensure lockout for failed password attempts is configured | Set faillock common-auth] ***
    qemu.ubuntu22: changed: [ubuntu22-test7-acceptance] => (item=***'regexp': 'auth\\s+required\\s+pam_faillock.so', 'line': 'auth    required            pam_faillock.so preauth', 'before': '^.*pam_unix.so'***)
    qemu.ubuntu22: changed: [ubuntu22-test7-acceptance] => (item=***'regexp': 'auth\\s+[default=die]\\s+pam_faillock.so', 'line': 'auth    [default=die]       pam_faillock.so authfail', 'after': '^.*pam_unix.so'***)
    qemu.ubuntu22: fatal: [ubuntu22-test7-acceptance]: FAILED! => ***"msg": "Incorrect sudo password"***

I'm running this in packer against a standard ubuntu iso. Previous versions (cis_release branch) seemed to work with the same configuration.
There is nothing configured, only extra allowed_sshd users.

Thank you for raising this bug, I will see if i can replicate it today in testing.  As of now I have not been able to reproduce the error in my environment.

I did use the devel branch.

This was added to PR [#22] and is now in devel feel free to test out and let us know.

Same error raised when applying this configure through SSH with sudo.
the only proper way i found is this one below, assuming that one line does not go without the other.
blockinfile module need to use marks to be idempotent, so staying with lineinfile did the same job like that
      loop:
        - {
            regexp: 'auth\s+required\s+pam_faillock.so',
            line: "auth    required            pam_faillock.so preauth",
            before: "^.*pam_unix.so",
          }
        - {
            regexp: 'auth\s+[default=die]\s+pam_faillock.so\nauth\s+sufficient\s+pam_faillock.so',
            line: "auth    [default=die]       pam_faillock.so authfail\nauth    sufficient          pam_faillock.so authsucc",
            after: "^.*pam_unix.so",
          }

I am still seeing this issue as of devel @ 970e649f513509fbc20bb93e52a37945dad4ae83
Running the playbook as such
$ ansible-playbook -k -K site.yml

Am I doing something wrong still? Seems like it only works applying the recommendation from binou-31


[WIP] Fixes #2069: Allow to scan products offline

Description
A prompt to download the CSV file at the start and saving it in batches of 15k products to the local database, in order to allow offline scanning.
Related issues and discussion
#fixes #2069

That sounds like a reasonable solution, since the download is not an issue. On first install, we could display a progress report on the home. The refresh option would be in the settings.

I was thinking to make a new tab in the nav menu - Offline Products. Navigating to that will let the user to initiate download for the offline package of products and storing to database as well. (both will be done in the background, with progress in the notification bar)
We can also show different packages of products based on country/language, user will then have the option to select the version of products he wants for the offline compatibility as well.
Also, we can show a label on the home page if no offline product packet is downloaded yet.
@teolemon What do you think about it? Should I proceed with this idea?

That sounds good to me.
I would do the background thing first, and then refine your proposed UX.

I've built the branch and started the download, and now it's extracting data. There should probably be a visual feedback in the navbar (by updating the color of the icon and or the content of the text)

2019-02-02 23:43:52.299 8913-9924/openfoodfacts.github.scrachx.openfood E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
    Process: openfoodfacts.github.scrachx.openfood, PID: 8913
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:354)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: android.database.sqlite.SQLiteException: no such table: OFFLINE_PRODUCT (code 1 SQLITE_ERROR): , while compiling: INSERT OR REPLACE INTO "OFFLINE_PRODUCT" ("_id","TITLE","BRANDS","BARCODE","QUANTITY","NUTRITION_GRADE") VALUES (?,?,?,?,?,?)
        at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
        at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:903)
        at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:514)
        at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
        at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
        at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
        at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1086)
        at org.greenrobot.greendao.database.StandardDatabase.compileStatement(StandardDatabase.java:67)
        at org.greenrobot.greendao.internal.TableStatements.getInsertOrReplaceStatement(TableStatements.java:68)
        at org.greenrobot.greendao.AbstractDao.insertOrReplaceInTx(AbstractDao.java:249)
        at org.greenrobot.greendao.AbstractDao.insertOrReplaceInTx(AbstractDao.java:259)
        at openfoodfacts.github.scrachx.openfood.jobs.ExtractOfflineProductService$saveCSVToDb.doInBackground(ExtractOfflineProductService.java:216)
        at openfoodfacts.github.scrachx.openfood.jobs.ExtractOfflineProductService$saveCSVToDb.doInBackground(ExtractOfflineProductService.java:138)
        at android.os.AsyncTask$2.call(AsyncTask.java:333)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

@prashantkh19 perhaps a missing GreenDAO migration ?

I cleaned the cache, and got to "No remaining download", so it seems to work.

@prashantkh19 perhaps a missing GreenDAO migration ?

yeah, a simple reinstall should work.

I've built the branch and started the download, and now it's extracting data. There should probably be a visual feedback in the navbar (by updating the color of the icon and or the content of the text)

2019-02-02 23:43:52.299 8913-9924/openfoodfacts.github.scrachx.openfood E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
    Process: openfoodfacts.github.scrachx.openfood, PID: 8913
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:354)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: android.database.sqlite.SQLiteException: no such table: OFFLINE_PRODUCT (code 1 SQLITE_ERROR): , while compiling: INSERT OR REPLACE INTO "OFFLINE_PRODUCT" ("_id","TITLE","BRANDS","BARCODE","QUANTITY","NUTRITION_GRADE") VALUES (?,?,?,?,?,?)
        at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
        at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:903)
        at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:514)
        at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
        at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
        at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
        at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1086)
        at org.greenrobot.greendao.database.StandardDatabase.compileStatement(StandardDatabase.java:67)
        at org.greenrobot.greendao.internal.TableStatements.getInsertOrReplaceStatement(TableStatements.java:68)
        at org.greenrobot.greendao.AbstractDao.insertOrReplaceInTx(AbstractDao.java:249)
        at org.greenrobot.greendao.AbstractDao.insertOrReplaceInTx(AbstractDao.java:259)
        at openfoodfacts.github.scrachx.openfood.jobs.ExtractOfflineProductService$saveCSVToDb.doInBackground(ExtractOfflineProductService.java:216)
        at openfoodfacts.github.scrachx.openfood.jobs.ExtractOfflineProductService$saveCSVToDb.doInBackground(ExtractOfflineProductService.java:138)
        at android.os.AsyncTask$2.call(AsyncTask.java:333)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

I would see some way to handle this exception so that app won't crash if this happens.

I didn't spot any. I'm on Android Pie, where notification behaviour might have changed. Going to check again.
The exception will likely happen for anyone upgrading from a previous version of Open Food Facts.

I just checked again. I see progress in LogCat, but nothing in notifications.

I just checked again. I see progress in LogCat, but nothing in notifications.

Okay then I will modify notifications for android pie.

Apart from this, do you have any other suggestion?

Probably already in your plans

I would probably create a real activity showing progress report rather than a menu item that you have to click twice and that doesn't change to indicate progress

Longer term:

ability to delete the offline db and re-download it (or even a scheduled task every month)
have a small version (the current one) and full versions (without images) for a whole country

@teolemon review please..
Screenshot:

Download https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler/3.2.0/databinding-compiler-3.2.0.jar
:app:compileOpfDebugJavaWithJavac/home/travis/build/openfoodfacts/openfoodfacts-androidapp/app/src/main/java/openfoodfacts/github/scrachx/openfood/fragments/ProductsDownloadFragment.java:79: error: cannot find symbol
                        dDownloadButton.setImageResource(R.drawable.baseline_autorenew_24);
                                                                   ^
  symbol:   variable baseline_autorenew_24
  location: class drawable
/home/travis/build/openfoodfacts/openfoodfacts-androidapp/app/src/main/java/openfoodfacts/github/scrachx/openfood/fragments/ProductsDownloadFragment.java:108: error: cannot find symbol
                        eExtractButton.setImageResource(R.drawable.baseline_autorenew_24);
                                                                  ^
  symbol:   variable baseline_autorenew_24
  location: class drawable
/home/travis/build/openfoodfacts/openfoodfacts-androidapp/app/src/main/java/openfoodfacts/github/scrachx/openfood/fragments/ProductsDownloadFragment.java:118: error: cannot find symbol
                        eExtractButton.setImageResource(R.drawable.baseline_autorenew_24);
                                                                  ^
  symbol:   variable baseline_autorenew_24
  location: class drawable
/home/travis/build/openfoodfacts/openfoodfacts-androidapp/app/src/main/java/openfoodfacts/github/scrachx/openfood/fragments/ProductsDownloadFragment.java:153: error: cannot find symbol
            dDownloadButton.setImageResource(R.drawable.baseline_autorenew_24);
                                                       ^
  symbol:   variable baseline_autorenew_24
  location: class drawable
/home/travis/build/openfoodfacts/openfoodfacts-androidapp/app/src/main/java/openfoodfacts/github/scrachx/openfood/fragments/ProductsDownloadFragment.java:159: error: cannot find symbol
                eExtractButton.setImageResource(R.drawable.baseline_autorenew_24);
                                                          ^
  symbol:   variable baseline_autorenew_24
  location: class drawable
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
 FAILED

@prashantkh19

@prashantkh19 little merge conflict to solve.
I was thinking of:

combining this view and the Offline Edit view from the menu in the sidebar.
first card is a simplified version of your card that automatically saves after a successful download
putting a manual toggle to enable offline mode (in case of existing but bad network)

@teolemon

I will combine both the views as you said.
Can you explain your second point?
I will put the toggle button in the preferences and will show a dialog box in home activity in case of no network.

@teolemon

That sounds like a reasonable solution, since the download is not an issue. On first install, we could display a progress report on the home. The refresh option would be in the settings.

I was thinking to make a new tab in the nav menu - Offline Products. Navigating to that will let the user to initiate download for the offline package of products and storing to database as well. (both will be done in the background, with progress in the notification bar)
We can also show different packages of products based on country/language, user will then have the option to select the version of products he wants for the offline compatibility as well.
Also, we can show a label on the home page if no offline product packet is downloaded yet.
@teolemon What do you think about it? Should I proceed with this idea?

@teolemon Can we have the different zipped file (for both versions, i.e small and full) for products of different countries, so as to list it on the product download page?
I am thinking to display a list of zipped files, selecting one will let the user choose the version(small or full) and then the download process will start.

@prashantkh19

conflicts to merge
I'm going to write a script to generate all the variants
2nd point: I think the file should auto-install when downloaded, and thus I think the two parts should be one
Users don't need to see two menus (one for editing, and one for reading), they just expect the app to work offline. But we can merge them later.

Here's the link to the zipped larger file
http://world.openfoodfacts.org/data/offline/large.zip

We're releasing the next version next week. Any chance the feature could make it ?

We're releasing the next version next week. Any chance the feature could make it?

I am sorry, I have my exams starting next week. I would be able to work on it after March 16 only.

good luck 🤞
I have fixed the CSV export for NOVA which wasn't exported correctly:
https://world.openfoodfacts.org/data/offline/en.openfoodfacts.org.products.small.csv.zip

In terms of chronology, we should try to load from the local db first, then if the network query is successful, replace the offline result by the result of the online result

Here's what we're doing on iOS to let the user know about the Offline mode

@prashantkh19

Small merge conflict to fix to get the latest trunk updates

@prashantkh19 There are 4 files to reconcile against master

I'd like to work on this if it's okay with everyone. My understanding is that the PR currently deals with downloading the data and storing it locally. My goal will be to:

Implement offline scanning based on the locally stored data
Try fetching the data online in parallel and refresh the view if necessary
Align the data download UX with what has been done in iOS

@elouataoui sound good to me.
Note that on iOS, we download the whole world, like here, and refresh automatically on a monthly basis. We added that message while loading in home, so that people are aware that there is an offline mode, and try it :-)

Hello @prashantkh19,
one question: why did you add android:largeHeap="true" in https://github.com/prashantkh19/openfoodfacts-androidapp/blob/2069/app/src/main/AndroidManifest.xml ?
Is it required ?
https://stackoverflow.com/questions/27396892/what-are-advantages-of-setting-largeheap-to-true

=======
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

    <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginBottom="50dp">

        <androidx.cardview.widget.CardView
                android:id="@+id/message_container_card_view"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/spacing_small"
                android:layout_marginRight="@dimen/spacing_small"
                android:layout_marginBottom="8dp"
                android:elevation="1dp"
                android:padding="@dimen/padding_large"
                app:layout_constraintBottom_toTopOf="@+id/buttonSendAll"
                app:layout_constraintHorizontal_bias="0.0"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toTopOf="parent">

            <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/white">

                <ImageButton
                        android:id="@+id/message_dismiss_icon"
                        android:layout_width="@dimen/button_height_too_short"
                        android:layout_height="@dimen/button_height_too_short"
                        android:layout_alignParentTop="true"
                        android:layout_alignParentEnd="true"
                        android:layout_alignParentRight="true"
                        android:layout_margin="@dimen/padding_short"
                        android:background="@color/white"
                        app:srcCompat="@drawable/ic_action_cross" />

                <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical">

                    <TextView
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:gravity="center"
                            android:padding="@dimen/padding_short"
                            android:text="@string/title_info_dialog"
                            android:textAlignment="center"
                            android:textSize="@dimen/font_large"
                            android:textStyle="bold" />

                    <TextView
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:gravity="center"
                            android:padding="@dimen/padding_normal"
                            android:text="@string/text_offline_info_dialog"
                            android:textAlignment="center"
                            android:textSize="@dimen/font_normal" />
                </LinearLayout>
            </RelativeLayout>
        </androidx.cardview.widget.CardView>

        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

            <ImageView
                    android:id="@+id/noDataImg"
                    android:layout_width="@dimen/img_width_height"
                    android:layout_height="@dimen/img_width_height"
                    android:layout_below="@id/noDataText"
                    android:layout_centerHorizontal="true"
                    android:layout_margin="@dimen/padding_normal"
                    android:paddingTop="@dimen/padding_large"
                    android:visibility="visible"
                    app:srcCompat="@drawable/ic_cloud_done" />

            <TextView
                    android:id="@+id/noDataText"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_margin="@dimen/padding_normal"
                    android:gravity="center"
                    android:text="@string/no_offline_data"
                    android:textColor="@color/grey_500"
                    android:textSize="35sp"
                    android:visibility="visible" />

        </RelativeLayout>

        <LinearLayout
                android:id="@+id/linearLayout2"
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_marginBottom="8dp"
                android:orientation="vertical"
                app:layout_constraintBottom_toTopOf="@+id/buttonSendAll"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent">

            <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/listOfflineSave"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_margin="@dimen/spacing_normal"
                    tools:listitem="@layout/save_list_item" />
        </LinearLayout>

        <openfoodfacts.github.scrachx.openfood.utils.CustomButtonView
                android:id="@+id/buttonSendAll"
                style="@style/DefaultButtonText"
                android:layout_width="match_parent"
                android:layout_height="70dp"
                android:layout_gravity="center"
                android:layout_margin="@dimen/spacing_normal"
                android:layout_marginStart="14dp"
                android:layout_marginEnd="14dp"
                android:background="@drawable/rounded_button"
                android:text="@string/txtSendAll"
                android:textSize="@dimen/font_normal"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent" />

    </androidx.constraintlayout.widget.ConstraintLayout>

    <include layout="@layout/navigation_bottom" />
</RelativeLayout>
>>>>>>> master

@prashantkh19 @deniger I just rebased. I hope I didn't break anything. 🤞

/Users/pierre/Desktop/openfoodfacts-androidapp-2069/app/src/main/res/layout/offline_list_item.xml:10: AAPT: error: resource color/green_700 (aka openfoodfacts.github.scrachx.openfood:color/green_700) not found.

error: package com.opencsv.bean does not exist

error: package android.support.annotation does not exist |
-- | --
error: package android.support.v7.widget does not exist |
error: package android.support.v7.widget does not exist |
error: package RecyclerView does not exist |
error: package RecyclerView does not exist |
error: cannot find symbol class NonNull |

error: cannot find symbol class OfflineListAdapter

Some of it seems to be related to the move to AndroidX

change import android.support.annotation.Nullable; to import androidx.annotation.NonNull; in the classes imports```

For some reason, I managed to build it and it doesn't crash. The Product view has beed ****, and it seems to be the old one.

https://github.com/openfoodfacts/openfoodfacts-androidapp/blob/a0781426aa0af261fa6623f53b7b5d0f107ffeef/app/src/main/res/layout/offline_list_item.xml#L16

New conflicts.


ID query for "confirmed blocked" not working

The following OONI Explorer query does not work: https://explorer.ooni.org/search?until=2019-10-24&probe_cc=ID&test_name=web_connectivity&only=confirmed
This query (which aims to get the "confirmed blocked" Web Connectivity measurements from Indonesia) says "Results not found", an error which usually is displayed when there are no measurements available.
However, given that we have the ID blockpage fingerprints, this query should render results.

This has been fixed. Closing.


hash_extender: init at 2017-04-10

Motivation for this change
This PR adds the hash_extender software to the nixpkgs.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Seems to work fine for Linux-based operating systems. Could this be merged?


Summary text should say async and await rather than the other way round

They're usually talked about as async, await - and that is the lexical order they appear in the source code.
So lets make sure they're in the same order in the summary.

Addressed.


Ability to require one or another field, or require one field if another is provided

I read through the readme and nothing popped out as supporting this functionality, apologies if I missed something.
The Joi library contains the .with() and .xor() methods which allows you to define whether or not fields are required based on whether or not another field exists. This would be helpful in a case where I want to allow a user to signup with either an email or phoneNumber field, or a password or googleAuthToken, or that both password and repeatPassword exist (and match also?)
You can see how this works in the example in their documention: https://joi.dev/api/?v=17.2.1#example

+1, that would help me with my problem too https://github.com/vriad/zod/issues/181

I think Yup's .with approach is interesting but too hard to reason about. I recommend implementing all of these things with custom refinements. The password/confirmPassword approach is specifically addressed here: https://github.com/vriad/zod#custom-validation
@JVictorV Your issue is a little different, see the answer there by @pkerschbaum

Hello,
What are the simplest ways to do implement Joi's .or, .xor, .and, .with & .without using zod as of today ?
Thanks