ubuntu-10.04

Kerberos fails when accessing site by IP address

流过昼夜 提交于 2019-11-29 10:58:46
Problems appear when accessing Kerberos protected site by IP address. For example: http:/10.10.1.x:3001/ gives failure. http:/my-host:3001/ sso is completes successfully. Apache error logs say: src/mod_auth_kerb.c(1261): [client 10.10.1.x] Acquiring creds for HTTP@10.10.1.x [client 10.10.1.x] gss_acquire_cred() failed: Unspecified GSS failure. Minor code may provide more information (Key table entry not found) src/mod_auth_kerb.c(1261): [client 10.10.1.x Acquiring creds for HTTP@my-host [debug] src/mod_auth_kerb.c(1407): [client 10.10.1.x] Verifying client data using KRB5 GSS-API [debug] src

Illegal pattern character 'Y' on Ubuntu

强颜欢笑 提交于 2019-11-29 09:24:12
I use this pattern SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); in windows and it works, but when try on Ubuntu 10.04 it show an exception play.exceptions.JavaExecutionException: Illegal pattern character 'Y' . I search for solution for this and found the year pattern must be change to lower-case: SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); and it works. Can anyone can tell me the reason behind this why in Windows works but in Ubuntu didn't work if I use 'Y' instead of 'y'? Note: Play-1.2.3 JRE: Windows: java version "1.7.0_03" Java(TM) SE

Question about INADDR_ANY

流过昼夜 提交于 2019-11-29 07:44:21
The constant INADDR_ANY is the so-called IPv4 wildcard address. The wildcard IP address is useful for applications that bind Internet domain sockets on multihomed hosts. If an application on a multihomed host binds a socket to just one of its host’s IP addresses, then that socket can receive only UDP datagrams or TCP connection requests sent to that IP address. However, we normally want an application on a multihomed host to be able to receive datagrams or connection requests that specify any of the host’s IP addresses, and binding the socket to the wildcard IP address makes this possible.

Executing 32 bit code under Ubundu 64 bit installation error- No such file or directory

若如初见. 提交于 2019-11-29 04:09:01
Why I am getting "No such file or directory" error when I am running 32 bit executable in a 64 bit Ubundu installation? What I expect is : A message that "file is invalid", OR the 32 bit code get run correctly. Details below: user@user-desktop:~/32_64$ ls myfile32bit myfile64bit user@user-desktop:~/32_64$ file myfile32bit myfile32bit: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped user@user-desktop:~/32_64$ file myfile64bit myfile64bit: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked

Is there a (Linux) g++ equivalent to the /fp:precise and /fp:fast flags used in Visual Studio?

痴心易碎 提交于 2019-11-29 03:53:06
Background: Many years ago, I inherited a codebase that was using the Visual Studio (VC++) flag '/fp:fast' to produce faster code in a particular calculation-heavy library. Unfortunately, '/fp:fast' produced results that were slightly different to the same library under a different compiler (Borland C++). As we needed to produce exactly the same results, I switched to '/fp:precise', which worked fine, and everything has been peachy ever since. However, now I'm compiling the same library with g++ on uBuntu Linux 10.04 and I'm seeing similar behavior, and I wonder if it might have a similar root

fabric appears to start apache2 but doesn't

和自甴很熟 提交于 2019-11-29 01:54:11
问题 I'm using fabric to remotely start a micro aws server, install git and a git repository, adjust apache config and then restart the server. If at any point, from the fabfile I issue either sudo('service apache2 restart') or run('sudo service apache2 restart') or a stop and then a start, the command apparently runs, I get the response indicating apache has started, for example [ec2-184-73-1-113.compute-1.amazonaws.com] sudo: service apache2 start [ec2-184-73-1-113.compute-1.amazonaws.com] out:

Help installing static binary for wkhtmltopdf

余生颓废 提交于 2019-11-28 23:06:59
问题 I am trying to use the static binary of wkhtmltopdf on Ubuntu server 10.0.4. The reason for is that it apparently has a built in modified QT that will allow me to run wkhtmltopdf without an X Server. Result: Once installed (see steps below), when I execute wkhtmltopdf in the terminal, it does not fire up... just returns me to the prompt - like it ran and did something, no error but no output: :/usr/bin$ wkhtmltopdf :/usr/bin$ Same behavior if I put args: :/usr/bin$ wkhtmltopdf http://www

what is the meaning of restrict in the function signature?

断了今生、忘了曾经 提交于 2019-11-28 21:12:49
int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg); I would like to know what the meaning of restrict is? It's something introduced in C99 which lets the compiler know that the pointer passed in there isn't pointing to the same place as any other pointers in the arguments. If you give this hint to the compiler, it can do some more aggressive optimizations without breaking code. As an example, consider this function: int add(int *a, int *b) { return *a + *b; } Obviously, it adds two numbers from pointers. We can

Ubuntu: change the path from OpenJDK 6 to Oracle JDK 7

我只是一个虾纸丫 提交于 2019-11-28 19:22:49
After downloading the latest .tar file I ran tar zxvf jdk-7u45-linux-x64.tar.gz to extract java files. Set the path in .bashrc file ( vi ~/.bashrc ) as below; export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_45/bin/java export PATH=$PATH:/usr/lib/jvm/jdk1.7.0_45/bin export JDK_HOME=/usr/lib/jvm/jdk1.7.0_45 export JRE_HOME=/usr/lib/jvm/jre1.7.0_45 Now, running command java -version or which java, java PATH still pointing to the older java version ( java version "1.6.0_27" ). I know default ubuntu takes OpenJDK path. I have to change the path as latest version as my system environment variable set in

Difficulties installing mysql gem on Ubuntu

微笑、不失礼 提交于 2019-11-28 17:24:25
I am trying to install the mysql 2.8.1 gem. I would be using it to build a Rails 2.0.2 application on Ubuntu 10.04. I would be using Ruby 1.8.7. I have installed the development dependencies(other gems). For some reasons I am unable to install it. I am not able to exactly figure out how to fix it. Please help!! I get the following in the terminal when I try to install it: mohnish@pc146724-desktop:~/Downloads$ sudo gem install mysql-2.8.1.gem Building native extensions. This could take a while... ERROR: Error installing mysql-2.8.1.gem: ERROR: Failed to build gem native extension. /usr/bin