ubuntu-12.04

Editable .pdf fields disappear (but visible on field focus) after save with evince

强颜欢笑 提交于 2019-11-28 01:48:29
问题 First off, let me thank the SO community for helping me so many times in the past; you guys are an amazing resource! At my job I work on a web application that uses PDF templates created in Scribus and the iText Java library to populate the templates with data from our database. Sometimes, a user-supplied field is required and not touched by iText. When the .pdf is downloaded, a field is edited, and a copy is saved with Evince the resulting file will not display the edited text upon reopen.

error: iostream.h due to including cplex

两盒软妹~` 提交于 2019-11-28 01:05:41
问题 I am trying to use cplex in eclipse in Ubuntu 12.04 but when I include ilocplex.h I get the following error /opt/ibm/ILOG/CPLEX_Studio124/concert/include/ilconcert/ilosys.h:360:22: fatal error: iostream.h: No such file or directory The only two includes are written as follows: #include <ilcplex/ilocplex.h> #include <iostream> I would appreciate if anyone could help me with this. 回答1: At the time ILOG's Concert library was first released, the older iostream.h headers were still common in C++

FreeTDS working, but ODBC cannot connect

99封情书 提交于 2019-11-27 23:05:12
问题 I am trying to run connect to a MSSQL server from an Ubuntu 12.04 webserver with FreeTDS and unixODBC. Using tsql i can connect to the server with ~$ tsql -S dbs3 -U <username> -P <password> No problem there. When I try to connect with isql however, I get the following error message: ~$ isql -v database3 <username> <password> [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [01000][unixODBC][FreeTDS][SQL Server]Unknown host machine name. [ISQL]ERROR: Could not SQLConnect

Can't OPEN Eclipse in Ubuntu 12.04 - java.lang.UnsatisfiedLinkError: Could not load SWT library

房东的猫 提交于 2019-11-27 21:00:18
问题 I have installed Ubuntu 12.04 newly. Also i installed Java 7. I try to install eclipse-java-indigo-SR2-linux-gtk.tar.gz. i extracted this file in /home/ramprabhu location. Then i try to run eclipse executable file. I got error as see the log file. My log file: !SESSION 2012-06-10 22:47:35.959 ----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.7.0_04 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework

OpenGL & GLSL 3.3 on an HD Graphics 4000 under Ubuntu 12.04

丶灬走出姿态 提交于 2019-11-27 19:48:34
I'm running that configuration : Ubuntu 12.04 Intel HD Graphics 4000 glxinfo give me that parameters: OpenGL renderer string: Mesa X11 OpenGL version string: 2.1 Mesa 8.0.4 OpenGL shading language version string: 1.20 OpenGL extensions: My goal was to run OpenGL 3.3 (and so GLSL 3.3). If I'm easy with development issues, I'm lost in hardware and drivers, so does someone knows a way to achieve that with my configuration? Unfortunally at this moment it looks like this is not possible, since the open source drivers provided by Intel are the only available. There is a version newer than yours

java.lang.Exception: No runnable methods exception in running JUnits

帅比萌擦擦* 提交于 2019-11-27 18:28:59
I am trying to run the JUnit on my Linux command prompt /opt/junit/ contains the necessary JARS(hamcrest-core-1.3.jar and junit.jar) and class files and I am using the following command to run the JUnit: java -cp hamcrest-core-1.3.jar:junit.jar:. org.junit.runner.JUnitCore TestRunner TestJunit class: import org.junit.Test; import static org.junit.Assert.assertEquals; public class TestJunit { @Test public void testAdd() { String str= "Junit is working fine"; assertEquals("Junit is working fine",str); } } TestRunner: import org.junit.runner.JUnitCore; import org.junit.runner.Result; import org

How to connect with host PostgreSQL from vagrant virtualbox machine

你。 提交于 2019-11-27 18:19:17
I have a VirtualBox machine running Ubuntu 12.04 in a Mac OS X host machine. In my host machine (Mac OS X), I have PostgreSQL installed. I would like to connect to this PostgreSQL server from my Ubuntu virtual machine (I know normally it's the opposite way). I guess I should configure some networking parameters in VirtualBox itself. All I get from Vagrant docs is I need to assign my vm a static IP to use a private network. But once created, how do I reach my host from my guest? I didn't find anything like that in vagrant docs. So, there's probably a good reason for that. Does it make sense? I

Python.h missing from Ubuntu 12.04

南笙酒味 提交于 2019-11-27 18:04:47
I am very new to python.I installed an openflow controller on my Linux PC (Ubunutu 12.04) called RYU using: sudo pip install ryu I was trying to run a python file using ryu-manager as shown below. sudo ryu-manager simple_switch.py Traceback (most recent call last): File "/usr/local/bin/ryu-manager", line 19, in <module> import gevent ImportError: No module named gevent Then I tried to install gevent using: sudo pip install gevent gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gevent/core.c -o build/temp.linux-x86_64-2.7

g++ 4.7.1 compilation error : conflicting types for ‘strsignal’

↘锁芯ラ 提交于 2019-11-27 17:58:16
问题 I'm trying to compile g++ 4.7.1 from source on Ubuntu 12.04 32 bits. For the moment I've exactly done that : https://askubuntu.com/questions/168947/how-to-upgrade-g-to-4-7-1 Except just before the compilation of g++ 4.7.1 it asks me to "unset LIBRARY_PATH" (so I've done that). So the compilation starts, and after a while I have the following error message : In file included from ../.././gcc/c-lang.c:24:0: ../.././gcc/system.h:499:20: erreur: conflicting types for ‘strsignal’ /usr/include

How do I start cron on docker ubuntu base?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 13:27:13
I have installed cron via apt-get install cron Trying to start cron fails (as expected) because of upstart not running. What is the command line for starting cron properly (i.e. it will read users' crontabs, will read /etc/crontab/* etc)? Please note that I do not want to start the container as a "full" machine, so I don't want to run /sbin/init or upstart . I manage the processes via supervisord , so what I 'm missing is the command line to add to its configuration file. You can run cron without daemon mode. root@xxxxxx:~# cron -f I was just trying to test it: I started /bin/bash in a new