Blabberbox:Random blog-like posts from pftq.Share on Twitter

End of Adolescence

November 27th, 2018 | Posted by pftq in Thought of the Day | #
There's a feeling you get when summer hits and school is out.  When you were younger, it might have been excitement, freedom.  As you got older, it became more an interruption, an emptiness, time crawling by as you waited to see your peers again, an interlude as you waited for the next adventure. Except... on the 12th time, summer doesn't quite end.  It keeps going, no matter how long you wait. That feeling - when you're the only one still wandering the campus while everyone else had left - gradually becomes your everyday.  And at some point, you look back and realize this is the rest of your life.
253 unique view(s)

Haiiro to Ao Cover

November 17th, 2018 | Posted by pftq in Stuck in My Head | #
Haiiro to Ao Cover by Kobasolo (@kobamakolts)
256 unique view(s)

Trying to Using Google Cloud

November 14th, 2018 | Posted by pftq in Blabberbox | #
Seems there's a reason @GoogleCloud's market share trails behind Microsoft's @Azure and is nowhere near Amazon's @AWSCloud.  It's just insanely difficult to get up and running.

First is the error that I need to enable the Google Cloud service in my Admin Console, but Google Cloud is not even listed there.  The specific error is "Google Cloud Platform service has been disabled. Please contact your administrator to restore service in G Suite Admin console."



Have to contact support (which itself is a puzzle to avoid having to pay for a support plan). Enabling Google Cloud turns out to be tied to enabling Developer Console (how is anyone supposed to know that?).  They say it's a recent issue with migrations, but this StackOverflow thread shows this has been an issue for over a year at least.


Now that the service is enabled for my account, I try to spin up an instance.  If you use GPUs in your project, it then turns out you need to increase your global GPU quota (starts at zero).  Makes no sense because all of the specific non-global GPU settings already start at 1.


I try again to spin up instances, but now I keep getting "not have enough resources available to fulfill the request. Try a different zone, or try again later." Tried 6 different zones all with the same results.


Contacted support again, who suggest I not put all my instances in one zone.  I tell them this is my only instance.  And the response to that seems to basically acknowledge you can't really spin up instances at this time?


Very bizarre and frustrating experience.  It just seems like no one is even testing Google Cloud to make sure anyone can actually use it.  Or that they care if anyone can figure out how to use it.
258 unique view(s)

Enabling Graphics for Nvidia Tesla GPU in Azure VM

November 11th, 2018 | Posted by pftq in Blabberbox | #
If you're trying to use the GPUs Azure VMs for actual graphics like in game development, DirectX, or other things where the GPU has to be detected, you need to set the Tesla GPUs to WDDM mode.  By default they are in TCC, which doesn't let them be detected by the system in RDP and has graphics disabled.  Not even Nvidia control panel will see the card.

Solution is pretty quick - just a command line entry.  It can just be done in Command Prompt, no additional software needed.  Credits to the comments on Reddit here: https://www.reddit.com/r/cloudygamer/comments/7twmiq/problem_with_azure_nv6_and_nvidia_tesla_m60/

(Make sure you first have the Nvidia drivers installed, either by starting the VM with an image that has them or installing manually.)

Quote
1. Open Command Prompt.
2. Enter: cd C:\Program Files\NVIDIA Corporation\NVSMI
3. Enter: nvidia-smi -l
4. Ctrl+Break to stop the loop. Note the long 000:00:00.0 number under bus-id.
5. Enter: nvidia-smi -g <bus-id> -fdm 0
6. Reboot.

Once you're done, you'll notice Nvidia control panel will now detect the card.  DirectX applications will see it as well, etc.
273 unique view(s)

Placebo Effect on Mind

November 10th, 2018 | Posted by pftq in Blabberbox | #
Very interesting article that sounds a lot like the ideas portrayed in @MNightShyamalan's @SplitMovie
https://www.nytimes.com/2018/11/07/magazine/placebo-effect-medicine.html
214 unique view(s)

Double Tax Issue on Patreon

November 3rd, 2018 | Posted by pftq in Society | #
The Hidden Patreon Double Tax...

Would love to be shown wrong here, but as far as I've found, money on @Patreon is taxed for both patron and creator. In any other situation, only the giver or receiver is taxed, not both. Donations to non-profits are deductible, salaries of employees are deductible expense for the employer, even traditional non-Patreon patron/sponsorship arrangements are at least some form of write-off/expense for the sponsor.  But for Patreon, unless you go through the excessive effort of establishing yourself as a company with an elaborate case for how giving to artists is business-related or straight up start a non-profit organization yourself, the money you give on Patreon is going to be from income you paid taxes on, and then that creator also pays taxes on it as their income.

This is a simplification of the math but just to illustrate: If you made $100k this year and wanted to give away half to artists on Patreon, you literally can't...[More]
250 unique view(s)

SF Place on Fire

October 28th, 2018 | Posted by pftq in Blabberbox | #
Guess that's my cue to finally leave SF... (esp with the asbestos exposed)
https://abc7news.com/fire-burns-multiple-floors-of-san-francisco-high-rise/4538088/
210 unique view(s)

Free Fax Online

September 14th, 2018 | Posted by pftq in 42 | #
Save you the trouble of buying a fax machine or paying for a service.
https://faxzero.com/
98 unique view(s)

Open to Interpretation

September 9th, 2018 | Posted by pftq in Thought of the Day | #
Tired of having my words reinterpreted to mean different things. People are too busy looking for what they want to hear and not thinking about what someone else is actually trying to say.
392 unique view(s)

Typical Businessman Thinking

September 2nd, 2018 | Posted by pftq in Thought of the Day | #
Typical investor/businessman thinking: If I could just find a genius smart enough to make me a million dollars but too dumb to do it unless I tell him to...
372 unique view(s)

Distant Earth

August 28th, 2018 | Posted by pftq in Thought of the Day | #
Somewhere out there right now is someone seeing light from a distant planet Earth and assuming there is no intelligent life because it is light from thousands of years ago.
360 unique view(s)

Line-In Recording Noise

August 26th, 2018 | Posted by pftq in Blabberbox | #
Note to future self. Source of line-in recording noise is the MIDI USB cable from the piano to computer. Do not replace the sound card, do not buy an audio device. #audio #recording
292 unique view(s)

The Sound That Isn't There

August 20th, 2018 | Posted by pftq in Stories | #
Premise of a horror film I thought of while staying up too late. Tongue

Imagine every night you hear the loud humming of what you think are street sweepers driving by.  One night, you get tired of it and venture out into the streets to complain, except there's nothing there.  You run towards the sound, but it just keeps getting louder and louder, with nothing in sight for as far you can see.  The sound eventually starts moving away and goes quiet, like it does every night, and you go back home confused.

The next night, you run out again when you hear the sound, trying to get to the center of it before it goes away again.  This time, you keep running towards it as it tries to get away from you.  At first, you are barely able to keep up with the sound as it is moving away.  At some point, you realize the sound is suddenly getting louder and louder than it ever has before.  You get so caught up running towards the sound that you don't realize it has...[More]
55 unique view(s)

Lossless Algorithms

August 12th, 2018 | Posted by pftq in Ideas | #
The following is an algorithm I invented for generating support/resist in trading with no thresholds or parameters. On each price move, the price range traveled loses a point in score. The resulting score of any price range is its support/resist strength, which declines the more it is traveled across (zero being strongest and untraveled). Visually, the price line looks like an eraser scrubbing away ranges on the chart; ranges least scrubbed thin out to support/resist lines.  The reason I call it a "lossless" algorithm is because it doesn't estimate anything or use any seeded values/thresholds.  It is analogous to lossless audio/image file formats.  There is no sampling or use of statistics.  There are no knobs to tweak and no assumptions to take.  It is a perfect 1-to-1 map of where price moves most and least freely.  It is also extremely light both in computation and space because all you're doing is a single subtraction per datapoint and...[More]
762 unique view(s)

Death is Only a Door

August 12th, 2018 | Posted by pftq in Stuck in My Head | #
Death is Only a Door (Cloud Atlas OST) by Tom Tykwer, Johnny Klimek, Reinhold Heil
330 unique view(s)

God's Image

August 5th, 2018 | Posted by pftq in Thought of the Day | #
So many say we're created in God's image, yet act more like the shadow that merely follows. We call Him the Creator, yet so few carry on the work of actually creating.
264 unique view(s)

Arrival of the Birds

August 3rd, 2018 | Posted by pftq in Stuck in My Head | #
Arrival of the Birds by The Cinematic Orchestra (@TCO_Official)
237 unique view(s)

Octonions

July 31st, 2018 | Posted by pftq in Blabberbox | #
One of the more interesting articles I've read in a while... didn't realize quarternions used in game development had actual significance in physics and there was a step further called octonions. As usual, learning more working on games than I ever did in school.
https://www.wired.com/story/the-peculiar-math-that-could-underlie-the-laws-of-nature/
197 unique view(s)

Securing HTTPS SSL

July 29th, 2018 | Posted by pftq in 42 | #
Below are all steps to take to make sure your site is served securely over HTTPS.  Any suggestions, feel free to let me know.

1. Preliminary:
- Install SSL certificate to your domain either through GoDaddy, AutoSSL on CPanel, or Let's Encrypt on CPanel.  Let's Encrypt is easiest to me, as it auto-renews and is free.  There isn't really a reason to pay anymore for SSL.  However, note that you can't have both AutoSSL and Let's Encrypt on at the same time (they will compete/conflict).  If you run into errors for subdomains on Let's Encrypt, try excluding the www- checkbox.  For Windows IIS, you can use CertifyTheWeb which auto-installs from Let's Encrypt.

2. Adding HSTS to servers....[More]
243 unique view(s)

Happiest Memory

July 15th, 2018 | Posted by pftq in Essays | #
     The happiest memory in my life is not one I could ever share with anyone else.  Because it isn't a moment from within my real life but instead one from within a dream, a dream that occurred almost ten years ago.

     In that dream, I spent my childhood alongside someone who I seemingly knew all my life.  We would race neck-to-neck as we leapt from rooftop to rooftop, laughing maniacally as we tried to one-up each other, reaching higher and higher into the skies before eventually just taking flight altogether.  If it seemed we flew too high and one of us began to fall, we would catch each other and throw ourselves even higher than before, until we finally made it above the clouds.  At the end of it all, we'd sit atop the remains of an old wooden post so high up that we could watch the sun set, not against the land or water but against the sky itself, the ocean of clouds below reflecting its descent like a mirror facing up against the...[More]
108 unique view(s)