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

Yorushika Piano Full Medley

November 17th, 2020 | Posted by pftq in Stuck in My Head | #
Yorushika Piano Full Medley arranged by Polalice Alvireo (@PolaliceAlvireo)
17 unique view(s)

Ghost Awareness Day

October 3rd, 2020 | Posted by pftq in Blabberbox | #
With #Halloween coming up, this is an old but amusing read to consider we might be committing mass genocide on spirits and ghosts. #ghosts #ghostawareness #ghostgenocide
https://www.pftq.com/blabberbox/?page=God---s_Flashlight
=======================================
52 unique view(s)

Past Becomes Myth

September 20th, 2020 | Posted by pftq in Stories | #
1. Kid watches people fly on TV. Parent: "Humans can't actually fly. Our bodies are too heavy. It's just a myth."
2. 1000 yrs later... Extremely fat kid watches people run on TV. Parent: "Humans can't actually run. Our bodies are too heavy. It's just a myth."
=======================================
Just a random idea for a comic that came to mind.
(but I do secretly believe we used to be able to fly)
68 unique view(s)

Nameless

September 20th, 2020 | Posted by pftq in Stories | #
Another mystery/horror story that came as a dream (and somewhat terrifying one at that)...

A group of friends are traveling to a new city and staying there for a bit. It is a tropical beach city - a sandy, walkable, small town with low-rise, shack-like residences.  They play video games as a team online the first night and joke about why they bother to name the group if they can't beat anyone yet.  After midnight, they order food delivered on GrubHub, since it's too late to go out and fall asleep after eating.

The next morning, a waitress from a nearby restaurant comes over with a plate of lobsters, but they didn't order anything.  The waitress says she has one of their credit cards, name, billing address and all.  The charge came from last night.  One of them suggest credit card fraud, but the waitress says the order was made in person. The friends point out they didn't even go anywhere last night, that they ordered food delivered.  One...[More]
85 unique view(s)

Unreal Engine 4 Notes

May 16th, 2020 | Posted by pftq in 42 | #
General notes and things I wish I knew as I delved deeper into #UE4:
- Package build by default includes unused assets, which can bloat the size of your game.  Go to Project Settings -> Packaging -> List of Maps to package only assets referenced by that map.  To be more aggressive and reduce unused assets in general (or to keep smaller backups), right-click your map and Migrate to a new project to create a new folder with only the assets used in your game.  More tips on this here.  But don't mark your game as shipping or distribution until you want to disable loading of listening servers by command line / shortcut.
- Do not use numbers in the project folder name.  Otherwise builds will fail to run.
- Do not use Duplicate, as it moves the object slightly.  Use copy+paste.
- Never use AND boolean functions.  They will calculate every condition even if the first one is already false.  Use multiple branch nodes instead.  See Blueprint Scripting Has No Short-Circuit Evaluation.
- Never rename...[More]
193 unique view(s)

Sims 3 Generations Build Mode OST

April 25th, 2020 | Posted by pftq in Stuck in My Head | #
Sims 3 Generations Build Mode OST by Steve Jablonsky (@jablonsky_steve)
88 unique view(s)

Programming for Holidays

April 12th, 2020 | Posted by pftq in 42 | #
In case anyone finds it useful, this is the code I use to automatically detect US holidays.  I don't claim credit for it - added bits and pieces over the years from various sources until it was complete enough that I didn't have to worry about it anymore.

[code]
        public bool isHoliday(DateTime date)
        {
    ...[More]
132 unique view(s)

Black Screen After RDP

February 16th, 2020 | Posted by pftq in 42 | #

Getting a Black Screen Trying to Login After a Remote Desktop Session


I recently started on occasion having a black screen come up when logging in.  This happens if I previously signed into Windows remotely.  The mouse is gone, keyboard does not work, etc.  It turns out this is caused by Nvidia's GeForce Experience ShadowPlay.  Disabling Shadowplay stops this from happening.

More details here:
https://superuser.com/questions/1026423/windows-10-black-screen-after-local-login-and-previous-remote-desktop-session
110 unique view(s)

SMF1 on PHP5

January 14th, 2020 | Posted by pftq in 42 | #
For those still using SMF1, PHP5 or later will throw a lot of deprecated errors and warnings, which quickly clog the error log.  This thread below isolates the 3 changes you need to clear them:
https://www.simplemachines.org/community/index.php?topic=534915.0

To stop error logging internally to SMF:
Quote
In index.php:
- Replace set_error_handler('error_handler'); with set_error_handler('error_handler',E_ALL & ~E_DEPRECATED & ~E_NOTICE);

To stop errors showing on the page itself:
Quote
In index.php:
- Change error_reporting(E_ALL); to error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

In SSI.php
Change
Code:
$ssi_error_reporting = error_reporting(E_ALL);
to
Code:
$ssi_error_reporting = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
105 unique view(s)

UE4 Game Module Error

January 5th, 2020 | Posted by pftq in 42 | #

"Game module could not be loaded. There may be an operating system error or the module may not be properly set up."


After reinstalling Unreal Engine, my project stopped loading up. The above error message was extremely unhelpful, especially as any search for it online referred to moving DLLs around which had nothing to do with my issue. It turns out what was missing was the exact version of Visual Studio that I had when I last worked on my project. It has to be the exact version with the extras for C++ game development included. Any newer or older version still returns the same error. In my case, it was Visual Studio 2019 paired with Unreal Engine 4.23.1; it took me a few reinstalls just to figure that out because the help docs point you instead to Visual Studio 2017.
This is more a reminder for myself in the future to avoid losing a day to this again, but maybe it helps save someone else the time as well.
201 unique view(s)

Chrome Tabs CPU

January 4th, 2020 | Posted by pftq in 42 | #
Below is a blog describing a great fix for the excessive CPU usage Chrome has with multiple tabs open.  Specifically the Suspender extensions will stop any tab not in the foreground from continuing to use up CPU.
https://www.socmedsean.com/butchering-the-google-chrome-cpu-hog/

Despite having a quad-core CPU, Chrome somehow still uses up 100% of my resources especially if any tabs open are Google Drive / Sheets.
89 unique view(s)

As Soon as They Die

August 22nd, 2019 | Posted by pftq in Thought of the Day | #
How can you say you love someone forever if as soon as they die, you ditch them in the ground to rot and never look back? What kind of horrible, inhumane person does that?
464 unique view(s)

Modern Schools

August 9th, 2019 | Posted by pftq in Blabberbox | #
This is just my own personal preference in lifestyle obviously, but one of the thoughts I can't stand is how repetitive the life of a modern teacher must be, the dread of just living year after year on loop teaching the same thing but with no progression and not even the same students to share the journey.  To me, the thought of it is like being trapped in Groundhog Day.  You are the rock that never moves while all your students pass you by.  Fifty years can pass, your students already having lived entire lives, and when they come back to visit, you're still there doing the same thing, as if part of the historical scenery itself.

I kind of wish there was a more old-fashioned approach, where you and your teacher are both a team growing and learning together until the student finally one day becomes equal or even surpasses the teacher.  What we have instead with schools/colleges is more an assembly line where students churn in and out, the teachers sometimes not even remembering the names of students they just taught last year, and the conversation always being one directional of the teacher just unloading their knowledge to the student. In college, it's even worse with you not having the same teacher for even 6 months and that teacher literally only clocking in one hour a week to talk on stage.

It would be so much more exciting if being part of a school was more like being on a team training to face the real world together.  That English teacher, instead of just reading and grading papers year after year, could actually be writing novels and expecting students to one day carry on the story.  That computer professor, instead of just explaining the same intro to computers year after year, could actually be working on an entirely new technology on which the students are being trained to one day help complete.  Instead of just talking about a subject, the same material in perpetuity, we learn as much as the teacher knows so far and then keep discovering more together.

It means that by becoming a student, you become dedicated to one day working with and carrying on the work you study, but maybe that would be for better.  I think I would have liked that kind of life more.
526 unique view(s)

Daydream Believers Cover

August 9th, 2019 | Posted by pftq in Stuck in My Head | #
Daydream Believer Cover by Youmou & Ohana
431 unique view(s)

SF vs Tokyo Prices

August 9th, 2019 | Posted by pftq in Blabberbox | #
What $200/night gets you in SF, worst part of town but rated 4/5:
https://www.sfgate.com/travel/article/I-paid-202-to-stay-at-a-micro-hotel-in-SF-14287621.php#photo-18030559

What $65/night gets you in Tokyo, center of Shibuya:
https://www.themillennials.jp/shibuya?lang=en

And food prices:
https://twitter.com/AiSideQuests/status/940082396426248194
($18+tax+tip in SF/LA vs $18 total for 2 ppl at Denny's)

For normal, local food, it's even cheaper (basically divide by 100 to convert yen to USD):

1000 yen for udon noodles + 3 desserts + drink at Meniroiro Itudemoyatu


600 yen for ramen + fried rice + potstickers at Toshu
517 unique view(s)

Google Maps Missing Starred Places

July 21st, 2019 | Posted by pftq in 42 | #
For those also running into issues with starred places on Mobile not showing on desktop:
https://www.reddit.com/r/GoogleMaps/comments/97inxv/saved_places_stars_not_showing_up_on_desktop_when/

Basically the saved place is not being saved correctly with proper date.  To fix, you need to go to Bookmarks and resave each that has a Nan date.
111 unique view(s)

One Punch Cat Fan Animation

July 2nd, 2019 | Posted by pftq in Blabberbox | #
Found @dillongoo's fan animation sadly more satisfying to watch than the second season. #OnePunchMan
https://www.youtube.com/watch?v=niXMKRey9Yg
549 unique view(s)

A Taste for Health

June 27th, 2019 | Posted by pftq in Stories | #
Had an idea for a story recently for if society found a way to make someone naturally like the taste of healthy foods (like vegetables, etc) - imagine if what you liked and craved lined up with what was good for you.  It sounds and all seems well, everyone eating better diets and enjoying better lifestyles.  Then imagine one day unexplained animal attacks start leaving people dead and torn up, seemingly at random and in generally urban settings with no dangerous wild predators.  As the story goes on, footage and evidence start to reveal the attacks seem to come from not any animal but a human.  The authorities track down and arrest one suspect, but the killings continue, seemingly at random and with no motive.  It turns out not to be any one person but people at random who suddenly go mad for human meat.  The commonality is they've all been genetically modified to like the taste of whatever is good for them, and it worked too well.  Because the healthiest...[More]
149 unique view(s)

SQL Azure Users

June 22nd, 2019 | Posted by pftq in 42 | #
Something to remember to do every time you add SQL users to an Azure database.
https://stackoverflow.com/questions/19334041/the-select-permission-was-denied-on-the-object-users-database-xxx-schema
80 unique view(s)

Bitcoin Calls Below Parity

June 22nd, 2019 | Posted by pftq in Blabberbox | #
Bitcoin is moving so fast that call options on @LedgerX are priced below parity, as if $BTC was still below $11K. Literally free money (just buy the call and sell one Bitcoin to net the difference). #Bitcoin #BTC
648 unique view(s)