PL explain this code?

Hi, can someone please explain to me this code in detail?

$userReply = «»

While ($userReply - not "who's there?")

$userReply = read-host "TOC TOC!

Thank you

The - is a comparison operator and means 'different '.

For more information, see online courses of Tobias, the part on comparison operators (http://powershell.com/cs/blogs/ebook/archive/2009/03/08/chapter-7-conditions.aspx#table7.1) for example.

Tags: VMware

Similar Questions

  • can someone explain this code

    Hello, when I look at this code, I do not understand a code, can someone explain this code?
    Thank you very much!!!

    The creation of a 'method' for a vector object (in the old style of class definition), which gives it a method with an argument in degrees rotate.

    It replaces the vector existing x and properties of y (in the part "with (this)" code) based on the angle that was passed.

    I don't know if it gives correct results, because I don't check the math/trig, but it is the interpretation of what I see. What exactly do you want explained more in detail?

  • Please explain this code

    I take the test and found this code-

    public class Outer
    {

       public void someOuterMethod()
      {
       //Line 5
      }
       public class Inner { }
      
       public static void main(String[] argv)
      {
      Outer ot = new Outer();
       //Line 10
      }
    }

    The following code fragments inserted, for compiling?

    A.New inner(); On line 5
    B.New inner(); On line 10
    C.OT again. Inner(); On line 10
    D.new Outer.Inner (); On line 10

    Answer is A.

    Why not the answer is B?

    well explained by cardan2

    further explanation

    Option A compile without problem

    Option B gives an error - variable not static cannot be referenced from a static context.

    There is no option package C only ot.

    Option D gives an error - variable not static cannot be referenced from a static context.

    hope you get it

  • can someone explain this code pls!

    speed * =. 98;
    (x = Math.sin(_rotation*(Math.PI/180)) * speed *-1;
    y = Math.cos(_rotation*(Math.PI/180)) * speed *-1;
    If (! _root.granica.hitTest (x, FLF, _x + y, true)) {}
    _x += x;
    FLF += y;
    } else {}
    speed * =-. 6;
    }

    Granica root is an instance name that I used, it can be something else...

    I think that shat speed is a variable or sth, cus I've already used it previously in the code and I guess now I'm just set...

    but someone pleasee help out me by explaining what part of the code, we hear what may...

    BTW I also think it has something to do with the trigonometric functions, that sin and cos...

    TNX in advance

    speed * =. 98; / / decreases the speed - IE, this object slow down gradually
    (x = Math.sin(_rotation*(Math.PI/180)) * speed *-1; / / these two lines cause the object to move in the direction of _rotation, rotation of the object
    y = Math.cos(_rotation*(Math.PI/180)) * speed *-1;
    If (! _root.granica.hitTest (x, FLF, _x + y, true)) { / / This checks no imminent collision with _root.granica }
    _x += x; / / If there is no collision that would happen, advance to this post
    FLF += y;
    } else {}
    speed * =-. 6; / / If there is an imminent collision, not to move on this loop inversion with a lower speed
    }

  • Can someone explain why this code is not overwrite another file on the sd card?

    I use a table of bitmap with a few different images. According to a trigger, I want to change the wallpaper of the home screen blackberry in the image of my choice. I can do that for 1 single image, it is not updated while it should be. Here is my code, help! :

    * Note [D.kF] is an array of Bitmap

    * D.bgNumber evolves according to the program (that is to say, it takes a different image)

    Card graphics graphics = Graphics.create (D.kF [D.bgNumber]);

    Encoder JPEGEncodedImage = JPEGEncodedImage.encode(D.kF[D.bgNumber],100);
    try {}
    ExtendedFileConnection fconn = (ExtendedFileConnection) connector
    .the ("file:///store/home/user/pictures/image.jpg",
    Connector.READ_WRITE);
    fconn.enableDRMForwardLock ();
    {if(!fconn.) Exists())}
    fconn. Create();
    }
    OutputStream os = fconn.openOutputStream ();
    OS. Write (Encoder.GetData ());
    OS. Close();
    fconn. Close();
    } catch (Exception e) {}
    System.out.println ("output file error:" + e.getMessage ());
    }

    HomeScreen.setBackgroundImage("file:///store/home/user/pictures/image.jpg");

    Sorry, I borrowed this code for my own purposes, so I'm quite foggy as to its functions. I have just made a run through in the Simulator and noticed that the image has been "locked" in the actual file. He says DRM Forward Lock. Now I read a little about it and I thought it was a necessary element of this encoding.

    In any case, I reduced on the line of lock forward and his now appear correctly as the home screen. So I guess its resolved, but, you, what is the purpose of the lock?

  • ask the product key, I put in this code came up0xCOO4COO8

    telling me I need a new product key or product key to type on the label. I typed in the product key on the label marked product key (even with a key).

    After typing in the code, this code came 0xC4COO8.
    Windows has always turns on, runs slowly and jumpy.
    Thanks, * address email is removed from the privacy * Susan

    See the following topics:

    http://Windows.Microsoft.com/en-us/Windows7/Windows-7-activation-error-0xC004C008

    Please run the Microsoft Genuine Diagnostics Tool then copy and paste the results into an answer here for further analysis:
    http://go.Microsoft.com/fwlink/?LinkId=52012

    Have you tried to restart by phone?

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • Add a break in this code... help!

    Hello world!!!

    I write code for up and down the speed of the song...

    for the game of the song, I write this code:

    public function play()evt:MouseEvent):Sub
    {
    target
    = new ByteArray();
    var url : URLRequest = new URLRequest("C://song.mp3");
    mp3Start
    = new Sound();
    mp3Start
    . addEventListener (Event. FULL , full );
    mp3Start
    . load (url);

    position
    = 0.0;
    rate
    = 1.0;
    sound
    = new Sound();
    Sound. addEventListener ()SampleDataEvent. SAMPLE_DATA , sampleData );

    }
    public function complete()event:event):Sub
    {
    canal
    = sonore. play ();
    }

    This code is good for playback and stop song... I want to add the song break... How do I?

    Help me please!

    There is no pause feature.  What you need to do is to stop the sound and remember where you stopped so that when playback is stopped specify you where to start.  Here is a help document that explains it:

    http://help.Adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204 - 7d12.html

  • Words CSS, explaining a code

    I know how to create codes but I don't know how to explain. For example,.

    {H2. Checkmark}

    background: url(images/ckecmark.png) no-repeat;

    line-height: 18px;

    text-indent: 28px;

    are-size: 12px;

    }

    'I've defined a style in the heading 2 tag' does this sound?

    .. .or

    < h2 style = "background: url(images/checkmark.png) no-repeat" > section sample < / h2 >

    "I used a style in the HTML code.

    .. and

    < div id = "header" > contents < / div >

    "I wrapped in an id header content.."

    Is there a correct way to explain those?

    A lot of that depends on who you are trying to explain this.  If it's a client who does not know didly on web development is perhaps even too. Simply tell them you "use updated industry standard in the form of CSS (Cascading Style Sheets) system call and the advantage of doing it this way is if you decided to change your titles from grey to blue I could change right on the e line of the code and the whole site would be updated.

    It is usuallt enough to get their heads nodding and thinking that you really know your stuff.

    For developers, there are four things to keep in mind to describe your CSS

    1 - is styling the HTML standard - as in the case or put in shape one

    or

    tag

    2. set a 'class' style that can be applied to almost anything well enough

    3 - define a style 'id' that can be applied to almost anything but normally allows most one style

    and only used once per page

    4. as in your example of the

    tag this is called a style in line where you put just shaped that an instance of this tag - use these sparingly... or not at all. Don't forget that the big advantage of CSS is to be able to make decisions of global style - online styles renounce it and for this reason are little better than the tags do.

    I hope this helps.

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

    www.facebook.com/LawrenceCramer

  • What does this code on my 2012 MBAir: 4BAT/6 / 40000005:ox898F7790

    MBAir i7 end 2012 does not work out of the battery. Instantly died. Works with power cord only. Battery shows fully charged. The battery shows as good. 5979 mAh 6700.

    A ran the test phase and got this code: 4BAT/6 / 40000005:ox898F7790

    What does that mean? A new battery will solve the problem?

    Or it means something else?

    Thank you

    This error code indicates a problem with the battery.  Your best option is to make an appointment at an Apple store genius bar for a FREE evaluation.  They should be able to determine if the MBA requires a new battery or if there is a problem with the internal connection.

    Ciao.

    Addendum: Try a SMC reset:

    https://support.Apple.com/en-us/HT201295

  • How to optimize this code?

    Hi all

    The function I want to achieve is very simple. The reading of data from data acquisition, play the sound file if a rising edge is detected and stop playing if a front down is detected.

    Attachment is my code, it works, but if I stop the program and restart it, the program will be somewhat stuck (but), so all I can do is to put an end to the task and to reopen the program. I put two structures case for each channel, I believe that the problem is caused by the second case structure.

    I am a beginner of labview, could someone optimize me this code?

    Thank you!

    First, use the charts to your advantage.  You can do this fairly simple dynamic conversion of the Data Type in a table of waveforms.  Trigger detection can treat an array of waveforms.  You can then process all detections of relaxation in a loop, updated what trigger (and level), that you are looking for dynamically.

  • create the code with this code snippet

    I'm curious...

    I can't create a snippet of code with this code. (located in the first post)

    http://forums.NI.com/T5/LabVIEW/event-structure-with-value-changes/m-p/1937505#M646059

    However, I can create excerpts of its subsections.

    Tried different versions of LabVIEW with the same result.

    Can someone create a snippet?  Just curious.

    I'm not stuck or anything... just curious...  Maybe I should have posted the breakpoint...

  • This code cannot possibly. Why is it a failure?

    LV 2010 (Yes 2010), Win Vista.

    I have a SCREEN UPDATE event, occurring at 2 Hz.

    The event features an array of values, one for each channel.

    Four CHANNEL SELECTORS lead an INDEX TABLE operation.

    The four selected channels are shown separately on digital indicators and then combined with a waveform graph.

    The small subVIs are there to produce a NaN value to draw if the channel selector is - 1 (none).

    Currently, they are modified to generate a value for "123.0", for debugging purposes.

    AID indicates that the TABLE INDEX will produce a default value of 0 if the input index is outside the bounds of the array.

    However, in certain circumstances (see JING http://screencast.com/t/0kO0GDhlo0E), indicators of the "VALUE of the GRAPH' fail to update.

    In this video, I put the indicators to the values of 1, 2, 3, 4, before to start the program.

    I DO NOT set the DEFAULT value, simply enter the numbers in the lights on the Panel.

    The two selected channels are apparently normally updated.  The other two, who remain at ZERO (-1) do not update.

    I expect to see a zero, or SOMETHING, but the '3' and '4' never change.

    This code is called, as evidenced in the table of progress, but the values do not change.

    If I change the channel on a direct channel, then back to ZERO, it returns 0.  Which is expected.

    But why it isn't updated first?

    If I exchange the channel around selectors, the problem swaps with her. Any selector set to NONE has the corresponding indicator unchanged compared to the starting value.

    ON THE CODE:

    It is a CONCAVE VI, inserted in a secondary SCHOOL.

    Here is the embed code:

    The idea is that each control on the page is a secondary, each will receive an instance of a VI.

    For each school, I open a new ref becomes this VI (he put to be reentrant) and insert this ref in the secondary.

    I put a few values of control and launch it running.

    HIGHLIGHTS:

    1... If I change the OPTIONS = 8 options = 0 in the above, the problem goes away. Everything works as expected.

    2... N = 1 in the above, is simply to limit the number of instances, for debugging purposes.

    3... I get no error at any time.

    4... I tried with and without wire at the entrance to REFNUM REFERENCE OPEN VI VI TYPE SPECIFIER.  No change.

    A research on this topic raises some issues of 2008 with LV 8.0, and a suggestion there to serve the point inserted into a LIVING had no effect here.

    So, why not the seeing if the index is - 1, initially?  It's as if the code is not there.

    And why making it not reentrant fixed it?

    (I think I got this way so I can have multiple instances).


  • HP pavilion g6: I get this code after pressing bios password three times. 78120018

    I get this code after pressing bios wrong password three times. 78120018

    @Wastur

    Enter 67888038

    Kind regards

    DP - K

  • How to create this code in labview

    Hello...

    Please helpe me for that matter

    I have create this code in 'c' in ' labview "..."

    ex c:

    If {portc.f1 == 1}

    portc. F0 = ~ portc. F0

    }

    ex labview:

    If button is {1}

    led round = ~ led Tower

    }

    Thank you...

    pjr1121 wrote:

    See picture attached.

    Why people insist on the use of knots of property to get the value.  It has the same problems with the race as the local variable conditions, but is extremely slow (forces a thread page on the user interface thread).  In fact, you should keep the value of the LED in a shift register.

  • My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?

    My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?

    They are only updated office or all updates?

    For Office updates, usually to pick up the item at the: http://www.microsoft.com/downloads/en/default.aspx

    then manually download and install the same.

    If all updates, perhaps consider the following general tips-

    Option: File of Windows Update agent wups2.dll is incorrectly registered and the registry associated with the Wups2.dll file files are missing.

    Method 1: Save the Windows Update files

    1. Click Start and type notepad in the box start the search.
    2. click on Notepad in the list programs.
    3. copy the following commands, and then paste them into the opened Notepad window:
    REGSVR32 WUPS2. DLL/S
    REGSVR32 STINKS. DLL/S
    REGSVR32 WUAUENG. DLL/S
    REGSVR32 WUAPI. DLL/S
    REGSVR32 WUCLTUX. DLL/S
    REGSVR32 WUWEBV. DLL/S
    REGSVR32 JSCRIPT. DLL/S
    REGSVR32 MSXML3. DLL/S
    4. in Notepad, on the file menu, click Save as.
    5. in the file type list, click all files.
    6. in the file name box, type register.bat.
    7. save the Register.bat file to your desktop.
    8 right-click the Register.bat file, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password or click on continue.
    9. try to reinstall updates.

    http://support.Microsoft.com/kb/958053
    See: method 1: save the Windows Update files

    http://support.Microsoft.com/kb/326253
    Method 5: Registry Windows Update engine files

    http://support.Microsoft.com/kb/971058
    How to reset the Windows Update components?

    Method 2: Download and install Windows Update agent

    Windows Update Agent

    How to get the latest version of the Windows Update Agent to help manage updates on a computer
    http://support.Microsoft.com/kb/949104

    Information for network administrators about how to obtain the latest Windows Update Agent
    http://support.Microsoft.com/kb/946928

    Click Start, click run, click Browse, navigate to the file you saved and click Open.

    Add the switch /wuforce at the end of the command run and then click OK. For example, the command run might look like this: "C:\WindowsUpdateAgent30-x86.exe" /wuforce

    Click run.

    Follow the steps to complete the wizard.

    Important

    To reinstall Windows Update Agent - download the relevant file from one of the links provided above and save it to a drive where Vista is not loaded because the file cannot be launched directly from the root directory of the system.

    Click Start, run, type: "D:\WindowsUpdateAgent30-x86.exe /wuforce" (without the quotes) and press ENTER to install the Windows Update engine.

    Note: There is a space between "D:\WindowsUpdateAgent30-x86.exe" and "/ wuforce.

    D: is the drive where Windows is not installed (IE a flash drive or a 2nd hard drive etc.)

    TaurArian [MVP] 2005-2010 - Update Services

Maybe you are looking for

  • Bootcamp installs all the Windows drivers?

    Hi, I intend to do Bootcamp on my Mac. I will be installing Windows 7. Before going further, I would like to know if all my Windows drivers will be installed, as they are the last thing I want to worry.

  • Cannot resize the window to size full screen

    I just got my new mac mini, and I can't resize the windows as I want.  I place my browser at the top window and use the arrow down to resize height screen entirely, but it goes only to where would be the dock. BUT I moved the dock to the right. How c

  • What happens to the W2k3 Server forum space

    Seems of this forum has changed and I can't find the W2k3 box

  • KB975741 is it true?

    I get updates for my system to my PC manufacturer and KB975741 appeared in the list of recommended downloads.  I installed all downloads recommended for my PC... all have been installed properly with the exception of KB975741, so after rebooting I he

  • Laser jet CP1025nw: CP1025

    I am trying to connect my printer laserjet CP1025nw) to my laptop without wire - but am not having luck Could not find a driver compatible or current (have had 10 Windows installed) and can print is no longer this PC. Can not find a Setup Wizard is A