Categories
Development

What do I put under A record apart from nameservers for hosted zone?

I have a domain registered with godaddy. On AWS, I’ve set up the instance, load balancer with SSL, and a public hosted zone. I tried inputting the nameservers but I still need to input an A record. The problem is that godaddy won’t allow me to put in the A record provided by AWS (dualstack.acthttp-617756314.us-east-2.elb.amazonaws.com.) […]

Categories
Development PHP

PhpStorm take undefined variable error for passes variables to view

I’m using last version of PhpStorm v2019.2. In this version take Undefined Variable for all passed variable to view from controller @foreach( $specifications as $specification ) @php $type_spec = $specification->types->where(‘id’,$property->type_id); @endphp @endforeach

Categories
Development

How to wrap column items in a card with an header with Flutter

I’m new to Flutter/Dart, so maybe the problem I’have is just lack of knowledge. My goal is to build a card with an horizontal header on top of the card and then the card should display a list of item/value pairs vertically, wrapping them to a new column if the device is large enough. I’ve […]

Categories
Development

Admob is not showing ads anymore

Before this is marked as duplicate, I have already checked other posts, and none of them helped. My ads were showing just fine at first but they are not showing anymore. What are the possible reasons? Two friends that have the app told me they see no ads anymore. Is it possible that they watched […]

Categories
Development

Building executable for mutliple test files

I have 2 .cpp files with my test cases. Test1.cpp contains tests for file1.c and Test2.cpp contains test for file2.c. Both the files required some common functions to be mocked and so I have a put all the mocked methods in a header file, test_header.h and have included this header file to Test1.cpp and Test2.cpp. […]

Categories
Algorithms Development

How do I get the estimator key reference to OneVsRestClassifier(LinearSVC()) for GridSearchCV() in Scikit-Learn?

I am doing grid search for the hyper-parameters for GridSearchCV in scikit-learn. This is how I prepared the ML algorithms and their associated parameters to be searched. The LogisticRegression() and RandomForestClassifier() are specified with their correct estimator keys logisticregression__ and randomforestclassifier__, respectively. ml_algo_param_dict = \ { ‘LR_OVR’: {‘clf’: LogisticRegression(), ‘param’: [{ ‘logisticregression__solver’: [‘lbfgs’, ‘liblinear’], ‘logisticregression__penalty’: […]

Categories
Development

Convert a text file to a dataframe, mapping different values to different columns

I have around 90 text files to be converted to 90 excel files. The format of all the text files are as below, HF8 90 156 HYDE,CAROLYN 001306604 28/11/16 2,637.96 QAMAR,ATIF 004379749 17/10/16 3,202.42 ============= DEPARTMENT 156 TOTALS – 87,077.64 747 WEITHERS,MONIQUE 002790236 30/05/16 2,213.13 TANEGA,MICHELLE 002984474 25/01/16 2,003.56 HF8 90 861 ISTEL,KARIN 008794117 08/02/16 […]

Categories
Development

Modify Text on image and pdf in python

I want to mask a random number(e.g. mobile number) in an image and also in pdf too in python. I have different type of image and pdf file but I know that if there is any 10 digit number it is that number. I can find it using regex but I got stuck during masking. […]

Categories
Development

execute many sql statements at the same time with sqlalchemy

I can execute MySQL statements one by one with sqlalchemy. from sqlalchemy.sql import text ipss = “xxxx” mysql_ip = “xxxx” link = create_engine(“mysql+pymysql://root:{}@{}:3306/?charset=utf8”.format(ipass,mysql_ip)) sql1 = text(“use dbname;”) sql2 = text(“truncate table table_name;”) sql3 = text(“alter table table_name auto_increment=1;”) link.execute(sql1) link.execute(sql2) link.execute(sql3) This works fine. I want all three mysql statements to run in one execute […]

Categories
Development

Activity does not change

my Splash activity doesn’t change, it only changes if I change the name to another. For example: “SplashActivity” – Start with a Modification If I change the theme to another color, I need to rename the activity to: “SplashActivityy” or some other name than it was. If I go back to the name “SplashActivity” the […]