PC Smalltalk und Frageecke
Moderatoren: Moderatoren, Redakteure
Re: PC Smalltalk und Frageecke
Selbst Powershell fühlt sich Steinzeitlich an... Auch wenn es schonmal ein Fortschritt war...
- shakeyourbunny
- Beiträge: 1601
- Registriert: 25.01.2013 17:39
- User ist gesperrt.
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
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.
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.
- Scorcher24_
- Beiträge: 15527
- Registriert: 11.11.2004 14:31
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
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:
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ß.
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
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
- shakeyourbunny
- Beiträge: 1601
- Registriert: 25.01.2013 17:39
- User ist gesperrt.
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Scorcher24 hat geschrieben: VM runterfahren.
Code: Alles auswählen
# virsh list | grep "running" | awk "{ print $2}" \
| while read DOMAIN; do
virsh suspend $DOMAIN
done
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
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.
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.
- Scorcher24_
- Beiträge: 15527
- Registriert: 11.11.2004 14:31
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
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.
DIe Capitalization ist in Powershell durchgehend konsistent. Das schafft MS nichtmal beim Fensterlayout mit UWP.
- shakeyourbunny
- Beiträge: 1601
- Registriert: 25.01.2013 17:39
- User ist gesperrt.
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Das Ziel der Übung war, die Linux Äquivalente darzustellen, wo es ebenfalls überhaupt kein Thema ist, diese Sachen zu erledigen.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.
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.
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.
Re: PC Smalltalk und Frageecke
Ohm... Ich rede bei der Benutzung der shell nicht von irgendwelchen Script Spielereien, sondern von der alltäglichen Arbeit, Navigation Datei Operationen etc.
- ziegenbock
- Beiträge: 1378
- Registriert: 11.12.2009 05:28
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Für Titan Quest wurde ein neues Addon veröffentlicht. Falls das noch jemand spielt.
https://store.steampowered.com/app/1071 ... _Atlantis/
https://store.steampowered.com/app/1071 ... _Atlantis/
- Scorcher24_
- Beiträge: 15527
- Registriert: 11.11.2004 14:31
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Eigentlich ist PowerShell als Sprache auch sehr gut gemacht. Vielleicht hilft das ja weiter:
https://simpleprogrammer.com/powershell-tutorial/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.
Re: PC Smalltalk und Frageecke
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....)
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....)
- Scorcher24_
- Beiträge: 15527
- Registriert: 11.11.2004 14:31
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Naja, weil du nicht daran gewöhnt bist. Früher musstest du auch öfters mal man benutzen, oder?
.
Naja, mit PowerShell eben schon
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Re: PC Smalltalk und Frageecke
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...
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...
-
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Cool: GOG bietet bald den Launcher im Launcher für Launcher. ..oder so.
https://www.gogalaxy.com/de/
Spoiler
Show
![Bild](https://i.imgur.com/BSLFf10.png)
- shakeyourbunny
- Beiträge: 1601
- Registriert: 25.01.2013 17:39
- User ist gesperrt.
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
Ach ja, letztlich wird da wohl es daraus hinauslaufen, daß sie da für Steam eine Integration machen und den Rest durch die CommunityWhat 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.
![Smile :)](./images/smilies/icon_smile.gif)
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.
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.
- shakeyourbunny
- Beiträge: 1601
- Registriert: 25.01.2013 17:39
- User ist gesperrt.
- Persönliche Nachricht:
Re: PC Smalltalk und Frageecke
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
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.
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.