Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

PowerShell challenge

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 04-10-2007   #1 (permalink)
Marco Shaw
Guest


 

PowerShell challenge

I'd like a PowerShell challenge...

So, post a challenge here (no answers please), and I promise I'll send a
PowerShell book (of your choice) to the most challenging puzzle or task
writer. Maybe even to the 2 most challenging...

Marco



My System SpecsSystem Spec
Old 04-10-2007   #2 (permalink)
ASCHNEIDER146
Guest


 

Re: PowerShell challenge

I think writing a Sudoku game in Powershell would be pretty
interesting, not only a decent exercise in winforms, but the logic to
produce the puzzle would be kind of cool to learn as well.

-Andy

On Apr 10, 10:59 am, "Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote:
> I'd like a PowerShell challenge...
>
> So, post a challenge here (no answers please), and I promise I'll send a
> PowerShell book (of your choice) to the most challenging puzzle or task
> writer. Maybe even to the 2 most challenging...
>
> Marco



My System SpecsSystem Spec
Old 04-10-2007   #3 (permalink)
Mike Weller
Guest


 

Re: PowerShell challenge

Given input $s of type [scriptblock], determine whether $s terminates or
not.

Mike

"Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote in message
news:eF86Po5eHHA.1960@TK2MSFTNGP04.phx.gbl...
> I'd like a PowerShell challenge...
>
> So, post a challenge here (no answers please), and I promise I'll send a
> PowerShell book (of your choice) to the most challenging puzzle or task
> writer. Maybe even to the 2 most challenging...
>
> Marco
>



My System SpecsSystem Spec
Old 04-10-2007   #4 (permalink)
applepwc
Guest


 

RE: PowerShell challenge

hello,everyone here:
I want to do a powershell version of matrix screensaver.
But I can't get any clue to do this.
Could anybody help me?
Thanks

--
greeting

applepwc



My System SpecsSystem Spec
Old 04-10-2007   #5 (permalink)
Al Dunbar
Guest


 

Re: PowerShell challenge

I'll trump that with Chess. It is certainly more challenging than Sudoku -
for me at least.

But the idea of the logic of creating a Sudoku would be tough, IMHO. Given a
valid sudoku puzzle, could one write a script that could determine which
number(s) could be removed without introducing the possibility of more than
a single solution?

/Al

"ASCHNEIDER146" <aschneider146@gmail.com> wrote in message
news:1176239392.098760.90180@30g2000cwc.googlegroups.com...
>I think writing a Sudoku game in Powershell would be pretty
> interesting, not only a decent exercise in winforms, but the logic to
> produce the puzzle would be kind of cool to learn as well.
>
> -Andy
>
> On Apr 10, 10:59 am, "Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote:
>> I'd like a PowerShell challenge...
>>
>> So, post a challenge here (no answers please), and I promise I'll send a
>> PowerShell book (of your choice) to the most challenging puzzle or task
>> writer. Maybe even to the 2 most challenging...
>>
>> Marco

>
>



My System SpecsSystem Spec
Old 04-11-2007   #6 (permalink)
Nikhil R. Bhandari
Guest


 

Re: PowerShell challenge

If you have a product which is used by a end-user (customer) who is not very
technology oriented person.
There are many customers who use this product and are dissatisfied with its
performance.

Create a simple profiling tool that analyzed a customer's hardware (physical
machine, network speed, server, etc) and provided recommendataions in
customer language that described the biggest bottleneck and how to fix it.


"Al Dunbar" <AlanDrub@hotmail.com.nospaam> wrote in message
news:eGLCYV$eHHA.3932@TK2MSFTNGP02.phx.gbl...
> I'll trump that with Chess. It is certainly more challenging than Sudoku -
> for me at least.
>
> But the idea of the logic of creating a Sudoku would be tough, IMHO. Given
> a valid sudoku puzzle, could one write a script that could determine which
> number(s) could be removed without introducing the possibility of more
> than a single solution?
>
> /Al
>
> "ASCHNEIDER146" <aschneider146@gmail.com> wrote in message
> news:1176239392.098760.90180@30g2000cwc.googlegroups.com...
>>I think writing a Sudoku game in Powershell would be pretty
>> interesting, not only a decent exercise in winforms, but the logic to
>> produce the puzzle would be kind of cool to learn as well.
>>
>> -Andy
>>
>> On Apr 10, 10:59 am, "Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote:
>>> I'd like a PowerShell challenge...
>>>
>>> So, post a challenge here (no answers please), and I promise I'll send a
>>> PowerShell book (of your choice) to the most challenging puzzle or task
>>> writer. Maybe even to the 2 most challenging...
>>>
>>> Marco

>>
>>

>
>



My System SpecsSystem Spec
Old 04-11-2007   #7 (permalink)
Duncan Smith
Guest


 

Re: PowerShell challenge

On Apr 10, 10:09 pm, "ASCHNEIDER146" <aschneider...@gmail.com> wrote:
> I think writing a Sudoku game in Powershell would be pretty
> interesting, not only a decent exercise in winforms, but the logic to
> produce the puzzle would be kind of cool to learn as well.
>
> -Andy
>


If you're interested in the logic for solving a puzzle, take a look at
Donald Knuth's Dancing Links algorithm, it'll crack any sudoku puzzle
in a split second. You could reveal the whole puzzle, or only part
(user selects blank squares and wants them converted to 'givens' as a
hint).

It'd be good to see how to 'tack on' a GUI and handle events to a
script, etc. esp. for WPF/XAML (as I haven't played with these yet).

Could make a nice series for PowershellLive?

Regards,

Duncan.

My System SpecsSystem Spec
Old 04-11-2007   #8 (permalink)
Fred J.
Guest


 

Re: PowerShell challenge

I previously posted this under a different thread; "Wish List
Powershell Tool Bar"
I would like to add a tool bar to the taskbar that works like the
google tool bar ( or as it was pointed out to me 'SlickRun') except
you type in a command that is executed in
PowerShell. This would eliminate the latency between firing up
powershell (or RUN-> *.ps1 file) and submitting a command.

Perhaps activating the tool bar would invoke an invisible instance of
Powershell (Then there should be a way to toggle it between
invisible
and invisible.) and the toolbar would would serve as an alternate
input stream to that instance of Powershell.
Fred Jacobowitz




My System SpecsSystem Spec
Old 04-11-2007   #9 (permalink)
William Stacey [C# MVP]
Guest


 

Re: PowerShell challenge

Personally, the bloat of these search-type bars are starting to bug me. It
is a neat idea, but in practice, I don't find the idea that productive. I
mean start powershell.exe in the StartUp group and use it. When your not
using it...minimize it. Your always a click away and you get the whole
console window for output. And you can restart it when needed (i.e. lock,
crash, etc). Not clear how you would do that cleanly with a search bar
bound to a runspace.

--
William Stacey [C# MVP]
PCR concurrency library: www.codeplex.com/pcr
PSH Scripts Project www.codeplex.com/psobject


"Fred J." <swim.instructor@gmail.com> wrote in message
news:1176327992.402614.214370@d57g2000hsg.googlegroups.com...
|I previously posted this under a different thread; "Wish List
| Powershell Tool Bar"
| I would like to add a tool bar to the taskbar that works like the
| google tool bar ( or as it was pointed out to me 'SlickRun') except
| you type in a command that is executed in
| PowerShell. This would eliminate the latency between firing up
| powershell (or RUN-> *.ps1 file) and submitting a command.
|
| Perhaps activating the tool bar would invoke an invisible instance of
| Powershell (Then there should be a way to toggle it between
| invisible
| and invisible.) and the toolbar would would serve as an alternate
| input stream to that instance of Powershell.
| Fred Jacobowitz
|
|
|
|


My System SpecsSystem Spec
Old 04-11-2007   #10 (permalink)
Joris van Lier
Guest


 

Re: PowerShell challenge

Fred J. wrote:
> I previously posted this under a different thread; "Wish List
> Powershell Tool Bar"
> I would like to add a tool bar to the taskbar that works like the
> google tool bar ( or as it was pointed out to me 'SlickRun') except
> you type in a command that is executed in
> PowerShell. This would eliminate the latency between firing up
> powershell (or RUN-> *.ps1 file) and submitting a command.
>
> Perhaps activating the tool bar would invoke an invisible instance of
> Powershell (Then there should be a way to toggle it between
> invisible
> and invisible.) and the toolbar would would serve as an alternate
> input stream to that instance of Powershell.
> Fred Jacobowitz


I wrote a blog entry explaining how to create the registry entries to invoke powershell from the address-bar, note that there are serous security issues with this technique
--
Joris van Lier
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://whizzrd.spaces.live.com

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
WLM Challenge George Valenti Live Mail 3 08-06-2008 02:22 AM
Anyone up for the challenge? xpect2lose Vista General 3 06-29-2008 06:40 PM
MVP Challenge Malcolm H Vista performance & maintenance 0 04-02-2008 12:55 PM
MVP Challenge Malcolm H Vista General 0 04-02-2008 12:55 PM
powershell "optimization" challenge =?Utf-8?B?S2FybCBQcm9zc2Vy?= PowerShell 3 08-26-2006 04:54 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51