I, the physically and/or morally hideous human inhabitant, love to read, play bass and day dream far, far to much...
2222 words
https://human-inhabitant.com/

Aimless Links

So I got bored looking at a blank "'blog" page so I added a place holder... that'll just rot with internet mold.

Note: Gray'd links are not https... they are standard insecure http.

Cognos - Adding jQuery

First off, there are many ways to do this, this is just my thing. I am using Cognos 10.2.2 this method will give you the jQuery library under both report prompt and report pages. I do it this way purely to avoid messy code pasting in HTML elements all over a report (very ugly).

Warning: After a fix pack update, you'll need to reapply, but well worth the trouble. If you build JavaScript API's for Cognos you could embed them similarly.

Location of the jQuery file is up to you, I've placed it in a skin, linked it to a CDN, both have their ups and downs. For this article, I am placing a copy in the webcontent root, right along side cognoslaunch.js.

So get your copy, code.jquery.com, drop it in the directory. I am using Windblows for this article and my install is in the drive root not the default location.

[drive]:\c10_64\webcontent

Okay, now how to get it into your reports, open the following file p_include_main.xsl.

[drive]:\c10_64\templates\ps\prompting\p_include_main.xsl

Navigate down to like line 693, insert the following after the closing </script> tag (a new line, 694). I add the comments so I can find it later, not required but... if you make a lot of edits to existing .xsl, .xml and .xts files like I do, it helps.

<!-- :Human: -->
  <script src="{$webRootURI}/jquery-3.5.1.min.js"><xsl:text>/**/</xsl:text></script>
  <script src="{$webRootURI}/some/path/api.human.js"><xsl:text>/**/</xsl:text></script>
<!-- //:Human: -->

It's an invasive edit, so you'll need to restart Cognos. The only other caveat is you'll need to do the jQuery.noConflict(); thing when writing scripts in your prompts and reports, which I usually embed in my API.

I use jQuery along side the Cognos Prompt API all the time, report writers always want kooler reports...

Linux... anyone?

This is a WIP... and very opinionated, don't read too much into it. Use at your own peril...

I have tried many many distros, but I always came back to Ubuntu, until I found Linux Mint. I seem to be an Xfce fan... Linux Mint's release of it anyway.

My curent install...

human@listed:~$ cat /etc/*release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20
DISTRIB_CODENAME=ulyana
DISTRIB_DESCRIPTION="Linux Mint 20 Ulyana"
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

My cheesy aliases...

I get a lot of grief for the dist-upgrade trigger... there is nothing on my machine soooo critical that a catastrophic failure would scare me. I'd just build another machine/drive... I learned the art of backup in 1999 well before the advent of Timeshift.

human@listed:~$ cat ~/.bash_aliases
alias ll='ls -lahF --color=auto'
alias pw='pwgen -ysB1 16'
alias cls='clear'
alias update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade'
alias vpn='sudo protonvpn'

Some kool utilities...

pwgen generates passwords which are designed to be easily memorized by humans, while being as secure as possible.

Unless you use a few flags...

human@listed:~$ pwgen -ysB1 16
H(?E<xL<7`Ew&oyz

free displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel.

human@listed:~$ free -ht --si
              total        used        free      shared  buff/cache   available
Mem:            31G        7.1G        4.9G        1.6G         19G         22G
Swap:          975M          0B        975M
Total:          32G        7.1G        5.9G

bashtop is a resource monitor that shows usage and stats for processor, memory, disks, network and processes.

I ❤️ BashTOP... I run it constantly to help monitor my Tor bridge.

human@listed:~$ sudo bashtop

iftop listens to network traffic on a named interface, or on the first interface it can find which looks like an external interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts.

Also run to monitor my bridge...

human@listed:~$ sudo iftop

Speaking of my Tor bridge, the one other monitor thing I do is using tail. It's a bit lame but does what I need it to do.

human@listed:~$ tail --follow=name /var/log/syslog | grep "Tor\["
Sep 11 07:34:28 bridge-name Tor[846]: Performing bandwidth self-test...done.
Sep 11 13:33:20 bridge-name Tor[846]: Heartbeat: Tor's uptime is 5:59 hours, with 24 circuits open. I've sent 1.96 GB and received 1.99 GB.
Sep 11 13:33:20 bridge-name Tor[846]: Heartbeat: Accounting enabled. Sent: 6.26 GB, Received: 6.33 GB, Used: 6.34 GB / 32.00 GB, Rule: max. The current accounting interval ends on 2001-09-11 19:57:00, in 6:23 hours.

The simple things...

Kill process running node... say, port 3e3.

human@listed:~$ sudo kill -9 $(sudo lsof -t -i:3000)

MD5 file check, both files in same directory.

human@listed:~$ ls -1
dojo-release-1.16.3.tar.gz
dojo-release-1.16.3.tar.gz.md5

human@listed:~$ md5sum -c dojo-release-1.16.3.tar.gz.md5
dojo-release-1.16.3.tar.gz: OK

Using linux and node.js with express.js, and you get the ill fated System limit for number of file watchers reached, watch [some file] error... this worked for me.

echo fs.inotify.max_user_watches=666666 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Privacy...?

This is a WIP... and very opinionated, don't read too much into it.

I am a privacy advocate; I use applications with that in mind, as much as I possibly can. What is most baffling to me is, in the US, it is illegal to mess with mail. Yet it is ok for Google to parse your email, to me, snail mail and email are... and should be... considered equally confidential. The fines should be one and the same.

In light of issues like email, chat and cloud storage I opt to use some of the following:

Vendor My Two Cents
📧 Tutanota My main email provider, via my own domain. Super easy to use and has a decent desktop/mobile app. But... unfortunately, privacy comes at a price. I am currently paying €72 per year... including taxes 😔
📧 ProtonMail Also super easy to use and also has a decent mobile app. Though I use Tutanota as a primary email source, in my eyes ProtonMail's UI is far superior...
📧 StartMail Have been with them for years... but still no mobile app. Kind of a back burner email provider for me now. Then there is this... and they pay Google, so not really a de-Googling venture for me.
📧 Posteo Bit of an overkill email service as it based on Roundcube, affordable but this too has no mobile app. I am just letting my euro's run out at this point.
🔐 Bitwarden I am currently using Bitwarden, but I am always leery of any cloud based product. Open source or not...
🔐 KeePassXC A bit of a nuisance on multiple platforms, syncing sucks.
🔐 Encryptr Was my fave... but development is dead, was one of the reasons I dropped SpiderOak One.
💬 Signal My current default messaging app, even have the wife using it. The PIN thing was bloody obnoxious!
💬 Keybase Love the idea of Keybase, I just don't know enough encryption minded people to use it... (sighs).
💾 Tresorit I use this on multiple platforms BUT... crazy expensive $125.00 a  year, 505GB of space.
💾 Keybase Again, love the idea of Keybase, I just don't know enough encryption minded people to use it... (continues to sigh).
💻 Brave The Tor private mode is killer. I still can't help feeling like it is still Google based, and the whole BAT thing is a bit wonky, but blocks adds like no ones business.
💻 Firefox I like the idea of the Monitor and Lockwise features, even though apps like these still kinda make me paranoid... Lockwise doesn't even export... yikes.
💻 Tor Browser For the super paranoid... those who disable JavaScript.
💻 ungoogled-chromium I'd use it more but some extensions don't install... Bitwarden comes to mind...
🔍 DuckDuckGo I stopped using Google search years ago... I don't even !g anything. The browser extension must be good, as my companies corporate policy forces me to remove it (there is NO privacy in a corporate environment, don't let them tell you otherwise).
🛡️ PIA (Private Internet Access) Note Log-less VPN's are a myth:
Best bang for your buck, easy to install on Linux and Windblows... I always run with VPN killswitch engaged. I do run into multiple sites that block me now though. PIA stopped accepting blocked IP reports, so I either find another compatible site or if desperate disable the VPN.
🛡️ ProtonVPN Note Log-less VPN's are a myth:
Not to bad, though set up on Linux is not for the faint of heart, often fails an ipleak.net test... and lots of people block ProtonVPN, even some Linux repositories.
📱 /e/ If only the pre-made phones were sold in the US... (twiddles thumbs... waiting). I do have an old Pixel 2 XL hanging around... I should flash it. Lots of hype... but they obviously dislike Americans, you got to be adb savvy to enjoy one of these in the US.

human@listed:~$ whoami

Some kool places you may find me...

Keybase | GitHub | ! LinkedIn | ! Mastodon | ! Twitter | ! Facebook

Some details...

Conceived in Germany... born in the US... the year... 1965. Age... you do the math.

I am a privacy advocate and continually work to de-Google myself... code tinkerer... Tor patron... and a self taught full-stack developer, I have been coding/developing since the year... 2e3. My current position includes Java, Groovy, JavaScript, old AngularJS, Jest, MSSQL and MySQL, working with thousands of lines of legacy spaghettification (that they are trying to fix overnight).

Remember Classic ASP with Microsoft Access backends...? I do.
Remember framesets and using tables for layout...? Yep, me too.
Remember the whole XHTML push and fail...? That's right, me too.

My primary joys these days are God (theology), my lovely wife Patti, our dog Muffin, linux, JavaScript (ES5, ES6-isms), PHP and metal bass (the guitar not the fish), in that order... actually.

My somewhat controversial music taste... Spiritbox, Jinjer, TesseracT, Periphery, Heart Of A Coward, Infected Rain... I could go on and on, but you get the gist...

const fact = ( later === never );