Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : How are you doing today you sexy mother ******?

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : You are trapped in your most hated persons body, you have 48 hours to ruin their life. You may not kill or be killed. What will you do?

Categories
Development

Shopify Create a customer with email address in shopify store

I have built a store and I created a form to input email. Once submit button is clicked, I want to create a customer using API. How can I do this? Should I have to create a Private App in PHP file to use API? Is there anyway I can use to AjaxAPI to do […]

Categories
Chrome Development

How to Hide Response Header inside Chrome Dev tools

Is there any way to hide all the details inside the Response Header under Network Console under Header Section i tried finding a lot from internet but not getting related solution i tried finding in stackoverflow but not getting. Example Access-Control-Allow-Credentials: true Access-Control-Allow-Headers: Content-Type, Accept, X-Requested-With,Origin, remember-me,empID,Authorization,password ,username,Access-Control-Request-Headers,Access-Control-Request-Method Access-Control-Allow-Methods: POST, GET,DELETE, PUT Access-Control-Allow-Origin: * Access-Control-Max-Age: […]

Categories
Development Google

How to get updated (Test) Object values in Google App Engine environment for Springboot application?

I’m working on Springboot application deploying on GCP environment, A singleton object has created in spring, and am updating that object values in other component and that update is not reflecting in any other places where ever I autowired that component. The same logic works in Java environment but not Appengine environment. Sample: Updating the […]

Categories
Development

How to create image sub folders in python based on image labels

I need to create image subfolders based on it’s labels,labels are stored in csv file example data\images (images folder continas all the images ) 0.jpg,1.jpg,2.jpg…… data\train.csv (train.csv folder contains image name & class ) train.head() image_id catergory 0 22 1 44 .. … i’m already tried this one train_dir = r’C:\Users\Admin\Downloads\Flower recognition\data\train’ train_sep_dir = r’C:\Users\Admin\Downloads\Flower […]

Categories
Development

Authentication and Authorization for API Gateway

I am building an Api gateway in springboot with microservices and would like to implement all features/principles of API Gateway Authentication/Authorization Routing (Able to route using spirng cloud gateway) Load balancing (Netflix Ribbon) Cache Management Rate Limit API Performance monitioring I have explored to implement authentication/autherization using OAuth2 but couldn’t find suiltable solution. Looking for […]

Categories
CSV Development

Comma values in a column of CSV – not working code

I have CSV file with the below data. **Source data:** CODE,Name,Value 1,ABC (CEF) CO.,XYZ,500 2,GOOD VALUE CO., XYZ,20 Expected output: But python pandas is not reading the data properly due to comma values in Name column. I used below link. But not working. XYZ is truncating in ABC (CEF) CO.,XYZ. pattern = ‘[:;\?\.<\’/]’ # I […]

Categories
Development

How to find out if two string are equal based on the occurence of one specific letter?

For this project, two strings are equal if they both have the same number of occurrences of the character ‘X’ and if the character ‘X’ is in the same position in each of the strings. Note that this allows for strings of different lengths as long as the longer string does not have any ‘X’s […]

Categories
Development

What is the code to minimum sum of subarray of size k in the array and count how many times the sum comes up in the array?

I tried it and I got my mistakes and I am meeting a dead end. Below is the code I tried. Please help me with a optimized code or solution. Please. for (int i=0; i<k; i++) res += a[i]; int curr_sum = res; for (int i=k; i<n; i++) { curr_sum += a[i] – a[i-k]; res […]