To connect from a Kubernetes pod to a Google Cloud Storage (GCS) bucket using JavaScript, you need to follow these steps: 3. Configure your Kubernetes Pod to use the Secret: In this YAML: 4. Install the Google Cloud Storage client library: 5. Use the Google Cloud Storage client in your JavaScript code: 6. Deploy your application to Kubernetes: 7. Access […]
Easiest way to run an LLM locally on your Mac
I recently sought an efficient method for local experimentation with Language Model (LM) models and came across LM Studio. LM Studio offers a user-friendly platform that facilitates the exploration of various LLM models through its graphical user interface (UI). The installation process for LM Studio on macOS is straightforward and user-friendly. Simply navigate to the LM Studio website and locate […]
EKS cluster using an existing VPC
The eksctl command line tool can create a cluster by either command-line options or using a eksctl config file to define the infrastructure. The default method to provision EKS with this tool is to create both the VPC and EKS that uses VPC, but this is not as flexible. But what if you already created VPC for your network, below is one […]
kubectl Unable to connect to the server
When working with Kubernetes if you are getting Unable to conntect to server timeout like below mandarshinde@MacBook-Pro cloud-native % kubectl cluster-info dump Unable to connect to the server: dial tcp 31.117.131.267:443: i/o timeout Get current cluster name and Zone: gcloud container clusters list Configure Kubernetes to use your current cluster: gcloud container clusters get-credentials [cluster name] –zone [zone]
Lucidworks Spell Correction
We need to update few configuration for spell check to work in Lucidworks Fusion. This blog outline the changes need to made to show spell suggestion on AppStudio application. Update RequestHandler to use “spellcheck” search component. Add below lines to “/select” RequestHandler within “<lst name=”defaults”>” Once done update platform “fusion.conf” which is at location “<app-studio>/src/main/resources/conf/message/service/fusion.conf” and add below lines Update […]
Automatic Phrasing Token Filter in Lucidworks Fusion
How do we inject capability to detect and tokenize phrases using Automatic Phrazing Token Filter in Fusion? Well below are the details on how to do it. Configuration Settings: 1. Using this github create your jar. [https://github.com/lucidworks/auto-phrase-tokenfilter]. Copy JAR [“auto-phrase-tokenfilter-1.0.jar”] to solrLocation to copy JAR “/opt/fusion/<version>/apps/solr-dist/dist” 2. Update solr config.xml Add lib reference 3. Add a new text file “autophrases.txt” […]
Java SE 8 parallelSort in Arrays class
Arrays class now has several new “parallel” methods to take advantage of multi-core hardware. Arrays method parallelSort can sort large arrays more efficiently on multicore systems. Lets create a very large array and use Java SE 8 Date/Time API to compare how long it takes to sort the array with methods sort and parallelSort. SecureRandom random = new SecureRandom(); // […]
Bubble Sort Using JAVA
Bubble sort is a simple sorting algorithm that works by repeatedly stepping through list to be sorted, comparing each pair of adjacent items and swapping them if they are out of order. The pass through list is repeated until no swaps are needed, which indicates that the list is now sorted. Although algorithm is simple, most of the other sorting […]
Enabling Dimension Refinement Counts in a CAS application (Forgeless)
Problem Are you missing refinement counts on dimensions with Oracle Commerce 11.1 or later using CAS based application (Forgeless)? Endeca JSP Reference Application shows records but missing counts of records next to those dimensions. Do you want to fix it, well then this discussion is for you. With earlier application which uses Forge, it was possible to enable refinement counts […]
Create Matrix With User Input Using Java
Using 2D array to implement the matrices in java. Below example shows how to take matrix data from the user inputs and display them. package com.ms.matrix; import java.util.Scanner; public class CreateMatrix { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println(“Enter The Number Of Matrix Rows”); int matrixRow = scan.nextInt(); System.out.println(“Enter The Number Of Matrix Columns”); int […]