Open in app
Home
Notifications
Lists
Stories

Write
Farhan Utshaw
Farhan Utshaw

Home

Feb 4, 2021

Unexpected token admin | Firebase cloud function

Ref: https://stackoverflow.com/questions/53735009/including-async-function-within-firebase-cloud-functions-eslint-parsing-error This is required in package.json: "scripts": { "lint": "eslint" },

1 min read

Unexpected token admin | Firebase cloud function

Ref: https://stackoverflow.com/questions/53735009/including-async-function-within-firebase-cloud-functions-eslint-parsing-error

This is required in package.json:

"scripts": {
"lint": "eslint"
},

--

--


Jan 28, 2021

Install laravel | Ubuntu

Install composer : https://farhan-tanvir-utshaw.medium.com/install-composer-ubuntu-e52cd1c93da2 Now follow from install laravel section from here: Installation Laravel is a web application framework with expressive, elegant syntax. A web framework provides a structure and…laravel.com I had trouble getting laravel in command line: it seems it was installed in: /home/utshaw/.config/composer/vendor/bin

1 min read

Install laravel | Ubuntu

Install composer : https://farhan-tanvir-utshaw.medium.com/install-composer-ubuntu-e52cd1c93da2

Now follow from install laravel section from here:

Installation

Laravel is a web application framework with expressive, elegant syntax. A web framework provides a structure and…

laravel.com

I had trouble getting laravel in command line: it seems it was installed in:

/home/utshaw/.config/composer/vendor/bin

Add this line at the end of ~/.profile:

export PATH=$PATH:/home/utshaw/.config/composer/vendor/bin

Install php zip

First check your php version: php --version

Mine was 7.4 so, ran this:

sudo apt-get install php7.4-zip

Issue: https://stackoverflow.com/questions/64686037/why-do-i-get-a-laravel-error-while-creating-a-new-project/64694433

Solve:

composer global remove laravel/installer
composer global require laravel/installer

Issue: https://stackoverflow.com/questions/43408604/php7-install-ext-dom-issue

Solve:

sudo apt install php-xml
sudo apt-get install php-mbstring

--

--


Jan 28, 2021

Install composer Ubuntu

Ref: https://phoenixnap.com/kb/how-to-install-composer-ubuntu-16-04 If /usr/local/bin doesn’t exist then follow this: https://stackoverflow.com/questions/25654731/usr-local-bin-no-such-file-or-directory

1 min read

Install composer Ubuntu

Ref: https://phoenixnap.com/kb/how-to-install-composer-ubuntu-16-04

If /usr/local/bin doesn’t exist then follow this:

https://stackoverflow.com/questions/25654731/usr-local-bin-no-such-file-or-directory

--

--


Jan 27, 2021

Setup Android Emulator for React-Native (with expo) — Ubuntu

Environment variable for Android SDK: [ -d “$HOME/Android/Sdk” ] && ANDROID_SDK=$HOME/Android/Sdk || ANDROID_SDK=$HOME/Android/Sdk echo “export ANDROID_SDK=$ANDROID_SDK” >> ~/`[[ $SHELL == *”zsh” ]] && echo ‘.zshenv’ || echo ‘.profile’` Ref: https://docs.expo.io/workflow/android-studio-emulator/

1 min read

Setup Android Emulator for React-Native (with expo) — Ubuntu

Environment variable for Android SDK:

[ -d “$HOME/Android/Sdk” ] && ANDROID_SDK=$HOME/Android/Sdk || ANDROID_SDK=$HOME/Android/Sdk

echo “export ANDROID_SDK=$ANDROID_SDK” >> ~/`[[ $SHELL == *”zsh” ]] && echo ‘.zshenv’ || echo ‘.profile’`

Ref: https://docs.expo.io/workflow/android-studio-emulator/

--

--


Jan 18, 2021

Clear all previous Activity Android

Intent i = new Intent(OldActivity.this, NewActivity.class); // set the new task and clear flags i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK) startActivity(i);

1 min read

Clear all previous Activity Android

Intent i = new Intent(OldActivity.this, NewActivity.class);

// set the new task and clear flags

i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)

startActivity(i);

--

--


Jan 18, 2021

Programmatically click on SearchView | Android

searchView1.setIconified(false);

1 min read

Programmatically click on SearchView | Android

searchView1.setIconified(false);

--

--


Jan 11, 2021

AWS Resources

AWS Free Learning Resources valid for 2021 What is Cloud Computing : https://www.youtube.com/watch?v=M988_fsOSWo A visit into the “Cloud”: https://www.youtube.com/watch?v=94PO2-TL4Vs How to take AWS Exam From Home: https://www.youtube.com/watch?v=Wtp4GZHcq-8 — — Youtube — - What is AWS: https://www.youtube.com/watch?v=a9__D53WsUs AWS Cloud Computing(Bangla): https://www.youtube.com/watch?v=8yy0GVYjhQc

2 min read


Jan 6, 2021

SMS Send Android without permission

Uri uri = Uri.parse("smsto:YOUR_SMS_NUMBER"); Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra("sms_body", "The SMS text"); startActivity(intent);

1 min read

SMS Send Android without permission

Uri uri = Uri.parse("smsto:YOUR_SMS_NUMBER");   
Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
intent.putExtra("sms_body", "The SMS text");
startActivity(intent);

--

--


Jan 6, 2021

SearchView not taking full width in Actionbar

searchView1.setMaxWidth(Integer.MAX_VALUE);//set search menu as full width works with `androidx.appcompat.widget.SearchView`

1 min read

SearchView not taking full width in Actionbar

searchView1.setMaxWidth(Integer.MAX_VALUE);//set search menu as full width

works with `androidx.appcompat.widget.SearchView`

--

--


Jan 6, 2021

Search for word in Android Studio project

Ctrl + Shift + F

1 min read

Search for word in Android Studio project

Ctrl + Shift + F

--

--

Farhan Utshaw

Farhan Utshaw

CSE student at BUET

Following
  • Kamran Saifullah

    Kamran Saifullah

  • Arthur Juliani

    Arthur Juliani

  • salmaan rashid

    salmaan rashid

  • মোঃ আবু তাহের

    মোঃ আবু তাহের

  • csgator

    csgator

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable