ubuntu-10.04

Kerberos fails when accessing site by IP address

半城伤御伤魂 提交于 2019-11-28 00:56:07
问题 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

Quartz job runs twice when deployed on tomcat 6/Ubuntu 10.04LTS

主宰稳场 提交于 2019-11-27 21:52:45
问题 I run a Spring Framework/SmartGWT based web-app, with now an added Quartz job. The job is supposed to run every day at 2am, and picks winners from a DB table. From my logs I see it runs twice, concurrently it seems, because as you can see, the logs overlap: Generating winners of yesterday... Generating winners of yesterday... winning id's: 15 done, mail queue is filled. winning id's: 18 done, mail queue is filled. My applicationContext.xml looks like this: <!-- initiates and calls the job -->

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

浪尽此生 提交于 2019-11-27 18:05:38
问题 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$

what is the meaning of restrict in the function signature?

跟風遠走 提交于 2019-11-27 13:47:21
问题 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? 回答1: 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

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

拜拜、爱过 提交于 2019-11-27 12:17:21
问题 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

freeTDS not using its config

五迷三道 提交于 2019-11-27 11:50:30
I've decided to use FreeTDS driver and unixODBC to manage the PDO connection between my LAMP-based app with a remote MsSQL database. unfortunately it appears that the driver doesn't read the freetds.conf file, nor the environmental variables set either directly via server's CLI or specified in php file by putenv() function. now some data: as I ping the server - no packets are lost. as I telnet the server on 1433 port - the connection is established as I use the command TDSVER=7.0 tsql -H >IP< -p 1433 -U username I am prompted to enter password and connection is established. without the TDSVER

Difficulties installing mysql gem on Ubuntu

我是研究僧i 提交于 2019-11-27 10:26:04
问题 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

How to grep '---' in Linux? grep: unrecognized option '---'

允我心安 提交于 2019-11-27 05:54:30
问题 I have a newly installed web application. In that there is a drop down where one option is --- . What I want to do is change that to All . So I navigated to application folder and tried the below command. grep -ir '---' . I end up with below error. grep: unrecognized option '---' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Given that I'm using Distributor ID: Ubuntu Description: Ubuntu 10.04.4 LTS Release: 10.04 Codename: lucid How to grep '---' in Linux

What is the valid range for program return value in Linux/bash? [duplicate]

非 Y 不嫁゛ 提交于 2019-11-27 05:34:27
This question already has an answer here: Return value range of the main function 7 answers I have a C program which returns an integer value. I was surprised to find out that when examining the return value from the shell prompt I get the value modulo 256. /* prog.c */ int main(...) { return 257; } -- > ./prog.e > echo $? 1 Why don't I see the whole integer? Where is this behavior documented? How can I get the whole 32-bit value to the shell? When a program exits, it can return to the parent process a small amount of information about the cause of termination, using the exit status. This is a

How do I run the Android Emulator after a Build?

橙三吉。 提交于 2019-11-27 02:57:38
问题 So I have download the source code successfully, built it successfully, and can run the emulator successfully. However it never boots into the actual image. Instead I look at the terminal and it gives me the following error. OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2deae10 OpenGL Warning: Retry with 0x105 returned 1 visuals Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. destroyOpenGLSubwindow not implemented