'Learn Python the Hard Way' book help - PowerShell

There's a book out called 'Learn Python the Hard Way' and it wants to run the exercises in PowerShell, which no one apparently knows much about,  I just need to do a couple of simple functions, I just don't know how to do them and I don't
see how online.  Here's an excerpt : "
8. You should be back at a prompt similar to what you had before you typed python. If not find out why.
9. Learn how to make a directory in the Terminal. Search online for help.
10. Learn how to change into a directory in the Terminal. Again search online.
11. Use your editor to create a file in this directory. Make the file, “Save” or “Save As...”, and pick this directory.
12. Go back to Terminal using just the keyboard to switch windows. Look it up if you can’t figure it out.
13. Back in Terminal, see if you can list the directory to see your newly created file. Search online for how to list a directory. " 
I made  a directory in PowerShell but haven't got past that.  Any help?

I'm sorry you weren't able to get a knowledge level-appropriate response to your question.
The answer you were looking for:
Use the command "cd" (change directory). At the command line type 'cd <directory name>'
So if the name of your file is is called "testdirectory" you would type 'cd testdirectory'
And it's that simple.

Similar Messages

  • Can i transfer music not purchased from iTunes store from my iPod to new iMac. also need to move photos from iPod to iMac...help! computer was stolen and am now scrambling. Have learned the virtue of backing up the hard way!

    Is there a way to transfer music not purchased from the iTunes store from my ipod to my imac? Also, is it possible to move photos from ipod to imac? My computer was stolen so lost it all...have learned the lesson of backing up the hard way!

    See this older post from another forum member Zevoneer covering the different methods available for copying content on your iPod back to your PC or Mac.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Learn the Hard Way. Zooming in on video = Major Loss in Hi-Def Resolution?

    Hello, I'm doing a job for a friend. Basically a commercial job, but we're amateurs and doing it alone.
    We used a high-end Panasonic camera with a P2 card. It recorded at 30 fps and at 720p.
    I did all the editing, then compressed it for the iPad. Looks okay... BUT.
    BUT. I original shot from a few feet back extra to stop the actors from going out of frame. Then I zoomed in a little in editing using the "Image and Wireframe" option.
    I'm noticing the zoomed in shots look a little grainy. At first I thought this was my video card (don't laugh, but I'm using a white macbook). Now I'm realizing that it's the zooming in that's causing the graininess, as the shots were I didn't zoom in look crystal clear high-def.
    Is there anything I can do? I thought using the P2 Card would have such high resolution I'd be able to zoom in just fine. I guess this is learning the hard way? Next time, should I just mentally let go of the "Image and Wireframe" option as it's going to be a different quality than the other shots?
    Thanks guys. We might have to reshoot this whole thing.

    Yeah, you should render it out before giving up all hope.
    That said, if you zoom by a factor of 2, your 720 becomes 360.
    That's less resolution that SD! So it all depends +how much+ you zoom.
    Maybe you can zoom in a bit less, and it'll look passable.
    Sometimes I shoot at 1080p if I know I'll need to zoom +a little+
    or use a smoothcam function, so I'll have decent resolution at 720p.

  • Stacks the hard way

    HI
    for this prblem i have to make a stack, but i have to program the stack the hard way and cant use any java predetermined stack things so here goes my problem.
    I ahve been given this node class
    public class Node {
    public String data;
    public Node next;
    public Node(String tag, Node rest) {
    data = tag;
    next = rest;
    } // end of constructor
    } // end of class Node
    no in the main body of program would it work as a stack if i did the following:
    public class Stacking {
    private Node top;
    public Stacking() {
    top = null;
    public void pushTag(String startTag) throws TagError {
    if(top==null){
    top = new Node(StartTag,null)
    else {
    top.next=new Node(top,null);
    top.data = startTag;
    many thanks for any help that you can give me

    Here's something to get you started:public class Stack {
        private Node top;
        public Stack () {
            top = null;
        public void push (Object element) {
            top = new Node (element, top);
        public Object pop () { // throws EmptyStackException
            Object element = top.getElement ();
            top = top.getNext ();
            return element;
        public Object peek () { // throws EmptyStackException
            return top.getElement ();
        private class Node {
            private Node next;
            private Object element;
            public Node (Object element, Node next) {
                this.element = element;
                this.next = next;
            public Object getElement () {
                return element;
            public Node getNext () {
                return next;
    public class Test {
        public static void main (String[] parameters) {
            Stack stack = new Stack ();
            stack.push ("1");
            stack.push ("2");
            System.out.println (stack.pop ());
            System.out.println (stack.peek ());
            System.out.println (stack.pop ());
    }You still need to build the exceptions yourself.
    Kind regards,
      Levi

  • I plugged in my macbook pro power adapter and heard a loud bang. I checked the charger by opening it and found out the charger blew the whole mother board up. So i buy another charger, as i live in Egypt, that blew up the same way, please help.

    I plugged in my macbook pro power adapter and heard a loud bang. I checked the charger by opening it and found out the charger blew the whole mother board up. So i buy another charger, as i live in Egypt, that blew up the same way, please help.

    You'll certainly need a new logic board.
    If I were you, I would take the machine into your local Apple Store or an AASP and have them evaluate the problems and give you an estimate for repair. If you're out of warranty, be prepared to pay a very high price to get your computer repaired.
    Good luck,
    Clinton

  • Ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in hte library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in the library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    crash report, not a reply:
    Process:         iChat [611]
    Path:            /Applications/iChat.app/Contents/MacOS/iChat
    Identifier:      com.apple.iChat
    Version:         5.0.3 (745)
    Build Info:      iChat-7450300~8
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [101]
    Date/Time:       2011-12-17 19:23:00.671 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          387052 sec
    Crashes Since Last Report:           18
    Per-App Interval Since Last Report:  65 sec
    Per-App Crashes Since Last Report:   18
    Anonymous UUID:                      D59E7670-AAAB-498C-AEBF-93B692A2DE09
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ...thesis.MacinTalkSynthesizer          0x00000001159e418d MEOWReader::MEOWReader(int, void const*, char) + 35
    1   ...thesis.MacinTalkSynthesizer          0x00000001159b4246 SpeechChannelManager::UseVoice(VoiceSpec*, __CFBundle*) + 430
    2   ...thesis.MacinTalkSynthesizer          0x00000001159daf14 SEUseVoice + 71
    3   ....speech.synthesis.framework          0x00007fff85d42d4a NewSpeechChannel + 617
    4   com.apple.AppKit                        0x00007fff86ebee35 -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceCreator:voiceID:] + 125
    5   com.apple.AppKit                        0x00007fff86ebc56d -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceIdentifier:] + 89
    6   com.apple.AppKit                        0x00007fff86ebce7c -[NSSpeechSynthesizer initWithVoice:] + 336
    7   com.apple.iChat                         0x000000010009da09 0x100000000 + 645641
    8   com.apple.iChat                         0x000000010001b3ae 0x100000000 + 111534
    9   com.apple.IMCore                        0x00007fff865fa14c _IMPersonStatusIsOnline + 34989
    10  com.apple.IMCore                        0x00007fff865f9fee _IMPersonStatusIsOnline + 34639
    11  com.apple.IMCore                        0x00007fff865f1b78 _IMPersonStatusIsOnline + 729
    12  com.apple.iChat                         0x00000001000066ad 0x100000000 + 26285
    13  com.apple.iChat                         0x000000010001ac60 0x100000000 + 109664
    14  com.apple.IMCore                        0x00007fff865ecdaa _IMPersonStatusFromFZPersonStatus + 1525
    15  com.apple.CoreFoundation                0x00007fff8512493c __invoking___ + 140
    16  com.apple.CoreFoundation                0x00007fff8512480d -[NSInvocation invoke] + 141
    17  com.apple.CoreFoundation                0x00007fff851406e1 -[NSInvocation invokeWithTarget:] + 49
    18  com.apple.iChat.IMUtils                 0x00007fff859d82f7 -[IMLocalObject _handleInvocation:] + 182
    19  com.apple.iChat.IMUtils                 0x00007fff859d7e6f _IMRDeliverComponentArray + 138
    20  com.apple.iChat.IMUtils                 0x00007fff859d7dba _XDeliverComponentArray + 119
    21  com.apple.iChat.IMUtils                 0x00007fff859d7d23 IMRemoteObjectsMIG_server + 52
    22  com.apple.iChat.IMUtils                 0x00007fff859d7c55 _IMRServerPortCallback + 120
    23  com.apple.CoreFoundation                0x00007fff8511365e __CFMachPortPerform + 366
    24  com.apple.CoreFoundation                0x00007fff850eb6b1 __CFRunLoopRun + 5201
    25  com.apple.CoreFoundation                0x00007fff850e9d8f CFRunLoopRunSpecific + 575
    26  com.apple.HIToolbox                     0x00007fff87b757ee RunCurrentEventLoopInMode + 333
    27  com.apple.HIToolbox                     0x00007fff87b755f3 ReceiveNextEventCommon + 310
    28  com.apple.HIToolbox                     0x00007fff87b754ac BlockUntilNextEventMatchingListInMode + 59
    29  com.apple.AppKit                        0x00007fff869f2eb2 _DPSNextEvent + 708
    30  com.apple.AppKit                        0x00007fff869f2801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    31  com.apple.AppKit                        0x00007fff869b868f -[NSApplication run] + 395
    32  com.apple.AppKit                        0x00007fff869b13b0 NSApplicationMain + 364
    33  com.apple.iChat                         0x0000000100002da0 0x100000000 + 11680
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x00007fff82939c0a kevent + 10
    1   libSystem.B.dylib                       0x00007fff8293badd _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                       0x00007fff8293b7b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                       0x00007fff8293b2de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                       0x00007fff8293ac08 _pthread_wqthread + 353
    5   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 2:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 3:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000001010f2200  rbx: 0x00000001004c6670  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x00000001010f2200  rsi: 0x0000000000000000  rbp: 0x00007fff5fbfbf90  rsp: 0x00007fff5fbfbf60
       r8: 0x0000000000000017   r9: 0x00000001010f9a00  r10: 0x0000000000007000  r11: 0x0000000000000001
      r12: 0x00000001010f2200  r13: 0x00000001010f2200  r14: 0x0000000000000000  r15: 0x00000001004c70e0
      rip: 0x00000001159e418d  rfl: 0x0000000000010206  cr2: 0x0000000000000004

  • Why aren't my clips evident in my event? My project icons are there and the media IS in the event. I see it on the hard drive. HELP!

    Why aren't my clips evident in my event? My project icons are there and the media IS in the event. I see it on the hard drive. HELP!
    It is the strangest thing. I click on the project and it is there with all the stuff and cuts, etc., but no clips in the event!
    Thank you.

    You u r right.
    Thanks I figured it out. It was the sort by preference toggle UP TOP for clips. I was fabulously ignorant of it till this AM. Thank you very much for answering. 
    Mike S

  • What external drives work well with a late 2011 MacBook Pro?  I ask because I just found out the hard way that a Samsung EVO 840 does not.  Also should I avail myself of something that works with Thunderbolt or Firewire?

    What external drives work well with a late 2011 MacBook Pro (I7, Lion OS) apart from my Kingston flash and USB drive, and the SD drives that I use in my cameras and recording devices?  I ask because I just found out the hard way that a Samsung EVO 840 does not.  Also, should I avail myself of something that works with the Thunderbolt or Firewire connections?  I'm looking to back up music and video files created and/or processed in Logic Pro and the Adobe Production Premium software suite (Premier Pro, After Effects, Audition, etc).

    Hmm, not sure what problems you had installing this drive. The review here gives it good marks for Mac:
    http://www.amazon.com/Samsung-Electronics-EVO-Series-2-5-Inch-MZ-7TE1T0BW/produc t-reviews/B00E3W16OU
    There does seem to be a lot of prep to make it work:
    "1. Preparation to install your new shiny SSD
    1.a You will need a migration tool (I used the Sabrent kit USB 3.0 to Sata that was suggested in these review) see link http://www.amazon.com/gp/product/B00DQJME7Y/ref=oh_details_o03_s01_i01?ie=UTF8&p sc=1
    1.b You will need to download a trim enabler (mid 2012 macbooks only support native trim with apple brand ssd's) I recommend going to cindori.org and downloading trim enabler version 3.xx. You can do this step before or after the OS migration
    1.c You cannot use the Samsung SSD migration software *don't worry Mac has its own imaging/migration utility*"
    Also in those reviews:
    " Only down side when using this product in a Mac Mini is you will be required to download and install Trim Enabler so that your drive performs optimally on your Mac device. This is an Apple issue, not Samsung, but it is an extra step you will have to take after you install the hard drive, and any time you perform an OS upgrade." He rant's on.
    Personally I only deal with OWC:
    http://eshop.macsales.com/shop/SSD/OWC/
    They are very knowledgable and if there's a problem they will gladly take back the item. (Never happened to me yet - 8 years and counting).
    Just upgraded my 13" MBP 2011 to 120 GB for $79. Adobe CS 6 opens in 3 seconds! Awesome!
    When I was in Chicago I had a pro photographer for a client. She wound up with 4 internal drives in her Pro, 4 external drives and an dual array locked in a steel vault in the basement. All from OWC. OK she was a bit paranoid. Great client though.
    As far as value for price:
    http://eshop.macsales.com/item/OWC/MES3FH7500G/
    500 GB for $130.
    However as far as reliability is concerned:
    http://www.rockpapershotgun.com/2014/01/30/are-ssds-reliable/
    http://www.extremetech.com/computing/173887-ssd-stress-testing-finds-intel-might -be-the-only-reliable-drive-manufacturer
    So sudden power loss is an issue with SSDs.
    Personally I'd go with a moderate sized SSD internally and a conventional external for backup. An array would be the most reliable.

  • The Hard Way

    Looks like there will be some learning at the "professional's" expense. It starts with four identical books ordered - a wedding - and yes - the wedding date on an inside page is wrong.
    Lesson 1 - they don't proof your text -- date was September 16, 2007. Hey they shouldn't have to anyway.
    Lesson 2 - Scramble! I discovered by trying out my new docustyle book binder that Apple books are bound by heat. Unbound one and saw that pages are stapled - must be one heck of a stapler - then heat bound.
    Lesson 3 - Get HELP! Contacted printservicespro to see if they can help. Simply reprinting one page front/back would be the ultimate silk purse solution, but otherwise ...
    Lesson 4 - Order one book with four pages and rest blank. Could work but page numbering can't be overridden and mesh with look of page numbers in rest of books.
    Does anyone have an idea of how to solve this one? It may be moot if printservicepro is willing to help ... but if not ... and how does that heat binding glue work anyway? I have heard it can be reactivated multiple times.
    shannon

    Who didn't proof this? You? Your client? The
    printer?
    Looks like your mistake, eh.
    The OP already admitted it was his mistake. No need
    to rub it in his face.
    Really? A pro has thick skin, he or she can take it. But I don't see an honest admission; certainly nothing stated in plain English. I see a vague reference to a "professional" "learning" that "they" don't proof. You're assuming the OP is the pro but I do not know who "they" are. Could be the printer or the client.
    From the OP:
    Looks like there will be some learning at the "professional's" expense. It starts with four identical books ordered - a wedding - and yes - the wedding date on an inside page is wrong.
    Lesson 1 - they don't proof your text -- date was September 16, 2007. Hey they shouldn't have to anyway. <
    <div class="jive-quote">But the rest of your response is the probably the
    kind of thinking that will help the most.
    Glad to have passed your filtering system.
    bogiesan

  • ACCESSING INTERNET ON WINDOWS VISTA AFTER PARTITIONNG THE HARD DRIVE. HELP?

    We have just bought a new Apple Imac. We partitioned the Hard drive, using Bootcamp in order, to install Windows Vista Home edition (so that we can run our Sage Accounting package), We have been able to access our broadband internet with no problems on the Apple side of the partition, however on Windows we are finding it impossible to set up a connect, either ethernet or wireless. When we go into device manager in Vista it states that Broadcom network adapter cannot start (code 10). I believe this is a driver issue; However, I've contacted Microsoft and they have been unable to help, I have since contacted Apple and they said they don't offer support for Microsoft products. So we're basically stuck in limbo!! Can anyone help us or throw any ligt on what we could try next? Any input would be much appreciated. In anticipation of a reply, many thanks.

    I believe this is a driver issue;
    You did install those drivers from the DVD that came w/the computer didn't you?
    Please post further Boot Camp related questions in the Boot Camp forums:
    http://discussions.apple.com/category.jspa?categoryID=237

  • Uninstalling iTunes the hard way?

    I installed iTunes in my external hard drive which has done some weird stuff which changed its letter from G to I, and now it will not longer recognize itself, so now I have to uninstall it, but it won't allow me...
    The folder "iTunes" cannot be found or created, and is required.
    The default location for this folder is inside the "My Music" folder.
    So the only way I could think of to pull this off is to uninstall and reinstall the very hard way, which leads to my question... is there a hard way of uninstalling it?

    I installed iTunes in my external hard drive which has done some weird stuff which changed its letter from G to I
    do you get any joy with launching itunes again if you change the drive letter of the external back to G?
    although the following document deals with changing ipod drive letters, the same techniques can apply to changing other drive letters:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear

  • The only way I got Yosemite to Work.... the Hard way

    I think I have tried every suggestion in the support forum to get my Yosemite running on my 2013 15" MBP from Mavericks.   Everything I tried ended up with a black screen with a white circle with a slash.  Tried the upgrade way, upgrade with safe boot, upgrade with verbose boot.  I cleaned up the MBP, fixed all permissions, ran Disk warrior AND Diskutility first aid.
    I then tried a clean install by creating a boot disc on a USB drive.  Erased the MBP SSD.   That did work and I had a working Yosemite but none of my stuff on it.  So I did migration assistant.  Black screen with white slashed circle.
    Oh also tried the trim enabler someone suggested.
    So I went back and did another clean install to the working yosemite and use shared drives to move music, videos, and photos over to Itunes and Aperture.  Loaded new programs not on app store.  downloaded programs from App store.
    Everything is working now.  But it took about 80 hrs of working and waiting (mostly waiting).  Never had a problem like this before.   Evidently there was something on my MBP in the applications, or settings or something that Yosemite did not like.
    The good news is that my MBP is pretty lean now compared to the previous set up that had lots and lots of little apps that I had tried and stopped using but never removed complete with applications, application support, and application prefs.
    So if you are having problems you can do this brute force clean install and it should work.

    Hi Idreier,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit.
    Hopefully this helps!

  • What's the best way (book/tutorial) to learn CS4? (web design context)

    Hey,
    I'm very new to photoshop and have been hunting around the internet looking at tutorials picking up things here and there... but I would really prefer to get a book that contains everything I need to know. Preferably in a 'follow along' style, as opposed to one big reference manual.
    Can you recommend a good book (or if a not a good tutorial series) on using CS4? I'm most interested in using PhotoShop for web design. While I'm not interested in using DreamWeaver etc, I just want to learn how to make simple things for web design. Buttons. Banners. Etc.

    Step by step using basic tools and steps. Then some harder things tossed in but easy to master. Plus you can play with the settings to see different results.
    PS CS4 The missing Manual is good too and really digs deep.

  • Learned the hard way

    I am new to this - have a new iMac as of October.
    This morning the system crashed and when I started it up the photos that I had were gone.
    Can't figure why it crashed, I was typing away in Word.
    Any schooling on this would be appreciated.
    Yeah I know, always back it up....

    tallmom
    My guess is that you're using a v7 of iPhoto because you've only been using Macs since October, yes?
    Somethings to try:
    Try rebuild the library: hold down the apple and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    If that fails, try the following, ignoring number 1, obviously...
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums back.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Learning the hard way you should back up your iphone!

    Hey everyone,
    I dropped my iphone 5 in the bathtub, needless to say it no longer works. I can switch it on and off but the screen stays blank. My computer does not register when i try to plug it in. If I take it into an apple store is there any way they will be able to get my photos off the phone for me despite it not working?
    Thanks a lot.

    likely no
    try putting it in an open bowl of rice on the radiator or heated bathroom floor for 48hours to see if being died out will make it work a bit more you may get lucky
    I saved both iphone and ipod touch that way 

Maybe you are looking for

  • WOW, I have been busy!

    Bought a new car, 2 weeks ago, got a lease through g.m financial and said goodbye to my old man car!! (White chey impala)  New Credit Card:   Lowes, approved for $800.00 of course i did a chat and had it bumped up too $7,500.00!!! Amazing!Also got a

  • Display PDF in browser

    Hello, Can someone tell me more or less, how this options works? Is Adobe Reader still working as an ActiveX to be able to be embedded in a web browser? Or is this another way of doing it? Thank you

  • Having issues with OX Mavericks 10.9.5 update.

    After installing the update yesterday on my iMac and Mac Book Pro, I cannot get the computers to work with my company's VPN.  I can log on to the VPN, but I can't type in my e-mail, web browser or company software.  The VPN allows me to get into the

  • Acrobat forms and shared workspaces

    Can acrobat forms be intergrated with shared workspaces? If so, how?

  • Setting and getting focus on controls

    hi experts how can i set focus on a control (e.g. like on a button) Ashish