Accessing FIBO In A Corporate Firewalled Environment

Hi FIBO Development Team,
I am not sure if this problem is unique to FIBO or Protege, but I am working with a Canadian banking corporation that wishes to examine FIBO through various tools, such as Protege Desktop, Stardog, and other tools listed online (http://owl.cs.manchester.ac.uk/tools/list-of-reasoners/ and https://www.uni-ulm.de/en/in/ki/research/software/).
However, the corporation has a firewall in place and prevents Protege from loading imported terminology from OMG and W3: Protege constantly prompts me to 'resolve' the imports when trying to load FIDO PROD and DEV.  This occurs regardless of whether I am using the quick start files, or the downloaded zip file of the ontology.
An example import from FIBO that fails inside the firewall even if I try loading via URL: https://www.omg.org/spec/LCC/Languages/LanguageRepresentation/ (This is imported by https://spec.edmcouncil.org/fibo/ontology/master/2020Q2/FND/Utilities/AnnotationVocabulary/)
I have tried setting the Java proxy settings in the Protege launcher but the result is the same.  I have logged this issue with the Protege team as well (https://github.com/protegeproject/protege/issues/967).
Have you come across any other FIBO users with this issue in corporate environments?  For context, I am using a corporate laptop when using Protege Desktop and a Linux virtual machine on the corporation's internal network when trying to use command-line OWL/DL reasoning tools to analyze FIBO.
Any help or guidance would be appreciated.
Thank you,
Carmen

Can you access these ontologies directly, for example, can you reach https://www.omg.org/spec/LCC/Countries/CountryRepresentation/ from your browser?

Hi @mereolog, the ontologies can be accessed directly from the browser, just not through Protege.

Ok, you may then download all of them into a local folder and use them when Protege asks for import resolutions - I can send you the list of their urls.
I know that this is sort of laborious and fishy but I cannot think about any other solution now.
Perhaps other members of this forum will have better ideas.

Hi Carmen,
A number of banks, including Wells Fargo and others, have this issue, although we've been using a 'follow your nose' mechanism to date.  We should probably add a zip file that includes all of the important imports to the download page, although they do change from time to time (not often).
The LCC ontologies are an Object Management Group (OMG) standard, currently on version 1.1, and likely updated later this year to cover New Macedonia :).  Those ontologies are available in the attached zip file.
LCC-20200710.zip.  Note that the load file is under the 1.1 folder in the zip file.  I zipped the current git repository, which is the 1.1 published version.
There are a few other files that you'll need - the OMG's specification metadata recommendation, which is in the attached zip -
SpecificationMetadata.zip.  You'll also need SKOS core, available from the W3C, also attached -
core.zip.  Finally, we reference, but don't import, the Dublin Core Metadata terms ontology, which is also attached -
terms.zip
I -think- this everything.  Hope this is what you were looking for.  Let us know if you need more assistance.
Best,
Elisa

Hi Elisa and Pawel,
Thank you for your quick responses!
I'll give this a try and let you know if any additional assistance is required.
Much appreciated,
Carmen

Carmen (@carmenchui), let me know if you need any further assistance.

Hi Robert @trypuz,
I'm still waiting to hear back from a colleague but did have a question.
Would it actually be easier to load FIBO by first using the "Gather Ontologies" feature in Protege on a personal computer, zip up the files, and then reload these files on the corporate computer?
The reason why I ask is that the Protege cache retains which ontologies have been prompted for a local file -- if the user has opted not to resolve the imports, the program will not prompt the user again.  I've recommended other users to clear their Protege cache every time they try to load FIBO on a corporate computer, but it does get tedious after a while.

@carmenchui did you add your company's proxy details into the protege start script?

https://mailman.stanford.edu/pipermail/protege-user/2016-September/005276.html

Hi @jgeluk, yes, I added the proxy details in the Protege start script but Protege still returns errors when importing the OMG and W3C imports.

@carmenchui, if you still have a problem with FIBO imports, please provide us with more details concerning tools you are using (versions, platform, os, etc.).

Hi @trypuz, I just checked with another colleague and they were able to load FIBO manually on the corporate laptop in its entirety with files @ElisaKendall provided.
I tried loading FIBO just now on my corporate laptop with the follow-your-nose starting point URL (https://spec.edmcouncil.org/fibo/ontology/master/2020Q2/LoadFIBOProd.rdf) as well and it appears to load without issues.  However, I'm not sure if any of the imports are still being blocked by the corporate proxy/firewall.
What would be helpful would be for the FIBO team to also provide the Protege metrics (number of axioms, logical axiom count, classes, etc.) for each release because the colleague and I had to compare Protege metrics from a personal computer to make sure we got the same number of axioms/classes on the corporate machine.
Can I check with you that these are the correct metrics for FIBO 2020 Q2?

For reference, the corporate machine runs the following:

Lenovo ThinkPad T470 (16GB RAM, Intel Core i5-6300U CPU)
Windows 10 Enterprise version 1703 (OS Build 15063.2409);  64-bit, x64 processor
Java SE Runtime Environment (build 1.8.0_24-b26)
Protege 5.5.0 with the following fields filled out in the startup script (.bat):
-Dhttp.proxyHost -Dhttp.proxyPort -Dhttp.proxyUser -Dhttp.proxyPassword
-Dhttps.proxyHost -Dhttps.proxyPort -Dhttps.proxyUser -Dhttps.proxyPassword

Unfortunately, I don't have any information on the corporate proxy, but if that's needed, I can try to find that out (I am not sure if I am privy to this information since I am not an employee but a researcher working with the corporation).

Hi @carmenchui, it is actually a great idea to provide the Protege metrics for each release. I'll ask the FIBO Team to create a Jenkins job for it. Though we have to be careful here to not confuse our Community because we release a few FIBO products that may differ in their metrics, e.g., FIBO with metadata will have more triples than FIBO without metadata info. The same applies to the quickstart files.

Hi @trypuz, that makes sense.  Perhaps outlining which Protege metrics corresponds to which files (LoadFIBOProd, the quickstart) would also be helpful since the FIBO Team does provide various access points for its users.  I think providing the metrics would be especially useful for the corporate users just in case their firewall or proxy is blocking imports.

hello @ElisaKendall  i'm also having the same issue with downloading FIBO behind a firewall and setting proxy didn't work. I tried to download the zip files  but i'm still getting the import issues. for some reason it's not reading the catalog files within the corresponding ontology directories. any clue what the issue may be? thank you.

hello @ElisaKendall  i'm also having the same issue with downloading FIBO behind a firewall and setting proxy didn't work. I tried to download the zip files  but i'm still getting the import issues. for some reason it's not reading the catalog files within the corresponding ontology directories. any clue what the issue may be? thank you.

@karabshi Hi, Did you grab the zip files attached above in my comment to Carmen?  And if so, does that fix the issue?
Otherwise I (or possibly Robert, depending on where you are located) should probably have a 1-1 debugging session with you to see what you are able to download and what is actually missing.  You probably should start with the Q4 2020 release so that we are on the same page.  If you have not downloaded that version, please do that first.
Best,
Elisa

@karabshi Hi, Did you grab the zip files attached above in my comment to Carmen?  And if so, does that fix the issue?
Otherwise I (or possibly Robert, depending on where you are located) should probably have a 1-1 debugging session with you to see what you are able to download and what is actually missing.  You probably should start with the Q4 2020 release so that we are on the same page.  If you have not downloaded that version, please do that first.
Best,
Elisa

@ElisaKendall i did download the files you referenced and it's still not able to import. sure would be happy to go on a 1-1 with you to debug the issue.

@ElisaKendall i did download the files you referenced and it's still not able to import. sure would be happy to go on a 1-1 with you to debug the issue.

@karabshi My email address is<EMAIL_ADDRESS>- please feel free to drop me a note and we can find a time.

@karabshi My email address is<EMAIL_ADDRESS>- please feel free to drop me a note and we can find a time.


feat: new method to get commit date from git repo

for https://github.com/docker/metadata-action/pull/308

is it ok now?

looks like ci failed with other tests.


Logpoint intellisense is not correct

Open some file
Add a logpoint, type this in message box
Get intellisense for his

It's ignoring the first letter, but also I shouldn't get intellisense there, only inside {}, right?

Type inside {}
Get suggestions for 'this' context

Type {this.toD}
Get global suggestions starting over at the ., not suggestions for this

@roblourens nice catch. The issue was that the repl suggestions were jumping in.
The last issue you mentioned, regarding the suggetsions after . is hard to fix due to the fact how we have implemented this feature - the breakpoint widget is a fake editor that is working on the bottom editor to get the context. There is an issue already capturing this, so if you are interested I can try to dig it out

I'm correctly getting no intellisense when there are no braces, but even within braces I get no intellisense after any . (i.e. this. returns no results)

Yeah that is expected due to the reason specified above


Replace local class cl_extract_sap with new version

The core logic to extract the information on SAP components and their usage is implemented in class cl_extract_sap. This class is currently not well covered with tests and difficult to enhance.
Replace this class therefore with an improved version.

Is done in development to 0.2.0


Card Groups and Decks don't play nicely with footers

Applying a footer to cards arranged as groups or decks doesn't work as expected.
The footer only appears at the bottom of the card(s) with the tallest content.  The footer simply appears below the content in all other cards, not at the bottom.

Card title

Content in Here.

BUTTON

...

Could you please provide a live example on JS Bin, as per our contributing guidelines?

CSS:
http://v4-alpha.getbootstrap.com/dist/css/bootstrap.min.css
JS:
http://v4-alpha.getbootstrap.com/dist/js/bootstrap.min.js
Probably a few other things like tether and whatnot need to be included but I don't have a template for V4 together

It doesn't seem to be working right now, but here is what I threw together.
http://jsbin.com/ziqebuyuti/edit?html,output
(Sorry, first time ever bug reporting)

https://output.jsbin.com/biroye/3/quiet

Here is my JSBin showing a simple example:
https://jsbin.com/hecuvupewu/edit?output

Anyone able to take a look at this?

I think I've got a fix: https://jsbin.com/datemimane/edit?css,output
Though this would only help when $enable-flex is true.
within _card.scss:
@if $enable-flex {
  .card-deck {
    display: flex;
    flex-flow: row wrap;
    margin-right: -.625rem;
    margin-left: -.625rem;

    .card {
      display: flex;
      flex: 1 0 0;
      flex-direction: column;
      margin-right: .625rem;
      margin-left: .625rem;

      .card-block {
        flex-grow: 1;
      }
    }
  }
}

Haven't worked out a fix for when its off yet though.

Hi @limitlis!
You appear to have posted a live example (https://jsbin.com/datemimane/edit), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

line 45, column 36 thru column 62: Forbidden code point U+0003.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

This CSS workaround adapted from here resolves @danimalweb's example above.
https://jsbin.com/muxovozeze/1/edit?css,output

Please note that the fix posted by @limitlis also stretches small images to the full width of the card, without preserving aspect ratio.

Fixed in this commit: 40c982e20fbd8a985659c9341c75585f5df269d0.


Session 4 Report

Team Name: 96150292-96150127
Student Name of member 1: Laaya Yaghoubi
Student No. of member 1: 96150292
Student Name of member 2: Shayan Masrour
Student No. of member 2: 96150127

[ ] Read Session Contents.

Section 4.4.1

[ ] Investigate the ps command

[ ]

[ ] Infromation about processes with PID = 1

[ ] Process ID 1 is usually the init process primarily responsible for starting and shutting down the system. Originally, process ID 1 was not specifically reserved for init by any technical measures: it simply had this ID as a natural consequence of being the first process invoked by the kernel.

[ ] Program using getpid

[ ]

Section 4.4.2

[ ] Program using getppid

[ ] #include <stido.h>
#include <unistd.h>

int main(void)
{
pid_t result = fork();
printf("\nfork result %d", result);
printf("\nI am after forking\n");
printf("\nIam process %d", getpid());
printf("\nI am parent process %d", getppid());
return 0;
}
1. [ ]A parent process is one that creates a child process using a fork() system call. A parent process may have multiple child processes, but a child process only one parent process. On the success of a fork() system call: The Process ID (PID) of the child process is returned to the parent process.
1. [ ]

[ ] Describe the C program (fork program)

[ ] we fork and get a new process.
we check if a process is the child (ret == 0) or if it is the parent (ret!= 0).
In the child process you get 23.

[ ] Program showing that memory of the parent and the child is seperate

#include  <stdio.h>
#include  <sys/types.h>

#define   MAX_COUNT  200
void  ChildProcess(void);                /* child process prototype  /
void  ParentProcess(void);               / parent process prototype */
void  main(void)
{
pid_t  pid;
 pid = fork();
 if (pid == 0)
      ChildProcess();
 else
      ParentProcess();

}
void  ChildProcess(void)
{
int   i;
 for (i = 1; i <= MAX_COUNT; i++)
      printf("   This line is from child, value = %d\n", i);
 printf("   * Child process is done *\n");

}
void  ParentProcess(void)
{
int   i;
 for (i = 1; i <= MAX_COUNT; i++)
      printf("This line is from parent, value = %d\n", i);
 printf("* Parent is done *\n");

}
When the main program executes fork(), an identical copy of its address space, including the program and all data, is created. System call fork() returns the child process ID to the parent and returns 0 to the child process. The following figure shows that in both address spaces there is a variable pid. The one in the parent receives the child's process ID 3456 and the one in the child receives 0.

[ ] Program printing different messages for parent and child process

[ ] #include <stdio.h>
#include <unistd.h>

int main(void)
{
pid_t pid;
printf("I am the parent process & pid is:%d.\n",getpid());
printf("before forking\n");
pid = fork();
pritnf("after forking\n");
if(pid == 0)
{
printf("i am the child process and pid is:%d.\n", getpid());
}
else if (pid>0)
{
printf("i am the parent process and pid is: %d.\n", getpid());
}
else if (pid == -1)
{
printf("Error fork failed\n");
}
return 0;
}

[ ] Program for the last task of this section

[ ] #include <stdio.h>
#include <unistd.h>

int main(void)
{
pid_t pid;
printf("before forking\n");
printf("I am the parent process & pid is:%d.\n",getpid());
pid = fork();
printf("after first forking\n");
if(pid == 0)
{
printf("i am the child process and pid is:%d.\n", getpid());
}
else if (pid>0)
{
printf("i am the parent process and pid is: %d.\n", getpid());
}
else if (pid == -1)
{
printf("Error fork failed\n");
}
pid = fork();
printf("after second forking\n");
if(pid == 0)
{
printf("i am the child process and pid is:%d.\n", getpid());
}
else if (pid>0)
{
printf("i am the parent process and pid is: %d.\n", getpid());
}
else if (pid == -1)
{
printf("Error fork failed\n");
}
return 0;
}

1. [ ] In Linux, a daemon is typically created by forking twice with the intermediate process exiting after forking the grandchild. This has the effect of orphaning the grandchild process. As a result, it becomes the responsibility of the OS to clean up after it if it terminates. The reason has to do with what are known as zombie processes which continue to live and consume resources after exiting because their parent, who'd normally be responsible for the cleaning up, has also died.

Section 4.4.3

[ ] Program using wait and counting from 1 to 100

#include <stdio.h>
#include <sys/wait.h>
#include <unistd.h>

int main()
{
int ret = fork();
if(ret == 0) {
int i;
for(i=1; i<=100; i++)
{
printf("THIS LINE IS FROM CHILD, value = %d\n", i);
printf("\nchild process is done\n")
}
}
else{
int rc = 0;
wait(&rc);
printf("return code is %d\n",WEXITSTATUS(rc));
int i;
for(i=1; i<=100; i++)
{
printf("THIS LINE IS FROM PARENT, value = %d\n", i);
printf("\nchild process is done\n")
}
}
return 0;
}

1. [ ] All  of  these  system  calls  are used to wait for state changes in a
   child of the calling process, and obtain information about  the  child
   whose  state  has  changed.     In the case of a terminated child, performing a
   wait allows the system to release the resources  associated  with  the
   child;  if  a wait is not performed, then the terminated child remains
   in a "zombie" state.

   If a child has already changed state, then these calls return  immedi‐
   ately.   Otherwise, they block until either a child changes state or a
   signal handler interrupts the call (assuming that system calls are not
   automatically  restarted  using  the SA_RESTART flag of sigaction(2)).
   In the remainder of this page, a child whose  state  has  changed  and
   which  has  not  yet  been waited upon by one of these system calls is
   termed waitable.

[ ] Program showing process adoption

#include <stdio.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <unistd.h>

int main()
{
pid_t pid;
printf("i am the original process with PID %d and PPID %d.\n", getpid(),getppid());
pid = fork();
if (pid> 0)
{
printf("i am the parent with PID %d and PPID%d.\n", getpid(),getppid());
printf("my child's PID is %d\n", pid);
}
else if (pid ==0)
{
sleep(4);
printf("i'm the child with PID %d and PPID %d.\n", getpid(),getppid());
}
printf("PID %d terminates.\n", getpid());
printf("PID %d terminates.\n", getppid());
}
1.

Section 4.4.4

[ ] Describe following commands/APIs:

The exec subroutine, in all its forms, executes a new program in the calling process. The exec subroutine does not create a new process, but overlays the current program with a new one, which is called the new-process image. The new-process image file can be one of three file types:
An executable binary file in XCOFF file format.
An executable text file that contains a shell procedure (only the execlp and execvp subroutines allow this type of new-process image file).
A file that names an executable binary file or shell procedure to be run.
execl() system function takes the path of the executable binary file (i.e /bin/ls) as the first and second arguement.then the arguement (i.e -lh, /home) that you want to pass to the executable followed by NULL. Then execl() system function runs the command and prints the output.
The execvp() function is the same with execv() but in its parameter, it gets the file name which is in the PATH environment variable
1.The execlp() system call duplicates the actions of the shell in searching for an executable file if the specified file name does not contain a slash (/) character. … The execlp system call can be used when the number of arguements to the new program is known at compile time.

[ ] Program which forks and executues ls command

[ ]

[ ]

Source Code Submission
please submit all your codes in a zip file

[ ]
codes.zip

80/100


Downloads from Sourceforge

Hi there,
I went to install basemap, and reviewed all the install steps, seeing that I needed to download the library manually, I preceded to Sourceforge (:confounded:) to download the release. It went like this:

While the file was still downloading from SF, I looked for github releases due to the prompting of a coworker, and I found you all did have some up. I downloaded the same release from GH before the SF one ever finished.

Is this project still using Sourceforge for anything, or is it just legacy stuff? If it's legacy, would you consider a Pull Request to update the README and docs to point to the github releases page instead of sourceforge? Thanks!

The sourceforge stuff was where the pypi page pointed to. The next release
(whenever I manage to free up time to do it) will be hosted directly from
pypi's servers instead as well as posting the release tarballs on github.
Yes, please do submit a PR to update the README, especially since pip now
no longer installs from sourceforge automatically.
On Fri, Mar 11, 2016 at 2:04 PM, Ben Hayden<EMAIL_ADDRESS>wrote:

Hi there,
I went to install basemap, and reviewed all the install steps, seeing that
I needed to download the library manually, I preceded to Sourceforge ([image:
:confounded:]) to download the release. It went like this:
[image: screen shot 2016-03-11 at 12 40 39 pm]
https://cloud.githubusercontent.com/assets/877908/13712477/76c8f87e-e789-11e5-839f-a0b0f60cb6cc.png
[image: screen shot 2016-03-11 at 12 43 42 pm]
https://cloud.githubusercontent.com/assets/877908/13712478/76ca6664-e789-11e5-98b2-b8f24198a3cd.png
While the file was still downloading from SF, I looked for github
releases due to the prompting of a coworker, and I found you all did have
some up. I downloaded the same release from GH before the SF one ever
finished.
[image: screen shot 2016-03-11 at 12 47 28 pm]
https://cloud.githubusercontent.com/assets/877908/13712496/9b0bd210-e789-11e5-83ab-ee645bd22e42.png
Is this project still using Sourceforge for anything, or is it just legacy
stuff? If it's legacy, would you consider a Pull Request to update the
README and docs to point to the github releases page instead of
sourceforge? Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/matplotlib/basemap/issues/277.

I've submitted a super small PR at #278.

closed via #278


Patched with changes required after migrating RAnnotatedCode to radare2

This PR is from the radare2 team. We have migrated RAnnotatedCode used in retdec-r2plugin to radare2. In the future, RAnnotatedCode will work as the standard decompiler interface for all decompiler plugins in Cutter. We have a series of work going on for improving the decompiler widget. This PR contains necessary changes required to make retdec-r2plugin work with updated radare2.

It seems it checks out an old version of radare2 in the automated tests. That's the reason why tests failed.

Hi, thank you for the PR. As you have pointed out, the reason why tests failed is that this plugin is tested on an older Radare2 release (4.3.1) which is missing the interface for RAnnotatedCode. So these changes won't work on older releases that are available from package managers of different Linux distributions.
Don't you think that we should maintain some kind of compatibility with older versions? I can think of a few solutions: we can fetch the latest radare2 sources in CMake as external project - but the r_annotated_code would need to be linked statically. Another solution would be to conditionally include r_util/r_annotated_code.h.
Do you think it would make sense to do it? Or we should change the requirements of the radare2 version to the newest one?

I will merge this PR into branch win-support where I am preparing changes for the next release. I will test the options I mentioned above. And perhaps provide support for previous releases.

Conditional include could work temporarily, however it will break at some point too if the API in r2 changes.
What we do in r2ghidra is to always develop the master against r2 master and also run the tests against it. When r2 creates a release, we also tag r2ghidra's latest commit, so it is transparent which r2ghidra version is guaranteed to work with a certain r2 version, see https://github.com/radareorg/r2ghidra-dec/issues/92
On the other hand, this model also means previous r2 versions will not receive updates of the plugin.

I agree, this solution sounds fine. I have merged this PR into master now with other changes and we'll tag commits with radare2 version supported so that installer could implement the logic of choosing appropriate commit.


Update users.py with docstring

I have made the docstring for the posts method

Great work buddy @Tomfernandezp !!
Do not forget to

Share your contribution on socials(twitter mainly), tag us and Clueless 🫂
Give this repository a star ✨
Follow Clueless Community on GitHub ✅

Issue #273 is still open.


Repeat rows by activity-sector

This is working on test-
Both the sector and sector percentages are being repeated as expected.

I confirm this is still working with the re-pass. Issue can be closed.


ProgressBar: Remove unused maximumValue field, fix center label centering

BorderLayout does not guarantee equal sizing of its children, so having
a component centered between two components of unequal sizes will leave
it centered relative to their sizes, such as the following:
|-----BorderLayout-------------------------------------------|
||----WEST----||------CENTER------||----------EAST----------||
||------------||------------------||------------------------||
|------------------------------------------------------------|

Conversely, GridLayout uses fixed, equal-width columns for its children,
ensuring the center component will always occupy the center third of the
parent's dimensions.
P.S. This change causes labels to truncate earlier as they do not expand
beyond a third of the parent container's dimensions. Because the use
case for this component is with small labels, I do not anticipate this
will cause breakage.
Fixes #13115

Some screenshots demonstrating the change

Before
After

-

@Nightfirecat  I think this is being used now with the new party panel stuff

I've dropped the commit which removed that field.


config.ComputeExternalAddress() returns inconsistent values

In config.ComputeExternalAddress(), if Server.ExternalAddress is set, we returns whatever that value is, which according to parameters.yaml is an url. However, if Server.ExternalAddress does not exist, we return Server.Hostname+Server.Port, which is not a URL.
To ensure it's always consistent and the URL value is valid, we can

Check and see if Server.ExternalAddress can be parsed as a URL
Construct URL object for hostname and port, and assign https as the default schema
Regression test / modify code elsewhere to ensure nothing's broken

@bbockelm Since ComputeExternalAddress() basically returns what Server.ExternalAddress is meant for, do we simply want to set the default value of Server.ExternalAddress to https://Server.Address:Server.Port? Or is there any reason preventing us from doing so?


Fix Decimal256 scalar display string in sqllogictest

Which issue does this PR close?

A followup to #7048.
Rationale for this change

In #7048, one question is the display string of Decimal256 scalar is different to Decimal128 in sqllogictest. This patch fixes it.
What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

The pyarrow failure is unrelated:
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

I believe CI will pass after merging up from main to get the change in  https://github.com/apache/arrow-datafusion/pull/7416

Thanks @alamb


build directory not self-sufficient anymore?

Describe the bug
I am not sure but it seems that there is a bundling problem in the latest version of svelte-kit.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-tvp61o
Create a typescript skeleton project:
npm init svelte@next my-app
cd my-app
npm install
npm i -D svelte-i18n @sveltejs/adapter-node@next

use adapter-node in svelte.config.js:
import adapter from '@sveltejs/adapter-node';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	preprocess: preprocess(),

	kit: {
		adapter: adapter()
	}
};

export default config;

and build the project npm run build
The generated file build/server/entries/pages/index.svelte.js is:
import { c as create_ssr_component } from "../../chunks/index-2dc61825.js";
const Routes = create_ssr_component(($$result, $$props, $$bindings, slots) => {
  return `
Welcome to SvelteKit

Visit kit.svelte.dev to read the documentation
`;
});
export { Routes as default };

Now import svelte-i18n in src/routes/index.svelte

Welcome to SvelteKit

Visit kit.svelte.dev to read the documentation

rebuild, the generated file build/server/entries/pages/index.svelte.js is now:
import { n as noop, a as safe_not_equal, b as subscribe, r as run_all, i as is_function, c as create_ssr_component } from "../../chunks/index-110612cb.js";
import { __assign, __extends, __spreadArray } from "tslib";
...

The build directory now needs node_modules with all necessary imports.
Logs
No response
System Info
System:
    OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 25.32 GB / 30.78 GB
    Container: Yes
    Shell: 3.1.2 - /usr/bin/fish
  Binaries:
    Node: 17.6.0 - /usr/bin/node
    npm: 8.5.1 - /usr/bin/npm
  Browsers:
    Chrome: 99.0.4844.51
    Firefox: 96.0
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.31
    @sveltejs/adapter-node: ^1.0.0-next.71 => 1.0.0-next.71
    @sveltejs/kit: next => 1.0.0-next.295
    svelte: ^3.44.0 => 3.46.4

Severity
blocking an upgrade
Additional Information
related to https://github.com/sveltejs/kit/discussions/4271

Is this a duplicate of #3176? It sounds like it might be.

yes!
thank you a lot!
and thank you for the workaround :-)


TTA with inference_detector function

I had wrote a custom inference file for inference with inference_detector func. How Can I perform TTA?
here is my config for testing. Did it include TTA when use it with inference_detector func?
test_pipeline = [     dict(type='LoadImageFromFile'),     dict(         type='MultiScaleFlipAug',         img_scale=(1333, 800),         flip=False,         transforms=[             dict(type='Resize', keep_ratio=True),             dict(type='RandomFlip'),             dict(type='Normalize', **img_norm_cfg),             dict(type='Pad', size_divisor=32),             dict(type='ImageToTensor', keys=['img']),             # dict(type='DefaultFormatBundle'),             dict(type='Collect', keys=['img']),         ]) ]

HI @CuongNN218
To use TTA, you need to change imp_scale to a list of augmented scales.

@xvjiarui Thanks for your quick reply. I got it.


docs(migration): fix typo

PR Checklist

[x] The commit message follows our guidelines: https://github.com/ngneat/transloco/blob/master/CONTRIBUTING.md#commit

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

Thanks for the PR 🙂
Adding you to the contributor's list.


Require a server URL

Throw at launch if no server url is provided. Hopefully this will reduce the number of issues that are opened.

Squash and merge? Love the 2 liners :)


4.3.1 release: fails to download source

Worked for earlier builds but not for 4.3.1
-
cd ~/ROCm-4.3.1 ; ~/bin/repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-4.3.1.x ; ~/bin/repo sync
-
fatal: Couldn't find remote ref refs/heads/roc-4.3.1.x
fatal: Couldn't find remote ref refs/heads/roc-4.3.1.x
manifests: sleeping 4.0 seconds before retrying
Downloading manifest from https://github.com/RadeonOpenCompute/ROCm.git
fatal: cannot obtain manifest https://github.com/RadeonOpenCompute/ROCm.git
Traceback (most recent call last):
  File "/root/ROCm-4.3.1/.repo/repo/main.py", line 651, in <module>
    _Main(sys.argv[1:])
  File "/root/ROCm-4.3.1/.repo/repo/main.py", line 627, in _Main
    result = run()
  File "/root/ROCm-4.3.1/.repo/repo/main.py", line 620, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/root/ROCm-4.3.1/.repo/repo/main.py", line 286, in _Run
    result = cmd.Execute(copts, cargs)
  File "/root/ROCm-4.3.1/.repo/repo/subcmds/sync.py", line 969, in Execute
    self._UpdateManifestProject(opt, mp, manifest_name)
  File "/root/ROCm-4.3.1/.repo/repo/subcmds/sync.py", line 885, in _UpdateManifestProject
    partial_clone_exclude=self.manifest.PartialCloneExclude)
  File "/root/ROCm-4.3.1/.repo/repo/project.py", line 1133, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet, verbose=verbose)):
  File "/root/ROCm-4.3.1/.repo/repo/project.py", line 2275, in _ApplyCloneBundle
    bundle_url = remote.url + '/clone.bundle'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
total 12
drwxr-xr-x  7 root root 4096 Sep 26 10:33 amdgpu
drwxr-xr-x  5 root root 4096 Dec 24  2020 amdgpu-pro
lrwxrwxrwx  1 root root   22 Sep 26 10:35 rocm -> /etc/alternatives/rocm
drwxr-xr-x 18 root root 4096 Sep 26 10:33 rocm-4.3.1
root@ixt-rack-70:/git.co/ad-hoc-scripts#

rocm-4.3.1 have no seperated branch, we could use master.

Hi @gggh000
Thanks for reaching out.
I will check and get back very soon with information.


CudaArray doesn't have a finalizer, CudaPitchedArray does

I was looking at how long a pointer generated with CudaArray is guaranteed to stay alive for, and I noticed that CudaArray doesn't call finalizer(..., free) on itself in its constructor, so it looks like its pointer will be alive until the array gets freed explicitly, while CudaPitchedArray has a very different behaviour, and losing a reference to a CudaPitchedArray seems to deallocate the underlying pointer.

https://github.com/JuliaGPU/CUDArt.jl/blob/master/src/arrays.jl#L100
https://github.com/JuliaGPU/CUDArt.jl/blob/master/src/arrays.jl#L183

Is there a reason for implementing such different behaviours? It doesn't get described in the README, and I think it would be less confusing to have the two array types behave similarly (one way or the other). I don't know what was intended there, but I was expecting CudaArray to be finalized as well.
Another confusing thing is that malloc adds its own finalizer (https://github.com/JuliaGPU/CUDArt.jl/blob/master/src/pointer.jl#L38), but if the reference to a CudaPitchedArray gets lost, doesn't the pointer get freed regardless of whether there are still references to the pointer itself?
I'm not really saying any of this is strictly wrong, just that the rules governing malloc, free, and finalizers should be as clear as possible.

I think they are the same in practice: if you lose a reference to a CudaArray, it can be gc()ed; since that eliminates the reference to the pointer, it too can be gc()ed and that causes the memory to be freed. It's just a little more direct with a CudaPitchedArray.
However, I agree it's a little confusing to have these behave differently. Feel free to clean it up and submit a PR.

Can't I keep a pointer myself, while dropping a reference to the array?

That would be reasonable.


Remove Smoke Command

remove it silly bunny i dont want smokers

I can't assign it but sure
Also you can remove it nyaPaws

Good job, soldier


Add GitHub security policy

This is just a copy of the content from https://www.dnnsoftware.com/community/security/security-center.  We may want to look at adjusting the security process to make use of GitHub's new functionality.
The template for the security policy also has a section about supported versions, but I wanted to start with what's there, and then we can add.  Here's a rough sketch of some content we might want to consider:

Supported Versions
Only the latest release of DNN Platform receives security patches.  We do make an effort to provide workarounds or backports of patches when possible.
The last release of DNN Platform 10.x is intended to be marked as a Long Term Support (LTS) version, which will receive official patch support while ongoing work continues on later versions.

Version
Supported

LTS (10.x)
:white_check_mark:

Current (9.4.x)
:white_check_mark:

9.3.x
:x:

8.x
:x:

Just a note, when creating an issue, the list of issue templates now has 2 templates for reporting a security issue.


Make a more friendly Installation

Come on, why cant this be installed like any other package control plugin?
  Every time I install sublime, I have to do this, like setting up a new processor core.
WHY?

Hey, thanks for feedback.
This plugins is available in Package Control, search for 'indent xml' (as it is stated in README). If you have any problems with that - please let me know.

I see.
I followed a link in a txt file that opened after installing the plugin that stated that I should follow some very complicated instructions to finish installing it.

Now i realized it was for XML lint, not this XML indent plugin.
My apologies for the rant. My bad.


Create files

Could you implement a feature so that we can create files/folders in remote?

+1

+1

That is the only thing that is missing from this great package.
+1

That is the only thing preventing me from actually using it everyday.
+1

+1

+1

+1 I'll look into this, been wanting it.

+1

+1

+ᇂ

+1 for me also.

Looks like there's a PR where someone created that feature. How come it hasn't been accepted? @sveale

+1


[WIP] i18n for the UI

Adds FI, EN, and SV to the UI,
TODO:

[ ] Make the layout nicer
[ ] Verify the Swedish translations
[ ] Backend: provide translations for the interruptions, choose based on lang
[ ] Change page title based on lang
[ ] Change html lang attr based on lang
[ ] Add a few tests to verify that this works

Closes #5

Yeah, thanks for your reference implementation @ohanhi! :+1:
And thanks for the review, was going to ask you about how to get rid of passing T around to almost every function in view.


Search paging restructure changes

The design of the issue linked here:
https://github.com/Azure/azure-sdk-for-java/issues/11499

This has been done.


[BUG] Some useful crash report from XCode when usage on the field.

Describe the bug
I am reporting some crashes collected from XCode. I hope it can be helpful during the development and tracking down bugs.
putAssetEntity

This one causes the majority of crashes. I saw the onAuth:result is blocked, which I assume is that the user doesn't allow permission to the library, correct?
injectModifyToDate

I also saw that perhaps not allowing permission also causes the crash.
Let me know if I can help get any other information from the crash log to help.

These logs didn't present anything until more usages code are provided. For example, whether these crashes will happen with the example app.


How to get it working with pulseaudio

Hi there,
I guess I have a noobee 🐝 question:
I want to run raspotify with pulseaudio (which is supposed to stream the output then as rtp-server throughout my network - but thats a story for another day)
When I try running the librespot in /usr/share that comes with it with "--backend pulseaudio" it fails with "backend invalid" . I guess I have to rebuild librespot - right? Is this possible with my Pi 3 directly? Or how to do so?

Bump.  Same issue here.

Have you tried just using as-is? What results do you get?

Man, I would love to have raspotify working with PulseAudio to redirect the audio to airplay/airtunes (i.e. my Pioneer receiver which is no longer supported by Spotify...)
I have been trying to get this to work using many many suggestions on the web, but it just won't. I would sound logical that the "pulseaudio" support should be set at compile time, but some seem to get it to work without (BUT HOW!!).
Pulseaudio will give me my airtunes reciever as sink. But I do not have a source. So raspotify plays on the Raspberry jack. <Sigh...>
Anyone?

I would also love a version with pulseaudio support. Alsa is so difficult to configure!

I got to a solution without modifying librespot (leaving the direct pulse support to hopefully some future version of the rodio backend (or more specifically cpal)).
It turned out that, regularly, programs with alsa playback (in this case librespot) get access to pulse through the alsa pulse plugin (This is actually currently the default alsa device's behaviour for my pi at least). However since the raspotify service is run in isolation at the system level using the raspotify user it can't access any pulseaudio service (which is a user level service) so it doesn't work. I have created a user level modified version of the raspotify service and use that instead and then it just works as it should.

Thanks @sniperrifle2004, Did you just modify the service to have it run as pi user or did you just do a crontab script?

Neither I copied it into ~/.config/systemd/user/, and modified for that context. This is what I ended up with taking out what would be problematic or redundant:
[Unit]
Description=Raspotify
After=network.target

[Service]
Restart=always
RestartSec=10
Environment="DEVICE_NAME=raspotify (%H)"
Environment="BITRATE=160"
Environment="CACHE_ARGS=--disable-audio-cache"
Environment="VOLUME_ARGS=--enable-volume-normalisation --linear-volume --initial-volume=100"
Environment="BACKEND_ARGS=--backend alsa"
EnvironmentFile=-/etc/default/raspotify
ExecStart=/usr/bin/librespot --name ${DEVICE_NAME} $BACKEND_ARGS --bitrate ${BITRATE} $CACHE_ARGS $VOLUME_ARGS $OPTIONS

[Install]
WantedBy=default.target

So this should work if I have another audio service running on the Pi that uses pulseaudio, will they play nice? 🤞

Yes, they should and I have been able to confirm that to some extent through some testing. I can't guarantee there won't be any problems, but I haven't run into any so far.

If one of you folks want to submit a PR updating the README, I'd be happy to accept. :)

Hey I found this issue to easily use raspotify with pulseaudio https://github.com/dtcooper/raspotify/issues/154

Neither I copied it into ~/.config/systemd/user/, and modified for that context. This is what I ended up with taking out what would be problematic or redundant:
[Unit]
Description=Raspotify
After=network.target

[Service]
Restart=always
RestartSec=10
Environment="DEVICE_NAME=raspotify (%H)"
Environment="BITRATE=160"
Environment="CACHE_ARGS=--disable-audio-cache"
Environment="VOLUME_ARGS=--enable-volume-normalisation --linear-volume --initial-volume=100"
Environment="BACKEND_ARGS=--backend alsa"
EnvironmentFile=-/etc/default/raspotify
ExecStart=/usr/bin/librespot --name ${DEVICE_NAME} $BACKEND_ARGS --bitrate ${BITRATE} $CACHE_ARGS $VOLUME_ARGS $OPTIONS

[Install]
WantedBy=default.target

@sniperrifle2004 I'm having a little trouble understanding what you mean here.

By ~/.config/systemd/user/ is that referring to /home/pi/.config/systemd/user/ ? If so, that doesn't currently exist in my filesystem so are you saying we should create that directory?
When you say "I copied it into..." what is it referring to?

thanks for your help!

Hey, I got this working following @sniperrifle2004 instructions.

Copy either the code @sniperrifle2004 pasted in here or the original systemd file (your mileage may vary) into /home/pi/.config/systemd/user/ (~ refers to the users home directory). If the directory doesn't exist, create it
Run sudo systemctl **--user** enable <name of file copied/created>
Profit?!?

Hope this helps :)

Hi @profwyattb , thanks for the help i really appreciate it. So i went as far as /home/pi/.config but it didn't have the folder systems within config. So I created systemd and user and made a file called "usethis" where I pasted sniperrifle2004's code. Then, when I tried to run sudo systemctl --user enable usethis , it said  Failed to connect to bus: No such file or directory. Here's a screenshot of the terminal, please let me know if you know how I can fix this. Thanks again for all your help, I really appreciate it.

Sorry that was my bad, run systemctl --user enable <name of file copied/created> without sudo. Have edited original comment. Also, you don't need to type the whole path if you're already in the directory. You can just type the filename

@profwyattb awesome I think that worked. do you know how to make it find raspotify as a source? when I run pactl list sources, it's still only giving me the analog and the HDMI

Run systemctl --user start <name of file copied/created> and try again. What is your use case for this btw?

so I made an audio visualizer using CAVA and running the FIFO output into a python program, which then feeds it to a 16x32 matrix using the hzeller library. It works great when I'm playing local mp3 or anything on youtube, but it doesn't work with raspotify because CAVA uses pulse, which isn't recognizing raspotify output right now. Here's a link to a quick demo video if you're interested:
i ran that command again and rebooted but I'm still only getting two sources. In yours when you run pactl list sources do you get a source specific to raspotify?

@andrewfedun That looks sick! I don't know what the command outputs as I don't have anything running it right now. Try playing a song through it and see what happens when you list sources. Otherwise, I'm sure there are some people here who would run that command for you :)

@profwyattb thanks man! that hasn't worked for me but I'll keep trying things and update this thread if I figure it out.
@sniperrifle2004 if you or anyone else has been able to get raspotify to show up as a source from the command pactl list sources I would literally venmo you to show me how

@andrewfedun If I have the time, I might be able to check it for you.

@profwyattb awesome, sounds good just let me know

@profwyattb wanted to update & clarify this a little bit since my other comments weren't fully accurate. I said I need raspotify to show up as a source but that's not how pulseaudio works. The source is just alsa_output.platform-soc_audio.analog-mono.monitor and it already shows up - that's just monitoring whatever goes through the 3.5 jack. The issue is that even though raspotify is playing out of the 3.5 jack, its not seen by pulseaudio so my audio visualizer basically flatlines. I need pulse to recognize the raspotify coming out of the 3.5 jack so it shows up when using the source alsa_output.platform-soc_audio.analog-mono.monitor.

I finally got it working - wanted to put an update in this thread.
After grinding through all the various solutions of getting raspotify to work with pulse, the best I could get working was a super corrupted demonic sounding version of the songs I was playing. There's a thread that explains how to fix the corrupted sound, but that wasn't working for me either. After all that I decided to give the original librespot a try and it worked like a charm. It's not that much harder to build out than raspotify and it's much easier to tailor to specific needs. For anyone that needs to get pulse working, I'd recommend just using librespot with a pulseaudio backend. I love raspotify though and it is a great solution for anyone who just needs Spotify to work.

  Linux audio is a hot mess - I've spend many hours messing with config files.
How much did the cost of the project work out to be - I'm really interested in the project and was thinking of building my own. Did you follow a guide or go it alone?
Thanks :)

Thanks @andrewfedun,
I see you did nothing special beyond run the instructions from librespot and succeeded... I was not happy to install all kind of new compiler software (rust, cargo, ...) but your success made me do it. :-)
It's compiling right now on a raspberry pi2 (temp stays  around 52*C without active cooling (if internal measure us accurate) with 4 cores on 100% load. I executed with the time command, so I can benchmark your "forever" ;-)
Thx.

Ok. It took 43 minutes, temp stayed below 54C (at 80C the should interfere and start throttling, so that is cool).
But... after 43 minutes the build failed on linking pulse and pulse-simple. So maybe you left out something on your recipe?

@TeaZee hmm sorry to hear it didn't cross the finish line. Unfortunately, those were the exact steps I used, I wrote down each one in a google doc as I did them so that really is everything I did. I would check out the issues page of librespot and see if anyone else had your error.

But you missed libpulse-dev (And pulse is what we are talking about here!) apt install libpulse-dev did the trick. (maybe libasound2-dev is not needed at all (Alsa?)
Anyway 1:30 extre compile & link time and finished. Now see if I can get it to connect to Pulse and stream AirPlay to the amplifier...

@TeaZee ahh yeah I mustve had that already installed and didn't realize it would be a necessary step. glad you got it - best of luck with the airplay stuff.
@dtcooper to be honest I don't understand the process of a PR at all. I could definitely write out step-by-step instructions as a word document for those looking to get pulseaudio working. If I post that file in here could you add that to the readme?

Ok. Librespot works fine. PulseAudio (version precompiled package) does not support AirPlay properly (needs raop2 i suspect). But PulseAudio-DNLA does a similar job of playing the audio on my (DNLA) devices. And that seems to work...

@andrewfedun Nice that using the pulseaudio backend works for you!
Anyway, it turns out I also had sound corruption problems. I initially missed this problem entirely due to it only happening on the internal audio and not my bluetooth speakers which I was using for raspotify (Which was also my motivation for using pulse over alsa).
I wonder are you running on buster? Because if so, I managed to fix the sound corruption when using the alsa backend - After convincing myself it should work ie. the combination of alsa and pulse wasn't the problem - by instead of building against alsa-lib 1.0.29, building against alsa-lib-1.1.8 which is the version of alsa-lib actually on my pi. It may be a very subtle incompatibility somewhere in the ABI. Unfortunately I don't really have an idea how to fix this in general though. My 'fixed' Dockerfile would likely break stretch builds.

@sniperrifle2004 Yes I am on buster - that's a very cool fix and I'm glad you were able to get it to work! I'm settled into my librespot setup so I can't test that out on mine but if anyone else comes across this and can verify I'm sure it would be very helpful to some poor soul struggling with the mess of Linux audio

Hey I found this issue to easily use raspotify with pulseaudio #154

Great find!

Hi - I finally got things working on raspbian buster with desktop due to this insight from @sniperrifle2004
. . . [because] the raspotify service is run in isolation at the system level using the raspotify user it can't access any pulseaudio service (which is a user level service) so it doesn't work.

I still hit a couple of snags getting it to work, but I was able to persevere and overcome, and I'd like to put this into a PR for the readme.
The only snag that wasn't due to me needing to learn more about systemd was the Raspotify service was not starting on its own after login.
I finally got it to work, and the last thing I changed before it started working was I changed the [Unit] section to read:
[Unit]
Description=Raspotify
Wants=pulseaudio.service

then ran systemctl --user reenable raspotify.service
I was definitely intending to make this wait until the pulseaudio.service was running.  Also, when I checked systemctl --user -t target I did not see a network.target listed there.
Was this change necessary?  Or is it more likely that something I didn't realize I did made this all work?

Check if the commit I just merged explains how to fix this. Closing for now, let me know if this fixes your problems. Thanks!


Only developers that create a cluster should manage it

Currently, all developers on an account can see a list of all clusters on an account and delete clusters deleted by other developers on the account. They can also run update-kubeconfig to access clusters created by other developers.
We should change this behavior such that only the developer that creates a cluster may delete it or get access via update-kubeconfig. Similarly, when the developer runs uffizzi cluster list they should only see clusters that they have created.
Admins should still be able to  list, delete, and update-kubeconfig for all clusters.

The developer can see the name of the cluster created by another user.
Steps:

Create a second GitHub account
Add an organization to the team as an admin of the GitHub organization
Add a developer to the team
On the platform, create a project in the organization
Log in to the CLI as an administrator
Select the organization project and create a cluster in it
Log in to the CLI as a developer
View the list of clusters

Expected result: The list of clusters is empty
Actual result: The cluster created by the admin is displayed.

@ALEXANCHESSS Please test with this preview
These three issues are related:
https://github.com/UffizziCloud/uffizzi_cli/issues/262
https://github.com/UffizziCloud/uffizzi/issues/451
https://github.com/UffizziCloud/uffizzi_platform/issues/1120

Change the "Unauthorized" error on "Cluster Not Found" if the developer interacts with a cluster to which he doesn't have access

Admin doesn't see the cluster which has been created by another user in the list of clusters but can interact with it

@ALEXANCHESSS This is fixed
https://github.com/UffizziCloud/uffizzi_cli/issues/262#issuecomment-1649618392
Please also check this case with GHA: https://github.com/UffizziCloud/uffizzi_cli/issues/262#issuecomment-1649732613

The developer does not have access to the cluster lists through the GHA

Please test with UffizziCloud/cluster-action@image_version and with image: uffizzi/cli:pr-285 as an argument

TESTED - OK


Wish for option to show dots in stepper

A current customer of Flutter asked for "mobile dots" with our Stepper class: https://material.io/guidelines/components/steppers.html#steppers-types-of-steps
For example:

The mobile dot stepper is pretty important.  The others are less important but we may like to use them in the future:

I need this too

This should be very straightforward to create as a custom widget.  PageView has some dots I believe which probably could be re-used.

Hi, after chatting with @HansMuller we are not sure if it makes sense to include a full mobile stepper widget in the framework, as it is pretty easy to implement using the primitives that are already available in the framework, and as the material spec for mobile stepper leaves a lot of room for flexibility.
Here’s a quick mobile stepper implementation example we put together:
https://github.com/amirh/flutter_playground/blob/mobile-stepper/lib/main.dart
Can you build what you need by doing something similar to this example?

@sethladd @amirh @HansMuller @eseidel  Should we go ahead and close this ticket?

The Material Stepper component is no longer part of the latest spec, https://material.io/design/components so I am going to close this issue.


fixes #5

Codecov Report

Merging #6 (af59504) into main (c2cbadc) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head af59504 differs from pull request most recent head 10422bc. Consider uploading reports for the commit 10422bc to get more accurate results

@@            Coverage Diff            @@
##              main        #6   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          447       447
=========================================
  Hits           447       447

Impacted Files
Coverage Δ

src/napari_pystackreg/_widget.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Python v3.11.1 tests failing because of https://github.com/napari/napari/pull/5482 (napari bug)


Size and type of embedding vector

How do we figure out the size of each entry (vector) in the embedding table and the composition of that embedding vector (data type)?
I saw some embedding bag based implementations which I am not clear about.

The number of vectors in the embedding table is n, and the size of each the vector is m
https://github.com/facebookresearch/dlrm/blob/master/dlrm_s_pytorch.py#L265
while embedding table weights (values) can be accessed like this
https://github.com/facebookresearch/dlrm/blob/master/dlrm_s_pytorch.py#L272


App Service Plan pricing tier Legacy Standard S2

The App Service Plan pricing tier that is currently being set is, if I'm not mistaken, Standard S2 which is now considered Legacy in the Azure portal

I'm wondering what other Production tier you would suggest, I would go with Premium v3 P0V3, which offers slightly more Memory but has only one vCPU (instead of two).
What tier do you suggest choosing to replace Standard S2?

Hi @CryogenicPotato
Thanks for reaching out to us!
We will get back to you within 48 Hours.

Hi @CryogenicPotato Thanks for reaching out to us! We will get back to you within 48 Hours.

Hello? Any thoughts on this?

Hi @CryogenicPotato
For CC we support S2 app service which means v3 P1V3 app service

Hi @CryogenicPotato For CC we support S2 app service which means v3 P1V3 app service

Thank you very much!


better initial coefficient estimate

add better initial guess for model parameters.
solves diverging optimization for poisson

[X] guess should be null model

inc gauss gam is probably giving problems because the domain for the InvGauss/Wald distribution is only positive mu. Same thing as the Gamma GLM, whose canonical link is the inverse link, but works better with log link.


[WIP] Better auth

This is a work in progress to solve issue #10. This PR is dependent on PR #56.

@apssouza22 I have a question for you:
        this.sessionData = {
            token: params["token"] || "",
            user: params["user"] || "",
            app: params["app"] || "chat",
            isPluginMode: params["pluginMode"]=="true" || false,
            appColor: params["appColor"] || "black",
            sessionId:  localStorage.getItem("sessionId"),
        }

app is stored in the session. Does it mean that the UI is centered on one app at a time? If yes, why so? AI is able to keep in memory several apps simultaneously. For me it seems a wrong design decision to work with just one app. Please, explain.

@apssouza22 I have a question for you:
        this.sessionData = {
            token: params["token"] || "",
            user: params["user"] || "",
            app: params["app"] || "chat",
            isPluginMode: params["pluginMode"]=="true" || false,
            appColor: params["appColor"] || "black",
            sessionId:  localStorage.getItem("sessionId"),
        }

app is stored in the session. Does it mean that the UI is centered on one app at a time? If yes, why so? AI is able to keep in memory several apps simultaneously. For me it seems a wrong design decision to work with just one app. Please, explain.

@vporton apps here is chatflow app. We can not run more than one at the time

apps here is chatflow app. We can not run more than one at the time

A chatflow app is any API that user documented, right? Or what is it?
Why can't we run more than one at a time?

Yes, but os docs will be linked to one app. It is just one way of organizing things.
One user can have multiple apps and one app can have multiple docs

@apssouza22 What are "os docs"?
You didn't answer why we need to store the app in session data, not instead decide the app by the AI at each step (not the entire session) separately.

@vporton because u need to search only docs for the the given app.
Don't make a big deal of it. It is just app id in the session to tell the backend where to retrieve docs from

A good behavior of the app is to expire authentication after a certain time interval after the last operation that the user did.
Because expiration time is stored on the client side, to implement this delayed expiration, we need to re-download JWT token on each request (not only on login/signup requests).
I propose either:

to download the token in a header like X-Auth-Token on every request (a little inefficient because needs to create and transfer JWT token on every request)
move expiration to server-side (remove exp from the token and let the server decide).

@apssouza22 I need your principal agreement for either 1 or 2. I prefer 2.

A good behavior of the app is to expire authentication after a certain time interval after the last operation that the user did.
Because expiration time is stored on the client side, to implement this delayed expiration, we need to re-download JWT token on each request (not only on login/signup requests).
I propose either:

to download the token in a header like X-Auth-Token on every request (a little inefficient because needs to create and transfer JWT token on every request)
move expiration to server-side (remove exp from the token and let the server decide).

@apssouza22 I need your principal agreement for either 1 or 2. I prefer 2.

Let's stick with the standard. If the token is expired the user need to loging again.
Indeed we are not redirecting the user to login again if the token is expired. If you want to address that, it should be a simple PR in makeRequest call to look for response code 401


django.core.exceptions.ImproperlyConfigured: ThemeMiddleware must be added after SiteMiddleware

I have this awkward problem with python 3.5.x/django 1.10.3/wagtail 1.7 in a multisite setup. I made sure the order is correct in the settings.py file:
MIDDLEWARE = [
    ...
    'wagtail.wagtailcore.middleware.SiteMiddleware',
    'wagtail.wagtailredirects.middleware.RedirectMiddleware',
    'wagtailthemes.middleware.ThemeMiddleware',
]

Here is the full traceback: https://gist.github.com/da99273a3f12d9915aee28acbf5af4e4
Error: django.core.exceptions.ImproperlyConfigured: ThemeMiddleware must be added after SiteMiddleware

I have found the issue. It was not related to the wagtail-themes app, but to the 3rd party wagtailmenus app. The update 1.6.1 of wagtailmenus needs an additional context processor which I forgot to add. After the addition everything works as expected.


Panic when used with npm install modified yarn.lock file

Slightly weird issue incoming.
So, discovered the following issue the other day with the npm cli: https://github.com/npm/cli/issues/5126
Basically, running npm install inexplicably rewrites any yarn.lock file found in the project directly. One thing it does, is wrapping everything (preemptively I think) in double-quotes, as yarn does that sometimes but for what I guess is easy of parser implementation, they do it right away with everything.
So when you try to read a npm-modified yarn.lock file, yarn-lock-parser chokes on the input, as it doesn't expect double-quotes.
I think this will be an issue for non-npm-modified lock files as well, as npm states that yarn sometimes use double-quotes as well, as to escape some names in the lock file. I haven't encountered this in the wild yet myself, so can't say more about it.
To reproduce this, I followed my own steps from the issue linked above, which is:

cd $(mktemp -d) Create new temporary directory for a test project
npm init --yes Create new package.json
npm install --save is-number Add a dependency
yarn install Install dependencies via yarn, creating the yarn.lock file
cp yarn.lock yarn.lock.original Save a copy of the original yarn.lock file
npm install Run npm install again which modifies the yarn.lock file unexpectedly
diff yarn.lock yarn.lock.original show the difference between the npm-modified yarn.lock file with the original one that yarn itself produces

And in addition to that, run the example from the README in this repository in that same directory, leading to the following:
$ cat src/main.rs
use std::{error::Error, fs};
use yarn_lock_parser::{parse_str, Entry};

fn main() -> Result<(), Box<dyn Error>> {
    let yarn_lock_text = fs::read_to_string("yarn.lock")?;
    let entries: Vec<Entry> = parse_str(&yarn_lock_text)?;

    println!("{:?}", entries);

    Ok(())
}

$ RUST_BACKTRACE=1 cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/app`
thread 'main' panicked at 'assertion failed: `(left != right)`
  left: `""`,
 right: `""`', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:141:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:182:5
   4: yarn_lock_parser::parse_entry::{{closure}}
             at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:141:13
   5: core::result::Result<T,E>::map
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:756:25
   6: yarn_lock_parser::parse_entry
             at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:121:5
   7: yarn_lock_parser::entry_final::{{closure}}
             at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:89:29
   8: core::result::Result<T,E>::map
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:756:25
   9: yarn_lock_parser::entry_final
             at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:88:5
  10: yarn_lock_parser::parse
             at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:59:28
  11: yarn_lock_parser::parse_str
             at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/yarn-lock-parser-0.3.0/src/lib.rs:42:5
  12: app::main
             at ./src/main.rs:6:31
  13: core::ops::function::FnOnce::call_once
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The yarn.lock file it's trying to parse is the following:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1

<EMAIL_ADDRESS>  "integrity" "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="
  "resolved" "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz"
  "version" "7.0.0"

I've just tested this and not only it changes the format but also the version. So if you have a v2 yarn.lock file it will be converted to v1.

@victorb fixed in v0.3.2. Thanks for reporting this.


Where is the zip

Hey @TitanNano where can i find the zip :)?
Here is nothing https://github.com/TitanNano/hass-alexa-relay/releases
I would like to try Alexa with WireGuard :)

I never actually published a release yet. 🫣 I think I can do that later today though. I will let you know when it's available.

Cool thanks
I just built it myself, do I just have to upload the bootstrap.zip in the hass-alexa-relay folder? Not so familiar with Rust :D

Cool thanks
I just built it myself, do I just have to upload the bootstrap.zip in the hass-alexa-relay folder? Not so familiar with Rust :D

Yes that should be right

SOURCE_PEER_IP Where can i find this?
PRIVATE_KEY from the peer1 or from WireGuard?

Maybe you can just explain some things to me, I don't have a lot of experience with HA and secruity yet. HA is currently running with the default settings http://homeassistant.local:8123/ and then VPN via WireGuard.
How exactly do I have to set SSL for the authorization. Do I need an nginx for this or AdGuard?

Inside the VPN you don't need SSL / TLS to be set up. That's up to you if you want it. For the Web Authorization URI though, Amazon requires a domain that is using SSL / TLS and has a valid TLD. For this, I, personally, use both the AdGuard plugin as a local DNS server and the NGINX plugin for TLS. The certificate will not be verified by the Alexa app and can just be ignored during the authorization flow.

And what do i need for ENDPOINT env?

Endpoint is just your wireguard endpoint. The public IP and your wireguard port.

SOURCE_PEER_IP Where can i find this? Do you mean the ip from peer1 address (client.conf) PRIVATE_KEY from the peer1 or from WireGuard?

yes correct

Inside the VPN you don't need SSL / TLS to be set up. That's up to you if you want it. For the Web Authorization URI though, Amazon requires a domain that is using SSL / TLS and has a valid TLD. For this, I, personally, use both the AdGuard plugin as a local DNS server and the NGINX plugin for TLS. The certificate will not be verified by the Alexa app and can just be ignored during the authorization flow.

I need no TLS for my internal network. That's fine.
Do have a picture or settings of you nginx config? For this address then you need also port forwarding in your router or other settings?

Endpoint is just your wireguard endpoint. The public IP and your wireguard port.

Do you have a static public ip? My public ip is changing a lot...

From Wireguard. In the client.conf there is both a public and a private key.
I have different private key for every peer/Interface and a private key in the wireguard folder.

I need no TLS for my internal network. That's fine. Do have a picture or settings of you nginx config? For this address then you need also port forwarding in your router or other settings? Because in my router i cannot change the DNS server :(

Port forwarding should not be done as that would defeat the purpose of this setup. If you can't set a DNS server on your router, you have to set the DNS server on your devices. Wireguard clients usually also allow setting a DNS server that will be used while connected to the VPN.

Do you have a static public ip? My public ip is changing a lot...

There are many free DynDNS providers. You will then use the DynDNS domain instead of the IP.

I have different private key for every peer/Interface and a private key in the wireguard folder.

It's the private key of the peer.

@TitanNano thanks yes I understand. Maybe first I should try out Tailscale for my setup, maybe it's easier without DNS and DynDNS providers.


NUC8i7BEH6(Date of Manufacture: 06/2019) can not boot in system.

Describe the bug
I just follow the instruction of Installation - HaC Mini Hackintosh
But in the second step of  Installing macOS , NUC8i7BEH6 can not boot in system.
Stay at this screen.

Expected behavior
Can boot in system
Environment:

Running OSX version:  10.14.6
Target drive OSX version: 10.14.6
HaC Mini installer version: 2.0

Additional context
My NUC8i7BEH6 `s  Data of manufacture: 06/2019
Logs
nothing

NUC8i7BEH6

This guide is for NUC8i7HVK/HNK.
BEH hackintosh is much simpler than is, see here.
这个教程是给冥王峡谷的，BEH 出门左转这里。

Yes


Attribution when using pyHalo

@dangilman what paper you would like to have cited when using pyHalo? Might be worth putting this in the readme.
Also, would you mind updating the links to the lenstronomy project repo?
Thank you very much and Happy New Year

Hi @sibirrer, thanks I will update the readme!


Vue

Consider adding .vue single file component support

I think this would best be done as a plugin


[TVMC] --disable-pass option added to compile mode

Added --disable-pass option to TVMC compile mode to disallow certain supplied passes in PassContext for the compiler.

Also cc @leandron

Thanks @d-smirnov @leandron


:bug: Fix parsing of DESKTOP_SESSION to check for cinnamon

Identify the Bug
See Issue #23733.
Description of the Change
Adds nested quoting in script.sh for the source of the issue referenced above on line 172 of atom.sh.
Also adds similar quoting to all other places that ShellCheck warns of potential issues with unintended splitting of results due to whitespace.
Alternate Designs
Since the the error in issue 23733 only happens when the grep fails to match, the intended behavior still occurs. Therefore, it would be possible to squelch the error message by redirecting stderr to /dev/null. However, this would literally address the symptoms instead of the root cause - the error message is indicating an actual failure of the negative test case to function as intended. Correcting that failure seems like the way to go.
Possible Drawbacks
None that I'm aware of. Quoting of this sort should be valid on any version of bash that would accept $() syntax, and its introduction here (in all cases) appears to ensure what was intended happens in more edge cases rather than change the intended behavior.
Verification Process
I did not see any shell script test suites that would have applied to atom.sh so I tested it manually via

Shellcheck testing of the updated script (shellcheck atom.sh)
Copying the updated code to /usr/bin/atom for an install of version 1.60.0 on Mint Linux 20.2 (based on Ubuntu 20.04) for x64 and running it through several test cases.

When DESKTOP_SESSION=cinnamon Atom starts (or a new window is opened), no error message appeared and the file copy on line 173 was attempted.
When DESKTOP_SESSION is unset or equal to anything else, Atom starts (or a new window is opened) , no error message appeared and the file copy on line 173 was not attempted.

Release Notes
Fixed syntax error message when running atom from CLI on mac/linux
Additional Comments
Shellcheck reports another warning-level issue that seemed worth ignoring - that there is no default case in the getopts case statement. Depending on how it was done, addressing this warning could introduce a behavioral change where the script stops silently accepting options it will not act upon.

Hi,
Thanks for looking into these issues! Your PR may also be related to #25294 and PR #13414.
Did you by chance also check, if the .nemo_action file is properly copied and the context menu is added?
Curious to see!

Testing in a full Cinnamon environment rather than simply a shell, I see the following.
The file is not copied in general. As mentioned in Issue 25294, this copy attempts to source the file from a relative location, thatt will only be found if run from the root of the atom source repo. This file doesn't exist anywhere else on my system, so the .deb installer does not make it available.
My Mint install already had a context menu action for opening things with Atom. I ensured that the file /usr/bin/atom tries to copy on line 173 does not exist in the destination (so was never placed by my testing), so it seems that the changes from #13414 should not be necessary, at least on more modern installs of either Cinnamon, Atom or some combination of the two.
I agree with @jnuernberg - the better course than my PR here is to revert #13414. It seems #13414 won't do anything for the vast majority of Cinnamon users, probably is not necessary, and introduces a harmless but annoying error message for everyone on Mac and Linux.
If I can get a +1 on the sentiment above, I'll close this PR.

Thenks a lot for looking into this. I agree, PR #13414 doesn't change anything for the majority of cinnamon users but to provoke an error message. Albeit harmless, it is annoying!
Maybe, we can ask @sadick254 to revert the merger and restore the state before. With that, we can then close all related issues.

I can see some discussion about removing the feature to avoid this bug in the first place, but the (feature and its) bug is still present in the code-base and the error shows up on my terminal frequently.
@jnuernberg can we get this merged in to make the bug go away while we wait for @sadick254 to respond to your comment above? @ptous why was this closed?


Try adding a program option to enable zsh substring search. (https://github.com/NixOS/nixpkgs/pull/316723)

Description of changes
Add program option to enable the fish-like history search for zsh, similar to the existing auto-env, completion, and syntax highlighting options. The intention is make it easier to migrate .zshrc files using the plugin from other distros to NixOS.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[X] Fits CONTRIBUTING.md.

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

Recreating pull request with a dedicated branch so I don't have this on my fork's master.

Please make sure the commit messages match CONTRIBUTING.md.

I squashed the format commit and removed the period.

I think I misunderstood the commit format conventions, so I tried something else. Please let me know if I got the right format this time.


Add save/load functionality from file

This adds two buttons, one to save the diagram as a JSON file, and one to load an existing file.
The DOM APIs for this stuff are kind of ancient so the code is a bit sloppy, but it works!
Fixes #143

Thanks so much for the nice feature, I added you as a collaborator! It's nice working with you again :)


ADC1 Channel 0 conversion not working properly  (IDFGH-4338)

Environment

Development Kit:      [ESP32-DevKitC]
Kit version (v3]
Module or chip used:  [ESP32-WROOM-32]
IDF version (run git describe --tags to find it):
v4.3-dev-1901-g178b122c1
Build System:         [idf.py]
Compiler version (run xtensa-esp32-elf-gcc --version to find it):
xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
Operating System:     [Linux]
Power Supply:         [USB]

Problem Description
Hello,
I suspect it has something to do with the build in hall sensor. I'm trying to use channels 0 as normal adc1 channels (I don't use the hall sensor) and I can't get proper adc conversions like I do in the other channels. The reading keeps oscillating in a high frequency manner between 1.5V and 2.1V (while the correct reading should be a DC constant 1.62V). I use exactly the same firmware to do it and the pin corresponding to channel 0 (GPIO36)  don't have any additional electronics that may affect the reading.
All other channels of ADC1 are working properly (including channel 3 that's also used for the hall sensor).

Hi there, I think I am experiencing a similar problem. I am attempting to use GPIO36 as an analog input, and although the voltage on the pin is around 0.8V-2.5V (measured with Fluke multimeter), the ADC always outputs 4095 (3.3V reading) which is false. Have you discovered a fix yet? It's been over two weeks on my post, and I've had no luck getting responses.

Hey @cardtap , nop, not yet. No news from espressif and I still don't know if the problem is solvable, maybe it's an hardware problem.

Hi, I just realized the problem, it was a pcb design error. Sorry for the trouble


Multiple playlists example skip performs on last playlist played

Issue description
In the multiple playlists example, if you play a song from one playlist and then click the next/previous song buttons on the second playlist, it performs the skip/previous action on the first playlist, and starts playing on the second playlist (instead of performing the action on the second playlist and playing, and pausing the first playlist if needed).
Environment
Chrome 75, Windows 10

Amplitude.js Version: 3.3.0

Steps to reproduce the issue

Enter the multiple playlists example
Start playing on playlist #1
Click skip on playlist #2

What is expected?

Playlist #2 should go to the next song and start playing, playlist #1 should be paused
Additional details / screenshots
This also happens even if the other playlist isn't playing - try these steps:

Click play on the first playlist
Click pause on the first playlist
Click skip on the second playlist

This has been fixed in Amplitude 5.0. We scoped the playlists to have their own functionality.


Path to config file uses absolute pathing

When I select a config file under "Eclipse Java Formatter config file" it would be preferable for it to resolve into a relative path, relative to the project. On a team project where we try to keep our formatting synced up to avoid unnecessary edit wars, this would be convenient.
Also given your examples under the path text box, it looks like relative pathing is possible, but its very unclear where the reference point is. Making a few guessing as to where that is, I still cannot get it to find the file, even while trying variables like $PROJECT_DIR$.

Good point, the base dir seems to be Intellij's JRE bin folder.

Ah good to know. Trouble is checking in these settings for other team members to use, the IntelliJ JRE bin folder is still not consistent enough for people to set it and forget it. Would it be possible to add better support for relative pathing?

Sure. I just need to make sure to not break everyone's settings...

The thing is, it seems that the relative path is kinda automatic (#26), I configured 'F:/workspace/format.xml' as a path, and it was persisted into misc.xml as '$PROJECT_DIR$/../../../format.xml'

While digging around for some other stuff, I found this. Just as a note, I'm working in Mac OSX 10.10.3 with IntelliJ 14.1
<application>
  <component name="EclipseCodeFormatterSettings">
    <option name="settingsList">
      <list>
        <Settings>
          <option name="defaultSettings" value="true" />
          <option name="formatter" value="ECLIPSE" />
          <option name="id" value="1434077873399" />
          <option name="importOrderConfigFilePath" value="$USER_HOME$/Desktop/redacted-style.importorder" />
          <option name="name" value="default" />
          <option name="pathToConfigFileJava" value="$USER_HOME$/Projects/redacted/project/eclipse_formatter.xml" />
          <option name="selectedJavaProfile" value="redacted" />
        </Settings>
      </list>
    </option>
  </component>
</application>%```

eclipseCodeFormatter.xml is a global IDE config
mixc.xml is a project config. You are commiting and conflicting on that, right? You might see something different there...

You are right. I am seeing this in misc.xml:
<component name="EclipseCodeFormatter">
    <option name="defaultSettings" value="true" />
    <option name="formatter" value="ECLIPSE" />
    <option name="id" value="1434077873399" />
    <option name="importOrderConfigFilePath" value="$USER_HOME$/Desktop/connectifier-style.importorder" />
    <option name="name" value="default" />
    <option name="pathToConfigFileJava" value="$PROJECT_DIR$/project/eclipse_formatter.xml" />
    <option name="selectedJavaProfile" value="Connectifier" />
  </component>

So everything is ok then? No need to do anything?


Fixed syntax error in Travis control file from last commit.

Changes Unknown when pulling 44fbdcdb657d3069994a38e6536c59269eb68c2e on andy/fix-travis-syntax-error into ** on master**.


Option for export

Hi,
Just looked at your tool. Very nice to have something that is able to retrieve Stock info.
Would it be possible to create an option to dump this information as CSV of JSON?

hi, @martin072 Thanks for using terminal-stocks. Currently, there is no option to export the stock data, but it would be a nice addon, would try to add this feature on terminal-stocks soon. If you implement it or want to work on it, please let me know, PR is welcome.
Happy Coding!!!

@martin072 added the support to export data as json or csv.

Wouw. that is fast. Many thanks!


List of available commands is incorrectly aligned

As visible in the screenshot below, the description of the the help and image commands is not aligned with the description of the completion command.

Issue was caused by the upgrade of fatih/color from v1.15.0 to v1.16.0. Specifically the following commit: https://github.com/fatih/color/pull/210/commits/c33f29cd0eb1e67ca270ea3c0fa8f81265fb8231

@ivanpirog Any chance you could take a look into this regression? The upstream change looks reasonable, so may require Colored Cobra to update how it applies the template.

Have a fairly simple fix to this issue:
https://github.com/ivanpirog/coloredcobra/blob/d040004e6ba47dc563d189f1bfcdbc1193b7a1bd/coloredcobra.go#L158
Change this to:
tpl = re.ReplaceAllLiteralString(tpl, "{{rpad (CommandStyle .Name) (sum .NamePadding 15)}}")

Will also need the unit tests updated from 12 to 15` as well.
I will have a pull request up shortly.

I have created pull request #5 to fix this issue. Would appreciate your confirmation @psrpinto if this fixes your issue.


Feature request: Allow increasing graphql's maxTokens limit

If you try to generate code for a very large GraphQL API (ex: Shopify's), you'll run into this exception in the graphql-java library:

Invalid Syntax : More than 15000 parse tokens have been presented. To prevent Denial Of Service attacks, parsing has been cancelled.

This is because CodeGen.generateForSchema(String) calls Parser.parse((String) schema) without specifying any ParserOptions. This inherits the default ParserOptions instance, which specifies maxTokens=15000.
It would be nice if dgs-codegen would:

(maybe) increase the default token limit during code generation, since you likely don't need DoS protection here.
Provide a nice/documented way to increase the maxTokens limit to support larger GraphQL APIs.

In the meantime, I'm using this workaround, but it seems a bit hacky to do this in Gradle:
import graphql.parser.ParserOptions

plugins {
    id "java"
    id "com.netflix.dgs.codegen" version "5.1.8"
}

repositories {
        jcenter()
        mavenCentral()
}

generateJava {
   schemaPaths = ["./schemas/"]
   packageName = 'com.example.packagename'
   generateClient = true
}

task configureGraphQL {
    // See: https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/parser/ParserOptions.java#L15-L23
    // Since GraphQL might be used in server mode, there's a default limit to how much it will parse.
    // But Shopify's GraphQL API is bigger than that.
    // Up the limit:

    def opts = ParserOptions.newParserOptions()
        .captureIgnoredChars(false)
        .captureSourceLocation(true)
        .maxTokens(100_000)
        .build()

    // Thankfully, the netflix codegen plugin runs in the Gradle process so we can just set this here:
    ParserOptions.setDefaultParserOptions(opts)

}

generateJava.dependsOn(configureGraphQL)

Thanks for the details. That does seem useful to expose as a configuration.
On Wed, Nov 10, 2021 at 3:03 PM Cody Casterline @.***>
wrote:

In the meantime, I'm using this workaround, but it seems a bit hacky to do
this in Gradle:
import graphql.parser.ParserOptions
plugins {
id "java"
id "com.netflix.dgs.codegen" version "5.1.8"
}
repositories {
jcenter()
mavenCentral()
}
generateJava {
schemaPaths = ["./schemas/"]
packageName = 'com.example.packagename'
generateClient = true
}
task configureGraphQL {
// See: https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/parser/ParserOptions.java#L15-L23
// Since GraphQL might be used in server mode, there's a default limit to how much it will parse.
// But Shopify's GraphQL API is bigger than that.
// Up the limit:
def opts = ParserOptions.newParserOptions()
    .captureIgnoredChars(false)
    .captureSourceLocation(true)
    .maxTokens(100_000)
    .build()

// Thankfully, the netflix codegen plugin runs in the Gradle process so we can just set this here:
ParserOptions.setDefaultParserOptions(opts)

}
generateJava.dependsOn(configureGraphQL)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Netflix/dgs-codegen/issues/274#issuecomment-965822510,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ5JPXNYGXETL7XDXCT5BVLULL25TANCNFSM5HZDCPIQ
.

This PR updates the default limit without exposing a configuration: https://github.com/Netflix/dgs-codegen/pull/275


[Table] Truncate text in header with ellipsis

Bug, feature request, or proposal:
Truncate text in mat-header-cell with elliplis as in style guide: https://material.io/guidelines/components/data-tables.html#data-tables-structure
What is the expected behavior?
Truncate text in mat-header-cell with elliplis
What is the current behavior?
Text not being truncated
What are the steps to reproduce?
Simply use this table
What is the use-case or motivation for changing an existing behavior?
Styleguide
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material: 5.1.0
Typescript: 2.6.2
Angular: 5.2.1
Is there anything else we should know?
No

This is my fix in styles.scss so that the table headers wrap correctly without  truncating the text. It takes care also of the sort icon.
// Fix wrap table headers, when cells also use word-wrap
.mat-header-cell,
.mat-header-cell button {
  display: block;
  overflow: hidden;
}

And this is if you want to truncate text with ellipsis both in the header and the table cells, but this will not work as good on mobile devices as the default word wrapping, as less text can be shown.
  // Truncate text in tables with ellipsis
  .no-wrap {
    .mat-header-cell,
    .mat-header-cell button,
    .mat-cell {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

without the .no-wrap it works great! 😄

When header have a sorting functionality then truncate CSS is not working properly.
Thanks in advance.


make shouldInterceptRequest available for react native

Is your feature request related to a problem? If so, Please describe.

Unfortunately injecting JS into frames is not possible on Android right now.
The hack that came up in the discussion was, to use shouldInterceptRequest as a workaround.
However, this is a native method and there is directly on the react side
Describe the solutions you came up with

It would be cool to be able to do something like this:
<WebView
  shouldInterceptRequest={onRequest}
/>

Additional context

Ideally, we are able to return a custom response when intercepting

+1


Can only load databases from standard database location

Issue #91 added the ability to specify database files in arbitrary locations not just in the standard location for databases that the context knows about. You can specify your own DatabaseFilesProvider to specify a list of database files, but commit 7a27fc7e9557c155c7103daa4a38060332ced182 broke this support. The problem is this code in SqliteDatabaseDriver.getDatabaseNames():
  for (File database : tidiedList) {
    String name = database.getName();
    mDatabases.add(name);
  }

This code throws away the path information so all you have is the file name and then when you ask the context to open it, it tries to open it from the standard database directory.

Any updates?

Partially addressed this by merging #367, and formally fixed in #392.

...and thank you for your patience on this issue!

Waiting patiently for net release to try it

Still waiting on this to be released

@dalewking updated the PR in #392, would you mind verifying that this addresses your issue by pulling the branch (git checkout -b databaseid-mapping && git pull https://github.com/jasta/stetho.git databaseid-mapping && ./gradlew installArchives).  If it works as you expect, I'll go ahead and merge and it'll be in the next release (which is coming soon due to other changes we're working on)

I believe I evaluated that PR when it came out and it worked correctly but I cannot say for sure. Unfortunately, I no longer work for that same company and do not have a good way to test it.


Astro MDX example?

Any working example with Astro MDX?

i managed to get it working https://github.com/davidhu2000/davidhu2000.github.io/pull/52
there are some issues with it

need to disable syntaxHighlight in astro config
doesn't work on .mdx files

Can confirm that it doesn't work with .mdx files. Not sure if it's just Astro though.

It works with MDX in Next.js. In the tests, it takes a hAST from the remark parser, then that hAST can be converted into HTML after this plugin has done its work:
https://github.com/atomiks/rehype-pretty-code/blob/17e2856c5abe91eefc0830a8b5f8cab9d13aedb5/test/fixtures.test.js#L20-L24
Is there anything special Astro does with MDX files and Rehype plugins that causes it not to work?

Seems to be working fine in StackBlitz

What's not working is the line highlight. I forked the StackBlitz and tweak it to my use case, and surprisingly it works just fine.
After investigating more, I found that the problem is with the version of @astrojs/mdx. I updated it to version 0.11.4 in this fork StackBlitz and it's no longer working.
As you can see, the first line of the code in the mdx version doesn't get the highlighted class. But if you go to the /normalmd, the highlighted class is still there.

Tried it on my project. And yes, the problem is with Astro's mdx integration. Downgrading the version fixed the problem. Thanks

If you try increasing each version from my StackBlitz, which is the one that stops working? It might be a good idea to file an issue on the Astro repo, or, if there's a workaround we can do for the implementation, that's also possible

v0.10.0 is when it start breaking. Change log

Found this: https://github.com/withastro/astro/issues/4447

Hello 😇, this issue has been resolved in<EMAIL_ADDRESS>Thank you for your patience here is a quick reproduction I made in stackblitz

Great news. I'll close this then.


Topsheet fully closed with peekHeight

Steps to reproduce:

Use         app:behavior_peekHeight="3dp" in activity_main.xml of sample project
Open top sheet
Swipe up to close top sheet

Actual:
Top sheet is fully closed
Expected
Top sheet is still visible with a height of 3dp.

Closed, it was not visible because of the top padding


test on multiple pythons on Windows

Let's see if this does what I think it does.

@mriehl Testing on multiple versions of Python on Win. 3+ only, though. More work is needed for 2.6+ because of venvs, I think.