when I finished compiling qt4, I typed gmake install-strip but it doesn’t work either it says” no rule to make target “install-strip” how to solve this problem? Whether I should add some configure options? Answer Just do a make install , it will strip release-mode libraries itself auto…
Tag: linux
Delete files with string found in file – Linux cli
I am trying to delete erroneous emails based on finding the email address in the file via Linux CLI. I can get the files with find . | xargs grep -l email@example.com But I cannot figure out how to delete them from there as the following code doesn’t work. rm -f | xargs find . | xargs grep -l email@exam…
How to download images from “wikimedia search result” using wget?
I need to mirror every images which appear on this page: http://commons.wikimedia.org/w/index.php?title=Special:Search&ns0=1&ns6=1&ns12=1&ns14=1&ns100=1&ns106=1&redirs=0&search=buitenzorg&limit=900&offset=0 The mirror result should give us the full size images, not the …
real estate linux back up solution [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
How to obtain the path of Desktop in gnome
I am using gnome/Ubuntu-10.10 in Chinese language and the desktop path is not “~/Desktop” but “~/XXXX” where XXXX stands for the Chinese translation of “Desktop”. So, how to write code to obtain the proper path of desktop regardless of the system language? I noticed Qt SDK …
Linux folder change auto notification
Is there a way that I can programmatically figure out whether a particular file with certain characteristics is being added into say the linux /tmp folder. All I need to create, is a small script that is automatically called every time a new file is added in the tmp folder. Answer These links might be helpful…
MySQL the command line and pagers
I cant find anything about this from searching here. I use mysql on the command line at work and I work with fairly large tables so I set the mysql pager allowing a more readable result if I run a query, that returns 1000’s of results. I use the command below to set the pager. This suits my needs but
Resetting an ostream, C++
I have 2 different ostreams, one of them cerr, using the same streambuffer, I have some libraries in that might have modified cerr somehow,(flags? format modifiers?). prints: Debugging mystreambuffer I’ve noticed that cerr calls mystreambuffer->sync() every << operation while teststream does no…
How to untar all .tar.gz with shell-script?
I tried this: If the folder has one tar, it works. If the folder has many tar, I get an error. How can I do this? I have an idea to run a loop to untar, but I don’t know how to solve this problem Answer
Generate a value to reflect the average brightness of an image
I need to determine if an image is above a certain brightness. Using a scale of 0 – 255 I want to generate a value within this range to reflect the image brightness. i.e. a white image is 255 and a black image is 0. All this needs to take place via a bash script I am building up at