Uncategorized

Since my disk space was running out, I tried some things. One of the biggest folders was C:\Windows\Installer. So I tried to find a tool which cleans that up.
I stumbled upon wicleanup which seems to have cleaned quite a lot. Later I found out that it does not work with x64 systems and just clears everything immediately.

So now I am facing issues that I pretty much cannot uninstall or even update anything that is based on msi installers…
For example, when updating Visual Studio 2017 I got an error like:

Return code details: The older version of Microsoft Visual Studio Team Foundation Server 2017 Office Integration Language Pack (x64) – ENU cannot be removed. Contact your technical support group.

Fortunately I am not the only one with this problem. So there are two solutions: either try to find the original msi and install it again or use the “Microsoft Program Install and Uninstall” tool provided from Microsoft found here: https://support.microsoft.com/en-in/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed
This tool allows to pick any installed component and cleanly uninstall it.

As a side note: a tool which seams to correctly clean the C:\Windows\Installer folder is PatchCleaner (there is also a portable version).

All of us have done it: sending a mail without a subject or sending a mail where we wanted to attach something and forgot to attach it.

The following code-snipped can be added to the Visual Basic Editor (Alt-F11) to show a warning if the subject is empty or in the body is the text “attach” or “anhang”.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    If Item.Subject = "" Then
        Cancel = MsgBox("There's no subject, send anyway?", vbYesNo + vbExclamation, "No Subject") = vbNo
    End If
 
    If InStr(1, Item.Body, "attach", vbTextCompare) > 0 Or InStr(1, Item.Body, "anhang", vbTextCompare) > 0 Then
        If Item.Attachments.Count = 0 Then
            answer = MsgBox("There's no attachment, send anyway?", vbYesNo)
            If answer = vbNo Then Cancel = True
        End If
    End If
End Sub

Finally I managed to get WOL working the way I wanted it to.
I wanted to use my Diskstation to wake up my pc at home.
For this, the following things needed to be done:

  1. In the BIOS
    1. Advanced -> APM Configuration -> Power On By PCI-E -> Enabled
    2. Advanced -> Network Stack Conf. -> Network Stack -> Enabled
    3. Advanced -> Network Stack Conf. -> Network Stack -> Ipv4/IPv6 -> Enabled
  2. In Windows
    1. Disable the hybrid shutdown mode
      1. In Control Panel, open the Power Options item.
      2. Click the Choose what the power buttons do link.
      3. Clear the Turn on fast startup (recommended) check box (you might need to click “Change settings that are currently unavailable”) first to enable it
      4. Click Save Settings.
    2. Enable Wake-on-Lan by Magic Packet in the Device Manager for your Network Adapter
    3. Install the “Simple TCPIP Services” from the Windows features screen (Not sure if needed)
    4. Open UDP Port 9 in the Windows Firewall
  3. In Diskstation
    1. In Control Panel -> Task Scheduler, create a new task (User-defined script)
    2. Enter a name
    3. Disable it
    4. For DMS Pre-6.0
      1. Enter “ether-wake -i eth0 01:02:03:04:05:06” into the run command (adjust the number according to your network adapter’s MAC)
    5. For DSM after 6.0
      1. Enter “synonet –wake 01:02:03:04:05:06 eth0” into the run command (adjust the number according to your network adapter’s MAC)
    6. Click Ok

That’s it. Now you can connect to your Diskstation from any device, load the admin iterface and go to the task scheduler and run this task once to start your workstation.

Monitoring traffic from a mobile device can help in many debugging scenarios. Fiddler is a great tool to monitor and debug http(s) requests. This post will describe all necessary steps to use Fiddler to monitor any traffic from a mobile device (also for apps).

Install and configure Fiddler

  1. Install the latest version of Fiddler.
  2. Install the CertMaker for iOS and Android (overrides the default cert-maker from Fiddler to get compatibility with Android/iOS)
  3. Open Fiddler Options (Tools -> Fiddler Options)
  4. Switch to Connections tab
  5. Check the Fiddler listens on port (should be 8888, but you can change it if needed)
  6. Make sure that “Allow remote computers to connect” is checked
  7. Switch to HTTPS tab
  8. Make sure that “Capture HTTPS CONNECTs” is checked
  9. Make sure that “Decrypt HTTPS traffic” is checked

    Note: If you previously already had a certificate made with the default or another generator than the CertMaker, you might need to regenerate the certificate (by deactivating “Decrypt HTTPS traffic”, then clicking “Remove Interception Certificates” and then reactivating “Decrypt HTTPS traffic” again).

  10. Make sure “Ignore server certificate errors” is checked
  11. Restart Fiddler

Setup proxy on Android

  1. Open Settings -> Wi-Fi
  2. Edit the network you’re currently using
  3. Choose “Show advanced options”
  4. Change “Proxy settings” to “Manual”
  5. Enter the IP of the Windows PC with Fiddler under “Proxy host name”
  6. Enter the Fiddler port (default 8888) under “Proxy port”
  7. Save the settings

Setup proxy on iOS

  1. Open Settings
  2. Edit your current network
  3. Go to “Http-Proxy” and set it to “Manual”
  4. Enter the IP of the Windows PC with Fiddler under “Server”
  5. Enter the Fiddler port (default 8888) under “Port”
  6. Make sure “Authenticate” is not checked

Install the Fiddler certificate on the device (needed for HTTPS)

  1. Open any browser on the mobile device
  2. Browse to http://<your windows ip>:<fiddlerport> (eg: http://192.168.1.30:8888)

    Note: You might get a “Connection Refused” here. If this is the case, you can try to disable the “Enable IPv6 (if available)” checkbox in the “General” tab.

  3. Click on “FiddlerRoot certificate”
  4. Install the certificate (might need your device pin or password)

Hint: Chrome traffic not captured

If the traffic from the chrome browser is then not visible in Fiddler this might be because of the “Reduce data usage” setting of chrome. This means that the traffic is redirected thru a google proxy and therefore does not work with your Fiddler proxy. To fix this, just disable the “Reduce data usage” and “Preload webpages” option in Chrome (Advanced -> Bandwidth management)

I just found a nice summary to help you find out what could be an optimal Windows Lumia phone for you, since the overwhelming amount of numbers could be confusing:

Lumia naming conventions
5x Cheap phones
6x, 7x Midrange phones
8x Cheaper flagship phones
9x Flagship phones
10x 41mp phones
13x Cheaper phablets
15x Flagship phablets
25x Tablets

After installing my new graphic card and testing it for a few minutes, the PC always rebooted.

First thing was to run some stress-tests to verify if it was the GPU. I used FurMark for this. It even includes a simple utility to see your GPU stats (like temperature).

And I could verify the issue. Always when reaching 69° GPU temperature, the PC rebooted. Since GPUs should work with temperatures above 80° or even 90°, this seemed to be a hardware issue. It seems like the sensor was broken and showed lower temperatures, so in reality the GPU temperature was much higher but since the sensor reported lower temperatures, the coolers didn’t run fast enough to cool the GPU down and after some point, the maximum GPU temperature was reached and it shut down.

After getting a replacement card, it finally worked without crashing and I’m now able to enjoy fancy new graphics.

I finally assembled my new home-made pc and during setup, I had various freezes when installing certain drivers like the Intel LAN or Logitech Gaming Software. In fact, I could not install those drivers at all.

After a lot of googling I found quite some people having the same problem and solving it with unplugging the DVD/Bluray from the ASMedia Sata3 port.

In fact, the same happened to me. After plugging it in into an Intel Sata3 port everything worked great. Afterwards, I installed the ASMedia Sata drivers, this might have also helped but I could not verify this yet.

So in case you have freezes in Windows, try installing ASMedia Sata drivers or just don’t use the ASMedia Sata ports at all (especially for optical drives).

Just for completeness my system stats:

  • Intel Core i7 4790K BOX
  • ASUS Z97-DELUXE
  • 16GB Corsair Vengeance Pro
  • Samsung 850 Pro (256GB)
  • WD Green (3000GB)
  • ASUS GTX-970 STRIX
  • Microsoft Windows 8.1 Pro 64bit

Phew, that one took a while to finally figure out.

Here’s how I could succeed in doing this:

  • Shutdown the Virtual Machine
  • Increase the size of the HD: VBoxManage.exe modifyhd <absolute path to file> --resize <new total size in MB>
  • Download the gparted iso, mount it in your VM, start it from this iso
  • Increase the partition in gparted (you might need to adjust the “outer” partition as well)
  • Reboot and remove the gparted iso
  • Extend the logical volume: sudo lvextend -L30G /dev/mapper/your-partition-name-root
  • Resize the filesystem: sudo resize2fs /dev/your-partition-name/root
  • Check that everything worked: sudo lsblk

I’m currently writing an essay and I’ve got a lot ot tables in my word document. There are many ways to prevent cells, rows or tables to be splitted.
Here’s a list of the different possibilities:

Wenn man Tabellen oder nur einzelne Teile einer Tabelle vor unerwünschten Seitenumbrüchen schützen will, bieten sich folgende Einstellungen an:

  • Seitenumbruch in einer Zelle/Zeile verhindern: „Seitenwechsel in der Zeile zulassen“ deaktivieren (Tabelleneigenschaften > Reiter „Zeile“)
  • Seitenumbruch zwischen zwei Tabellenzeilen verhindern: „Absätze nicht trennen“ für die erste Tabellenzeile aktivieren (Format > Absatz > Reiter „Zeilen- und Seitenumbruch “)

Wenn mehrere Zeilen einer Tabelle auf einer Seite zusammen gehalten werden sollen, müssen mehrere, aufeinanderfolgende Zeilen mit dem Attribut „Absätze nicht trennen“ formatiert werden. Mit diesem Hilfsmittel lassen sich verschiedene Teile einer Tabelle auf einer Seite zusammen halten:

  • Die ganze Tabelle („Absätze nicht trennen“ für alle Zeilen außer der letzten)
  • Die ersten drei Zeilen nach der Tabellenkopfzeile („Absätze nicht trennen“ für die Tabellenkopfzeile und die nächsten beiden normalen Zeilen)
  • Die letzten drei Zeilen einer Tabelle („Absätze nicht trennen“ für die vor-vorletzte und vorletzte Tabellenzeile)
  • Die ganze Tabelle mit der Tabellenbeschriftung und der Quellenangabe („Absätze nicht trennen“ für alle Tabellenzeilen sowie den Absatz mit der Tabellenbeschriftung)

Wenn ein normaler Absatz vor der Tabelle, z.B. eine Tabellen-Beschriftung oder Tabellen-Überschrift mit der Tabelle zusammen halten sollen, muss auch für diesen Absatz „Absätze nicht trennen“ eingeschaltet werden.

Wenn ein normaler Absatz nach einer Tabelle mit der Tabelle (bzw. der letzten Tabellenzeile) zusammen gehalten werden soll, dann muss man für die letzte Tabellenzeile „Absätze nicht trennen“ einschalten.

Source