Category: Uncategorized
-
Moving Apps
Mind Blown: It makes so much more sense, but it seems like there could be some kind of visual indication that this is the way to do it. Dragging to the edge is the worst and jiggling icons doesn’t tell you a lot. 12 years of testing smartphones and only now I find the right…
-
Mac Bluetooth Quality
https://support.apple.com/en-us/HT208896 Huh, never knew this before. If you have an app open on your Mac that utilizes your mic audio quality from other apps over bluetooth will be reduced. In my case closing my IP phone app allowed firefox to playback music at a reasonable quality to my speakers.
-
iPhone 5s
This past week while on a trip we had a phone die which meant I needed to switch to an IPhone 5s. The surprising thing? It’s actually fine. The things that are annoying are no fault of the phone. The battery is old. It doesn’t switch networks on Google Fi. But other than that it…
-
Splitting Large Log Files
Every so often you run into a log file that doesn’t have a log rotation set up and has grown so large that it is near impossible to open in many editors. Today I ran into one of those files that was 1.5GB. Thankfully there is a handy split utility that can generate chunked text…
-
Replace a string inside of a MYSQL field
I recently needed to replace part of a URL found inside the body HTML of a page that was stored in a MySQL column. In order to do this I was able to use the handy Replace() MySQL function. UPDATE myPage SET pageBody = REPLACE(pageBody, ‘/oldirectory’, ‘/newdirectory’) WHERE INSTR(pageBody, ‘/olddirectory’) > 0; The INSTR() function is not technically…
-
Owning Content
So I’m reviving my personal site. In the past I was worried about owning the storage of my content so I self hosted this site on wordpress, which is honestly a pain for just wanting to write some stuff every so often. So what was my solution? I migrated the little bit of content I…
-
Open File With App From MacOS Terminal
Sometimes I like to open up a text file in a robust gui text editor on my mac while I am working in the terminal. Navigating to the same location in finder and then opening the file is just a pain. So after a little googling I discovered the open command. Here’s an example of when…
-
Git changelog for particular line numbers
I often need to go spelunking through code that predates my work on the codebase. Sometime looking through the commit history for a large file can be rather overwhelming if there are lots of commits not related to the particular section of the file you are interested in. I recently discovered that git log has…
-
Display Date and Time of Single Day or Multi Day Events With Blade
I recently needed to display the date and time of a start and end date for a Laravel project. Up front I don’t know if the start and end date/time are on the same day or a different day. I was displaying the whole date twice but this looked clunky. So, to solve this problem…
-
Convert String to Base64 in Visual Studio Code
I work with .eml files pretty often that have base64 encoded data in their body. By default base64 is not human readable so converting it quickly in my editor is handy. There’s a handy little plugin for Visual Studio Code called Encode Decode by Mitch Denny. After installing the plugin, select your base64 data in…