How do I fix this Read 2 Valgrind Error in my function

I have this function that always returns a valgrind read 2 error: #define ForEachEst(r,s,i) for((i) = 0, (s) = group[r]->est[i]; (i) < grp[r]->est_count; (s) = group[r]->est[++i]) I’ve tried rewriting it with a conditional operator: ForEachEst(r,s,i) for((i) = 0, (s) = group[r]->est[i]; (i) < grp[r]->est_count; ++i, (s) = group[r]->est[i >= grp[r]->est_count ? 0 : i]) And … Read more

After updating Symfony from 5.4 to 6.4 routing.yml stoped working

I have a project legacy that I have been updating since symfony 2. Now I am at 6.4 however my routes stoped working. In my routing.yml i am trying to fix the routes in the Admin folder. Following the documentation https://symfony.com/doc/6.4/routing/custom_route_loader.html but is not working. I have tried: app_admin: resource: ../../src/AppBundle/Controller/Admin/ type: attribute And the … Read more

running two rails apps on one server using unicorn, nginx. Only one app is showing for different server names

sebastiandetering.com is my ruby on rails app. I followed this guide to deploy my app with the mina gem rails-deployment-mina-guide_ralfebert.com. I have https configured and it’s been working since 2022. Now I’m trying to run another rails app for my brother on the same server using http://juliandetering.com. (https later) http://juliandetering.com shows the same app as … Read more

How to Split string Separated By Special Character [duplicate]

This question already has answers here: How to split the name string in mysql? (19 answers) Closed yesterday. I save in a field in Mysql the next String: Employee_ID Department 130434 IT / Infraestructure / HW But I need to split in different columns separated by “/” like This: Employee_ID Column A Column B Column … Read more

Open Telemetry not exporting to Jaeger

I have open telemetry exporting traces to Jaeger for many Node.js services, however with python, its not working: opentelemetry-instrument \ –traces_exporter console,otlp \ –metrics_exporter console \ –service_name llama-indexer \ –exporter_otlp_protocol http/protobuf \ –exporter_otlp_endpoint http://localhost:4318/v1/traces \ start_api The traces log with no issue to the console, but do not show up at all in jaeger I … Read more

MATLAB Question about functions with no input

Write a function that has no input arguments, but one output argument. Inside the function the currently present second from the computer time should be extracted into a variable second_now and rounded. If second_now is a multiple of 3, the function should output ’TRUE’ and if not ’FALSE’. Call that function from a main script … Read more

RuntimeError: Given groups=1, weight of size [128, 64, 4, 4], expected input[1, 128, 65, 65] to have 64 channels, but got 128 channels instead

When running the below code: class NLayerDiscriminator(nn.Module): def __init__(self, input_nc, ndf=64, n_layers=3, norm_layer=nn.BatchNorm2d, use_sigmoid=False): super(NLayerDiscriminator, self).__init__() self.n_layers = n_layers kw = 4 padw = int(np.ceil((kw-1.0)/2)) self.conv1=nn.Conv2d(input_nc, ndf, kernel_size=kw, stride=2, padding=padw) self.act=nn.LeakyReLU(0.2, True) nf=min(ndf*2,512) self.conv2=nn.Conv2d(ndf, nf, kernel_size=kw, stride=2, padding=padw) self.norm1=norm_layer(nf) ngf=min(nf*2,512) self.conv3=nn.Conv2d(nf, ngf, kernel_size=kw, stride=1, padding=padw) self.norm2=norm_layer(ngf) self.conv4=nn.Conv2d(ngf, 1, kernel_size=kw, stride=1, padding=padw) self.sig=nn.Sigmoid() def forward(self, input): … Read more