archive-com.com » COM » T » TECHOTOPIA.COM

Total: 1018

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Drawing Graphics using PowerShell 1.0 and GDI+ - Techotopia
    the mypen object created in the previous section PS C tmp pen get member TypeName System Drawing Pen Name MemberType Definition Clone Method System Object Clone CreateObjRef Method System Runtime Remoting ObjRef CreateObjRef Type requestedT Dispose Method System Void Dispose Alignment Property System Drawing Drawing2D PenAlignment Alignment get set Brush Property System Drawing Brush Brush get set Color Property System Drawing Color Color get set CompoundArray Property System Single CompoundArray get set CustomEndCap Property System Drawing Drawing2D CustomLineCap CustomEndCap get set CustomStartCap Property System Drawing Drawing2D CustomLineCap CustomStartCap get DashCap Property System Drawing Drawing2D DashCap DashCap get set DashOffset Property System Single DashOffset get set DashPattern Property System Single DashPattern get set DashStyle Property System Drawing Drawing2D DashStyle DashStyle get set EndCap Property System Drawing Drawing2D LineCap EndCap get set LineJoin Property System Drawing Drawing2D LineJoin LineJoin get set MiterLimit Property System Single MiterLimit get set PenType Property System Drawing Drawing2D PenType PenType get StartCap Property System Drawing Drawing2D LineCap StartCap get set Transform Property System Drawing Drawing2D Matrix Transform get set Width Property System Single Width get set With knowledge of these methods and properties it is possible to change characteristics of an object For example the color and width properties of the mypen object may be modified as follows mypen color red mypen width 10 Creating the WinForms Form and the Graphics Object Having defined the GDI drawing objects the next step is to create a canvas on which to draw For the purposes of this example a Winforms Form will act as the drawing canvas To create this form it is necessary to make use of the WinForms API form New Object Windows Forms Form Once the Form has been created the next step is to create a graphics object on which to draw using the createGraphics method of the Form object formGraphics form createGraphics The Paint Event Handler Applications with graphical user interfaces are primarily event driven This means that event handlers must be written to define what actions are to be performed when certain activities occur with regard to the user interface When a user clicks a button for example an event handler performs the necessary tasks associated with that button being pressed if the button was a Close button the event handler would be responsible for exiting the application In terms of graphics drawing when a form is displayed a paint event is triggered Similarly when a form needs to be repainted for example because all or part of the form was obscured and then uncovered by another window the paint event is also triggered It is therefore the job of the paint handler to perform the graphics drawing tasks A paint event handler is declared in Windows PowerShell via a call to add paint form add paint code or call to a function to perform graphics drawing Drawing Graphics with Windows PowerShell and GDI As outlined in the preceding section the code to draw the graphics is contained in the paint event handler

    Original URL path: http://www.techotopia.com/index.php/Drawing_Graphics_using_PowerShell_1.0_and_GDI%2B (2016-02-13)
    Open archived version from archive


  • Using COM with Windows PowerShell 1.0 - Techotopia
    Property bool TheaterMode get set ToolBar Property int ToolBar get set Top Property int Top get set TopLevelContainer Property bool TopLevelContainer get Type Property string Type get Visible Property bool Visible get set Width Property int Width get set Interacting With COM Objects With the information covered so far in this chapter it is now possible to begin working with COM objects Clearly once an instance of an object has been created it is then possible to begin calling methods and setting properties on the object to make it perform tasks and behave in certain ways As an example of this in action we will create an instance of the InternetExplorer Application object make it visible on the Windows desktop and navigate to a specific URL iexplorer new object com InternetExplorer Application strict Create instance of IE iexplorer Visible true Make it visible on the desktop iexplorer navigate2 http www techotopia com Navigate to the Techotopia home page Interacting with the Windows Shell Windows PowerShell and COM provide a mechanism for interacting with various aspects of the Windows GUI through an object named Shell Application By manipulating an instance of this object it is possible to perform such tasks as navigate the file system using Windows Explorer launch control panel items and cascade and tile windows on the desktop As with other COM objects an instance of the Shell Application class is instantiated using the new object cmdlet as follows winshell new object com Shell Application Once the object is created a list of methods and properties may once again be obtained using get member gm PS C tmp winshell get member TypeName System ComObject 866738b9 6cf2 4de8 8767 f794ebe74f4e Name MemberType Definition AddToRecent Method void AddToRecent Variant string BrowseForFolder Method Folder BrowseForFolder int string int Variant CanStartStopService Method Variant CanStartStopService string CascadeWindows Method void CascadeWindows ControlPanelItem Method void ControlPanelItem string EjectPC Method void EjectPC Explore Method void Explore Variant ExplorerPolicy Method Variant ExplorerPolicy string FileRun Method void FileRun FindComputer Method void FindComputer FindFiles Method void FindFiles FindPrinter Method void FindPrinter string string string GetSetting Method bool GetSetting int GetSystemInformation Method Variant GetSystemInformation string Help Method void Help IsRestricted Method int IsRestricted string string IsServiceRunning Method Variant IsServiceRunning string MinimizeAll Method void MinimizeAll NameSpace Method Folder NameSpace Variant Open Method void Open Variant RefreshMenu Method void RefreshMenu ServiceStart Method Variant ServiceStart string Variant ServiceStop Method Variant ServiceStop string Variant SetTime Method void SetTime ShellExecute Method void ShellExecute string Variant Variant Variant Variant ShowBrowserBar Method Variant ShowBrowserBar string Variant ShutdownWindows Method void ShutdownWindows Suspend Method void Suspend TileHorizontally Method void TileHorizontally TileVertically Method void TileVertically ToggleDesktop Method void ToggleDesktop TrayProperties Method void TrayProperties UndoMinimizeALL Method void UndoMinimizeALL Windows Method IDispatch Windows WindowsSecurity Method void WindowsSecurity WindowSwitcher Method void WindowSwitcher Application Property IDispatch Application get Parent Property IDispatch Parent get Now that we have an object instance and a list of methods and properties it is time to start performing some tasks For example to invoke Windows Explorer initialized to a specified

    Original URL path: http://www.techotopia.com/index.php/Using_COM_with_Windows_PowerShell (2016-02-13)
    Open archived version from archive

  • Windows PowerShell 1.0 Security - Techotopia
    search of the local system Once the location has been identified add it to the Windows PATH environment variable To create a local certificate authority issue the following command at the Windows PowerShell prompt PS C Users Administrator makecert n CN PowerShell Certification Root a sha1 eku 1 3 6 1 5 5 7 3 3 r sv cert pvk cert vcer ss Root sr localMachine When executed a dialog box will appear as illustrated in the following figure prompting for a Private Key Password Enter a suitable password and click on the OK button to proceed If the creation process is successful the makecert exe tool will display Succeeded before returning to the prompt Creating a Certificate A self signed certificate is created using the makecert exe tool once again as illustrated below PS C Users Administrator makecert pe n CN PowerShell Cert ss MY a sha1 eku 1 3 6 1 5 5 7 3 3 iv cert pvk ic cert cer Succeeded Before generating the certificate a dialog will appear requesting the password specified in the preceding section Enter the password and click OK to continue On completion the certificate will be located in the specified file cert cer in the above example In addition the private key is contained in the cert pvk file The certificate will also be placed into the system s certificate store and may be viewed and accessed by issuing the following command PS C Users Administrator get childitem cert currentuser my codesign fl Subject CN PowerShell Cert Issuer CN PowerShell Certification Root Thumbprint 3152D8D9584375916BB9A7511BF2E789F257AD0B FriendlyName NotBefore 12 30 2008 8 31 38 AM NotAfter 12 31 2039 3 59 59 PM Extensions System Security Cryptography Oid System Security Cryptography Oid As shown in the above output the certificate creation process specified default start and end dates for period of validity Different dates may be specified during creation through the use of the b and e options PS C Users Administrator makecert pe n CN PowerShell Cert b 01 01 2009 e 01 01 2020 ss MY a sha1 eku 1 3 6 1 5 5 7 3 3 iv cert pvk ic cert cer Succeeded Signing a Windows PowerShell Script The first step in signing a PowerShell script is to obtain the certificate and assign it to a variable PS C Users Administrator certificate get childitem cert currentuser my codesigning 0 The 0 index in the above command instructs PowerShell to use the first certificate in the store If multiple certificates are stored the index value should be modified to match the desired certificate For example to access the second certificate the index would need to be changed to 1 Having extracted the certificate object from the store the next step is to configure PowerShell to only accept signed scripts PS C Users Administrator set executionpolicy allsigned At this point any attempt to execute an unsigned script will result in an error message PS C Users Administrator t ps1 File C

    Original URL path: http://www.techotopia.com/index.php/Windows_PowerShell_1.0_Security (2016-02-13)
    Open archived version from archive

  • Windows PowerShell 1.0 Essentials - Techotopia
    Cmdlet The Out File Cmdlet The Out Null Cmdlet The Out String Cmdlet Formatting PowerShell Output Understanding and Creating Windows PowerShell 1 0 Variables Naming a Variable in PowerShell Creating and Assigning a Value to a PowerShell Variable Accessing PowerShell Variable Values Changing the Type of a PowerShell Variable Pre defined PowerShell Variables Basic Windows PowerShell 1 0 Types PowerShell Numeric Types Specifying Hexadecimal Numbers PowerShell Boolean Type PowerShell String Type PowerShell Type Casting Working with Arrays in Windows PowerShell 1 0 Creating a Windows PowerShell Array Creating Windows PowerShell Multidimensional Arrays Obtaining the Length of an Array Accessing Elements in a Windows PowerShell Array Accessing Elements in a Windows PowerShell Multidimensional Array Adding new Elements to a Windows PowerShell Array Combining Windows PowerShell Arrays Windows PowerShell 1 0 Hashtables Creating PowerShell Hashtables Accessing Hashtable Elements Modifying Windows PowerShell Hashtable Elements Adding Elements to a Windows PowerShell Hashtable Removing Elements from a Windows PowerShell Hashtable Clearing All Elements from a Windows PowerShell Hashtable Combining Hashtables Listing Hashtable Count Keys and Values Basic Windows PowerShell 1 0 Operators What is an Expression Windows PowerShell Basic Assignment Operator Windows PowerShell Compound Assignment Operators Windows PowerShell Arithmetic Operators PowerShell Increment and Decrement Operators Windows PowerShell Operator Windows PowerShell Bitwise and Logical Operators Windows PowerShell 1 0 Comparison and Containment Operators Windows PowerShell Comparison Operators Windows PowerShell Containment Operators Performing Windows PowerShell Comparisons Using Comparison Operators with Arrays and Collections Using PowerShell Containment Operators Windows PowerShell 1 0 Pipes and Redirection PowerShell Pipes Windows PowerShell Redirection Operators Windows PowerShell Redirection Redirecting Error Output Windows PowerShell 1 0 Flow Control with if else and elseif Using the if Statement Using if else Statements Using if elseif Statements Summary Windows PowerShell 1 0 Looping with the for and foreach Statements The PowerShell for Loop Creating an Infinite for Loop Breaking Out of a for Loop Nested for Loops Breaking From Nested Loops with Labels Continuing for Loops Windows PowerShell foreach Loops Windows PowerShell 1 0 Looping with do and while Statements The Windows PowerShell while Loop Windows PowerShell do while loops Breaking from while Loops The continue Statement The Windows PowerShell 1 0 switch Statement Why Use a switch Statement Windows PowerShell switch Statement Syntax A switch Statement Example Explaining the Example Using break in a Windows PowerShell switch Statement The switch Variable Using Expressions in a Windows PowerShell switch Statement Wildcards Regular Expressions and Case Sensitivity in switch Statements Using switch Statements to Iterate Through Ranges and Collections Using the continue Statement Windows PowerShell 1 0 Functions Creating and Calling a Simple Windows PowerShell Function Passing Parameters to a Function Specifying Named Parameters Function Parameter Initialization Specifying Function Parameter Types Using Functions in a Pipeline Returning from Functions Windows PowerShell Function Administration Working with File Systems in Windows PowerShell 1 0 Getting Disk Drive Information Creating New Windows PowerShell Drives Getting Information About Network Drives in PowerShell Windows PowerShell File System Directory Listings Copying Remaining and Deleting Files and Directories Windows PowerShell 1 0 File

    Original URL path: http://www.techotopia.com/index.php?title=Windows_PowerShell_1.0_Essentials&oldid=21941 (2016-02-13)
    Open archived version from archive

  • Pages that link to "Windows PowerShell 1.0 Essentials" - Techotopia
    50 100 250 500 Main Page links File PowerShell 1 0 Essentials jpg redirect page links Installing Windows PowerShell 1 0 links The Basics of the Windows PowerShell 1 0 Interactive Shell links Windows PowerShell 1 0 Commands and Aliases links Windows PowerShell 1 0 String Quoting and Escape Sequences links Directing and Formatting Windows PowerShell 1 0 Output links Understanding and Creating Windows PowerShell 1 0 Variables links Basic Windows PowerShell 1 0 Types links Working with Arrays in Windows PowerShell 1 0 links Windows PowerShell 1 0 Hashtables links Basic Windows PowerShell 1 0 Operators links Windows PowerShell 1 0 Comparison and Containment Operators links Windows PowerShell 1 0 Pipes and Redirection links Windows PowerShell 1 0 Flow Control with if else and elseif links Windows PowerShell 1 0 Looping with the for and foreach Statements links Windows PowerShell 1 0 Looping with do and while Statements links The Windows PowerShell 1 0 switch Statement links The Basics of Creating and Running Windows PowerShell 1 0 Scripts links Windows PowerShell 1 0 Functions links Working with File Systems in Windows PowerShell 1 0 links Windows PowerShell 1 0 File Handling links An Overview of Windows PowerShell 1 0

    Original URL path: http://www.techotopia.com/index.php/Special:WhatLinksHere/Windows_PowerShell_1.0_Essentials (2016-02-13)
    Open archived version from archive

  • Windows PowerShell 1.0 Essentials - Techotopia
    PowerShell Hashtables Accessing Hashtable Elements Modifying Windows PowerShell Hashtable Elements Adding Elements to a Windows PowerShell Hashtable Removing Elements from a Windows PowerShell Hashtable Clearing All Elements from a Windows PowerShell Hashtable Combining Hashtables Listing Hashtable Count Keys and Values Basic Windows PowerShell 1 0 Operators What is an Expression Windows PowerShell Basic Assignment Operator Windows PowerShell Compound Assignment Operators Windows PowerShell Arithmetic Operators PowerShell Increment and Decrement Operators Windows PowerShell Operator Windows PowerShell Bitwise and Logical Operators Windows PowerShell 1 0 Comparison and Containment Operators Windows PowerShell Comparison Operators Windows PowerShell Containment Operators Performing Windows PowerShell Comparisons Using Comparison Operators with Arrays and Collections Using PowerShell Containment Operators Windows PowerShell 1 0 Pipes and Redirection PowerShell Pipes Windows PowerShell Redirection Operators Windows PowerShell Redirection Redirecting Error Output Windows PowerShell 1 0 Flow Control with if else and elseif Using the if Statement Using if else Statements Using if elseif Statements Summary Windows PowerShell 1 0 Looping with the for and foreach Statements The PowerShell for Loop Creating an Infinite for Loop Breaking Out of a for Loop Nested for Loops Breaking From Nested Loops with Labels Continuing for Loops Windows PowerShell foreach Loops Windows PowerShell 1 0 Looping with do and while Statements The Windows PowerShell while Loop Windows PowerShell do while loops Breaking from while Loops The continue Statement The Windows PowerShell 1 0 switch Statement Why Use a switch Statement Windows PowerShell switch Statement Syntax A switch Statement Example Explaining the Example Using break in a Windows PowerShell switch Statement The switch Variable Using Expressions in a Windows PowerShell switch Statement Wildcards Regular Expressions and Case Sensitivity in switch Statements Using switch Statements to Iterate Through Ranges and Collections Using the continue Statement Windows PowerShell 1 0 Functions Creating and Calling a Simple Windows PowerShell Function Passing

    Original URL path: http://www.techotopia.com/index.php?title=Windows_PowerShell_1.0_Essentials&printable=yes (2016-02-13)
    Open archived version from archive

  • About RHEL 6 Essentials - Techotopia
    is designed to provide detailed information on the use and administration of the Red Hat Enterprise Linux 6 distribution For beginners the book covers the basics of configuring the desktop environment resolving screen resolution issues and configuring email and web servers Installation topics such as network installation and dual booting with Microsoft Windows are covered together with all important security topics such as configuring a firewall and user and group

    Original URL path: http://www.techotopia.com/index.php/About_RHEL_6_Essentials (2016-02-13)
    Open archived version from archive

  • A Brief History of Red Hat Linux - Techotopia
    ACC catalog business were Linux CDs and related open source software Around the same time Marc Ewing had created his own Linux distribution which he named Red Hat Linux after his propensity to wear a red hat In 1995 ACC acquired Red Hat and adopted the name Red Hat Inc Red Hat went public in 1999 making both owners fabulously wealthy Early releases of Red Hat Linux were shipped to customers on floppy disks and CDs this of course predated the widespread availability of broadband internet connections When users encountered problems with the software they could contact Red Hat only by email In fact Bob Young often jokes that this was effective in limiting support requests since by the time a customer realized they needed help their computer was usually inoperative and therefore unavailable to be used to send an email message seeking assistance from Red Hat s support team In later years Red Hat provided better levels of support tied to paid subscriptions and you can now get phone support 24 hours a day Red Hat Enterprise Linux 6 is the latest commercial offering from Red Hat and is targeted at corporate mission critical installations It is an open source product in that you can download the source code free of charge and build the software yourself if you wish to do so a task not to be undertaken lightly but if you wish to download a pre built binary version of the software you have to buy a maintenance subscription which also provides you with support and updates Red Hat also sponsors the Fedora Project The goal of this project is to provide access to a free Linux operating system in both source and binary distributions in the form of Fedora Linux Fedora also acts as a proving

    Original URL path: http://www.techotopia.com/index.php/A_Brief_History_of_Red_Hat_Linux (2016-02-13)
    Open archived version from archive



  •