LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > Michael Uplawski
User Name
Password

Notices


  1. Old Comment

    spellcheck in qutebrowser

    Hello Michael,
    if Max-Planck-Gymnasium means something to you, please write me an eMail at jhaberer (at) gmx ...
    Thanks
    Joachim

    P.S. If you are the wrong recipient, sorry!
    Posted 12-30-2021 at 05:39 AM by JoDerBaer JoDerBaer is offline
  2. Old Comment

    Unbuffered shell-input

    No worries on the language, I just wanted to confirm what it was you were actually looking for.

    Within the context of the tty/terminal driver you commonly see it referred to a 'raw' vs 'cooked' input rather than the more verbose "non-line-buffered" I used.
    Posted 10-19-2021 at 06:27 AM by GazL GazL is offline
  3. Old Comment

    Unbuffered shell-input

    The non-blocking/unbuffered confusion is due to my reading English texts which only vaguely evoked the documentation that I had in German.
    Posted 10-19-2021 at 01:46 AM by Michael Uplawski Michael Uplawski is offline
  4. Old Comment

    Unbuffered shell-input

    Quote:
    Originally Posted by GazL View Comment
    I may be misunderstanding your requirements, do you really mean non-blocking, or do you mean non-line-buffered?
    As far as I remember, my search for a solution produced examples with non-blocking input. So I considered this the correct terminology. I understand unbuffered just as well an cannot say why I would prefer one expression over the other. This is a language problem and I will correct my blog post, when I find better translations. Thank you for pointing it out.

    Quote:
    If the latter, will read -r -s -N1 not serve your needs?
    It does. Believe it or not, I would have expected that the built-in read command were mentioned in the man-page to Bash, where it is not, and thus executed read --help for the very first time, this evening.

    Thanks again,
    Michael
    Posted 10-18-2021 at 04:15 PM by Michael Uplawski Michael Uplawski is offline
  5. Old Comment

    Unbuffered shell-input

    I may be misunderstanding your requirements, do you really mean non-blocking, or do you mean non-line-buffered?

    If the latter, will read -r -s -N1 not serve your needs?
    Posted 10-18-2021 at 05:19 AM by GazL GazL is offline
  6. Old Comment

    False statement

    Quote:
    Originally Posted by jr_bob_dobbs View Comment
    And here I was expecting for an expansion of the information on the false command given in its man page.

    Do nothing, unsuccessfully.
    You are probably commenting on-topic, however.
    Posted 04-06-2021 at 01:27 AM by Michael Uplawski Michael Uplawski is offline
  7. Old Comment

    False statement

    And here I was expecting for an expansion of the information on the false command given in its man page.

    Do nothing, unsuccessfully.
    Posted 04-03-2021 at 09:04 AM by jr_bob_dobbs jr_bob_dobbs is offline
  8. Old Comment

    Found the old replace command

    So I re-read this blog again.

    Addressing your "I may be programming in my sleep or am suffering from a strange variety of 'selective' Alzheimer," comment...

    Recently I started a text file with the name of each of my programs and a line or two explaining what each one does. This saves me from writing a program twice because I forgot what the first version was called! This has been a big help! You might want to do this?
    Posted 03-29-2021 at 11:19 PM by jr_bob_dobbs jr_bob_dobbs is offline
  9. Old Comment
    Posted 10-17-2018 at 03:20 PM by Michael Uplawski Michael Uplawski is offline
  10. Old Comment

    Transform HTML to LQ markup or -down

    nice!

    a little shell script wrapper:
    Code:
    #!/bin/sh
    
    default="$HOME/.local/share/lq_bbcode.xsl"
    LQ_BBCODE="${LQ_BBCODE-"$default"}"
    
    usage() {
    echo "
    Usage:
    
    $0 infile
    
    Output to stdout
    
    The shell variable LQ_BBCODE points to the XSL file to be used
    currently: $LQ_BBCODE
    default: $default
    "
    	exit 1
    }
    
    ! [ -r "$1" ] && echo "Input file \"$1\" is not readable" && usage
    
    xsltproc --html "$LQ_BBCODE" "$1" 2>/dev/null
    Posted 10-16-2018 at 02:58 AM by ondoho ondoho is offline
  11. Old Comment

    Found the old replace command

    Quote:
    Originally Posted by Michael Uplawski View Comment
    I guessed something like that.
    But the last time I used sed to iron my shirts, it burned them.
    Understood. It's easy to get something wrong in sed, and sed can do a lot of damage.
    Posted 08-29-2018 at 05:54 PM by jr_bob_dobbs jr_bob_dobbs is offline
  12. Old Comment

    Found the old replace command

    Quote:
    Originally Posted by jr_bob_dobbs View Comment
    sed can do this
    I guessed something like that.
    But the last time I used sed to iron my shirts, it burned them.
    Posted 08-25-2018 at 07:17 AM by Michael Uplawski Michael Uplawski is offline
  13. Old Comment

    Found the old replace command

    sed can do this
    Code:
    $ echo "We can't do nothing, face it!" | sed -e "s/can't/do not want to/g"
    We do not want to do nothing, face it!
    Note: "can't" is a contraction of "cannot," so the above is actually not an exact restatement.
    Quote:
    We cannot do nothing, face it!
    Posted 08-22-2018 at 08:16 PM by jr_bob_dobbs jr_bob_dobbs is offline
  14. Old Comment
    Posted 05-01-2018 at 01:13 PM by Habitual Habitual is offline
  15. Old Comment

    Generate a glossary from HTML

    I am ready to release a new version of the Html2Index gem, but want to provide updated documentation. There is a lot of work for me, from next week on until end of january... But here is at least the usage-message of the new version, as a kind of spoiler..:

    Code:
    :~/prog/html2index$ bin/html2index -h
    
    	Usage: html2index -s input.html [-o output.html] [-c config-file] [-t template.html] [-d]
    
    	* Will print to stdout, if the output-file is not provided.
    	* Adapt ~/.config/HTML2Index/config to your needs.
    
        -d, --debug                      Be verbose
        -s, --source=SOURCE              Source document (html)
        -o, --out=GLOSSAR                Glossar-file (html)
        -t, --template=TEMPLATE          Template (html)
        -c, --config=CONFIG              Configuration-file
        -h, --help                       Show this message
        -v, --version                    Show program version
    Posted 10-07-2017 at 06:56 AM by Michael Uplawski Michael Uplawski is offline
  16. Old Comment

    Cuddling with the Middle Ages

    EDITED: This comment contained a false statement. I have to leave it here and mark it as false, because it is frequently repeated in a pseudo-scientific context, by right-wing political activists, by marketing-experts, by so-called “coaches”.

    The story is that, around 1955, an American scientific formulated a hypothesis which was quickly refuted but stuck with some interested parties. I did not know and just found this thing too appealing to not give it some thought. When “Me Too” made everyboy think, I became comfortable with what had become my conviction.

    The truth is that, up to this day, nobody can identify anything in our brain's structure and organization which allowed to virtually map Freud's ideas to distinct parts or distinct functions of our brain. In the contrary, all studies in neuroscience which either tried to evaluate the hypothesis or otherwise bordered the issues that the hypothesis addresses, prove it wrong.

    Shorter: There is no such thing as a “Reptilian Brain”. Forget it.

    I do not reproduce the way in which I have to address myself for some time. There are ladies in the room.

    All that follows is *FALSE*:
    Free will” is an illusion. Between the termination of any action and the statement “I wanted to do that” a variable time between half a second and up to ten seconds pass. After that, your cortex has packed up the memory of the event, your action, the decisions taken based on the perceptions and lessons learned from the past and filed that package away for future use. The fact, that your interior library is now enriched by 1 new volume gives the reptilian brain new directives for the future. And it is the reptilian brain that states all of a sudden: “I wanted to do that”. Which is not even false, as it will.
    Posted 09-10-2017 at 05:08 AM by Michael Uplawski Michael Uplawski is offline
    Updated 03-23-2021 at 01:51 AM by Michael Uplawski (ALL FALSE)
  17. Old Comment

    Transforminator

    Quote:
    Originally Posted by Michael Uplawski View Comment
    I am “currently” (rather occasionally) improving the GUI by providing translated values for the configuration options. (...) The code will be much cleaner, once that I have overcome this hurdle...
    And DONE..., maybe. I guess...
    Posted 09-10-2017 at 04:56 AM by Michael Uplawski Michael Uplawski is offline
  18. Old Comment

    Paradigms exist to be broken

    Quote:
    Originally Posted by ntubski View Comment
    I have seen things like "every function returns a value", meaning if you write something that doesn't return a value, it's not a function, it's a "procedure" (i.e., descriptive, not prescriptive). There's also the idea from the ML-family of languages, that every function returns a value, even if it's the "unit" value which contains 0 bits of information (it's equivalent to "void" in C, but treating it as a value helps reduce special cases in the way functions are handled, so I think it's rather nice).
    As your background is complete and your reflection organ functional and oiled, you can ignore this point. ;-)

    I have worked with C/C++, Java and Ruby, only and only a few years with each. All three universes are populated with people who do not know the difference or have been educated to ignore them. Ada, VB and JavaScript could actually help to enlighten those with a restricted knowledge of programming languages, like myself.

    In the context of the document, above, your statement is important and well placed below my text. I may be erring but believe the general character of my explanations appeals to a few types of people with diverse programming experience.

    There is also a chance of cultural differences between Europe/Germany and your own professional environment. In this case, I would have to adapt the entry and enlarge on procedures against functions. We have had this kind of discussion in a forum of linguists and they never end with a satisfactory conclusion...

    But hey. Maybe the others just read this comments-section and it will be fine, too... ;-)
    Posted 10-29-2016 at 06:59 AM by Michael Uplawski Michael Uplawski is offline
    Updated 10-29-2016 at 07:00 AM by Michael Uplawski
  19. Old Comment

    Paradigms exist to be broken

    I think the difficulty comes from the fact your headers are not nested, right? e.g.

    Quote:
    Originally Posted by Michael Uplawski
    No, it is rather that the XML or XHTML documents are read from top to bottom and the templates first applied in the order of the appearance of triggering tags, then within a template for the same reason and in the same way.

    This means, that you would have to process the same XML-document twice to first apply the templates on all the headers, to produce the bookmark-tree, than once again to produce the transformed output. What I do, is rather “anticipate” the headers. Or even: presume that my template for headers will add id-attributes. These are my own creation and thus my for-each (or group) loop trusts me that the ids will be there. I decouple bookmark-tree from content and am still “dynamic” in that an arbitrary number of arbitrarily structured headers will be honored...

    if this is English.
    Posted 10-29-2016 at 05:57 AM by ntubski ntubski is offline
    Updated 10-29-2016 at 07:02 PM by ntubski (Attribution)
  20. Old Comment

    Text-mode spreadsheet viewer

    See Apache-Poi for a complete programming interface to most Microsoft® file-formats. Unfortunately, it is first of all a Java-library.
    Posted 10-08-2016 at 06:24 AM by Michael Uplawski Michael Uplawski is offline

  



All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration