This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We need the server or machine where our web application is running. That usually provide us IP and we access it from internet. | |
Now issue of that approch is that server has to be up all time in anycase even if your user traffic is increase or decrease. | |
On our end if we don't get enough traffic still we have to pay for basic provision and manages charge for run it. | |
Along with that we need to manage the server upgrade the software, os should up to date. | |
In this idea, we can run our application without actual manages the resources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ChatHeadService extends Service { | |
private WindowManager windowManager; | |
private ImageView chatHead; | |
@Override public IBinder onBind(Intent intent) { | |
// Not used | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Turning Any Callback Into An Rx-observable | |
/** | |
**So, let's say you're using a library that does something amazing. Trouble is that you didn't write it and the author hasn't RX'd it yet. The call you need to use is asynchronous and returns the result by virtue of a callback. How can we make it into an Observable? Here's a way. | |
**/ | |
doAmazingThing(int param, CallBack cb); | |
public interface CallBack { | |
onGotResult(String value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
**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' |