Harvard Researchers Build 10 Robot

Theres been a lot of attention in the last year about various initiatives to encourage children to learn how to code; with new programming languages and of course the inexpensive and increasingly popular Raspberry Pi computer. To this we can now add a robot developed by Harvard University researchers that will cost just $10. The "Affordable Education Robot is a low-cost robot designed to introduce students of all ages to the fundamentals of programming and control of robots, with the hope of inspiring them to further pursue studies in Science, Technology, Engineering and Math (STEM)." Learn more about this robot here.



from The Universal Machine http://universal-machine.blogspot.com/

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

Read More..

CyberLink PowerDirector 10 Tutorials By PowerDirector University



Tutorials & demos of Cyberlink PowerDirector 10 Ultra.


SHARE BY GK
Computer Knowledge

Read More..

How to Use Multiple Skype

How to use Multiple Skype,Multiple Skype.
Read More..

How To Hack Someone Whatsapp Account By Techforall



This Tutorial Will Show You How To Hack Someone Whatsapp Account. This Is Not A Hack This Is A Trick Or The Feature We Get From Whatsapp To Use Our Whatsapp Online And From Our PC. So You Can Use This Trick To Spy On Someone.


SHARE BY GK
Computer Knowledge
Read More..

PowerShell v2 Function Set IISProcessModelLoadUserProfileBool

In a hurry, so not much time to do anything other than throw this out there. The real challenge for this one was finding the right way to find and set the global value. Using my favorite IIS link I tracked it down. For some reason the indexing starts at 1 instead of 0. Another mystery for another day.
<#
       .NOTES
              Author: Will Steele (wlsteele@gmail.com)
              Last Editted Date: 05/23/2012
             
       .EXAMPLE
              Set-IISProcessModelLoadUserProfileBool 1
      
              This example demonstrates how to set the global LoadUserProfile value to $true.
      
       .EXAMPLE
              Set-IISProcessModelLoadUserProfileBool 0
             
              This example demonstrates how to set the global LoadUserProfile value to $false.
#>

function Set-IISProcessModelLoadUserProfileBool
{
       param(
              [Parameter(
                     Mandatory = $false
              )]
              [Bool]
              $Bool = $true
       )
       $LoadUserProfile = (Get-WebConfigurationProperty -Filter /system.applicationHost/ApplicationPools/ApplicationPoolDefaults[1]/processmodel[1] -Name loaduserprofile -PSPath "Machine/Webroot/apphost").value;
       if($LoadUserProfile -eq $Bool)
       {
              Write-Output "$(Get-Date): LoadUserProfile is already set to $Bool.";
       }
       else
       {
              Write-Output "$(Get-Date): Attempting to set LoadUserProfile to $Bool.";
              Set-WebConfigurationProperty -Filter /system.applicationHost/ApplicationPools/ApplicationPoolDefaults[1]/processmodel[1] -Name loaduserprofile -Value $Bool -PSPath "Machine/Webroot/apphost";
             
              if((Get-WebConfigurationProperty -Filter /system.applicationHost/ApplicationPools/ApplicationPoolDefaults[1]/processmodel[1] -Name loaduserprofile -PSPath "Machine/Webroot/apphost").value -eq $Bool)
              {
                     Write-Output "$(Get-Date): Updated succeeded.";
              }
              else
              {
                     throw "$(Get-Date): Update failed."
              }
       }
}
Read More..

PowerShell v3 Inferring a Schema XSD from XML File

As a part of my research I have stumbled across need for a script to generate an XSD (XML Schema Document) directly from XML. This is great if you write XML files regularly but havent had time to generate a schema. Plus, if you need to validate XML, this gives you a free, easy to use tool without having to download the Windows SDK. Here is the script. Ill try to walk through it to explain the process,
$file = C:PowershellProjectsPowerShell and XML ypes_xsd.xml
$xsd = C:PowershellProjectsPowerShell and XML ypes_xsd.xsd
# Remove existing XSD
if(Test-Path $xsd)
{
      Remove-Item -Path $xsd
}

# Read xml file
$reader = [System.Xml.XmlReader]::Create($file)

# Instntiate XmlSchemaSet and XmlSchemaInference to process new XSD
$schemaSet = New-Object System.Xml.Schema.XmlSchemaSet
$schema = New-Object System.Xml.Schema.XmlSchemaInference

# Infer schemaSet from XML document in $reader
$schemaSet = $schema.InferSchema($reader);

# Create new output file
$file = New-Object System.IO.FileStream($xsd, [IO.FileMode]::CreateNew)

# Create XmlTextWriter with UTF8 Encoding to write to file
$xwriter = New-Object System.Xml.XmlTextWriter($file, [Text.Encoding]::UTF8)

# Set formatting to indented
$xwriter.Formatting = [System.Xml.Formatting]::Indented

# Parse SchemaSet objects
$schemaSet.Schemas() |
ForEach-Object {
      [System.Xml.Schema.XmlSchema] $_.Write($xwriter)
}

$xwriter.Close()
$reader.Close() 
The first couple of lines are purely set up. The .xml and .xsd file paths, then, I remove the .xsd file if it already exists. Since this is just a proof of theory script, youd obviously handle this differently in production grade scripts/functions. Here are the main steps:

  1. I create a [System.Xml.XmlReader]::Create($file) to parse the file specified in the variable.
  2. With the XML document mapped into the $reader object, I then instantiate two new objects: 
    1. System.Xml.Schema.XmlSchemaSet and 
    2. System.Xml.Schema.XmlSchemaInference
  3. Once I have these two objects, I infer the schema, $schema.InferSchema($reader), and, store the inferred  XmlSchemaSets in the  System.Xml.Schema.XmlSchemaSet object,  $schemaSet.
  4. I then create a FileStream object,  $file = New-Object System.IO.FileStream($xsd, [IO.FileMode]::CreateNew), to prevent the underlying .xml file from getting locked by the reader. 
  5. To parse the file, I need an Xml object, so, I create one:   New-Object System.Xml.XmlTextWriter($file, [Text.Encoding]::UTF8).
  6. To ensure my output file is reasonably well-formed, I then set the  $xwriters output formatting to Indented,  [System.Xml.Formatting]::Indented.
  7. Since an XmlSchemaSet object may contain multiple  XmlSchemaSets, I call the $schemaSetSchemas() method enumeration to a  ForEach-Object loop and send each Schema to the $xwriter.
  8. Lastly, to close the stream, I call the appropriate .Close() methods on the two wrappers:
    1. $xwriter.Close()
    2. $reader.Close()
I know this is a bit cryptic, but, this is a pretty .NET heavy script. Its a step in the direction of the developer. Nonetheless, being able to parse your own XML files and generate .xsd files gives you a lot of power, and, considering its power PowerShell, makes it very automation-friendly.

Using this script I was able to read a file with the following XML,

<?xml version="1.0"?>
<note>
  <to>Tove</to>
  <from>Jani</from>
  <heading>Reminder</heading>
  <body>Dont forget me this weekend!</body>
</note>

And it generated this XSD

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" >
  <xs:element name="note">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="to" type="xs:string" />
        <xs:element name="from" type="xs:string" />
        <xs:element name="heading" type="xs:string" />
        <xs:element name="body" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema> 


I know there are probably 500 ways this could be improved upon, so, feel free to leave comments...so long as they dont talk about your web hosting company in South Korea. Hint: Spammers, thats directed at you.
Read More..

How to add Read More link to feedburner feed

Read More link to feedburner feed
Normally the feed sent by our blog or website displays the entire article that we post. The readers are able to read the entire article and they never visit our site. To avoid this we can display a short summary on the feed and place a "Read More" link at the end of the article so that they visit our website. We can do this by using "FeedFlare" service in Feedburner. The steps you have to follow is given below.
  • Download "read_more.xml" Click to download the file.
  • Upload the file to your own server, Copy the file URL.
  • If you dont know how to upload to a server, use this URL http://www.hiddencomputertricks.co.cc/read_more.xml This is the link of the file in my server.
  • Login to your feedburner account.
  • Select your feed.
  • Go to optimize tab.
  • Now, Under services, Click on FeedFlare.
  • In the field provided for new Flare paste the URL of the "read_more.xml" file.
  • Click on "Add New Flare"
  • Now, place a check mark for "Read More" which will be the new Flare you just added.
  • Click save.
  • Now click on summary banner at the left panel.
  • Make necessary changes and click on save. (Teaser is the short line which will appear at the end of the article, followed by "Read More" link.)
Now only a summary will be sent to your feed subscribers.
Read More..