number_format() with MySQL
hey i need a way to get a formated number from my column decimal(23,2) NOT NULL DEFAULT '0.00'in php i could use this function number_format('1111.00', 2, ',', '.');it would return 1.111,00 (in Germany...
View Articlehow to unwrap an array in php
i have this array here:Array( [0] => Array ( [presentation] => Präsentationen ) [1] => Array ( [news] => Aktuelle Meldungen [devplan] => Förderprogramme [salesdoc] =>...
View Article413 Request Entity Too Large in Nginx and Amazon ElasticBeanstalk
There are a lot of answers to this problem (question 1question 2) but this solution that should work, doesn't work for me:files:"/etc/nginx/conf.d/proxy.conf" : mode: "000755" owner: root group: root...
View ArticleActiveStorage wont crop variants
I'm migrating my rails app from paperclip to ActiveStorage and it just won't accept the crop argument in a variantthis line:@user.image.variant(crop: [180,135])cause this error:Errno::ENOENT (No such...
View ArticleHow to add a custom service to ActiveStorage
I want to add a custom service to ActiveStorage because I want to overwrite the url method of the ActiveStorage::Service::S3Service service so I can use a CloudFront CDN in front of my S3 bucket. I...
View Articlenpm peer dependency check
$ npm installmy_module@0.0.1 /Users/antpaw/my_module├── my_module@0.0.1 └── UNMET PEER DEPENDENCY request@^2.74.0npm WARN my_module@0.0.1 requires a peer of request@^2.74.0 but none was installed.I...
View ArticleHow to use the I18n fallback features in Rails 3
I am getting an "translation missing" error message from Rails 3:activerecord: notices: messages: success: create: "Something was created" models: user: success: create: "Thanks for...
View ArticleTerraform iterate over map and create nested resources
I'm trying to iterate over a map and create some additional settings in the aws_codebuild_project. This is my first time working with loops in Terraform. My main source of confusion is that I do not...
View ArticleVSCode Unity OmniSharp .NETFramework not found
I get this message in the output of VSCode[fail]: OmniSharp.MSBuild.ProjectLoader The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. To resolve this, install the SDK...
View ArticleAWS step function stops executing instead of catch
Why is does my step function stop executing instead of following the Catch #1 path?
View ArticleSort array by numeric keys
How can I sort this array by array keys?array(4 => 'four',3 => 'three',2 => 'two',1 => 'one',)Desired result:array(1 => 'one',2 => 'two',3 => 'three',4 => 'four',)
View ArticleMongoDB convert BsonTimestamp to Date
Is there an (efficient) way of converting a MongoDB document field of type BsonTimestamp to a Date field. Do I have to create a temporary field to store the Date? Do I have to write a custom JS...
View Articleusing myproject/.npmrc with registry
How do I setup a .npmrc file inside my project where I can define my own private registry? I don't want to have this kind of configuration in my user config .npmrc. Every other developer should be able...
View ArticleAnswer by antpaw for using myproject/.npmrc with registry
As it was pointed out by @Paulpro and @Alexey B. the most parts of it worked already, but I couldn't see it right away, maybe because I didn't reload my bash environment properly. But after that I...
View ArticleOpenAPI difference between CSharp and CSharp-NetCore generator
OpenAPI generator offers two C# generators csharp and csharp-netcore.What might be the difference between them? I could not spot it by looking at the generated code.
View Article