What is the proper way to parse an integer from a string in Zig, while being able to specify the resulting integer type? How would I convert foo
to an i32
, for example?
&str
, String
, AsRef<str>
, or Into<String>
in Rust? I'm developing a public Rust library and I'm unsure how to handle function parameters that deal with strings. There seem to be multiple idiomatic options: - &str
- String
- impl AsRef<str>
- impl Into<String>
Each of these works in different cases, but I don't u...
gap-x
and space-x
in TailwindCSS? I’ve seen both gap-x/y-*
and space-x/y-*
used in Tailwind examples to create spacing between elements. What is the actual difference between them? Are they interchangeable, or is one preferable in certain situations?
I would like to apply inherited font size to an element with Tailwind. I know that this can be achieved in regular CSS like so: But how would I accomplish this using purely Tailwind class syntax? text-inherit
seems to apply color: inherit
not font-size: inherit
l...
How can I get the current system epoch time in milliseconds/seconds (and to a lesser extent nanoseconds and microseconds) in Rust?
How can I center an element horizontally and/or vertically in TailwindCSS? Is there more than one way to accomplish this, and if so, what are the pros and cons of each method and in what cases should they be used?
Forgive me but I'm pretty new to Zig and need to convert an integer (e.g. i32
) into a string for display purposes. What's the idiomatic way to do this in Zig at runtime, and are there different approaches depending on the integer type or allocation needs?
localStorage
in SvelteKit SSR? I'm building a Notice
component that users can dismiss, and I'm storing the displayed
state of the notice, however, I would like to preserve it across sessions. localStorage
seems like a good way to accomplish this, however, when trying to use localStorage
I get s...
let
or const
for $derived
runes in Svelte? Variables in JavaScript can be defined using either let
or const
(ignoring the antiquated [var
](...
I'm learning Zig and want to know the proper way to compare strings. I see that strings are slices ([]const u8
), but how do I: - Check if two strings are equal - Do a case-insensitive comparison What functions or standard library utilities should I use for these common...
I'm working with hexadecimal strings and I want to insert a space between every two characters in a string so that each byte can be easily distinguished. I'm aware that chunks
and join
could be used, but no such methods are available in [Chars
](https://doc.rust-lan...
301
vs 302
vs 307
vs 308
)? I'm working on building a web app and I'm a bit confused about the differences between HTTP status codes related to redirects, specifically 301
, 302
, 307
, and 308
. From what I understand, 301
and 302
are common older codes, but I keep seeing 307
and 308
i...
I understand that in Svelte 4 and previous versions props are individually declared using export let name: type = defaultValue;
. For example in Svelte 4: I'm also aware of the new $props
rune in Svelte 5, however I don't understand how I can type the props using th...
I'm working on adding structured data to question pages on solvin (more specifically implementing [QAPage](https://developers.google.com/search/docs/appearance/structured-data/qa...
each
block a specific x
number of times in Svelte? I know of Svelte's {#each}
block which allows you to iterate over arrays or array-likes. However, there are some cases where I'm not interested in the data of an array, but rather in repeating a block a specific x
number of time...
Rc
, Arc
, or Box
in Rust, and how do they differ in memory management? I’m working on a Rust project and keep running into different smart pointer types like Rc
, Arc
, and Box
. I understand they’re used for memory management, but I’m confused about the real-world scenarios for each. - When should I choose Rc
over Arc
, and vice-versa...
How can I perform string concatenation with &str
String
, and the various combinations you can make with them (&str
and &str
, String
and String
, etc.) in Rust?
I'm working with hexadecimal strings and I want to insert a space between every two characters in a string so that each byte can be easily distinguished. I'm aware that chunks
and join
could be used, but no such methods are available in [Chars
](https://doc.rust-lan...
let
or const
for $derived
runes in Svelte? Variables in JavaScript can be defined using either let
or const
(ignoring the antiquated [var
](...
301
vs 302
vs 307
vs 308
)? I'm working on building a web app and I'm a bit confused about the differences between HTTP status codes related to redirects, specifically 301
, 302
, 307
, and 308
. From what I understand, 301
and 302
are common older codes, but I keep seeing 307
and 308
i...
I understand that in Svelte 4 and previous versions props are individually declared using export let name: type = defaultValue;
. For example in Svelte 4: I'm also aware of the new $props
rune in Svelte 5, however I don't understand how I can type the props using th...
I'm learning Zig and want to know the proper way to compare strings. I see that strings are slices ([]const u8
), but how do I: - Check if two strings are equal - Do a case-insensitive comparison What functions or standard library utilities should I use for these common...
How can I center an element horizontally and/or vertically in TailwindCSS? Is there more than one way to accomplish this, and if so, what are the pros and cons of each method and in what cases should they be used?
Forgive me but I'm pretty new to Zig and need to convert an integer (e.g. i32
) into a string for display purposes. What's the idiomatic way to do this in Zig at runtime, and are there different approaches depending on the integer type or allocation needs?
How can I perform string concatenation with &str
String
, and the various combinations you can make with them (&str
and &str
, String
and String
, etc.) in Rust?
Rc
, Arc
, or Box
in Rust, and how do they differ in memory management? I’m working on a Rust project and keep running into different smart pointer types like Rc
, Arc
, and Box
. I understand they’re used for memory management, but I’m confused about the real-world scenarios for each. - When should I choose Rc
over Arc
, and vice-versa...
localStorage
in SvelteKit SSR? I'm building a Notice
component that users can dismiss, and I'm storing the displayed
state of the notice, however, I would like to preserve it across sessions. localStorage
seems like a good way to accomplish this, however, when trying to use localStorage
I get s...
each
block a specific x
number of times in Svelte? I know of Svelte's {#each}
block which allows you to iterate over arrays or array-likes. However, there are some cases where I'm not interested in the data of an array, but rather in repeating a block a specific x
number of time...
How can I get the current system epoch time in milliseconds/seconds (and to a lesser extent nanoseconds and microseconds) in Rust?
I'm working on adding structured data to question pages on solvin (more specifically implementing [QAPage](https://developers.google.com/search/docs/appearance/structured-data/qa...
&str
, String
, AsRef<str>
, or Into<String>
in Rust? I'm developing a public Rust library and I'm unsure how to handle function parameters that deal with strings. There seem to be multiple idiomatic options: - &str
- String
- impl AsRef<str>
- impl Into<String>
Each of these works in different cases, but I don't u...
I would like to apply inherited font size to an element with Tailwind. I know that this can be achieved in regular CSS like so: But how would I accomplish this using purely Tailwind class syntax? text-inherit
seems to apply color: inherit
not font-size: inherit
l...
gap-x
and space-x
in TailwindCSS? I’ve seen both gap-x/y-*
and space-x/y-*
used in Tailwind examples to create spacing between elements. What is the actual difference between them? Are they interchangeable, or is one preferable in certain situations?
What is the proper way to parse an integer from a string in Zig, while being able to specify the resulting integer type? How would I convert foo
to an i32
, for example?
rust | 5 Questions |
typescript | 5 Questions |
html | 4 Questions |
javascript | 4 Questions |
zig | 3 Questions |
css | 3 Questions |
go | 0 Questions |
kotlin | 0 Questions |
php | 0 Questions |
ruby | 0 Questions |
perl | 0 Questions |
dart | 0 Questions |
elixir | 0 Questions |
haskell | 0 Questions |
julia | 0 Questions |
objective-c | 0 Questions |
nim | 0 Questions |
crystal | 0 Questions |
c | 0 Questions |
r | 0 Questions |
matlab | 0 Questions |
ada | 0 Questions |
fsharp | 0 Questions |
python | 0 Questions |
c++ | 0 Questions |
ocaml | 0 Questions |
scala | 0 Questions |
assembly | 0 Questions |
cobol | 0 Questions |
fortran | 0 Questions |
clojure | 0 Questions |
sql | 0 Questions |
brainfuck | 0 Questions |
visualbasic | 0 Questions |
java | 0 Questions |
swift | 0 Questions |
string | 5 Questions |
svelte | 4 Questions |
tailwind-css | 3 Questions |
integers | 2 Questions |
sveltekit | 1 Question |
markdown | 1 Question |
arrays | 1 Question |
http | 1 Question |
websocket | 0 Questions |
cookies | 0 Questions |
service-workers | 0 Questions |
rest | 0 Questions |
mysql | 0 Questions |
git | 0 Questions |
npm | 0 Questions |
0 Questions | |
opengl | 0 Questions |
vulkan | 0 Questions |
directx | 0 Questions |
metal | 0 Questions |
webgl | 0 Questions |
webgpu | 0 Questions |
minecraft | 0 Questions |
assembly-arm-32 | 0 Questions |
assembly-arm-64 | 0 Questions |
assembly-risc-v-32 | 0 Questions |
assembly-risc-v-64 | 0 Questions |
assembly-x86-32 | 0 Questions |
assembly-x86-64 | 0 Questions |
assembly-x86-16 | 0 Questions |
minecraft-fabric | 0 Questions |
postgresql | 0 Questions |
pointers | 0 Questions |
hashmap | 0 Questions |
minecraft-forge | 0 Questions |
minecraft-bukkit | 0 Questions |
minecraft-spigot | 0 Questions |
minecraft-paper | 0 Questions |
minecraft-plugin | 0 Questions |
firebase | 0 Questions |
java-21 | 0 Questions |
json | 0 Questions |
csv | 0 Questions |
c++98 | 0 Questions |
c++03 | 0 Questions |
c++11 | 0 Questions |
c++14 | 0 Questions |
c++17 | 0 Questions |
c++20 | 0 Questions |
c++23 | 0 Questions |
java-7 | 0 Questions |
java-9 | 0 Questions |
java-12 | 0 Questions |
java-17 | 0 Questions |
java-8 | 0 Questions |
github | 0 Questions |
java-11 | 0 Questions |
tensorflow | 0 Questions |
pytorch | 0 Questions |
openai-api | 0 Questions |
cuda-c++ | 0 Questions |
nextjs | 0 Questions |
astro | 0 Questions |
nuxtjs | 0 Questions |
vite | 0 Questions |
remix | 0 Questions |
htmx | 0 Questions |
wgpu | 0 Questions |
bevy | 0 Questions |
serde | 0 Questions |
cargo | 0 Questions |
sqlite | 0 Questions |
redis | 0 Questions |
flutter | 0 Questions |
bun | 0 Questions |
docker | 0 Questions |
kubernetes | 0 Questions |
oauth2 | 0 Questions |
aws | 0 Questions |
gcp | 0 Questions |
react-native | 0 Questions |
qt | 0 Questions |
tauri | 0 Questions |
electron | 0 Questions |
svg | 0 Questions |
keras | 0 Questions |
swiftui | 0 Questions |
redux | 0 Questions |
iframe | 0 Questions |
cmake | 0 Questions |
axios | 0 Questions |
tcp | 0 Questions |
udp | 0 Questions |
three.js | 0 Questions |
graphql | 0 Questions |
yaml | 0 Questions |
stripe-api | 0 Questions |
supabase | 0 Questions |
latex | 0 Questions |
numpy | 0 Questions |
reactjs | 0 Questions |
gradle | 0 Questions |
regex | 0 Questions |
multithreading | 0 Questions |
solidjs | 0 Questions |
linked-list | 0 Questions |
segfault | 0 Questions |
jwt | 0 Questions |
cors | 0 Questions |