Friday, September 30, 2016

Mac Apple Logo HD Wallpapers for Desktop

,
To save the image, first click to enlarge the image, then right-click on it and click on Save Image As.. or simply right-click on the thumbnail and click on Save Link AS..
Note: all are high resolution images greater than 1024 x 728 px.




Set-1 Set-2 Set -3

Shiny Mac HD WallpaperMac Logo Wallpaper With Black and White Shades


Scary Mac Logo Wallpaper
Sexy orange Mac Apple Wallpaper for DesktopMac Logo Wallpaper


Mac Hd Wallpaper With tiger Background
3D Mac Apple Logo WallpaperShaggy Mac Logo Desktop Wallpaper


Mac and Leopard Wallpaper
Cute Apple WallpaperAnother Mac Apple Logo Wallpaper

Set-1 Set-2 Set -3
Read more

IT Laws and Patents notes for BSc IT Mumbai University

,
I got request for notes of IT Laws and Patents from many of the visitors. So i searched a lot on google and found out these articles. We can refer these articles as notes for IT Laws and Patents.
If anyone have a better notes than this, please feel free to share. It will benefit most of us.

Here are the download links for the files:
ITLAP-1
ITLAP-2
ITLAP-3
ITLAP-4

Friends, I have got lots of complaint that the links above are not working.
But its working for me, dont know whats the problem.
If same problem happens with you then, please comment below with your email id, ill forward it to you.
Read more

PC Unique Lenovo IdeaCentre A600

,
images PC Unique Lenovo IdeaCentre A600

Who says a desktop PC to appear dull. Lenovo Idea Center A600 makes this view no longer valid. Lenovo IdeaCentre A600 does have a different view from most PCs. Brief even more similar to an LCD TV.

This is considering the screen size of this product has. Lenovo IdeaCentre A600 has a 21.5-inch LCD display. Dimensions are still fairly thin, also making it more similar to most LCD TVs. Was added with a wide screen display with 16:9 ratio.

He is equipped with a Blu-ray drives, digital TV tuner to watch and record live TV. Diguanakan operating system is Microsoft Vista Media Center, making it easier to support the ability mulitmedianya. His ability to display high definition mulitmedia file with Full HD resolution of 1920 x 1080, plus a complete audio system with subwoofer and Dolby Home Theater certification.

Was added with multifunction remote control, can act as a VoIP handset, wireless mouse and of course the remote control to control multimedia functions from a distance. With a choice of Intel Core 2 Duo processor, graphics card from ATI Radeon Lenovo IdeaCentre A600 an ideal choice for connoisseurs multimedai functions of a PC, which reportedly will be available starting in April 2009. For the price offered about $ 999.

you are interested to read this: Desktop All-In-One Dell Vostro and What about you : PC Unique Lenovo IdeaCentre A600
Read more

Thursday, September 29, 2016

New Orkut Scripts – Scrap All Friends with Single Click! Send Images Flash Audio Video More!

,
This is latest scrapall script for new Orkut! And like feature packed new Orkut this script has some great features…



First and most important you can send HTML in scraps! This means you can scrap any image, flash, audio, video, etc to all your friends with one-click!


It has NO time interval field. Means this script will adjust with your Internet connection speed automatically!


It loads surprisingly very fast!


Here is a screenshot (if you have never seen a magic like this)



Installation:
Download Firefox! (Required)


Install GreaseMonkey Addon! (Click here within firefox only)


Click here to install script!


Go to: orkut.com/sa and you will see a page like shown in screenshot above
Read more

Sawasdeee ka Voice Search

,



Typing on mobile devices can be difficult, especially when youre on the go. Google Voice Search gives you a fast, easy, and natural way to search by speaking your queries instead of typing them. In Thailand, Voice Search has been one of the most requested services, so we’re excited to now offer users there the ability to speak queries in Thai, adding to over 75 languages and accents in which you can talk to Google.

To power Voice Search, we teach computers to understand the sounds and words that build spoken language. We trained our speech recognizer to understand Thai by collecting speech samples from hundreds of volunteers in Bangkok, which enabled us to build this recognizer in just a fraction of the time it took to build other models. Our helpers are asked to read popular queries in their native tongue, in a variety of acoustic conditions such as in restaurants, out on busy streets, and inside cars.

Each new language for voice recognition often requires our research team to tackle new challenges, including Thai.
  • Segmentation is a major challenge in Thai, as the Thai script has no spaces between words, so it is harder to know when a word begins and ends. Therefore, we created a Thai segmenter to help our system recognize words better. For example: ????? can be segmented to ??? ?? or ?? ???. We collected a large corpus of text and asked Thai speakers to manually annotate plausible segmentations. We then trained a sequence segmenter on this data allowing it to generalize beyond the annotated data.
  • Numbers are an important part of any language: the string “87” appears on a web page and we need to know how people would say that. As with over 40 other languages, we included a number grammar for Thai, that tells you that “87” would be read as ??????????.
  • Thai users often mix English words with Thai, such as brand or artist names, in both spoken and written Thai which adds complexity to our acoustic models, lexicon models, and segmentation models. We addressed this by introducing ‘code switching’, which allows Voice Search to recognize when different languages are being spoken interchangeably and adjust phonetic transliteration accordingly.
  • Many Thai users frequently leave out accents and tone markers when they search (eg ??????? instead of ???????? OR ??????? instead of ????????) so we had to create a special algorithm to ensure accents and tones were restored in search results provided and our Thai users would see properly formatted text in the majority of cases.

We’re particularly excited that Voice Search can help people find locally relevant information, ranging from travel directions to the nearest restaurant, without having to type long phrases in Thai.

Voice Search is available for Android devices running Jelly Bean and above. It will be available for older Android releases and iOS users soon.


Read more

CyberLink PowerDirector 12 Tutorials By PowerDirector University

,


Tutorials & demos of CyberLink PowerDirector 12 Ultimate.


SHARE BY GK
Computer Knowledge
Read more

Wednesday, September 28, 2016

Space Wallpapers for your Desktop Set 1

,
To save the image, first click to enlarge the image, then right-click on it and click on Save Image As.. or simply right-click on the thumbnail and click on Save Link AS..
Note: all are high resolution images greater than 1024 x 728 px.

3D_Earth_Surface.jpg3D_Earth_over_Moon3D_Sunset

3d_space_1

cosmogony

3D_Earth_2

MOON

decollages

3D_Earth
Read more

Pro Windows Phone App Development By Falafel Software Ebook

,
The Windows Phone 8 platform provides a remarkable opportunity for Windows developers to create state-of-the-art mobile applications using their existing skills and a familiar toolset. Pro Windows Phone App Development, Third Edition, helps you unlock the potential of this platform and create dazzling, visually rich, and highly functional applications for the Windows Phone Store and bring you up to speed on the new features the Windows Phone 8 API provides.

For developers new to the Windows Phone platform—whether with .NET, iOS, or Android experience—this book starts by introducing the requirements, specifications, and basics of Windows Phone development, and then leads you through the complete application development process, using an array of complementary technologies and Microsoft’s modern-style app design.
  • Use Microsoft technologies like XAML, .NET, Visual Studio 2012, and Expression Blend effectively to develop modern-style Windows Phone apps
  • Take advantage of the devices sensors with the location service, accelerometer, and touch
  • Make your apps location-aware using GPS data
  • Develop rich media applications that harness the graphics capabilities of Windows Phone models
  • Design and develop Windows Phone applications using the Model-View-ViewModel architecture
  • Publish and sell your application through the Windows Phone Store
Table of Contents
  • Introduction 
  • Getting Started
  • WinRT and XAML
  • Phone Controls
  • Navigation
  • Application Life Cycling
  • Gestures
  • Device Support
  • Mapping
  • Live Tiles & Notifications
  • Data Sources
  • Using Data in the Cloud
  • Designing in Expression Blend
  • Marketing Your Applications

Pro Windows Phone App Development Ebook




SHARE BY GK
Computer Knowledge
Read more

The VES Handbook of Visual Effects Industry Standard VFX Practices and Procedures Ebook

,
Wisdom from the best and the brightest in the industry, this visual effects bible belongs on the shelf of anyone working in or aspiring to work in VFX. The book covers techniques and solutions all VFX artists, producers, and supervisors need to know, from preproduction, to digital character creation and compositing of both live-action and CG elements.

In-depth lessons on stereoscopic moviemaking, color management and digital intermediates are included, as well as chapters on interactive games and full animation authored by artists from EA and Dreamworks respectively. Written by 88 top leading visual effects practitioners and covering everything about visual effects from pre-production, production, and post-production.

Simply a must-have book for anyone working in or wanting to work in the VFX industry.


The VES Handbook of Visual Effects: Industry Standard VFX Practices and Procedures.




SHARE BY GK
Computer Knowledge
Read more

BlueStacks

,
BlueStacks
Tags: bluestacks app player, bluestacks review, bluestacks rage of bahamut, bluestacks for mac, bluestacks cloud connect, bluestacks emulator, bluestacks root, bluestacks google play, bluestacks alpha

BlueStacks: Android application software running on the computer. You are like the applications on the Android market but not with devices running the Android operating system to test it?

CafeF1.com bluestacks chay android tren may tinh mot cach de dang 2011 01 BlueStacks: ph?n m?m ch?y ?ng d?ng Android trên máy tính

You want to run applications on the Android love with your computer? You can turn that dream into reality by the use of BlueStacks. BlueStacks is an application for Windows that allows you to be able to run Android applications on your computer instantly without restarting the computer.
The installer weighs nearly 118MB of application, compatible with both 32 bit and 64 bit windows. In addition, there is a video installation manuals software through the basic steps.
BlueStacks allows you to download new applications to BlueStacks using your web browser. Also, you can also move applications on your phone BlueStacks through Cloud Connect - an application on the phone can download the Android market.
Download the software here .
Pass to extract: apkviet.com
Read more

Tuesday, September 27, 2016

Reverse the mouse buttons

,
1) No context menu

What will you see when you right click on the desktop? You will see a context menu which says arrange icons, refresh,..and so on. Are you angry at your friend for not wishing you for you Bday? Do you wanna play a trick on a newbie in your family who is new to computers? This is a cool trick to play. By this tweak, you will be able to disable the right click on the desktop or any icons/files/folders/applications... But right click will work on taskbar of the start button and registry. So, dont worry!!!
Open your registry and you will see all unknown files like HKEY_CLASSES_ROOT....... and so on. Dont panic. Follow this path. HKEY_CURRENT_USER>SOFTWARE>MICROSOFT>WINDOWS>CURRENT VERSION>POLICIES>EXPLORER. On the right side of the registry, you will see two files(in general) named default and NoDriveTypeAutoRun. Right click on the empty space in the registry and goto New>DWORD VALUE and name it as "NoViewContextMenu". Remember, no spaces and N,V,C,M should be capitals. Right click on this and click modify. The default value will be 0. Change it to 1. Note: DONOT CHANGE THE HEXADECIMAL TO DECIMAL. Click OK. Close your registry and logout. Bingo!!! Once you login again, right click wont work. Your friend will be perplexed and the next thing he/she does is call the system administrator not knowing that not all system administrators will be knowing about registry. Now, to enable it again. follow the same path and set the value to 0. Logout and then login to see the effect.

2) Reverse the mouse buttons
This is a cool trick to play on newbies. Actually, there are two ways to do this. One is changing the settings in the Control panel and the other is through editing registry. You can do it either way. But I prefer the second way, which is challenging.
(i) Through Control Panel - goto Start> Control Panel> Printers and other hardware> Mouse. In Button configuration, enable the switch primary and secondary buttons option and click OK. But remember, you have just swapped the mouse buttons. So, for OK, you have to click the right mouse button. The newbie will be perplexed. Well, this trick is good for left handers.
(ii) Editing the registry - By default the left mouse button is the primary and the right is secondary. Open your registry and follow this path:
HLEY_CURRENT_USER>Control Panel>Mouse and on the right side of the registry, create this String value(REG_SZ): SwapMouseButtons and set its value to 1. Bingo!!! You are done. Log out/Restart the computer.

You can try this: Combine tricks 1 and 2. That means, this will result in swapping of the mouse buttons and disabling the left click(once the buttons are swapped). User is ready to call system administrator cuz he feels that the system is behaving wildly.
Read more

JELLY BEAN LIVE WALLPAPER 1 07

,

 JELLY BEAN LIVE WALLPAPER 1.07 Download
Tags: jelly bean live wallpaper apk, jelly bean live wallpaper xda, jelly bean live wallpaper android, jelly bean live wallpaper apk download, android jelly bean live wallpaper apk, microbes live wallpaper jelly bean, jelly bean boot live wallpaper, jelly bean 4.1 live wallpaper, android 4.1 jelly bean live wallpaper, download jelly bean live wallpaper



Get new Jelly Bean Live Wallpaper v1.07 hd Free 4shared Mediafire Download Android on your devices! get now!

Download the free Jelly Bean apk (JB) live wallpaper featuring floating particles. You can also change different type of particles in settings screen.

Now with 5 floating particle types to download: Capsule, Bean, Beam, Droid and Star!

To use: Home -> Menu -> Wallpapers -> Live Wallpapers

To develop free more free great live wallpapers, we have implemented some ads in settings.
Advertisement can support our develop more free great live wallpapers.

Our wallpaper for android contains "NO notification or icon ads"!!

This live wallpaper has been tested on latest devices such as Samsung Galaxy S3 and Galaxy Nexus. Please contact us if your device is not supported.

Note: If your wallpaper resets to default after reboot, you will need put the app on phone instead of SD card.

Awesome!

Download Here

Read more

PowerShell v3 Get IP from HostName

,
This is a topic lots of folks have covered. I just revisited it and thought I would jot it down for posteritys sake. Note, I took the basic C# from this link:
Get IP Address from DNS Hostname in C#
Specifically, I just needed to know what the IPv4 address was, so, I used this approach:
([System.Net.Dns]::GetHostAddresses(www.bing.com)[0]).IPAddressToString;
Since there may be more than one IP Address, you need to deal with it as is appropriate in your case. Here, I just needed 1 address I could use for testing a public internet IP address. If you want to back up a step and look at the broader result set from the query, here is what you will get:
[System.Net.Dns]::GetHostAddresses(www.bing.com)

Address           : 601988312
AddressFamily     : InterNetwork
ScopeId           :
IsIPv6Multicast   : False
IsIPv6LinkLocal   : False
IsIPv6SiteLocal   : False
IsIPv6Teredo      : False
IPAddressToString : 216.156.225.35

Address           : 551656664
AddressFamily     : InterNetwork
ScopeId           :
IsIPv6Multicast   : False
IsIPv6LinkLocal   : False
IsIPv6SiteLocal   : False
IsIPv6Teredo      : False
IPAddressToString : 216.156.225.32
In this case, I simply took the lowest IP address (array index 0) and grabbed the IPAddressToString property.  The method, .GetHostAddresses, has the following definition:
[System.Net.Dns].GetMethod(GetHostAddresses)


Name                       : GetHostAddresses
DeclaringType              : System.Net.Dns
ReflectedType              : System.Net.Dns
MemberType                 : Method
MetadataToken              : 100671134
Module                     : System.dll
IsSecurityCritical         : True
IsSecuritySafeCritical     : True
IsSecurityTransparent      : False
MethodHandle               : System.RuntimeMethodHandle
Attributes                 : PrivateScope, Public, Static, HideBySig
CallingConvention          : Standard
ReturnType                 : System.Net.IPAddress[]
ReturnTypeCustomAttributes : System.Net.IPAddress[]
ReturnParameter            : System.Net.IPAddress[]
IsGenericMethod            : False
IsGenericMethodDefinition  : False
ContainsGenericParameters  : False
IsPublic                   : True
IsPrivate                  : False
IsFamily                   : False
IsAssembly                 : False
IsFamilyAndAssembly        : False
IsFamilyOrAssembly         : False
IsStatic                   : True
IsFinal                    : False
IsVirtual                  : False
IsHideBySig                : True
IsAbstract                 : False
IsSpecialName              : False
IsConstructor              : False
And, accepts the following parameters:
[System.Net.Dns].GetMethod(GetHostAddresses).GetParameters()


ParameterType   : System.String
Name            : hostNameOrAddress
DefaultValue    :
RawDefaultValue :
MetadataToken   : 134226623
Position        : 0
Attributes      : None
Member          : System.Net.IPAddress[] GetHostAddresses(System.String)
IsIn            : False
IsOut           : False
IsLcid          : False
IsRetval        : False
IsOptional      : False
This quick approach allows you to drop this one line call into scripts and get IP addresses you can use quickly and easily. 
Read more

Could you fly a fighter jet with your mind

,

Jan Sheuermann can and she is quadriplegic, owing to a neurodegenerative disease. As part of Darpas Revolutionizing Prosthetics research track Jan was first trained to control a robotic arm with her mind alone and has recently been flying a F-35 Joint Strike Fighter (the US militarys next-generation attack jet) using a flight simulator. You can read more about this in a Wired article theres also a video.

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

IFTTT

Put the internet to work for you.

Delete or edit this Recipe

Read more

Zuckerberg pledges 44 5 billion to charity

,

Facebook became more popular yesterday as its founder Mark Zuckerberg and his wife Priscilla Chan pledged 99% of their shares in Facebook to charity to mark the birth of their first child. These shares are currently valued at around $45 billion. This will leave the Zuckerberg family with a mere half billion dollars to scrape by on. Actually Im not being facetious, I commend Zuckerberg for his actions, nobody needs such a vast fortune and in the hands of well-run charities such huge sums of money can make a real difference. I hope more billionaires follow suit. When you use Facebook now you can know that you are helping make the world a better place.

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

Windows 7 Hidden Theme

,
Computer Tips
 computer theme

windows 7- as soon as the user knows that windows 7- This is the default theme that already.Under the theme of Windows 7 - the custom wallpaper, sounds, icons, task-bar, etc. are arranged. A certain number of the theme you want to use any of the themes that are downloaded from the Internet. But you know your being aware of the location of the five theme categories are concealing your Windows PC! Yes, absolutely the truth. Now just a little  pain in my Windows 7 PC in 5minutes time. From the start  in the search bar: Windows Globalization MCT write.Now press  Enter. Then open a new window.“ll see five folders in a new window.Now that MCT-AU folder into the folder Theme - waited in AU. Theme-click Windows 7 - The theme will be installed in Australia. Similarly, one by one, MCT-CA, MCT-GB, MCT-US, MCT
-ZA folders respectively entered into the Theme folder CA. theme, GB. Theme, US. Theme and ZA.Theme folders click will install the remaining four themes on your PC. This theme is the theme of four in Canada, the United Kingdom, the United States and South Africa.
 
Read more

NORAD tracks santa

,
Every Christmas eve the US air defence system (NORAD) swings into action to track Santas progress around the world delivering gifts to children. You can follow Santas progress on the official NORAD Santa Tracker website. The site also features information about Christmas holiday traditions, music, movies, a shop and games you can play, plus information about how and why NORAD tracks Santa - recommended.
Read more

Monday, September 26, 2016

Averaging Congress Correctly

,
Today I saw another interesting article from the Huffington post that averaged the faces of all the members of congress together. You can find it here.

Unfortunately, its not a good averaging for many reasons Ill state below. So, I created my own, shown here:

I noticed a couple things about the Huffington Post image. It was a really cool idea, but it was extremely blurry so I investigated. It seems the website the creator got the images from has over 800 images for members of the house (Ill let you figure out what is wrong with that). It turns out it had a bunch of copies and black and white images mixed in. Also none of them were aligned. When averaging images, especially facial ones, it is always important to align them.

So I wrote a quick crawler in bash just to get the images from the wikipedia page for congress. Then I wrote some C++ code using OpenCV and my own modification of flandmark[1] to align the facial images. Once aligned, I then averaged them.

You can find the crawler code, the original and aligned images, and the alignment and averaging code on my Github at https://github.com/StevenHickson/AverageFaces. I used CMake, OpenCV, and Boost if you want to test it.

Feel free to use this image as long as you cite this page.

Update:
I was asked who was the closest and furthest away from the mean. The results are as follows:
Closest to the mean (left being the closest):

Stephen Fincher
John Shimkus
Xavier Becerra












....
Furthest from the mean (left being the furthest):

Terri A. Sewell
Corrine Brown
Betty McCollum

Consider donating to further my tinkering.

Places you can find me

[1] M. Uricar, V. Franc and V. Hlavac, Detector of Facial Landmarks Learned by the Structured Output SVM, VISAPP 12: Proceedings of the 7th International Conference on Computer Vision Theory and Applications, 2012.

Read more

Introduction to Expression Web 4 Tutorials By Joshua Kywn

,


In this series you will learn to use Microsoft Expression Web to create a clean and professional looking website ideal for a small business or personal project or for an individual looking to learn the basics of web design.

If you are interested in getting the training materials used in our videos and our template collection, you can find out how at: www.timothywebtemplates.net These are optional, you can type in the code as we go and use your own resources to complete the project.

To receive our web designers discount from Godaddy on domains and webhosting, please visit:http://timothywebtemplates.net/godaddy/godaddy.html


SHARE BY GK
Computer Knowledge
Read more

PowerShell v3 in a Year Day 10 about Data Sections

,
Data sections are a PowerShell technique, included since version 2.0, which provides script writers with a powerful technique to separate out code from data. This approach to distinguishing between the two has a long history in other languages, but, in the PowerShell world, falls into a few specific niches. In practice, there are also a few ways to pull it off, yet, aside from some on-the-box Microsoft scripts, there is not a lot of discussion about their usage. After having experimented with data sections a little, I felt some of the gotchas and caveats I ran into may be worth sharing so others dont try to reinvent the same wheel I hacked on.

Data sections, as outlined in the v3 help, are read-only, text strings separated from script logic. Data sections can be stored both in the same file as a script and in a separate file with a .psd1 extension. One compelling reason to separate out data from code is to allow for messages in various languages and/or updatable context-specific data. A specific scenario in which data sections proves useful is code signing. If you have a script for which the logic is complete, but, you need to update the message, you would not need to modify the script which would prompt a script resigning. Instead, you could simply update the .psd1 files strings and the modification would be taken care of.

The general syntax for using a data section is to begin a section with the required DATA keyword., followed by two items:
  1. -SupportedCommand
  2. Script block containing permitted content
Note that the keyword, DATA, is not case sensitive, so, you can use any of data, Data, or, DATA. Within the block one may use two specific elements:
  1. Any/all PowerShell operators except -match
  2. Flow control statements: if, else and elseif
  3. The following automatic variables:
    1. $PsCulture
    2. $PsUICulture
    3. $True
    4. $False
    5. $Null
  4. Comments
  5. Pipelines
  6. Statements separated by semicolons
  7. litearls
  8. Cmdlets permitted in the data section (default is ConvertFrom-StringData)
  9. Cmdlets explicitly indicated by -SupportedCommand parameter
The one outstanding, default cmdlet, ConvertFrom-StringData, allows the use of single and double-quoted strings in key/value pairs as well as here strings, also, available in both single and double-quoted string formats. 

To demonstrate how these work, here are some examples. In this first example, we will look at a sample data section contained in the same script in which the data is referenced. This is the "all in one" approach.
$TextMsgs = DATA {
    ConvertFrom-StringData-stringdata @
      Text001 = Windows 7
      Text002 = Windows Server 2008 R2
@
}

$TextMsgs.Text001
When I execute this command Powershell converts the key/value pairs in the here string to properties on my $TextMsgs object so I can call the key. In this case, I call the .Text001 property and PowerShell prints out Windows 7.

In our second example, we use a simple DATA section with strings (but no keys). In this case, you need to reference the strings using zero-based, array notation, as shown below:
$strings = DATA {
    "Thank you for using my Windows PowerShell Organize.pst script."
    "It is provided free of charge to the community."
    "I appreciate your comments and feedback."
}

$strings[0]
which prints out  Thank you for using my Windows PowerShell Organize.pst script. when executed. In essence, you are looking at either dealing with arrays (as in the previous example) or hashtables (the first example). In either case, these are effective ways to get data and code broken out into separate segments.

The second type of use for data sections is with psd1 file (PowerShell data files I presume the acronym to be). To get an idea of where this really fits in, we need to glance briefly at another concept: script internationalization. For enterprise packages, that is PowerShell solutions provided to multiple languages, the code/logic of scripts works the same regardless of the language in which the script is run. What changes, however, are the messages to the end user. While I was originally researching this topic I was looking for ways to handle large text blocks simply and easily. One of the concepts I stumbled upon was the use of locations, otherwise known as code pages, to associate .psd1 file content with scripts.

In my example, I created two files:
  1. test.ps1
  2. test.psd1
The first file performs a few, quick steps:
  1. Clear the host
  2. Call the Import-LocalizedData cmdlet with two parameters: -FileName (referencing a file in the same directory called test.psd1) and -BindingVariable (with a value of Test).
  3. Outputs $Test.Values
The second file, test.psd1, is our "data" file. This is the second approach, where data and code are separated into two distinct files, one, the .ps1 file, containing script code, and, the other, the .psd1 file, containing the raw data. In this model, where the data section is in its own file, the key/value pair is stored as shown below:
ConvertFrom-StringData @
    name=A long string
@
When I execute the .ps1 script I see the following in the console:
 A long string
Heres whats going on:
  1. The host runs the test.ps1 files first command: Clear-Host. This wipes the host clean.
  2. Line 2 calls the Import-LocalizedData cmdlet. This references the test.psd1 denoted by the -FileName argument and converts the string into a key/value pair associated with the variable $Test specified as the -BindingVariable argument.
  3. Control is passed back to the test.ps1 script and Write-Output prints the value of $Test.name, A long string
While my test scenario proves helpful as a proof of concept the real application of this idea comes into play only when you start employing various cultures. For instance, if you are writing scripts for multiple cultures, PowerShell references the code page of your machine, and, utilizes that code pages .psd1 file. This is how the dynamic aspects of the language really take advantage of the concept. 

One thing I saw that looked interesting, but, which I didnt take time to test, is the creation of custom cmdlets. For instance, in the help, there is a hypothetical custom cmdlet, Format-Xml, that is referenced in the -SupportedCommand parameter, to utilize a set of strings indicated in the data section of a separate here string. A custom function is more likely a use case I could envision myself taking advantage of, but, even then, I dont have a solid example to illustrate the proper use of -SupportedCommand with the data section concept. 

If you want some sample .psd1 files to check out, below is a list of directories which contain CL_LocalizationData.psd1 files on my default Windows 7 Enterprise installation. Most any Windows 7 machine should have similar instances of these files for you to explore:
  • C:WindowsdiagnosticssystemPrinteren-US
  • C:WindowsdiagnosticssystemSearchen-US
  • C:WindowsdiagnosticssystemWindowsMediaPlayerConfigurationen-US
  • C:WindowsdiagnosticssystemWindowsMediaPlayerMediaLibraryen-US
  • C:WindowsdiagnosticssystemWindowsUpdateen-US
There are plenty of other directories with similar .psd1 files. For instance, tehre are some RS_* file you can check out that have similar sets of single-quoted here strings in the secondary, date files. In both cases, you just need to look around at a few of them. Unfortunately, for script writers, most of these files reference compiled assemblies instead of scripts or script modules. In short, you wont see a lot of on-the-box references to give you sample code for reference materials in the way of .ps1 files. 

One thing that is interesting to see is the use of format place holders. The idea here is that you can leave one (or more) placeholders to be dynamically evaluated at run time. If you have a piece of data to be parsed by the script, you simply indicate the place holder with standard format string specifier, "{0}", within a double-quoted here string (to ensure evaluation) and voila, self-updating data sections. Here is an example using a single-page approach (where the data section is defined in the same code as it is used.
$data = ConvertFrom-StringData @"
    HostName=The hostname of this machine is: {0}.
"@

$data.HostName -f $env:COMPUTERNAME 
When this is run, I get the following output:
 The hostname of this machine is: MYLAPTOP.
Again, the mechanics here are:
  1. The $data object is populated with a key/value pair generated by the ConvertFrom-StringData cmdlet.
  2. $data.HostName uses the -f (format operator) to pass the evaluated value of $env:COMPUTERNAME to the {0} placeholder.
  3. {0} is replaced with MYLAPTOP and the entire string is output to the host. 
In the end, the use of data sections can provide a powerful, easy to use separation of code and data. If you find that your scripts remain stable while, perhaps, your messages change frequently, or, you need to consider branding with your PowerShell scripts, data sections may be worth taking a look at to see how you can take advantage of the idea.
Read more

XP Animations

,
You can turn off window animation ("exploding" windows), displayed when you play around with minimizing/maximizing open windows. This makes navigating Windows 95/98/ME/NT4/2000/XP a lot quicker, especially if you dont have a fast video controller, or if you got tired of seeing it all the time (like I did). smile.gif To do this,
run Regedit (or Regedt32) and go to: HKEY_CURRENT_USER Control Panel Desktop WindowMetrics or if you are the only user of your Windows computer
go to: HKEY_USERS .Default Control Panel Desktop WindowMetrics Right-click on an empty spot in the right hand pane.
Select New -> String [REG_SZ] Value. Name it MinAnimate. Click OK. Double-click on "MinAnimate" and type 0 to turn OFF window animation or 1 to turn it ON. Click OK. Close the Registry Editor and restart Windows. Done.
Read more

Streaming Other HD Video Sites on the Raspberry PI

,


For those that are interested, this will allow you to stream internet shows like The Daily Show on your Raspberry Pi in HD with no lag.

A week or so ago I posted a hack which allowed people to stream youtube videos in the browser here. Unfortunately, this same method didnt work out of the box for some other video sites. They would stream a couple seconds then just end (I found this to happen with the daily show).



I now have a fix for that and have a script called youtube-safe, which can stream (high-quality with no lag on a decent internet connection) any video site that works with youtube-dl.

If you already have the Youtube scripts in my PiAUISuite installed, you can just update, otherwise you have to go through the install script and select which parts you want (this one being under youtube).

Install Instructions


sudo apt-get install git-core
git clone git://github.com/StevenHickson/PiAUISuite.git
cd PiAUISuite/Install/
./InstallAUISuite.sh

**NOTE, this will ask you if you want to install a lot of different scripts because it is a SUITE. You only have to pick the ones you want to use. If you only want to use the youtube scripts, press n on any other question except for the dependencies and youtube.

Update Instructions 

cd PiAUISuite
git pull
cd Install
sudo ./UpdateAUISuite.sh



Once that is done, you can watch the daily show in 1080p like so:
youtube-safe "http://www.thedailyshow.com/full-episodes/"

Even better, if you have voicecommand installed on your system, add the following line to the bottom of your config file for it to play the newest daily show with your voice:
~Daily Show==youtube-safe "http://www.thedailyshow.com/full-episodes/"

Ill work on making a browser plugin for this as well.

Consider donating to further my tinkering


Places you can find me
Read more
 

Computer Info Copyright © 2016 -- Powered by Blogger