Comment by sakhunzai on Routing traffic to single instance Elasticbeanstalk...
I think you mean sth like this docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/…
View ArticleComment by sakhunzai on Integrating Social Login with Instagram basic display...
@JoLoCo thanks for the link I was looking for reasonable answer
View ArticleComment by sakhunzai on Can't play multiple .mp3 files in streaming function...
I think you need sth like this stackoverflow.com/questions/18082683/… and also check this flask.palletsprojects.com/en/1.1.x/patterns/streaming
View ArticleComment by sakhunzai on Generating number of thumbnails depending on video...
thanks, I am looking at this in more detail, ffprobe does not take that much time, however , it ffmpeg. It timeouts 15 sec for ~ 150 MB mp4 video. I assumed it would seek to specific frame and extract...
View ArticleComment by sakhunzai on Vue.js interpolation when using vue.js through script...
please disregards this question, since I am passing the template through twig template engine , that is striping those {{}} braces
View ArticleComment by sakhunzai on AWS Graphql Error - Amplify mutations cannot write to...
how do you invoke handleSubmit() ?
View ArticleComment by sakhunzai on How to Pull changes done on the aws appsync console...
You should not change cloud resources directly, amplify builds ( if you are using amplify) cloud stack itself and manages using cloudformation. If you add/update/delete any resource you might end up...
View ArticleComment by sakhunzai on Is it possible to specify 2 Cognito user pools with...
Appsync does support multiple cognito user pools , but unfortunately amplify does not support it , see there is currently open issue right now github.com/aws-amplify/amplify-cli/issues/4853
View ArticleComment by sakhunzai on Access to XMLHttpRequest at URL has been blocked by...
Do you have public directory created in S3 bucket you are uploading the file to ?
View ArticleComment by sakhunzai on Is it possible to create session programatically in...
Please share what you have tried
View ArticleComment by sakhunzai on What does 'Language Construct' mean?
@mrwonderfulness thanks for pointing out this blatant mistake.
View ArticleAnswer by sakhunzai for How do I catch a PHP fatal (`E_ERROR`) error?
Well, it seems possible to catch fatal errors some other way :)ob_start('fatal_error_handler');function fatal_error_handler($buffer){ $error = error_get_last(); if($error['type'] == 1){ // Type,...
View ArticleAnswer by sakhunzai for Why array_unique does not detect duplicate objects?
Without knowing about your entity class its hard to guess why this is happening. But I guess your main issue here is __toString() method . If you have not defined it, you should add one such that it...
View ArticleRouting traffic to single instance Elasticbeanstalk environment using Route 53
I have a python application installed under Elastic beanstalk environment and I want to setup ssl certificates for this single instance. Since I dont have registered domain to get an ssl what I am...
View ArticleHow to run node js docker container using docker-composer to manage php app...
Lets say we have three services - php+ apache - mysql - nodejs I know how to use docker-compose to setup application to link mysql with php apache service. I was wondering how we can add node.js...
View ArticleSymfony FOSUser Bundle error The child node "db_driver" at path "fos_user"...
I have just installed FOSUser bundle and initialized it in AppKernel's registereBundles() function , when I run console cache:clearIt...
View ArticleIssues with getting started with webpack 4
I am following the tutorial exactly as given here . But I am amazed that the docs seems outdated. e.gnpx webpack src/index.js dist/bundle.js fails with:The CLI moved into a separate package:...
View ArticleCSS how to use pseudo-class :not with :nth-child
Is is possible to use :not() with nth-child ? I tried something like this without any luck :td:not(:nth-child(4n)){ text-align:center;}However this seems to work :td:not(:first-child){...
View ArticleCustomizing nginx.conf on elastic beanstalk
I need to customize keepalive_timeout settings in /etc/nginx/nginx.conf file which defaults to 65 currently on elastic beanstalk ec2 instance. I followed the following description but when I deploy new...
View ArticleAnswer by sakhunzai for If a number has .00 how can you remove it?
Simplest:Number(1.05) => 1.05Number(1.00) => 1Number('1.05') => 1.05Number('1.00') => 1ORparseFloat('102.00 dollar') => 102parseInt('102.02 dollar') => 102 see it drops...
View ArticleGenerating number of thumbnails depending on video size using AWS MediaConvert
After reading this article I get the sense that AWS media convert job template cannot be re-used to generate thumbnails of arbitrary video size. The article assumes that we know the size/duration of...
View ArticleWhy I am getting NoClassDefFoundError: org/reactivestreams/Publisher
Stream.javaimport io.reactivex.*;public class Stream { public static void main(String args[]) { Observable.just("Howdy!").subscribe(System.out::println); }}build.gradle:group 'com.sakhunzai'version...
View ArticleWhy this bitwise operation is failing in Javascript
Some one please shed light on this when doing bitwise operation in javascript I get:65527|34359738368 =>65527Is it possible to handle this in javascript ? From mysql command line:select...
View ArticleInstall Perl module with assume yes for given options non-interactively
Normally in linux Debian we do sth like this to install a package non-interactively e.g sudo apt-get install -y Package_x_z#[-y --assume-yes]How we can do the same while installing a perl module...
View ArticleGiving access to AWS Lambda service with limited policy
I am trying to follow this tutorial to setup a lambda function to shutdown/startup instances with a special tag added to ec2 instances.The policy assigned to my role by Admin user gives me access to...
View ArticleHow to get parse errors with DOMDocument::loadXML()
I am trying to load xml which has mismatched tags and I expected something like this to work but without luck.try{ $xml=new \DOMDocument('1.0','utf-8'); $xml->loadXML(file_get_contents($file),}catch...
View ArticleAnswer by sakhunzai for Enable "performance mode" for existing aws amplify env
So its not obvious if its possible to enable performance mode from aws console. What worked for me was from aws cli. I updated my aws cli to latest version (2.2.3) from (2.0.3) which does not had...
View ArticleEnable "performance mode" for existing aws amplify env
I was looking for ways to improve performance of my aws amplify application and got some hits to enable for my existing application here. But when I follow the given steps, I don't see the option...
View ArticleAnswer by sakhunzai for Invoke lambda function / sending email after some...
Since I dont know complete project layout, I guess a good start point might be to enable streams ( triggers) on Order table you have already created using amplify. There are plenty of doc and tutorials...
View ArticleAnswer by sakhunzai for Access to XMLHttpRequest at URL has been blocked by...
The issue might be that the public directory to which you are uploading the file might not exists in bucket. You have two options ,either create a public directory in bucket or don't upload to public...
View ArticleBash boolean expression and its value assignment
Is there a way to to evaluate a boolean expression and assign its value to a variable?In most of the scripting languages there is way to evaluates e.g //PHS$found= $count > 0 ; //evaluates to a...
View ArticleInitializing Zend 2 I18N translator to use existing gettext files
I have gettext translation files setup something like this:myapp/i18n/locale/da_DK/LC_MESSAGES/generic.momyapp/i18n/locale/en_US/LC_MESSAGES/generic.moI am trying to use Zend I18n translation component...
View ArticleIs it possible to have a multi word enumeration case in swift?
Is it possible to have multi-word enumeration case e.genum Country: Int { case Pakistan=1,United Arab Emirates,United Kingdom}I tried:enum Country: Int { case Pakistan=1,"United Arab Emirates","United...
View ArticleInstall jmespth-term in Mac OSx
I am unable to install jmespath-termIt gives me : >> sudo pip install jmespath-termCollecting jmespath-term Could not find any downloads that satisfy the requirement jmespath-term No...
View ArticleHow to run a task when variable is undefined in ansible?
I am looking for a way to perform a task when Ansible variable is not registers or undefined.E.g.:- name: some task command: sed -n '5p'"{{app.dirs.includes}}/BUILD.info" | awk '{print $2}' when: (!...
View ArticleDocker image build with PHP zip extension shows "bundled libzip is...
I have a Dockerfile with a build command like this:#install some base extensionsRUN apt-get install -y \ zlib1g-dev \ zip \&& docker-php-ext-install zipI get this warning from build...
View ArticleReading Java system properties from command line
Is there a better way to print system properties from command line? As we can set the property e.g. java -D<name>=<value> //set a system propertyWithout writing a class to do that? If not...
View ArticleAnswer by sakhunzai for How to change PhpStorm theme bin/console background...
You have to modify the theme e.gOpenPreferences -> Editor -> Colors Scheme -> Console ColorsThen press Save As button and give theme copy name and change the desired color, as given below
View Article
More Pages to Explore .....