1,761 questions
Advice
6
votes
3
replies
324
views
What's the difference between the left curly brace and the right curly brace?
In the R documentation, it says:
Open parenthesis, (, and open brace, {, are .Primitive functions in R.
...
For {, the result of the last expression evaluated. This has the visibility of the last ...
Advice
0
votes
0
replies
92
views
Suggentions on open-model to implement LLM text watermarking
As a part of my research problem, I want to fully access a model to implement LLM text watermarking (I need open-weight model to modify hidden states). After researching a bit, I found Qwen2.5-0.5B ...
Best practices
1
vote
3
replies
118
views
Semantics of the <pre> tag
I'm curious about the semantics of the <pre> tag. It seems to achieve nothing which CSS cannot:
code.block {
white-space: pre;
}
.poem {
font-family: monospace;
white-space: pre;
}
<...
Best practices
0
votes
0
replies
77
views
Refreshing Power BI Data within SemanticModel using ServicePrinicipal connection
I have a Power BI Report and the relevant Semantic Model that gets data from a SharePoint and Data Bricks SQL Warehouse using my credentials. Can i change the data refreshing and semantic refresh part ...
Score of 1
0 answers
59 views
MenuAnchor children Semantic is not reachable by Web Element inspector when inside a Horizontal Scrollable widget
I'm using https://watermelon.us for writing automation tests for my Web app. When a test case starts, Watermelon will start the web app and then automatically record my actions when I interact with it,...
Score of 1
1 answer
177 views
What exactly is a context of an expression?
Up until now, I thought of a context as a place in the code that expects a certain kind of expression. The Rust Reference on Expressions writes for example that:
The following contexts are place ...
Score of 1
1 answer
155 views
Correct semantic markup for a quote's author: <cite> vs. <span> [closed]
Based on the HTML examples provided, is it considered better practice to mark up an author's name with the cite tag or a span tag? I've read that the cite tag is intended for referencing a work (like ...
Score of -1
1 answer
68 views
Syntactically required and semantically relevant tokens in Python grammars
I am trying to parse code into AST. I want to keep minimum keywords and delimiters in the AST while keeping the semantics.
In Python function definition def foo():, the last : is syntactically ...
Score of 1
1 answer
58 views
MemberExpression evaluation order of null/undefined base
Why does the following code throw TypeError: Cannot set properties of null instead of Error: property key evaluated?
var base = null;
var prop = {
toString: function() {
throw new Error("...
Score of 13
5 answers
2031 views
How Does the Left-Hand Side (LHS) of an Assignment Evaluate in C?
I’m working on understanding pointers in C by breaking down the language into three key areas: syntax, semantics, and idioms.
To grasp pointers, I’ve been focusing on fundamental concepts:
what’s an ...
Score of 0
2 answers
280 views
How do I infer the weakest precondition when a loop invariant is given?
I previously asked this question on StackOverflow about using loop invariants to catch a bug in my program. Now, I want to take the next step and understand how to compute the weakest precondition ...
Score of 1
2 answers
109 views
How do I use a loop invariant to catch a bug in my program?
I’m learning about weakest preconditions, loop invariants, and verifying program correctness (e.g., with an SMT solver). From the slides here in slide 11, I see how placing a loop invariant can help ...
Score of 2
0 answers
323 views
Customize Accessibility on Horizontal Pager Jetpack Compose
I'm trying to customize the accessibility for the horizontal pager.
This is how the pager looks. The previous and next view are partially visible. But I don't want these partially visible views to ...
Score of 0
0 answers
75 views
How to compute weakest preconditions for class methods with object state in Python?
I am working on a tool to compute weakest preconditions for certain Python programs, and I’m struggling with handling class objects and their variables. Here's a minimal example of the problem:
For a ...
Score of 0
2 answers
120 views
Zig(`sytax/declaration`) Semantic of error as only return type of function. Or what actually do `catch`
I don't know if this is correct behavior according to the author, or if there's a mistake in compilation.
const std = @import("std");
const expect = std.testing.expect;
const expectError = ...