blog.darkstar.work - a simple url encoder/decoder

 a simple url encoder/decoder
 http://blog.darkstar.work

Labels

Wirtschaft (153) Pressefreiheit (135) Österreich (123) IT (100) code (63) Staatsschulden (37) EZB (27) Pensionssystem (16)

2021-08-22

Maturaschularbeit Deutsch (English completly refactored and updated)

(I wrote the to the same theme 30 years ago my german completion of school work [Abitur] an essay):

It was a lot of generic gossip, where the difference between humanism and existentialism was worked out somewhat, (best intention before acting versus only the result and consequences of thour actions) and from my point of view now, I really didn't understand anything at all, anything about the world, the economy, about the hierarchy of law, about international trade agreements, about mechatronic or IT, buit
But I felt fine and arrogant, because I was so TOP in school in technical science subjects, chemistry, and especially math. [I couldn't model a complex problem with the best mathematical model, no, I didn't even understand linear optimization (simplex) or differential equations.
I'am a left liberal democratic atheist, because of many expierences near or beyond death and a more complex understanding of the abstraction of the mind in correspondence with the brain in our bodies (with heart and lungs) and the spatial and temporal limitation of any existence.
I am a staunch European and a great advocate of the Charter of Human Rights, because nowhere in the world are human rights so respected by law as in Europe
However, I am a little sad that Europe is losing more and more of its economic strength to China, India and the USA, because without a strong modern economy a social fair welfare state isn't possible. Unfortunately, Europe gave up its technically and scientifically innovative lead years ago.
The biggest technical innovations of the Europeans within the last decades were in my opinion GSM (https://en.wikipedia.org/wiki/GSM) and Linux (Linus Torvalds from Finland & Alan Cox from Wales)
Unfortunately there were only a few companies in Europe (SuSE in Germany https://www.suse.com/de-de/) and otherwise linux was mostly only used in the university sector.
In 2010, Torvalds became a United States citizen when getting a job offer from TRANSMETA. In the USA dozens of large corporations use Linux technology, IBM, RedHat, Amazon, Google (Android the most successful further development of Linux for smartphones). https://en.wikipedia.org/wiki/Android_(operating_system)... and many other BIG players in NASDAQ stock exchange.
If we now take a closer look at android smartphone OS (which is essentially based on GSM and Linux), then the software manufacturer Google is based in the USA, the big phone hardware companies like Samsung, Huawei, Google Pixel, Motorola are everywhere around the world, really everywhere except in Europe . Just two European groups Nokia (with a lot of financial capital aid from the giant Microsoft) and Alcatel (with a lot of support from an unspecified Chinese cooperation) have somehow survived in Europe on the technical course of time.
Don't understand me wrong, in Austria are a lot of good companies mostly within the Federation of Industrialists ( https://www.iv.at/.../Federation-of-Austrian-Industries.html )
and they are still up to date due to the permanent further development of existing TOP products and expansion into new markets, but only further development and never the leap from totaly new innovation to international group succeeded. (We are still capable of new innovation even with economic future value and also to hold listed corporations well on the international markets, but Europeans have recently never managed to establish the proove of concept or prototype for an international product within a corporation).
The philosophy of USA and FED with low taxes, expansive monetary policy and stimulating labor markets, designed central bank policy and with enough freely available risk capital is unfortunately also unknown in Europe. (Perhaps a windy innovative inventor and innovator wanted to realize his idea here in a company too, but it failed because of enough free risk capital and legislation was much too regulative).
I'am stil in eternal spiritual love with my first three ex-girlfriends and the person I mostly trust is Bernhard Seiler, because he forgived me and so many people will never forgive me and a did nothing to them and the still hate me.
The male politician I admire the most is the former finance minister and industrialist Hannes Androsch (https://de.wikipedia.org/wiki/Hannes_Androsch), because he's one of the few who argues for an economically strong and social position thanks to his vast know-how.
The female politician I admire the most is Hillary Clinton, because she campaigned for social and women's rights, killed the world's most dangerous terrorist for a long time without risiking American and NATO soldiers lifes somewhere far from home. Most of all, I adore Hillary Clinton because she forgave her husband Billclinton and stood by him and fought for him in the media like a lioness when she was emotionally hurt the most. Her good relationship with her pretty daughter Chelsea Clinton also lasts to this day.
I am now an middle aged more worn man marked by life, who prefers to look to the future positively rather than depressed, especially because for great Love and perspectives for his two sons. (my children).

The most needed reforms were, are and will still be education and pension reforms, because my children already got a bit know more economical and technical education, but the quality of basic public education is still not at the state of the art, where you as parent can be sure, that your kids have a solid natural science base and technical toolbox to not believe the crudest conspiration theories.

2021-07-25

Dysphotic Future with failing Anti-Terror AI

In a dysphotic future, there will exist an AI, who monitors all public, privat and even dark net communication and discussion bords and if the AI detects and emotional HATE-SPEACH or VERY DESTRUCTIVE post, then it automatically creates a news story about a crime (e.g. terrorist attack or assault, slaughter, rape), where the victim is a virtual person baseed an designed on the victim, who was blamed in the discussion board. The perpetrator is portrayed similarly to the person who posted / wrote the hate speech in the discussion forum.

The problem with this is that in this future there are regular articles about terrorist attacks and also a lot of rapes, e.g. if a man with women's problems expresses himself indulgently in a gamer forum.

Originally the purpose was to see emotionally unstable people for the ultimate dire consequence of their actions, but with this deluge of gruesome articles more and more dulled people and overlooked the warning signs of real crime.

[Das Problem dabei ist, dass es regelmäßig in dieser Zukunft, Artikel über Terroranschläge gibt und auch viele Vergewaltigungen, wenn z.B. ein Mann mit Frauenproblemen sich ablassend in einem Gamer Forum äußert.

Ursprünglich war der Zweck, emotional instabilen Menschen die letztmögliche schrecklichste Konsequenz ihres Handeln zu veranschauen, aber durch diese Flut an grausamen Artikeln stumpfen die Menschen immer mehr ab und übersehen die Warnsignale für echte Verbrechen.]

2021-05-01

Frage zum musikalischen Urheberrecht

Angenommen, ich nehme all den Klassikvorrat, der nicht unter das Urheberrecht fällt her (z.B. Kirchentonarten, alle Klassiker vor 1900 der Moderne, wie Bach, Mozart, ...) und nehme die minmal schützbare Tonfolgen als Samples Baukasten.
Was ist die Menge an Musik, die ich mit diesen Samples Baukasten durch Kombinatorik (theorethisch) erzeugen kann?
(Ich meine, welche Musik lässt sich theorethisch mit diesen Samples als Basis etzeugen).
Keine Sorge, es bleibt den neuen Urhebern genügend Material, weil alle Musik, die nicht auf dem klassischen Notensystem oder Pentatonik basiert (wie 5/9 oder 17/33 oder sonstiger Bruch 2er hoher Primzahlen Tonschritte) lässt sich damit sicher nicht abbilden.

Suppose I take all the classical music compositions, that aren't subject of copyright (e.g. church modes, all modern classics before 1900, such as Bach, Mozart, ...) and use the minimum protectable tone sequences as a sample construction kit.

What is the amount of music that I can (theoretically) generate with these sample modules through combinatorics?
(I mean, what amount of music can theoretically be created with these samples as a basis). 

Don't worry, there is enough material left for new composers, that want to produce under copyright, because all music that is not based on the classical notation system or pentatonic scale (such as 5/9 or 17/33 or other fractions of high prime numbers) cannot be reproduced with it.

Supposons que je prenne tout le stock de musique classique qui n'est pas soumis au droit d'auteur (par exemple, les modes d'église, tous les classiques modernes avant 1900, tels que Bach, Mozart, ...) et que j'utilise les séquences de sons minimales pouvant être protégées comme un exemple de kit de construction.
Quelle est la quantité de musique que je peux générer (théoriquement) avec cet exemple de kit de construction utilisant la combinatoire?
(Je veux dire, quelle musique peut théoriquement être créée avec ces échantillons comme base). Ne vous inquiétez pas, il reste assez de matière pour les nouveaux auteurs, car toute musique qui n'est pas basée sur le système de notation classique ou l'échelle pentatonique (comme 5/9 ou 17/33 ou d'autres fractions de nombres premiers élevés) ne peut pas être reproduit avec.

2021-03-31

Semantic web lost in history / herstory around 2010, how to reactivate it & a short contract use case

Current hypes, trends and pushed business models at 2020

Let's take a short look at the current hypes, trends and pushed business models for companies:

  1. IOT (Internet of things), Industry 4.0
    Machines, units, etc. know and probably send their own status at manufacturer, service center, at home or somewhere else over the rainbow (in case of  ugly DNS injection, warped rouing tables [OSPF, BGP] ot men in the middle [squid bump, bluecoat, ...]).
    Those units normally,communicate when they need maintenance, when components soon needs to be replaced, when physical, technical or environmental critical limit reached, when subsystems fail or completley shut down, when the user when the customer operates it improperly or negligently, simply report in intervals that they are alive and everything's OK, , etc

    We can find a lot of use cases for many useful applications here, added value / surplus is often small but still useful! Problems with security, flood of data, extracting relevant events and, above all, reacting to the corresponding message are the challenges here.

  2. Cloud
    I like the cloud, but sometimes cloud feels cloudy, cloudier, obscure dust and smog over keywords and hypes and real hard technical features that generate great customer surplius and real cash or quality of business benefits.

    What are the most common problems, pitfalls and misunderstandigs with any cloud?

    • Lack of specific customer requirements and inaccurate, exact technical specifications from the cloud provider.

      Practical example (what I really need and I'm thinking about right now):
      I need to implement a state service, that saves current game status of small multiplatform games (e.g. card game schnapsenarchon clone, SUPU) in the cloud. If I play on my  android tablet or smartphone, the current state and course of the game will be transfered to a cloud servie, persisted in a cloud storage or database and if I continue playing on Windows desktop, the last state of the game is automatically fetched from the cloud and the game application sets that game state and transferred back to cloud after the next move.

      For my purposes the cheapest way will be sufficient:
      A simple Amazon Linux 2 AMI (HVM), SSD Volume, Type t2.nano, t2.micro or t2.nano with a simple SQL-Database (no matter if hackish install at virtual imaage or the smallest Amazon DB instance) with somekind of open source PHP Swagger API, like https://github.com/andresharpe/quick-api

      With similar requirements, some developers and most managers are probably unsure whether to use Amazon ElasticCache or some kind of Session State Server ported to Azure SQL  or entirely another not well known cloud service.

      Even fewer people (including myself) know what the exact technical limits of the individual services are, e.g. the exact performance and scalable elasticity of Anazon Elastic Cache and when scalability of Amazon Elastic Cache is completely irrelevant, since the network traffic and the network data volume will always be the bottle neck in that specific scenario.

    • Nice advertising slogan, but poor performance and poorly configurable options from drive and storage providers, no standard network mount (like SMB or NFS), but a lot of cloudy magic.
      When I look at the beautiful Google Drive and Microsoft One Drive, I immediately see that this is not a classic network file system mount under my point of understanding.
      Reading and writing large blocks or deep recursively nested directory trees is extremely slow.
      I also didn't find an option to have an incremental version history backup created after every change (Create, Delete, Change) to the Cloud Drive or at least simply midnight-generated backups for the last 3 months at low cost.
      Options like synchronizing parts of the Cloud Drive locally create horror nightmares.
      In 1997 we booted an NFS from the USA via Etherboot with real-time DOS and debugged faster Doom Clones and other 3D games in C ++ with some ASM routines and the network performance didn't fail.

    • Difficulty finding the most suitable service in Cloud Djungel. Real technical comparisons between the hard facts and the possibilities of the individual cloud services have so far mainly published by free bloggers, e.g. AWS Lambda vs Azure Service Fabric
      Decisions are more based on creeds (we have a lot of .NET developers, so we'll use Azure, I mah strong Amazon-like power women and Linux, so I'll use Amazon).



Lets go back to RDF in the years 2010 - 2015 

You probably know what semantic web, owl, rdf, machine readable & understandable data are, right?

If not, then here is a little bit of reading:
https://www.w3.org/TR/rdf-mt/
https://www.w3.org/TR/2010/WD-rdb2rdf-ucr-20100608/
https://en.wikipedia.org/wiki/RDF_Schema

What does 'going back in time' mean in a large scope and broader sense?

Before all the new trends, there was an attempt to realize semantic web, e.g. RDF as an XML extension with semantic machine-understandable properties.

When we as human beeings read a website or analyze BIG data, we automatically recognize the context, perhaps the meaning and probably the significance of this data.

Machines can't do that, they didn't have a semantic understanding until now.

Information theory distinguishes between 3 levels of information:

  1. Syntax level (compiler construction, scanner, parser, automata & formal languages, extended grammar, e.g. https://en.wikipedia.org/wiki/Context-free_grammar
  2. Semantic level (meaningful reading by people, putting things into context, understanding contexts).
  3. Pragmatic level (goal-oriented action based on information by recognizing the meaning at the level of semantics).

I assume / postulate:

=> If computer programs reach 2. semantic level => then we are a big step closer to AI realization.


Why computer programs can't already implement semantic understandig? 

Theoretically and also practically in terms of technical frameworks, computer programs are already able to understand semantically data.

The concrete problem is here, that too little data are provided in a semantically machine-readable form and a standardized (META-)language.

Example: Regardless of whether Statistics Austria, Open Data GV or ECB, etc, certainly provide very good statistics, but none of them provide semantic machine-readable data.

Somebody has to make here a  larger startup, to transform already provided common and needed statistics public data in semantically machine-readable form.


What does that actually bring in return of short time invest?

Not so much immediately!

What could be the fruits in mid-term or in the long tail?

A lot, because when more and more public open data are availible in a semantic machine readable language, programs can also bring some of them in association and we'll be able to implement meta relational AI rules then.

Use case contracts

Semantic programs doesn't only mean mass data fetching and putting them into relation. 
Semantic programming could also in principle support any very formal business process, e.g. contract management for

  • employment contracts
  • supply contracts
  • service provider contracts
  • insurance contracts
  • bank contracts 
  • and all the contracts that people sign with just one click on a checkbox (which they usually do not know that this is a legal contract consent).


All clear and understandable so far?

I got this idea when I was looking and inspecting the adopted amendment to the laws and newly passed laws by the democratic republic of Austria and I wanted some semantic automated statistics for some use cases. 

For details look at post https://www.facebook.com/heinrich.elsigan.9/posts/156458906318533
or read the post copy below:

2021-02-27

Schlafstörungen, nächtliche Recherche und IBM Security

Aufgrund nächtlicher Schlafstörungen recherierte ich ein wenig, denn für ein komplett neues android system image kompilieren, war ich trotzdem viel zu müde.

Dabei fand ich diese netten IBM Security Produkte und noch ein par andere Dinge:


IBM's still alive


IBM Security Trusteer Mobile SDK

Hier gibts so ein trusted mobile device (andoid, iphone, tablet) SDK (Software Development Kit), das Kompromittierungen (root, hacked, jail-breaked, untergeschobene root-CAs um SSL aufzubrechen und evtl. Staatstrojaner und ähnliches erkennt). Jedenfalls sollten Entwickler damit sicherere verteilte Anwendungen für Cloud u.s.w. hochverfügbar implemetieren können:

https://www.ibm.com/products/trusteer-mobile-sdk

Mobile device management (MDM) solutions

Das hier ist auch so eine mobile security Geschichte, die mobile Geräte Sicherheit der Mitarbeiter garantieren will. Also so kein "Nachhause-Telefonieren" durch irgendwelche untergejubelten Drittanbieter Apps, klassische End-2-EndPoint Secuirty, u.s.w.

https://www.ibm.com/security/mobile/mobile-device-management

IBM Security Products (case study fraud detection)

Dann zeigt IBM weiter noch, dass es auch eine standardisierte Fraud detection (wahrscheinlich generisch erweiterbar) kann! Ich schätze diese Fraud Detection Engine geht wahrscheinlich über Insolvenzregister, KSV, Casinosperre, Standardbonitätabfragen und dubiose exotische Prepaid oder sontige WireCreditCards hinaus und lernt kontinuierlich (à la Virenscanner):

https://www.ibm.com/security/products

nomachine.com

Zu guter letzt fand ich noch einen sicheren Terminal-Server (diesmal nicht IBM, den sich auch mal wer ansehen könnte):

https://www.nomachine.com/product&p=NoMachine%20Enterprise%20Terminal%20Server




Gehe jetzt wieder ins Bett, gute Nacht / guten Morgen.


2021-02-10

Warum ich der Welt grundlegend misstraue?

Die Zeitung "Die Welt" schrieb: "Ein Forschungsteam hat sich den Erfolg der deutschen Kapitalanlage im Ausland gründlich angeschaut. Dabei hat sich gezeigt, dass die Deutschen bei ihrer internationalen Geldanlage ähnlich erfolglos sind wie bei der Anlage ihrer Ersparnisse." "Andere Länder sind mit der Anlage ihres Auslandsvermögens deutlich erfolgreicher. Seit 1975 liegt die jährliche Rendite deutscher Anlagen im Ausland um fünf Prozentpunkte unter den Erträgen, die die USA erwirtschaften, und immer noch drei Prozentpunkte unter der Rendite, die die anderen europäischen Länder im Durchschnitt erwirtschaften." "Deutsche Anlagen im Ausland besser managen Allein im Zeitraum seit der Finanzkrise hätte Deutschland ein zusätzliches Vermögen im Umfang von zwei bis drei Billionen Euro aufbauen können, hätte es sein Geld ähnlich gut angelegt wie Kanada oder Norwegen. Pro Kopf der deutschen Bevölkerung entspricht das 28.000 bis 37.500 Euro! Auf einen Schlag hätten wir ein um 50 Prozent höheres Vermögen." "Was zu der folgenden Frage führt: Woran liegt es? Darüber kann man nur spekulieren. Um uns zu verbessern, sollten wir zwei Dinge tun: weniger im Ausland anlegen und unsere Anlagen im Ausland besser managen."
Web Link: https://www.welt.de/finanzen/plus226059659/Geld-fuer-die-Steuerzahler-25-000-Euro-fuer-alle-unter-65.html Screenshot: https://photos.app.goo.gl/MrvKFzFtgbqoW6vJ8 Äh, wieso muss Deutschland sein Vermögen im Ausland inverstieren? Performance der Börsenleitindezes einiger europäischer Staaten inkl. Schweiz. Wir sehen, der DAX stieg um 254%! Jetzt mal angenommen, die Deutschen hätten ihr Geld in der Schweden oder in der Schweiz angelegt: das wären ja immer noch satte 228% oder 132%. Von Signapur oder den USA rede ich jetzt gar nicht einmal, sondern nur von Europa. Selbst bei Investitionen in den Eurostoxx oder den italienischen Leitindex wäre das noch immer ein kleines Plus von 50%. Und bitte, Italien ist nicht unbedingt das kapitalistischte Land der Welt, oder? Europäisches Land Steigerung von 22.02.2009 bis 10.02.2021: Deutschland 354,19% Schweden 328,13% Schweiz 232,96% Eurostoxx 208,29% Italien 155,45% Griechenland 14,66%


P.S.: Was mich aber wirklich wundert:
Wie in aller Welt konnte Deutschland mit dieser hohen Staatsquote so extrem gut gegenüber der sparsamen liberalen Schweiz performen. Ich vermute, es liegt an den Freihandelsverträgen, die die EU genial aushandelte.

Ich vermute: Da die deutsche Wirtschaft auf Export ausgelegt ist, ist jeder Freihandelsvertrag ein Boost im DAX.
P.P.S.: EINE KLITZEKLEINE FRAGE:

Was hindert eigentlich die Deutschen daran, sich an deutschen Unternehmen zu beteiligen? Ich mein Mtarbeiterbeteiligung ist ein etwas moderneres, aber nicht gerade sehr neues sozialistisches Konzept, das bei so Betrieben, wie der VOEST Alpine, inzwischen sogar [Geschäfsgeheimnis] und [Geschäfsgeheimnis] in Österreich und sogar inzwischen einigen US amerikanischen Unternehmen oder japanischen Unternehmen Gang und Gebe ist. Sind aber alles Industrie- oder IT- Unternehmen. (bis auf Goldman Sachs), aber Nomen est Omen und dort ist immerhin der Sachse vergoldet und nicht Paria.
Welcher Mitarbeiter oder Manager von mittel bis CEO vertraut bitte dem eigenen Unternehmen nicht? Das klingt verdammt nach "Deutscher Bank" oder? Ich kann mir nicht vorstellen, dass ein BMW Mitarbeiter den bayrischen Motorenwerken nicht vertraut oder ein VW Mitarbeiter nicht den Guys in Wolfsburg oder Ingolsstadt. Ich würde sogar T-Systems vertrauen und dort mein Geld investieren!

2021-02-05

No global plan for generic multi-language globalization/localizaion

There is sadley no generic concept for platform and language independent multi language globalization / localization for applications.

Some case studies


Visual Studio WinForms (C#VB)

Globalization / Localization in Windows Forms is implemented via different resource files (.resx).
ResourceManager and Resource accessors are created semi automatically from Visual Studio.

Visual Studio 2019
Resources in .NET


Microsoft and Stockoverflow links about resources and globalization and culture info.

Android Studio (Java, Kotlin)

Globalization / Localization are realised in Android Studio via different language directories beyond the res folder:

Using the Translation Editor inside Resource Manager to build your translation from Android Studio GUI, see: http://blog.androidrich.com/2016/11/translation-editor-in-android-studio.html



Android supports right to left screen orientation too for arab or farsi languages.

Documentation about globalization / localization in android

Razor MVC and Blazor Web

Webpages, that are build with .NET framework and deployed in IIS on windows or Apache on linux (no matter with mod_mono or something else [1]) use language and country prefix directly after FQDN and before path in url to route to different language subpages, e.g.:
https://docs.microsoft.com/en-us/aspnet/core/blazor/globalization-localization
https://docs.microsoft.com/de-at/aspnet/core/blazor/globalization-localization
https://docs.microsoft.com/fr-fr/aspnet/core/blazor/globalization-localization



Multi-language globalization in reality

In reality in the world wide web and on desktop or other applications, there are many different approaches how multi-language and globalization is implemented. Only few use a auto translation API like google.com/translate.

Prospect / outlook for standardized globalization?

I don't know. Lets use the crowd to answer that question!

2021-01-17

n-sphere hypermaps ⇒ cattle breeding

Have you ever noticed the advantage of real n-sphere hypermaps?

No?

That is very sad, because with hypermaps thou would understand, recognize, realize immediately,

  1. that alpine pastures for cattles offer little crop yield for humans;
  2. that mordern technical agricultureof is nearly impossible in hilly and mountainous impassable areas with rocks and small swamps inside and only 2% continuous flat area per hectare.
  3. that cattle breeding in certain climatic alpine mountainous regions has much lower risk as Agricultureof with poor hervests in worse case.
  4. that cattles transforrm & recycle low-calorie vegetarian naural grown food much better than humans or hunter mammals with a short intestine.
  5. that chances of success for cattle and sheep breeding are similarly much higher as profitable modern agriculture at Scottish Highlands in the marsh, around rual areas beside Loch Ness, on Outer Hebrides and on small isles (Inishbofin, Claire Island) near the Irish north-west coast.





2021-01-11

linux: flashing an (iso)image to usb stick

This article contains all main informations to create (rawwrite) a bootable usb stick from an existing iso (loopback) image under linux.

classic way diskdump (dd)

Find correct usb device file 

First we had to find correct linux device file for your plugged/connected usb flash (e.g. lsblk):

  lsblk --list --fs ; lsusb -v ; lshw ; hal-device ; dmesg ; echo "..."

or use that (almost) auto usb devive verifying simple shell script:

get_usb_device() {
    local device_path=$1        # such as /dev/sdc
    for devlink in /dev/disk/by-id/usb*; do
        if [ "$(readlink -f "$devlink")" = "$device_path" ]; then
            # echo "$device_path" is usb device 
            # echo "$(lsblk -no NAME,FSTYPE,SIZE,STATE,OWNER,TYPE,MOUNTPOINT,LABEL,MODEL "$device_path")
            echo Fetching detailed information for usb device "$device_path" by 'hdparm -I "$device_path"'
            echo -en "$(hdparm -I "$device_path") \n\n"
            echo use cache size as base for block size in disk dumnp later 'bs=...'

            return 0
        fi
    done
	
    echo "$device_path" is not an usb device
    return 1
}

  REMOVABLE_DRIVES=""
  for _device in /sys/block/*/device; do
      if echo $(readlink -f "$_device")|egrep -q "usb"; then
          _disk=$(echo "$_device" | cut -f4 -d/)
          REMOVABLE_DRIVES="$REMOVABLE_DRIVES $_disk"
      fi
  done
 
  for _usbdevice in "$REMOVABLE_DRIVES"; do

    if get_usb_device "$_usbdevice"; then
      echo "# use following code to create your bootable usb stick: "
      echo sudo umount -l "$_usbdevice" ; 
      sudo dd if="$HOME"/'path_to_your_image.iso' of="$_usbdevice" bs=4K && sync 
      echo "# correct bs (block size) by cache size of usb device! "
    else
      echo failed verifying usb by executing command: get_usb_device "$_usbdevice" 
    fi
  done

Flash your iso image to usb device file with dd

Finally use linux disk dump (dd) for creating image.

  sudo umount -l  /dev/usb_device_to_flash ; 
  sudo dd if=path_to_your_iso_image of=usb_device_to_flash bs=block_size_based_on_devive_cache && sync ; 
  # default block site always are any factors of 4K

Advanced tools like Usbimager or WoeUSB

Using more advanced graphical tools such as usbimager or WoeUSB to create bootable USB flash stick.


2021-01-01

hard fact reality vs narrative story telling (playing) theater from the point of triggers

Introduction 

The meaning of triggers in this article according to information theory. 

https://pediaa.com/difference-between-semantics-and-pragmatics/

A trigger is an impulse that causes people or programmed machines to take certain actions after a message has been understood in both semantic and pragmatic context. Strong triggers include furthermore the feeling of high priority and generate a strong tendency to act, well as an awareness of the consequences of not acting now.

Some examples for triggers

  1. Weather is stormy and rainy (semantically and pragmatically understood) ⇒  
      (Trgger  (T)   
    ⇒  I have to open my umbrella

  2. Fire breaks out ⇒ 
      (Trgger  (T)   
    ⇒  Trigger fire alarm and call fire department

  3. FED is lowering prime interest rate from 2,25% to 0,5%. ⇒ 
      (Trgger  (T)   
     Let's get a cheap credut (loan) in US$ and 
    make classical leverage invest in Dow Jones & Nasdaq!



Detect hard fact reality vs story telling theater by observing behavior of trigger

When I was in the army long time ago, we learned several emergency commands / orders. One of that was 'AC-Alarm' (Atomic nuclear, biological or chemical are launched, so troops had to immediately Initiate protective suit and emergency measures)



Nobody was ever maling many funny jokes in that training, similiar to fire breaks out ⇒ fire alarm in the examples above. When observing the trigger behavior. everybody recognizes, that this is no playing game and a real dangerous situation. Same story, when people are infected with HIV (AIDS) Virus or (not so deadly) Malaria.

Well, when looking at the Coronavirus, triggers are too soft, negligently, inconsistent.
Remember all DioxinPlutoniumAnthrax incidents in the last 25 years, remember even Creutzfeldt–Jakob disease. triggers were much more hard and serious, even when there was never danger for many people in all that cases.

According the media Coronavirus has already killed hundreds of thousands of alleged dead, but nobody's reacting or triggering heavy casualties for real. People are still playing that game, but nobody takes / triggers that Coronavirus real serious / grievous.

2020-11-02

Snaps, snapd,, Snap Store, snapcraft.io

Tonight in the early morn, when I tried to write(1) an open os based solution(2) to transform almost any modern personal computer or laptop(3) to a simple generic wifi router(4).

Then I unexpectedly found a  community platform, that was still unknown to me:

snapcraft.io

Snaps are there defined as  app packages for desktop, cloud and IoT that are easy to install, secure, cross‐platform and dependency‐free. Snaps are discoverable and installable from the Snap Store, the app store for Linux with an audience of millions, 


I tried first the search functionality of that platform and let's say clearly: 
The layout design looks excellent, the community is well visited, but some functions could be better. Lets look at these 2 examples: 
Searching common phrase file
Searching 1 char only d  
Search results also could be sorted more meaningful & understandable, e.g. 
  1. show all results, where the search phrase  directly corresponds to the package app name /(no matter if sql like (prefix, suffix, substring), sql fulltext match or Levenstein distance.
  2. then show all results, where the search phrase is found in the shown package descripton
  3. at least show all results, that appear like a magical fog or smoke for the user. I know, that your search function is probably not returning total random or bad fuzzy hit results, but I guess the search algorithm searches in fields, which are not shown in search result view.




Snapcraft web site provides at the moment the snap app package search page, a store, tutorials, documentation, developer blog, forum and IOT special bulletin.


Conclusio: Snapcraft has surly more potential, but additional functionality must be added and especially a more clear vision and road-map needs to be specified, followed and permanently filled with life. (Under my point of view, without any additional improvements, vision and road-map the project and the community won't grow up and then after some time, this will remain as small circle of developer project or even become orphaned.)
So far I see this nevertheless as an good opportunity for developers and community to get seen and to receive good jobs offers.

Simply said: Thou must have very soon an idea, where this should go and what exactly you want with  it. If thou don't want to expand and keep this project as a nice and gentle private hobby, then you can keep everything and don't have to change anything. But if you want to expand, become at least a small player for long time, ...


2020-08-10

State management in Blazor

There is a sufficient document for state management in Blazor.
Here is a quick & fast work through with all prerequisites, how to get state management in Blazor working.

Example with Blazored.LocalStorage package


Install nuget package for your project

# Find packages providing a "Blazored.LocalStorage" 
Find-Package Blazored.LocalStorage
# install "Blazored.LocalStorage"  Install-Package Blazored.LocalStorage -Project YourProject# alternatively

Add Blazored.LocalStorage to ConfigureServices at your Startup.cs

using System;
/* ... */
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
/* ... */
using Blazored.LocalStorage;
public class Startup {   /* ... */     public void ConfigureServices(IServiceCollection services)  {      /* ... */     services.AddRazorPages();      services.AddServerSideBlazor();     /* ... */     services.AddBlazoredLocalStorage();     /* ... */   } }

Using LocalStorage inside a razor page / control

@page "/MyPage"
using Blazored.LocalStorage
@inject ILocalStorageService localStorage
@code {
  /* ... */
  Dictionary<stringstring> sessionDict;
  /* ... */
  protected override async Task OnAfterRenderAsync(bool firstRender)  { 
    
if (firstRender)    {
      sessionDict = 
        await localStorage.GetItemAsync<Dictionary<stringstring>>("SessDict");       StateHasChanged();     }    await base.OnAfterRenderAsync(firstRender);   }          protected async Task PersistSessionDict(<Dictionary<stringstring> persistDict) { if (persistDict != sessionDict) { await localStorage.SetItemAsync("SessDict", persistDict); } } }

Using LocalStorage inside an entity class

using System;
/* ... */
using Blazored.LocalStorage;
 
public class MyEntity
{
  [Inject] 
  public ILocalStorageService LS
  {  
    get => _localStorage;
    set => value;
  }
  private ILocalStorageService _localStorage; 



  interal async Task<Dictionary<stringstring>> GetSessionDict() =>  
      await LS.GetItemAsync<Dictionary<stringstring>>("SessDict");
  /* ... */
}

Example with ProtectedBrowserStorage package


Install nuget package for your project


# Find packages providing a "ProtectedBrowserStorage" 
Find-Package ProtectedBrowserStorage 

# install "Microsoft.AspNetCore.ProtectedBrowserStorage"
Install-Package Microsoft.AspNetCore.ProtectedBrowserStorage -Project YourProject
# alternatively install "ProtectedBrowserStorage.NETStandard"  
Install-Package ProtectedBrowserStorage.NETStandard -Project YourProject


Add ProtectedBrowserStorage to ConfigureServices at your Startup.cs

using System;
/* ... */
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
/* ... */
using Microsoft.AspNetCore.ProtectedBrowserStorage;

public class Startup {   /* ... */   public void ConfigureServices(IServiceCollection services) {       /* ... */     services.AddRazorPages();      services.AddServerSideBlazor();     /*... */     services.AddProtectedBrowserStorage();     /* ... */   } }

Using ProtectedBrowserStorage inside a razor page / control

@page "/MyPage"
@using Microsoft.AspNetCore.ProtectedBrowserStorage
@inject ProtectedSessionStorage ProtectedSessionStore
@code {   /* ... */   Dictionary<string, string> sessionDict;   /* ... */   protected override async TaskOnAfterRenderAsync(boolfirstRender)   {      if(firstRender)     {       sessionDict =         await ProtectedSessionStore.GetAsync<Dictionary<string, string>>("SessDict");       StateHasChanged();     }     await base.OnAfterRenderAsync(firstRender);   }     protected async Task PersistSessionDict(Dictionary<stringstring> persistDict) { if (persistDict != sessionDict) { await ProtectedSessionStore.SetAsync("SessDict", persistDict); } } }

Sources and links: