PC Smalltalk und Frageecke

Der Tummelplatz für alle PC-Spieler!

Moderatoren: Moderatoren, Redakteure

Benutzeravatar
Levi 
Beiträge: 44873
Registriert: 18.03.2009 15:38
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Levi  »

Selbst Powershell fühlt sich Steinzeitlich an... Auch wenn es schonmal ein Fortschritt war...
forever NYAN~~ |||||||| Hihi
Bild
Benutzeravatar
shakeyourbunny
Beiträge: 1601
Registriert: 25.01.2013 17:39
User ist gesperrt.
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von shakeyourbunny »

PowerShell ist eine unfreundliche Krankheit und typisch Microsoft wird da alles Mögliche zusammengeworfen, was irgendwie nach "brauchen wir als Feature" nicht auf drei auf den Bäumen ist.
-> Trade Thread <-

They have taken you from the Imperial City's prison, first by carriage, and now by boat. To the east, to Morrowind. Fear not, for I am watchful. You have been chosen.
Benutzeravatar
Scorcher24_
Beiträge: 15527
Registriert: 11.11.2004 14:31
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Scorcher24_ »

Also, da kann ich die Kritik nicht nachvollziehen. Powershell ist in der Serveradministration unverzichtbar.

Mein letztes Projekt als Beispiel: Windows 2012 R2 Server, auf dem Hyper V als RDP Server läuft, mit generalisierten Images. Das hängt an einer USV. Der Server soll vor dem Shutdown die VM's ordentlich herunterfahren. Und zwar alle. Du weißt aber nicht, welche gerade laufen und wie sie heißen. Nur so eben aus dem Kopf:

Code: Alles auswählen

Get-VM -ComputerName |
    ForEach-Object{
        $_ | Stop-VM
3 Zeilen, alle VM heruntergefahren und die USV kann den Shutdown des Servers einleiten.
Oder Measure-Command, wenn man mal eben wissen will, wie lange ein Kommando ca. braucht.
Powershell ist schon gut, wenn man es zu nutzen weiß.

Code: Alles auswählen

PS C:\Users\scorcher24> Measure-Command{ping 1.1.1.1}


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 3
Milliseconds      : 32
Ticks             : 30321828
TotalDays         : 3.50947083333333E-05
TotalHours        : 0.000842273
TotalMinutes      : 0.05053638
TotalSeconds      : 3.0321828
TotalMilliseconds : 3032.1828
Benutzeravatar
shakeyourbunny
Beiträge: 1601
Registriert: 25.01.2013 17:39
User ist gesperrt.
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von shakeyourbunny »

Scorcher24 hat geschrieben: VM runterfahren.

Code: Alles auswählen

# virsh list | grep "running" | awk "{ print $2}" \
	| while read DOMAIN; do
			virsh suspend $DOMAIN
	   done
Je nach Lust und Laune 'suspend' mit 'shutdown' oder 'destroy' austauschen.
Scorcher24 hat geschrieben: Zeit messen.

Code: Alles auswählen

$ time ping -c 4 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=14.7 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=13.5 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=11.3 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=10.7 ms

--- 1.1.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 10.793/12.609/14.778/1.618 ms

real    0m3.022s
user    0m0.001s
sys     0m0.005s
Die PS is schon mächtig, daß weiss ich selber; aber die war offensichtlich nicht beim Syntax-Doktor und hat immer noch einen akuten Anfall von CamelCase -With (Brackets && Dashes)
Zuletzt geändert von shakeyourbunny am 08.05.2019 18:25, insgesamt 3-mal geändert.
-> Trade Thread <-

They have taken you from the Imperial City's prison, first by carriage, and now by boat. To the east, to Morrowind. Fear not, for I am watchful. You have been chosen.
Benutzeravatar
Scorcher24_
Beiträge: 15527
Registriert: 11.11.2004 14:31
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Scorcher24_ »

Mit virsh kannst du aber kein HyperV administrieren und mit MSYS auch kein AD.
DIe Capitalization ist in Powershell durchgehend konsistent. Das schafft MS nichtmal beim Fensterlayout mit UWP.
Benutzeravatar
shakeyourbunny
Beiträge: 1601
Registriert: 25.01.2013 17:39
User ist gesperrt.
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von shakeyourbunny »

Scorcher24_ hat geschrieben: 08.05.2019 18:17 Mit virsh kannst du aber kein HyperV administrieren und mit MSYS auch kein AD.
DIe Capitalization ist in Powershell durchgehend konsistent. Das schafft MS nichtmal beim Fensterlayout mit UWP.
Das Ziel der Übung war, die Linux Äquivalente darzustellen, wo es ebenfalls überhaupt kein Thema ist, diese Sachen zu erledigen.

In Bezug auf Virtualisierung kommt es stark auf verschiedene Faktoren darauf an, wenn du vorwiegend eine Windows-Bude bist, dann macht Hyper-V schon Sinn, mit dem Caveat, ob da nicht wirklich auch VMWare ESXi besser ist; ansonsten eben KVM, je nachdem. Mit bhyve (BSD) hab ich allerdings noch keine Installationen gesehen..
-> Trade Thread <-

They have taken you from the Imperial City's prison, first by carriage, and now by boat. To the east, to Morrowind. Fear not, for I am watchful. You have been chosen.
Benutzeravatar
Levi 
Beiträge: 44873
Registriert: 18.03.2009 15:38
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Levi  »

Ohm... Ich rede bei der Benutzung der shell nicht von irgendwelchen Script Spielereien, sondern von der alltäglichen Arbeit, Navigation Datei Operationen etc.
forever NYAN~~ |||||||| Hihi
Bild
Benutzeravatar
ziegenbock
Beiträge: 1378
Registriert: 11.12.2009 05:28
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von ziegenbock »

Für Titan Quest wurde ein neues Addon veröffentlicht. Falls das noch jemand spielt.

https://store.steampowered.com/app/1071 ... _Atlantis/
Benutzeravatar
Scorcher24_
Beiträge: 15527
Registriert: 11.11.2004 14:31
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Scorcher24_ »

Eigentlich ist PowerShell als Sprache auch sehr gut gemacht. Vielleicht hilft das ja weiter:
Why So Long?
The creators of PowerShell wanted the commands to be extremely intuitive, such that you could almost guess the command that you needed. This would be basically impossible in Bash. There’s no way you could guess that cat is the common command to read a file into the terminal. Once you learn it, it makes sense that it’s short for “concatenate,” but it’s not intuitive by itself.

PowerShell commands were designed after a simple pattern: “Verb-Noun.” The creators of PowerShell tried to keep the number of verbs to a minimum. Common ones you’ll see are Get, New, Add, Clear, Export, Remove, Set, Update, and Write. The nouns are also usually pretty intuitive: Process, Item, Object, Date, Job, and Command are a few.

This consistent pattern allows someone to look at a script that has commands in it that they’'ve never used and still have some idea about what the script is doing.
https://simpleprogrammer.com/powershell-tutorial/
Benutzeravatar
Levi 
Beiträge: 44873
Registriert: 18.03.2009 15:38
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Levi  »

Das Problem: Ich bin kein Anfänger. Ich möchte effektiv sein. Und commandos nachzuschauen ist kein Problem...



Hab für mich jetzt die Lösung gefunden: ich nutz die git bash (mingw).
Bin ich 10 schneller unterwegs als mit einer angeblich intuitiven Powershell...
Schön, dass die Befehle intuitiv sein sollen.... Nachgucken muss ich trotzdem....)
forever NYAN~~ |||||||| Hihi
Bild
Benutzeravatar
Scorcher24_
Beiträge: 15527
Registriert: 11.11.2004 14:31
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Scorcher24_ »

Naja, weil du nicht daran gewöhnt bist. Früher musstest du auch öfters mal man benutzen, oder?
Levi  hat geschrieben: 09.05.2019 20:40 Das Problem: Ich bin kein Anfänger.
Naja, mit PowerShell eben schon :D.
Benutzeravatar
Levi 
Beiträge: 44873
Registriert: 18.03.2009 15:38
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Levi  »

Natürlich.
aber das müsste ich auch bei der Powershell... Wo ich am ende, selbst wenn ich die Befehle kenne, mehr tippen muss.

(davon ab ist das System Befehle aneinander zu Reihen, Datenströme umzuleiten und überhaupt der ganze Satz an Standardbefehlen unerreicht unter Windows... Ja, sie sind cryptisch... Aber einfach verdammt effektiv...
forever NYAN~~ |||||||| Hihi
Bild
Gast
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von Gast »

Cool: GOG bietet bald den Launcher im Launcher für Launcher. ..oder so.
Spoiler
Show
Bild
https://www.gogalaxy.com/de/
Benutzeravatar
shakeyourbunny
Beiträge: 1601
Registriert: 25.01.2013 17:39
User ist gesperrt.
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von shakeyourbunny »

What are the community created integrations and how I can create one?

We want to offer integrations with all possible gaming platforms. This is a challenging and time-consuming process, not only because these are technically complex projects, but they also require negotiations and agreements with partners. We want all our official integrations to be supported by respective platform holders, so we make sure they’re in-line with partners’ policies and that they’re safe.
While we’re hard at work on adding more official integrations, we’ve decided to give you – the community – an opportunity to work on your own open source platform integrations. We’re currently polishing the documentation that will be shared with you to help you build your own platform integrations for GOG GALAXY 2.0.
Ach ja, letztlich wird da wohl es daraus hinauslaufen, daß sie da für Steam eine Integration machen und den Rest durch die Community :)

Oh, und der Webauftritt bekommt nicht erst zu Cyberpunk 2077 einen Revamp, sondern etwas früher... damit die Protestwellen punkto Designentscheidungen bis dahin abgeklungen sind und ausgesessen sind ...
-> Trade Thread <-

They have taken you from the Imperial City's prison, first by carriage, and now by boat. To the east, to Morrowind. Fear not, for I am watchful. You have been chosen.
Benutzeravatar
shakeyourbunny
Beiträge: 1601
Registriert: 25.01.2013 17:39
User ist gesperrt.
Persönliche Nachricht:

Re: PC Smalltalk und Frageecke

Beitrag von shakeyourbunny »

Falls jemand noch vorhat, eins der Telltale Spiele zu kaufen, sollte es JETZT tun (bzw ist zu spät).

Die digitalen Stores delisten gerade alle Spiele dieser Firma und bei GOG wird das am 27.5.2019 durchgeführt. Dort kann man noch die Spiele erwerben, auf Steam wurde bereits die Kaufmöglichkeit abgedreht.

Siehe auch https://www.gog.com/forum/general/all_r ... ogue/page1
-> Trade Thread <-

They have taken you from the Imperial City's prison, first by carriage, and now by boat. To the east, to Morrowind. Fear not, for I am watchful. You have been chosen.
Antworten