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
4
votes
1 answer

Cannot execute python script on Raspberry Pi startup

I'm having problems with starting a python script on Raspberry Pi boot. I have read many threads and tried some tricks, however, none of them worked for me. The file I am trying to execute is named test.py, it just logs a time to another file, when…
Kaki
  • 93
  • 1
  • 7
4
votes
2 answers

inputrc file cannot be loaded

I just figured out we can create a ~/.inputrc file to define keyboard mappings. But I don't know how to load it. I tried to source it but I get a 'set Syntax Error' immediately. I copied the ~/.inputrc file from here:…
user1861088
  • 1,683
  • 2
  • 15
  • 17
4
votes
1 answer

What's the difference between DI_ICON1 and IDI_ICON1?

I'm working on a Windows app that needs to run on XP, Vista, 7, and 8. I'm trying to set the application icon, and it works, using DI_ICON1 as the tag in my RC file: DI_ICON1 ICON DISCARDABLE "myapp.ico" Using IDI_ICON1 didn't seem to do the right…
AndrewS
  • 8,196
  • 5
  • 39
  • 53
3
votes
3 answers

CMake doesn't find windres.exe (MingW), CMAKE_RC_COMPILER

is there any specific reason why CMake doesn't find windres.exe from MingW as the RC compiler? The MingW dir is in my PATH variable, windres.exe does exist. I always have to set the CMAKE_RC_COMPILER variable by hand to windres.exe in the cmake…
blubberbernd
  • 3,641
  • 8
  • 35
  • 46
3
votes
2 answers

How can I use a resource file (*.rc) to style a dialog-based application

How can I use a resource file (*.rc) to style a dialog-based application? I can use CreateWindow or CreateWindowEx to create the main window of an application. And some of the arguments of CreateWindow or CreateWindowEx define the styles of a…
fr33m4n
  • 542
  • 2
  • 13
  • 31
3
votes
0 answers

Starting a Python script using rc-service

I am trying to make rc-service start a Python script on startup (Alpine Linux). I have made a simplified example just to get things to work, but no luck. I have added local to the default run-level, and I have two files in /etc/local.d/ - both owned…
henrikstroem
  • 2,978
  • 4
  • 35
  • 51
3
votes
1 answer

How can I set the size of a Win32 dialog in pixels?

I am trying to get a Win32 dialog that is 500x520 px, but in my .rc file, these settings get me a bigger window than I expected. IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 500, 520 STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU |…
olilarkin
  • 460
  • 6
  • 17
3
votes
1 answer

C++ Could not find compiler set in environment variable RC

I'm trying to compile a C++ program with clang using cmake, but I get the following error: > CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineRCCompiler.cmake:20 (message): Could not find compiler set in environment…
Tóth Attila
  • 149
  • 1
  • 1
  • 10
3
votes
2 answers

Invoke Mercurial without loading global and user configs

I'm writing some unit tests that call out to Mercurial, and I'd like to ensure the tests don't rely on any local state of the machine. I know I can override certain config values, e.g.: hg --config ui.username='Test Account…
dimo414
  • 47,227
  • 18
  • 148
  • 244
3
votes
1 answer

Increment matplotlib string font size

I am looking to increment the plot title font size, by bumping it from e.g. medium to large. My plots are getting their base font size as well as modifiers from a matplotlibrc .conf file. This is commonly expressed like so: font.size :…
TheChymera
  • 17,004
  • 14
  • 56
  • 86
3
votes
2 answers

Include file behave differently using RC.EXE or BRCC32.EXE to build *.rc files

I wish to using dot (.) as resource entry in RC files for my Delphi project. However, Delphi's BRCC32.exe doesn't allow dot (.) in resource naming. Since Delphi 2010, we may specify "Resource Compiler to use" in Project | Option | Resource…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
3
votes
2 answers

Screen not starting from rc.local

I have a problem where I am unable to start a screen session at boot using the rc.local file. The specific screen I am starting is for a spigot minecraft server. This is my rc.local file: #!/bin/sh -e # # rc.local # # This script is executed at the…
Sofus Øvretveit
  • 323
  • 1
  • 3
  • 10
3
votes
0 answers

How to use GTK RC files in GTK2

This is my code: int main(int argc, char *argv[] ) { gtk_init(&argc, &argv); GtkWidget *window; GtkButton *button; gtk_rc_parse("style.rc"); window = gtk_dialog_new(); gtk_widget_set_name(window, "window"); …
user7554160
3
votes
1 answer

Convert Data Frame to Reference Class object in R

I am trying to convert a data frame in R to a reference class object. Sorry I am an R newbie but I am unable to find the answer to this anywhere! The class is defined as follows: LongitudinalData <- setRefClass( "LongitudinalData", fields =…
user3500717
  • 41
  • 2
  • 5
3
votes
2 answers

What would be a walkaround for JavaScript alerts that are generated in a page's onload() using Selenium?

I am automating a form page using Selenium RC (C#). After I click 'Submit' button, I get an alert 'Records Edited Successfully!'. The title of this alert box is 'The page at http://www.******.com says:'. But Selenium doesn't see this alert. And I…
Prostak
  • 3,565
  • 7
  • 35
  • 46
1 2
3
17 18