Skip to main content

Questions tagged [radix]

A number's radix (also known as its base) is the number of unique digits used in its representation. Common examples are binary (base-2), octal (base-8), decimal (base-10), and hexadecimal (base-16). Use this tag for questions about converting between or otherwise manipulating numbers with different radices.

0 votes
0 answers
65 views

shadcn Select component - select option from available SelectContent options following fetch

When a user types in a postcode in defendantPostcode field, I want to query my API, retrieve a postcode ID and, in the subsequent Select field, select the option with the matching ID. I succesfully ...
ron_g's user avatar
  • 1,615
0 votes
0 answers
93 views

Shadcn/Radix NavigationMenu positioning issue

I'm using Shadcn as my UI library and I'd like to center their Navigation Menu (https://ui.shadcn.com/docs/components/navigation-menu). Currently, its align to the left of the trigger (see attached ...
Korer's user avatar
  • 67
0 votes
0 answers
226 views

Dialog is not opening as a modal popup - shadcn

In next.js I have added Dialog component from shadcn, but it is not working as a modal or popup. Screenshot: https://i.sstatic.net/fVkQz86t.png return ( <Dialog> <DialogTrigger ...
Dhaval Makwana's user avatar
0 votes
0 answers
21 views

How to convert numbers after the Radix Point from base 10 to base -2

I have been unable to find any documentation on any algorithm or method of converting fractional reparations from base 10 to base -2 (or any other negative base). While you can easaly convert from ...
Santa Bunny's user avatar
0 votes
1 answer
37 views

Is there a nice way of cleaning up an old conda base environment littered with packages?

Asking for those of us who have been using python and conda for a long time, and installed a bunch of packages in the base environment when we were first learning, and now want to clean things up to ...
Chancelor Roberts's user avatar
0 votes
1 answer
55 views

How can I convert a recurring binary number into decimal and vice-versa without approximating it?

I want to convert a number like 10.1(010) (which I'm storing as a triple ('10','1','010')) into decimal, getting 2.6(428571) (or ('2','6','42857')). I want to get the exact number, repeating decimals ...
Tar-Roccorendil's user avatar
0 votes
1 answer
291 views

Sheet component won't close after being opened even with open and onOpenChange props

I have this component, It's a shadcn/ui sheet component that I want to make it open and close when the button is clicked, by button I mean the one that has the onClick event and takes the toggleOpen ...
Simo D.'s user avatar
  • 33
0 votes
0 answers
136 views

react-hook-form `resetField` and shadcn/radix dialog

I want to display react-hook-form inside radix dialog but for some reason content is not updated properly. Here is my code export const HomeworksBookTreeOptions = ({ homeworksBook, treeRef, }: { ...
Kernier's user avatar
  • 13
0 votes
0 answers
12 views

Experiencing this error on submit FormatInvalid radix-10 number (at character 1) 162.6 ^ in Flutter [duplicate]

On the button I am making an API call, I get this error. What could be the issue below is my code. var usersEndPoint = 'https://brotherlike-navies.000webhostapp.com/people/people.php'; var ...
Kibiku Brian's user avatar
1 vote
2 answers
66 views

Hexadecimal radix to sort a list of 4-byte integers

#include <stdio.h> #include <stdlib.h> #define MAX_SIZE 100 void radix_sort(int arr[], int n) { int buckets[16][MAX_SIZE]; int bucket_count[16]; int i, j, k, r, shift, pass, ...
David Czerepak's user avatar
0 votes
1 answer
477 views

Radix UI + Next.js Light/Dark Mode Toggle

I'm trying to implement a light vs dark mode toggle for my Next app. I'm using the radix ui component library for my styling. I'm a little stuck trying to figure out the logic to make this happen. How ...
Taariq Elliott's user avatar
1 vote
3 answers
72 views

Joining a vector and a matrix up in base R

I have the following: M looks like: [,1] [1,] 1 [2,] 0 [3,] 2 [4,] 3 [5,] 0 [6,] 4 [7,] 5 [8,] 0 and out looks like 1 2 3 4 5 ...
user113156's user avatar
  • 7,017
0 votes
0 answers
139 views

vite env variables replaced twice with vite command

I have the index.html with following static script. Since vite doesnt build static file, I added the env variable. <script src="%VITE_BASE_URL%test.js"></script> The build ...
Nyfer's user avatar
  • 163
0 votes
0 answers
29 views

Can't Update Python in Anaconda Base Environment

In Windows10 I am not able to update Python from current version 3.8.1 to 3.10 in Anaconda 'Base' environment. Other environments, except Base were successfully updated to 3.10.10 Nothing contained in ...
Dan's user avatar
  • 101
2 votes
1 answer
2k views

Shadcn Dialog component margin

Trying to add some simple margin to left and right of a dialog box when viewing on a mobile screen. No matter where I seem to add mx-5 it doesn't actually work. Any ideas on how to add some margin to ...
CharlesInCharge's user avatar

15 30 50 per page
1
2 3 4 5
99