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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Shadcn navigation menu - vertical orientation doesnt work

I want to use NavigationMenu component from shadcn (https://ui.shadcn.com/docs/components/navigation-menu) but the following doesnt work: <div className='container bg-slate-50 p-6'> <...
Beres's user avatar
  • 13
1 vote
1 answer
45 views

How to close Radix/Shadcn popover from inside of it

I have a shadcn popover and its content is several buttons. I want to close a popover once button is clicked. How can I do that? https://ui.shadcn.com/docs/components/popover
Beres's user avatar
  • 13
0 votes
0 answers
26 views

Base class undefined. How would I go about fixing this issue?

I want to create the object "keyEventsInstance" on the stack as a private member of the class "MultiLauncher" (see MultiLauncher.h) and then have keyEvents::processKey(uint key) ...
LondonNight's user avatar
0 votes
0 answers
15 views

What is a radix parameter? [duplicate]

I'm trying to make an object/sprite that moves using HTML5, CSS and javaScript with arrow keys. I made a switch statement and my console is saying that I need to put a radixParameter. Here's what I ...
yahmo1390's user avatar
3 votes
0 answers
77 views

Can cut() be improved?

Currently the last 4 lines of cut.default are written as: code <- .bincode(x, breaks, right, include.lowest) if (codes.only) code else factor(code, seq_along(labels), labels, ordered = ...
NicChr's user avatar
  • 998
0 votes
1 answer
17 views

Prisma / How can i use base entity(model)?

I want use BaseEntity like TypeORM in Prisma This is my example code model Test1 { id Int @id name String @db.VarChar(30) base Base } model Test2{ id Int @id name String @db.VarchAr(30)...
iLoveNodeJs's user avatar
0 votes
0 answers
307 views

where to spread props and pass refs exactly in radix ui react?

So my guess is that if custom component doesn't accept children and has DOM element like button, then we should spread props and pass ref to it. But if custom component gets children instead and has ...
Terlan's user avatar
  • 23
1 vote
0 answers
22 views

Time complexity of Radix sort with dependent digit length

In a problem an optimal sorting algorithm and its worst-case time complexity were to be found where there are n whole numbers with exactly (logn)3/2 digits in base 2 each. The solution is Radix sort ...
Lowki T's user avatar
  • 11
0 votes
1 answer
241 views

Render a tooltip under the anchor elements in Tiptap

I'm creating an editor with Tiptap and I'm struggling trying to implement a notion-style anchor element in my rich text editor. Basically, I need to render a tooltip under the links with the href and ...
Emiliano's user avatar
  • 447
1 vote
2 answers
432 views

RadixUI styling Radio groups

I am fairly new to Radix UI (with Shadcn/ui) and styling components for that matter. Couldn't figure out a solution for adapting a JSX component to Radix UI: I am using Radix UI Radio Groups & ...
dot321's user avatar
  • 55
2 votes
1 answer
76 views

having problems inserting words on a patricia/radix tree

i am trying to make a code for a college aplication of a patricia/radix tree that inserts words read from each line in a txt file in the tree, so if i read a file that says roman romance romantic its ...
Davi Franke's user avatar
1 vote
2 answers
90 views

Parse string to integer in arbitrary base/radix

In other languages besides Perl, if I want to parse a string representing a number in a weird, non-standard base (not necessarily the normal binary (2), octal (8), decimal (10), or hexadecimal (16) ...
ShadowRanger's user avatar
0 votes
1 answer
217 views

Thumb component within Radix's Switch component not transitioning (sliding over)

My Radix Switch component code using Tailwind works as intended in a sandbox. But within my own local environment the Thumb component does not transition (the slider part). It stays stationary. In the ...
Mix Master Mike's user avatar
0 votes
1 answer
150 views

C++ std::deque pop_front() not removing elements from queue

I'm implementing a simple radix sort for a school report and using a std::deque in my implementation of the intermediate bucket sort. The problem is that when I perform a pop_front(), the front ...
interloper.__init__'s user avatar
0 votes
0 answers
76 views

Does This Hash Function Collide?

Context: Apologies for the misuse of "hash function". I'm trying to serialize game state in a compact but plaintext manner -- I can pack most of what I need into one 64-bit int but having ...
Hammer Bro.'s user avatar
-3 votes
1 answer
106 views

Java LinkedList being empty is not the same as being equal to null? [closed]

Hello, I am trying to implement a Least Significant Digit Radix Sort using Java. On line 130 I create the array of Linked Lists that will hold the sorted integers and initialize each element to an ...
Omar Ibrahim's user avatar
0 votes
0 answers
16 views

How can I deploy a new Scrypto package to the Betanet using an API?

I want to deploy a new version of my Scrypto package to the Betanet but I also want to avoid the manual work doing it through the dashboard. Is there a way to do it through an API so I can automate ...
TradingDraziW's user avatar
0 votes
0 answers
72 views

Error loading from SharedPreferences: FormatException: Invalid radix-10 number (at character 1)

I am facing this issue while trying to save ID from article when user tap in order to save article and pass it into the favourite page. Every time I go to the favourite page i get this error message &...
Pimpi Rimpà's user avatar
2 votes
1 answer
135 views

Is there a shortcut or special-case when transforming long numbers from base-256 to base-255 and back?

I have many large numbers which are several hundred bytes long. How can I efficiently transform these from base-256 into base-255, such that the numbers become up to one byte longer but don't use the ...
fadedbee's user avatar
  • 42.8k
1 vote
1 answer
38 views

In R, I want to prevent long labels from ruining the image by using '\n'

I am currently using library(fgsea) to create a bar plot in ggplot2 based on the results. However, the long pathway labels are causing issues with the image. I tried to use stringr::str_wrap() and ...
Young Tae Won's user avatar
0 votes
0 answers
26 views

SAS BASE method %index where second parametr equals ','

I have some code: %if %index(&CompanyName,&) %then %do; %let error_code = 4; %let error_msg = &ERR_CONT_SYMB; %return; %end; When a company name has an & symbol, ...
BalaevAsif's user avatar
1 vote
1 answer
84 views

JSDoc ts annotations for generic-ish base class (VS Code)

I'm trying to use JSDoc annotations for a base class where a constructor param (and some getter/method return vals) will be the classes which extend the base class. Is there a way to specify that @...
cabbageforall's user avatar
0 votes
1 answer
715 views

Is there a way to use radix-ui/colors variables in a css module file?

I'm using next for a personal project and I'm trying to use Radix components along with radix-ui/colors. Importing the color variables into the CSS Module creates an error, because the :root selector ...
Thyago Carvalho's user avatar
0 votes
0 answers
104 views

writing a program in PEP8 assembly that converts a number to a chosen base

this is my code so far. I am really confused and im having a hard time using pep8. I need to convert a number to a chosen base. e.g. 343 to base 2 LDA 0,i LDX 0,i STRO prompt,d ...
adam123's user avatar
-3 votes
1 answer
169 views

What does the word "radix" mean inside an int.parse in dart?

Could someone please explain for me what is the meaning of radix in this code? int.parse(hexColorString, radix: 16); Thank you for helping.
Bryar Laiq's user avatar
0 votes
0 answers
23 views

Libreoffice Base - Triggering stock table deductions from orders table

I'm working on a DB that consists mostly of two tables. One with our stock of memorial markers, and the other where I keep a running list of ongoing and completed orders. When I change an ongoing ...
AmazingMrBrock's user avatar
0 votes
2 answers
33 views

How do you change the way unlist use.names structures the names it puts together

I've got a set of nested lists, such as this: setoflists <- list(first.list = list(letter.a=1, letter.b=2, letter.c=3), second.list = list(letter.d=4, letter.e=5, letter.f=6)) I ...
Mike's user avatar
  • 949
0 votes
0 answers
55 views

Clone macro in LibreOffice Base

I have a clone macro in a subform table control grid which copies 1 row to a clone table. It works perfectly if only 1 record. If another record is added, it still just copies the first. If there are ...
Walt's user avatar
  • 1
0 votes
0 answers
3k views

React select from Radix-UI conflicts with default value, how to solve it?

I have this component where I render 3 different selectors depending on the data I pass. The first selector once clicked, gets the data of the second one (without selection), the same for the second, ...
user19625670's user avatar
2 votes
0 answers
39 views

Base-n integer representations library in Isabelle/HOL?

Context: I am trying to translate math contest problems into Isabelle/HOL. A lot of these contest problems involve questions like "what are the last two digits of this number when written in base ...
Charles Staats's user avatar
0 votes
0 answers
33 views

Do you know how to convert from bases in python?

How do you convert base 12 to base 10 in Python 3 and the other way around too? (from 10 to 12) I wrote this code to make a list of numbers in base 4, but the code never executes and eventually has a ...
Adi's user avatar
  • 1
1 vote
1 answer
376 views

How do I get "--base-href" to not expand to an absolute path when building using npm?

I'm using Angular 14 and NPM 8. I have this command for building my artifact ... npm run build -- --source-map --base-href=/my-app/ --output-path=dist/my-app/ The problem is, when my dist/my-app/...
Dave's user avatar
  • 16k
-4 votes
1 answer
51 views

How to properly desructure a derived class object when derived class pointer is assigned to base class pointer? [closed]

Is it possible to delete derived class object in proper way when derived class pointer was assigned to base class pointer? Lets consider following situation: #include <stdio.h> #include <...
Jankovsky222's user avatar
1 vote
0 answers
129 views

Using dimens in font size as design

I want to create a text base TextStyle to apply the image above, but I read some suggestions related to dimes then they advise me to use flutter_screenutil 5.0.3 package. But it got errors: ...
tuanvpt's user avatar
  • 11
0 votes
2 answers
55 views

Radix Sort doesn't work properly in 1d array (c)

I'm trying to radix sort 1d array by growth, but it doesn't sort: it displays the same arrays. When I'm trying to find mistakes, compiler says there are no ones. My code is (I used an example given on ...
Lvrnnk's user avatar
  • 39
1 vote
1 answer
688 views

Orientation of tabs component does not work in RadixUI

I am using RadixUI and there is orientation props, which could be vertically set. I tried to use this prop and expect that thabs will be aligned in column but it does not work: <Tabs.Root ...
Asking's user avatar
  • 3,517
-1 votes
1 answer
28 views

How to convert multiple characters (number identifiers) into a sequence separated by commas

My case is easy, I've seen several examples but all with the commas added separating the characters. I have 100 numbers to structure, I don't find useful write 100 commas # I Want c("50109018&...
Javier Hernando's user avatar
0 votes
1 answer
30 views

Merge several tables

Is want to merge several tables, in which there is one with unbalanced rows in comparison to the rest (tabacos0) I would like the title of the table to appear if it is possible (Hipertensión, Diabetes....
Javier Hernando's user avatar
-1 votes
1 answer
230 views

How to prevent automatic number conversion in JavaScript

I want to call a function parsing a number with some zeros at the left to string. But JavaScript is automatically changing the number base. This is what I'm trying to do: function printNum(num) { ...
Matheus Soares's user avatar
1 vote
1 answer
95 views

How can I load a Vector into a single column of an Array in Julia

That's it. My program generates a vector of Int64s, and each time I need to stack each Vector into a M by N Matrix Everything. e.g. Push, Append, hcat [], (), {}, even ¯_(ツ)_/¯
user2501447's user avatar
2 votes
5 answers
68 views

Exclude rows where value used in another row

Imagine you have the following data set: df = data.frame(ID = c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), gender= c(1,2,1,2,2,2,2,1,1,2,1,2,1,2,2,2,2,1,1,2), PID = c(1,1,2,...
Unknownuser's user avatar
0 votes
0 answers
260 views

MIPS program that reads a string of exactly 10 characters from user input

You will write a MIPS program that reads a string of exactly 10 characters (including spaces, excluding the null character at the end) from user input. For each of the characters in the input, If it ...
Carla Thornton's user avatar
0 votes
0 answers
93 views

How do I solve a B4s3 question? I need help decoding

This is a question that I have to pass in my ongoing test, I just can’t figure it out. The question is as follow; Oops, what’s wrong with this ….. m,Ofp@U {<4sDFkESnoWEE(.M!1}TY7P I will ...
Onyinye's user avatar
1 vote
2 answers
131 views

Replace characters in the middle of a string

I have the following df df <- data.frame(name.name1 = c(1, 1, 1), name.name2 = c(2, 2, 2), name.name3 = c(3, 3, 3)) I'm trying to substitute . by space. When I do ...
hiperhiper's user avatar
1 vote
0 answers
87 views

Segmentation fault while traversing a linked list with hash tables

I'm trying to create a program that will use hash tables in order to execute Radix sort on an array of integers. My professor told us that we have to insert the integer at the rear of its respective ...
Dilly's user avatar
  • 49
-1 votes
1 answer
71 views

How do I program Python to read bytes from a file as base10 and organize each byte into a list?

I'm pretty amateur with python and computer data, so bare with me - I have a file called "input.nodes" and I want to have python read each byte, convert them to base10, and then organize ...
Vuice's user avatar
  • 13
-3 votes
1 answer
325 views

How to convert a string containing only 0 or 1 into a binary variable?

How to convert a C++ string (containing only "0" or "1") to binary data directly according to its literal value? For example, I have a string str, it's value is 0010010. Now I want ...
Chu's user avatar
  • 15
0 votes
1 answer
56 views

What does "[" do in R?

So I have a list of length 9 where each element is a dataframe. I wanted to extract specific columns from each dataframe in the most efficient way possible, so I used the below function. Down <- ...
Vyvanse's user avatar
-1 votes
1 answer
119 views

How to convert from base 10 to base x in java?

What i've done so far: public static String convert(int base, int target , String number) { ArrayList<Integer> numbers= new ArrayList<Integer>(); for(int i=0;i<number....
404notfound's user avatar
0 votes
0 answers
32 views

Mix libraries in a project

I would like to know if it is acceptable to load different libraries in one application. I'm using 'Chakra UI', but I also wanted to use 'Radix UI', which has some really cool features that Chakra ...
alanfljesus's user avatar

1
2 3 4 5
30