I'm working on some old code and I found that I used to use
sed -E 's/findText/replaceWith/g' #findText would contain a regex
but I now try
sed -e 's/findText/replaceWith/g'
It seems to do the same thing, or does it?
I kinda remember there being a reason I done it but I can't remember and doing "man sed" doesn't help as they don'...
Hi, i am not really getting an idea on how a .bin file is being created. The JDK for Linux platform ships in the form of binary executable file (jdk-6u20-linux-i586-rpm.bin); how can one create such deliverable for their own project? Please give me some directions.
Thanks,
-Vijay
...
server01:/# ps -ax | grep java
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
7342 pts/3 Z 0:00 [java] <defunct>
7404 pts/3 S+ 0:00 grep java
server01:/# kill 7342
server01:/# ps -ax | grep java
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
7342 pt...
hi ,
HI
Im Dileep, from india. Im computer science student
I have been using pdf shuffler for merging pdf documents for my
project purposes. The software is very useful and provides a simple
interface . Now i feel to make a simple modification to the software
which will make it more useful to me
At the time of importing now whole pdf...
Hello,
i have an problem with modprobe command...i compiled the hello world module and inserted using "insmod" command...and its working..when i see "lsmod" its in that list...but when i insert this module using "modprobe" i am getting the FATAL error....that is
root@okapi:/home/ravi# modprobe ./hello.ko
FATAL: Module ./hello.ko not f...
I want to suspend pthreads but apparently, there is no such function as pthread_suspend. I read somewhere about suspending pthreads using mutexes and conditions and used it as following:
#include <pthread.h>
class PThread {
public:
pthread_t myPthread;
pthread_mutex_t m_SuspendMutex;
pthread_cond_t m_ResumeCond;
void start() {
pthread...
Hi,
The question is in the title =)
...
How can i change values in the binary plist under linux os?
I know i can to it under mac with defaults or PlistBuddy.
I found some perl that convert from binary to text Mac::PropertyList::ReadBinary
...
I am porting a C++ large project form Windows to Linux. My C++ files include header files that do not match those on the project directory due to the case sensitivity of file names in Linux file systems.
Any help?
I would prefer finding a flag for gcc (or ext4 file system) to manual editing or sed'ing my files.
Thanks for all!
...
I have a springframework web application that uses JBoss, MySQL and ActiveMQ.
At the moment, I have to install and configure JBoss, MySQL and ActiveMQ and JBoss manually.
What is the best way to package the application so a user can maybe do a one click install (on Linux platform, maybe Windows too?)
...
You can split a pipe using the tee command under linux as follows
printf "line1\nline2\nline3\n" | tee >(wc -l ) | (awk '{print "this is awk: "$0}')
which yields the output
this is awk: line1
this is awk: line2
this is awk: line3
this is awk: 3
My question, is that order of printing guaranteed? Will the tee split pipe that counts th...
I have two bash scripts that are almost identical. One works and one doesn't and I can't figure out what's going on. Here are the scripts:
This one works fine:
#!/bin/bash
CURDIR=$HOME/Documents/Development/road/Earthmoving
TOL=0.05
echo -e "\nRunning Unit Tests"
echo -e "------------------\n"
for infile in $CURDIR/utest/*.csv
do
...
So I have a bit of an issue. I work for a small startup (about 8 developers) and my boss recently decided that we need to put the owner of each file in the documentation. So I have been try to write something using svn blame and file to loop through every php file and see which files have my username on more that 15 lines, but I haven't ...
I'm wondering if anyone has an elegant solution to checking for a valid kerberos ticket using python. I'm not seeing anyway with kinit or klist that will show if a ticket is expired with a return code.
I could run klist and use a regex for the output but... Thanks much!
...
I haven't been paying attention for a while, but I just checked and the latest release of MySQL is at 5.5.
I always use what the vendor of whatever OS I'm using provides, which has been 5.0 or 5.1 for the last couple years.
This page lists two community versions, 5.1 and 5.5: http://dev.mysql.com/
There is documentation for 5.0, 5.1, ...
I do have a custom authentication mechanism which is written in Java. I was wondering what would be the best way to implement a Linux PAM module without rewriting the code in C?
I am aware of this list of available PAM modules but none of them are Java-related.
There's also JPam but it does the opposite thing: it allows to get user/gro...
I am running R on a multiple node Linux cluster. I would like to run my analysis on R using scripts or batch mode without using parallel computing software such as MPI or snow.
I know this can be done by dividing the input data such that each node runs different parts of the data.
My question is how do I go about this exactly? I am ...
I am trying to install a build agent on linux for teamcity. I downloaded the buildAgent.zip file and extracted it. I renamed the buildAgent.dist.properties file to buildAgent.properties as instructed by the teamcity documentation. I edited the file with the server url and the port number i will be using(ex: 150). On the teamcity serv...
How do I copy foreign characters (like Chinese, German, etc) from my browser into Putty (Emacs)?
...
I was recently building a certain shared library (ELF) targeting x86-64 architecture, like this:
g++ -o binary.so -shared --no-undefined ... -lfoo -lbar
This failed with the following error:
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
Of course, it means I nee...