October 22, 2024
Chicago 12, Melborne City, USA
javascript

How to build a trie for finding exact phonetic matches, sorted globally by weight, and paginated? (Building off this example)

Goal I got pretty far working with AI to help me construct a Trie for finding rhyme words. Basically, say you have 10 million English words written using the CMU pronunciation system, where each phoneme is one node in the Trie (ARPABET in this image). Here are the key features: Trie nodes are 1+ ASCII

Read More
javascript

Angular App reloads immediately when browser tab is out of focus

My blogging application reloads when i switch tab to a new tab. The moment the tab with the application is out of focus, the application reloads and return to the base route. For example if I am filling out a form on the ‘/myform’ route and i switch tabs to get information for another tab,

Read More
javascript

Rails Admin UI Not Working Properly with Custom JS

I recently added a custom action that requires some custom JavaScript. To do so I added app/assets/javascripts/rails_admin/ui.js //= require ../google_places_autocomplete.js //= require ../google_places_autocomplete_validation.js My custom action works correctly, but when I go to my form to create a new instance the UI is not correct. There are no console errors. My custom CK Editor doesn’t

Read More
javascript

unable to integrate custom indicators/studies using highcharts

i’m working on a forex broker an trying to integrate custom indicator using highcharts library in NEXTJS 14 but unable to come across a documentation for such i initially used trading view but seem like to integrate an indicator one will need to go for a paid package which is high so how can i

Read More
javascript

Can you assign an elements class list to a variable by clicking on the element?

The main question I have is: Is there a way to assign to a variable an elements class list by clicking on said element. Expanding on this, I’m trying to create a function that – on clicking an image in a photo grid – expands the image making it clearer for people to see. I

Read More
javascript

DMAS rule implementation in Javascript Calculator

i have developed a scientific calculator using javaScript with no eval but now i am facing issues of the DMAS rule method as i do not know how to implement it in the calculator so kindly help me solve this issue i want to know how to implement the DMAS rule for calculator. You need

Read More
javascript

context.sync() blocked in Powerpoint Addin while trying to replace an image

I’m working on an Addin for Powerpoint and I’m having some problems with context.sync() and I Don’t understand why. A little explanation of what I want to do: With a function I have created an image and inserted it in my slide. At some point, I want to replace the image I’ve created with a

Read More
javascript

Sending Nil value to Rails API in Query String from JS

I’m querying a Searchkick endpoint where I want to find all results where a field is nil. The query in the console Product.search('*', where: { category_id: nil }) correctly returns results. When passed from the client nil, null and all others are interpreted as strings so my query becomes Product.search('*', where: { category_id: 'nil' })

Read More
javascript

Add Langgraph python backend to Remix app

Trying to develop a full stack app with a python backend that runs langgraph. I’m using Remix as the JavaScript framework, and I’m not sure how to structure the app to connect to the python backend. My plan is to use FastAPI as a service, but I’m confused on how to add it to the

Read More
javascript

Why isn't the same configuration of NestJs not watching files on a ubuntu noble VM?

I have 2 NestJs projects on Vagrant created VMs. One on a ubuntu/jammy box and a new project in a ubuntu noble VM I created by myself using this procedure. The project in jammy, watches files correctly. So I copied the exact configuration to the new noble machine. But the project in noble’s VM is

Read More