|!Punctuation|!Location|!Function|\n|{{{@@...@@}}}|surrounding text|@@highlighted text@@|\n|{{{//...//}}}|surrounding text|//italicized text//|\n|{{{==...==}}}|surrounding text|==strikethrough text==|\n|{{{''...''}}}|surrounding text|''boldfaced text''|\n|{{{__...__}}}|surrounding text|__underlined text__|\n|{{{[[text|url]]}}}|around text/url pair|[[text|http://gri.gallaudet.edu/]] link to url|\n|{{{ {...} }}}|''__tripled__'' surrounding text|{{{in-line literal text}}}|\n|{{{ {...} }}}|''__tripled__'' surrounding ''__lines__''|literal block|\n|{{{<<<}}}|surrounding ''__lines__''|blockquotes|\n|{{{!}}}|at start of line|subheading|\n|{{{|...|...|}}}|line sectioned by vertical bars|table row|\n|{{{!}}}|in a table|!table heading|\n|{{{----}}}|alone on line|horizontal rule|\n|{{{*}}}|at start of line|bulleted list item|\n|{{{#}}}|at start of line|numbered list item|\nsource: Kevin Cole, January 2007
TTiddlyWiki uses Wiki style markup, a way of lightly "tagging" plain text so it can be transformed into HTML. Edit this Tiddler to see samples.\n\n! Header Samples\n!Header 1\n!!Header 2\n!!!Header 3\n!!!!Header 4\n!!!!!Header 5\n\n! Unordered Lists:\n* Lists are where it's at\n* Just use an asterisk and you're set\n** To nest lists just add more asterisks...\n***...like this\n* The circle makes a great bullet because once you've printed a list you can mark off completed items\n* You can also nest mixed list types\n## Like this\n\n! Ordered Lists\n# Ordered lists are pretty neat too\n# If you're handy with HTML and CSS you could customize the [[numbering scheme|http://www.w3schools.com/css/pr_list-style-type.asp]]\n## To nest, just add more octothorpes (pound signs)...\n### Like this\n* You can also\n** Mix list types\n*** like this\n# Pretty neat don't you think?\n\n! Tiddler links\nTo create a Tiddler link, just use mixed-case WikiWord, or use [[brackets]] for NonWikiWordLinks. This is how the GTD style [[@Action]] lists are created. \n\nNote that existing Tiddlers are in bold and empty Tiddlers are in italics. See CreatingTiddlers for details.\n\n! External Links\nYou can link to [[external sites|http://google.com]] with brackets. You can also LinkToFolders on your machine or network shares.\n\n! Images\nEdit this tiddler to see how it's done.\n[img[http://img110.echo.cx/img110/139/gorilla8nw.jpg]]\n\n!Tables\n|!th1111111111|!th2222222222|\n|>| colspan |\n| rowspan |left|\n|~| right|\n|colored| center |\n|caption|c\n\nFor a complex table example, see PeriodicTable.\n\n! Horizontal Rules\nYou can divide a tiddler into\n----\nsections by typing four dashes on a line by themselves.\n\n! Blockquotes\n<<<\nThis is how you do an extended, wrapped blockquote so you don't have to put angle quotes on every line.\n<<<\n>level 1\n>level 1\n>>level 2\n>>level 2\n>>>level 3\n>>>level 3\n>>level 2\n>level 1\n\n! Other Formatting\n''Bold''\n==Strike==\n__Underline__\n//Italic//\nSuperscript: 2^^3^^=8\nSubscript: a~~ij~~ = -a~~ji~~\n@@highlight@@\n@@color(green):green colored@@\n@@bgcolor(#ff0000):color(#ffffff):red colored@@\n
Bash Zenity Integration Now Generally Appreciated...
Type the text for 'New Tiddler'
Type the text for 'New Tiddler'
To get started with this blank ZiddlyWiki, you'll need to modify the following tiddlers:\n* SiteTitle & SiteSubtitle: The title and subtitle of the site, as shown above\n* MainMenu: The menu (usually on the left)\n* DefaultTiddlers: Contains the names of the tiddlers that you want to appear when the ZiddlyWiki is opened\n
Could [[Bash|https://en.wikipedia.org/wiki/Bash_(Unix_shell)]] and [[Zenity|https://en.wikipedia.org/wiki/Zenity]] be used together to develop cross platform [[Graphical Secure Dispatch|http://docbox.flint.com:8081/visual.bash#GraphicalSecureDispatch]]?\n
Hi yo
I am trying to find [[Zenity|https://help.gnome.org/users/zenity/3.1/zenity.html]], or figure out what it is. A lot of things point to Raspberry Pi, which I don't have one of. It says Zenity is already on my system, but when i go to run it, I get this error: (zenity:7514): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist" Any idea what the problem may be?\n\nLook no farther than [[here|http://docbox.flint.com:8081/geekland]]
[[ whiptail tutorial |http://xmodulo.com/create-dialog-boxes-interactive-shell-script.html]]
'13 January 2017'\n[[Originally located on Geekland|http://docbox.flint.com:8081/geekland/#FunWithZenity]]\n\n{{{\nwhile [[ 1 ]] ; do tada=$(dq | grep earth |rev | sort -nr | rev); echo "$tada" | zenity --text-info --timeout=5 ; done\n}}}\n\n{{{\nnumb=$(cat read_time | grep wrote |tail -1 | cut -d " " -f 5); echo $numb" " $cdsctrs " "$(( $numb/1024 )); echo $(( $cdsctrs/$numb )) \n}}}\n\nI found this provides the proper equasion to determine percentage for arbitrary values/ranges\n\n{{{\nx=0;y=14;z=0; while [[ z -lt 100 ]]; do z=$(( $x*100/$y )); x=$(( x+1 ));echo $z 1>&2; echo $z; sleep 1s ; done |time zenity --progress --auto-close\n}}}\n\nDue to this then the following should work for providing the progress for the cd ripping\n!!NOTE: the variable $cdsctrs needs to be filled \n\n{{{\n\nx=$(cat read_time | grep wrote |tail -1 | cut -d " " -f 5);y=$cdsctrs;z=0; while [[ z -lt 100 ]]; do z=$(( $x*100/$y )); echo $z 1>&2; echo $z; ; done |time zenity --progress \n}}}\n\n\n!!Nested commands\n\n{{{\nzenity --info --title="Pinger" --width=750 --text="(`ping -c 3 $(zenity --forms --title="Pinger" --text=" What site to ping?" --add-entry=Website )`)"\n\n}}}\n
Type the text for 'New Tiddler'\n\nhttps://www.youtube.com/watch?v=9YL1GtpCDFg\nhttps://youtu.be/3JuvSobjMi4\n\nhttps://youtu.be/RfCvKnE8TXs
Type the text for '19 January 2017'\n\n3test.sh\n{{{\n#!/bin/bash\nx=$(zenity --entry \s\n--text="`printf "\n This script needs to run as root and you are not root\n *****DOCUMENTATION*****\n You get this when you put in the wrong number or type of arguments...\n The name of this program is ctrantor.sh, a tool for managing trantor\n a web server designed to serve out Linux Format DVDs.\n *** NOTE Some components require root *** \n The syntax is:\n OPERATION\n - ctrantor.sh diriso - Lists DVD images\n - ctrantor.sh web [on off] - Turn Web Server on or off \n - ctrantor.sh isos [mount [<FILENAME>] unmount list] \n mounts unmounts or lists iso images in filesystem\n - ctrantor.sh [dvd usb] <ISO NAME> - makes dvd or usb \n in all of these, Output is delivered to the screen...\n MAINTENANCE\n - ctrantor.sh newiso - Copies new DVD image\n into repository \n - ctrantor.sh mkitso - builds new web site from files \n - ctrantor.sh impjpg [ISONAMEf.jpg ISONAMEb.jpg] - \n places jpg images of cover \n (front or back) into repository \n - ctrantor.sh potrite - checks to see if all \n components are there and where they should be\n - ctrantor.sh county - Lists included scripts & functions \n INSTALLATION\n - ctrantor.sh sane - Checks platform to \n determine if all components are abailable \n if root offers to install missing parts.\n "`" 2>/dev/null) \n\nzenity --info --text "X is equal to $x" 2>/dev/null\n# x=$(zenity --entry --text "What is your URL?")\necho $x\n}}}\n\nSo you need these GUI screens:\n# Display Text. (3test.sh above)\n# Drop down list INSTALLATION, MAINTENANCE, OPERATIONS, \n# Select a file. <>\n# Select two files <>, <>\n# Check a choice. []\n\n\n
Type the text for '24 January 2017'\n\n* [[Major How-to site|http://linux.byexamples.com/archives/265/a-complete-zenity-dialog-examples-2/]]\n* [[james slocum part 1.|http://jamesslocum.com/post/55694754191]]\n* [[james slocum part 2.|http://jamesslocum.com/post/61904545275]]\n\n* [[Print Arrows!|http://www.alt-codes.net/arrow_alt_codes.php]]\nExample:\n{{{\n#!/bin/bash\n# SOURCE: https://ubuntuforums.org/showthread.php?t=1999502\n#\nread -d '' String <<"EOF"\nSelect the function to be used:\n(keyboard &#x2191; &#x2191; Arrows + space)\nEOF\nx=$(zenity --info \s\n--text="$String" 2>/dev/null) \n}}}
Type the text for '6 February 2017'\n\n[[Backus–Naur form|https://www.youtube.com/watch?v=FqJdzYY_Fas]]
Type the text for '16 February 2017'\n\nThe Dave-The-Geek conjecture is that in GUI based development systems, the GUI must be the main loop in order to enforce the program's responsiveness.\n\nThis is completely different from the [[Graphical Secure Dispatch|GraphicalSecureDispatch]] approach.
Type the text for '16 February 2017'\n\nGraphical Secure Dispatch (GSD) is a method of constructing command segments and sending them to a local command processor, typically C, Python or Bash. If the command is to traverse a presumed hostile communication path then the Dispatch is placed in an encrypted envelope, typically SSH\n\nFor further information see the [[Visual Bash page|http://docbox.flint.com:8081/visual.bash/#GraphicSecureDispatch]] on this subject.
'21 February 2017'\n\n{{{~flint/bzinga/bin/Atest.sh}}}\n{{{\n#!/bin/bash\n# SOURCE: https://ubuntuforums.org/showthread.php?t=1999502\n#\n#\n#* function dummy - Rename and fill stuff in between braces\nfunction dummy(){\necho "This is the \s""$FUNCNAME"\s" function in "$0" version "$version #debug\n} # Test:\n#\n#* function isos - list mount or unmount isos\nfunction isos(){\necho "This is the \s""$FUNCNAME"\s" function in "$0" version "$version #debug\n#\nread -d '' String <<"EOF"\nTRANTOR ISO IMAGES CONTROL\nSelect the function to be used:\n(keyboard &#x2191; &#x2193; Arrow(s) + space)\nEOF\n#\nopt1="list - List the current ISO images on system"\nopt2="unmount - Unmount ISO images currently mounted"\nopt3="mount <mamifest.iso> - Mount default list or pick"\n#\nint=$(zenity --height=275 --width=575 --list --radiolist --text="$String" --column 'Select...' \s\n --column 'Function Name' \s\n FALSE "$opt1" \s\n FALSE "$opt2" \s\n FALSE "$opt3" \s\n 2>/dev/null)\n#\n#D \necho "Chosen option: "$int\n} # Test:\n\n#* function web - web on off yo-yo\nfunction web(){\necho "This is the \s""$FUNCNAME"\s" function in "$0" version "$version #debug\n#\nread -d '' String <<"EOF"\nTRANTOR WEB CONTROL\nSelect the function to be used:\n(keyboard &#x2191; &#x2193; Arrow(s) + space)\nEOF\n#\nopt1="status - Return Web Status"\nopt2="off - Turn Web off"\nopt3="on - Turn Web Server on"\nopt4="yo-yo - Restart Web Server"\n#\n# int=`zenity --height=275 --list --radiolist --text="$String" --column 'Select...' --column 'Function Name' FALSE "$opt1" FALSE "$opt2" FALSE "$opt3" FALSE "$opt4" FALSE "$opt5" FALSE "$opt6"`\n#\nint=$(zenity --height=275 --width=275 --list --radiolist --text="$String" --column 'Select...' \s\n --column 'Function Name' \s\n FALSE "$opt1" \s\n FALSE "$opt2" \s\n FALSE "$opt3" \s\n FALSE "$opt4" \s\n 2>/dev/null)\n#\n#D \necho "Chosen option: "$int\n} # Test:\n#\n#\n#* function mainm - This is the main menu\nfunction mainm(){\necho "This is the \s""$FUNCNAME"\s" function in "$0" version "$version #debug\nread -d '' String <<"EOF"\nTRANTOR OPERATIONS\nSelect the function to be used:\n(keyboard &#x2191; &#x2193; Arrow(s) + space)\nEOF\n#\nread -d '' opt4 <<"EOF"\nisos [ list unmount mount [<FILENAME>] ] \nmounts unmounts or lists iso images in filesystem"\nEOF\n#\nopt1="diriso - Lists DVD images"\nopt2="option with spaces"\nopt3="web [on off yo-yo] - Turn Web Server on, off, restart"\n# opt4="isos [mount [<FILENAME>] unmount list] mounts unmounts or lists iso images in filesystem"\nopt5="ctrantor.sh [dvd usb] <ISO NAME> - makes dvd or usb"\nopt6="option 6"\n#\n# int=`zenity --height=275 --list --radiolist --text="$String" --column 'Select...' --column 'Function Name' FALSE "$opt1" FALSE "$opt2" FALSE "$opt3" FALSE "$opt4" FALSE "$opt5" FALSE "$opt6"`\n#\nint=$(zenity --height=275 --width=532 --list --radiolist \s\n --text="$String" \s\n --column 'Select...' \s\n --column 'Function Name' \s\n FALSE "$opt1" \s\n FALSE "$opt2" \s\n FALSE "$opt3" \s\n FALSE "$opt4" \s\n FALSE "$opt5" \s\n FALSE "$opt6" \s\n 2>/dev/null)\n#D echo "Chosen option: "$int\n} # Test:\n#\n# dummy\n# \nmainm; ARGS=$(echo $int | tr -s " " |cut -d " " -f 1)\n# web\ncase "$ARGS" in\n "0") clear; "help";; # got nothing, display help and go\n "web") web ;; # run the command web\n "isos") isos ;; # run the command isos\n "1") $1 ;; # run the command\n "2") var2=$2; $1 ;; # run the command pass an argument\n "3") var3=$3; var2=$2; $1 ;; # run the command pass two arguments\n *) clear; "help"; exit 1;; # got nothing, display help and go\n # *) clear; cat $0 | grep '^## '| sed -e 's/##//'; exit 1;; # Anything else run help and exit...\nesac # End main loop. To TEST:\n}}}
The text for '13 March 2017'\n\nVISUAL BASH\nGSD amd the bzinga project:\nAs mentioned above, I dusted off the Bash-Zenity project with the thought of \nadding this to trantor as a GUI based control framework. So far it is \ninteresting, as GUIs now haunt my dreams looking for the best way to configure \nthings...\n\nhttp://bzinga.net/\n\nI continue to meditate on the discussion DTG and I had last month about \nhow GUI code needs to be non-blocked. So, the approach I continue to think \nabout for now involves putting the GUI code in includes that get included \nonly when you need them. The Visual Bash framework really works. Will this \nwork for adding a GUI with bzinga? And how does BNF fit into this? \nProgress is slow based upon the trantor work.\n\nBut the line between bzinga and the Menubot function gets fuzzier all the time, \nmaybe the menubot program has a way of generating coefficients that the GUI \nsystem can use to autogenerate GUI menues. Maybe using Backus–Naur form (BNF \nor Railroad Notation). After some playing around with zenity, I am more \nconvinced that the use of zenity for a gui interface, (see the Bash Zenity \nIntegration page: http://bzinga.net/ :^) is not a bad plan. Beyond this we \nreally need to clean up the VisualBash page. Now that we have the "include" \nfunction that is similar to the one in python (C and a lota other languages :^) \nwe need to git this.\n\nhttp://docbox.flint.com:8081/visual.bash#ImportingFunctionBlocks\n\nThe Visual Bash git page needs to be organized. We need to reorganize all of \nthe visual bash functions into functional includes. Possible include files \nare:\n\n- ianda.shi - Identification and Authorization\n- dvdusb.shi - DVD/USB utilities\n- sanity.shi - System sanity tests\n- maint.shi - Maintenance includes\n- ops.shi - Operational includes\n- dev.shi - Development includes\n- sphinx.shi - Sphinx generator includes\n- tiddle.shi - Tiddle includes...\n- gui.shi - Graphical User Interface using bzinga\n- movingday - Tar up what you need.\n\nThe problem is that I cannot resist the challenge of the GUI menu generator \n"menubot.sh" that will allow you to test stub your "shi" files with a crude but \nworking "sh". Who knows where we go from there? Again, the Design questions \nremain:\n\n- Do individual functions call for particular software packages\n by adding their local requirements to a file or memory variable?\n- Should the sanity program try to md5 sum the components?\n- Can the sanity program help resolve name-space issues?\n\nCould 2017 may be the year of VisualBash? We have a presentation on the subject \ndue in June, and I may even begin to treat the presentation as a project. \nIt has been occupying my mind quite a bit.\n\n\n