Search This Blog

[Solved] Android/sdk/build-tools/llvm-rs-cc finished with non-zero exit value 1

When I try to compile my renderscript application I see this error "llvm-rs-cc.exe finished with non-zero exit value 1" on my Windows PC in Android Studio IDE. And when I try to run the same project on Mac OS X , I face this same error "Android/sdk/build-tools/llvm-rs-cc finished with non-zero exit value 1".

I searched and read through too many web pages and documentation, then found that the error is appearing because the API version of renderscript is old. So I used the latest API version of renderscript which is 24 at my project time.

Use Latest Renderscript API Version


As you can see in the image, I set the renderscriptTargetApi version to 24 and the error of llvm-rs-cc error is disappeared.

If you recommend this fix, share it on social media and with friends and coworkers. If you want to get new posts, make sure to subscribe to Value In Brief by Email.

[Solved] Cause: error=86 , Bad CPU type in executable - RenderScript App in Android Studio on Mac OS X

I faced this error "cause: error=86 , bad cpu type in executable" when I tried to run my Android application. This app is using render script and I use Mac OS X to run Android Studio IDE. I fixed this error in a crazy amount of time. Let's take it step by step to fix the error for you as well.

Check For Updates

Just check for updates of Android Studio IDE. Update it if there is any updates. Then rebuild the project form the build menu.

If the error still showing up, try the next fix.

Disable The Support Mode for RenderScript

One of the craziest fixes I've ever seen. Just disable the support mode for renderscript as you can see in the following image.


When you disable this support mode, the renderscript works. That's insane. Just set "renderscriptSupportModeEnabled" to "false".

If still the error showing up in the console.

Use Support Library instead of AndroidX

I used androidx libraries but it doesn't work, so I changed it to the old support library for renderscript and it worked fine. The normal support library is "android.renderscript.*" as you can see in the following image.

use android.renderscript instead of androidx library

After those three steps, my renderscript project worked fine. I never seen the bad CPU error again. I hope it works for you too. If you recommend reading this fix, share it on social media. If you want to get new posts, make sure to subscribe to Value In Brief by Email.

15 Time Wasters at Work you MUST avoid - Entrepreneur Characteristics

All people waste time BUT you are entrepreneur! Keep working smart and benefit from every hour of your day. How to get rid of time wasters? What is time wasters?! How to grow and improve your business faster?.

The Answer is to avoid those 15 time wasters, so you can achieve the GREAT SUCCESS!

15 Time Wasters at Work you MUST avoid | Entrepreneur Characteristics

1. Doing $10 per hour jobs

Don't do everything by yourself!.. change your car fuel .. clean the office and home .. There is too many mini-jobs you do and it's a waste of time!

Hire someone else to do those mini-jobs for you. In the time you saved, keep growing your business and work smart.

2. Blame.. blame.. blame..

Some people keep blaming someone for doing this thing, and blame that man for doing that action!

No.. no.. no!

Keep working smart and focus on how to improve your business. What you need for business? what's the next level you want to achieve? .. put the blaming behavior in trash!

3. Worrying about going out of business

Don't worry about going out of business! why?

If you keep worrying, you'll be out of business really.

Think how to improve.. think of the future.. think how to do the steps of work in a smart way.. work smart to grow you business!

4. constantly think about what competitors are doing

Thinking about competitors is useful BUT if you keep thinking of competitors only, you'll lose your time.

Think smart! How?

compare your business with competitors in a logic way then write down the points you want to improve in your business. So don't think about competitors again. Just keep working smart to improve you business.

5. Turn off notification except one or two to keep working

Nowadays, too many apps in our mobile phones notify us with the latest news! so we go and check those notification for all apps!

Facebook notifications, Twitter, WhatsApp, Pinterest, LinkedIn, Google plus, StumbleUpon, Digg, Line, Scoopit, Stuffpit, WeChat, YouMob, Viber,.. and too many apps give us notification to check the newson it!


So to keep improving your business and reach your next level of success in your business, close these apps notification in the business hours.

6. Constantly hiring new people for new positions because you don't pay well enough

Hiring people, train your new employees, then leave your business and work with your competitors, then hiring new people again, and train them. It's a very bad process for your work!

You waste time hiring and training new people!?!

How to keep the employees?

Simply, give them the money that their work worth. Almost all employees leave work to work with a higher salary.

7. Thinking about people who left you

Keep thinking about people who left you, and you'll waste your time!

Keep improving your business and they'll regret for leaving your great business!

seek success by work not just thinking!

8. Non-effective social media use : Newsfeed on Facebook

Check Facebook newsfeed and your day-time wasted successfully!

The researcher found that the top websites wasting your time are:

  • Facebook 41%
  • LinkedIn 37%
  • Yahoo 31%
  • Google 28%
  • Twitter 8%

This research made on entrepreneurs. So avoid wasting your time on Social media websites.

Keep in mind that TIME IS MONEY!

9. Wasting time with office butterflies

Keep talking with friends and colleagues, waste your time!.. talking about everything everywhere! That's a bad habit.

Say it's not a time for chatting.. it's a business hour, so keep working and we'll talk later.

Chatting with your friends at work consume your time, and energy.. then your day is off and your energy is gone!

Keep working in a smart way and close any long-chatting with friends.

10. Too many meetings

Meetings are useful for your business?

Yes, but keep it short and smart! How?

Making long-meetings consume up your time and energy, not only your time but also your employees time and energy.

So the solution is to think about the meeting, the targets of it, who attend. After planning for this meeting in a short time, meet them and focus on how to achieve the most from this meeting.

Save up your time and effort to improve your business! that's the smart idea.

11. TV : television

Turn off TV.. It's a life-consuming not a time-consuming!

Everything waste your precious time, keep yourself away from it! that's the smart strategy to avoid wasting time.

12. Taking calls from friends during business hours.

Don't call friends during the business hours. The great strategy for phone calls is:

  • Cancel all non-useful calls.
  • Keep phone calls as shorter as you can.

Keep up the good work! and avoid wasting time.

13. Chasing the big account that you think will change your life instead of the small sales.

If I have that, I would have a great deals! if I was at this time, I would have something great! if.. if.. and if.

Thinking of opportunities which you don't have really is a great waste of time. Thinking of those if's will make you lose hope and work-time.

Think smart, and keep your time and energy for work. Improve your business, that's all!

14. Reading the wrong books.

Reading is a great behavior! Reading books is a pleasure! really I love it!

What to read is the key? and When to read is the other key?

Read books which give you useful ideas and information for you business. Don't waste your time reading a ridiculous book!

Read as many books as you want BUT focus on your business field.

15. too much partying.

Parties are great events to have fun! But keep going to parties all the time is a bad habit to waste your time.

Keep it for important events and parties only. Keep working with smart methods all the business hours of the day. Then make a time for partying each week or month.

Final Tips!

Stay focus.. focus on your business.. improve your business.. stay fresh and work.. move your business to the next level of success.. Don't waste your time with useless things.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

How to fix error establishing database connection - easy step-by-step tutorial

This problem " Error establishing a database connection ” make your website can not connect to mySQL server.

To fix this problem :

1. Open wp-config.php, check line DB_USER, DB_PASSWORD, DB_HOST, DB_NAME. Make sure the values is same with mysql access.

2. If you use Dedicated server or VPS hosting, try to restart your mysql server by typing :
-service mysql restart
-service mysql start
but if you use shared hosting, ignore this step!

3. if all the previous fixes can not fix it, so it's a server-side problem! it is not your error! so let the hosting company fix this error for you because it is their error!
contact them or give them a day or so and they will solve this error and the problem will disappear automatically.

Watch a video for the error fix of error establishing a database connection.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

how to fix stop error 0xc0000102 - step by step guide to solve this problem

Step by step guide to solve this error. Here is a video tutorial and written-text tutorial. First of all, the text tutorial :

Step 1: Check System for Corruption:

Open an elevated command prompt. To do this, follow these steps:

1) Click the Start button.

2) In the "search" box at the bottom, type cmd

3) Look for Cmd.exe to appear at the top of the menu. Right-click on cmd.exe and choose Run As Administrator. You should now have an elevated command prompt.

4) In the elevated command prompt, type the following then press the Enter key: sfc /scannow

5) Allow the System File Checker to complete the scan of all Windows system files.

Step 2: Update to latest Windows KB

1) To check for Windows Updates (Windows XP, Vista, 7, 8, and 10):

2) Click the Start button.

3) Type "update" into the search box and hit ENTER.

4) The Windows Update dialog box will appear.

5) If updates are available, click the Install Updates button.

Step 3: Clean up Junk Files

1) Press Win + R

2) Type "Cleanmgr" and Press Enter.

3) Select the OS Partition and Press ok.

4) Click on Clean up System Files

In most cases 0xc0000102 error should be resolved by now, if however the problem still persists please, comment below and tell us your problem or error in details so we will help you..

The video tutorial here :

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

How to Fix DNS Server Not Responding Problem Error

Are you running into DNS errors when you try to load a website or connect to your network? The Domain Name Server (DNS) is a server that translates website's addresses so that your browser can connect to them. Occasionally, you can lose connection to the server, through either corrupt settings or problems on the server's end.

Here's three main steps to fix this error :

1. Verifying Your Connection
2. Troubleshooting the Computer
3. Troubleshooting the Router

You can watch a video for the fix here :

1. Verifying Your Connection

- Connect another device to the network.

Before you begin trying to solve the issue, it will help to know where the issue is occurring. You can narrow down the problem by performing a few quick tests. Connect another device to your router, either wired or wirelessly.
You can use another computer, or a smartphone or tablet. Anything that accesses the internet will work to test.

- Try to access a webpage from the second device.

If you are still receiving DNS errors, then the problem lies in your router or with your ISP. If you can connect to the website, then the problem is coming from the first computer.

- Power cycle your modem and router.

Unplug your modem's power cable as well as your router's power cable. Allow them to sit unpowered for at least 30 seconds so that any residual charge is released and the memory is cleared. Reconnect your modem, and wait for it to fully connect. After it has powered on completely, reconnect the power cable to your router and allow it to boot up. This could take up to a minute.
Once you have power cycled both devices, try connecting to a website again. If the problem still persists, move on to the next section.

If you're using a mobile device you can go to >settings>mobile data and reset the configurations.

2. Troubleshooting the Computer

- Try a different browser.

This is one of the quickest ways to test your DNS connections. Download a different free browser such as Firefox or Chrome and attempt to connect to the internet. If the issues persist, then the problem is likely not with the browser, but with some other setting on the computer.
If the issues are resolved, then you can try troubleshooting your old browser. Oftentimes the issue stems from the proxy settings.

- Disable any extra connections.

Occasionally, Windows will install extra connections that you won't normally use. For best connectivity, you should only have the connections that you use regularly enabled. To open your Network Connections window, click the Start menu or press the ⊞ Win button and search for "ncpa.cpl".
Look for extra connections. You should see a list of all your connections. The most common cause for DNS issues is the existence of "Microsoft Virtual WiFi Miniport Adapter". IF you see this, right-click it and select "Disable".
Test your connection again. Wait a few moments and then open your browser again. Try to visit a website. The DNS may take a few moments to load, but if the webpage appears then the problem has been solved. If not, move on to the next step.

- Flush your DNS.

Sometimes your DNS cache gets outdated and needs to be manually flushed. This can be done from the Command Prompt.
To open the Command Prompt, press ⊞ Win+R and type cmd.
Type ipconfig /flushdns. Wait for the command to process and then restart your computer.
Test the connection again. If the problem still persists, move on to the next step.

- Change your DNS server.

You can manually enter an alternative DNS server to attempt to connect to instead. To do so, open the "ncpa.cpl" window again and right-click on your active connection. Select "Properties".
In the Networking tab, scroll down until you find the "Internet Protocol Version 4 (TCP/IPv4)" entry. Click it to select it and then click the Properties button.
Click the "Use the following DNS server addresses" option.
Enter into the "Preferred DNS server" field
Enter into the "Alternate DNS server" field.
These are DNS servers maintained by OpenDNS, an open-source DNS service.

- Try connecting in Safe Mode.

Rebooting your computer into Safe Mode will only load the essential files for Windows, which will allow you to determine if another program or service such as your antivirus is causing the connection issues.
You can try disabling your antivirus first and seeing if that fixes the issue. If so, then you should uninstall your antivirus and install a new one.
Reboot your computer and hold down the F8 key while it is booting up.
Select Safe Mode with Networking from the list of options.
Test the connection. If you are able to successfully connect to the internet, then the problem lies with a program running on your computer. Examine the startup files and disable programs until you find the culprit.

3. Troubleshooting the Router

- Plug your computer directly into your modem.

If you are using a router to create a home network, disconnect your computer from it and plug an ethernet cable directly into your modem's Ethernet port.
Attempt to load a webpage. If you are still receiving DNS errors, then the problem likely lies with the ISP. Contact them and inquire about connecting to the DNS servers.
If you can connect to a web page, then the problem stems from your router. Reconnect your router to your modem and connect your computer back to the network to continue troubleshooting.

- Enter in alternate DNS servers.

You can change your router's settings so that it attempts to manually connect to alternate DNS servers. This can tell you if your ISP's DNS server may be faulty.
Open your router's configuration page. This is different for every router, but essentially you will need to enter your router's IP address into your browser's address bar. See this guide for more details.
Open the Internet section. Find the subsection marked "Domain Name Server (DNS) Address".
Set it to manually use DNS servers that you enter.
Enter the OpenDNS server information (Primary -, Secondary - or Google DNS server information (Primary -, Secondary -
Click Apply or Save Changes. Your router will take a few moments to apply the changes.
Test it out. Open up a new browser window on your computer and attempt to connect to a website. If you are able to connect then your ISP is most likely having DNS issues.

- Reset your router.

Sometimes the settings on your router might get corrupted, and the easiest way to fix them is to simply reset your router to default settings. This will reset your wireless network settings and any port forwarding information.
To reset your router, use a paperclip or other pointy object to press and hold the Reset button on the back of the router.
Reconfigure your router. After it has been reset, you will need to reconfigure your wireless network (if you were using it). Any admin passwords and accounts will be reset as well.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

What is the achievement of Andrew Ng?

Andrew Ng has achieved the following:

  1. Inventor of Coursera, an online course platform with over 28 million users and 2000 courses. You can go onto his website, take an accredited course, and get a certificate showing your achievement.
  2. Inventor of, a website with some of his lectures on artificial intelligence and deep learning. He also launched, which is currently contracted with Foxconn to begin mass producing AI related machines and products. Many people have taken deep learning courses from his websites and it has gotten high reviews on Coursera and other sites.
  3. He actually is the founder of the Google Brain project, Google’s venture to create mass scale neural networks using its computer infrastructure. One of its achievements was teaching computers to recognize cats after watching videos, without ever being told what a cat actually was.
  4. Andrew Ng has been featured in the Times 100 Most Influential People and has published over 100 articles on computer intelligence.
Andrew Ng

Today, Andrew Ng is one of the leading innovators and leaders of the world’s pursuit towards intelligent machines. His experience is unparalleled and is very highly respected and regarded by his students (at Stanford and around the world) and his colleagues.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

how to scroll to the beginning of a view on Android ?

Use this code in your java class. Runnable() {
            public void run() {
                your_scrollview.smoothScrollTo(0, your_view.getTop());

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

Does Apple use AWS?

Yes. Apple is one of the Amazon Web Services (AWS) biggest customers. The services business announced by Apple are all on AWS. From iCloud to Arcade.

Even though, I expect Apple to create their own cloud infrastructure in the next 10 years.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

Does FB use AWS?

No. Facebook (FB) has their own data center. Facebook does not need Amazon AWS to host their software.

Facebook is too huge to host on a rented cloud from AWS or GCP. It is obvious for FB to create their own cloud.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.

5 ways I avoid procrastination

Almost all of us face procrastination. We suffer from procrastination in too many things especially when it comes to a huge task or project. Starting a new project is sure a procrastination! Feeling overwhelmed with the task or project leads to procrastination. Make it later. Start it tomorrow! I am not in the mode! I am feeling not OK. I'll sure begin the project tomorrow.

All of these things are our procrastination strategy. This is a bad behavior which we all fall in. In this blog post I will show you how I overcome the procrastination. I can cancel procrastination by these ideas.

1. finding a proper 'why'

If you can't find a good reason to start that project/task, you will never start it. So, write down your goals! find a reason that you really want to achieve. If there is no reason for the project, so don't bother trying to achieve it.

If you found a proper goal for the project, draw the most efficient route to your destination to your goal. So you can achieve your goal and do the project as you want.

2. set alarms

We always forget the time passed. Entertainment can make hours seem as a minute to us. So remind yourself of time passing. Set alarms for each thing you do. Set alarm for gym. Set alarm for eating. Set alarm for social media. Set alarm for doing something on your smartphone. Make your life a little bit organized by setting alarms for each and every activity you do. So you can make sure you start and stop that activity on time.

4. change your environment / surroundings & pinpoint your weaknesses

Try to change your environment, then find if it makes you more productive. Changing surroundings makes you in a different mode. Try to find what makes you less productive. Track your time and activities which makes you more or less productive.

Get rid of the activities that make you less productive, or at least give that activity less time with strict alarms.

Give more time for the activities that make you more productive. Find what drives your productivity, and follow it.

5. breaks things down

Starting a huge project is a procrastination candidate. You must break down that project to small parts and start with a teeny tiny part. After completing the first part, work on the next part.

Breaking down big tasks into small ones, helped me achieve too many goals in my life. I am a software developer. I created more than 100 Android apps, and more than 10 websites in different technologies / tech stack.

I am done with avoiding procrastination. If you want to get new posts, make sure to subscribe to Value In Brief by Email.

[SOLVED] Fix Login Loop in Ubuntu Linux

We face a login loop in Ubuntu, when using too many desktop environments or editing some session manager files. Some of us face it when upgrading to latest ubuntu. It is not common, but sometimes occur. So we need to know how to fix this problem.

Steps to fix login loop in Ubuntu

  1. when you on the login screen, press ctrl + shift + alt + f1
  2. a black screen appeared? ok, type your username then ENTER and type your password then ENTER
  3. then type "ping" then ENTER to ensure you have a good Internet connection. If you have Internet access follow the steps.
  4. uninstall / remove all desktop environments that does not let you log into the desktop itself
    1. for ubuntu budgie desktop
      sudo apt-get purge --auto-remove ubuntu-budgie-desktop
    2. for XFCE desktop
      sudo apt-get purge --auto-remove xfce
    3. for LXDE desktop
      sudo apt-get purge --auto-remove lxde
  5. update & upgrade
    sudo apt-get update
    sudo apt-get upgrade
    (if there is any updates or upgrades downloaded/installed, type "reboot" then ENTER to restart your computer)
  6. After that, Run those commands
    sudo apt-get purge fglrx lightdm
    sudo apt-get install lightdm ubuntu-desktop
And W E ' R E   D O N E   !

I hope you enjoyed this fix guide in brief. If you have a colleague or friend facing this issue, send him/her this blog post. If you want to get new posts, make sure to subscribe to Value In Brief by Email.

How to get all files which has a specific string or text in linux terminal ?

To get the files which contain that specific string or text, use this command.

grep -rli 'wanted text' *

We used a UNIX program called grep. grep is used to grab / get the file containing this text between those single quotes.

If you want to get new posts, make sure to subscribe to Value In Brief by Email.