Software :: Imagemagick++ - How To Achieve Strip In C++ Code

Jan 27, 2011

when i use image magick...in command, use -strip, can remove image's verbose but c++ code, how can i do?

View 1 Replies


ADVERTISEMENT

Ubuntu :: Error - Failed To Save File ImageMagick Returned Error Code 11 Command Line

May 1, 2010

simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?

View 6 Replies View Related

Ubuntu :: Strip Down A 9.10 Installation?

Jan 7, 2010

I'm trying to strip down a 9.10 installation, which is destined to sit in the attic and act as a file/download server. Using Webmin (which is the greatest thing I have seen on Ubuntu, it rocks) I notice that the BIND process is using 5MB of memory, on an idle machine. Do I need this installed on a desktop machine ? Can folks suggest anything else I can disable/uninstall for a machine. I'm using neatx to connect to it, and Vuze as a torrent client.

View 3 Replies View Related

Fedora :: Strip Current Date With SED?

Nov 9, 2009

I have some text based reports in which I would like to strip the "Current Date" from and replace with equivalent number of empty spaces, for every occurrence.For example, here is what I need to strip:

Date: 11/09/09

If I manually run the following SED command, it works great, however I cannot seem to find a way to use the actual "date" command within SED, to get the desired results.

WORKING: sed -i -e 's/Date: 11/09/09/ /' myfile

I've been messing around with various attempts to do this using the "date" command within SED, but I just can seem to get it right. I've also attempted defining variables which call separate "date" commands for day, month, year and inject them via standard variable calling, echoing variable, expanding variable with brackets, etc... Here are a few of the SED command attempts I've tried:

Quote:

sed -i -e 'sate: `date +%D`: :' myfile
sed -i -e "s/Date: `date +%d`/`date +%m`/`date +%y`/ /" myfile
sed -i -e 's/Date: `date +%d`/`date +%m`/`date +%y`/ /' myfile
sed -i -e 's/Date: $(date +%D) / /' myfile

I need to replace it with the equivalent number of spaces, as I'm going to be overlaying a PCL Logo here and need to keep the structure of the rest of the file. Cannot have the remaining portion of the line shifting left.

View 5 Replies View Related

OpenSUSE Install :: Strip Out The # On The CLI Text Editor?

Mar 7, 2011

how can i strip out the # command in CLI on openSUSE? or the exact way of this command in ubuntu

sh -c "grep -v -e '^#' /etc/squid/squid.conf.backup | cat -s > /etc/squid/squid.conf"

View 6 Replies View Related

OpenSUSE :: Comic Strip Widget Is Too Small To Read?

Apr 5, 2010

I'm having some difficulties with the comic strip widget that I use to keep me updated on Dilbert. It started out in ok-ish size, a little small, but readable. Now the entire strip takes up 3x3 cm, totally unreadable. Is there anyway to fix that?

Here is a screeshot of it:

[URL]

View 3 Replies View Related

General :: How To Strip/trim Characters In Command Line

Mar 23, 2011

I have a bunch of files (around 900) that have some special characters. Some of the files contains example, and quoting "[useless] filename (something)"so what I want is just to strip the brackets and parenthesis, some are folders, others are text files

View 1 Replies View Related

General :: Should Jpegtran Remove More Bytes Than Mogrify Strip

Aug 23, 2011

I'm currently using mogrify -strip image.jpg to remove unwanted bytes from images, it was suggested I could remove further data by using jpegran from libjpeg, something like:

jpegtran -copy none -optimize -outfile image.jpg image.jpg

The problem I'm having - if it even is a problem - is that jpegtran doesn't seem to actually do anything that mogrify isn't already doing. In all my testing the filesize just stays the same. If I remove the mogrify part of my code and replace with jpegtran then it seems to perform the same function.

For example:

image without compression: 300k
image with mogrify -strip + jpegtran: 272k
image with mogrify -strip only: 272k
image with jpegtran only: 272k

I was under the impression though that mogrify just removed image profiles/comments and that jpegtran did this as well as losslessly compressing the image to make it smaller. Am I missing something?

View 1 Replies View Related

Ubuntu :: Strip Lucid Desktop Installation To MinimalCD?

Sep 6, 2010

I'm trying to get a minimalCD installation on a flashdrive but the installation never finishes... (i've left the installation runnin overnight for over 12hrs and only 90 percent got completed; whenever trying to retrive packages from the internet the process slows down to a crawl; i've tried ext4, ext3, ext2 and resierfs)normal Desktop insatallation works fine; so I was wondering if there is anyway to strip all the packages off a normal installation to get it to minimal installation, and than start installing the pacakges i need?

View 4 Replies View Related

Ubuntu :: Wide Black Strip In Firefox Blinks On And Off

Nov 18, 2010

If I click the mouse anywhere inside firefox browser window I get a big black strip and it blink on and off. See screen shot.Screenshot-Navigating and Working in Scribus | Linux Journal - Mozilla Firefox.jpg.I can get it to stop by doing a page reload. But it is very annoying. Has this happen to anyone else? If it has has anyone found a fix for this? While I was typing this it happen again.Screenshot.jpg

View 1 Replies View Related

Ubuntu :: Access Menu Strip When Not In Full Screen?

Aug 22, 2011

I've noticed in Ubuntu that a lot of applications like to make use of the strip of menus that go at the top of the screen; I think it's called a menu strip in Visual Studios.Anyways, the only way I can see it (that I've figured out thus far) is to drag the window to the top of my screen, thus maximizing it, then use the menu, and put it back.What I want is a less... tedious way of accessing those commands, preferably without changing my window position. Is there a trick to it? In windows, unlike Ubuntu, that strip is available regardless of window size; is there a reason it disappears in my Ubuntu?

View 1 Replies View Related

Software :: Using SED To Strip Multiple Leading Hash Symbols From A File?

Oct 28, 2010

I have a quirky situation whereby I'm using SED to selectively comment out a line in a crontab job (on Solaris, I know but it's connected to the Linux function I'm working with).

What's happening is this.

Remove hash symbol

Code:
/opt/csw/bin/gsed -i '/^.*/usr/local/scripts/mirror-fix.sh.*/ s/^#//' $TEMPFILE
Restore hash symbol

Code:
/opt/csw/bin/gsed -i '/^.*/usr/local/scripts/mirror-fix.sh.*/ s/^/#/' $TEMPFILE

The problem I'm running into is that the script can sometimes prepend an extra hash # symbol if run more than once (I have a lockfile that I poll for to discourage this, but that's not perfect).

I wonder how I can modify that sed statement to remove any/all leading hash marks up to the first other character, in this case it's a 0 (zero) which is a crontab file.

View 8 Replies View Related

Slackware :: Dhclient Does Not Strip Or Escape Shell Meta-characters

Apr 6, 2011

dhclient does not strip or escape shell meta-characters

Summary: dhclient doesn't strip or escape certain shell meta-characters in dhcpd responses, allowing a rogue server or party with with escalated privileges on the server to cause remote code execution on the client.

CVE:

ISC dhclient did not strip or escape certain shell meta-characters in responses from the dhcp server (like hostname) before passing the responses on to dhclient-script. Depending on the script and OS, this can result in execution of exploit code on the client.

CVSS Score:

For more information on CVSS scores, visit [url]

Workarounds:

On SUSE systems, it is possible to disable hostname update by setting DHCLIENT_SET_HOSTNAME="no" in /etc/sysconfig/network/dhcp.

Other systems may add following line to dhclient-script at the beginning of the set_hostname() function:

In environments where filters/acls can be put into place to limit clients to accessing only legitimate dhcp servers, this will protect clients from rogue dhcp servers deliberately trying to exploit this bug.

However, this will not protect from compromised servers.

Active exploits:

Solution:

Upgrade to 3.1-ESV-R1, 4.1-ESV-R2 or 4.2.1-P1. [url]

No patch is available for 4.0.x as it is EOL. Anyone running 4.1.x should upgrade to 4.1-ESV-R2.

Acknowledgments:

Revisions:

View 1 Replies View Related

Programming :: How To Achieve Interrupt

Jul 30, 2011

How to achieve interrupts

any sources available apart from kernel code which show the usage of code...

View 2 Replies View Related

Ubuntu :: Change The Window Scrollbars In 11.04 From The Frankly Annoying Minimalist Orange Strip?

Apr 30, 2011

Is there any way to change the window scrollbars in 11.04 from the frankly annoying minimalist orange strip to the far more user friendly large bar with clickable arrows top and bottom?

I'm using Ubuntu Classic Desktop...if I really couldn't get on with this scrollbar...would I actually have to go back to the previous OS release?

View 1 Replies View Related

Debian Configuration :: Achieve The Same Effect With CLI?

Jun 6, 2010

What GNOME does with pendrives does surprise me. It not only umounts the partitions, but also shuts the device down and turns off the power light. How do I achieve the same effect with CLI? I've tried eject but it does not cut power.

View 10 Replies View Related

General :: Achieve Passwordless CVS Updates?

Aug 19, 2011

I'm working on some code from my computer at home and would like to do CVS updates to a remote server. When I'm at work I don't need to type in a password, but at home each time I need to type in my password each time I do a CVS update. I've followed the instructions here on how to set up a passwordless public/private ssh key pair: [URL].. However, after that I still need to type in my ssh password each time I do CVS update (or anything CVS related) from my local computer.

View 1 Replies View Related

Ubuntu :: Achieve Video In FFMPEG?

Jun 13, 2010

I have a video I want to convert to another video format that's similar to another video. The video's properties and codecs as follows:

Code:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Vid.mp4':
Duration: 00:02:35.80, start: 0.000000, bitrate: 1731 kb/s
Audio: adpcm_ima_wav, 22050 Hz, stereo, s16
Video: mjpeg, yuvj420p, 128x128 [PAR 1:1 DAR 1:1], 30 tbr, 30 tbn, 30 tbc

View 1 Replies View Related

Red Hat / Fedora :: How To Achieve A Fullscreen Mode

Sep 12, 2010

I have install fedora12 in a virtual machine (oracle VBox) in a windows vista host (I know aaarg) and i can't have a fullscreen mode for the fedora I don't know, if it is cause additional features are needed for fedora or is something from the VBox and some additional features of it are needed any special arrangment is needed into the operetional parameters of the VBox.

View 2 Replies View Related

Red Hat / Fedora :: How To Achieve Syslog Rotation

Jan 25, 2011

I have configured /etc/syslog.conf for writing user level log messages, and it is working fine.

The line which i entered is: user.* /home/shekhar/obj/myjob.log

But the log file keeps increasing. I would like to rotate the log file when it reaches 100Kb.

How do i do that in red hat linux ?

View 1 Replies View Related

General :: How To Achieve This Effect Of Mouse

Jan 6, 2010

How to achieve this effect of mouse?which function or api?see the imag:http://linux.chinaunix.net/bbs/attac...Z2uSUDstxs.png

View 6 Replies View Related

OpenSUSE Install :: Green With White Veins In Background - Strip Of Black Running Horizontally

Dec 10, 2009

I can configure my software's appearance? Well, for the KDM theme, the Grub Bootsplash, i can download themes people so generously create. I however, desire the BOOTSPLASH. or whatever it is, of openSUSE 11.1. the green with white veins in the background, and a strip of black running horizontally across, with "openSUSE" written on it in white. i mean the one that masks the initial Text interface, the FIRST GUI you see after GRUB. The one that also shows when you power down. Is this a plausible endevour? I do have my 11.1 iso, in case it's stored as a theme in there.

View 6 Replies View Related

OpenSUSE :: Can't Achieve Runlevel 5 As X Can't Find Any Devices

Mar 28, 2011

I'm installing 11.4 as a guest under Citrix's XenServer. The only access to a guest's graphical desktop is via VNC.The problem is that I can't achieve runlevel 5 as X can't find any devices. With 11.3 I was able to run Sax2 and add a dummy screen device to Xorg.conf that it created.When Sax2 was removed from 11.4, what was the fall-back for configuring X?

View 5 Replies View Related

Ubuntu :: Achieve Maximum IO To Dd/cp/rsync/whatever Those Medias To Hd?

Apr 29, 2010

copy old backups from 600+ CD/DVD media to a hard disk. Machine: A desktop with 4 DVD drivers, mainboard has 4 SATA conectors and only one PATA conector. My questions are:

1. What tuning can I do to the kernel on a Ubuntu Lucid Desktop to achieve maximum IO to dd/cp/rsync/whatever those medias to hd?

2. What's the best scenario regarding HD/DVD drive connections to mainboard regarding IO/throughput?

The intention is to insert 4 medias at a time and copy them all in parallel to a local hard disk.

View 2 Replies View Related

Ubuntu :: Mount Into A Non Empty Folder / Achieve This?

Jul 19, 2010

I need to do the following things and googling didn't help much:

1.mount a volume(or windows share, whatever) into a non empty folder
2.both the original content of the folder and the content of the newly mounted volume is accessible
3.updated and newly created files can be written to the mounted volume or the original folder determined by something like a switch at mount time
4.if files with same names exist both in the folder and on the volume, then which file to be presented to the OS is determined by their last modified date/time.

any one can give a walk-through on how to achieve this?

View 5 Replies View Related

Ubuntu :: How To Achieve Building Driver And Installing It

May 27, 2010

i downloaded madwifi0.9.4 because my laptop has an atheros wifi card sadly i am new to linux so do not understand how to build a driver and just downloaded the software add-on windows wireless drivers but could not find an inf file then i see i have to build the thing myself from the kernel. well i am a win7 user wanting desperately to only have to use windows for playing games and do all my work on something more secure and would like to be able to use my laptop in a coffee shop etc.

View 6 Replies View Related

Server :: How To Achieve High Availability Website?

Apr 7, 2011

I have 2 web servers running apache hosted at 2 data centres on 2 different IP ranges.The 2 servers are an exact clone of each other hosting www.example.com.What I am trying to achieve automatic failover. Say my first data centre gets wiped out, how would customers reach my website on my second server in the second data centre by still typing www.example.com?The aim is for the customer not to notice any difference.

View 3 Replies View Related

Programming :: Achieve File Consistency While Using Mmap?

Jul 27, 2010

How can I achieve file consistency while using mmap? I have a block of code that needs synchronized access across processes (not threads). Using threads, one can regulate access to the mmaped portion of the file by locking it using a mutex. How can I achieve the same using different processes, some of which run in different programs?

View 2 Replies View Related

Programming :: Achieve Atomic Increment/decrement?

Jan 13, 2010

Is there anyway in Linux that can achieve atomic increment/decrement for an integer variable without being interrupted? It means that the thread should not chance for other thread to run until theincrement/decrement is completed.

View 11 Replies View Related

CentOS 5 :: Installing ImageMagick Without-x?

Apr 15, 2009

I'm attempting to install ImageMagick on my shiny new CentOS 5 server, but it wants to install a bunch of X libs and ALSA to get that to run.

I don't really want sound software and X installed. I see there is a configure option to install --without-x.Are there any alternatives to compiling from source? Any sort of rpm you know of that I am not seeing?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved