"POCO" Convention" and EntitySuffix in Scaffold-DbContext?

Sometimes it seems that the entity objects that EF creates get in my way from a naming perspective. For example, I may have  a "Consumer" table in my database, and a "Consumer" domain object in my business objects. If I'm doing DB first, EF creates a Consumer entity object that eats up that name when I scaffold. There are some approaches to minimize the problem here, like just using namespaces, but of course there are drawbacks to that. Prior to Core I used partial classes to help address this type of thing and they worked pretty well. But with Core the built-in DI limits this since you can only have a single constructor on classes that use this container. Another sometimes concern is that I'm exposing my entities if I let users access my context directly, so I push these down a layer, which then adds another "name duplication concern". I am wondering if it makes sense to add something like a "POCO Convention" to EF. I'm not sure exactly how it would work, but I wanted to start a discussion.
In the most simple form the objects defined in a context could follow the naming convention ...Entity - ConsumerEntity. In this way we would know that the type definition for this class has some relationship to EF. Just like other convention-based approaches tooling/components can be aware if they want to and ignore if they don't. For the DB first people (like me) we could have a switch on Scaffold-DbContext called -EntitySuffix if present it would add the suffix "Entity" to the entity classes.
I think just adding a -suffix switch to scaffold would be valuable in some scenarios and may be an easy way to help get this started. If I could do Scaffold-DbContext ... -suffix Entity and have it add the suffix in the right places that would help with my naming extra work.

Note for triage: templates?

We have items on our backlog to improve the extension points of Reverse Engineer (including via templates). Until then, you can use the method described in https://gist.github.com/natemcmaster/353f4ab3efb4514eeaec846df28f0e24

Closing as a dupe of #4038


I can't see dashboard features

After I lunch:
sudo docker run -i -t --rm -v <PROJECTS_FOLDER>:/app/data/projects:rw -p 9001:9001 siegfried415/portia-dashboard start-dev
I go to localhost:9001, I create new project, new spiders, but I can't see buttons like "deploy project"
Why?

Can you give a screenshot when you click ‘...' button  on the right side of project name?

here is it
http://i64.tinypic.com/2vkhnxk.png

Do I need to continue with the documentation after I run the docker container ?
or I should already see the button?

The popup menu was draw by  /app/portiaui/app/templates/components/project-listing.hbs :

                    {{list-item-icon class="icon" icon="download"}}Download as Portia

                    {{list-item-icon class="icon" icon="code"}}Download as Scrapy

                    {{list-item-icon class="icon" icon="publish"}} Deploy project

So if you have seen "Download as Portia" and "Download as Scrapy", there is no reason you can't see "Deploy project".  Login in to docker  to  make sure /app/portiaui/app/templates/components/project-listing.hbs has the correct code.

I can't do that with your instructions

Ok Now I'm in, using container's id seems to enter in the docker container,
as i can see there is the right code:

Sorry, I lost -f before ancestor，the correct one should be:

portia_container_id=`sudo  docker ps --format {{.ID}} -f ancestor=siegfried415/portia-dashboard`

What browser do you use?

: )

I have a little question, I didn't find it in the doc: How can I get items from another server with the APIs?
something like this:
https://doc.scrapinghub.com/api/items.html


geojson.io example needs fix?

The final example in the command line docs seems to throw an error.
$ echo "[-105, 39.99, -104.99, 40]" \
> | mercantile tiles 14 \
> | mercantile shapes --compact \
> | geojsonio
# SyntaxError: Unexpected token { in JSON at position 399..

which can be fixed by using geojsonify
$ npm install -g geojsonify
$ echo "[-105, 39.99, -104.99, 40]" \
| mercantile tiles 14 \
| mercantile shapes --compact \
| geojsonify \
| geojsonio

in the second, slightly updated, example I have removed the > characters because I think it makes it easier to read, and easier to copy and paste into a terminal.

p.s. happy to create a PR.. wasn't sure if the 'solution' mentioned above was a good way to go,  so opted to post this issue.

👋 @samsammurphy, good catch.
FYI, Internally we use Fiona to create the FeatureCollection (mercantile shape will return a stream of features). but using geojsonify seems also good.
echo "[-105, 39.99, -104.99, 40]" \
| mercantile tiles 14 \
| mercantile shapes \
| fio collect \
| geojsonio

You can go forward and open a PR ;-)

Hi @vincentsarago, thank you! Just sent a PR :)


VQE runtime does not accept expectation parameter

What is the expected feature or enhancement?
The VQE algorithm from qiskit.algorithms accepts an expectation parameter.
This is especially useful when using CVaR expectation for combinatorial optimization.
VQE of qiskit runtime does not support this feature since expectation objects are not JSON serializable.
Acceptance criteria

Closing since VQE runtime program no longer exists.


DeviceRadix::SortPairs compilation error for SM 5.0 / SM 5.2

Under windows building test/ for SM50andSM52withCUDA 8.0.61`
This occurs for atleast CUB 1.7.0 and CUB 1.6.4.
To reproduce, on a window 10 system with Visual Studio 2015:

Download CUB 1.7.0 (or CUB 1.6.4)
cd cub-1.7.0/test
 export sm=500 or  export sm=520
make test_device_radix_sort

Output produced:
mkdir -p bin
"/c/program files/nvidia gpu computing toolkit/cuda/v8.0/bin/nvcc" -DTEST_ARCH=5                                                                             20  -gencode=arch=compute_52,code=\"sm_52,compute_52\"  -o bin/test_device_radix                                                                             _sort_sm520_nvvm_8.0_abi_nocdp_x86_64_thorough test_device_radix_sort.cu -DSM520                                                                              -Xptxas -v -Xcudafe -#  -Xcompiler -ffloat-store -m64 -I../ -I../test   -O3
cl : Command line warning D9002 : ignoring unknown option '-ffloat-store'
test_device_radix_sort.cu
Front end time                      11.04 (CPU)      11.00 (elapsed)
Back end time                        3.96 (CPU)       4.00 (elapsed)
Total compilation time              16.97 (CPU)      17.00 (elapsed)
cl : Command line warning D9002 : ignoring unknown option '-ffloat-store'
test_device_radix_sort.cu
Front end time                       1.84 (CPU)       2.00 (elapsed)
Back end time                        0.36 (CPU)       1.00 (elapsed)
Total compilation time               2.27 (CPU)       3.00 (elapsed)
cl : Command line warning D9002 : ignoring unknown option '-ffloat-store'
tmpxft_00005514_00000000-8_test_device_radix_sort.cudafe1.gpu
Front end time                      11.18 (CPU)      11.00 (elapsed)
Back end time                        3.58 (CPU)       4.00 (elapsed)
Total compilation time              14.92 (CPU)      15.00 (elapsed)
cl : Command line warning D9002 : ignoring unknown option '-ffloat-store'
tmpxft_00005514_00000000-22_test_device_radix_sort.cudafe2.gpu
test_device_radix_sort.cu
nvcc error   : 'cicc' died with status 0xC0000005 (ACCESS_VIOLATION)
make: *** [bin/test_device_radix_sort_sm520_nvvm_8.0_abi_nocdp_x86_64_thorough]                                                                              Error 5

This compiles fine for both SM35 and SM61.
I will also submit this to the Nvidia bug tracker as a compiler issue.
I am unable to submit nvidia bug reports currently with the following error

An error occurred while processing your request.

I have reproduced this issue on a second Windows 10 PC with CUDA 8.0.61
I have also confirmed

this does NOT effect CUB 1.5.2
this does NOT effect CUDA 8.0.44, making this most likely a compiler bug.

I'm afraid this is a known compiler bug in Toolkit 8.0.6x.  Alternatives include:

Clone (or rebase) CUB master branch (or upcoming v1.7.1, when snapped), which has a work-around for CUDA 8.0.6x
Use the newer CUDA Toolkit 9.x (currently in RC), which addresses the issue
Use the older CUDA Toolkit 8.0.44 available in the archives, the delta from 8.0.6x mostly being performance of libraries (CUBLAS, CUDNN, etc.)


[cpuinfo and probably other ports] warning: The following EXEs were found in....

Describe the bug
On windows, maybe others also, vcpkg needs to check when a statically linked only port is compiled/linked under dynamic triplets (in this case x64-windows) to see if a tools feature is selected and therefor may contain the tool executables (in this case cpuid-dump.exe) and not produce warnings/errors about statically linked ports have EXEs in .\bin and .\debug\bin directories.
Environment

OS: [Windows 11 22H2 Version [10.0.22621.963]]
Compiler: VS 2022

Visual Studio Community 2022 Version: [17.4.3]  VS Tools Version: [14.34.31933]
Microsoft (R) C/C++ Optimizing Compiler Version [19.34.31937] for x64

Vcpkg-Tool Version [2022-12-18-7748e2f4ebe7656de6e46aa2539b15ba8c906952]  (latest as of 21:00 EST 2022-12-19)

To Reproduce
Steps to reproduce the behavior:
triplet = x64-windows

.\vcpkg.exe install --recurse --keep-going --clean-buildtrees-after-build --clean-packages-after-build --no-print-usage cpuinfo[core,tools]
See error:

Installing 1/12 cpuinfo:x64-windows...
Building cpuinfo[core,tools]:x64-windows...
-- Note: cpuinfo only supports static library linkage. Building static library.
-- Using cached pytorch-cpuinfo-5e63739504f0f8e18e941bd63b2d6d42536c7d90.tar.gz.
-- Extracting source D:/vcpkg-downloads/pytorch-cpuinfo-5e63739504f0f8e18e941bd63b2d6d42536c7d90.tar.gz
-- Using source at D:/vcpkg/buildtrees/cpuinfo/src/42536c7d90-2a15ca16d1.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: D:/vcpkg/packages/cpuinfo_x64-windows/lib/pkgconfig/libcpuinfo.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-<IP_ADDRESS>73.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/vcpkg-downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/vcpkg/packages/cpuinfo_x64-windows/debug/lib/pkgconfig/libcpuinfo.pc
-- Installing: D:/vcpkg/packages/cpuinfo_x64-windows/share/cpuinfo/copyright
-- Performing post-build validation
warning: The following EXEs were found in /bin or /debug/bin. EXEs are not valid distribution targets.
D:/vcpkg/packages/cpuinfo_x64-windows/bin/cpuid-dump.exe
warning: The following EXEs were found in /bin or /debug/bin. EXEs are not valid distribution targets.
D:/vcpkg/packages/cpuinfo_x64-windows/debug/bin/cpuid-dump.exe
warning: There should be no bin\ directory in a static build, but D:\vcpkg\packages\cpuinfo_x64-windows\bin is present.
warning: There should be no debug\bin\ directory in a static build, but D:\vcpkg\packages\cpuinfo_x64-windows\debug\bin is present.
warning: If the creation of bin\ and/or debug\bin\ cannot be disabled, use this in the portfile to remove them
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
error: Found 3 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile: D:\vcpkg\ports\cpuinfo\portfile.cmake
Elapsed time to handle cpuinfo:x64-windows: 8.954 s

Expected behavior
No Warning or Error message produced when a statically linked port is compiled under a dynamic triplet and the port contains a tools feature.
Failure logs

No Failure logs produced in .\buildtrees\cpuinfo that I can see, but here are all the logs that exist after installation with size greater than zero:

config-x64-windows-CMakeCache.txt.log
config-x64-windows-out.log
copy-tool-dependencies-0-out.log
copy-tool-dependencies-1-out.log
copy-tool-dependencies-2-out.log
copy-tool-dependencies-3-out.log
copy-tool-dependencies-4-out.log
copy-tool-dependencies-5-out.log
copy-tool-dependencies-6-out.log
copy-tool-dependencies-7-out.log
install-x64-windows-dbg-out.log
install-x64-windows-rel-out.log
stdout-x64-windows.log
Additional context
Add any other context about the problem here.
The port with cpuinfo[core,tools] seems to be installed properly and shows on .\vcpkg.exe list cpuinfo:

cpuinfo:x64-windows                               2022-07-19#1        CPU INFOrmation library (x86/x86-64/ARM/ARM64, L...
cpuinfo[tools]:x64-windows                                                    Build cpuinfo command-line tools

It is possible PR [cpuinfo] fix arm64-osx build #28509 may have created the build warnings/errors but was not caught by the CI as the CI does not install port cpuinfo with the tools feature.


Run tests against Postgres 14

To see if there are any incompatibilities before trying to see the potential performance improvements.

Interestingly, integration tests work just fine, but unit tests get stuck.


Added header to blog.html and Changed the styling of the scroll bar

Pull Request Template

Please provide all of the details below. Pull requests missing any of the information below will be closed!
Providing the issue number/url helps us identify the problem being solved and keep the issues tab clean and tidy

Summarize what this PR fixes:-
The blog had no header so I added one.
The scroll bar was blue which is not in the color scheme, so I made It red.
Fixes #
https://github.com/zero-to-mastery/Keiko-Corp/issues/768
https://github.com/zero-to-mastery/Keiko-Corp/issues/771
Checklist
(Add an x between the brackets to check the items)

[x] I have summarize what this PR fixes above
[x] I have provided the issue ID/URL above
[x] I have not added Bootstrap or jQuery and used correct styling guide.
[x] This PR fixes only the issue mentioned above (create separate PRs for separate issues)
[x] I was the first one to claim the issue or I created the issue - I created the issue

Is it appropriate to fix to 2 issues in 1 PR?


Support static content

Looks like it's currently not possible to define a folder for static content. Oak seems to support it (https://github.com/oakserver/oak#static-content), what about having a config where this path gets defined and if it is defined, the given folder is used for static files?

That would mean a static folder where you would save files and you would access to them easily, for example:

static

mycss.css

http://localhost:8080/mycss.css would retrieve /static/mycss.css.
Is this understanding right?

Yes, you are right. This is quite useful for js and css files, otherwise a separate controller would be required for that.

Good. This should be available in 1.0.1. Currently being worked on. @ThauEx 1.0.1 should be coming in the next couple of hours.

Wow, thats sounds really good. Thank you very much.

Following up on this issue. We are investigating whether we should allow handling resources in the root of the url, "/". or resources should be located under "/static". It is planned to be customizable & implementable, we are currently refactoring the written code in order to decide. @ThauEx Thanks for your patience here.
Regards.

This is merged. Documentation<EMAIL_ADDRESS>


Save langchain json failed

Describe the bug
I want to use export langflow json and use it for langchain
Also i have to save this langchain json to disk, but i found some bug
Browser and Version

Version v0.4.7

To Reproduce
Steps to reproduce the behavior:
import asyncio
import json
import os
from pathlib import Path

from langchain.chains import load_chain
from langflow import load_flow_from_json
from langflow.graph import Graph
from langflow.processing.process import fix_memory_inputs

if __name__ == "__main__":
    flow = "./Basic Chat.json"
    if isinstance(flow, (str, Path)):
        with open(flow, "r", encoding="utf-8") as f:
            flow_graph = json.load(f)
    # If input is a dictionary, assume it's a JSON object
    elif isinstance(flow, dict):
        flow_graph = flow
    else:
        raise TypeError(
            "Input must be either a file path (str) or a JSON object (dict)"
        )

    graph_data = flow_graph["data"]
    nodes = graph_data["nodes"]
    edges = graph_data["edges"]
    graph = Graph(nodes, edges)
    langchain_object = graph.build()

    if hasattr(langchain_object, "verbose"):
        langchain_object.verbose = True

    if hasattr(langchain_object, "return_intermediate_steps"):
        # Deactivating until we have a frontend solution
        # to display intermediate steps
        langchain_object.return_intermediate_steps = False

    fix_memory_inputs(langchain_object)
    # print(langchain_object("鲁迅的生日"))
    langchain_object.save("./basic_chat.json")

Screenshots
If applicable, add screenshots to help explain your problem.

I wonder know how to solve this problem or do you have best practice examples that we can refer to

@ogabrielluiz
@lucaseduoli  @anovazzi1

This is a great use case of LangFlow. I also want to learn more about best practice for this.


[Bug]: ERROR: ERROR STATUS: 422 by "npm run get_contract"

Version

[X] Yes

General Question

[X] No

What happened?
"npm run deploy_contract" worked before I ran "npm run get_contract".
I deployed files and made a contract successfully. In fact, there is a contract deployed on NFTPort contract page. When I ran "npm run get_contract", I saw these error below.
How can I fix this issue ?
npm run get_contract

<EMAIL_ADDRESS>get_contract
node utils/nftport/retrieveContract

CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
when I dumped response, I saw this below.
status: 422,
statusText: 'Unprocessable Entity',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
What have you tried?
I Googled and asked the community in the discord server but could not find a solution.
Relevant log output
No response
Protect your information

[X] I Agree

i am also getting this. I did enter in "ethereum" for the chain but other than that the test server was good. Just now when I want to utilize the ethereum blockchain I am getting the error 422.

https://nftport.stoplight.io/docs/nftport/ZG9jOjU5MTMzOTk3-error-codes
Hope this helps. I'm working through it as well.

I have the same issue during uploading metadata, nothing helps yet. Did You guys solve the problem ?

I get the same issue when i ran npm run deploy_contract

Any help please?


[web] PathMetrics not implemented for web

Steps to Reproduce
Clone flare repo.
Run Flare-Flutter/example/checkbox using
flutter run -d chrome

In master now.


Added support for missing channels in SpikeGadgets

Fixes #1592

Do you have a small test file we could include. Some of these spike gadget edge cases are starting to bite us. I would love if we had some way to actually test against these edge cases so we don't break this in the future?

I have a test file, but it's not small (27GB). Do you know how to stub a spike gadgets .rec file?

I think @samuelgarcia knows this format a bit better. So might be worth pinging him or @alejoe91 to see if they know how. Our limit is 10MB so 27GB is definitely over haha. We will see what se can do. :)

Actually, to test this fix we should just need the header, which should be relatively easy to stub.  I'll see what I can do...

Ok, I was able to stub the file to just include the header (no data) and now it's only 72KB. Still awaiting permission from the original researchers to share with y'all, but once I get that, I will send over the stubbed file.

Thanks Paul, that would be awesome. This was originally caused by trying to explicitly support Intan chips which was maybe the wrong move. Previously we just gave arbitrary names to the channels which worked for everything, but was unclear to the user. If we can name things correctly both for NP and Intan that would be the best, but I don't know this system at all. Really appreciate your help on this :)

Hey @zm711, Github doesn't support .rec as a file type, so I can't upload it here.  What is the best way to share this file with you?

The options are you can zip it and include on github or you can email it to me. Do you have a preference?

stubbed_files.zip

lmk if that works

Super busy next couple days. Will check this weekend and let you know!

@pauladkisson, the file looks fine. I don't actually have gin on my home computer. Will submit the file to the test repo tomorrow. Then we can make sure tests pass with the new file. Then final review.

@zm711 I know how to stub these files with data. Do you still have the ones from the previous issues? Let's have a call of this at some point.

We don't have the old one, but if you want to submit Paul's file to gin for me to review that would be awesome. I'm trying to find time to do it, but super busy in lab right now.


UI: Make 'ACL' field as mandatory and add warning message for default_allow and default_deny

Description
This PR improves the user experience of ‘ACL’ field in the dialog of creating a new VPC tier on UI.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[X] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[X] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
'ACL' is a mandatory field (no selection by default).
warning message is displayed for in-built ACL policies (default_allow and default_deny)

How Has This Been Tested?

@blueorangutan  ui

@blueorangutan ui

@Pearl1594 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5003 (SL-JID-132)

@blueorangutan help

@weizhouapache I understand these words: "help", "hello", "thanks", "package", "test"
Test command usage: test [mgmt os] [hypervisor] [keepEnv]
Mgmt OS options: ['centos6', 'centos7', 'centos8', 'ubuntu18', 'ubuntu20']
Hypervisor options: ['kvm-centos6', 'kvm-centos7', 'kvm-centos8', 'kvm-ubuntu18', 'kvm-ubuntu20', 'xenserver-71', 'xenserver-65sp1', 'vmware-70u1', 'vmware-67u3', 'vmware-65u2', 'vmware-60u2', 'vmware-55u3', 'xcpng76', 'xcpng80', 'xcpng81', 'xenserver-74', 'xcpng74']
Note: when keepEnv is passed, you need to specify mgmt server os and hypervisor or use the matrix command.
Blessed contributors for kicking Trillian test jobs: ['rhtyd', 'nvazquez', 'PaulAngus', 'borisstoyanov', 'DaanHoogland', 'shwstppr', 'andrijapanicsb', 'Spaceman1984', 'Pearl1594', 'davidjumani', 'harikrishna-patnala', 'vladimirpetrov', 'sureshanaparti', 'weizhouapache']

@blueorangutan build

@blueorangutan package

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: centos7 :heavy_check_mark: centos8 :heavy_check_mark: debian. SL-JID 532

LGTM


Weird size issue with TextBox

Describe the bug
The TextBox is initially slightly too tall.  When I begin typing in it, the height adjusts to the correct value.
The weird part is that this does not happen if the StackPanel.Styles tag is removed from the following XAML, and it doesn't even apply any style to the TextBox.
To Reproduce
The following XAML illustrates the problem.
<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="400"
        Width="400" Height="400"
        x:Class="TextBox.MainWindow"
        Title="TextBox">
  <StackPanel Orientation="Vertical" Margin="5">
    <StackPanel.Styles>
      <Style Selector="TextBlock">
        <Setter Property="Margin" Value="0,10,0,5" />
      </Style>
    </StackPanel.Styles>

    <TextBlock Text="A TextBox:" />
    <TextBox Name="TextBox" />
  </StackPanel>
</Window>

Expected behavior
The initial size of the TextBox should be the same as after one starts typing in it.  ie. There should be no change in the vertical size of the TextBox when one begins typing in it.
Avalonia version
11.0.10
OS
Linux
Additional context
No response

You are styling the TextBox's watermark and expect unchanged measurements of the TextBox's template.

@Gillibald, yes, that is what I am expecting.  You prompted me to review the selector documentation, and I found this under "By Template" (italics added):

You can match a control in a control template using the above syntax. All the other selectors listed here work on the logical tree, but this selector can step into a template.

If I understand correctly, the TextBox's watermark is part of its visual tree, but not part of its logical tree.  Thus, my expectation remains that the TextBox should not change its size due to my style selector.


feat: auto reconnect in case broker fail

I hope to you can implement this feature because when the broker dies, we need to restart the deno to get it to reconnect, which is unacceptable for event handling.

Thanks for reporting. You should not have to restart deno to reconnect, but rather create a new connection and run through your setup flow.
As mentioned in a similar feature request here: https://github.com/amqp-node/amqplib/issues/25, reconnecting a client to the broker involves more things than just setting up the AMQP Connection.
Here is the consume_message.ts example rewritten to handle connection errors:
import { connect } from "../mod.ts";

const queueName = Deno.args[0];
if (!queueName) {
  console.log(`No queue name specified`);
  Deno.exit(1);
}

while (true) {
  const connection = await connect({ hostname: "<IP_ADDRESS>" });

  try {
    const channel = await connection.openChannel();

    await channel.declareQueue({ queue: queueName });
    await channel.consume(
      { queue: queueName },
      async (args, props, data) => {
        console.log(JSON.stringify(args));
        console.log(JSON.stringify(props));
        console.log(new TextDecoder().decode(data));
        await channel.ack({ deliveryTag: args.deliveryTag });
      },
    );

    await connection.closed();
  } catch (error) {
    console.error(error);
    await new Promise((resolve) => setTimeout(resolve, 1000));
  } finally {
    await connection.close();
  }
}

Thanks for reporting. You should not have to restart deno to reconnect, but rather create a new connection and run through your setup flow.
As mentioned in a similar feature request here: amqp-node/amqplib#25, reconnecting a client to the broker involves more things than just setting up the AMQP Connection.
Here is the consume_message.ts example rewritten to handle connection errors:
import { connect } from "../mod.ts";

const queueName = Deno.args[0];
if (!queueName) {
  console.log(`No queue name specified`);
  Deno.exit(1);
}

while (true) {
  const connection = await connect({ hostname: "<IP_ADDRESS>" });

  try {
    const channel = await connection.openChannel();

    await channel.declareQueue({ queue: queueName });
    await channel.consume(
      { queue: queueName },
      async (args, props, data) => {
        console.log(JSON.stringify(args));
        console.log(JSON.stringify(props));
        console.log(new TextDecoder().decode(data));
        await channel.ack({ deliveryTag: args.deliveryTag });
      },
    );

    await connection.closed();
  } catch (error) {
    console.error(error);
    await new Promise((resolve) => setTimeout(resolve, 1000));
  } finally {
    await connection.close();
  }
}

This code does not seem to handle the error-case where the queue does not exist.
PS C:\dev\amqp-test> deno run --allow-net test.ts
error: Uncaught (in promise) Error: EOF
      throw new FrameError("EOF");
            ^
    at AmqpFrameReader.#readBytes (https://deno.land/x/amqp@v0.24.0/src/amqp_frame_reader.ts:18:13)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async AmqpFrameReader.#readFrame (https://deno.land/x/amqp@v0.24.0/src/amqp_frame_reader.ts:25:20)
    at async AmqpSocket.read (https://deno.land/x/amqp@v0.24.0/src/amqp_socket.ts:159:14)
    at async listen (https://deno.land/x/amqp@v0.24.0/src/amqp_multiplexer.ts:108:23)

The line const connection = await connect({ hostname: "<IP_ADDRESS>" }); needs to be inside the try-catch block too in order to catch this error aswell.
I've been stumped for a while figuring out why this library seems to crash my server in one way or another. 😃


Test case for full user request scenario

Purpose
This test case sends a full request for provisioning the user and uses the util class for this purpose
Tested environment
1.ubuntu 18.04
2.java version "1.8.0_161"
3.Identity server wum updated pack wso2is-5.7.0+1543336788716.full with jdbc user store
Automation tests
Submit a full request when sending the payload for user provisioning
Know issues
The middleName attribute does not work with embedded ldap user store
#3954

closing this PR since I am creating https://github.com/wso2/product-is/pull/4154


Cesium 1.18 introduced scaling artefacts for Win7 users who use a non-100% system font

Hi, realise this is an edge case. Just noticed if Windows 7 user changes the font size on their system  Cesium renders with scaling artefacts.  This is likely a browser devicePixel thing, problem occurs with Firefox and Chrome.
eg. Windows 7 with system font size set at "Medium 125%" using Control Panel > Display > Custom DPI setting > 125%.  Looks like this, note the scaling artefacts in the atmosphere...

If I set the browser scaling to 80% OR use a Cesium build 1.17 or older no scaling artefacts. Note nice smooth horizon...

Cheers, Andrew

This is actually by (browser vendor) design and is just one aspect of "how browsers work".  Essentially the browser is setting the window.devicePixelRatio property which is telling Cesium that all rendering needs to take place at a different resolution. This is important for devices with insane resolutions but lacking the power to render 3D content at those resolutions, this includes a lot of consumer 4K systems and most mobile devices on the market.  So what you are noticing is a lower-resolution rendering of the globe being crisply resized to fill the entire window.  window.devicePixelRatio is also used when browser zooming of any kind is employed, so if you are on a system where window.devicePixelRatio is 1, but enable browser/font zooming, you will end up with the same effect.
In 1.17 and earlier, Cesium tried actively worked around this behavior and always rendered at "full resolution", which actually caused a lot of problems on the types of devices I described above.  This is actually mentioned in CHANGED.MD for 1.18.
With all of that in mind, you should be able to go back to the old behavior with the below code snippet.
viewer.scene.preRender.addEventListener(function() {
    viewer.resolutionScale = defaultValue(window.devicePixelRatio, 1.0);
}

The above forces Cesium to always render at the actual on-screen resolution and ignore the browser's recommend resolution.  However, keep in mind that ignoring the browser's recommendation like this will decrease performance on mobile devices or 4K monitors that lack a good GPU. (You could always try and detect mobile devices and only disable it then, but I tend to avoid that type of detection via javascript).
While we appreciate all feedback and concerns, in the future please raise issues like this on our community forum first, since our responses will be seen by more people (so everyone in our community learns the answer) and we also try to use GitHub exclusively for confirmed bugs and planned features.
Hope that helps, thanks.


[FeatureRequest] Save QRCode to SVG, PDF or EPS as well as PNG

Hi ! Thanks for this library. It would be nice to be able to save the QRCode to SVG, PDF or EPS as well as PNG.
For example, adding dependency to
https://github.com/tdewolff/canvas/
the qrcode.go could have
// Canvas returns the QR Code as an image.Image.
func (q *QRCode) Canvas() *canvas.Canvas {
// Based on Image...
}
and this can be saved to appropriate format using,
c := q.Canvas()
c.WriteFile("out.svg", svg.Writer)
c.WriteFile("out.pdf", pdf.Writer)
c.WriteFile("out.eps", eps.Writer)
c.WriteFile("out.png", rasterizer.PNGWriter(3.2))
Attached a draft modification.
Best,
E.

NB/ this was prototyped in fork https://github.com/namsor/go-qrcode

hi, will this feature be merged?


Add breeding guide to README or Mod Page

A few months ago I wrote this guide providing a simple explanation for how to breed chickens in this mod and "More Chickens." This is a resource I would have liked to have had the first time I played using the mod, as the NEI gui was confusing (and I wanted to see more recipes at once). The guide can be found below and I'm perfectly fine with you pulling the tables out and adding them to your readme/mod page.
https://www.reddit.com/r/feedthebeast/comments/5r1zxs/chickens_breeding_guide/

Breeding guides can be different from pack to pack. even some mods added in will change what chickens parents are. I have an idea for a better in-game tree to show parents. instead of the current system. but it may be a bit of time to get it finished.
With that said.. there is already a sort of breading guide that gets generated.. in logs/chickens.gml. You just need a program like Gephi to read it. Not the most intuitive thing but it does give you an outline.


Streaming tokens received out of order w/ Azure

When talking to my Azure deployment and using streaming mode, I've found that the tokens being returned are out of order.  They're all there, just not in the right sequence.  Is this a known issue?  Here's my code, though it's unremarkable and largely follows the OAI cookbook:
const openaiExplainer = await openai.createChatCompletion({
            model: OPENAI_MODEL_NAME,
            messages: explainerArray,
            temperature: 0,
            stream: true
          }, { responseType: 'stream' });

          openaiExplainer.data.on('data', async (dataExplainer) => {
            const linesExplainer = dataExplainer.toString().split('\n').filter(lineExplainer => lineExplainer.trim() !== '');
            for (const lineExplainer of linesExplainer) {
              const replyExplainer = lineExplainer.replace(/^data: /, '');

              let parsedExplainer;
              try {
                parsedExplainer = JSON.parse(replyExplainer);
              } catch (error) {
                if (replyExplainer != '[DONE]') continue;
              }

              if (replyExplainer === '[DONE]' || (parsedExplainer && parsedExplainer.choices[0].finish_reason)) {
                aiReplyChat.done = true;
                return; // Stream finished
              }

              const deltaExplainer = parsedExplainer.choices[0].delta.content;

              if (deltaExplainer) {
                console.log(deltaExplainer)
                aiReplyChat.explainer += deltaExplainer;
              }
            }
          });

Sample output of the console from the above:
>  Hello
>  ,
>   I
>   Could
>   you
>   add
>   it
>   to
>   my
>   bill
>  ?
>
>
>  V
>  ocabulary
>
>
>  -
>   mon
>   (
>  m
>  ):
>   my

i also have the same issue


providing container name for IDP and SP

Hi
I was setting up IDP provider locally through a docker container locally, this container is part of bridge network of (SP)application container, but when i try to saml setting ACS and IDP SSO URL with container name, i get invalid name error
I was going through code and found that this regex checks for host name to be either localhost or ipv4 or ipv6,
https://github.com/SAML-Toolkits/python-saml/blob/master/src/onelogin/saml2/settings.py#L33
but in a docker setup this can also container name so wanted to know if this was intentional or should be considered a minor issue,
for now i exposed IDP provider port to host and connecting to IDP via host ( by giving localhost ) which makes the validate_url check pass.
Thanks

I guess I did not consider containers when I added the validation.
But as you already did is not hard to run the Container with a custom hostname.


Treat dagger.io and universe.dagger.io as external packages

Problem
We have a different behavior for built-in packages. dagger.io and universe.dagger.io are embedded in the binary and we have to extract the files from there, fixing the version to the binary version.
Solution
Handle built-in packages like external packages, fetching from git. Then stop embedding these files into the binary.
Version management
I think we can handle universe.dagger.io as a normal reusable repo that has multiple packages. It's the same as you'd use for your own private company repo with internal conventions. Or a personal dagger-packages repo you'd use in multiple projects.
As for dagger.io we can use it to "tie" into the engine, so it replaces the cue.mod/version.txt file.
Example:
// cue.mod/dagger.mod

require (
	dagger.io v0.2.10
	universe.dagger.io v0.2.10
)

replace (
	dagger.io => github.com/dagger/dagger/pkg/dagger.io
	universe.dagger.io => github.com/dagger/dagger/pkg/universe.dagger.io
)

This is compatible with the future upstream solution, just need to convert syntax into cue.mod/module.cue.
Version constraints
Do we want to keep the special compatibility constraints internally?
// ModuleRequirements specifies the MINIMUM version of the module dagger requires in order to work.
// This must be updated whenever we make breaking changes so users are prompt to upgrade the packages.
ModuleRequirements = map[string]*gv.Version{
	DaggerModule:   gv.Must(gv.NewVersion("0.2.11")),
	UniverseModule: gv.Must(gv.NewVersion("0.2.9")),
}

The advantage is not to require updating configs when upgrading the binary when not every release changes those .cue files.
If not, we need to ask the user to dagger project update -u dagger.io when a new binary version is detected that's different from what's required in cue.mod/dagger.mod.
Requires

#2504

Added version management sections.

@aluzzardi what do you think about using the require dagger.io v0.2.10 as a replacement for cue.mod/version.txt?

@aluzzardi what do you think about using the require dagger.io v0.2.10 as a replacement for cue.mod/version.txt?

Yep, that was the intention, version.txt was a temporary hack

Closing. More context in parent issue: https://github.com/dagger/dagger/issues/2163.


AssignmentInCondition: add separate errorcode for assignment found in while

A while() condition is the only control structure in which it is sometimes legitimate to use an assignment in condition.
Having a separate error code will enable people to selectively exclude warnings for this.
N.B.: same change has been pulled upstream.
N.B.2: I've not applied this to the second error message as when it's a non-variable assignment, it doesn't matter whether it's in a loop or not, it's always wrong.

Fine with me, though it may mean someone who had previously excluded all Found messages, now gets FoundInWhileCondition popping up, which they will then need to exclude as well.

True, but chances are that they only excluded Found because of a while structure, so this will enable them to include Found and exclude messages for while constructs, which should be better ;-)

On that note: the sniff has not been in a release yet, so only people using bleeding edge could have done that.


feat(CategoryTheory/Galois): fundamental group is limit of automorphism groups

We show that the automorphism group of a fiber functor is isomorphic to the limit of the automorphism groups of all Galois objects.
From this we deduce that the automorphism group of a fiber functor acts transitively on the fibers of connected objects. This is the last essential step towards showing that a fiber functor induces a fully faithful embedding into the category of finite Aut F-types.

[x] depends on: #12841
[x] depends on: #12839

Thanks!
bors d+

bors d+

bors r+

Thanks for the review @joelriou !

bors r+


Notice: Trying to get property of non-object

Getting this error with the latest update to 1.2.0: Notice: Trying to get property of non-object in /var/www/public/site/modules/ProcessJumplinks/ProcessJumplinks.module on line 259
I tried it with Processwire version 2.5.26 and 2.5.27.
But redirecting also didn’t work before updating to 1.2.0. I checked what happens with debug mode on and it said the pattern matched, but when I turned debug mode off again I only got the 404 error without redirect to the right uri.
Your module looks great. I hope you could help me to get it to work. For my next redesign of a website it would really help me a lot.

Thanks for reporting that - didn't notice it until I uninstalled ProcessRedirects.
Have synced a hotfix. Working on my side now, but please confirm on yours before I close.
Thanks. :+1:

Thanks, the error is gone :)

:+1:


Support for UUID in postgres ?

How can I add support for uuid column data type as my primary key in Tilda ?

@CapsicoSmith is working on adding support for SHORT #307 and NUMERIC #305. Adding support for UUID would follow a similar path. Additionally, the way we do the PK is by using a pre-defined key from the base Tilda objects, so adding info about which type the PK should be (SHORT, INTEGER, LONG, UUID) will also require changes in that area.

I have added this ticket to the Project plan in our backlog.


Allow grammars to exclude themselves in menu

Some grammars shouldn't have entries in the selection menu. For instance, the Hyperlink language only exists to inject those helpful underlines on any URL-like sequence in the editor, irrespective of language:

Other grammars exist on their own to be loaded by others (e.g., "Regular Expression (Javascript)".
In short, it'd be great if grammars could flag themselves as hidden. Possibly by having a property set in the grammar file?
'name': 'Hyperlink'
'scopeName': 'text.hyperlink'
'fileTypes': []
'hideInMenu': true

It's tempting to rely on an empty fileTypes array to exclude the grammar instead, but that would assume the grammar's author intended for a user to never select it from the file-menu.

FYI, I've started looking at this locally (as the filename in the image would suggest), but I'm unable to get my development copy of first-mate running. Calls to console.log are showing up normally, but not if they're running from inside the Grammar class's constructor. I'm assuming the grammars are being instantiated externally (outside the running Atom window)...


fix: Do not retry RPC requests on 4xx errors

Any error on a transaction that used capsules was causing a no capsules available error, even if unrelated to the capsule. Reason for this is that our remote pxe client was configured by default to retry all failed requests (but not on e2e tests), so the first attempt would raise the actual error and consume the capsule, and all retries would fail since the first request consumed the capsule.
Barring actually fixing capsules (still pending), a fix is not retrying a request upon a 4xx error, so we don't unnecessarily hammer the pxe. Note that retries had been originally introduced to handle connectivity errors, I expect that those would not be raised as 4xx's.

Benchmark results
Metrics with a significant change:

tx_sequencer_processing_time_ms (5): 1,728 (-18%)
tx_sequencer_processing_time_ms (8): 584 (-19%)
note_successful_decrypting_time_in_ms (8): 294 (+27%)
note_trial_decrypting_time_in_ms (8): 97.6 (+198%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit f038b704 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
676
676
676

l1_rollup_calldata_gas
6,412
6,412
6,424

l1_rollup_execution_gas
585,745
585,745
585,757

l2_block_processing_time_in_ms
1,327 (+1%)
4,714
9,542 (+3%)

note_successful_decrypting_time_in_ms
:warning: 294 (+27%)
628 (+12%)
962 (-10%)

note_trial_decrypting_time_in_ms
:warning: 97.6 (+198%)
34.7 (-52%)
79.3 (+8%)

l2_block_building_time_in_ms
11,932 (+1%)
43,408 (+1%)
85,037 (+2%)

l2_block_rollup_simulation_time_in_ms
11,897 (+1%)
43,280 (+1%)
84,803 (+2%)

l2_block_public_tx_process_time_in_ms
6,214 (+1%)
24,464 (+1%)
48,782 (+2%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
14,446 (+2%)
27,541 (+1%)

note_history_successful_decrypting_time_in_ms
1,315 (+1%)
2,422

note_history_trial_decrypting_time_in_ms
71.3 (+4%)
101 (-4%)

node_database_size_in_bytes
18,595,920
35,033,168

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
181 (+1%)
44,377
26,164

private-kernel-ordering
162 (+1%)
50,830
39,026

base-parity
3,898 (-2%)
128
311

root-parity
1,043 (-4%)
1,244
311

base-rollup
14,268 (+1%)
110,464
861

root-rollup
49.6 (-1%)
4,359
725

private-kernel-inner
218 (+1%)
71,744
26,164

public-kernel-app-logic
120 (+1%)
47,695
40,661

public-kernel-tail
163 (-1%)
53,372
7,125

merge-rollup
10.2 (-7%)
2,568
861

public-kernel-teardown
117 (-18%)
47,695
40,661

public-kernel-setup
115 (-2%)
47,695
40,661

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.1 (+1%)
16.2 (-1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.591 (+1%)
0.501 (-1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
46.0 (-1%)
73.4 (+1%)
233
449
875
1,736
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.472 (-1%)
0.452 (+1%)
0.424 (+1%)
0.420
0.416
0.415
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
54.4 (-1%)
108 (+1%)
338
662
1,322 (+1%)
2,630 (+1%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
105
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.480 (-1%)
0.485
0.460
0.455
0.457 (+1%)
0.456
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
61.2 (-1%)

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.535 (-1%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
40,372
496,534

Transaction size based on fee payment method

Metric
native fee payment method
fpc_public fee payment method
fpc_private fee payment method

tx_with_fee_size_in_bytes
905
1,161
1,377

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
1,692
1,091 (+2%)
5,439 (+1%)

Metric
1 public data writes
2 public data writes
3 public data writes
4 public data writes
5 public data writes
8 public data writes

tx_sequencer_processing_time_ms
575
396 (-1%)
1,057 (-2%)
516 (-1%)
:warning: 1,728 (-18%)
:warning: 584 (-19%)


Exercise Part 2 Courseinfo unique key problem

part2/courseinfo/src/App.jsx
The code displays what is expected.
But the console shows:
Warning: Each child in a list should have a unique "key" prop.

Modified the key attribute from
key={parts.id}
to
key={part.id}


Add Tailwind CSS IntelliSense instructions

The help that tailwind intelisense provides when working is really very useful. With this simple integration it can work with gomponents and is a great help for people to adopt the project more.

Hi @eduardolat , thanks for contributing! I'll have a look at this soon, hopefully next week.

@eduardolat sorry it took so long, I kept forgetting about this. 😅 Thank you for your contribution!


Missing module docstring

cant find modul in line 6 (key)  ??

cant find modul in line 6 (key) ??

Now need to collect Geocoder API Key from https://opencagedata.com/
@Zeroocooloverride Thank you

Thanks a lot! really much appreciate!
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: Md. Ridoy Hossain @.>
Sent: Saturday, June 17, 2023 3:58:50 PM
To: problemsolvewithridoy/Phone-number-location-tracker-using-python @.>
Cc: Zeroocooloverride @.>; Mention @.>
Subject: Re: [problemsolvewithridoy/Phone-number-location-tracker-using-python] Missing module docstring (Issue #1)
cant find modul in line 6 (key) ??
Now need to collect Geocoder API Key from https://opencagedata.com/
@Zeroocooloverridehttps://github.com/Zeroocooloverride Thank you
—
Reply to this email directly, view it on GitHubhttps://github.com/problemsolvewithridoy/Phone-number-location-tracker-using-python/issues/1#issuecomment-1595766915, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4YEF5EKSYL6UXMM4FBZ5ILXLWZZVANCNFSM6AAAAAAZIWSQBU.
You are receiving this because you were mentioned.Message ID: @.***>


[Westeros] Accoring to ticket HP40A-134 request strings need to be ch…

…anged

https://jenkins.code.rdkcentral.com/job/github-triggered/993/ started


[Android] How to use flutter packages on the background locator service?

How can we use other packages on the background locator service?
I tried
static void callbackFromBackground(LocationDto locationDto) async {
    LocationPermissionStatus? status = await LocationPermissionHandler.getLocationPermission();
    ....
 }

Where getLocationPermission() implementation is:
static Future<LocationPermissionStatus> getLocationPermission() async {
   var serviceEnabled = await Geolocator.isLocationServiceEnabled();
   if (serviceEnabled) {
     var permission = await Geolocator.checkPermission();
     return LocationPermissionStatus(
       appLocationPermission: permission,
       isLocationServiceEnabled: true,
     );
   }
   var permission = await Geolocator.checkPermission();
   return LocationPermissionStatus(
     appLocationPermission: permission,
     isLocationServiceEnabled: true,
   );
 }

But it raise error, which seems like because we can't use packages on the isolate
 E/flutter (22736): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method isLocationServiceEnabled on channel flutter.baseflow.com/geolocator)
E/flutter (22736): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
E/flutter (22736): <asynchronous suspension>
E/flutter (22736): #1      LocationPermissionHandler.getLocationPermission (package:aye_app/service/permission/location_permission_handler.dart:98:26)
E/flutter (22736): <asynchronous suspension>
E/flutter (22736): #2      BackgroundLocationService.callbackFromBackground (package:aye_app/service/location/background_location_service.dart:56:46)
E/flutter (22736): <asynchronous suspension>

If your problem is occuring on IOS, the wiki describes how to register other packages for the background callback:
https://github.com/Yukams/background_locator_fixed/wiki/Use-other-plugins-in-callback

Hi @hieudz can you please try this https://github.com/flutter/flutter/issues/99155#issuecomment-1060956399

It works!!
Thank you for your help


the listing XML element contains binary code

Currently, if I understand correctly, the <listing/> element in the XMIR generated by JEO, contains Base64-encoded content of the .class file that was disassembled. This doesn't help much in comprehending the XMIR content. Would be much better if we can put there Java code disassembled by some Bytecode-to-Java disassembler, maybe this one: https://github.com/Storyyeller/Krakatau
Or maybe just javap?

@volodya-lombrozo please, check

@yegor256 Of course, it's a good thing. I guess, we can add both options: 1) javap and 2) decompiler

@volodya-lombrozo javap looks like the easiest solution at the moment, would be great to have it ASAP. Without it, it's very hard or almost impossible to deal with the XMIR -- I simply can't understand what does it represent.

@yegor256 This issue was solved in the recent release. Can we close it?


Fix: 31246 Related model with inheritance generates wrong select_for_update 'of'

When a related model (with parents) is specified in of for select_for_update,
the of clause of the generated query references the field's parent model
instead of the field's model.

@abhijeetviswa Thanks, please include tests and fix for multi-level inheritance, and add release notes for Django 2.2.10.

@felixxm I'm not sure about the wording for the fix in the release notes. Could you please check it out?
Also, I'm not sure what more tests to add. I've modified test_for_update_sql_model_inheritance_nested_ptr_generated_of to test for related fields with inheritance and added test_for_update_sql_multilevel_model_intehritance_ptr_generated_of to test for multi-level inheritance.

buildbot, test on oracle.

OK, looks good. 😅
@felixxm Oracle failure seems unrelated — test didn't fail — but...

Thanks for checking. Yes, Oracle failure is not related.


Follow XDG spec for config files

Can't promise it's interesting
For reference: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@lucianjon sorry for taking so long; as you said, there was little incentive to work on this :P
sql will now look for .databases.json in the following places, in order:

$XDG_CONFIG_HOME/sql/.databases.json (if set)
$HOME/.config/sql/.databases.json (if $XDG_CONFIG_HOME unset)
3...) each of $XDG_CONFIG_DIRS including default /etc/xdg (plus /sql/.databases.json)
$HOME/.databases.json

So it follows XDG with a fallback on the existing path, for backwards compatibility and general laziness.

Fixed in
https://github.com/marianogappa/sql/releases/tag/1.0.2


Add one click deploy to readme

Hey!
We built this one-click deploy link for your users who may not know how to stand up their own infrastructure to easily self-host this.
After deployment users receive a link which can then be CNAME-ed to any domain.
Take it for a test run—we're eager to receive your feedback! We're more than willing to maintain this for the long haul, if this is valuable for your users.

This looks like a cool project, but the README isn't quite the right place to share it. Please head on over to our Forum (https://forum.ghost.org) and make a post about it there. It'll be much more visible to the community and you'll have more ability to explain your setup.


MAISTRA-2437: Push configuration as String

Envoy doesn't handle well passing a Struct as the configuration field.
When an extension retrieves its value, it gets binary data.
Passing string instead is safe. Extensions will get the value as string
and can unmarshal it into a proper JSON struct.
While on it, also fixed a potential index out of range error.

This is the same as https://github.com/maistra/istio/pull/381 but targeted for 1.9


Replace setup bag with subset bag in rolling

This pull request addresses a typographical error found in the ROS 2 Iron documentation, specifically in the "Reading from a bag file (C++)" tutorial. The tutorial erroneously references a "setup bag" when it should actually be "subset bag". This confusion was discussed and clarified in Issue #4048.
The correction ensures that the documentation accurately reflects the content of the tutorials, particularly where it guides users in generating and using bag files in ROS 2.

Hi, @fujitatomoya,
I want to let you know that I have made the suggested changes, and would greatly appreciate it if you could take another look at the new pull request and provide any further feedback or approval as needed.
Thank you for your time and guidance on this matter.

@Mergifyio backport to iron and humble


"dep:dependency" features are not running with --feature-powerset and without --optional-deps

I have a Cargo.toml which basically contains
[dependencies]
crate_a = { version = "1.33.7", optional = true }
crate_b = { version = "1.33.8" }
crate_c = { version = "1.33.9", optional = true }

[features]
crate_a = ["dep:crate_a", "crate_b/crate_a"]
great_feature = ["dep:crate_c"]

--feature-powerset will not run for --features crate_a
--feature-powerset --optional-deps, works with crate_a but also tries to run crate_c which fails because a feature with "dep:crate_c" is specified

Do you see this being fixed somehow? I try to avoid specifying the optional dependencies myself. The optimal solution would probably be that --feature-powerset will "simply" pick up crate-a as well as it's defined int he [features] section.
Without looking at the code I guess that you read all features and exclude them if --optional-deps is not specified and the crate is also an optional dependency?

Thanks for the report!

Without looking at the code I guess that you read all features and exclude them if --optional-deps is not specified and the crate is also an optional dependency?

Yes. We need to fix this filter:
https://github.com/taiki-e/cargo-hack/blob/202e6e59d491c9202ce148c9ef423853267226db/src/features.rs#L26-L30
(This incomplete filter was added to fix breakage after namespaced and weak dependency features stabilization changed the cargo metadata and caused breakage in some projects.)

Fixed in 0.5.15 (#154)


Create a draft proposal.

Make the suggested changes.
Add the block diagram
Add figures and numbers to the report.

Completed draft proposal


Support for .NET 4.6.1.

Visual Studio 2015 Update 1 gave us .NET 4.6.1.
My paket.dependencies file currently contains:
framework: net46
But now that I've just changed my projects to target .NET 4.6.1, all the project references are missing, because they are conditional on .NET 4.6, like this:
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.6'">
What framework string should I use for .NET 4.6.1?
I can't see any mention of .NET 4.6.1 in FrameworkHandling.fs.

It's in master: https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/FrameworkHandling.fs
I think framework net461 should work.

Ah, I saved a link to that source file a while ago, but obviously not to the master version of it.
Thank  you.


Android App Crashes as soon as it hits BackgroundGeolocation.start()

Your Environment

Plugin version: 3.0.0-alpha.14 (tried with 2.3.5 as well)
Platform: Android
OS version: 6.0.1
Device manufacturer and model: OnePlus 2
Cordova version (cordova -v): 8.0.0
Cordova platform version (cordova platform ls): 7.0.0
Plugin configuration options: BackgroundGeolocation.configure({
locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER, (Tried with others also)
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'Enabled for Vehicle Tracking',
debug: true,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
url: serverLocationUrl+'?routeId='+routeId,
httpHeaders: {
'authorization': $window.UTILITIES.LOCAL_STORAGE.get('auth')
},
// customize post properties
postTemplate: {
lat: '@latitude',
lon: '@longitude',
bear: '@bearing'
}
});
Link to your project:

Context

As soon as the code reaches backgroundlocation.start() , the app crashes
Expected Behavior

should run and not crash
Actual Behavior

app crashed
Possible Fix

Steps to Reproduce

The given example does not work for me, followed the same steps

Context

Debug logs

04-13 18:38:22.412  4260   775 I Authzen : [DeviceStateSyncManager] The server is in sync with current state. Nothing to do
04-13 18:38:22.629  1124  1124 I DeviceIdleController: updateChargingLocked: charging=true
04-13 18:38:22.629  1124  1124 I DeviceIdleController: becomeActiveLocked, reason = charging
04-13 18:38:22.636 11583 11583 D AbstractProcessor: onBatteryChange Percent:76 State:2
04-13 18:38:22.784  3800  4078 D NetworkController.MobileSignalController(3): onSignalStrengthsChanged signalStrength=SignalStrength: 99 0 -120 -160 -120 -1 -1 16 -111 -10 80<PHONE_NUMBER><PHONE_NUMBER> 2 2 gsm|lte level=2 voicelevel=2 datalevel=2
04-13 18:38:22.834  7402  7402 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
04-13 18:38:23.039  7402  7402 W Settings: Setting preferred_network_mode has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
04-13 18:38:23.457  4063  4063 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
04-13 18:38:23.462  4063  4063 D wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=11 sndbuf=212992 outq=0 send_len=48
04-13 18:38:24.461   352   352 W auditd  : type=1400 "ipacm""/dev/socket/ipacm_log_file"
04-13 18:38:24.461   352   352 W auditd  : type=1400 "ipacm""/dev/socket/ipacm_log_file"
04-13 18:38:24.461   352   352 W auditd  : type=1400 "ipacm""/dev/socket/ipacm_log_file"
04-13 18:38:24.462   352   352 W auditd  : type=1400 "ipacm""/dev/socket/ipacm_log_file"
04-13 18:38:24.549  7402  7402 W Settings: Setting preferred_network_mode has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
04-13 18:38:24.550  7402  7402 W Settings: Setting preferred_network_mode has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
04-13 18:38:24.551  7402  7402 W Settings: Setting preferred_network_mode has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
04-13 18:38:25.035 29487 29487 D SystemWebChromeClient: file:///android_asset/www/js/angular/controllers/map-controller.js: Line 10 : 5ad08553a5172c2e88b2e8e3
04-13 18:38:25.035 29487 29487 I chromium: [INFO:CONSOLE(10)] "5ad08553a5172c2e88b2e8e3", source: file:///android_asset/www/js/angular/controllers/map-controller.js (10)
04-13 18:38:25.036 29487 29487 D SystemWebChromeClient: file:///android_asset/www/js/angular/controllers/bus-routes-controller.js: Line 61 : app.map
04-13 18:38:25.036 29487 29487 I chromium: [INFO:CONSOLE(61)] "app.map", source: file:///android_asset/www/js/angular/controllers/bus-routes-controller.js (61)
04-13 18:38:25.036 29487 29487 D SystemWebChromeClient: file:///android_asset/www/js/angular/controllers/bus-routes-controller.js: Line 62 : app.busroutes
04-13 18:38:25.036 29487 29487 I chromium: [INFO:CONSOLE(62)] "app.busroutes", source: file:///android_asset/www/js/angular/controllers/bus-routes-controller.js (62)
04-13 18:38:25.063 29487   811 D com.marianhello.bgloc.data.sqlite.SQLiteConfigurationDAO: Configuration persisted with rowId = 1
04-13 18:38:25.064 29487   811 D com.marianhello.bgloc.BackgroundGeolocationFacade: Service configured with: Config[distanceFilter=50 stationaryRadius=50.0 desiredAccuracy=0 interval=10000 fastestInterval=5000 activitiesInterval=10000 isDebugging=true stopOnTerminate=true stopOnStillActivity=true startOnBoot=false startForeground=true locationProvider=0 nTitle=Background tracking nText=Enabled for Vehicle Tracking nIconLarge= nIconSmall= nIconColor= url=http://<IP_ADDRESS>:3500/service/gps/saveLocationForDriver?routeId=5ad08553a5172c2e88b2e8e3 syncUrl= syncThreshold=100 httpHeaders={authorization=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiI1YWQwODRmYWE1MTcyYzJlODhiMmU4ZTIiLCJyb2xlIjoiRFJJVkVSIiwiaWF0IjoxNTIzNjE1MDk0fQ.-vXyPccTqSCS0NTVT5iepCUfFfPcDaiNByuiqOjwL5k} maxLocations=10000 postTemplate={"bear":"@bearing","lon":"@longitude","lat":"@latitude"}]
04-13 18:38:25.075 29487 29487 D SystemWebChromeClient: file:///android_asset/www/js/angular/controllers/map-controller.js: Line 109 : is location enabled
04-13 18:38:25.075 29487 29487 I chromium: [INFO:CONSOLE(109)] "is location enabled", source: file:///android_asset/www/js/angular/controllers/map-controller.js (109)
04-13 18:38:25.076 29487   812 D com.marianhello.bgloc.BackgroundGeolocationFacade: Starting service
04-13 18:38:25.116 29487   812 I com.marianhello.bgloc.BackgroundGeolocationFacade: Starting bg service
04-13 18:38:25.134  3800  4078 D NetworkController.MobileSignalController(3): onSignalStrengthsChanged signalStrength=SignalStrength: 99 0 -120 -160 -120 -1 -1 15 -113 -9 68<PHONE_NUMBER><PHONE_NUMBER> 2 2 gsm|lte level=2 voicelevel=2 datalevel=2
04-13 18:38:25.143 29487 29487 I com.marianhello.bgloc.LocationService: Creating LocationService
04-13 18:38:25.146  3800  4078 D NetworkController.MobileSignalController(4): onSignalStrengthsChanged signalStrength=SignalStrength: 22 0 -120 -160 -120 -1 -1 99<PHONE_NUMBER><PHONE_NUMBER><PHONE_NUMBER><PHONE_NUMBER><PHONE_NUMBER> 4 4 gsm|lte level=4 voicelevel=4 datalevel=4
04-13 18:38:25.156 29487 29487 D AndroidRuntime: Shutting down VM
04-13 18:38:25.156 29487 29487 E AndroidRuntime: FATAL EXCEPTION: main
04-13 18:38:25.156 29487 29487 E AndroidRuntime: Process: com.followclass.driver, PID: 29487
04-13 18:38:25.156 29487 29487 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.marianhello.bgloc.LocationService: java.lang.SecurityException: uid 10571 cannot explicitly add accounts of type: com.followclass.driver.account
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2951)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.app.ActivityThread.access$1900(ActivityThread.java:155)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1463)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:152)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:5497)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: Caused by: java.lang.SecurityException: uid 10571 cannot explicitly add accounts of type: com.followclass.driver.account
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:1620)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:1573)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.accounts.IAccountManager$Stub$Proxy.addAccountExplicitly(IAccountManager.java:890)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.accounts.AccountManager.addAccountExplicitly(AccountManager.java:718)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at com.marianhello.bgloc.sync.AccountHelper.CreateSyncAccount(AccountHelper.java:23)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at com.marianhello.bgloc.LocationService.onCreate(LocationService.java:192)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2941)
04-13 18:38:25.156 29487 29487 E AndroidRuntime: 	... 8 more
04-13 18:38:25.158 29487 29487 D AppTracker: App Event: crash
04-13 18:38:25.162  1124  4364 W ActivityManager:   Force finishing activity com.followclass.driver/.MainActivity
04-13 18:38:25.166  3800  3800 I StatusBarIconController:  appTransitionPending
04-13 18:38:25.168  7402  7402 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
04-13 18:38:25.178  1124  4364 I ActivityManager_Thumbnails: Setting thumbnail of ActivityRecord{1832d97 u0 com.followclass.driver/.MainActivity t2846 f} to android.graphics.Bitmap@d2e3f00
04-13 18:38:25.183  1124   834 D DropBoxManagerService: file<EMAIL_ADDRESS>04-13 18:38:25.191  1124  1152 W ActivityManager:  Dismiss app error dialog : com.followclass.driver
04-13 18:38:25.191  1124  1152 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=1464854877792 duration=9102 nesting=0
04-13 18:38:25.194 29487 29487 I Process : Sending signal. PID: 29487 SIG: 9
04-13 18:38:25.195  3800  3800 D PhoneStatusBar: setSystemUiVisibility vis=8000 mask=ffffffff oldVal=8600 newVal=8000 diff=600
04-13 18:38:25.222  1124  4362 I ActivityManager: Process com.followclass.driver (pid 29487) has died
04-13 18:38:25.222  1124  4294 I WindowState: WIN DEATH: Window{b7d2a6f u0 com.followclass.driver/com.followclass.driver.MainActivity}
04-13 18:38:25.222  1124  4362 D ActivityManager: cleanUpApplicationRecord -- 29487
04-13 18:38:25.222  1124  3831 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=360, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ], android.os.BinderProxy@dbc2e56)
04-13 18:38:25.223  1124  4390 D GraphicsStats: Buffer count: 8
04-13 18:38:25.223  1124  4362 W ActivityManager: Scheduling restart of crashed service com.followclass.driver/com.marianhello.bgloc.LocationService in 1000ms
04-13 18:38:25.223  1124  1138 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=359, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ], android.os.BinderProxy@bc21ed7)
04-13 18:38:25.223  1124  3724 D ConnectivityService: releasing NetworkRequest NetworkRequest [ id=360, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-13 18:38:25.223  1124  1150 V ActivityManager: killProcessGroupAsync took 0 ms for PID 29487 on thread 14
04-13 18:38:25.224  1124  3724 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=360, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-13 18:38:25.224  1124  3724 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=360, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-13 18:38:25.224  1124  3724 D ConnectivityService: releasing NetworkRequest NetworkRequest [ id=359, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-13 18:38:25.225  1124  3724 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=359, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-13 18:38:25.225  1124  3724 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=359, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-13 18:38:25.227  3800  3800 I StatusBarIconController:  appTransitionPending

Your problem seems to be: "Unable to create service com.marianhello.bgloc.LocationService: java.lang.SecurityException: uid 10571 cannot explicitly add accounts of type: com.followclass.driver.account"
Not sure what it is. Maybe some "speciality" from Oneplus

Not sure if it is specific to Oneplus. I hoped you would have some insights. We have a working app using your plugin (many thanks for it 👍)  - https://play.google.com/store/apps/details?id=com.followclass.driver and it works great on my oneplus and every other device I have tried.
I used the 2.2.5 version of the plugin but I don't know what exact configuration was there of the other components.

Glad to see real app that is using this plugin in production.
According https://stackoverflow.com/questions/33270613/android-app-crashes-on-addaccountexplicitlyaccount-password-null It seems like app id doesn't match sync account name.
I'll post instruction for you to check in next comment.

So check if in platforms/android/AndroidManifest.xml package matches content_authority in platforms/android/res/values/strings.xml.

By the way, I was getting this a lot as well during development, I never got the time to dig too much into it but changing the provider from ACTIVITY_PROVIDER to DISTANCE_FILTER_PROVIDER solved it for me.
@onkar0777 could you try that and see if it solves your issue, if it does perhaps this info can help @mauron85 to pinpoint the exact cause.

The above values match but the issue seems to do something in the package name. I did not mention a hack I did to get the app running, which seems to be the root cause of this. So there are 3 cases:

The hack i did - I changed the variable CONTENT_AUTHORITY in config.xml to $PACKAGE_NAME.test and android:authorities in plugins/cordova-plugin-mauron85-background-geolocation/plugin.xml to "com.followclass.driver.test" --- This made the app run but lead to the above errors and ultimately the app crashed.

I remove and add the android platform, keep everything the same - use package name com.followclass.driver - I am unable to run my app on my device - ionic run android fails with this message - Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

I changed the id (package name) in config.xml to something else - com.followclass.driver_test - Remove and add android platform - Everything works fine - S

So I think the actual issue is point 2 where if I use my correct package name - com.followclass.driver it leads to app not being installed on the device.
Should I open a new issue for this or is it ok to continue here ?

According https://stackoverflow.com/a/16267987/3896616

The authority, as listed in android:authorities must be unique.

Meaning you should be fine if you uninstall conflicting app first (completely for all users in android settings)

I had tried this multiple times earlier (even with adb uninstall com.followclass.driver) but it did not work. Now in a desperate attempt I uninstall all the apps created by me and restarted the device.
Now it seems to be working. I will update to v3 completely now and hope everything will go on smoothly. Thank you very much for your support and prompt replies. Much appreciated 👍
Closing the issue.


Register in the World of Warcraft library "LibStub" if detected

json.lua does not currently work within a World of Warcraft addon because it needs to be registered as a LibStub library. This solves that issue by only registering it if LibStub exists when initially running (so it will continue to work correctly outside of a World of Warcraft addon)
Since json.lua is the only maintained json lua library I know of, it would be great to add World of Warcraft addon support so that there is a good way to do json within addons :)

I appreciate the effort put into the pull request, but I'm not keen on having additional code just to assure compatibility with a single game's plugin system.
A better approach might be for you to maintain a fork of the library with this compatibility added in, the library infrequently changes (typically only for bug fixes) thus keeping it up-to-date wouldn't be too much hassle.
Thanks!


Two MP3 files into a single MP3 file

Hello, I would like to concatenate two MP3 files into a single MP3 file. Do you have any specific sample code?I look forward to your response. Thank you.

Hello.
dotnetVEE does not yet support concatenating two MP3 files into a single one. It primarily focuses on video editing.
If you'd like this feature to be added, please let me know.

Update
dotnetVEE 2.0.0 allows you to concatenate two audio files:
using dotnetVEE.Computation.Audio;

AudioFx.Concatenate(
    "audio1.mp3",
    "audio2.mp3",
    "output.mp3"
);


ELPP-830 error handling

This adds error message displaying to the dashboard.
To use this checkout the error-handling branch of the test services (unless its been merged already) amend error_rate at the bottom of the file to be None for no errors, 1 for errors all the time, 2 for a 1 in 2 chance of an error etc.

add error type (API/Application etc)
More information on the schedule error - schedule_article_publication
"An error has occured, please try again." (queueArticleStatusTemplate)

@davidcmoulton ready to be retested!

Happy for this to be merged.


BSOD Windows 10 crash with blue screen, intel core 2 Duo

Using this version of HAXM my windows 10 machine just crashes with BSOD.
Error in intelhaxm.sys
Using intel core 2 Duo;
8GB RAM.
Something has changed in the code to make this happen.
Same thing with version 7.3.0. Had to rollback to 7.1.0 to make the android emulator work.

102018-7171-01.dmp.txt

102018-7171-01.zip

github is having issues...
102018-7171-01.dmp.txt

Thanks, after analyzing the crash dump with WinDbg and checking the stacktrace, I can confirm that this is the same issue as #101.
For the record, the top of the stacktrace is:
STACK_TEXT:
ffffbd03`d381b738 fffff80c`e9c878bc : fffff80c`e9c95e20 00000000`00000040 00000000`00000000 00000000`00000000 : IntelHaxm!asm_rdmsr+0x3 [C:\src\haxm\core\ia32_ops.asm @ 231]
ffffbd03`d381b740 fffff80c`e9c8f90f : fffff80c`e9c981a0 00000000`00010000 ffffc20e`8a6a1a80 ffffc20e`8a6c7010 : IntelHaxm!vcpu_save_host_state+0x4c0 [c:\src\haxm\core\vcpu.c @ 1154]
ffffbd03`d381b7b0 fffff80c`e9c8f4f8 : 00000000`00010000 ffffc20e`8a6c7010 ffff8001`525fe000 ffffc20e`8a6c7010 : IntelHaxm!cpu_vmx_run+0x2f [c:\src\haxm\core\cpu.c @ 335]
ffffbd03`d381b7e0 fffff80c`e9c86b85 : fffff80c`e9c962a0 ffffc20e`8a6a1a30 ffffc20e`8a6c7010 ffffc20e`8a6c76b8 : IntelHaxm!cpu_vmx_execute+0xe0 [c:\src\haxm\core\cpu.c @ 452]
ffffbd03`d381b840 fffff80c`e9c82784 : 00000000`00000000 ffffc20e`8a6c7010 ffffc20e`8bc92460 00000000`00000000 : IntelHaxm!vcpu_execute+0x149 [c:\src\haxm\core\vcpu.c @ 1518]
ffffbd03`d381b880 fffff80c`e9c8250f : ffffc20e`8bc92390 ffffbd03`d381bb00 00000000`19590000 00000000`00000000 : IntelHaxm!HaxVcpuControl+0x1b8 [c:\src\haxm\windows\hax_entry.c @ 432]
ffffbd03`d381b910 fffff801`5443fef9 : ffffc20e`8c194080 fffff801`544401c5 ffffc20e`8bc92390 00000000`20206f49 : IntelHaxm!HaxIoControl+0x2f [c:\src\haxm\windows\hax_entry.c @ 722]
...


AzureRmWebAppDeploymentV3 upgraded to Node16

Task name:  AzureRmWebAppDeploymentV3 upgraded to Node16
Description: Added Node 16 handler
Documentation changes required: N
Added unit tests: N
Checklist:

[x] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected

There is no execution handler for Node16 - is this expected?

/azp run

Hello, this change is failing, could you please take a look?


Can't turn on HSTS settings using new config model.

Describe the issue:
We can't turn on HSTS for admin console settings using new config model.

If the HttpHeaderSecurityFilter element is available in the web.xml file (stored in the <PRODUCT_HOME>/repository/conf/tomcat/carbon/WEB-INF/ directory) as shown below, it implies that security headers are by default configured for the management consoles of all of your profiles. However, in a production deployment, ‘Strict-Transport-Security’ needs to be explicitly enabled by replacing the default  values of the HttpHeaderSecurityFilter filter.
Shown below is the default filter configuration.

HttpHeaderSecurityFilter
org.apache.catalina.filters.HttpHeaderSecurityFilter

hstsEnabled
false

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Dep pattern error when scanning folders with symbols in name

What version of dep are you using (dep version)?
$ dep version
  dep:
     version     : v0.5.0
     build date  : 2018-07-26
     git hash    : 224a564
     go version  : go1.10.3
     go compiler : gc
     platform    : windows/amd64
     features    : ImportDuringSolve=false

What dep command did you run?
dep ensure
output:
analysis of current project's packages failed: syntax error in pattern

What did you expect to see?
It should have worked!
What did you see instead?
output:
analysis of current project's packages failed: syntax error in pattern

The culprit: our project contains some website static folders, and within them there are a couple folders containing [ and ] in its name -- these caused dep to fail with the above message. When we removed the folders with those characters in it, dep proceeded to work.
Using ignored = [...] did not work in Gopkg.toml either.
We personally fixed it by removing these folders, and in this case it's an OK solution for us; however we wanted to report the issue in case it should be fixed. There also might be other symbols that trigger this issue as well.

I don't know that there's going to be a fix here any time soon... note that brackets are invalid characters in a Go import statement as well. I suppose we could ignore any directory with brackets in it but that has its own problems.
One thing we could do is return a better error there instead of "syntax error in pattern", I believe we need regexp.QuoteMeta somewhere.

@kevinburke totally understand, we've fixed the issue in our particular case. The case is documented here for others that might experience this.
+1 on better error message, or which particular files/folders caused the error, since it did require some git diffs and some guesswork to get this resolved.
In the meantime, we haven't experienced the issue again and have referenced this issue in our records in case we see a similar error again in the future. You're good to mark this as "nofix" if you'd like. Thanks for taking a look into this!

It seems that nothing changed with the error message.
I'm having the same error when I'm trying to run dep ensure. And I have no idea what exactly causes the error.

analysis of current project's packages failed: syntax error in pattern

Using dep version v0.5.4
Any ideas on how can I debug it? Thanks!

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!


Add a web docs page explaining the API changes and how to update.

This PR adds a web docs page explaining the API changes and how to update following the breaking changes of #136 and #143
This can then be sent to known users to help them update.

Alongside this perhaps we should bump the package number here: https://github.com/Cambridge-ICCS/FTorch/blob/ac4c14f307e79a147e377b8311ea40af4bd7ec34/src/CMakeLists.txt#L4
And perhaps a change to switch to semantic versioning?

We could, but I am not sure it carries much meaning since we haven't updated it so far...
My plans were to make a JOSS release v1.0.0 and then be more rigorous from that point.

Thanks @TomMelt I will wait for Joe to have a final look over #143 and then merge this after that goes in.
I'm collating a list of users to email so please add any users you are aware of that I need to email here @dorchard @jwallwork23:

Laura Mansfield and Stanford
Will Chapman and NCAR
H. Heuer and ICON
vbalmer
WaveWatch 3

Minor Aesthetic changes to the webpage and added a note to the README to highlight until v1.0.0.
Issue #146 opened to remind us to revert these changes after a suitable period.


Fixed NOT_EQUAL filter

uiGridConstants.filter.NOT_EQUAL was actually returning exact matches

It's not clear to me that this is the problem.  In this plunker: http://plnkr.co/edit/78tvqOJ0mkM2OYbeMpea?p=preview I've changed the filter on e-mail to NOT_EQUAL.  If the problem were as you suspect, then it should be working as equals instead of not-equals, but if I put<EMAIL_ADDRESS>into the filter, it doesn't return that row.
I'll look at it more closely later.

It's funny, I did that exact same test down to using that same email address..  I realize now that the problem in that case is that @ is being escaped, so maybe testing with !regex would be a better solution than !angular.equals

It looks to me like it's escaping the ., not the @.  But that may be browser specific.  Let me try !regex.

OK, that works when I use:
    if (filter.condition === uiGridConstants.filter.NOT_EQUAL) {
      var regex = new RegExp('^' + term + '$');
      return !regex.exec(value);
    }

I'll do a separate pull request with that.

Thanks!


Remove support for anonymous gists

Which were implemented to resolve https://github.com/zoffixznet/perl6-Pastebin-Gist/issues/2.
https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/

Modification adopted from the attached PR.


Improve error message when using a third party provider and the project has not been built

see https://github.com/ErikEJ/EntityFramework6PowerTools/issues/118

@robertmclaws Does unloading/reloading the project or close/re-open solution not work for you?


The latest release v3.0.73 not work on alpine

Install aliyun-cli in python:3.7-alpine:
apk add --no-cache curl
curl -LO https://github.com/aliyun/aliyun-cli/releases/download/v3.0.73/aliyun-cli-linux-3.0.73-amd64.tgz
tar zxf aliyun-cli-linux-3.0.73-amd64.tgz

And it does not work:
./aliyun
sh: ./aliyun: not found

I have tried to build from source code (commit: 2fb764bbd4f916471f10fcfc66b64bbe2fdd27aa) and it work correctly in alpine.

I noticed that a new version has been released (v3.0.74), but this problem is still not solved:
# ./aliyun
sh: ./aliyun: not found

Hello @k8scat ,
The output "X not found" is about missed dynamically linked library. (Probably the most confusing and ambiguous error message).
run ldd aliyun to get more diagnostics.
The solution
For alpine add this into your Dockerfile
RUN apk add --no-cache libc6-compat musl


Globally disabling cookies?

I'm creating an API and I am trying to figure out how to disable cookies in my application. We will be using headers for authentication of our API and have no need for cookies.
I was expecting that not having a session config or setting module.exports.session = null would do the trick, but that does not seem to be the case.

@sgress454 Was this ever made configurable?

I would also like to know the same. Right now what I do is remove the cookieParser middleware, to not allow reading, but would be nice to also remove setting.
Also, do sockets work without cookies, I'm having socket issues right now, but don't know if that's issue as of yet.

+1

You can disable sessions in Sails, that should disable cookies. Add the code below in your .sailsrc:
{
  ...
  "hooks": {
    "session": false
  }
}

Source: http://sailsjs.org/documentation/reference/configuration/sails-config-session#?disabling-sessions


Include tree shaking for CSS

We have developed treeshake to enable tree shaking CSS in the Jackman build process. We should add it to this project and make it configurable.

The feature of tree shaking was added in 9a334a75bbfed57fb91750813e4cca1138f30590.

This is now properly added and functioning. Closing this ticket. For issues with Treeshake, please report to [https://github.com/jackmanapp/treeshake](the Treeshake repo).