I am trying to build AOSP image on my mac Book using Linux virtual box. Since I don’t have enough space on Mac I am trying to checkoutAOSP on external 2 TB Segate HDD which I planned to use for build. I have installed repo tool and python 2.7 but when I try to init repo with this command repo
Tag: macos
problem using ffmpeg drawtext for rtl languge
i use this command to write on a video: it work fine when i don’t have numbers and symbols(!,?,$ and …) in first and end of my text. my lang is right to left and this commmand not support rtl. what i must do to solve this problem ? Answer First of all, the issue isn’t really rtl or FFMPEG
Trouble writing bash sed command – regex match
I have a file full of garbage collection information that is irregular, some lines have extra information that I want to initially remove so I can then process the the file as a whole. Unfortunately the line has quite a few special characters and I am struggling with a sed command that manages to match the bit I want to
Extract only the in plist using bash in Mac
I want to extract the key value in Countries in the following plist. For example, I want the output file contains the following keys only: But if I use the following script, It will print all the nested element under Countries including: Capital Washington DC Continent North America. How can I modify the script so that it will only print
How to terminate terminal that is connected to a AWS box but still leave process on?
I have ssh’d into a ubuntu AWS box via terminal on mac. I have successfully setup the process I want to run in the box. How do can exit out of terminal without killing the process running? Thank you in advance. P.S New to linux and terminal on mac Answer Personally I use screen to get in/out of the system
How to grep recursively and ignore subdirectories of subdirectories?
I am already familiar with grep -r “searchTerm” . and I am familiar with grep -r “searchTerm” exclude={subdir1, subdir2} . However, I am looking for a way to grep recursively, through subdirectories and ignore certain subdirectories of subdirectories. For example, if the directory structure is as follows: How would I be able to exclude idc and otherStuffIdc, since these folders
How to create a system-wide file lock?
I am trying to have a number of independent processes coordinate their writing to file using a system-wide lock (see here: Concurrent file accesses from different scripts python) The lock needs to span the whole system, because the processes are spawn independently and at different times. Here: System-wide mutex in Python on Linux I read that fcntl.lockf should do what
Mac equivalent for find -printf
Is there a MacOS terminal equivalent to Mainly, I want to replicate the -printf behaviour on a Mac. Answer The unix command line tools Apple ships are terribly outdated; sometimes 12 or 15 years old. You can install find from Macports: That version of find has the -printf option.
ClassNotFoundException: Didn’t find class “com.xxx.xxx.Application” on path: DexPathList on Linux
I’ve moved from Mac to a linux machine (ubuntu) and and can’t get the previous project running. The project has about 10 modules, and it still works fine on my macbook, but when building on ubuntu (tried clean install on 17.10 2 times, and 16.04 2 times as well) will crash the app on start with the following error: I’ve
Curl/sed command not processing inputs correctly
I’m having some trouble with getting this to do what I want it to do. So basically what I want is to use curl to get a .txt file from a url, then sort through it to find the word specified by the user input. Then mark all those words with a * and put them in a file specified