Help with reading in command from keyboard

i need to read user response from the keyboard, how should this be done with system.in. or should i used JOptionPane to show input dialog?

Depends on what you want to do.
using System.in:
import java.io.*;
public class rin
public static void main(String[] args)
DataInputStream ins=new DataInputStream(System.in);
try
String cmd =ins.readLine(); //Reading from Keyboard
System.out.println(cmd);
catch (IOException e)
System.out.println(e);
}

Similar Messages

  • Need help with reading RSS feed from SSIS

    Hi all,
    I am trying to read RSS feed from SSIS by using the Script Component. So far I am able to read some information from the RSS feed from the following items included in the code, Title, PublishDate, LastUpdateTime, Id and Summary.
    There are still more item but I am unable to identify the proper data type for the following:
    //Output0Buffer.Description = item.Content;
    //Output0Buffer.Category = item.Categories;
    //Output0Buffer.Comments = item.Summary;
    //Output0Buffer.Source = item.SourceFeed;
    When I define the data for item.Content as Unicode String in the column properties for the Output column I get the following error message:
    Error 1 Cannot implicitly convert type 'System.ServiceModel.Syndication.SyndicationContent' to 'string'
    And the same error for the other three variables.
    I am using HTTP Connection manager to read the xml link.
    I tried to google around for some help but I could not find more information about the datatype.
    I appreciate any help if someone can point me to the right solution for reading RSS feed from SSIS.
    Code:
    /* Microsoft SQL Server Integration Services Script Component
    * Write scripts using Microsoft Visual C# 2008.
    * ScriptMain is the entry point class of the script.*/
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System.ServiceModel.Syndication;
    using System.Xml;
    using System.Text;
    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
    public class ScriptMain : UserComponent
    private string url = string.Empty;
    private SyndicationFeed feed = null;
    private XmlReader reader = null;
    public override void PreExecute()
    base.PreExecute();
    // Get the URL from the Http Connection Manager.
    // Note, we're not actually using the connection manager's connection object,
    // just it's URL setting. This is because using the .NET connection classes
    // give us more flexibility.
    reader = XmlReader.Create(Connections.HttpConnection.ConnectionString);
    feed = SyndicationFeed.Load(reader);
    public override void PostExecute()
    base.PostExecute();
    reader.Close();
    public override void CreateNewOutputRows()
    if (feed != null)
    foreach (var item in feed.Items)
    Output0Buffer.AddRow();
    Output0Buffer.Title = item.Title.Text;
    Output0Buffer.PublishDate = item.PublishDate;
    Output0Buffer.LastUpdatedTime = item.LastUpdatedTime;
    Output0Buffer.Link = item.Id;
    //Output0Buffer.Description = item.Content;
    //Output0Buffer.Category = item.Categories;
    //Output0Buffer.Comments = item.Summary;
    //Output0Buffer.Source = item.SourceFeed;
    Output0Buffer.FeedImage.AddBlobData(ConvertToBytes(item.Summary));
    string authorName = string.Empty;
    if (item.Authors.Count > 0)
    // take the first author
    authorName = item.Authors[0].Name;
    Output0Buffer.Author = authorName;
    Output0Buffer.SetEndOfRowset();
    private byte[] ConvertToBytes(TextSyndicationContent content)
    if (content != null && !string.IsNullOrEmpty(content.Text))
    // convert the string buffer to UTF8 so we can store it in an NTEXT column
    var encoding = new UTF8Encoding();
    return encoding.GetBytes(content.Text);
    return new byte[0];
    Thanks in return.

    You need to make it running outside SSIS 1st. I just do not see why you need to publish it here at the moment.
    And to solve it, doesn't C# has the
    VAR datatype so you do not have to guess.
    Arthur
    MyBlog
    Twitter

  • Help with reading information coming from a software into LabVIEW through Serial port

    Hi,
    I am new to LabVIEW and also an amateur in using RS232 for communication. I have this software that has these icons like speed increase/decrease, elevation up/down, start/stop. Now, when I click these buttons on the software, they perform the appropriate functions. For example, if I press start button, the signal must go through a serial COM port into LabVIEW to start the machine. How do I do that? How do I find what format the code word is when I press a button on the software? And how to decode the information to read whether the button pushed is start etc...? Any help would be appreciated.

    I may not be perfect, but I'm all I got!

    That information would be in the programming manual for the device you're controlling. Unless you have a device that has no documentation or you cannot get the documentation that's the first place you should look. If you cannot get the documentation at all then you've got some reverse-engineering to do. To do this you will either need a serial port sniffer (a hardware device), or you can try to use a software-based port capturing program. On Windows PortMon is the most prevalent. This will show you how the port was configured (baud rate, stop bits, etc). Warning: the information is technical.
    As far as how to get it running in LabVIEW, you should take a look at the serial port communication examples that ship with LabVIEW. The most problems occur in figuring out how to (a) terminate a write command, and (b) determining when to stop reading. For (a) this is typically done by appending a carriage return or linefeed to the command. This is device dependent. For (b) this is usually done by the byte stream ending with a character like a linefeed. Again, this is device-dependent. 
    You may also want to peruse this KB article: Serial Instrument Control Tutorial. There are also lots of tutorial on the internet for basic tutorials on serial port communication.

  • I need some syntax help with reading some values from a selected row in an Access form.

    My goal:  to extract the data from 4 fields in a datasheet row and place them in another form.
    My problem:  I can only get the field values from the first row of the datasheet.
    I have tried using the Form_Click event as the location for the code I've tried.  This seems to be the right place, but apparently referring to the desired fields by their names with Me. in front just references the first record in the datasheet, not
    the one I've selected.
    Should I just read the source form's recordset using the Currentrecord value somehow?  I could use some direction on that.
    Thank you.
    Marj Weir

    It's generally considered good forum etiquette to post back a description of the solution which you've reached.
    The normal control for a multi-valued field is a combo box rather than a text box, but unless it is necessary for you to use a  multi-valued field, i.e. your database is interfacing with SharePoint in the very limited context in which this feature is necessary,
    I'd advise that you model the many-to-many relationship type in the time-honoured way by means of a table which resolves the relationship type into two one-to-many relationship types, and use a subform to show the data.  You can alternatively use a multi-select
    list box or a text box which shows a value list.  You'll find examples of all three methods in StudentCourses.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    Ken Sheridan, Stafford, England

  • Need some help with downloading PDF's from the net.

    need some help with downloading PDF's from the net.  Each time I try to click on a link from a website, if it takes me to a new screen to view a pdf, it just comes up as a blank black screen?  any suggestions?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Issue with Executing OS commands from Stored Procedure

    I am trying to execute the scripts provided at :
    http://github.com/xtender/XT_SHELL
    provided by xtender user.
    As required, I have asked my DBAs to grant privileges by executing the following scripts:
    Begin
      --change to needed permissions and execute
      dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/factiva/ODS/bin/CVIM_Rpt_ExportCSVFile’, 'read,write,execute' );
    end;
    /where CVIM_Rpt_ExportCSVFile is my script residing in the Unix server where my Oracle is installed.
    The error I am facing when I try to execute the following command is:
    select * from table(xt_shell.shell_exec('/var/scripts/CVIM_Rpt_ExportCSVFile',100))
    Exception:the Permission (java.io.FilePermission /var/scripts/CVIM_Rpt_ExportCSVFile execute) has not been granted to ODS. The PL/SQL to grant this is dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )I have asked my DBA to also execute the following scripts: - But I still see the same error as above. I am not able to figure out whats going on. Can anyone pls help me out??
    EXEC Dbms_Java.Grant_Permission('ODS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC Dbms_Java.Grant_Permission(ODS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )

    DUPLICATE
    ===============================================================
    Issue with Executing OS commands from Stored Procedure
    ==============================================================

  • Need help with Set-ADUser command

    I need a little help with the following command. Im new to PS and I have found this command but it is only one user at a time. I need to be able to update ALL users in AD.
    My goal is this. Someone before me set all Users Home numbers to 1234567899 and I need to remove that and leave it blank. The command below allows me to do that but only one user at a time by entering their SAMID.
    Is there a way to do this for everyone in AD ?
    Set-AdUser –Identity SAMID –HomePhone $NULL

    Yeah sure - 
    Get-Aduser -filter * -properties SamaccountName | Select SamAccountName | % {Set-Aduser -identity $_.SamaccountName -HomePhone $null}

  • Help: How can I read an integer from keyboard

    Hi,
    I am new to java, and I know how to declare integer variable,
    but how can read an integer input from keyboard and assign it
    to the variable.
    Can anyone help me on this.
    Thanks
    Studentfj

    the easiest way is to
    import javax.swing.*
    and use the methods and functions in there
    otherwise from command line i think as far as i remember it is System.in

  • Help with 2 UNIX Commands using ARD

    Hello All,
    Can someone help me with 2 UNIX commands I would like to set up? The first one... how to delete a range of users within /Users by date (i.e. the oldest user who last logged in "Mar 22 09:40 00796216" to "Mar 25 17:01 01036773"). Currently, I'm using "sudo rm -r " followed by each home directory name separated by a space. It works but to save time, it would be nice to do this all within 1 UNIX command.
    Second, is there a UNIX command where I can delete a range of users by ID numbers? (We have users assigned with an 8 digit ID number. Is there a UNIX command where I can delete users from 12345678 to 23456781?) Again, I'm using "sudo rm -r " followed by each home directory name separated by a space.
    Thank you in advance!
    Mike

    This happens with or without SIM card, with and without wifi... with and without SD card as well-- even bought a new 32GB class 10 SanDisk-- but it still crashed.
    Just an update: Went to the Nokia Care Center yesterday, they reflashed the firmware and I got back the phone within the day... when I went back home to try the phone again... again it kept hanging... in a period of 5 minutes, I had 5 hangs... right from startup, went straight to the cam, took some pics then pinched zoom... and phone simply crashed-- had no SD car, no sim card then.
    So today I went back to Nokia Care Center... they said they will do some more tests and see... but they insist its a software problem, we'll see in a day or 2.

  • Need help with a terminal command

    Ever since Lion, or maybe even earlier, I am fighting a losing battle against memory leaks on my MacBook Pro. Safari for example takes over time 2GB+ for just 2 or 3 tabs open with almost no extensions active. Really strange.
    Someone told me about the "purge" command in Terminal to free some of the sequestered memory, so I am doing this a few times a day to be able to use Photoshop, Keynote, Premiere and other stuff concurrently without opening and closing apps like I did 10 or 15 years ago, remember those days?
    So here are my 2 questions:
    Will this frequent "purge" command harm anything in the long run?
    If no, is it possible to automate this "purge" Terminal action somehow? Maybe a desktop icon to click, or fully automated? I am a designer, not a coder, so I would need help with that.
    Thank you for your input!
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro8,2
      Processor Name:          Intel Core i7
      Processor Speed:          2.3 GHz
      Number of Processors:          1
      Total Number of Cores:          4
      L2 Cache (per Core):          256 KB
      L3 Cache:          8 MB
      Memory:          8 GB
      Boot ROM Version:          MBP81.0047.B27

    Hello, do any modifier keys work, like Optio/alt?
    Could you have Firmware password protection in Mac OS X ...
    http://support.apple.com/kb/HT1352
    It would block usage of all the startup keys, like C, N, T, D, CMD+s, CMD+Option+p+r, CMD +v, Option, and Shift, as well as booting from anything but the Hard Drive.
    Force Removing Password Protection
    1) Add or remove DIMMs to change the total amount of RAM in the computer.
    2) Then, the PRAM must be reset 3 times. (Command + Option + P + R).
    http://www.securemac.com/openfirmwarepasswordprotection.php

  • Help with partial image loss from Viewer to Canvas

    Hi--I'm brand new to FCP and would really appreciate any help with my problem. I'm creating 2 second video clips composed of four still images (15 frames...or 500ms each) laid back to back, then rendered. Very simple, I know. The individual images are tiff files that look great in the FCP Viewer. But in the Canvas, part of the image is missing. Specifically, in the center of each image there should be a + sign, about 1cm square. This + should remain constant thoughout the short movie, while the items around it vary (from image to image). (This is a psychology experiment, and the center + is a fixation cross.) The problem is that in the Viewer the + sign is intact, but in the Canvas (and the resulting rendered video), only the vertical bar of the + is present! This is true for every individual tiff, and for the resulting movie. The items around the fixation cross are fine. My question is WHY on earth does the central horizontal bar get "lost" between the Viewer and the Canvas? I've read the manuals, but obviously I've got something set wrong. Also, there is a considerable overall reduction in quality between the viewer and canvas, even though I'm trying my best to maximize video quality. Everything looks a bit blurry. Truly, all ideas are welcome. Sorry if it's obvious. Thanks.
    G5   Mac OS X (10.4.3)  

    steve, i'm viewing on my 23" cinema screen. i read up on quality and know that this is a no-no; that i should only judge quality when viewing on an ntsc monitor or good tv. the problem is that i'll ultimately be displaying these videos on my Dell LCD, so i've got to maximize what i've got. thanks to the discussion boards i have a short list of things to try now. thanks!
    -heather

  • Help with figuring out commands for test!

    These are study guide questions, I would appreciate any help!!
    What does the following PowerShell command do?
    PS C:> ls | Where-Object { $.PSIsContainer } | ForEach-Object { (ls $ | ? { -not $_.PSIsContainer } | sort LastWriteTime)[0] }
    Select one:
    Finds all the files that are one subdirectory deep
    Searches one subdirectory level deep and finds the least recently modified file in each subdirectory
    Recursively searches for the file named "0"
    Searches each subdirectory and finds the most recently modified file
    Recursively searches for the newest file on the system
    What does the following PowerShell command do?
    PS C:> Select-String "[0-9]{10}" audit.log
    Select one: Searches for the literal string "[0-9]{10}" and returns each line containing the string
    Looks for and returns the first instance of the literal string "[0-9]{10}" in the file audit.log
    Looks for and returns each line containing 10 consecutive digits in the file audit.log
    Looks for and returns the first number that is exactly 10 digits found in the file audit.log
    Looks for and returns a 0-9 followed by a 1 or 0 in the file audit.log
    What does the following PowerShell command do?
    PS C:> ls -r -fo | ? { $_.LastAccessTime -gt (Get-Date).AddDays(-1) } | select LastAccessTime, Name
    Select one: Finds all files, excluding hidden files, accessed in the last day and outputs the last access time and filename
    Finds all files, excluding hidden files, accessed in the last day and outputs the last access time and the user
    Finds all files, including hidden files, accessed in the last day and outputs the last access time and filename
    Finds all files, including hidden files, accessed in the last day and outputs the last access time and the user
    Finds all files, including hidden files, accessed more than one day ago and outputs the last access time and filename
    What does the following PowerShell command do?
    PS C:> Get-Process cmd | ? { $_.StartTime -lt (Get-Date).AddHours(-1) } | Stop-Process
    Select one: Kills any cmd.exe process that has been running for longer than an hour
    Starts cmd.exe and stops it after one hour
    Kills any cmd.exe processes that started exactly one hour ago
    Kills any cmd.exe process that has started in the past hour
    Starts cmd.exe after pausing for one hour
    What does the following PowerShell command do?
    PS C:> ls \users\ephil\Documents | % { move $.FullName -dest $.FullName.ToLower() }
    Select one: Moves each file in \Users\ephil\Documents to a lower directory
    Moves each file in \Users\ephil\Documents to the directory named FullNameToLower
    Moves files with all lowercase characters to \Users\ephil\Documents
    Finds all files containing the words user, ephil or documents and renames them to lower case
    Renames each file in \Users\ephil\Documents to lower case

    It really doesn't help you learn if we're giving you the answers to questions. That said, there are a number of places where the code you've posted has syntax errors. Any place you see "$" with nothing after it in that code (ie, "$.StartTime" or "ls $ |",
    assume they meant to type "$_" ("$_.StartTime", "ls $_ |").
    There are also a lot of aliases and partial parameter names in the code.  This may be deliberate, to get you to play around with the commands and figure out what the cryptic notation really means, but I don't think it's very helpful.  We encourage
    people to use full command and parameter names in scripts to enhance code clarity; the same standard should be applied to your test questions.  Aliases are an optional convenience if you want to save some typing, once you're comfortable with them.
    So, here are the aliases used in your questions, along with their actual command / parameter name:
    % : ForEach-Object
    ? : Where-Object
    ls : Get-ChildItem
    sort: Sort-Object
    select: Select-Object
    move: Move-Item
    -r:  (as a parameter to ls / Get-ChildItem) -Recurse
    -fo: (as a parameter to ls / GetChildItem) -Force
    -dest: (as a parameter to move / Move-Item) -Destination
    Yes the $_. turned out as $. for some reason.
    Could you help me with any of these questions? They will really prepare me well for the test. If you could provide answers for any of them I could then work backwards and figure out how to arrive at the answer.

  • Need help with read/write to MODBUS RTU registers in Labview 8.0

    I’m trying to write and read the registers in G3800xx016. controlling temperatures and lightning.  Please look at the attached pdf file for this unit..
    I have used Lookout for about three years, and it works fine.. Now I want to expand my system and try to use Labview 8.0
    My temperature register start adress is 100 Hex  (256 dec) I read from Register with Function code 03.
    This register have values from 0-255 witch mean in labview for me as unsigned byte U8
    I read my temperature from the register like this: eks.: 40257 lets say value=5
    Slave    FC       Start Adress     Byte     Value               CRC
    01        03        0100                02        0005                7847   
    This is the status received from the Modbus tester when I use null-modem connection..
    I receive the same value if I use Modscan32
    I have used null-modem cable to read out the values.
    I have also PIR detectors that control movements and light of and on, and I read these starts at 40017.1
    01   03     0010     02    
    The register to switch on and of heating and lights starts at 404097.1  FC16  
    Values mention here is read from Lookout 5.0  
    I have tried examples and read for weeks about this, but everything stops when I try to use Labview 8.0    I can’t read any values from my Master unit, neither write to it, or read any values in Modbus testers when I use null-modem cable.. I have tried different baud rates in my serial connection and it works perfect in Lookout, but Not Labview..
    I have even bought DSC module, but I can’t write to either com ports or Modbus testers..
    Please anybody… is there anybody that can give me help with this??
    Start address for for PIR detectors is 40017.1 (FC03)  and for writing bits for on of to light and heatsystem is 404097.1 (FC16)
    I would be very happy for any idea that can give me some positive results…  Look at the attached pdf file.
    Thanks.. and very best regards from
    Benjii…
    Attachments:
    G3800x016_02-2005_eng.pdf ‏70 KB

    Hi... and thanks for your answer..
    Yes, I have downloaded the NI Modbus drivers.. I have downloaded that one + a lot of other things about Modbus..
    I have also tried communication between lokout and labview true null-modem cable.. and it works..
    I have tried several Modbus examples and I communicate with most of them with null-modem cable.
    I write to the right registers as well, cause I use Modbus scanner to read the information..
    I have used the same settings for serial communication as my Master device use, bust still I can't get any response..
    There was an error message in one of my example from the Modbus INIT module.. Maybe I should try to set up a new connection using VISA ??
    Maybe the problem is to INIT my serial port? I have tried restarting my computer after closing my system..  But still, I have the same problem..
    I hope you can give me any idea...
    Thanks again..  by the way.. is it possible to write and read directly to serial port with the DSC module??  If so.. how?? 
    Very best regards..
    Benjii..

  • Help with a select statement from a SQL Server within a DTS !!

    Hello Gurus!
    I help with the script bellow, when I run it within DTS (in SQL Sever 2000), I got the error Invalid number/or not a valid month.
    Please bellow with the WHERE CLASUE '08/01/2001' AND '03/09/2002'
    And in the other hand I change this forma to '01-AUG-01' AND
    '03-MAR-2002', the DTS start and run witha successful messages, but it does not returns row, which is wrong.
    Somebady please help!
    Thanks Gurus!
    GET Total ANIs with Trafic By Area Code
    select
         substr(b.ct_num, 0,3) as Area_Codes,
         COUNT(DISTINCT B.CT_NUM) AS ANIS
    from
         wasabi.v_trans A,
         wasabi.V_Sur_Universal B,
         wasabi.V_Sub C,
         wasabi.V_Trans_Typ D
    where
         D.Trans_typ = A.Trans_Typ AND
         A.Sur_ID = B.Sur_ID AND
         C.Sub_ID = A.Sub_ID AND
         a.trans_stat != 'X' AND     
         a.Trans_DTTM >= '08/01/2001'AND
         a.Trans_DTTM < '03/09/2002 AND
         B.AMA3 = 'PHONE1'
         AND C.SUB_ID not in (100117)
    GROUP BY
         substr(b.ct_num, 0,3)
    ORDER BY
         Area_Codes

    I think that you need a "to_date" function eg
    change '08/01/2001' to to_date('08/01/2001','dd/mm/yyyy')

  • Help with restoring Address Book from Time Machine

    Problem: I really, really need to retrieve someone's number. I know it'll be in an old version of my Address Book. I can see when I open time Machine that my address book is backed up, but no matter the date I go to, it says the Address Book was last modified in 2012! I know for a fact I've updated (and backed up) the Address Book many times since then.
    Whenever I try to restore the Address Book, I do Time Machine > Applications > Address Book > 'restore'. But whenever I do this, the mac refuses to open the restored Address Book because it's 'required by mac OS X'.
    I don't understand.
    Please, how on earth do I dredge my Address Book from the depths of Time Machine?
    Please help!
    M

    Hello mb9236,
    Thank you for the details of the issue you are experiencing with restoring a contact from Time Machine. 
    It sounds like you are trying to restore the Address Book application.  The Address Book application is just the application and does not include the content in Address Book. 
    Instead, you will want to open Address Book and then launch Time Machine and restore your contacts from there.  Use the steps below to restore your contacts form a previous date (in step one instead of opening Mail or Finder, be sure you have Address Book open and in focus):
    If you use Time Machine to back up your computer, you can easily bring back one or more items you’ve lost, or recover older versions of files you’ve changed.
    Open a window for the item you want to restore. For example, if you accidentally deleted a file from your Documents folder, open the Documents folder. If you want to recover an email message, open your inbox in Mail.
    If you’re missing an item from the desktop, you don’t need to open a window.
    Click the Time Machine icon in the Dock, or open the Time Machine menu in the menu bar and choose Enter Time Machine. If you back up to a Time Capsule or other network disk, a message briefly appears while Time Machine connects your computer to the backup disk.
    Use the arrows or the timeline along the right side of your screen to browse through all the snapshots and backups Time Machine created. Gray tick marks on the timeline represent snapshots stored on your internal drive (portable computers only). Pink tick marks represent backups stored on your backup disk.
    If you need more information about an item, double-click to preview it. The windows in Time Machine behave just like Finder windows, so you can open folders, click items in the sidebar, and use the search field in the upper-right corner of the window.
    When you find the item you want to restore, select it, and then click Restore. You can restore individual items, multiple items, folders, or your entire hard disk. The restored item is returned to its original location. For example, if the item was found in the Documents folder, it is returned to the Documents folder. Time Machine may ask if you want to re-create one or more folders in order to return a restored item to its original location.
    If an item you restore has the same name as another item on your computer, you’re asked if you want to keep the current item, the restored item, or both.
    You can use Time Machine from within many applications. For example, you can open Address Book and then click the Time Machine icon in the Dock to recover contacts you may have accidentally deleted, or open iPhoto and then click the Time Machine icon in the Dock to view past versions of your iPhoto albums.
    OS X Lion: Restore items backed up with Time Machine
    https://support.apple.com/kb/PH4256
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • How to tell if second hard drive is going bad

    Back in November added second hard drive to my G4 and installed Leopard on it. In last month incredible amount of app crashes, hangs, "force quit," etc. and the occasional kernel panic. Did an erase and install and now seems like more of the same. Wh

  • Can I add a NAS via ethernet to the Time Capsule network?

    "I'm a PC," but am sick of spending all my time with Windows/Network conflicts and am getting ready to take the plunge into the Mac world (insert applause here). My router/switch is old, and I want "n" wireless capability, so my plan here is to go wh

  • Video problems after coming out of sleep mode

    Here's my setup: Apple TV connected to HDMI switch (Rocketfish) then to Samsung DLP TV. If I turn everything off and then later in the day try to watch the Apple TV, I get sound, but no picture. I shouldn't say "no picture" as the TV detects input (i

  • Connecting a TV to my Mac Pro

    Okay, been reading up in the forums on the Mac Pro with the stock nvidea 7300 GT card and connecting it to a TV as a second monitor for editing and watching video. 1) my DVI to S-Video/composite adapter will not work. this *****. 2) i could spend $40

  • Need help filling out pdf forms on iPad

    Adobe Reader (11.0.1) on my iPad2 (iOS 6.1.3) is not letting me fill out a form (just a bunch of text fields) that was created with Acrobat 8 Pro/LiveCycle. The form can be filled out fine with Reader 11.x on my WinXP desktop though. Any ideas?