Wednesday, July 15, 2020

Letters to my u.b.s



It is a wonderful thing to work without needing the income.
Your work is your life. Don't waste your life over salary.

Any profession has its high earners on one end and go-nowhere's on the other.
Choose a job in which you can do your life's work and achieve your goal.

  • Influence is the key to getting what you desire and money is the least substantial form of influence as well as the most readily taken away.
  • Possessions are tempting, but beware. The more you own, the more it owns you.
  • No amount of riches can defy mortal decay, so care for your health and your mind, or all your spoils of war will be of no avail.




People make earth a paradise or a purgatory, so treat each person you meet with respect and kindness. As populous as the world is, the individuals that we involve in our lives is limited by time and effort. So whoever you do interact with, give them a chance to contribute to a positive experience.




I know many things, yet there is much I don't know. You will meet people who think they know all there is to know, and want to stop you in your progress of learning. Hear what they have to say once, withhold your criticism, and move along. There is better use of time than struggling against a boulder that refuses to budge.


With those who seem to know little but are attentive to listen, be humble, and share your knowledge without talking down to them. Chat again from time to time. For eventually they will learn something from others that you don't know, and then it will benefit you to listen.





Friday, June 12, 2020

Cantenna

A homemade device to increase WiFi signal




Materials:

1 circular pizza tray (32 cm diameter)
1 Tin can lid (9 cm diameter)
Electrical tape

Specifications:

cantenna diameter: ~90 mm
cantenna length: ~300 mm
WiFi adapter antenna distance from closed end: ~30 mm

Other equipment:

USB WiFi adapter with antenna (2.4 GHZ)
(pictured but not required) powered USB hub
USB extension cable



The pizza tray is a circle with diameter of about 32 cm. When rolled up into a cylindrical tube, the maximum tube diameter is 10.2 cm. The max tube length at furthest points equals the tray diameter of 32 cm. Roll the tray to about 9 cm diameter so there is some overlap in the center.

The tin can lid acts as a reflector on the closed end of the tube. Place this about 2 cm from the furthest edge of the tube to reduce the effective tube length.

Any reflective material can be used as an closed end reflector. A tin can lid, a mirror, or even clear plastic!


Adjusting the position of the end reflector also in theory tunes the frequency to different WiFi channels by increasing the signal at different frequencies within the 2.4 GHZ band range.

The ideal tube length for a 9 cm diameter cantenna is calculated to be 15.4 cm (see ref) but since our tube is much longer, it is acceptable to use twice the calculated length at about 30 cm. This will capture twice the volume of WiFi packets per cycle, narrow the aperture angle and increase the signal.



References:



Monday, June 8, 2020

Art

My air conditioner fell on my monitor and broke it. I busted it up some more to make art.


Wednesday, May 20, 2020

Can't move off-screen window into active view

If a window is off screen from a disconnected secondary monitor and won't move into view with Win + Arrow Key, try restoring it by making it full screen with keyboard command Alt + Enter.

Saturday, May 16, 2020

Delete a specific cookie using autohotkey

To delete cookies, we edit the .sqlite database file in Firefox's APPDATA containing Mozilla Firefox's cookies.

Run DB Browser from the Command Prompt (cmd.exe) with command line options to run a SQL script (-s ) on the cookie database file and quit after execution (-q)

AutoHotkey script code:
   run, cmd.exe
Send "%path_dbbrowser%" -s "%path_sqlscript%" -q "%path_cookie%"{ENTER}
In context:
    ; // program paths
    path_cookie := "C:\Users\__USERNAME__\AppData\Roaming\
    Mozilla\Firefox\Profiles\__PROFILENAME__\cookies.sqlite"     path_dbbrowser := "D:\Program Files\DB Browser for SQLite\
    DB Browser for SQLite.exe"     path_sqlscript := "E:\Code\autohotkey scripts\cox\deletecookies.sql"
    
    cmd_timeout_sec := 10 ; time to wait for command prompt to respond

    run, cmd.exe
WinActivate ahk_exe cmd.exe
WinWaitActive ahk_exe cmd.exe, , %cmd_timeout_sec%
Send "%path_dbbrowser%" -s "%path_sqlscript%" -q "%path_cookie%"{ENTER}
    Send Exit{ENTER}
Remember to declare variables as global inside the functions, if they were assigned in the main execution.

SQL script contents:

DELETE FROM moz_cookies WHERE host like "%cox%"; 

Relevant Applications:

DB Browser for SQLite
Autohotkey
Mozilla Firefox

Wednesday, April 22, 2020

Laptop Fan Wiring

Image Source

Wiring Color Code


Red: Power
Black: Ground 
Yellow: Fan Speed Sensor (Tachometer)
Brown: Fan Speed Control (PWM*)

*PWM: Pulse Width Modulation

 

How to make your laptop fan run at max speed at all times:

Cut the fan speed control wire (brown wire). The color and ordering of the wire may vary by manufacturer. Typically red is power, yellow is sensor, and black is ground... leaving the fourth color to be the speed control.
 

Specifications

The above information is accurate for

Lenovo IdeaPad 320-15ABR
Machine Type Model: 80XS00DJUS
Processor: AMD A12-9720P
Graphics: Integrated


Las Vegas, NV. Covid-19 Grafitti

Downtown Las Vegas. April 2020

Fremont St.






Art District






Tuesday, April 21, 2020

Night Mode Color Scheme

Here is a color scheme for web browsing to reduce eye strain

Foreground color
                                    
#585861
Background color
 
#03070a
Link color
 
#4b5f6e
Visited link color
 
#683020
Active link color
 
#a3825c
Selection color
 
#46432b


Mozilla Firefox Developer Edition 76.0b6 (64-bit) 
Add-on "Dark Background and Light Text"

Tuesday, April 7, 2020

Inter-universal Geometer's 600 page "proof" of ABC conjecture approved for publication 8 years later

I have solved the ABC conjecture in a 600 page proof. I now recuse myself of all explanation to the public. Put it in print and spread the word.

Get on my universe.


Shinichi Mochizuki, inventor of Inter-universal Techmuller theory. Foremost expert and possibly only Inter-universal Geometer in all of known existence.

What a God. LOL




A Japanese professor Shinichi Mochizuki claimed in 2012 to have solved the ABC conjecture (among other problems) with a mathematics he invented called Inter-universal Teichmüller theory.

He uploaded papers on this theory in four PDF documents totaling 600 pages to his university web page http://www.kurims.kyoto-u.ac.jp/~motizuki/papers-english.html. (These have been recently updated on April 4th 2020.)

Since then the Mathematics community has not come to a clear understanding or acceptance of his proof. Some dispute his claim and others simply want more explanation of his work.

"Mochizuki responded in an open letter suggesting that the gaps claimed by his colleagues were the result of their attempts to simplify the work and insisted that there were no gaps in his proof."

"None of [the workshops] led to an understanding of the IUT [Inter-universal Techmuller theory]. Making things worse was Mochizuki's refusal to attend the workshops or offer much in the way of clarifying his work."

 https://phys.org/news/2020-04-mochizuki-inter-universal-teichmller-proof-published.html

On April 3 2020, Schinichi's colleagues announced the publication of his work to Publications of the Research Institute for Mathematical Sciences (RIMS). Schinichi just happens to be chief editor of the academic journal.

https://www.nature.com/articles/d41586-020-00998-2





The ABC conjecture is an important unsolved problem in number theory, because it has many useful implications. It is generally regarded as true but has not been proved.

The ABC conjecture states that if three positive integers, a, b and c are relatively prime and satisfy a + b = c ... let d denote the product of the distinct prime factors of abc, then d is usually not much smaller than c.  - Wikipedia

Monday, March 30, 2020

How to view and edit source code of a Firefox browser extension [Windows]

Find the extension files


In Explorer, open the directory "%APPDATA%\Mozilla\Firefox\Profiles\".
Open the folder that corresponds to your profile (typically a random letter and number combination ending in ".default").
Open the "Extensions" folder.

Duplicate the desired extension file ending in ".xpi"
Rename the duplicate file as a ".zip" file. Extract it to any desired location and open folder contents.

Open "Manifest.json" and view in a text editor like Notepad++ to look for the relevant script files (typically specified in "background":{"scripts": and located in a folder named "js" with the majority of the relevant code in "background.js").

Change the extension


Edit the "js/background.js" file and other relevant source code files to make any changes to the extension.

(Note: the source code in the Javascript file sometimes is condensed into a single line. You can use a online decoder tool such as https://beautifier.io/ to expand the code into multiple lines with conventional spacing for readability.)

When the extension is changed to your liking you will want to use it. You can test it until you close the browser with these steps:

"In Firefox: Open the about:debugging page, click "This Firefox" (in newer versions of Firefox), click "Load Temporary Add-on", then select any file in your extension's directory." - Mozilla Doc

After testing, compress your extension files as a ".zip" or ".xpi" file. (Note: remember NOT to compress the directory containing the files. "Manifest.json" needs to be in the root directory of the compressed file. Otherwise Firefox will report an error that the extension is corrupt!)

Install the modified extension


To have the plugin permanently installed, you must register the add-on with Mozilla and they will digitally sign it to run with any commercial release of Firefox. To avoid having to do this, you can use a Developer, Nightly Build, or Extended Support Release version of Firefox

In Firefox Developer Edition, open the page "about:config" and search for "xpinstall.signatures.required" and double click it to set it to "false". Do the same for "extensions.langpacks.signatures.required" if your extension uses language packs.

On the Firefox menu bar (three horizontal lines icon, top right) go to the "Add-ons" page. To the right of "Manage Your Extensions" click the gear icon and select "Install Add-on from File...". Select your compressed extension file and it will be permanently installed.


Useful Links:


Mozilla Docs - Your First Web Extension How to temporarily test add-on.
Mozilla Docs - Add-on Signing Explains digital signing and how to get around the requirement.
https://beautifier.io/ Javascript decoder for readability

Thursday, March 26, 2020

Pizza on a George Foreman Grill




Tasty! Cooking time 6 minutes to 10 minutes, depending on how firm you want the dough.

Thursday, March 19, 2020

Bookmarklet to download YouTube videos

Drag this link onto your bookmark toolbar. Click it when you're watching a YouTube video.


What goes on when you click the bookmarklet?


The bookmarklet merely opens a new tab and changes the "www.youtube.com" portion of the URL to "www.youtubepp.com". This directs you to a third party website called Y2mate.com that will create a free download link of the YouTube video you are watching.


Javascript code:


javascript:(function(){
    var download_url = window.location.href ;
    var isyt = download_url.indexOf("youtube.com");
    if (isyt != -1 && download_url.indexOf("youtubepp.com") == -1){
        var final = download_url.replace("youtube.com", "youtubepp.com");
        window.open(final);
    }   else {
         alert ("You have to be on youtube.com for this to work!");
}})();

Relevant links:


https://mrcoles.com/bookmarklet/ converts Javascript into a bookmarklet URL
https://meyerweb.com/eric/tools/dencoder/ decodes a URL into Javascript

Wednesday, February 19, 2020

[Flute] Original music


2020-02-18


[Writing]

I saw a deranged homeless man scribbling circles with a pen on napkins. He looked up at the clock as he worked fastidiously. As if he was consulting a reference for his calculations.

I think he needed to feel like he was capable and no less respectable than a college professor, even if he had no understanding of the complex work he wanted to feel like he was doing. We all want to feel worthy.

Sitting there on my laptop, reading math texts that the ministry volunteers probably did not comprehend, I struggled to grasp the concepts. Then I reflected on the behavior of the deranged man, and I laughed at the similarity between him and me.

The stuff I was reading could equally be gibberish to people around me and my efforts equally cuckoo. For all they knew, I was posturing in front of a messy scribble like the deranged man sitting in front of me.

Was I really accomplishing anything more than the man making scribbles? Was I really trying to get anywhere with the subject material, or merely fulfilling an emotional need?

Do I have any right to feel more important than him or anyone? Aren't we all doing our best to feel okay about ourselves?

Cats, because cats.

Take a brilliant math professor away from a community of people who understand mathematics, and stick him in a room of laymen. His disheveled hair and eccentric thoughts can easily mistake him for a crazy person.

Sunday, January 12, 2020

[Software] ImageStitcher v1.2.0

ImageStitcher v1.2.0

 


Download Installer (.msi)


2020.01.12  Update v1.2.0:

Added feature:
  • Join two images vertically or side by side
  • Swap the position of the images
Fixed bug:
  • Image source file is no longer locked from editing while app is open.