Comment by antpaw on Why are Unity iOS apps so big?
I'm not talking about unzipped sized when its installed. I'm talking about the download size. Textures are fine because they don't cause the same issues on android right?
View ArticleComment by antpaw on Why are Unity iOS apps so big?
thanks, i'm not allowed to give you the bounty yet by the system
View ArticleComment by antpaw on OpenAPI difference between CSharp and CSharp-NetCore...
i guess the better choice for me should be netcore because i'm going to use it with unity and unity does not support .net framework, thanks
View ArticleComment by antpaw on When refreshing a page on localhost, why does the file...
are you sure you have "cache disabled" checked in your browser's dev console settings?
View ArticleComment by antpaw on How can I remove the search bar and footer added by the...
@UmairAyub Thank you, I've included a solution for this problem in my answer.
View ArticleComment by antpaw on Threadsafty with HashMap and ScheduledExecutorService
Maybe I need to use newSingleThreadScheduledExecutor instead of newScheduledThreadPool ?
View ArticleComment by antpaw on Threadsafty with HashMap and ScheduledExecutorService
can you please explain why event.apply(changes); doesn't need a write lock?
View ArticleComment by antpaw on AWS step function stops executing instead of catch
thanks! Are you sure that I need to put it before DetectFace? Because only Recoginition can tell me whether there is a Face on the picture or not?
View ArticleComment by antpaw on How to throw an error at compile time for arguments...
Thanks, I've fixed the first sentence. And I've edited the code example to make more clear why its important to me to have this
View ArticleTable cellspacing with CSS
Is it possible to add spacing between the cells? <!DOCTYPE html><html><head><meta charset="utf-8" /><title>test</title><style> #wrap { display: table-row; /*...
View ArticleHow to add rollback functionality to a basic S3 CodeBuild deploy
I have followed this instruction to get a very basic ci workflow in aws. It works flawless but I want to have a extra functionality, rollback. First i though it would work "out-of-the-box", but not in...
View ArticleConvert a partial to method/block for speed
I have a loop that renders a partial1000.times do |i| render partial: 'test', locals: {i: i}endthis is really slow, up to 0.1 ms for foreach render call, even if the partial only prints out imy_partial...
View ArticleAnswer by antpaw for Is it possible to animate filter in Fabric.js?
Here is a updated version for the brightness filter var brightnessValue = 0.9; var brightnessFilter = new fabric.Image.filters.Brightness({ brightness: brightnessValue });...
View ArticleAnswer by antpaw for How to apply a dark blue filter on an slider image
Come to the world of <canvas> and this task will be a breeze. Eg. FarbicJS will give you a lot of filters, but make sure to custom build your lib so it doesn't get too big. Or choose from many...
View ArticleAnswer by antpaw for Will webpack with babel es2015 preset fix closure issues...
Make sure you are using env aka es2015 preset.in babelrc:{"presets": ["env"]}
View ArticleAnswer by antpaw for How to redirect user with POST data in ReactJS?
Create a form element and submit it. This is how jquery-ujs does it. Obviously you need to rewrite this basic code to react, but you get the idea. var href = body.success.message.redirect_url, form =...
View ArticleAnswer by antpaw for jquery Rest APi json
ObjectID is stored inside an Arrayjo.data["~Elements"][0]["~ObjectID"] // get objectId of first itemjo.data["~Elements"].forEach(function(element){ element["~ObjectId"]}) // iterate items
View ArticleCodePipeline Beanstalk Deploy Version
I have a straitforward CodePipeline setup shown here:There is almost zero configurations required with this pipeline. Artifact names, project names, that's it (and that's great). I get this error every...
View ArticleRails secure session and cookies are not working with a CDN
My setup looks like following: CloudFront CDN with https only and a EC2 Instnace orign http-only (all requests made to CloudFront are https, all requests made from CloudFront to ec2 are http)If I set...
View ArticleAnswer by antpaw for Rails secure session and cookies are not working with a CDN
Turns out Safari does send a Location header even if the form is hosted on the same domain and some other browsers don't. The location header value (cdn url) will not match with the application url...
View Articlenumber_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