Atom Tutorial

Please add a comment below about what you would like to be able to do with Atom. If you come from another text editor like Sublime, add a comment about something you miss about Sublime. If there's something you learned how to do on Atom you think others might find useful, add a comment about that!

Will team members need github desktop?

Can we add a section detailing how team members can collaborate on the same document?

I tried to follow the instructions to download atom and I got a couple of errors related to not syncing with github. I couldn't figure out how to resolve them. From there I was not able to sync to the AguaClara thing from Step 3. I got multiple errors after I typed in the Gist ID. Photos might help understanding and help troubleshooting. Overall to get to this point, it took about 20 minutes including download time.

@nlm42 here are the answers to your Qs! Someone could add info on these in the new tutorial.
Team members do not need GH desktop - Atom has a version built in. Please include in the updated tutorial.
Team members can use teletype, an addin that is installed when they use sync-settings to sync to the AguaClara settings. Here's how to use it
Pretty short amount of time to almost get it working! I think you need to reinstall anaconda and be sure to check the add to path option. Also, you need to generate a personal token on github for the sync settings to work. My guess is that your token didn't enable your atom to create Gists. You need to check that box during this step (under setup, #2). Make sure you have the personal token entered in atom and after that try forking the Gist ID. Let me know if that doesn't work.
Thanks for helping out with this!

My recommendation is to make a github repo called aguaclara_tutorial. This can include all the things that normally go in the wiki - we should be moving away from the wiki because GitHub already has a mechanism for exposing a public website. Within the aguaclara_tutorial wiki, copy the Atom tutorial I wrote and change as needed.
The key step to using Anaconda with Atom (just tested on my windows from the ground up) is selecting to ADD PYTHON TO YOUR PATH during the anaconda installation! This means a reinstall for everyone who already has anaconda.  Adding python to your path enables your system (and atom) to find your python installation.
The reason we should use anaconda is that it comes with a bunch of the packages that we use for aide_design, and a well-supported package manager (conda). Installation would be far more complicated is we decided to use the default system python.
Inline image 1
One thing I did notice during installation on a fresh computer was that I had to open the atom cmd pallet (cntrl-shift-p) and type Hydrogen: Start Local Kernel and then hit Python 3 in the resulting dropdown to get the kernel going. Also, note that if you use regular jupyter notebooks while using atom with hydrogen, it will steal the kernel from hydrogen and you'd have to restart atom to get the kernel again (after having quit the cmd running jupyter notebooks.) This may make things tricky for Juan - he should just use the online representation of the notebooks on github so he doesn't have to actually start the notebook.
During this transition, there will be frustrations. Running Atom is a bit complicated. Please let me know of any of these challenges as they arrive through an issue (you can mention me with @ethan92429) - these are usually ways to overcome these, whatever they may be! Let's aim for some stellar documentation!

@ethan92429 I was attempting to do what you said in your previous comment on my Mac with Anaconda previously installed, and the option to add Python to PATH didn't show up. I continued with the installation as normal, and found that it was possible to retroactively add Anaconda Python. Here's the link I found on stack overflow. Perhaps this might be a work around for people who might run into a similar issue? Let me know


chore: change the license copyright date

:tada: This PR is included in version 0.0.8 :tada:
The release is available on:

v0.0.8
GitHub release

Your semantic-release bot :package::rocket:


Crash when running snakefmt 0.1.4

I am using snakefmt v0.1.4 on macOS 10.15.6. When simply running the script, it crashes:
$ snakefmt
Traceback (most recent call last):
  File "/Python/3.8/bin/snakefmt", line 5, in <module>
    from snakefmt.snakefmt import main
  File "/Python/3.8/lib/python/site-packages/snakefmt/__init__.py", line 6, in <module>
    __version__ = toml.load(project_fpath)["tool"]["poetry"]["version"]
  File "/Python/3.8/lib/python/site-packages/toml/decoder.py", line 133, in load
    with io.open(_getpath(f), encoding='utf-8') as ffile:
FileNotFoundError: [Errno 2] No such file or directory: '/Python/3.8/lib/python/site-packages/pyproject.toml'

This seems to be due to the following two lines:
https://github.com/snakemake/snakefmt/blob/25c046b55c2df530a865485335fa170208772d7e/snakefmt/__init__.py#L5-L6

Yes, I'm also having this problem in https://github.com/bioconda/bioconda-recipes/pull/24238. @bricoletc I think we might need to change the way the version number is gathered back to what it was before?

Thanks for this @kpj , I should totally have looked into this when trying to have single version specification in pyproject.toml.
Problem is pip install does not distribute pyproject.toml. This was really handy to find a fix: https://github.com/python-poetry/poetry/issues/273
Running poetry build to distribute package creates PKG_INFO, pyproject.toml and setup.py files which all have the version from pyproject.toml. Then if you distribute sources and pip install you get a .dist-info directory which contains a METADATA file and that has version in it.
I added fix recommended in https://github.com/python-poetry/poetry/issues/273 by using importlib.metadata.version
I confirmed this works from both pip install snakefmt and poetry install from a local copy of the sources.
@mbhall88 i almost feel like we need to push this change to test pypi or something and pip install to confirm this works?

@mbhall88 importlib.metadata was only added to Python standard library in 3.8 so my proposed fix now uses a backport called importlibs_metadata. This adds a dependency to snakefmt but I quite like it, you can do a lot more package introspection than just getting the version

This seems to have worked, closing!


Problem with PPMLoader?

Dear ARM supporters:
Thank you so much for your help thus far.
Currently, I have run into a problem with PPMLoader: when I have a ppm image, It seems that I can only load one channel of the images instead of the three channels (the color images have RGB three channels).
In your documentary about the PPMLoader, It seems that

with RGBA8888 flag, I will be able to load all three channels.
so with my code like the following:

The output of z should be 3, since there should be three channels. Right?
However, this the output:

Is there something wrong with my understanding or my codes?
P.S.
The image I used for argv[1] is generated by a jpg image converted and croppted into ppm image with the convert function in linux. I am trying to load the ppm image, but the github seems does not support the ppm image files.
The original image is

Then I concerted it into ppm image with the command:
convert cat.jpg -crop 227x227 cat.ppm

The PPM loader doesn't do any processing on the image, therefore you end up with a single image (z=1) with RGB data in it (i.e 3x U8 channels interleaved)
There isn't currently any easy way to convert an RGB image into a planar tensor, you might be able to do so by using channel extract + sub tensors (One per plane) but I haven't actually tested.

Dear @AnthonyARM, Thank you for the quick reply.
After looking at the definition of the channel extract, I am still a little confused. Here is the definition

Since the src_ptr is __global uchar, I should first change data from CLTensor into __global uchar, right?
what does stride_x, and step_x mean here?
and what should I do with dst_ptr? (changing it back to CLTensor? what format would it be then later?)
Also, I notice the note that :

but I do not see anywhere I can pass a pre-processor argument.
I am sorry that I am really confused. Can you give me more information?

Use the function: CLChannelExtract

Hi @AnthonyARM:
I have just given CLChannelExtract and CLSubTensor a try,  but I encountered a problem. and this is my code:
This is part is configure and run.
PPMLoader ppm;
        ppm.open(argv[1]);
        CLImage catjpg;
        ppm.init_image(catjpg, Format::RGB888);

        CLTensor Total_src;

        const TensorShape Total_src_shape(227,227,3);
        const TensorShape R_src_shape(227,227,1);
        const TensorShape G_src_shape(227,227,1);
        const TensorShape B_src_shape(227,227,1);

        Total_src.allocator()->init(TensorInfo(Total_src_shape, Format::U8));

        CLSubTensor R_src(&Total_src, R_src_shape, Coordinates());
        CLSubTensor G_src(&Total_src, G_src_shape, Coordinates(0,0,1));
        CLSubTensor B_src(&Total_src, B_src_shape, Coordinates(0,0,2));

        CLChannelExtract R_extract;
        CLChannelExtract G_extract;
        CLChannelExtract B_extract;

        R_extract.configure(&catjpg, Channel::R, &R_src);
        G_extract.configure(&catjpg, Channel::G, &G_src);
        B_extract.configure(&catjpg, Channel::B, &B_src);

        Total_src.allocator()->allocate();

        R_extract.run();
        G_extract.run();
        B_extract.run();

This part is used to print out the Tensor
int Total_src_x = Total_src.info()->dimension(0);
        int Total_src_y = Total_src.info()->dimension(1);
        int Total_src_z = Total_src.info()->dimension(2);

        float *result_data = new float[Total_src_x * Total_src_y * Total_src_z];

        Total_src.map();

        Window output_window;
        output_window.use_tensor_dimensions(Total_src.info(),Window::DimY);
        Iterator output_it(&Total_src, output_window);

        execute_window_loop(output_window, [&](const Coordinates & id)
        {
        memcpy(result_data + id.z() * Total_src_y* Total_src_x + id.y() * Total_src_x, output_it.ptr(), Total_src_x * sizeof(float));
        },
        output_it);

       for(int z = 0; z < Total_src_z; z++){
                for(int y = 0; y < Total_src_y; y++){
                        for(int x = 0; x < Total_src_x; x++){
                                cout << result_data[z*Total_src_x*Total_src_y+y*Total_src_x+x];
                        }
                cout << endl;
                }
        cout << endl;
        }

The error is

and the detailed error by gdb is :

and after a few testing, and I found that error started at line
Total_src.map();

Is there a reason for this?
I use Total_src.map() to print out the tensors.
Thanks.

Hello @jialiang19 ,
Can you allocate the catjpg like: catjpg.allocator()->allocate(); ?
You will need the following sequence:
/* Read file and set input shape and format */
ppm.open(argv[1]);
ppm.init_image(catjpg, Format::U8);

/* Configure your layer etc. */

/* Allocate and fill */
catjpg.allocator()->allocate();
ppm.fill_image(catjpg);

Hellow @GeorgeARM:
I give your suggestions a try. Everything starts to run, but some values seem to decay.
I cropped out a 20x20 pixels jpg images, then I try to print their RGB value by two workflows.
workflow 1: I load the images into Python, and print the RGB pixel value for every pixel.
workflow 2: I convert the 20x20 pixels jpg images into a ppm images. Then use my code with Compute Library to print RGB values.
Most values match, but there seems to be that 10% values are decayed. In addition, every time the position of the decayed value changed a little bit.
Here is the image when I did vimdiff:
The left side is by the python work flow, and the right side is by the convert in linux and my code with Compute Library:

This is what happened when tried again, the positions of the decayed values changed:

Can you test it yourself in your end? Is there something wrong with my code?
Here is my testing code:
 PPMLoader ppm;
        ppm.open(argv[1]);
        CLImage catjpg;
        ppm.init_image(catjpg, Format::RGB888);

        CLTensor Total_src;

        const TensorShape Total_src_shape(SIZE,SIZE,3); /* SIZE = 20 */
        const TensorShape R_src_shape(SIZE,SIZE,1);
        const TensorShape G_src_shape(SIZE,SIZE,1);
        const TensorShape B_src_shape(SIZE,SIZE,1);

        Total_src.allocator()->init(TensorInfo(Total_src_shape, Format::U8));

        CLSubTensor R_src(&Total_src, R_src_shape, Coordinates());
        CLSubTensor G_src(&Total_src, G_src_shape, Coordinates(0,0,1));
        CLSubTensor B_src(&Total_src, B_src_shape, Coordinates(0,0,2));

        CLChannelExtract R_extract;
        CLChannelExtract G_extract;
        CLChannelExtract B_extract;

        R_extract.configure(&catjpg, Channel::R, &R_src);
        G_extract.configure(&catjpg, Channel::G, &G_src);
        B_extract.configure(&catjpg, Channel::B, &B_src);

        Total_src.allocator()->allocate();
        catjpg.allocator()->allocate();
        ppm.fill_image(catjpg);

        R_extract.run();
        G_extract.run();
        B_extract.run();

Print out the values here!
cout << "(" << catjpg.info()->dimension(0) << ", " << catjpg.info()->dimension(1) << ")" << endl;

        unsigned int Total_src_x = Total_src.info()->dimension(0);
        unsigned int Total_src_y = Total_src.info()->dimension(1);
        unsigned int Total_src_z = Total_src.info()->dimension(2);

        char *result_data = new char[Total_src_x * Total_src_y * Total_src_z];

        Total_src.map();

        Window output_window;
        output_window.use_tensor_dimensions(Total_src.info(),Window::DimY);
        Iterator output_it(&Total_src, output_window);

        execute_window_loop(output_window, [&](const Coordinates & id)
        {
        memcpy(result_data + id.z() * Total_src_y* Total_src_x + id.y() * Total_src_x, output_it.ptr(), Total_src_x * sizeof(char));
        },
        output_it);

                for(int y = 0; y < Total_src_y; y++){
                        for(int x = 0; x < Total_src_x; x++){
                                for(int z = 0; z < Total_src_z; z++){
                                        if(z == 0) cout << "(";
                                        else if (z == 1) cout <<", ";
                                        else if (z == 2) cout <<", ";
                                        cout << (int) result_data[z*Total_src_x*Total_src_y+y*Total_src_x+x];
                                        if(z == 2) cout << ")" << endl;
                                }
                        }
                }

Does anyone have same issues? or How do you guys load standard jpg images into tensors?
Thanks!

Are you sure you have ARM_COMPUTE_CL defined ? (This is required for the image to be automatically mapped / unmapped inside fill_image.
Also, you need to map / unmap the image before you access its content too (That's almost certainly why you have corrupted bits of data: the CPU caches haven't been cleaned)

I think it would be very useful to provide a JPGLoader utility.

@jialiang19 Hello, is it resolved yet?

Hello @jialiang19,
Has this issue been resolved?


Training the model produces noise (for ZH)

Checks

[X] This template is only for usage issues encountered.
[X] I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
[X] I have searched for existing issues, including closed ones, and couldn't find a solution.
[X] I confirm that I am using English to submit this report in order to facilitate communication.

Environment Details
Ubuntu LTS 24, python 3.11
Steps to Reproduce

In the trainer.py script add code to save more audio wav files instead of just one wav file. For example, i save 10 reference and 10 generated files: like I do in this code with _save_current_model_sample() method trainer.txt
run the train.py script on a dataset with both En and Zh data and the hyperparameters: batch_size_type = "frame"; batch_size_per_gpu = 384 ; num_warmup_updates = 300; learning_rate = 7.5e-5; epochs=1 (The rest of parameters take the default values) => from here model1 is the resulted model
Run the train.py script again, but with learning_rate = 1e-5; epochs=5 (rest of hyperparameters set as in 1.) => from here model1 is the resulted model
Listen to the English samples: for model1 the English audio should begin to sound worse and gibberishworse () as the model is trained, but model2 has a performance that remains roughly constant. I guess this has to do with the learning rate. I mention that the training starts from the pretrained model_1200000
Listen to the Chinese samples: both models have issues with Zh, as the generated audios either start with noise or are completely noise. This is not only true with the model after some training, but also with the very first iteration when the models hasn't actually been updated: so the pretraiend model_1200000 is used (make sure that audio samples saving enables you to see that)
Now use run the api.py by using eventually the same audio samples and the model_1200000 , model2  and model2 . The results of the 3 models are similar: the issues with English disappears for model1 and the issue with noise in Chinese disappears for model_1200000 (I have changed the path in "ckpt_file = str(cached_path("hf://SWivid/F5-TTS/F5TTS_Base/model_1200000.safetensors"))" in the api.py script to modify the model).

✔ Expected Behavior

The audio files saved during training for model1 and model2 should be intelligible and natural fro both En and Zh like the pretrained model is and the performance shouldn't drop by a lot as the model begin to be optimized.
The Zh results for the saved audio samples at the very beginning of the training should be intelligible, because the model_1200000 has not begin to be optimized yet
If the results for 1. and 2. are poor and exhibit the described behavior, than the same behavior should also be present during inference with the api.py script when the same models are used.

❌ Actual Behavior

for model1 the English audio should begin to sound worse and worse as the model is trained like gibberish, but model2 has a performance that remains roughly constant.
both models have issues with Zh, as some audios either start with noise or are completely noise even at the very beginning of the training
The bad behavior of the models disappears if it is loaded in the api.py script: both Zh and En texts are uttered clearly and naturally for all the models. I believed it bight be because of the EMA use during inference, but it persists even without using EMA
Why are api.py inference and the inference for obtaining the sample audios during training so different?
Do you think that 7.5e-5 is too high for training further on the pretrained model_1200000?

not quite get your main points
so how is the output, any examples to analyze? and what is the ref_audio _text and gen_text used

will close this issue, feel free to open if further questions


Built TensorRT UFF Faster RCNN

Hi,
Did you test and experience with build TensorRT UFF Faster RNN?

I have some experience with building TensorRT engines from Caffe Faster RCNN models, but have not tried TensorFlow to UFF to TensorRT.


Compute hash sum by downloading from HTTP without persisting the downloaded file

Background:

We had in the past, often problems with corrupted files or wrongly uploaded files
Checking the checksum helped a lot in the past

Acceptance Criteria:

Implement a function which downloads a file via HTTP / HTTPS and computes the checksum on the fly
The checksum computation and the download should be streamed, to reduce the memory footprint
Different checksum should be usable, such as SHA512, SHA256, MD5, ...
The checksum should be compatible with the checksum you get from the command line tools sha512sum, sha256sum, md5sum

Updated the title after talking with @tkilias to make the intent more clear.


VPC deletion fails because of dependencies but deletes just fine in the AWS console

Deleting this VPC worked just fine in the AWS console using the same account.

Hey Nick!
QQs:

Did you try running leftovers more than once?
Were there possibly any dependencies that you had deleted (like a vm in that vpc) that could have taken a while to be truly marked as "deleted" by aws? Occasionally, resources are still considered dependencies because the iaas can take a while to consider them deleted. This is more of a problem when you deleted something in the aws console like the vm, then tried to delete the network with leftovers because if you try to delete the vm with leftovers first -> leftovers will wait until the vm is truly marked as gone before trying to delete the vpc vs if you try with the console first, the status of the vm will be "deleting" and leftovers won't try to delete it itself and then proceed to the vpc.

We ran leftovers thrice in the pipeline (this build and the previous two), and once manually. Then we deleted in the console right after that and it worked. We hadn't done anything manual, and I think the pipeline just interacts with AWS through bbl and leftovers. I don't think there was any manual deletion.

P.S. Hi Gen!

Hi Nick!!!
Alright, what I'm gathering:

The first failure is in build #147 where bosh fails to delete the jumpbox. Here
The next failure is in build #148 where leftovers reports that it deleted the jumpbox, but then proceeds to fail trying to delete the vpc
The next failure is in build #149, about 40 minutes later, and proceeds to fail to delete the vpc.
The next failure is in build #150, about 30 minutes later, and proceeds to fail to delete the vpc.
When you delete the vpc in the console successfully, the next build passes.

Since this is the first time this is happening, I'm wondering what are conditions that make this situation unique. Are there perhaps any new resource types that we are creating in the bbl aws terraform templates? The aws api is returning a 400 saying there are dependencies, but I know that from the console, you are allowed to delete it regardless given those dependencies are certain types.
Maybe an action we can take is: can the aws api give us a better error message about what dependencies exist?
Alternatively, we could narrow down to what dependencies can be deleted by deleting the vpc in the console that you can't delete by deleting the vpc by using the api.

Looks like this is still happening. Can you post the output of aws ec2 describe-subnets --filters "Name=vpc-id,Values=vpc-0aa226bc62915c540"? @nmahoney-pivotal

It's interesting that it always happens after a bosh failure like this...

That link doesn't work! 😔 But I think I can see the one you're referring to from earlier concourse logs.
This is beginning to remind me of the early bbl on OpenStack failures where incompletely creating a VM would result in a "port" (OpenStack static private IP allocation) being left behind without a VM attached to it. I wonder if there was a recent AWS CPI change that created a similar kind of shadow resource that doesn't get cleaned up by leftovers, and if so what that would be.

@rowanjacobs I thought I sent this before... I guess not. Here's that output:
$ aws ec2 describe-subnets --filters "Name=vpc-id,Values=vpc-0aa226bc62915c540"
{
    "Subnets": []
}

Closing this issue until (if) we see it again and can access the environment to debug.

It appears that occasionally there are load-balancers deployed to a network that do not contain the full filtering string. For instance, bbl sometimes crops the environment name when creating resources to fit the length limit when needed. https://github.com/cloudfoundry/bosh-bootloader/blob/a1f38c83bd02f71bab4dea46ce4cae86336969ff/terraform/aws/templates/concourse_lb.tf#L56
Leftovers doesn't return them in the list because they do not contain the full filter string like bump-deployments-aws-concourse since the load balancer might be created with just bump-deplo as prefix.


Added FPv2 for 2020 Subaru Ascent Touring.

Route
device: be44434f27731ff8
route: be44434f27731ff8|2021-09-16--16-18-01
-->

Newb mistakes. Sorry. Disregard please.


links need to be updated

links in README.md are obscure and could be inproved.
📝 Provide a description of requested docs changes
#8007
What is the purpose and what should be changed?
make a better and shorter link system

sure but this is a subjective change IMO


Convert scripts to bash

As mentioned in #10 I converted the node.js scripts to bash and added a configuration file for them.

I think we should test these out for a bit and then merge if everyone is happy. Looks great from a first glance :+1:

@HermannBjorgvin  what do you think?

Looks good to me :+1:


openrc-init telinit mount-ro

I am having a problem running under openrc-init with my root partition during shutdown/reboot. The system can't remount my root partition as ro when the init script "mount-ro" is run which then causes the next boot to run an fsck to recover the partition because it was not unmounted properly. While using sysvinit I did what was suggested in this:
https://wiki.archlinux.org/index.php/OpenRC#During_shutdown_remounting_root_as_read-only_fails
So, I added "telinit u" after the sync line in mount-ro and the problem went away. However under openrc-init I can no longer do this since telinit is not supported.
Not sure what the best course of action would be here to fix this problem. Should openrc-init implement "telinit u"? Or is there some other underlying problem that needs to be fixed so that I won't even need telinit u?
My fstab looks like this:
# /dev/sda4
UUID=###	/         	ext4      	rw,noatime,data=ordered		0 1

# /dev/sda1
UUID=###     /boot     	vfat      	rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro		0 2

# /dev/sda6
UUID=###   /home  	ext4      	rw,noatime,data=ordered			0 2

# /dev/sda7
UUID=###	/data	ext4 rw,noatime,data=ordered		0 2

tmpfs	/tmp		tmpfs		nodev,nosuid			0 0

It successfully unmounts my home, boot, and data partition before it gets the root partition. But the root partition always fails.

This looks a lot like https://bugs.gentoo.org/show_bug.cgi?id=499662.
I haven't quite decided how I want to proceed either, because I would prefer to find a way in openrc-init to fix the issue. The concern about adding the telinit command is, if I do that, I would not have a way to know whether sysvinit is running, so I would have to always attempt to run that which would cause errors.
The equivalent of telinit u is "openrc-shutdown --reexec", so adding that could be a workaround, but again it will cause errors if you do that and switch back to sysvinit.

I actually already tried using "openrc-shutdown --reexec". It does not work like telinit u. It actually causes the system to hang on shutdown and I have to force a poweroff by holding the power button.
As far as checking if openrc-init is the init currently running or not, how about write a /var/run/openrc/openrc-init file at boot. If that file exists it was booted under openrc-init. If not, then it is something else(runit, s6, or sysvinit). By creating that file at boot and checking for it during mount-ro you can avoid this bug in openrc-init at least. The problem would just be what to do for other init schemes like sysvinit, s6, runit, etc.

I would need to write this file to RC_SVCDIR, not /var/run/openrc, but I would still have something like this in mount-ro:
[ -e "${RC_SVCDIR}"/file ] && openrc-shutddown --reexec

So, I'm not sure that's the answer either.

Has there been any decision made yet?
Reason I ask, I was gonna split out the sysvinit compat(init, reboot,shutdown,halt,poweroff) to have a standalone sysvinit replacement package eg runit could use as well.

This issue doesn't effect me anymore on my new laptop. I can't verify that it is still a problem. Going to close this.


No icon rendered

I tried this loader yesterday, and I can't figure out how to load icons, I'm working on an angular 2 app so I created a component that does more or less the same job as the react-one in the examples (see code below) but it does not display any icon.
from the README.md:

By default sprite renders when DOMContentLoaded event fires and injects as first child in document.body

I don't see neither anything added to the body after page load (even before angular's bootstrap) nor a single reference to a sprite.js script in the list of sources in Chrome.
I don't have any output at compile or run time, it just does not render....
I removed my <base> tag

Here is my code :
import { Component, Input, OnInit, ElementRef} from '@angular/core';
var Glyphs = {};
var req = require.context("./icons", false, /\.svg$/);
req.keys().forEach(function(file: string) {
  var id = req(file);
  var name = /^\.\/(.*)\.svg$/.exec(file)[1];
  if (name) {
    Glyphs[name] = id;
  }
});

@Component({
  selector: 'lnk-icon',
  template: "",
  directives: [],
  providers: [],
  pipes: []
})
export class IconComponent implements OnInit {

  @Input("glyph")
  private glyph: string;

  constructor(private element: ElementRef) {
  }

  ngOnInit() {
    var svgns = "http://www.w3.org/2000/svg";
    var xlinkns = "http://www.w3.org/1999/xlink";
    var svg = document.createElementNS(svgns, "svg");
    var use = document.createElementNS(svgns, "use");
    use.setAttributeNS(xlinkns,"href",Glyphs[this.glyph]);
    svg.appendChild(use);
    this.element.nativeElement.appendChild(svg);
  }

}

and my webpack config:
//stuff
  module: {
     loaders:[{
      test: /\.svg$/,
      loader: "svg-sprite"
    }]
  },
//more stuff

Note that I first tried using Angular's template syntax but didn't work neither...

@n00dl3 setAttributeNS(xlinkns,"href",""+Glyphs[this.glyph]+")") remove redundant bracket from end of the line.

oh yeah, thanks.
But that does not come from here, it's a mistake from my copy/paste and older tests...

@n00dl3 could you please provide full test case? Webpack config, node js dependencies (just copy them from package.json), component code and a few arbitrary SVG files? It will be more faster to investigate your problem then. You can place testcase on gist.github.com or create separate repo under your account.

https://gist.github.com/n00dl3/b364815982b2faefc0d348937fe192de

Could you please elaborate a bit more about what is supposed to happen when svg files are required ?
I don't really understand what is the purpose of the /lib/web/sprite.js file :

when should it be loaded ?
is it loaded automatically by webpack or should I write my own ?

A surprising thing that I noted is that if I navigate to the "id" of my icon, chrome tells me that:

This page contains the following errors:
error on line 2 at column 1: Document is empty
Below is a rendering of the page up to the first error.

but if I look in the network tab, the server is actually sending something:

var sprite = require("/path/to/my/project/dev/node_modules/svg-sprite-loader/lib/web/global-sprite");
var image = "<symbol viewBox=\"0 0 192 192\" id=\"chevron-right-circle\" > <title>icons-cs5</title> <path d=\"M96,36.13A59.87,59.87,0,1,1,36.13,96,59.94,59.94,0,0,1,96,36.13m0-16A75.87,75.87,0,1,0,171.87,96,75.87,75.87,0,0,0,96,20.13Z\"/> <polyline points=\"85.58 121.84 111.42 96 85.58 70.18\" style=\"fill: none;stroke: #000;stroke-linecap: round;stroke-linejoin: round;stroke-width: 16px\"/> </symbol>";
module.exports = sprite.add(image, "chevron-right-circle");

I created a repo for testing, it will be easier for you to try:
just run
npm install
npm start

and you are good (server is listening on localhost:8080)

@n00dl3 when svg files are required happens actually this:

When you require an image, loader transforms it to SVG symbol and add it to the array in special sprite class. When browser event DOMContentLoaded fires sprite will be rendered and injected as first child of document.body. Require statement e.g. require('svg-sprite!./image.svg') returns a symbol id, so you can reference it later in <svg><use xlink:href="#id"/></svg>.

/lib/web/sprite.js it's a client runtime which holds all symbols and render whole sprite at DOMContentLoaded event.
Loader works in following steps:

Process SVG image, convert it to symbol and return as a string.
Generate client runtime code, which add sprite.js as dependency, so it's becomes a part of a bundle and will be invoked on the runtime. Client runtime has symbol string on input and add it to the symbols list of the sprite.

@n00dl3 great, give me some time.

@n00dl3 just remove svg from this line https://github.com/n00dl3/test_svg_sprite/blob/master/config/webpack.common.js#L28 :)

F**k!!!!
Well thank you very much.
Now excuse me, I have to suicide myself... :rage4:

No problem :)
BTW :scream:

"phantomjs-prebuilt": "^2.1.7"<-culprit

@kisenka BTW, could we detect such cases somehow?

@princed I think yes - http://webpack.github.io/docs/loaders.html#loaders

@princed a pochemu vi sprrrashivaete?

@n00dl3 Don't feel so bad, I just did the exact same thing! Lucky for me I found this thread

Great! I am with you!


Add circadian or multidiem rythm features

Patterns of rhythmicity can be overlayed with pathological patterns. Those two could be disentangled for optimal prediction of neural states. It would therefore be great to include "Time of the day" as an additional feature and compute e.g. the phase on a 24h cycle.
Related publications:

https://www.researchgate.net/publication/375036357_Chronic_intracranial_recordings_in_the_basal_ganglia_reveal_patient-specific_circadian_rhythms_in_Parkinson's_disease
https://www.nature.com/articles/s41531-022-00350-7

Related Matlab Toolbox:

https://github.com/joramvanrheede/circa_diem

Makes more sense in individual analysis projects


<EMAIL_ADDRESS>Problem with the vendor/darwin-x64-14/binding.node binary

I want to install gulp-sass, however when I did this I got an error. I did some research and read that gulp-sass depends on node-sass and so I went to install node-sass and also got an error.
Node-sass seems to be having problems with the binary? And also has problems wit the binary and then also a problem with python. I have Python 2.6.1 installed.
I am fairly beginner and really at a loss and in unfamiliar territory. I tried reading this thread --> https://github.com/sass/node-sass/issues/428 , but was having trouble relating it to exactly what my problem is/what I need to.
I am on a Mac 10.6.8.
Do I need to upgrade python? Its a ton of MB and I don't really want to...
Below are the installation errors I am getting:

node-sass error
SartanMac:showme saratankard$ npm install node-sass --save-dev
npm WARN package.json<EMAIL_ADDRESS>homepage field must start with a protocol.
npm WARN package.json<EMAIL_ADDRESS>No license field.
<EMAIL_ADDRESS>postinstall /Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
node postinstall
<EMAIL_ADDRESS>install /Users/saratankard/WebApps/showme/node_modules/node-sass
node scripts/install.js
Binary downloaded and installed at /Users/saratankard/WebApps/showme/node_modules/node-sass/vendor/darwin-x64-14/binding.node
<EMAIL_ADDRESS>postinstall /Users/saratankard/WebApps/showme/node_modules/node-sass
node scripts/build.js
/Users/saratankard/WebApps/showme/node_modules/node-sass/vendor/darwin-x64-14/binding.node exists.
testing binary.
Problem with the binary.
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed     at F (/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb which failed     at E (/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb which failed     at /Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb which failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version python -c "import platform; print(platform.python_version());" returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/WebApps/showme/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created?  ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/saratankard/WebApps/showme/node_modules/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "node-sass" "--save-dev"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/saratankard/WebApps/showme/npm-debug.log

gulp-sass-error
SartanMac:showme saratankard$ npm install gulp-sass --save-dev
npm WARN package.json<EMAIL_ADDRESS>homepage field must start with a protocol.
npm WARN package.json<EMAIL_ADDRESS>No license field.

<EMAIL_ADDRESS>postinstall /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
node postinstall

<EMAIL_ADDRESS>install /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass
node scripts/install.js

Binary downloaded and installed at /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node

<EMAIL_ADDRESS>postinstall /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass
node scripts/build.js

/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node exists.
testing binary.
Problem with the binary.
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed     at F (/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb which failed     at E (/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb which failed     at /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb which failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version python -c "import platform; print(platform.python_version());" returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created?  ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "gulp-sass" "--save-dev"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/saratankard/WebApps/showme/npm-debug.log

Can you go through our TROUBLESHOOTING.md document and post the output? I am interested in your node version etc.
Can you also fetch the node-sass manually via git:
git clone https://github.com/sass/node-sass
cd node-sass

then start your node and enter
var r = require('node-sass')
console.log(r)

Also, as a workaround, can you see if npm install node-sass@beta works better?

Thanks @saper... Unfortunately I am still running into issues =/
For the troubleshooting.md--- I was unable to perform the last step because I cannot cd node_modules/node-sass/vendor because the node_modules dir does not exist. If I look at the npm-debug.log it looks as if this dir is created but then "gently removed". Here is the npm-debug.log if helpful --> https://gist.github.com/gecko25/823aa63bc36efd2a25c8
For the the git clone approach, I also am running into weirdness. It seems that even when I clone I cannot get node to recognize node-sass...? Am I missing something obvious? I pasted the output for that as well.
For the npm install node-sass@beta I still get an installation error =. I'll paste that below as well.
---------------troubleshooting.md output---------------
SartanMac:~ saratankard$ mkdir temp1
SartanMac:~ saratankard$ cd temp1
SartanMac:temp1 saratankard$ npm -v
2.11.3
SartanMac:temp1 saratankard$ node -v
v0.12.7
SartanMac:temp1 saratankard$ node -p process.versions
{ http_parser: '2.3',
  node: '0.12.7',
  v8: '<IP_ADDRESS>',
  uv: '1.6.1',
  zlib: '1.2.8',
  modules: '14',
  openssl: '1.0.1p' }
SartanMac:temp1 saratankard$ node -p process.platform
darwin
SartanMac:temp1 saratankard$ node -p process.arch
x64

-----Output when accessing node-sass from a fresh git-clone ----------
SartanMac:node-sass saratankard$ clear
SartanMac:node-sass saratankard$ pwd
/Users/saratankard/temp3/node-sass
SartanMac:node-sass saratankard$ ls
CONTRIBUTING.md		README.md		appveyor.yml		binding.gyp		media			scripts			test
LICENSE			TROUBLESHOOTING.md	bin			lib			package.json		src
SartanMac:node-sass saratankard$ node
> var r = require('node-sass')
Error: Cannot find module 'node-sass'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at repl:1:9
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
>

----------------npm install node-sass@beta error output------------------------
SartanMac:temp2 saratankard$ npm install node-sass@beta
><EMAIL_ADDRESS>postinstall /Users/saratankard/temp2/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

-
><EMAIL_ADDRESS>install /Users/saratankard/temp2/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /Users/saratankard/temp2/node_modules/node-sass/vendor/darwin-x64-14/binding.node

><EMAIL_ADDRESS>postinstall /Users/saratankard/temp2/node_modules/node-sass
> node scripts/build.js

` /Users/saratankard/temp2/node_modules/node-sass/vendor/darwin-x64-14/binding.node ` exists.
 testing binary.
Problem with the binary.
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at F (/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb `which` failed     at E (/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb `which` failed     at /Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb `which` failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/temp2/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created?  ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/saratankard/temp2/node_modules/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "node-sass@beta"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/saratankard/temp2/npm-debug.log

Thanks @gecko25 , that's more then helpful.
Let's continue with the checked-out copy of node-sass from git.
Can you edit scripts/build.js file and change line 215 to:
console.log(['Problem with the binary.', e, 'Manual build incoming.'].join(eol));

(just insert "e, " in the middle)
or apply the following patch:
index ac62a22..2ddc46d 100644
--- a/scripts/build.js
+++ b/scripts/build.js
@@ -212,7 +212,7 @@ function testBinary(options) {

     console.log('Binary is fine; exiting.');
   } catch (e) {
-    console.log(['Problem with the binary.', 'Manual build incoming.'].join(eol));
+    console.log(['Problem with the binary.', e, 'Manual build incoming.'].join(eol));

     return build(options);
   }

After this, try to run node scripts/install.js from your node-sass directory and post the output.

Thanks again @saper.
Short answer to your question is the output it gave me is:
Binary downloaded and installed at /Users/saratankard/node-sass/vendor/darwin-x64-14/binding.node
Other notes.. may worth some value(?):
After I made the changes to the build.js file and attempted to run node scripts/install.js I was missing some modules... Originally I did an npm install to try and install everything I needed from package.json, but when I did this I got a lot of messy error output-- seemingly identical to the error messages I have been originally posting.
After being discouraged by messy output, I instead npm installed each package as need until the command ran and it gave me the output of what you are looking for.
Installing the modules one by one output:
SartanMac:~ saratankard$ cd node-sass
SartanMac:node-sass saratankard$ vi scripts/build.js
SartanMac:node-sass saratankard$ node scripts/install.js
module.js:338
    throw err;
          ^
Error: Cannot find module 'mkdirp'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/saratankard/node-sass/scripts/install.js:7:13)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
SartanMac:node-sass saratankard$ npm install mkdirp
<EMAIL_ADDRESS>node_modules/mkdirp
└──<EMAIL_ADDRESS>SartanMac:node-sass saratankard$ node scripts/install.js
module.js:338
    throw err;
          ^
Error: Cannot find module 'npmconf'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/saratankard/node-sass/scripts/install.js:8:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
SartanMac:node-sass saratankard$ npm install npmconf
<EMAIL_ADDRESS>node_modules/npmconf
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS>SartanMac:node-sass saratankard$ node scripts/install.js
module.js:338
    throw err;
          ^
Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/saratankard/node-sass/scripts/install.js:10:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
SartanMac:node-sass saratankard$ npm install request
<EMAIL_ADDRESS>node_modules/request
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>SartanMac:node-sass saratankard$ node scripts/install.js
Binary downloaded and installed at /Users/saratankard/node-sass/vendor/darwin-x64-14/binding.node

Installing the modules using npm install output
SartanMac:node-sass saratankard$ npm install

><EMAIL_ADDRESS>postinstall /Users/saratankard/temp4/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

npm WARN prefer global<EMAIL_ADDRESS>should be installed with -g

><EMAIL_ADDRESS>install /Users/saratankard/temp4/node-sass
> node scripts/install.js

Binary downloaded and installed at /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node

><EMAIL_ADDRESS>postinstall /Users/saratankard/temp4/node-sass
> node scripts/build.js

` /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node ` exists.
 testing binary.
Problem with the binary.
Error: dlopen(/Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node, 1): Symbol not found: __ZNKSt3__119__shared_weak_count13__get_deleterERKSt9type_info
  Referenced from: /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
  Expected in: flat namespace
 in /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/temp4/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/Users/saratankard/temp4/node-sass/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at F (/Users/saratankard/temp4/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb `which` failed     at E (/Users/saratankard/temp4/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb `which` failed     at /Users/saratankard/temp4/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb `which` failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/temp4/node-sass/build
gyp verb build dir "build" dir needed to be created?  ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/saratankard/temp4/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/temp4/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/saratankard/temp4/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed

npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/saratankard/temp4/node-sass/npm-debug.log

Sorry, I didn't realize you didn't have dependencies there from the previous npm install.
The error message I was looking for was this:
Error: dlopen(/Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node, 1): Symbol not found: __ZNKSt3__119__shared_weak_count13__get_deleterERKSt9type_info
  Referenced from: /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
  Expected in: flat namespace
 in /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node

Thanks @gecko25, this will not be trivial to solve.
Can you give me the output of the following commands:
otool -L `which node`
otool -L /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node

(or wherever your binding.node ended up).
@xzyfer Looks like we have an issue with MacOSX binaries. Most probably our old problem with mixing libstdc++ and libc++ is haunting us again.

One last chance for a workaround: @gecko25 do you have recent Xcode installed? Does installing a recent Xcode fix the issue?

@saper I am trying the same with node version 4.0.0 and also have the latest version of XCode (Version 7.0 (7A220)). But still getting the same error "Error: The libsass binding was not found in /node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
"

@mgkamal you're getting new error because you haven't rebuilt the binary for your new runtime (node 4). Run npm rebuild node-sass.

@mgkamal thus us a different issue, please follow out troubleshooting document and open a new one.

Okay @saper it is working now. Solution: upgrade my OS. I upgraded to Yosemite 10.10.5
Notes:
My command line did not recognize the command otool.. so I could not give the output you asked for.
And when I went to upgrade my xcode, I couldn't do so because my OS was so old. Soo.. I upgraded. I didn't realize you could do this for free or I would have a long time ago! I am a semi-new mac user.
After the upgrade I ran a npm install node-sass and had a successful installation.
I do not believe this was a bug with node-sass. Before the upgrade, I also tried to run npm install gulp-nodemon and got the same installation error. I am not sure what weird state my computer got itself into (as I had previously installed gulp-nodemon with 10.6 for an earlier project with no problems)... but it seems that it was not something to do with node-sass.
Thank you so much for supporting me so responsively to try and resolve this... even if in the end it was just a good ole upgrade and restart that resolved everything.

Yes, I think we've had some effort to support users on "Maverick" (10.9) but this one looks like definitely too old, it comes without a good C++11 library. Happy that it works for you now!

@saper / @xzyfer I did "npm rebuild node-sass", but didn't work.
Also tried, "npm remove node-sass" and then "npm install node-sass". Same error.
My MAC OS: Yosemite 10.10.5 (14F27)
Error details:
/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:150
throw new Error([
^
Error: The libsass binding was not found in /node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node

@mgkamal Please follow steps in https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md and open a new issue if the issue still persists. Thanks.

@mgkamal I had the same issue, but then I updated my node to current stable (which I had totally forgotten about) and my npm and it worked.

For anyone else...I fixed this by downgrading and building with node 14


patched failureHandler build error

failureHandler on line 85 in the Auth controller in the Demo referes to an inaccessable method causing a build error. Now it simply alerts the error.

fixes issue #109


cmake: fix crash on CC without libc support

Without this change pkgsLLVM fails to build any packages
as compiler-rt fails early in cmake:
CMake Error at ...-cmake-3.24.0/share/cmake-3.24/Modules/Platform/UnixPaths.cmake:53 (file):
  file STRINGS file
  "...-x86_64-unknown-linux-gnu-clang-wrapper-11.1.0/nix-support/orig-libc-dev"
  cannot be read.

It's a regression caused by 871cf9f7b3e5a "cmake: detect libc location
at runtime #181431" where we started using orig-libc-dev as a libc pointer.
During pkgsLLVM pootstrap first compiler has no libc support yet.
The change skips runtime detection if there are no libc signs.
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Almost the whole world rebuild:
$ ./maintainers/scripts/rebuild-amount.sh HEAD^
Estimating rebuild amount by counting changed Hydra jobs (parallel=unset).
      1 pkgs-lib-tests
  31506 x86_64-darwin
  31838 x86_64-linux

I'll re-target staging.

Confused github by pushing wrong branch /o\ into override. Trying again as https://github.com/NixOS/nixpkgs/pull/187777


Animation Smoothing freaks out sometimes

Whilst killing hellhounds I noticed this (See the legs);

I don't know if there are more animations on which this occurs.

Duplicate of #1516, relevant: #1808 #1497


pre-commit: fix import bug for built-in hooks

Description of changes
Pre-commit's "system" language is a sort of escape hach from the encapsulation which pre-commit typically provides.  It just runs commands without thinking too hard about setting up or tearing down environments.
But it is used for two things: user-provided hooks which reference things in calling environment, and pre-commit-provided hooks which live in the pre-commit package (I'm calling these "meta" hooks).
The challenge becomes: which PATH and PYTHONPATH variables do we expose to pre-commit?  If it's the calling environment, the meta hooks break, and if it's the packaged environment, the external-facing system hooks break.
In order to make both of these work at the same time, this commit separates 'system' into two languages: 'system', and 'meta'. System hooks get access to the calling environment, and meta hooks get access to the packaged environment.
Things done
Combine #251418 and https://github.com/MatrixManAtYrService/nixpkgs/pull/1 on top of current master, which seems to fix the broken builds:
❯ nix-build --attr pre-commit --attr python311Packages.asteroid-filterbanks --attr python311Packages.pyannote-audio
/nix/store/9gj7wz6nvs66cxhbaxynyx3hynn4ch48-pre-commit-3.7.1
/nix/store/6fy6mkv761aynq1sbxbn3ms99q4ix3qs-python3.11-asteroid-filterbanks-0.4.0
/nix/store/mz50n7jy8zvcqvy5yy2dkp4676rdd74j-python3.11-pyannote-audio-3.3.0

Verify that this fixes the issue with the check-useless-excludes meta-hook:
❯ cd [other project]
❯ ~/my\ projects/nixpkgs/result/bin/pre-commit run --all-files
Check for useless excludes...............................................Passed

Format the Nix files using nixfmt-rfc-style.

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

[x] 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.

Result of nixpkgs-review pr 342436 run on x86_64-linux 1

12 packages built:

pre-commit
pre-commit.dist
python311Packages.asteroid-filterbanks
python311Packages.asteroid-filterbanks.dist
python311Packages.pyannote-audio
python311Packages.pyannote-audio.dist
python312Packages.asteroid-filterbanks
python312Packages.asteroid-filterbanks.dist
python312Packages.pyannote-audio
python312Packages.pyannote-audio.dist
whisper-ctranslate2
whisper-ctranslate2.dist

Formatting should be in a separate commit

Oops, fixed!

But might be worth documenting it a bit further or put out a warning? From reading the code, I think a user running into broken system hooks might have to read this nix code to learn that there are meta builds as well?

This fixes the meta hooks, I'm not aware of it fixing any system hooks. I've not observed broken system hooks in relation to this fix.
@MatrixManAtYrService, would you be OK to field the other questions, as the original author of the fix? (I just wrote the tests to verify the fix.)

I think that at a casual glance, most would classify pre-commit as an application and not a library.  I did, which is why in https://github.com/NixOS/nixpkgs/pull/235123 I prevented it from propagating its build inputs since I had no reason to import them and they were interfering with other python libraries in the same environment.
@phaer I believe the PR's you linked are trying to do for python applications in general what I did in that PR.
But pre-commit is a bit strange in that there are a few cases where it tries to import parts of itself in a subprocess.  These cases are listed as meta hooks, but they're configured to run via the system language.   https://github.com/NixOS/nixpkgs/pull/235123 cleaned up the environment known to system such that pre-commit could not find itself, which broke the meta hooks (shame on me for not noticing, I wasn't using them).
With this patch I am indeed

patching an extra feature in upstream software to work around long-standing quirks of nixpkgs python handling

and I agree that it isn't pretty.  Specifically, it creates a meta language which corresponds with the meta hooks so that they can be run without the cleanup done by https://github.com/NixOS/nixpkgs/pull/235123, while the system hooks continue to be run in the cleaned-up environment.
On the bright side, I think it's fairly robust because any new meta hooks that are later added to pre-commit are likely show up here which means that they'll get the patched language type automatically.
As for system hooks... they end up with PATH and PYTHONPATH as they're collected via the pre-commit wrapper script.  I think that's pretty authentic to the meaning of system.  It's everything that was lying around when the command was invoked. I don't think this is likely to break them.  It would've broken them if they were relying on pre-commit's python dependencies, but https://github.com/NixOS/nixpkgs/pull/235123 already removed those (oops).
I'm happy to add a document or a warning somewhere if we think it's warranted, but I would need a bit of guidance about where to put it.

Fixed in 306444.


select addon appears squashed

https://buefy.github.io/#/documentation/input
The currency symbol overlaps the dropdown arrow:

Solution (worked out from inspecting Bulma docs element):
Add padding-right: 2.5em; to .select select CSS rules.

The last release from Bulma came with a lot of bugs, I'm gonna make a temporary fix for this and others bugs until next Bulma's release 👍


Stabilize the --film-grain-table parameter

The grain table spec does not require denoising, and is consistent across all three major AV1 encoders. I believe it makes sense to stabilize this while the grain synth denoising is being worked out. This also keeps the old name --photon-noise-table for compatibility, but since grain tables are not specific to photon noise, the canonical name is changed to --film-grain-table.
Using a grain table already requires being a somewhat advanced user, given that it requires an external tool to generate one (or writing one by hand), so there is less risk of beginners accidentally stumbling upon it and having it not do what they expect.

Coverage increased (+0.004%) to 85.104% when pulling f0b9b32ec1bb0fe01eeac7f08bb100e1e40336dd on shssoichiro:stabilize-film-grain-table into cd256770a3b718d595f3112a4f217ac3af0b50d1 on xiph:master.


CDs without metadata overwrite each other

I was trying to rip all of the CDs of an audiobook and realized about halfway through that they were overwriting each other.  Apparently there is no metadata on these disks because the folder structure ended up looking like this:
CD
  flac
    Unknown Artist
      Unknown Album
        01 Track 01.flac
        02 Track 02.flac
        03 Track 03.flac
      ...
  mp3
    Unknown Artist
      Unknown Album
        01 Track 01.mp3
        02 Track 02.mp3
        03 Track 03.mp3
      ...

Ideally there would be some kind of "folder already exists" check on the album to prevent them from overwriting each other.  I'm not sure if this is ideal for all cases, but for when the metadata isn't recognized, it would be nice if it made a new folder titled Unknown Album_1, Unknown Album_2, etc.  That way I could still bulk rip audiobooks or albums and do renaming on them afterwards based on the order I ripped them in.

Thanks for the idea, which I like.
But that sounds like a lot of work for something you can easily fix by moving the folder.
For me it's a won't fix. Happy to merge a pull request that addresses this, though


changes to icons and description on welcome page

Assignment 1 task 2
:recycle: Current situation & Problem
The two onboarding views need to be customised for the Stronger app.
:gear: Release Notes
Customized the two onboarding views of the app with information pertaining to the Stronger app.
:books: Documentation
Did not add to documentation.
:white_check_mark: Testing
Did not add new tests.
:pencil: Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

I agree to follow the Code of Conduct and Contributing Guidelines.

Hi @tulika-jha ,
Thank you for the PR and the improvements. It's a great first version that only needs some more very minor changes!
Please use the PR template that is in the Pull Request description. Also, fill out the Documentation and Testing part of the PR template, it's completely fine to state that you didn't do anything in that aspect within your PR.
Please also read through the "Keeping your pull request in sync with the base branch" documentation to ensure that your branch is up to date with the main branch before you merge it into the main branch.
Please re-request a review once you updated the branch to the main branch, you have updated the PR description, and addressed some of the in-line comments and I am happy to approve the PR to get it merged 🚀

@tulika-jha Your PR is ready to merge, please merge the PR by the beginning of class today! 🚀

@philippzagar Thanks for approving! Merging the PR now


Incorporating frequency visualization with datastore

Description

Incorporated datastore data into frequency visualization by fetching data with DataServlet

Added edges on graph based on frequency attribute (number of times connection was made between 2 addresses)

Demo of visualization on /network.html page

Still need to incorporate more testing and modularize

Checklist:

[x] Code follows the style guidelines
[x] Code commented in relevant places
[ ] Changes to necessary documentation made
[ ] New and existing unit tests pass locally with changes
[ ] Basic manual testing performed after deploying app

Ah I did not know about Draft pull requests, looks like this is a  new Github feature in the last one year or so.

There are lots of files in your PR ~ 1820, did you rebase your branch with master?

Some of those files might of come from Erik_Testing branch. I did have to add a some of the files for the bootstrap that were missing from main for my table visualization. I ended up adding the vender folder into web app. Looking at the file structure it seems that a subfolder fontawesome-free seems to have over 1,700 files.

Okay, those files have been removed.

Incorporated new changes to datastore
Added navigation buttons on top of network visualization page
Commented on hard-coded groups of IP addresses (based on first two bits of address) for now


[QUERY] 升级azure sdk到1.0.0-beta.9 中文问答回复异常

Query/Question
model:gpt-4o
Model ID=chatcmpl-9b0VJxZZKVVdVz6ZxzObH7FVqOqY8
openAIServiceVersion: V2024_05_01_PREVIEW("2024-05-01-preview")
中文内容：介绍一下马云
中文base64 : {"messages":[{"content":"5LuL57uN5LiA5LiL6ams5LqR","role":"user"}],"temperature":0.0}
英文：tell about Jack Ma
英文base64：{"messages":[{"content":"dGVsbCBhYm91dCBKYWNrIE1h","role":"user"}],"temperature":0.0}
Why is this not a Bug or a feature Request?
问题：感觉中文base64无法识别一样
中文返回内容：
”“”
你好！看起来你输入了一些中文字符，但它们可能没有正确显示或是乱码。如果你有任何问题或需要帮助，请告诉我，我会尽力帮你解答。
“”“
英文返回内容：
“”“
Jack Ma, whose full name is Ma Yun, is a Chinese entrepreneur, philanthropist, and the co-founder of Alibaba Group, one of the world's largest e-commerce and technology conglomerates. Born on September 10, 1964, in Hangzhou, Zhejiang Province, China, Jack Ma is known for his inspirational rags-to-riches story and his role in transforming the e-commerce landscape in China and globally.
Early Life and Education

Background: Jack Ma grew up in a modest family. His parents were traditional musicians and storytellers.
Education: He faced numerous rejections in his early life, including failing the college entrance exam twice. Eventually, he graduated with a bachelor's degree in English from Hangzhou Normal University in 1988.

Career Beginnings

Early Jobs: Before founding Alibaba, Ma worked as an English teacher and later started a translation business. His first encounter with the internet in the mid-1990s during a trip to the United States sparked his interest in the potential of the web.

Founding Alibaba

Alibaba Group: In 1999, Jack Ma co-founded Alibaba Group with 17 friends in his apartment. The company started as a B2B marketplace aimed at connecting Chinese manufacturers with overseas buyers.
Growth: Under Ma's leadership, Alibaba expanded into various sectors, including online retail (Taobao, Tmall), cloud computing (Alibaba Cloud), digital payments (Alipay), and more.

Achievements and Impact

IPO: In 2014, Alibaba's initial public offering (IPO) on the New York Stock Exchange raised $25 billion, the largest IPO in history at that time.
Philanthropy: Jack Ma has been involved in various philanthropic efforts, particularly in education, environmental conservation, and public health. He founded the Jack Ma Foundation in 2014 to support these causes.

Retirement and Later Activities

Retirement: Jack Ma stepped down as Alibaba's executive chairman in September 2019, handing over the reins to Daniel Zhang. He stated his intention to focus more on philanthropy and education.
Public Appearances: Despite stepping down, Ma remains a prominent figure in the business world and often speaks at international forums and conferences.

Challenges and Controversies

Regulatory Scrutiny: In recent years, Alibaba and Jack Ma have faced increased scrutiny from Chinese regulators, particularly concerning antitrust issues and financial practices. This has led to significant changes in the company's operations and strategy.

Jack Ma's journey from a humble background to becoming one of the most influential business leaders in the world is a testament to his vision, resilience, and entrepreneurial spirit. His story continues to inspire many aspiring entrepreneurs globally.
”“”
Setup (please complete the following information if applicable):

OS: [e.g. iOS]
IDE: [e.g. IntelliJ]
Library/Libraries: [e.g. com.azure:azure-core:1.49.1 (groupId:artifactId:version)]

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[ ] Query Added
[ ] Setup information Added

@mssfang could you please assist @StrugglingPig with this question?

Yeah. this is a recently reported bug. There is a WIP PR to fix it. https://github.com/Azure/azure-sdk-for-java/pull/40687


tzdata is quite old in jdks

We faced a need of using Cairo TZ, but it appeared that in JDK the old one is used. We checked via tzupdater.jar and found that current JRE tzdata version is tzdata2022g. But latest one in that moment is tzdata2023c.
tzupdater doesn't solve our issue, otherwise I wouldn't come. We need new tzdata built-in in binaries.

@asmild What failure did you experience using tzupdater?

Wrong time when tz is Cairo

OK, but when you used the tzupdater.jar what was the sequence of instructions you gave?

the issue is- we can't use tzupdater.jar. there is no technical possibility to do that

OFC, with tzupdater.jar tzdata is been updating well, but, as I said it's not our case. In our case we can just get ready binaries

the issue is- we can't use tzupdater.jar. there is no technical possibility to do that

Why is it not possible?  Are you not allowed to run the tool?  The next time we bundle the updated TZ will be in the July PSU

Ok, then we can wait until July


Introduce Security

Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

:+1: from my side. @rnelson0 is there any specific reason for the label?

@bastelfreak that's from the waffle.io board. I can disable it on this board when I get back on Friday if you'd like.


Allow variables as torque input

It would be nice to support this:
      @startYear: linear($gwsyear,1945,2010)
      @endYear: linear($gweyear,1945,2010)
      color: ramp(@startYear,teal)
      @start: torque(@startYear, 25, fade(1.5, ,1000))
      @end: torque(@endYear, 25, fade(1000, 1.5))
      filter: @start and @end

As seen with @jgoizueta we should review the usage of checkType at constructor time since it is incompatible with variables. This happens for torque, ramp and belongs.


adjust severity for e960fc6b-4ab2-4db6-9609-3745135f9ffa

Description
The item e960fc6b-4ab2-4db6-9609-3745135f9ffa had a wrong severity (important instead of high). In all languages. Replaced it with the first severity of the list of severities.
Related Issue
https://github.com/Azure/review-checklists/issues/865

Checklist

[ ] I've tested my changes to ensure they are ready for review.
[ ] I've read the CONTRIBUTING.md guide.
[ ] I've updated the documentation (if applicable).
[ ] Resource Graph queries have been included (and tested) for recommendations where ever possible[^note].
[ ] Resource Graph queries have NOT been included (please explain below).

Additional Information
Is there any additional context, screenshots, or considerations that might help in the review process? Please include them here.
Reviewer Notes
Is there a specific area you’d like feedback on? Please highlight it here. We're here to help and learn together! 💡
[^note]:
Details on how to add Azure Resource Graph queries to recommendations can be found here.

@microsoft-github-policy-service agree

@mw8er - Thanks for the contribution!  We are reviewing it!

Just realised there was changes to the spreadsheet, are you able to sync and resolve the merge conflict? @mw8er

Just realised there was changes to the spreadsheet, are you able to sync and resolve the merge conflict? @mw8er

The conflict with spreadsheet/review_checklist.xlsm is resolved.

@brsteph this one good to merge?


Issue with TimeOut Open AI

Hello,
I try to used Open AI in my DB, but I have one issue with time out :
AI service error: Connect timed out
Connect timed out
Connect timed out
One idea ?
Thank !

Hello @vanessa2509
Could you please provide the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

It's been a while since no update here. If the issue is still actual please let me know and provide additional information.


move from env vars to labels

Use labels instead of env vars.

I've cherry-picked the commit. Thanks!


Fixed 'this.firebase.child is not a function'

Just bumped into this error, this.firebase.child is not a function when trying to do a collection.remove() using backbonefire. Adding .ref() to this line fixes the problem (similar methods use this.firebase.ref().child(...).

I signed it!

Thanks for the PR!
Can you provide an example, a JSBin or something, showing the error you get?


Fixing flaky unit test for JSON comparisons

Using JSONEq from testify package for json comparisons. This would handle the ordering issues we're facing. For e.g. current test cases fails for scenarios like below where ordering of elements is changed.

{"a":"b","b":[{"a":2.2},{"a":5},{"a":"c"}]} (out string) != {"b":[{"a":2.2},{"a":5},{"a":"c"}],"a":"b"} (result string)

One of the flaky builds log here

Looks like the issue is still there.

Can you attach a log with 20 runs of the test to ensure this is fixed?

Attached logs with 20 test run cycle:
test_flaky_json_test.txt
❯ grep -Fxq "FAIL" ~/Documents/Projects/prasha/DiceDB/test_flaky_json_test.txt || echo "no match found"
no match found


949 separate logging for callbacks

Fixes #949
Link to dodal PR (if required): #XXX
To test:

Confirm tests pass

Good point - do you think we should separate the repositories at some stage? If so I'll move the loggers to be with the modules


Implemented Desired Behaviour

Current behavior
The ORCHESTRATOR_AWAIT_TIMEOUT_MS constant is of type u64.
Proposed changes
The ORCHESTRATOR_AWAIT_TIMEOUT_MS constant should be of type Duration and should default to 180 seconds. The doc string should read as Timeout for Orchestrator's long-running operations.
Also, rename the constant to ORCHESTRATOR_LONG_OPERATIONS_TIMEOUT.
Fixes #6376
Checks

[x] All commits in this Pull Request are signed and Verified by Github.
[x] All commits in this Pull Request follow the Ockam commit message convention.
[x] There are no Merge commits in this Pull Request. Ockam repo maintains a linear commit history. We merge Pull Requests by rebasing them onto the develop branch. Rebasing to the latest develop branch and force pushing to your Pull Request branch is okay.
[x] I have read and accept the Ockam Community Code of Conduct.
[x] I have read and accepted the Ockam Contributor License Agreement by adding my Git/Github details in a row at the end of the CONTRIBUTORS.csv file in a separate pull request to the build-trust/ockam repository. The easiest way to do this is to edit the CONTRIBUTORS.csv file in the github web UI and create a separate Pull Request, this will mark the commit as verified.

@postmeback while we still have to review this change. I'm adding the HACKTOBERFEST-ACCEPTED label so the contribution is counted by hacktoberfest bots before the end of October. Thank you for taking time to contribute 🎉

Will be merged through https://github.com/build-trust/ockam/pull/6829
I've added you as a co-author to give you credit for your contribution. Thanks again!


Add a storage layer for attachments

This PR introduced a storage abstract layer to store attachments in local disk or minio(via s3 protocol). It's inspired by #9567 but with a smaller interface to handle the object storages. According minio's document, it should support to access any Amazon S3 compatible object storage.(https://docs.min.io/docs/golang-client-quickstart-guide.html)
Changed mysql intergration tests to store attachments to a minio docker.
It also introduced a sub command to migrate attachments to a new sotrage placement.

Below are the steps to migrate your attachments to a minio service.

First, migrate local attachments to a minio server

./gitea migrate-storage --type=attachments --store=minio --minio-endpoint=localhost:9000 --minio-access-key-id=123456 --minio-secret-access-key=987654321 --minio-bucket=gitea --minio-location=us-east-1 --minio-base-path=attachments/ --minio-use-ssl=false

Second, change your app.ini section attachment to change STORE_TYPE as minio and other information like above.

Last, restart gitea. It's done.

Next steps (On other PRs):

[ ] LFS support minio storage
[ ] Avatars support minio storage
[ ] Repo-Avatars support minio storage

It's ready to review now.

CI failed on arm test-sqlite but drone didn't show what's the error.

It's ready to review again now.

Writing out my thoughts in case others thinking the same as me. I was thinking about suggesting renaming minio flags, and storage provider to be s3, as s3 is mostly generic, however having it specifically be minio is better because not all s3 providers act the same. (ex. DO Spaces only supports a legacy way of listing objects in a bucket). So by having it be minio means we can later add providers as needed in case there are any edge cases they have.

@techknowlogick Yeah. For a self-hosted private deployment, a self-hosted minio is a better chosen. For those public gitea instances, they may want to s3 compitable service.
I kept a simple interface for ObjectStorage and not use an exist package so that future implementations for s3, DO or other public services are easy enough.

conflicts resolved.

@techknowlogick @appleboy @guillep2k Do you have time to review this PR again?

Codecov Report

Merging #11387 into master will decrease coverage by 0.06%.
The diff coverage is 31.71%.

@@            Coverage Diff             @@
##           master   #11387      +/-   ##
==========================================
- Coverage   43.80%   43.73%   -0.07%
==========================================
  Files         630      635       +5
  Lines       69821    69984     +163
==========================================
+ Hits        30583    30610      +27
- Misses      34299    34426     +127
- Partials     4939     4948       +9

Impacted Files
Coverage Δ

cmd/migrate_storage.go
0.00% <0.00%> (ø)

models/admin.go
71.69% <0.00%> (-9.16%)
:arrow_down:

models/issue.go
56.78% <0.00%> (ø)

models/migrations/v112.go
0.00% <0.00%> (ø)

models/migrations/v96.go
0.00% <0.00%> (ø)

models/repo.go
55.56% <0.00%> (ø)

modules/context/context.go
57.37% <0.00%> (ø)

modules/migrations/gitea.go
6.71% <0.00%> (+0.08%)
:arrow_up:

modules/storage/local.go
0.00% <0.00%> (ø)

routers/api/v1/repo/release_attachment.go
0.00% <0.00%> (ø)

... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a4ba1ad...120c281. Read the comment docs.

@zeripath Done.


The visualization of the segmentation results.

I trained the model with 4 GPUs (GTX 2080) with batchsize 4, and the PSPNet achieves the mIOU of 76.42%. But I found the visualization results are not correct. Here is an example.
.
But the ground-truth label is like:

So how can i modify the program to make it right?

@chenyzh28 you can use the cityscapes colormap, this code uses a different color map. see get_palette()

Thanks for your attention. But Where can I find the cityscapes colormap? Here is the original code of get_palette().

refer to here

Thank you very much! I have already corrected the colormap.

hi,i have a question about why your results are just 76.42%,you have 4 GPU,but your results are not the same as paper 79 or 78.x


Update native progress

Thanks for the PR @developer239.
I just checked out and didn't see any required change in 3.3.0 release of react-native-progress: https://github.com/oblador/react-native-progress/releases/tag/v3.3.0 I think using the current version makes more sense until there is something we'll use in the update.


Enhanced testSalienceIntegerAndLoadOrder for better memory management and type safety

NOTE!: Double-check the target branch for this PR.
Ports: If a forward-port or a backport is needed, paste the forward port PR here
NA
Issue: (please edit the GitHub Issues link if it exists)
NA
Referenced Pull Requests:
NA

How to replicate CI configuration locally?
Performed the following:
```bash
git clone https://github.com/kiegroup/github-action-build-chain.git
cd github-action-build-chain
npm install
Create a configuration `build-chain-config.yml`:
```yaml
repositories:
  - name: kiegroup/drools
    branch: main

Run:
node dist/index.js --flow-type pr --config ./build-chain-config.yml

Tested it locally also by running the drools-test-coverage

Hi @Rashmesh  , thank you for the PR.
I see that this PR does:

Call ksession.dispose()
Change List to List<String>

Both are totally valid and better coding, but I wonder if we will take this kind of PR per test method.
Probably you are aware that many test cases in this project have similar room to improvement. I would be great to improve them at once e.g. using a shell script or OpenRewrite (https://docs.openrewrite.org/). If manual intervention is required, hmm, at least PR per test class would be nice? I'm not asking you to do that now. Just thinking out loud...
Any thoughts? > @pibizza @mariofusco

One more note: Basically, we file an "issue" with description and put a link to the issue in a PR.
for example)
Issue: https://github.com/apache/incubator-kie-drools/issues/6016
PR: https://github.com/apache/incubator-kie-drools/pull/6024


renaming root causes error

Command: rename . hi
Error: TypeError: Cannot read properties of null (reading 'content')

renaming root was made impossible.


Add DataGenerator

Add DataGenerator

Looks fine for me. Please fix the remaining CS issues and it's good for merge.
@dnoegel Your opinion on that one?

CS fixed

Can you also add the new command to the README please. Thanks.

I'd rather remove all command-specific docs from the README and spend some time improving each command's description and the args/options help texts. What do you think?


Bluetooth: Audio: race hazard bt_audio_discover() callback vs unicast_client_ase_cp_discover()

bt_audio_discover() has a callback when an ASE is discovered on a remote device
unicast_client_ase_cp_discover() asynchronously subscribes to notifications of ASE state changes
There's no way of the application knowing when unicast_client_ase_cp_discover() has completed so that it is safe to call bt_audio_stream_config()
This causes occasional race hazards when stream configuration occurs before state changes are notified.
I'm working on a PR to resolve this, probably calling the discovery callback after notifications have been enabled.
Relevant lines in mainline:
https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/bluetooth/audio/unicast_client.c#L1882
https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/bluetooth/audio/unicast_client.c#L1799

Example of that happens over-the-air

Adding a cp_subscribe[index].subscribe callback and re-using bt_gatt_discover_params seems to work plus I got rid of cp_disc[]

Moved the commit to a separate PR to get it in ASAP: #54283

Yes that looks a lot like the fix I'm using. I'll stop preparing a PR and watch for #54283 merge. Thanks!

Moved the commit to a separate PR to get it in ASAP: #54283

Yes that looks a lot like the fix I'm using. I'll stop preparing a PR and watch for #54283 merge. Thanks!

Feel free to add your review to https://github.com/zephyrproject-rtos/zephyr/pull/54283 :)

Note sure about the priority:low as this is currently preventing streaming to a 3rd party receiver that doesn't automatically notify on CCC write, but it's being dealt with so the priority is fairly irrelevant.

Note sure about the priority:low as this is currently preventing streaming to a 3rd party receiver that doesn't automatically notify on CCC write, but it's being dealt with so the priority is fairly irrelevant.

It's something that has been in the code for more than 2 years and haven't seen any reports about it until now, so arguably it isn't that big of an issue. Aside from that, it would be quite trivial for an application to add a small waiting period between the discover callback and the next procedure.
Finally, until https://github.com/zephyrproject-rtos/zephyr/pull/53484 is merged, none of the notifications does anything besides being logged