Quantcast
Channel: User antpaw - Stack Overflow
Browsing all 35 articles
Browse latest View live
↧

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 Article


how 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 Article


413 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 Article

ActiveStorage 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 Article

How 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 Article


npm 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 Article

How 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 Article

Terraform 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 Article


VSCode 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 Article


Image may be NSFW.
Clik here to view.

AWS step function stops executing instead of catch

Why is does my step function stop executing instead of following the Catch #1 path?

View Article

Sort 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 Article

MongoDB 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 Article

using 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 Article


Answer 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 Article

OpenAPI 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

Browsing all 35 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>