Add SD-Card as internal storage in Android Marshmallow and above

Are you like me, and just got a new Android device whose manufacturer has the device configured to not allow adoptable storage for SD-Cards? Some manufacturers have a bad habit of doing this on all their devices (looking at you, LG, for doing this on both the LG G-Pad X and the LG G6). It is possible to work around this, by turning on Developer mode, enabling USB debugging, and then using adb to do the dirty work. The steps are:

1. BACK UP THE DATA YOU HAVE ON YOUR MICROSD CARD. Your card will be formatted by this process, so make sure you have saved any pictures, videos etc. from your card to your PC before you start.

2. Decide how you want to split your card. You can either commit 100% of the card to internal storage, or split between internal storage and conventional SD. This option is useful if you like to unplug your card and put it in your PC. I would probably recommend committing the whole card.

3. Open your command window / terminal on your computer and type the ‘adb shell‘ command (with your phone connected of course). You will need to enable USB debugging in developer settings (which in turn is displayed by tapping the build number of the device 5 times) in order to see the option.

4. Type ‘sm list-disks‘ to list the disks available for adoption. It’ll look something like below – take note of the disk ID (disk:179:160 in this example).

5. Partition the disk. For this we use the ‘sm partition DISK TYPE RATIO’ command. For example, to partition the disk above as fully adopted storage (aka private) I’d use the command ‘sm partition disk:179:160 private‘. If I wanted a 50/50 split between adopted and regular, I’d use the command ‘sm partition disk:179:160 mixed 50‘. Easy right?

6. This process will take a while, but when it’s done, the Settings -> Additional Settings -> Storage view on your device should show the new Internal Storage.

I am doing something here I almost never do: I’m pasting the full relevant info from the website’s article here. Please go there, so they get the views and clicks, but the tech pages I link to have a habit of disappearing, so I included a full paste of the relevant steps.

Fix middle-button click on Dell Inspiron Clickpads

I seriously cannot believe that it took me as long as it did to find a fix to this issue. New-ish Dell Inspiron laptops have moved from touchpads to Clickpads – the biggest change is that Clickpads have no physical buttons on them at all. Everything is done by a combination of taps and clicks and gestures. Blame Apple for screwing around with something that should be straight-forward.  😛

Anyway, after a few hours of searching, I found a fix. It’s straight forward, linked below:

The content of my file is:

# This option disables software buttons on FocalTech touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
    Identifier "Disable clickpad buttons on FocalTech touchpads"
    MatchProduct "FocalTech"
    MatchDriver "synaptics"
    Option "TapButton1" "1"
    Option "TapButton2" "3"
    Option "TapButton3" "2"
    Option "ClickFinger1" "1"
    Option "ClickFinger2" "3"
    Option "ClickFinger3" "2"
EndSection

Hopefully this will save y’all hours of frustration!

(via http://askubuntu.com/questions/761931/cant-simulate-middlea-click-with-my-trackpad-asus-zenbook-ux305ua-fc057t)

Fix for “gpg-agent is not available” message

I have to save this because I forget about this every single time I build a new install, and can’t figure out why I keep getting “gpg-agent is not available in this session”.

The components come from different packages (gnupg2-2.1.7-1.fc22.x86_64 and gnupg-1.4.19-2.fc22.x86_64 in my case). The solution is to use the gpg2 command instead of gpg

Source: How to make gpg find gpg-agent – Unix & Linux Stack Exchange

Use @example.com email address for sites that require email

You know those annoying websites that are designed to briefly show you the page, but then block you from actually using it until you enter your email address? That annoys the crap out of me! There’s an easy way around it, though, if you don’t want to use your real email address: make an @example.com one!

There’s an explanation of example.com below, but basically it is a domain that seems like a real domain and accepts email from other mail servers, but immediately dumps the email. This allows people to test out programs they write that need to send email, but it also provides an interesting back door to websites requiring an email address.

All you need to do is come up with anything – anything at all, whether it’s names, words, just a bunch of random letters – and put it before the @example.com. As long as it’s a valid email format, example.com will accept it. So go ahead and use IROCK@example.com, or xxsddfswe@example.com or youcanthavemyemailaddress@example.com.

One caveat: this isn’t a secret, and there are quite a few coders out there that won’t allow any @example.com email addresses. This trick will work at most websites, but don’t be surprised if you get a “not a valid domain” message from time to time.

Happy surfing!

select a domain name without creating naming conflicts if end-users try to use the sample configurations or examples verbatim.

Source: example.com – Wikipedia, the free encyclopedia

Tools I can’t live without: Synergy 

Geek post!  🙂 There are a few utilities that I use that are not well known, but I find critical. One of the ones that I use most is Synergy. It’s function is straight-forward: share one mouse and keyboard among multiple computers. What makes Synergy awesome, though, is how far above and beyond this functionality Synergy goes. First, it’s cross-platform: I use it to share between my Linux workstation and a Macbook Pro seemlessly. Second, it supports clipboard sync – e.g. copy some text on the Macbook and paste it into a window on the Linux workstation like they are the same system.

Good stuff!

Synergy is software for sharing one keyboard and mouse between multiple computers.

Source: Synergy – Mouse and keyboard sharing software

Meltdown on Steam

I’ve had this game sitting around in my Steam list for a long time (another Humble Bundle purchase), but just now got around to firing it up. And Oh! My! Gracious!!!  This is such a fun game! The weapons are fun, enemies are goofy but deadly, and the visual style is both gorgeous and cartoonish. This has become my new favorite game!

Meltdown is a tactical arcade shooter featuring both singleplayer and intense online multiplayer. Become the most skilled soldier, choose your weapons, get the best upgrades, buckle up and start your mission. Be careful, each enemy has it’s own combat style, special AI and gear. Adapt to them to survive!

Source: Meltdown on Steam