Author Topic: powershell and utc time aka greenwich london uk  (Read 28595 times)

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: powershell and utc time aka greenwich london uk
« Reply #15 on: January 17, 2013, 04:04:44 PM »
not a big fan of edison
i think he stole more ideas than he originated - lol

he did, however, invent the light bulb and the cylindrical phonograph
the cylinders may have done better, but he wouldn't sell any rag-time music - only conservative music
with disks, you could get the music you wanted to hear, so they caught on
they probably would have taken over eventually, anyways, because they were easier to store and handle
but cylinders do offer a slight technical advantage in that the track has constant length

another guy, DeForest, added the control grid to the Fleming Valve
that is what really made tubes do something
before that, they were just rectifiers
with a control grid, they could be used to amplify - a big step
Brits still call them "valves", though   :P

at the turn of the century, there was a lot of patent grabbing going on, with regard to electrical discovery
also - a lot of mud-slinging - anything to discredit the opposition

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #16 on: January 17, 2013, 07:31:36 PM »
  Thursday, January 17, 2013 3:25 AM EST

 Hi dedndave:

 He made a light bulb that you could use, the first light bulb did
 not last very long?
 Did all sort of electrical work i e Con Edison I hopte I got the
 name right.
 HMV his master's Voice the fore rumber of a thing we call the
 MP3

 Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: powershell and utc time aka greenwich london uk
« Reply #17 on: January 17, 2013, 11:28:38 PM »
this is true - the first light bulb didn't last long at all
he found a filament alloy, largely by trial and error, that lasted

edison is credited with many patents
i think he still holds more patents than any other individual
this may have changed - i'm not sure
but, most of his patents were based on someone else's work
he knew more about the patent process than most people at the time
that would make him more of a patent lawyer than an inventor - lol

the fore-runner of MP3's...
you are thinking of Alexander Graham Bell   :P

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #18 on: January 18, 2013, 12:05:34 AM »

 Hi dedndave:

 Bell another Canadian, but I was thinking about Morse the
 telegraph guy which connects back to Thomas Edison.

 Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: powershell and utc time aka greenwich london uk
« Reply #19 on: January 18, 2013, 12:10:15 AM »
there were many innovators at that time
each built on the discoveries of the others
and, they fought over money every step of the way - lol

some were "advanced experimenters", some were true scientists
it took the work of both to get where we are today
« Last Edit: January 18, 2013, 05:49:26 AM by dedndave »

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: powershell and utc time aka greenwich london uk
« Reply #20 on: January 18, 2013, 03:46:29 AM »
Edison’s resistance to AC power was extremely shortsighted, and “unscientific”.
Well Microsoft, here’s another nice mess you’ve gotten us into.

FORTRANS

  • Member
  • *****
  • Posts: 1076
Re: powershell and utc time aka greenwich london uk
« Reply #21 on: January 18, 2013, 05:09:37 AM »
i am in MST
in Arizona, we do not use daylight savings time

Hi Dave,

   You are lucky.  DST is silly unless you own a golf range.

Cheers,

Steve

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #22 on: January 26, 2013, 02:16:21 AM »

 Hi Powershell Fans:
Code: [Select]
## GMT aka UTC aka Time in ye old London town England(UK)
Write-host(get-date -date -format U),"UTC"

Also always save as "Filename.PS1"
some editors have a nasty habit of adding .txt
The quotes are important!
so you get London.PS1.TXT and Powerdhell Goes Nuts
You will get four lines of gibberish that will not help you!
# is a comment marker ie a short REM.

Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #23 on: January 26, 2013, 06:43:35 AM »
 Hi EveryBody:
Code: [Select]
## London.PS1 Thursday, January 24, 2013 1:16:27 PM
# Get London Time aka UTC aka GMT
write-host (get-date -format U),"UTC"
# E N D of F I L E

## London.PS1 Thursday, January 24, 2013 1:16:27 PM
# Get London Time aka UTC aka GMT
write-host (get-date -format U),"UTC"
# E N D of F I L E
#
# PS C:\> Set-ExecutionPolicy RemoteSigned
# Even If you are God or Admin Do this First
# This allows the PS1 Files to go!

#
#To sign the Add-Signature.ps1 script file, type the following commands at
#the Windows PowerShell command prompt:

#   $cert = @(Get-ChildItem cert:\CurrentUser\My -codesigning)[0]

#   Set-AuthenticodeSignature add-signature.ps1 $cert
# If it don't Go Try This
# PS C:\> Set-ExecutionPolicy RemoteSigned
# Even If you are God or Admin Do this First
# This allows the PS1 Files to go!
 Alway Quote File Names i e "FILENAME.ps1"
 SOMETIMES yOU WILL GET "FILENAME.PS1.TXT"
 which will not make Powershell or you Happy.
 Added Quote the FileName.

 Regards herge
« Last Edit: January 26, 2013, 08:38:17 AM by herge »
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #24 on: January 27, 2013, 05:46:50 PM »
 Hi Everbody:

 Greetings Windows Powershell Fans.

Code: [Select]
## itime.ps1 Monday, January 14, 2013 1:27 PM
#Local Time with offset from Zulu (London)
get-date -uformat "%T %p UTC%Z" # Same as C,C++ %etc

 You MUST set the environment variable TZ to your Time Zone
 or the %Z will not work.

Code: [Select]
/*
    >SET TZ=EST+5EDT
    In a Dos Box ie Command Prompt set TZ to
    your Time Zone. this is for Eastern Standard Time.
    The %Z will Not work if TZ is not set before.
    Toronto/Buffalo time.
    */


 Regards herge
« Last Edit: January 27, 2013, 09:46:10 PM by herge »
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #25 on: January 28, 2013, 05:23:32 AM »
 
 Oh my God:
 
 Powershell can inkey or pause or getch.
 Code From Microsoft.
Code: [Select]
## Inkey.ps1 Saturday, January 26, 2013 12:38:29 PM
Write-Host "Press any key to continue ..."

$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #26 on: January 29, 2013, 12:53:23 AM »

 Hi Everybody:

 Because of problems in Powershell ISE it might be quicker
 to use Read-host.

Code: [Select]
# The Get-Host Does Not work in ISE
Read-Host -prompt "Press any Key to Continue"

Code: [Select]
## Inkey.ps1 Saturday, January 26, 2013 12:38:29 PM
Write-Host "Press any key to continue ..."
#$z = (get-host).UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
# The Get-Host Does Not work in ISE
Read-Host -prompt "Press any Key to Continue" # You Get a Pop up window
# E N D of File

Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #27 on: February 01, 2013, 09:24:04 PM »
 Hi EveryBody:

Code: [Select]
## about.ps1 Friday, February 01, 2013 4:46 AM
help about_Comparison_Operators > \helpPS1\com_ope.txt
help about_For > \helpPS1\forps1.txt
help about_Foreach > \helpPS1\foreach.txt
help about_Switch > \helpPS1\switch.txt
help about_While > \helpPS1\while.txt

 It will create the directory HelpPs1 on the drive you are on.
 It will write files to this directory or create it if missing.
 But will not warn you if directory is already There!
 This will save some scrolling.
 use set-location \helpPs1
 to get to your directory.
 \helpPS1

 Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

herge

  • Member
  • ***
  • Posts: 477
Re: powershell and utc time aka greenwich london uk
« Reply #28 on: February 02, 2013, 07:37:12 PM »

 Hi PowerShell Fans:

 Finally found something like old DOS type
 command.

Code: [Select]
more c:\masm32\include\windows.inc

Hit Control C you will be here all day
other wise. Windows.inc is massive.
 
Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: powershell and utc time aka greenwich london uk
« Reply #29 on: February 03, 2013, 12:14:33 AM »
yes - i think DOS had a "filter" called more.exe
Code: [Select]
type myfile.txt | more.exeor
Code: [Select]
copy myfile.txt | more.exe con