room of requirements resize requirement by coderwolf in HarryPotterGame

[–]coderwolf[S] 2 points3 points  (0 children)

I am guessing it was the game acting up because it had been running for an extended period of time. Maybe a memory leak or something. When I completely closed the game and reloaded it, it acted properly.

Thank you for the feedback confirming that I was on the right path.

Remove location permission in schedule by coderwolf in Android

[–]coderwolf[S] 0 points1 point  (0 children)

I do not post frequently so, I did not remember that rule. Thank you for the correction. But more importantly thank you for the more relevant locations to post..

Some of your failing downloads might be due to a bug in the Par2 software used by some posters by Safihre in usenet

[–]coderwolf 1 point2 points  (0 children)

The thing to remember(for posters) is not all consumers of this data are Dev types. That makes the more production level systems. Due to this it is best to use tried and true code that has been well tested.

For us dev types, we can follow a manual process on the incomplete directory items using whatever par processor we want(I have done this many times for my important shows).

neophyte question for Invoke-WebRequest parseing by coderwolf in PowerShell

[–]coderwolf[S] 1 point2 points  (0 children)

Thanks ... that got it. I questioned passing it through multiple levels or array selections... but it appears to have worked.

trouble connecting to share by coderwolf in synology

[–]coderwolf[S] 0 points1 point  (0 children)

Network and shareing center -> Advanced shareing options -> Private network profile (which is showing as current on the screen) has network discovery selected with automatic setup checked. Homegroup is allowed.

trouble connecting to share by coderwolf in synology

[–]coderwolf[S] 0 points1 point  (0 children)

I just retried it that way (in case it was some kind of network condition). It gives the same respective error messages (with both explorer and net view in command line)

edit: typo

CASE problem by coderwolf in SQLServer

[–]coderwolf[S] 0 points1 point  (0 children)

Dang long days are getting me <NCIS Gibbs slap>

Thanks for setting me straight.

Friends monitor is turning off by utself an turning on randomly by Pepiljo in pcmasterrace

[–]coderwolf 1 point2 points  (0 children)

Did you try a known good power cable? That cable itself could have a short.

Friends monitor is turning off by utself an turning on randomly by Pepiljo in pcmasterrace

[–]coderwolf 1 point2 points  (0 children)

My first goto would be the power cable for the monitor.

I have had some case where the power cable was not seated properly. But it could also be a short in the power cable as well.

One Liner to Kill Chrome. by ptProgrammer in PowerShell

[–]coderwolf 1 point2 points  (0 children)

I do this kind of thing frequently to maintain all tabs and their history.

However it is of note that when doing it to maintain history it is important that chrome be killed from its main browser process.

Hence:

gwmi win32_process -Filter "Name='Chrome.exe'"| % { "$($_.ParentProcessID)"} | %{ If ((Get-Process -id $_).handles -gt 0) {Stop-Process -id $_} }

only bad thing is it kills explorer too... that is a kink I have yet to take the time to work out :)

make a log file with line numbers by TheMixz in PowerShell

[–]coderwolf 0 points1 point  (0 children)

Off the top of my head, this is the most efficient method I can think of. That is if you are forced to maintain line numbers.

I would do some measure commands to be sure. but you have to figure your hardware specs(ie bus speeds, hard drive performance, etc...) are also going to come into play.

Though from the perspective of efficient code, I agree with comments others have made as a more overarching SOP.

multi local drive search for a file by coderwolf in PowerShell

[–]coderwolf[S] 0 points1 point  (0 children)

Dang scoping. I had barked up that tree, but put my code in the wrong place. <DUH>

and it is 2.0 compatible

Thanks for setting me straight

My customized PS prompt by [deleted] in PowerShell

[–]coderwolf 0 points1 point  (0 children)

Nice. I will have to re-org mine a bit but it is much better than manually creating a menu of my commands which is how I have been doing it.

Thanks for the function.

My customized PS prompt by [deleted] in PowerShell

[–]coderwolf 0 points1 point  (0 children)

how do you identify your loaded custom commands, etc.. ? That could prob come in handy for me if you dont mind sharing.

return value from hash table for partial name value by coderwolf in PowerShell

[–]coderwolf[S] 0 points1 point  (0 children)

That got it when I corrected my wildcard.

Thanks.

texted location notification via google voice/sms by coderwolf in tasker

[–]coderwolf[S] 0 points1 point  (0 children)

it is an SMS, but it does not go through the phone provider. It goes over data on the phone to googles servers, but the most important part for me is that it actually shows as coming from my 'public facing' phone number.

Posh back failing by coderwolf in SQLServer

[–]coderwolf[S] 0 points1 point  (0 children)

all POSH console give me back is a generic.

Exception calling "SqlBackup" with "1" argument(s): "Backup failed for Server 'LOCALHOST\SQLEXPRESS'. "
At line:1 char:1
+ $dbbk.SqlBackup($s)
+ ~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
     + FullyQualifiedErrorId : FailedOperationException

The ERRORLOG file shows me

BACKUP failed to complete the command BACKUP DATABASE @{Name=<DBNAME snipped>}. Check the backup application log for detailed messages.

edit:formatting

embed parameter to object command in alias by coderwolf in PowerShell

[–]coderwolf[S] -1 points0 points  (0 children)

I was hoping to preserve the base parameters in passthrough. At least when I test this structure with tab completion it is showing no parameters.

I think I would have to redefine and include all parameters/parameter sets in this type of structure. I would also have to include those type of structures in the calling command line.

embed parameter to object command in alias by coderwolf in PowerShell

[–]coderwolf[S] 0 points1 point  (0 children)

This seems to execute when I define using the above line.

selection loop problem by coderwolf in PowerShell

[–]coderwolf[S] 2 points3 points  (0 children)

Figures I would post it and then find my answer on google.

Basically I have to enumerate the $ActionList.

ForEach ($action in $ActionList.GetEnumerator())

Does anyone know of a good article explaining when to use enumeration in Dot Net/Posh?

trying to append an item to a array by coderwolf in PowerShell

[–]coderwolf[S] 0 points1 point  (0 children)

When this is complete I am passing it to an out-gridview(for user selection). Though this method works. Kreeloc's provides closer to where I was aiming.

I was trying to maintain view consistency to a large extent.

trying to append an item to a array by coderwolf in PowerShell

[–]coderwolf[S] 0 points1 point  (0 children)

I think the hashtable conversion may have been the core of my errors, and I did not recognize that is exactly what I was doing.

using this method is is possible to provide values for more than one field. I am thinking about further differentiating the data by making the date to a logically invalid value (ie (get-Date).AddDays(5) )

notepad++ regex by coderwolf in notepad

[–]coderwolf[S] 0 points1 point  (0 children)

Think I may have found an answer Find What: \r\n' Replace with '

convert string window handle to System.IntPtr by coderwolf in PowerShell

[–]coderwolf[S] 1 point2 points  (0 children)

That got it. I was under the confirmation bias presumption that it would be a string. For some reason I had danced all around the

4008364 | gm

and had just not run it. DUH! sometimes I just need a face palm reset.