Spaces and commands in Linux

Hello,
I have a String command, representing a command in Linux. There are some filenames which have spaces. So what I do is I replace them with "\ " (the linux escape character).
But when I try to run the command with
Runtime.getRuntime().exec(command)/code]
Nothing happens. In the terminal the same command works ok.
What is wrong?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

When using a String[] it gives back an IOException, saying it cannot find the file.
I have tried all ways I can think of, even paths without a single space, but it doesn't work.
2 examples, one using String[] and one using String:
First one
String[] command = new String[1];
command[0] = "/usr/bin/oggenc /home/raven/1.wav"
Runtime.getRuntime().exec(command[0]);Gives an IOException.
Second one:
String command;
command = "/usr/bin/oggenc /home/raven/1.wav"
Runtime.getRuntime().exec(command);Works as long as there are no spaces in the path of the wav file...
Any suggestions?

Similar Messages

  • ___Why does my command/shift space and shift key stop working?

    ___Why does my command/shift space and shift key stop working?
    For no apparent reasoon, some key combos like shift to keep aligned or command/shift space to zoom stop working - why is that?

    http://forums.adobe.com/message/2657882#2657882

  • Shortcuts broken (Space and some of command + ...)

    Hi,
    I've read some other people got a similar problem. But the solutions there didn't help.
    So here's my problem: Last Sunday, out of a sudden, space to play and command+z stopped working. they always used to work proberly, i don't know what happend... any ideas?
    strange part: i use the swiss german keyboard layout - if i change it to german, all the shortcuts work again.
    ... and i hope anyone got a solution that not sais: "just use the german keyboard" - cuz erm it must work, cuz it used to work before
    cheers and thanks for your help...
    ptfo

    I would suspect that this is an OS problem, not a fcp problem. Can you test this behavior in any other programs that use these keys and keycombos?
    You might go to system preferences: keyboard and mouse: keyboard shortcuts: and click "restore defaults."
    Also, try creating a new user in accounts. See if that makes a difference. Please post back and let us know if anything has helped.
    Message was edited by: Michael Grenadier

  • Linux Mint 17, migrated from Win7: Verify that you have enough disk space, and that you have write privileges to the file system, then try again.

    I get this error message (The messages could not be filtered to folder 'Generic Folder' because writing to folder failed. Verify that you have enough disk space, and that you have write privileges to the file system, then try again.) popping up on many, though not all of my incoming filters. I recently migrated from a Windows 7 installation to a Linux Mint 17 system.

    I did give it time to run through everything when I initially migrated, and it frequently will sit open for 3 to 4 hours while I'm working on other projects.
    The 'Generic Folder' represents sorting folders in my main mail account in Thunderbird. For example, my mail which is listed to filter into my 'Amazon' folder is sorted there with no problem, while any mail designated to be filtered into my 'Games' folder prompts the above error massage.

  • Installing 11i apps on windows xp and Red Hat linux AS 3.0

    Hi,
    I am a newbie to Oracle E-business suite............i will be very helpful if anybody could help me with the full procedure on how to install Oracle apps on windows on Windows XP and Red Hat linux AS 3.0.........starting with configuring ip.....i would really appreciate if somebody helps me out...........well thanks in advance..waiting for a optmistic reply...
    Thanks again,
    Virendra

    I have done installation on XP and 2000 servers are heres the steps... detailed ones. I also request those who install Oracle Apps 11i to first read the installtion pdf's which helps you understand clearly the prerequisites overall.
    You cannot find the Pre installtion steps(such as Mks Toolkit and GNUMake config) in more clear terms from those documents.Which are explained here.
    The Must PDF's to refer before installation
    1)r1152ins.pdf
    2)11iconcepts.pdf
    According to the 11iconcepts PDF you can decide your business needs the N-Tier Architecture and Database Server and Application Tier Server File System in a very clear terms.
    The installation process can be divided into
    Pre Installtion,Installation and Post-Installation stages.
    I would caution everyone to concentrate more on Pre Installation stage and which is more critical for a successfull installtion of Oracle Apps and to be free with later cropping up problems.
    Further before moving into Installtion stages i have to Explain the Number of CD's and Installtion type's in Oracle App's.
    In many places you may need to wait patiently even more than 10 minutes for screens(Dialog Boxes) to appear dont conclude prematurely some problem on system.
    In oracle Apps 11.5.1 it consist of 12 CD's.
    1) Start Here CD(RAPID Installation Wizard)
    2)1-11 CD's
    1-3 Application Top information
    4th Oracle DB
    5-6 IAS and other tools
    7-11 Oracle Apps DB.
    You have to decide whether you are going to do a Single Node Installation(No Post-Installation Task) or Multi Node Installation. Refer(r1152ins.pdf)
    While installing for Multi Node you can see the Installation locations to be mentioned as
    Appl_Top,Common_Top,Data_Top etc.Try to install Appl_top and common_Top in one drive and Data_Top in another Drive(Single Node) and in different nodes in Multi Node installation.
    Installation Types
    Production ==>Real time Env implementation's
    Test ==>For test Env Purposes
    Vision Demo==>R&D or learning Purposes.
    Pre-Installation steps
    ======================
    Space Requirement for types of installtions
    Install VC++
    How to Download and install MKS tool Kit
    How to Download and Configure GNUMAKE
    Env path setting
    Create Applmgr user in Win2000
    Space Requirement for types installtion:
    Memory Requirement
    1 GB of RAM(512 Fine for initial Installtion)
    but planned for more user connections another 1 GB of Ram and according to the number of user's and Application needs you have to Increase the Memory.
    HDD capacity
    APP_Top(A)
    COMMON_TOP(C)
    DATA_TOP(D)
    Test DB : 22 + 20 GB (60 GB recommended)
    Prod DB : 22 + 20 GB (60 GB recommended)
    Vision Demo DB: 22 + 35 GB (80 GB recommended).
    Plus space for ur staging area.
    This are the actuall space required for the Oracle Apps Alone plan for more space for future needs etc.
    Softwares on System
    Win2000 server with Patch1,Winzip and Acrobat Reader Latest version etc.
    Install VC++:
    Install a clean installtion of VC++ of Visual Studio Family 6.0
    It should be first installed before installing MKS or GNUMAKE
    NOTE: When Visual C++ is installed, let the installer register all environment variables. This will allow executables to be linked from the command line.
    How to Download and install MKS tool Kit:
    Note:Try to purchase the MKS tool kit from the below site.
    or try to download the trial version valid for a months time.
    http://www.mkssoftware.com/products/tk/ds_tkio.asp
    Evaluation copy from
    http://www.mkssoftware.com/eval/
    Choose "MKS Toolkit for Interoperability " Download it in C:\
    Again you have to click the downloaded kit to start the actual download of 38 MB of MKS tollkit Evaluation version.
    You will be sent a Demo serial number to your mail id==>copy the same to a Notepad on your desktop.
    Now start the installtion of the MKSToolkit on your system by clicking on the MKStoolkit downloaded.
    It will prompt you for the Demo serial number which has to be provided.
    The MKStoolkit will be successfully installed.
    How to Download and Configure GNUMAKE:
    1) HOW TO GET AND INSTALL GNUMAKE ON WINDOWS2000
    This can be done by performing the following steps:
    NOTE: Please, be aware that you must install Visual C++ BEFORE installing GNUMAKE, because its installation process involves linking executables.
    1) Before downloading GNUMAKE, you will need to acquire some utilities which will be used for unpacking files. You can obtain the required utilities at the following
    URL: ftp://ftp.gnu.org/gnu/windows/emacs/utilities/i386/
    The directory contains the following files:
    README
    djtarnt.exe
    gunzip-1.2.4-i386.exe
    gzip-1.2.4-i386.exe
    tar-1.11.2-i386.exe
    tar-1.11.2a.exe
    Only two of the files are required:
    gunzip-1.2.4-i386.exe and tar-1.11.2a.exe
    2) After downloading the above files, rename them as follows:
    gunzip-1.2.4-i386.exe => gunzip.exe
    tar-1.11.2a.exe => tar.exe
    Place them into a directory that you can set in you PATH environment variable.
    3) Point your browser to the following
    URL: ftp://ftp.gnu.org/gnu/make
    The files needed from this directory are:
    make-3.77.tar.gz
    make-3.78.1.tar.gz
    make-3.79.1.tar.gz
    make-3.79.tar.gz
    Development requires to install version 3.77 or above. Downloading the latest version is perhaps best decision, but there are advantages to downloading the version required by development (3.77). (This document assumes that version 3.77 has been downloaded) (NOTE: AVOID USING SPACES IN
    DIRECTORY AND FILE NAMES. GNUMAKE,VISUAL C++, ETC. DO NOT ALWAYS DEAL WELL WITH SPACES)
    4) For instance, suppose you have downloaded file make-3.77.tar.gz on a directory called C:\GNUMAKE, unpack this file using gunzip.exe from a Command Prompt Window
    Example: C:\GNUMAKE>gunzip make-3.77.tar.gz This last action, will expand file make-3.77.tar.gz and the extension .gz will be removed.
    5) On the same Command Prompt Window, you should UnTAR the file, with the following
    command: C:\GNUMAKE>tar -xvf make-3.77.tar This will create a new subdirectory called MAKE-3.77 under C:\GNUMAKE, the original directory.
    6) In the new subdirectory, there is a batch file
    called build_w32.bat; run the batch file to generate GNUMAKE.EXE
    Try this from Command Prompt more than once if succesfully not built message appers till you get Generated successfully.
    Note:If Possible run all the bat files in the MAKE-3.77 and also config.bat in the sub directory by double clicking it.
    WARNING: There is a known issue with this last step, "GNU make fails to build regardless of chosing build_w32 or nmake"
    See [NOTE:115937.1]
    for work around. RELATED DOCUMENTS ----------------- For Microsoft Visual C++, MKS Toolkit and
    GNUMAKE support, you should contact their respective vendors Microsoft Visual C++, MKS Toolkit
    and GNUMAKE are registered trademarks.
    http://support.microsoft.com/ http://msdn.microsoft.com/ http://www.mks.com/
    http://www.gnu.org/ Note:104010.1: Release 11i on NT: Software Requirements
    Note:115937.1: GNU Make won't make on windows NT
    Important:All the downloaded files from GNU makes web sites shall be put in a single folder called gnumake under c:\ .Try to search for config.bat file inside this folders just click and
    run it.
    Env path setting:
    Try to search make.exe generated in c:\program files\mkstoolkit\mksnt and copy and paste it
    c:\gnumake\MAKE-3.77\windebug and c:\gnumake\MAKE-3.77\winRel also paste both this paths in the
    My Computers==>Properties==>Advanced==>Environment variables==>Path setting's
    After all this check as follows from CMD mode.
    1)execute make at c:\>
    2)execute gnumake at c:\>
    In win2000 it may return error messages or Target wrong ignore it.If it is on Win NT then it will return proper status.
    Create Applmgr user in Win2000:
    Create a Applmgr user account in win2000 .
    Installation:
    =============
    What here you require is the Patience .
    Load the START HERE CD and run the C:\> cd \cdrom\rapidwiz
    For Test and Prod it will ask for the location of Appl_Top,Common_Top and Data_Top location. Mention there path and ensure if more than one installtion say eg.Vision and Test or Prod to check the Path in all the tab pages its corresponding values and path's.
    In Vision Demo many of the Options are not propmted from the user.
    It will then do the system checking for Host Name and other details.All the checking should have been passed or if failed it will mark it in RED cross mark.Rectify the mistake and then onceagain proceed or else you will have problem after installation.
    The Installation time takes around 5 to 6 Hrs of time.
    For info on Post installation or on Multi Node follow the pdf's i have mentioned above.
    The most tedious of all is succesfully crossing the Apps system checking it does for all
    installed products it requires without any failure.
    The GNUMAKE configuration or steps were nowhere given and it was all our trail and error exp.
    This is possibly the most elaborate steps to install Apps on Win. post for further help. email me at [email protected] or [email protected]
    Rajeev.

  • Tr command in Linux

    Hi All,
    I searched internet for the usage of tr command, honestly it is very powerfull when process flat files,
    take text replacement for example
    cat file1.txt | tr "abc" "xyz"
    the output will be that 'a' change to 'X', 'b' to 'Y', 'c' to 'Z'
    but does it support function that can replace "abc" to "xyz", not change them individually?
    Please advise which kind of option should I use for tr or any other command in Linux?
    thanks
    Henry

    How about find and replace with SED, e.g.:
    $ sed -i 's/orig_text/new_text/g' /home/oracle/test.txt
    sed edits "-i" /home/oracle/test.txt in place and replaces "orig_text" with "new_text"
    You can find many examples and tutorials about SED in google e.g.
    http://tldp.org/LDP/Bash-Beginners-Guide/html/chap_05.html

  • Grep Command in Linux

    Hi all,
    I having problem getting the output of grep command in Linux (Red Hat 9.0).
    At the same time, I am able to get the output of cat command.
    Using the output of cat command, I am writing it to a text file and then in another process using grep I am extracting particular line from the text file.
    To get the Process Output I am using a code from http://hacks.oreilly.com/pub/h/1092#thread.
    Below is my code.
    public void getUSBInfo() {     
           try{
                  String catCommand =  "cat /proc/bus/usb/devices";
                  System.out.println("catCommand is : "+catCommand);
                  Process p = Runtime.getRuntime().exec(catCommand);
                  usbInfoBuffer = new StringBuffer("");
                  InputStream inStream = p.getInputStream();
                  new InputStreamHandler( usbInfoBuffer, inStream ); 
                                  // InputStreamHandler is the class used to read the console output.
                  StringBuffer errBuffer = new StringBuffer();
                  InputStream errStream = p.getErrorStream();
                  new InputStreamHandler( errBuffer , errStream );
                  p.waitFor();
                  catCommandOutput = usbInfoBuffer.toString();
                  System.out.println("USB Info : " +catCommandOutput);
                  String fileCat ="/EthicsPoint/usbInfo.txt";
                  File catCommandOutputFile =  new File(fileCat);
                  boolean filesuccess = catCommandOutputFile.createNewFile();
                  setContents(catCommandOutputFile,catCommandOutput);
                  extractUSBInfo();
                  }catch(Exception e) {
                 JOptionPane.showMessageDialog(null," Exception occured executing Native Method..catCommand.."                                         ,epname,JOptionPane.ERROR_MESSAGE);                                    System.out.println("File Exception No 6" +e);
    public void extractUSBInfo() {
         try {
              String filename = " /EthicsPoint/usbInfo.txt";
              String grepCommand = "grep \"P:\\|S:\""+filename ;
               //String[] grepCommand = new String[]{"grep", "\"P:\\|S:\"", "/EthicsPoint/usbInfo.txt"};
              Process p = Runtime.getRuntime().exec(grepCommand);
              usbExtractedInfoBuffer = new StringBuffer("");
              InputStream inStream = p.getInputStream();
              new InputStreamHandler( usbExtractedInfoBuffer, inStream );
              StringBuffer errBuffer = new StringBuffer();
              InputStream errStream = p.getErrorStream();
              new InputStreamHandler( errBuffer , errStream );
              p.waitFor();
              String Output = usbExtractedInfoBuffer.toString();
              System.out.println("grepCommand is    : " +grepCommand);
              System.out.println("Searched USB Info : " +Output);
          }catch(Exception e) {
         JOptionPane.showMessageDialog(null," Exception occured executing Native Method..grepCommand..."                               ,epname,JOptionPane.ERROR_MESSAGE);                                    System.out.println("File Exception No 7" +e);
          }I am not getting any IOException. The output of System.out.println("Searched USB Info : " +Output); is blank.
    If I try shell> grep "P:\|S:" /EthicsPoint/usbInfo.txt, I get the desired output.
    What could be the reason ? While using cat command I am getting the output , but grep command is
    returning blank. I even tried String array[] for exec() command, but still get blank.
    Where and what I am doing wrong ?
    Thanks in advance.
    Regards,
    Jay.

    Hi asjf,
    Thanks a lot... The problem is finally solved.
    String exeCommand = "grep P:\\|S: "+filename; I removed the quotes and it worked. But if I
    remove backslash for the pipe symbol nothing happens..as I get return value of 1.
    Output after removing quotes :
    exeCommand is : grep P:\|S:  /EthicsPoint/usbInfo.txt
    Exit Value is : 0
    USB Info : P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB OHCI Root Hub
    S:  SerialNumber=ce84b000
    P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB OHCI Root Hub
    S:  SerialNumber=ce849000But I have noticed another problem. If I execute the aplication number of times, eventhough
    the exit value is 0, USB Info : is blank. This happens sometimes. Sometimes I get the correct output.
    What could be the reason ?
    Thanks to you and all who have replied to my queries....Thanks a lot.....Really appreciate the time and effort.
    Regards,
    Jay.

  • About path and classpath in linux

    How to set classpath and path in Linux.
    thank you very much!

    The class path can be set using either the -classpath option when calling an SDK tool (the preferred method) or by setting the CLASSPATH environment variable. The -classpath option is preferred because you can set it individually for each application without affecting other applications and without other applications modifying its value.
    % sdkTool -classpath path1:path2...
    -or-
    % setenv CLASSPATH path1:path2...
    where:
    sdkTool
    A command-line tool, such as java, javac, or javadoc. For a listing, see SDK Tools.
    path1:path2
    Paths to the .jar, .zip or .class files. Each path should end with a filename or directory depending on what you are setting the class path to:
    For a .jar or .zip file that contains .class files, the path ends with the name of the .zip or .jar file.
    For .class files in an unnamed package, the path ends with the directory that contains the .class files.
    For .class files in a named package, the path ends with the directory that contains the "root" package (the first package in the full package name).
    Multiple path entries are separated by colons.
    The default class path is the current directory. Setting the CLASSPATH variable or using the -classpath command-line option overrides that default, so if you want to include the current directory in the search path, you must include "." in the new settings.
    Classpath entries that are not either a directory or an archive (.zip or .jar file) are ignored.

  • Pls help: I can't start my mac because I took too much space and now the disk doesn't mount

    I am most certain that this is the case: foolishly, I didnt leave much free space and now the disk doesnt want to mount. I tried the single user mode, I also booted from DVD, they appear but the disk utility shows the disk but I cannot repair the disk, because it is unmounted. I tried the basic commands in single user mode, no effect either. I still cant get over the blue screen with the apple logo and a circle running. I need to free up some spasce. Unforetunately, important  files were not backedup, so I really cant delete the whole disk. I need to delete specific files.
    I came across this in a post:
    /sbin/fsck -yf (optional, but a good idea to run a file system check. If you do this, repeat this command if any problems are found.)
    /sbin/mount -uw / anables to read and write via the single user mode
    /usr/bin/cd /Library/Audio
    /bin/rm -R Apple\ Loops  - rm is remove
    (and any other deletions that you need to do here)
    /sbin/reboot
    The troulbe is, I dont know where are my big files located - so, how do I orientate myself among the folders? Lets say I would delete my itunes libary, which I would later on renew thanks to the back/up, how would I delete them?
    Thank you very much for any advice. I really need to make it work.
    Adam

    adamfromcernosice wrote:
    | just read that the password doesnt show while being typed - ok, but still it says "invalid argument" once being typed after the sudo rm -r. how is that possible?
    Probably some error in typing. Copy the command line from Terminal and post it here, exactly as it is.
    a way to install applejack or someother helpful software?
    AppleJack only works on the boot disk, and only in single-user mode. IMHO, if there is a space or corruption issue on the disk, the last thing you want to do is to install new software on it.
    DU once I select repair disk reports ''it could not unmount'' the disk.
    If you chose the right disk, you probably have some process using files on the disk or referencing the disk. For instance, if you have Terminal open and present working directory is on the disk, DU will refuse to unmount it. Make sure you've quit all other apps before using DU. If it still refuses to unmount, you can force it in Terminal
    $ diskutil unmountDisk force
    and drag the disk from Finder to the Terminal window (there's a blank space after force).
    could I somehow use time machine just for my original disk?
    I don't know about Time Machine. I suspect you can't use it under your circumstances, but I really don't know.
    how to force through adn delete some folders? I still believe that it should solve the problem, shouldnt it?
    Not all problems have convenient solutions. If the file system is corrupt (which could well happen when running out of space, let alone the fact that you couldn't boot from the disk and thus the journal couldn't be replayed), then deleting files may not work or may make matters worse. We still don't know why you couldn't boot from the internal disk. It may be because there isn't enough space to create the necessary temp and ancillary files—or it may be because the file system was badly corrupted when the operating system ran out of space.
    If you want to stick with it, post here the rm command, as I wrote above. It may or may not work, it may or may not delete the files you want to delete, which may or may not fix the problem. There's no guarantee. It you want to do it right, the only way is to back up everything you can and re-format the internal drive.

  • Print command from linux PC on to Windows Environment

    Hi Experts,
    We have SAP on Windows and the network printer is also on Windows, the PC with Linux is integrated with network printer i.e when the print command from Linux is given the output is available from the printer (Windows). But when the print command is given through SAP there is no output from Printer (Windows).
    When same user logs into Windows the printer command is successful.

    hi hari,
    Printing SAP documents using Linux client is a little bit tricky if you want to get good printing result just as when you print from your Windows client.
    If you want to use G printing method (on Linux client), you can't use SAPWIN on device type since SAPWIN is relying printing method. You must use exact printer driver. For example when you're using Dot Matrix printer Epson LX300+, you can use EPESCP2
    I am using different method to cheat this and it's completely work.
    ardhian
    http://ardhian.kioslinux.com
    http://sapbasis.wordpress.com

  • How to execute "netsh wlan connect SSID", but SSID has space and quotation marks?

    Dear all:
    I have a wifi roruter with SSID test "3"
    But when I execute following command netsh wlan connect "test \"3\""
    the netsh reply: 未將設定檔 "test " 指派給指定的介面。
    Sorry my windows7 is chinese version, but as you can see, netsh detect my SSID as
    test, not test "3".
    Does everybody know how to use netsh to connect to a SSID, and these SSID has space and quotation mark both?
    Regards,
    Joseph

    Hi Joseph,
    Firstly, please modify your SSID name to make sure it do not contain spaces or special characters. SSID name is the router setting. please go there to change SSID name.
    In addition, If only one SSID is specified in the profile, then the specified SSID is used to connect, and the ssid parameter is not required. If the profile specifies multiple SSIDs, the ssid parameter is required.
    Therefore, I would like to suggest you run command as this syntax:
    netsh wlan conncet ssid=Your SSID of the unsecured wireless network name=Your current profile name
    To do this, please refer to the section “connect” in the following document:
    Netsh Commands for Wireless Local Area Network (WLAN) Preliminary
    http://technet.microsoft.com/en-us/library/cc755301.aspx#bkmk_wlanConn
    Karen Hu
    TechNet Community Support

  • Spaces confusing safari windows (on multiple spaces using command-tab)

    Wondering if this is happening to anyone else.
    I love spaces but something is messed when using safari windows on multiple spaces. Say I have two safari windows open on two different spaces, after command-tabbing to another app when I try to command-tab back to safari it doesn't always go to my last safari window. That is to say that sometimes it goes to the other safari window, and sometimes it doesn't. It's super unpredictable.
    Give it a try, open two safari windows on two different spaces and the command tab to another app and then command tab back to safari - and repeat... you'll find that it will just randomly go to the other window, and then back etc.
    Can't think of anything more annoying in spaces... that's got to be a bug.
    Anyways, let me know if it's happening to you.
    Jay.

    same issue. i have multiple safari windows with multiple tabs on multiple spaces. let's say one space is a rails space; so it has some terminals, safaris, firefoxes, all perhaps with 2 or more tabs. command-tab does not necessarily go back to the window of the app i was just in. whether it's safari or firefox or whatever. this is horribly un-intuitive. come on apple. that's like your thing, right?

  • HT4910 I can not back up my iPhone.  it says I need more storage space.  I purchased more space and icloud says it is there, but the phone is not recognizing this and continues to say that I need to purchase more space in order to back it up.  Any ideas?

    I can not back up my iPhone.  It says I need more storage space.  I purchased more space and icloud says it is there, but the phone is not recognizing this and continues to say that I need to purchase more space in order to back it up.  Any ideas?

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Color Space and Bit Depth - What Makes Sense?

    I'm constantly confused about which color space and bit depth to choose for various things.
    Examples:
    - Does it make any sense to choose sRGB and 16-bits? (I thought sRGB was 8-bit by nature, no?)
    - Likewise for AdobeRGB - are the upper 8-bits empty if you use 16-bits?
    - What is the relationship between Nikon AdobeWide RGB, and AdobeRGB? - if a software supports one, will it support the other?
    - ProPhoto/8-bits - is there ever a reason?...
    I could go on, but I think you get the idea...
    Any help?
    Rob

    So, it does not really make sense to use ProPhoto/8 for output (or for anything else I guess(?)), even if its supported, since it is optimized for an extended gamut, and if your output device does not encompass the gamut, then you've lost something since your bits will be spread thinner in the "most important" colors.
    Correct, you do not want to do prophotoRGB 8bit anything. It is very easy to get posterization with it. Coincidentally, if you print from Lightroom and let the driver manage and do not check 16-bit output, Lightroom outputs prophotoRGB 8bits to the driver. This is rather annoying as it is very easy to get posterizaed prints this way.
    It seems that AdobeRGB has been optimized more for "important" colors and so if you have to scrunch down into an 8-bit jpeg, then its the best choice if supported - same would hold true for an 8-bit tif I would think (?)
    Correct on both counts. If there is color management and you go 8 bits adobeRGB is a good choice. This is only really true for print targets though as adobeRGB encompasses more of a typical CMYK gamut than sRGB. For display targets such as the web you will be better off always using sRGB as 99% of displays are closer to that and so you don't gain anything. Also, 80% of web browsers is still not color managed.
    On a theoretical note: I still don't understand why if image data is 12 or 14 bits and the image format uses 16 bits, why there has to be a boundary drawn around the gamut representation. But for practical purposes, maybe it doesn't really matter.
    Do realitze hat the original image in 12 to 14 bits is in linear gamma as that is how the sensor reacts to light. However formats for display are always gamma corrected for efficiency, because the human eye reacts non-linearly to light and because typical displays have a gamma powerlaw response of brightness/darkness. Lightroom internally uses a 16-bit linear space. This is more bits than the 12 or 14 bits simply to avoid aliasing errors and other numeric errors. Similarly the working space is chosen larger than the gamut cameras can capture in order to have some overhead that allows for flexibility and avoids blowing out in intermediary stages of the processing pipeline. You have to choose something and so prophotoRGB, one of the widest RGB spaces out there is used. This is explained quite well here.
    - Is there any reason not to standardize 8-bit tif or jpg files on AdobeRGB and leave sRGB for the rare cases when legacy support is more important than color integrity?
    Actually legacy issues are rampant. Even now, color management is very spotty, even in shops oriented towards professionals. Also, arguably the largest destination for digital file output, the web, is almost not color managed. sRGB remains king unfortunately. It could be so much better if everybody used Safari or Firefox, but that clearly is not the case yet.
    - And standardize 16 bit formats on the widest gamut supported by whatever you're doing with it? - ProPhoto for editing, and maybe whatever gamut is recommended by other software or hardware vendors for special purposes...
    Yes, if you go 16 bits, there is no point not doing prophotoRGB.
    Personally, all my web photos are presented through Flash, which supports AdobeRGB even if the browser proper does not. So I don't have legacy browsers to worry about myself.
    Flash only supports non-sRGB images if you have enabled it yourself. NONE of the included flash templates in Lightroom for example enable it.
    that IE was the last browser to be upgraded for colorspace support (ie9)
    AFAIK (I don't do windows, so I have not tested IE9 myself), IE 9 still is not color managed. The only thing it does is when it encounters a jpeg with a ICC profile different than sRGB is translate it to sRGB and send that to the monitor without using the monitor profile. That is not color management at all. It is rather useless and completely contrary to what Microsoft themselves said many years ago well behaved browsers should do. It is also contrary to all of Windows 7 included utilities for image display. Really weird! Wide gamut displays are becoming more and more prevalent and this is backwards. Even if IE9 does this halfassed color transform, you can still not standardize on adobeRGB as it will take years for IE versions to really switch over. Many people still use IE6 and only recently has my website's access switched over to mostly IE8. Don't hold your breath for this.
    Amazingly, in 2010, the only correctly color managed browser on windows is still Safari as Firefox doesn't support v4 icc monitor profiles and IE9 doesn't color manage at all except for translating between spaces to sRGB which is not very useful. Chrome can be made to color manage on windows apparently with a command line switch. On Macs the situation is better since Safari, Chrome (only correctly on 10.6) and Firefox (only with v2 ICC monitor profiles) all color manage. However, on mobile platforms, not a single browser color manages!

  • Ignoring spaces and non-alphanumeric characters

    I need some help with this program im working on. It's testing to see whether words are palindromes or not. The trouble is, i need to make the program ignore spaces and puncuation. Does anyone know of a command to do this, or a command where i can list all the common types of puncuation and get the program to ignore them.
    Thanks

    you can use regular expressions (regex) for this. I'm not very experienced with regex (though I admit I should become familiar with it ;)), so for more information check out Sun's regex tutorial and regular-expressions.info.
    if you're not interested in regex (or if you don't have access to a 1.4+ SDK), you can just use ASCII filtering to achieve this (see this ASCII table for basic ASCII values). Basically, you're only going to accept A-Z and 0-9 characters (if I understand your question correctly). This means the only ASCII values you want to accept is 48-57, 65-90, and 97-122. You can use a simple boolean method to check if a character is valid. Something like this should work:
    public boolean valid(char c) {
         int x = (int)c; // ascii value of c
         return ((x >= 48 && x <= 57) || (x >= 65 && x <= 90) || (x >= 97 && x <= 122));
    }Use this method on every character of the String you want to process. So to validate an entire String you can use a method like this:
    public boolean valid(String s) {
         for (int j = 0;j < s.length();j++) {
              if (!valid(s.charAt(j))) {
                   return false;
         return true;
    }Beware though that this is considerably slower than using regular expressions. Also I didn't compile this example so there might be a small mistake you'll have to fix.

Maybe you are looking for

  • Lost connection with db, restarting Weblogic

    hi, we have an server with oracle and whenever the connection with the db is lost for any reason and then comes again in a while the weblogic needs to be restarted again. i would love if someone could give me a tip of what excactlly weblogic is "loos

  • Crash Dock-7691800~1

    Salve a tutti, scrivo perchè ho ripetuti crash soprattutto quando ho molte schede aperte con qualsiasi browser, non so se sia una coincidenza. grazie, per l'aiuto. questa è una parte di quello che mi compare in console: Process:         Dock [138] Pa

  • What is wrong with firefox?

    What is wrong with firefox?

  • Mac mini does not bootup

    installed update (the last security update an itunes)and mini never booted again1 It gets stuck at the grey screen with the apple logo and the turning wheel. won't accept any disk for diaganosis and/or re-install. already troubleshooted according to

  • Some Jbuttons do not show on a particular pc.

    Hello, 1. In one class, a JPanel has 8 buttons. On three of the pcs, all the buttons are visible but on one particular pc only one button is visible. 2. In another class, I am using JOptionPane.showConfirmDialog method. This dialog box displays Yes a