Categories
Cache Development

Unable to update “consent status” in apache unomi

I am having trouble in updating the consent status in Apache Unomi through http://localhost:8181/cxs/profiles endpoint. However, I am able to create new consents at the time of profile creation or update. The request payload for profile creation is as follows: curl -X POST \ http://localhost:8181/cxs/profiles \ -H ‘Accept: */*’ \ -H ‘Accept-Encoding: gzip, deflate’ \ […]

Categories
Cache Development

AWS CloudWatch Insights query field with hyphen in name

Trying to run CloudWatch Insights query containing reqHeaders.x-forwarded-for, like fields @timestamp, status, err, method, url, req_id, reqHeaders.x-forwarded-for | filter status >= 400 | sort @timestamp desc | limit 10 but this field is always empty despite it was properly parsed in @message. I suspect this is because of hyphens in subfield name. Does anybody know […]

Categories
Cache Development

SPARK 3.0 not able to save a DF as delta table

SPARK 3.0 not able to save a DF as delta table in HDFS Scala version 2.12.10 Spark version 3.0 Preview Able to do it in 2.4.4 but partition is not getting created. Input sample: Vehicle_id|model|brand|year|miles|intake_date_time v0001H|verna|Hyundai|2011|5000|2018-01-20 06:30:00 v0001F|Eco-sport|Ford|2013|4000|2018-02-10 06:30:00 v0002F|Endeavour|Ford|2011|8000|2018-04-12 06:30:00 v0001L|Gallardo|Lambhorghini|2013|2000|2018-05-16 06:30:00 // reading val deltaTableInput1 = spark.read .format(“com.databricks.spark.csv”) .option(“header”,”true”) .option(“delimiter”,”|”) .option(“inferSchema”,”true”) .load(“file”) .selectExpr(“Vehicle_id”,”model”,”brand”,”year”,”month”,”miles”,”CAST(concat(substring(intake_date_time,7,4),concat(substring(intake_date_time,3,4),concat(substring(intake_date_time,1,2),substring(intake_date_time,11,9)))) […]

Categories
Cache Development Linux Plugins Ubuntu

mount failing on /etc/NetworkManager/dispatcher.d/

I have a script that tries to mount a cifs share when the VPN is connected (after I’ve already logged in to the desktop – so kerberos ticket is issued). It’s in : /etc/NetworkManager/dispatcher.d/ #!/bin/bash INTERFACE=”$1″ STATUS=”$2″ if [ “$STATUS” = “up” ]; then if [ “$INTERFACE” = “vpn0” -o “$INTERFACE” = “cscotun0” ]; then […]

Categories
Cache Development MySQL PHP SQL

php7.4 mysql seems not installed

I have just installed php7.4, everything seems ok but when I try to go on my phpmyadmin, I can’t : Note works fine in php7.3 before this installation The error is : mysqli_real_connect(): Unexpected server response while doing caching_sha2 auth: 109 mysqli_real_connect(): (HY000/2006): MySQL server has gone away looking my php mysql library :php7.4-mysql. it’s […]

Categories
Cache Development

Why does my App gets logged out automatically?

I have checked the loggedin status in the splash screen.I have saved the logged in status in the SharedPreferences.It works certain time period. But my app gets logged out without pressing the logout button. I have implemented as follows: handleCheckStatus.postDelayed(new Runnable() { @Override public void run() { Log.w(“Handler”, “Called”); if (helper.isConnectingToInternet()) { if (SharedHelper.getKey(context, “loggedIn”).equalsIgnoreCase(“true”)) […]

Categories
Cache Development

Fetching Data from TasteDive

Right now, I have code that works for almost all of my assert statements except for the last. Here is the link to the API documentation: https://tastedive.com/read/api and here is the question: Define a function, called get_movies_from_tastedive. It should take one input parameter, a string that is the name of a movie or music artist. […]

Categories
Cache Development Linux

how to deal with `yum repolist is 0` and `yum list empty`?

I run a docker image (gitlab-runner) on a centos 7 host machine. In the container, it is strange that it has apt command but has no yum command.But the system seems to be a centos but not ubuntu? root@vultr:/usr/local/java# uname -r 3.10.0-1062.4.1.el7.x86_64 I used apt-get install yum to install yum and then I want to […]

Categories
Cache Development Domain

Simulate curl request with ssl verification in Guzzle

I have simulated below curl request with Guzzle in my laraval project. But I recieve 500 error responnse from endpoint. But below curl request returns 200 success with an expected output. $authKey = ‘gygyjfdrgrwr334523rf4tgdbdgeg5gd8uiy7ergsetw==’; $options = [ CURLOPT_URL => ‘https://sample.com/endpoint’ , CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query([ “grant_type” => “client_credentials”, “scope” => “test” ]), CURLOPT_HTTPHEADER […]

Categories
Cache Development Linux PHP

How to install PHP 5.3 on CentOS 7 (troubleshooting propose)

I would like to install PHP 5.3 version in CentOS 7 for development propose. I know this PHP version has security problems but I need to validate why a bug happens with this version of PHP with a proprietary software. Is there any way I can do this? I’m using Docker images to run the […]