ubuntu-12.04

How do I start cron on docker ubuntu base?

纵饮孤独 提交于 2019-12-17 10:52:57
问题 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. 回答1: You can run

convert_tz returns null

て烟熏妆下的殇ゞ 提交于 2019-12-17 02:44:20
问题 I know this sounds stupid, but when I use SELECT CONVERT_TZ('2004-01-01 12:00:00','UTC','Asia/Jakarta') AS time it outputs NULL. I'm using MySQL Workbench in Ubuntu 12.04 64 bit, and it works in my other laptop/os (also using MySQL Workbench). 回答1: This will happen if you haven't loaded the time zone table into mysql. mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql 回答2: I found this thread after spending some time trying to figure out why after running the command in the

echo “#!” fails — “event not found”

淺唱寂寞╮ 提交于 2019-12-16 19:55:20
问题 The following fails and I don't understand why: $ echo "#!" the following also fails with the same error message: $ echo "\#!" the error message: -bash: !": event not found Why does it fail? How should the echo be done instead? 回答1: The ! character is used for csh -style history expansion. If you do not use this feature, set +o histexpand (aka set +H ) turns off this behavior. It is turned off for scripts, but often enabled for interactive use. In such cases, my personal recommendation is to

Android programming is not working in eclipse

本小妞迷上赌 提交于 2019-12-14 02:34:47
问题 My Eclipse was working fine until i updated my sdk.Then suddently everything started to show little weirder.Actyually I was working in Ubuntu 12.04 ,Which stopped showing even Java projects after updation.When I click New-->Project I can't find neither java/Android.I cant even find XML.I have done so many methods listed in some sites.But nothing is working for me.Can anyone please suggest a solution. I have even tried in windows.But same problem happened & it says " Android Development Tools

Is there a way to remove IDV Tags from an AIFF file?

对着背影说爱祢 提交于 2019-12-14 01:39:05
问题 I'm working on a backend task system for a rails application running on an Ubuntu Server. Before converting the uploaded AIFF files to FLAC, I need to strip all the possibly existing tags from it. How can I achieve that? TagLib-Ruby doesn't have that covered for AIFF at this time. Is there another gem, a command line app or something similar that my rails app could call or do I have to code that fully on my own? 回答1: kid3 is an application with both gui and command line interfaces that allows

Installing matplotlib for python3 on Ubuntu

喜欢而已 提交于 2019-12-13 19:19:04
问题 I'm running Ubuntu 12.04, and I need to use matpltlib in Python 3.2.3 . I successfully installed it using sudo apt-get install python-matplotlib But now it works only in Python 2.7, which seems to be the default version: $ python2 Python 2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib >>> But python 3 doesn't work: $ python3 Python 3.2.3 (default, Feb 27 2014, 21:33:50) [GCC 4.6.3] on

Python3: How can I find out what version of GTK+ I am using?

谁说我不能喝 提交于 2019-12-13 19:13:10
问题 I need to find out what version of GTK+ I am using. The problem is there seem to be so many different version numbers involved I am not sure which ones are most relevant. My system is Ubuntu 12.04 and comes as standard with libgtk2.0-0, but when I installed my Python 3.2 development environment I also installed a number of other packages to bind to GTK3. Most of the time this all 'just works', but I want to implement something that (in devhelp) is only available in Version 3.2 of GTK.

I cannot access to nitrogen/inets server from any machine but the localhost

自作多情 提交于 2019-12-13 17:59:57
问题 Thanks to many discussions in this forum, I found that I should be able to build the application I was planning to do for home usage based on Nitrogen. So I ran into Nitrogen tutorials, Demo and docs, and start to do some tests based on the self contained inets/nitrogen site. Everything was going well until I wanted to try to access my new website from another PC. Of course I had to tune my box first in order to route wan requests to lan... But after a day searching, reading and testing, I am

can not upgrade matplotlib to 1.3.1

♀尐吖头ヾ 提交于 2019-12-13 15:33:45
问题 The comment sudo apt-get install python-matplotlib is installing 1.1.1rc version, not the latest version. I need the matplotlib 1.3.1 for hatch fill between curves. No upgradation command found that lead to success. Nothing helpful in the web, that successfully works. Please help. Ubuntu version 12.04. 回答1: The ubuntu repositories do not contain the most recent versions. You can use pip to install the latest versions. If you don't have pip installed, use sudo apt-get install pip to install it

Installing OpenCV on Ubuntu 12.04

若如初见. 提交于 2019-12-13 14:28:10
问题 I am trying to install OpenCV 2.4.2 on Ubuntu and am running into errors as below: [ 11%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:30:0, from /usr/local/include/glib-2.0/glib.h:32, from /usr/local/include/gtk-2.0/gdk/gdktypes.h:32, from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:4, from /usr/local/include/gtk-2.0/gdk/gdk.h:30, from /usr/local/include/gtk-2.0/gtk/gtk.h:31, from