Questions tagged [rc]

An "rc" file is a file read at startup of a program. It is also the name of the Plan 9 Shell.

Historically, in the days when Unix and other software was distributed on tapes, a tape archive often contained a file named "rc" containing run commands or run code to compile and install the software.

rc, the Plan 9 Shell

257 questions
1
vote
1 answer

Autostart a kivy gui on a raspberry pi

I am trying to have a kivy GUI that starts automatically after boot on a raspberry pi 4 running headless raspbian (with a window manager installed). To do so, I added the following line to /etc/rc.local: su -c /home/pi/dummyfolder/run_gui pi The…
mlx11
  • 170
  • 1
  • 8
1
vote
0 answers

Comparison between two Rc> - Unconsistent behavior

I'm playing with Rc> and came up with a behavior I don't understand. Basically, in a struct, I own a collection of Rc>. I can push an item of type Concrete implementing Obj in the collection, and get a…
1
vote
3 answers

Rc/RefCell with parent of same struct

I'm trying to convert some object oriented code into Rust. It was going okay until I ran into this situation. struct A { root: Rc>, } struct B { parent: Weak>, c_lst: Vec value: u32 } struct C { parent:…
Victor D
  • 15
  • 6
1
vote
0 answers

Run shell script at bootup in AOSP12 (aosp)

I have followed the below link to run the shell script in device bootup time. Run shell script at boot in AOSP. Snipped error logs below : console:/ $ dmesg | grep myservice [ 18.901774] type=1400…
GNK
  • 1,036
  • 2
  • 10
  • 29
1
vote
1 answer

enable vi command line editing from .perldb rc afterinit in perl debugger

Whenever I start the perl debugger from a script with a -d option, the session starts with emacs command line editing. I then type ESC ctrl J to enable vi editing. I want to enable vi from the get-go. I tried using the following…
Steve Dutky
  • 185
  • 11
1
vote
0 answers

CMake Error: No CMAKE_RC_COMPILER could be found

I have installed Windows on a virtual machine to debug a game i'm developing primarily on Linux (I haven't used Windows since i was 9 years old). I use CMake to build it, and i have installed LLVM+CLang for compiling. CMake complains about a missing…
AndroGR
  • 11
  • 2
1
vote
2 answers

Rust. Confusion around using functions from impl in global scope

I am doing examples from the Rust book but I dont understand this one. How can a.tail() use tail(), when tail() is a function in the implementation of List and a is of Rc type? use crate::List::{Cons, Nil}; use std::cell::RefCell; use…
Little A
  • 7
  • 1
1
vote
1 answer

Can cmake handle rc files?

Can cmake handle rc files? There is a project that needs to be converted from msvc to g++ compilation. Compiling with cmake can be successful, but after the program starts, it exits directly without a screen.
anti-gravity
  • 122
  • 6
1
vote
1 answer

Mutating fields of Rc Refcell depending on its other internal fields

I need to to iterate over a field of a struct inside Rc RefCell and modify some of its arguments according to its other field. For example for the struct Foo: pub struct Foo { pub foo1: Vec, pub foo2: Vec, } The following code…
Adam
  • 743
  • 1
  • 6
  • 11
1
vote
1 answer

formatting file version and legalcopyright in rc file

I have defined a rc file for my dll with following details VALUE "CompanyName", "My Company Inc." VALUE "FileDescription", "Dll for XYZ" VALUE "FileVersion", "1.00" VALUE "InternalName", "MyDll" VALUE "ProductName", "MyProduct" …
vinaym
  • 467
  • 1
  • 6
  • 18
1
vote
2 answers

Where (i.e. which file) to set/assign systemwide environment variable which e.g., nginx can read like NODE_ENV on FreeBSD?

On FreeBSD, I need NODE_ENV=production and other systemwide environment variables to be set on startup, before nginx fires up. Which is the right place i.e. file I do that?
LongHike
  • 4,016
  • 4
  • 37
  • 76
1
vote
1 answer

VS-2019 16.3.3 changes code page of RC files when saving

I am using VS-2019 and just updated to 16.3.3. Now the resource editor changes the encoding of my RC files from codepage 1252 to UTF-8. The problem is, that I have tools that need to touch and translate the RC files. This tools can't handle UTF-8…
xMRi
  • 14,982
  • 3
  • 26
  • 59
1
vote
1 answer

Python Matplotlib RC Parameters not working correctly

I am exporting matplotlib.pyplot plots to .pgf files to use them in Latex, and therefore I specify the right font family and font sizes beforhand in python. While the legend is formated correctly, the axis labels show around 2pt offset to the font…
Camill Trüeb
  • 348
  • 1
  • 2
  • 16
1
vote
0 answers

Iterate over linked structs wrapped in Rc and update them

I need to implement the A* pathfinding algorithm in Rust. The algorithm processes particular cells and links with one another using a parent_cell field. In the end, when the destination cell is found, the path is the way from the destination cell to…
Dandry
  • 495
  • 12
  • 26
1
vote
1 answer

Using Selenium RC with C# and Nunit; how to Generate test case result report?

I'm using Selenium RC with C# and Nunit, problem is Result Report. I'm not able to report test cases result, In Nunit I can execute only single DLL what if i have 4 DLL, how can I club 4 DLL result in Single report? Do some one have idea abt the…
Jhon
  • 11
  • 2