2019-12-02

Hp Pavilion X2 Detachable: Touch Screen And Audio Not Working Any More

Problem

The touch screen and audio of the Hp Pavilion X2 Detachable PC 10 stopped working after Windows 10 update.

Touch Screen Problem

Solution

Go to
https://support.hp.com/us-en/drivers/selfservice/hp-pavilion-10-k000-x2-detachable-pc/7439381/model/7588503?sku=K8L57EA

Download the "Intel Chipset, Graphics, Camera and Audio Driver Pack" as depicted

This driver solved my touch screen issue and the error symbol disappeared from the speaker symbol, but the sound still does not work.

Audio Problem

Go to the same site as before:
https://support.hp.com/us-en/drivers/selfservice/hp-pavilion-10-k000-x2-detachable-pc/7439381/model/7588503?sku=K8L57EA

Download the "Realtek High-Definition (HD) Audio Driver" as depicted



I hope this helps

Mobile Phone No Longer Charges - How To Solve This Problem


English


Suddenly the smartphone no longer charges completely. What to do?

There are many pages that describe possible solutions.
So I won't repeat them.
Here is a description of one of the solutions that is nearly impossible to find.
This one helped me at the end.

If the mobile phone is charging, but only up to a certain level, then this solution could help.

Cause


This behavior indicates that the chip that measures the charge level can no longer correctly determine the "values for empty and full".

Solution

  • Discharge the phone completely until it shuts down itself
  • Switch on two / three times (without charging), so the device shuts down itself
  • Finally charge it FULLY (up to 100%)

Voilà, the problem should be solved by now.


Deutsch


Plötzlich lädt das Smartphone nicht mehr vollständig auf. Was tun?

Es gibt viele Seiten, die mögliche Lösungen beschreiben.
Somit werde ich diese Lösungen nicht wiederholen.
Hier wird eine der Lösungen beschrieben, die fast nicht zu finden ist.
Diese hat mir schlussendlich geholfen.

Wenn das Mobile-Phone lädt, aber nur bis zu einem bestimmten Niveau, dann könnte diese Lösung helfen.

Ursache


Dieses Verhalten deutet darauf hin, dass der Chip, der den Ladestand misst, die "Werte für leer und voll" nicht mehr korrekt ermitteln kann.

Lösung

  • Das Handy vollständig entladen, bis es sich selbst abschalltet
  • Zwei- bis dreimal einschalten (ohne Aufladen), so dass sich das Gerät selbst ausschaltet
  • Schlussendlich es VOLLSTÄNDIG (bis 100%) aufladen


Voilà, das Problem sollte jetzt gelöst sein.


Picture by unsplash-logoAlexander Andrews
Downloaded from: https://unsplash.com/s/photos/battery

2019-11-04

How To Correct Logcat Missing Filter In Android Studio


Before trying to restart the Android Studio in order to make the logcat filter fields re-appear (this did not worked for me the last time), simply try first to change the window size to “Restore Down” and back to “Maximize” or the other way around. (This worked for me on Windows 10).

Here is what I mean:

"Restore Down"

"Maximize"

I hope this helps.


2019-09-05

How To List Files in Google's Firebase Storage


This is an example of how to list the files stored in a given Storage Bucket (like a "folder") in Java under Android.

Follow Google's description "Get Started with Cloud Storage on Android" in order to configure Firebase Storage for your App.

For the detailed description of listing files (the example listed there uses Kotlin, not Java).

final String LOG_TAG = "MyTag"

// The first step in accessing your storage bucket is to create an instance of FirebaseStorage:
FirebaseStorage storage = FirebaseStorage.getInstance();

// ... or you also can specify a specific storage bucket (see document from the first URL from above)
// FirebaseStorage storage = FirebaseStorage.getInstance("gs://my-custom-bucket");

// Create a storage reference from our app
StorageReference storageRef = storage.getReference();

// Create a child reference. The myKindOfFolder now points to the "kind of subdirectory" containing the file(s) to be listed
storageRef.child("myKindOfFolder")
        .listAll()
        .addOnSuccessListener(new OnSuccessListener<ListResult>() {
            @Override
            public void onSuccess(@NonNull ListResult result) {
                Log.d(LOG_TAG, "onSuccess()");
                Iterator<StorageReference> i = result.getItems().iterator();
                StorageReference ref;
                while (i.hasNext()) {
                    ref = i.next();
                    Log.d(LOG_TAG, "onSuccess() File name: " + ref.getName());
                }
            }
        })
.addOnFailureListener(new OnFailureListener() {
    public void onFailure(@NonNull Exception e) {
        Log.er(LOG_TAG, "onFailure(): ", e);
    }
});

Output
. . .
. . . onSuccess() File name: File01.txt
. . . onSuccess() File name: File02.txt
. . . onSuccess() File name: File03.txt
. . .

2019-02-22

Showing Total Memory Used Per Oracle DB Instance


The following command gets the output of "ps aux"...
... takes only the lines regarding Oracle DB ("ora_") ...
... and sums up the RSS (resident set size, the non-swapped physical memory that a task has used (in kiloBytes)) ...
... grouped by DB SID


ps aux --sort -rss | awk '/USER +PID | ora_/{ split($11,a,"_"); db=a[3]; if(db!="" && db!="RSS"){ m[db]+=$6; } } END{for (db in m){ printf("DB:%9s uses %7.1f MB RAM\n",db,m[db]/1024); tot+=m[db]} printf("%12sTotal %7.1f GB RAM\n"," ",tot/(1024*1024))}'

Output Example
(DB "Dfug" is a temporary DB that has been automatically created by RMAN in order to make a TSPITR)
DB:     Dfug uses   884.9 MB RAM
DB: C0201Z01 uses  4196.6 MB RAM
            Total     5.0 GB RAM

2019-02-05

Number Comparison Statements in KSH (Korn-Shell)


Before showing two variants of a number comparison statement, I want to show an alternative method counting the occurrence of a string in another one.

The following "grep -c" counts the occurrences of ":" in the echoed string:
echo "gu:gus:bla:bla" | grep -c ":"
Output
3

Another way to write the statement from above is:
grep -c ":" <<< "gu:gus:bla:bla"
Output
3


Here two examples of similar number comparison statements using the output of the statement from above:
OS> if (( $(grep -c ":" <<< "gugus:blabla") == 1 )); then echo "TRUE"; else echo "FALSE"; fi
TRUE

OS> if (( $(grep -c ":" <<< "gugus blabla") == 1 )); then echo "TRUE"; else echo "FALSE"; fi
FALSE

OS> if [[ $(grep -c ":" <<< "gugus:blabla") -eq 1 ]]; then echo "TRUE"; else echo "FALSE"; fi
TRUE

OS> if [[ $(grep -c ":" <<< "gugus blabla") -eq 1 ]]; then echo "TRUE"; else echo "FALSE"; fi
FALSE

I consider the first variant to be more elegant.
But if you are mixing character and numerical comparisons, you will need to use the 2nd variant with "[[ ... ]]"
For example:
X="Hello"; if [[ "${X}" == "Hello" && $(grep -c ":" <<< "gugus:blabla") -eq 1 ]]; then echo "TRUE"; else echo "FALSE"; fi
TRUE
X="Bella"; if [[ "${X}" == "Hello" && $(grep -c ":" <<< "gugus:blabla") -eq 1 ]]; then echo "TRUE"; else echo "FALSE"; fi
FALSE

The following syntax gives wrong results
OS> X="Xello"; if (( "${X}" == "Hello" && $(grep -c ":" <<< "gugus:blabla") == 1 )); then echo "TRUE"; else echo "FALSE"; fi
TRUE

OS> X="Bella"; if (( "${X}" == "Hello" && $(grep -c ":" <<< "gugus:blabla") == 1 )); then echo "TRUE"; else echo "FALSE"; fi
TRUE <== Wrong

Matematical
Syntax
"In Words"
==
-eq
<
-lt
>
-gt
=<
-le
>=
-ge
!=
-ne



2019-01-16

Oracle Data Pump Errors: ORA-31626 and ORA-06512 and ORA-31637 and ORA-31632 and ORA-01422


Problem
While implementing a Data Pump Export script, I started getting the following error stack:
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
ORA-31626: job does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.KUPV$FT", line 1183
ORA-31637: cannot create job CSEXPDP_01 for user SYS
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 1176
ORA-31632: master table "SYS.CSEXPDP_01" not found, invalid, or inaccessible
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 1167
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.KUPV$FT_INT", line 2566
ORA-06512: at "SYS.KUPV$FT_INT", line 2556
ORA-06512: at "SYS.KUPV$FT", line 1092

Cause & Solution
In my case the error was caused, because my script used the same name for the Database Directory and the Data Pump Job.
For example:
It created a DB-Directory like this . . .
CREATE OR REPLACE DIRECTORY tmp_auto_dp_01 AS '...';

. . . and specified a DataPump job name like this:
JOB_NAME=tmp_auto_dp_01
DIRECTORY=tmp_auto_dp_01
SCHEMAS=...
DUMPFILE=...
LOGFILE=...

I hope it helps someone

2019-01-07

USB-C Magnetic Adapter

Since 2016, when I have bought an Asus ZenBook with only one USB connector (USB Type-C / USB 3.1) I have been looking for a possibility to spare this adapter.

Since then I have been looking for a magnetic adapter but I could not find a fully USB 3.1 compatible adapter also capable to transfer data. Most of the magnetic adapters where only capable to deliver power or to be used to transfer small amount of data with mobile phones.

The only adapters promising to be fully USB 3.1 compatible where published on crowdfunding platforms like Kickstarter or Indiegogo, but they all seemed to be scams.

So I was very happy when I found such an adapter in AliExpress. I almost could not believe it.
But since it wasn't so expensive I gave it a try and ordered one.
The adapter worked like a charm.
I successfully tested the following functions:

  • power delivery for my notebook
  • network 
  • USB data transfer to mouse, keyboard, USB stick, SD card
  • video 
  • sound

I could also successfully perform the tests from above with my wife's notebook Lenovo Yoga.

I am using the first adapter for around two months without problem.

So I ordered three more adapters they all worked. Only one of them is more "sensitive" to shake.

Here some pictures:




There are several shops offering this product.
I ordered my adapters on the following one:

New 20 PIN Type C Magnetic Adapter For Macbook Pro MateBook Fast Charging TYPE-C Port Laptop Magnet USB-C Data Cable Adapter


It is not my intention to make advertising in my blog and I have no relation with AliExpres the shop on the link above or anyone related to this product.
I am only so happy to have found this product that I want to help others find it.