x11

Can't display png

自闭症网瘾萝莉.ら 提交于 2019-12-21 10:00:36
问题 I'm running R-shiny (R version 3.0.1 (2013-05-16)) on a VM (Red Hat Enterprise Linux Server release 6.4). Everything works, i.e., server starts up, and application runs etc... as long as I don't try to plot a graph renderPlot I then see on the main panel a message [error : unable to start device png]. I would post my whole code but this problem I think has to do with rendering plots as when I use renderText and spit out some data it works just fine. Actually when I just type in png() in R I

How to get a num lock state using C/C++?

孤者浪人 提交于 2019-12-21 05:47:15
问题 I have read Gdk forum link which says that getting num lock state api is implemented since version 3.0. But I am using version 2.4 and I cannot update to version 3.0 as I need to support lower Linux version. Here is the discussion link: http://mail.gnome.org/archives/commits-list/2010-July/msg00259.html SO, is there any other way to get the num lock state using internal Linux command? Regards, iSight 回答1: Sample code to get the NumLock state. Let foo.c be: #include <stdio.h> #include <X11

In Vim, is there a way to copy the current line number into a buffer?

China☆狼群 提交于 2019-12-21 04:32:25
问题 When using gdb and Vim, often I want to stop on a particular line. Normally in Vim I copy-paste the line number showing on the rule area to the gdb session. It'd save me a lot of hassle if I could use something like "+<magic-incantation> to copy the line number of the current cursor position into the xclipboard buffer. Is this possible? 回答1: put this in your vimrc map ,n <Esc>:let @*=line(".")<CR> then using , n will copy the current line number into the clipboard 回答2: So the magic line is:

Could not find any X11 fonts error

只愿长相守 提交于 2019-12-21 04:14:32
问题 I am starting to get into R development and I was following a tutorial that in a certain point opens the "X11" to display graphics but when that window opens I get the following error: Error in axis(side = side, at = at, labels = labels, ...) : could not find any X11 fonts Check that the Font Path is correct. In addition: Warning messages: 1: In function (display = "", width, height, pointsize, gamma, bg, : locale not supported by Xlib: some X ops will operate in C locale 2: In function

XIO: fatal IO error 11

与世无争的帅哥 提交于 2019-12-21 03:34:14
问题 Yes, this question has been asked before, but reading the answers didn't enlighten me much. I wrote a C program that crashes after a few days of use. An important point is that it does NOT generate a core file, even though everything is set up so that it should (core_pattern, ulimit -c unlimited, etc. I can trigger a core dump fine with kill -SIGQUIT). The programs extensively logs what it does, but there's no hint about the crash in the log. The only message displayed at the crash (or before

embedding an application (in this case a terminal) within a QT application

久未见 提交于 2019-12-21 01:25:11
问题 I am writing a QT application and I need to embed a terminal (we say,xterm) within a QDialog, like some KDE application (see kdevelop/kate/...). I've been trying with: - QX11EmbedContainer placed into the QLayout of my QDialog - QProcess for the program I want to excecute I expect the QProcess running within the QX11EmbedContainer, but it does not work. The problem is that I can't put the xterm into the QX11EmbedContainer, the only thing I obtain is an xterm window (unfortunately separated

How can I launch an x-window from emacs ess when running R on a server?

元气小坏坏 提交于 2019-12-20 16:41:33
问题 I am using emacs-snapshot with the ssh.el package, following the instructions from the ess manual. There are a few ways to open an R session, but this is how I do it: open emacs C-x C-f /server:dir/file.R this puts me in ESS [S] mode Type 'plot(1)' C-c C-n to run emacs asks for starting directory, and I choose the /server:dir/ I would like for a figure to pop up but it wont. This also doesn't work when using ess-remote in shell or tramp mode, but it does work if I set the starting directory

X11/GLX - Fullscreen mode?

自闭症网瘾萝莉.ら 提交于 2019-12-20 12:06:19
问题 I am trying to create a Linux application - a screensaver, in this case - and it is proving remarkably difficult to find information on the simple task of making a window full-screen. Even the code of existing screensavers makes no mention of how they manage it, and I've yet to see any obvious function like XRemoveDecoration() . After much fumbling around, I did manage to create a window that's the same size as the desktop, with this: Window win = DefaultRootWindow(disp); XWindowAttributes

PuTTY X11 proxy: Unsupported Authorisation Protocol [closed]

ⅰ亾dé卋堺 提交于 2019-12-20 11:56:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I get the following error if I login as root; if I login as admin user, then x11 starts with no problems. Ubuntu 14.04 Xming server 2.0 running on Windows 8.1 PuTTY X11 proxy: Unsupported authorisation protocol java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment at java.lang

Opening a fullscreen OpenGL window

ⅰ亾dé卋堺 提交于 2019-12-20 10:47:22
问题 I am tring to open an OpenGL full screen window using GLFW on linux red-hat. I have a desktop that spans two monitors with total resolution of 3840*1080. I have two problems: 1. The window is opened just on one monitor with maximum window width of 1920 (the width of a single monitor). 2. The maximum height of the window is 1003 (which I think is the height of the screen minus the height of the task bar and the top bar). This is the code I use to open the window: if (glfwInit() == GL_FALSE)