Questions tagged [expansion]

428 questions
1
vote
1 answer

How can I create an always-expanded treeview?

Well, I thought I had this one solved. I simply changed the TreeViewItem's template to ignore whether a particular node was expanded or not. Looks great! But that's just it... it looks great! Keyboard navigation still responds as if the node was…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
1
vote
1 answer

ZSH directory expansion ('..' into '../')

I've recently started to learn and use ZSH. The problem I'm facing is that ZSH won't auto-expand '..' in commands (like 'cd', 'cp' and so on) into '../'. Bash does this. This wouldn't be such an big issue if I were using keyboard with US-layout...…
amjr
  • 301
  • 3
  • 5
1
vote
1 answer

In-Place Word/Symbol Dabbrev Expand

Here's my extension to dabbrev-expand to support sub-string expansion.It works as expected, as far as I know. However I would find it even more useful if it supported in-symbol expansion similar to the behaviour of mdabbrev, which, by the way, is…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
1
vote
1 answer

Query expansion in PostgreSQL

I've just read in PostgreSQL manual that it provide full-text search functions including parsing, indexing and searching on documents text. My question is: it is possible to obtain a query expansion mechanism using a thesauri (or a dictionary)? I do…
Antonio F.
  • 411
  • 2
  • 9
  • 16
1
vote
2 answers

Horizontal Expansion Widgets

I'm trying to make it so that two widgets are placed in a row that divide it in half. When you click on one of them, it moved apart, and the second disappeared. But so far I get overflow when closing. import 'package:flutter/material.dart'; void…
kannt_im
  • 9
  • 3
1
vote
2 answers

Order of Command substitution and Arithmetic expansion in bash

The book “Learning the bash Shell” 3rd ed. by Cameron Newham and Bill Rosenblatt has at page 181 a picture describing the command-line processing of bash shell. That picture shows that Command substitution is performed before Arithmetic substitution…
1
vote
1 answer

Macro expansion and concatenation in cpp

#include using namespace std; #define PRINT_INFO() printf("%s",__FUNCTION__) #define PRINT(str,...) printf("%s %s", PRINT_INFO(), str, ##__VA_ARGS__) int main() { PRINT_INFO(); // expected output = main PRINT("Hello %s",…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
1
vote
1 answer

Bash brace expansion - operand behavior

When using brace expansion with certain commands, the actual behavior differed from what I expected- a member within the brace was evaluated as an argument in the other brace member's expansion. For instance, $ mkdir -p…
Jay
  • 19
  • 1
1
vote
1 answer

jq variable substituion works in shell but not in script

The following command works in the shell just fine, but when executed via an script it doesn't. What am I missing. jsonSelectWords='select(.words!=6) | select(.words!=1173) | select(.words!=1) | select(.words!=8) | select(.words!=9) |…
1
vote
1 answer

Remove some arguments from argument string in zsh

I'm trying to remove part of an arguments string using zsh parameter expansion (no external tools like sed please). Here's what for: The RUBYOPT environment variable contains arguments which are applied whenever the ruby interpreter is used just as…
svoop
  • 3,318
  • 1
  • 23
  • 41
1
vote
1 answer

Variable expansion in expect script

Hope someone can help with this variable expansion inside expect script. I assign values to variables in a loop like Ex: for {set i 1} {$i<=10} {incr i 1} { set IO$i [expr {$i + 1}] } I can get the variable values one by one by ex: send_user "IO1…
nia
  • 11
  • 1
1
vote
2 answers

Generate random grammar expansions in TatSu (Python)

I'm writing an interpreter for a grammar parser generated with TatSu. I'm looking for a convenient way to generate use cases for my grammar, so I can write unit tests for my interpreter. Currently, I'm generating my test cases by hand. I wonder if…
apio
  • 154
  • 11
1
vote
1 answer

Flutter Conversion - UICollectionViewDiffableDataSource

Im trying to convert my existing iOS Application into Flutter. In iOS I'm using UICollectionViewDiffableDataSource to view a structure like that: struct ClassItem: Hashable{ let year: String let students: [StudentItem] } let BiologyClass = [ …
1
vote
3 answers

RenderBox was not laid out : The relevant error-causing widget was ExpansionTile

I created an ExpansionTile widget and on expanding it display a search textfield and list of book using ListView.Builder, but it sending me this error RenderBox was not laid out: RenderRepaintBoundary#6b9d7 NEEDS-LAYOUT…
TimeToCode
  • 1,458
  • 3
  • 18
  • 60
1
vote
1 answer

Generalized associated Legendre Polynomials

Is there a simple way to calculate the generalized associated Legendre polynomials in Python (article)? I know that you can get the associated Legendre Polynomials using SciPy or pyshtools (article), but not the generalized ones (having two raised…
refle
  • 587
  • 3
  • 6
  • 19