For Angular4 need node_modules
- This will add the node_modules into the existing angular project
npm install
- For create a new component
For Angular4 need node_modules
npm install
PHP Laravel Tipes | |
composer update | |
https://stackoverflow.com/questions/43408604/php7-install-ext-dom-issue | |
How to kill a process on a port on ubuntu | |
https://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu |
This note is related to the Kanban using Trello. We will see how we can use the trello that help us to run the kanban development process in our personal or daily ongoing project.I will seaching numbers of blog that can help me to find the best practicies that fith with my team. Later we will choose the best that help us. | |
https://hackernoon.com/personal-kanban-11f6a5196b00 | |
Inbox (or backlog) : collect here every idea, feature request, bugs or all the unprocessed “stuff”. Means you don’t have to prioritize or put it into a specific category. It’s just a place to dump whatever is coming your way for later review. So you don’t have to deal with it now. This list could contain an unlimited amount of items. But you should review and purge regularly everything you don’t really need anymore. | |
Next Up(5-10) = All the things which you want to do next. This is a kind of general action list. Put here the stuff, which is important in near term for you and which you have “validated” as something worth doing. You can pu |
https://superuser.com/questions/1061765/getting-the-following-error-when-using-ls-in-mac-terminal-bash-ls-command-no | |
cd & exit are shell builtins. ls is typically installed in /bin. /bin is missing from your path. | |
export PATH=/bin:/usr/bin:$PATH | |
should fix it. | |
//YouTubeDownloader | |
//https://www.tecmint.com/install-youtube-dl-command-line-video-download-tool/ | |
$ sudo add-apt-repository ppa:nilarimogard/webupd8 | |
$ sudo apt-get update | |
$ sudo apt-get install youtube-dl | |
$ sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl | |
OR | |
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl |
//how-to-set-the-part-of-the-text-view-is-clickable | |
SpannableString ss = new SpannableString("Android is a Software stack"); | |
ClickableSpan clickableSpan = new ClickableSpan() { | |
@Override | |
public void onClick(View textView) { | |
startActivity(new Intent(MyActivity.this, NextActivity.class)); | |
} | |
@Override | |
public void updateDrawState(TextPaint ds) { |
public class ChatHeadService extends Service { | |
private WindowManager windowManager; | |
private ImageView chatHead; | |
@Override public IBinder onBind(Intent intent) { | |
// Not used | |
return null; | |
} |
//http://stackoverflow.com/questions/3473168/clear-the-entire-history-stack-and-start-a-new-activity-on-android | |
In API level 11 a new Intent Flag was added just for this: Intent.FLAG_ACTIVITY_CLEAR_TASK | |
Just to clarify, use this: | |
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); | |
Unfortunately for API lvl <= 10, I haven't yet found a clean solution to this. As per @Ben Pearson's comment, for API <=10 now one can use IntentCompat class for the same. One can use IntentCompat.FLAG_ACTIVITY_CLEAR_TASK flag to clear task. So you can support pre API level 11 as well. | |
Intent newIntent = new Intent(D.this,B.class); | |
newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |
newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
/** | |
**1. Gradle version in alpha mode would not allow the app installed in real device. | |
We face the problem of App not installed into the physical device. | |
**/ | |
//This is due to of you chnage the gradle version For example in my case | |
Error:Could not initialize class com.android.ide.common.util.ReadWriteProcessLock after updating to A.S. 2.4 | |
classpath 'com.android.tools.build:gradle:2.4.0-alpha6' | |
to | |
classpath 'com.android.tools.build:gradle:2.3.1' |