How to get the one character’s next character in ASCII table in Bash?

Posted on

How to get the one character’s next character in ASCII table in Bash? For example, if I have ‘a’ in variable i, how to get ‘b’? First, we need to get the integer value for the character. char=’b’ charint=$(printf “%d” “‘$char'”) Then, we increase the integer by one let charint=$charint+1 Last, we can get the
Read more

How to delete or get the number in the tail from a string in shell script?

Posted on

How to delete or get the number in the tail from a string in shell script (bash script)? Okay to call other tools. For example, from “/dev/sda8”, I want to get “/dev/sda” and “8” separately. This can be achieved by using sed as follows. To get the string after deleting the tailing numbers, we can
Read more

How to Set up or Disable Call Forwarding in iOS for iPhone

Posted on

Call forwarding is useful if you are expected to be unavailable for receiving calls or lose cell phone coverage for some time. Call forwarding is not something that is “new” to modern phones. It is a feature which is invented in 1960s (the patent expired in 1980) of some telephone switching systems. But with iPhone/iOS,
Read more

Reference: Special HTML Characters

Posted on

HTML supports many characters/symbols such as mathematical symbols, and currency symbols. They are not present on a normal keyboard. And some of these characters may have special meanings for formatting text. To add such characters / symbols to an HTML text, you can use an HTML entity name or an entity number in decimal or
Read more

How to Get Rid of DTS/AC3 Audio using ffmpeg on Linux to Play MKV Files on iOS or Android

Posted on

I encountered the problem on iPhone that MKV video files with AC3 are played with no sound. The OPlayer reports to me that “According to DTS patent, DTS is forbidden to play , None of the media player on iPhone/iPad can play DTS”. However, the video file can be played in MPlayer on Linux just
Read more

Changing iPhone Holiday Calendar to Your Local One

Posted on

I usually use iPhone in the English language. However, I find the iPhone calendar app includes a US holiday calendar subscribed while I am not in US and displaying US holidays in the iPhone calendar is no use and kind of annoying to me. After some investigation, I find the way to set the iPhone
Read more

How to Play YouTube Video in Background on iPhone

Posted on

This post introduces how to play YouTube video in background on your iPhone. With this tip, you will need not to keep the YouTube app opening all the time. So you can use other apps on iPhone while listening to the music or talk or others from YouTube. This tip should also work on other
Read more